title: Magento 404 on Admin Page
body: <p>About a week ago, I was working in a test environment for a new site. I left for an hour, came back, and now cannot get to the admin page, as in ‘<a href="http://magento.localhost.com/admin" rel="nofollow noreferrer">http://magento.localhost.com/admin</a>’ results in a No Route 404. I am the only one with access to this, it is not live in any sense. I am using VBox with Ubuntu to host the environment. In terms of possible fixes, so far I have tried… </p>
  
  <ul>
  <li><p>Making sure core_store, core_store_group, core_website, and customer_group table ids are set to 0 (as described in this and many other articles - <a href="http://www.nude-webdesign.com/fix-for-magento-admin-error-404-page-not-found/" rel="nofollow noreferrer">http://www.nude-webdesign.com/fix-for-magento-admin-error-404-page-not-found/</a>) </p></li>
  <li><p>Playing with the /app/code/core/Mage/Core/Controller/Varien/Front.php method _isAdminFrontNameMatched to display the adminPath (it’s ‘admin’) </p></li>
  <li><p>Cleared the var folder, emptied browser cache. Site’s caching was and is turned off.</p></li>
  <li><p>Adding 'index.php' to the url still results in a 404.</p></li>
  <li><p>As per <a href="https://stackoverflow.com/questions/5871501/magento-admin-404?lq=1">Magento Admin 404</a>, the file 'app/etc/use_cache.ser' doesn't exist for me.</p></li>
  </ul>
  
  <p>On the day of this occurring, I was simply playing around with some layout files I had copied to a module I made and the theme’s media queries (all of which were reverted to their original state even before this problem started to occur). </p>
  
  <p>Does anyone have any suggestions as to what is wrong here? Any other possible reasons this could be happening? </p>
  
  <p>Thanks for anything.</p>
  
  <p><strong>EDIT 1:06pm 9/10/2013:</strong> In response to Alan Storm's method of retrieving controller names that Standard.php is looking for, I was returned many "missing" controller files. However, after downloading a fresh copy of 1.7.0.2 to find those files, they weren't present in their either. Here is my output from Alan's var_dump suggestion in Standard.php:</p>
  
  <ul>
  <li><p>..."/public_html/app/code/core/Mage/Index/controllers/Adminhtml/Controller.php" </p></li>
  <li><p>..."/public_html/app/code/core/Mage/Paygate/controllers/Adminhtml/Controller.php" </p></li>
  <li><p>..."/public_html/app/code/core/Mage/Paypal/controllers/Adminhtml/Controller.php" </p></li>
  <li><p>..."/public_html/app/code/core/Mage/Widget/controllers/Adminhtml/Controller.php" </p></li>
  <li><p>..."/public_html/app/code/core/Mage/Oauth/controllers/Adminhtml/Controller.php" </p></li>
  <li><p>..."/public_html/app/code/core/Mage/Authorizenet/controllers/Adminhtml/Controller.php"</p></li>
  <li><p>..."/public_html/app/code/core/Mage/Bundle/controllers/Adminhtml/Controller.php" </p></li>
  <li><p>..."/public_html/app/code/core/Mage/Centinel/controllers/Adminhtml/Controller.php" </p></li>
  <li><p>..."/public_html/app/code/core/Mage/Compiler/controllers/Adminhtml/Controller.php" </p></li>
  <li><p>..."/public_html/app/code/core/Mage/Connect/controllers/Adminhtml/Controller.php" </p></li>
  <li><p>..."/public_html/app/code/core/Mage/Downloadable/controllers/Adminhtml/Controller.php" </p></li>
  <li><p>..."/public_html/app/code/core/Mage/ImportExport/controllers/Adminhtml/Controller.php" </p></li>
  <li><p>..."/public_html/app/code/core/Mage/Api2/controllers/Adminhtml/Controller.php" </p></li>
  <li><p>..."/public_html/app/code/core/Mage/PageCache/controllers/Adminhtml/Controller.php" </p></li>
  <li><p>..."/public_html/app/code/core/Mage/XmlConnect/controllers/Adminhtml/Controller.php" </p></li>
  <li><p>..."/public_html/app/code/core/Mage/Adminhtml/controllers/Controller.php" </p></li>
  <li><p>..."/public_html/app/code/community/Phoenix/Moneybookers/controllers/Controller.php" </p></li>
  <li><p>..."/public_html/app/code/core/Mage/Captcha/controllers/Adminhtml/Controller.php" </p></li>
  <li><p>..."/public_html/app/code/core/Mage/CurrencySymbol/controllers/Adminhtml/Controller.php" </p></li>
  <li><p>..."/public_html/app/code/core/Mage/CurrencySymbol/controllers/Adminhtml/IndexController.php"</p></li>
  </ul>
  
  <p><strong>Resolved 3:39pm 9/10/2013:</strong> Ok, it's fixed albeit rather bluntly. I took the output of Alan Storm's var_dump suggestion to mean I had created an error somewhere in the core code pool (which is not something I intended on doing, screwing with the default code that is). Unfortunately for sake of exact learning, I then replaced it all with the default core code pool of 1.7.0.2. This was done before Alan updated his original answer with more suggestions that I never investigated. Thanks Alan, you're rad.</p>