Skip to main content
Magento

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

Magento Admin Panel Returns 404 Error

Trying to login magento admin panel and it returns 404 error.

Here's what I did so far.

  1. Did a check on /public_html/app/etc/local.xml

    <admin>
     <routers>
     <adminhtml>
     <args>
     <frontName><![CDATA[admin]]></frontName>
     </args>
     </adminhtml>
     </routers>
    </admin>
    
  2. Cleared var/session and var/cache.

  3. Access with and without index.php
  4. I ran the following SQL code.

    SET FOREIGN_KEY_CHECKS=0; UPDATE core_store SET store_id = 0 WHERE code=’admin’;
    UPDATE core_store_group SET group_id = 0 WHERE name=’Default’;
    UPDATE core_website SET website_id = 0 WHERE code=’admin’;
    UPDATE customer_group SET customer_group_id = 0 WHERE customer_group_code=’NOT LOGGED IN’;
    SET FOREIGN_KEY_CHECKS=1;
    

    SQL returns the following error code.

    #1054 - Unknown column 'â€TMadminâ€TM' in 'where clause'

  5. Ran with the following SQL Code again due to suspected punctuation marks

    SET FOREIGN_KEY_CHECKS=0; UPDATE core_store SET store_id = 0 WHERE code='admin';
    UPDATE core_store_group SET group_id = 0 WHERE name='Default';
    UPDATE core_website SET website_id = 0 WHERE code='admin';
    UPDATE customer_group SET customer_group_id = 0 WHERE customer_group_code='NOT LOGGED IN';
    SET FOREIGN_KEY_CHECKS=1;
    
  6. Results:

    # MySQL returned an empty result set (i.e. zero rows).

Answer*

Draft saved
Draft discarded
Cancel
1
  • Thanks for the reply. var folder permission at 700 currently. I do not really get your remaining answers. There was no migration done, it was a live website. Commented Jul 27, 2016 at 8:06

default

AltStyle によって変換されたページ (->オリジナル) /