title: Magento 2 developer mode working production mode not
body: <p>Not too long ago I had no option but to work with Magento for a client, did some homework and ended up producing a custom theme package and learning a few other things all of which went fine. I have Magento installed on my local web server on Windows Xampp but also live on nix box both to date with PHP etc.</p>
  
  <p>As standard in developer mode everything is perfect with no issues at all but as soon as I try to switch to production mode (correctly from CLI) then it reports the operation was successful and now in production mode... Except its not, if I query the mode via  "bin/magento deploy:mode:show" it reports developer mode and if I attempt to load front or back end of the site I get:</p>
  
  <blockquote>
    <p>Fatal error: Uncaught Error: Call to a member function setActive() on boolean in D:\xampp\htdocs\vendor\magento\module-backend\Model\View\Result\Page.php:27 Stack trace: #0 D:\xampp\htdocs\vendor\magento\module-backend\Controller\Adminhtml\Dashboard\Index.php(35): Magento\Backend\Model\View\Result\Page->setActiveMenu('Magento_Backend...') #1 D:\xampp\htdocs\vendor\magento\framework\App\Action\Action.php(107): Magento\Backend\Controller\Adminhtml\Dashboard\Index->execute() #2 D:\xampp\htdocs\vendor\magento\module-backend\App\AbstractAction.php(229): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http)) #3 D:\xampp\htdocs\vendor\magento\framework\App\FrontController.php(55): Magento\Backend\App\AbstractAction->dispatch(Object(Magento\Framework\App\Request\Http)) #4 D:\xampp\htdocs\vendor\magento\framework\App\Http.php(135): Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http)) #5 D:\xampp\htdocs\vendor\magento\framework\App\Bootstrap.php(256): Magento in D:\xampp\htdocs\vendor\magento\module-backend\Model\View\Result\Page.php on line 27</p>
  </blockquote>
  
  <p>I do not dare attempt the operation on the live site as yet given the headache thus far.</p>
  
  <p>Other things I've tried include:</p>
  
  <ul>
  <li><p>Setting production but skipping recompile, clearing cache and manually deploying content - didn't work</p></li>
  <li><p>"php /bin/magento deploy:mode:set production -s</p>
  
  <blockquote>
    <p>Config "dev/debug/debug_logging = 0" has been saved.
    Enabled production mode."</p>
  </blockquote></li>
  </ul>
  
  <p>.. But it didn't</p>
  
  <p>What am I missing? :(   Every google search yields the same answers in regards to memory limit but that does not apply here, my.ini / php.ini are already configured for higher memory limits from other projects I needed it on.</p>
  
  <p>Thank you for any help, as always it's appreciated :)</p>