cancel
Showing results for 
Search instead for 
Did you mean: 

Admin page 404 after a change in Manage store

Admin page 404 after a change in Manage store

Hello,

 

Somebody have made a mistake and do some changes in manage store.

If I well understand he changes root category and/or name in store information for several store and may be more in the store view informations. 

Since this change, it's impossible to go to the admin. The result is a page 404

 

And of course no back-up since several weeks !!!

 

The first thing i do is to rebuild via php admin the both table

core_store

core_store_group

 

But i still have a page 404 even after cleaning the cax=che manually

 

It's a multi-domaina nd multi store website and i see that default store has been also modify.

 

Any help are welcome ?

 

Thanks in advance

www.webauxilium.com
5 REPLIES 5

Re: Admin page 404 after a change in Manage store

@WebauxiliumHi,

 

Where do you see 404? For whole website, for admin area or for some of the product/category URL?

 

If someone have changed the store code and for some reason you are not able to access the admin, then you need to make updates directly in database. If you remember the code of each store then you can update the same in 'core_store' table.

 

Problem Solved? Please give Kudos and accept answer as Solution.

- Tarandeep
Problem solved?Please give 'Kudos' and accept 'Answer as Solution'.

Re: Admin page 404 after a change in Manage store

Hi Helloaran,

 

First for your help.

 

Yesterday afternoon, i've done the change directly in the database but even after cleaning the cash and reindex all, the acces of the admin was a page 404.

 

But this morning, i can now access to the admin without any change since yesterday afternoon. That's a good news but it probably mean that their are also some trouble with the cash or the reindex.

www.webauxilium.com

Re: Admin page 404 after a change in Manage store

@WebauxiliumIt can be your browser cache. If things are good now. Can you please accept one of the answer as solution and give kudo to close this ticket.

- Tarandeep
Problem solved?Please give 'Kudos' and accept 'Answer as Solution'.

Re: Admin page 404 after a change in Manage store

This is a frustrating issue. When changing settings in the admin panel, it’s important to double-check the URL and permissions. Just like in plumbing services, attention to detail can prevent major problems down the line

Re: Admin page 404 after a change in Manage store

It sounds like the recent changes in the "Manage Stores" section (such as modifying the root category or store view information) have broken the store configuration, leading to a 404 error when trying to access the admin.

Here are a few steps you can follow to resolve this issue:

  1. Recheck the Store Configuration:

    • Access the database using PHPMyAdmin or a similar tool.
    • Check the core_store and core_store_group tables again to ensure they are correctly configured.
    • Make sure that the default store and website ID mappings are correct.
  2. Verify base_url in the Database:

    • Check the core_config_data table.
    • Look for entries with path = 'web/unsecure/base_url' and path = 'web/secure/base_url'.
    • Make sure these URLs are correctly set for your store.
  3. Manually Clear Cache:

    • You mentioned already clearing the cache, but ensure you've deleted the contents of the var/cache and var/session directories manually.
    • If you’re using Redis or another caching mechanism, flush those caches as well.
  4. Rebuild Indexes:

    • From your Magento root directory, try running the following command (if you have CLI access):
      bash
      Copy code
      php shell/indexer.php reindexall
  5. Check Apache/Nginx Configuration:

    • Ensure your .htaccess or Nginx configuration file hasn’t been accidentally modified during this process, as that could cause a 404 error.
  6. Admin URL Check:

    • Verify that the admin URL hasn’t been changed during the store modifications. If it has been changed, you can update it manually in the core_config_data table by searching for the path = 'admin/url/custom'.
  7. Restore Default Store View:

    • If the default store view was incorrectly modified, try to restore the previous settings directly in the database in the core_store and core_store_group tables.

Since you don’t have recent backups, this manual fix through the database might be your best option. However, once the admin is restored, I recommend setting up regular backups to avoid such situations in the future.

Hope this helps!


@Webauxilium wrote:

Hello,

 

Somebody have made a mistake and do some changes in manage store.

If I well understand he changes root category and/or name in store information for several store and may be more in the store view informations. 

Since this change, it's impossible to go to the admin. The result is a page 404

 

And of course no back-up since several weeks !!!

 

The first thing i do is to rebuild via php admin the both table

core_store

core_store_group

 

But i still have a page 404 even after cleaning the cax=che manually

 

It's a multi-domaina nd multi store website and i see that default store has been also modify.

 

Any help are welcome ?

 

Thanks in advance



@Webauxilium wrote:

Hello,

 

Somebody have made a mistake and do some changes in manage store.

If I well understand he changes root category and/or name in store information for several store and may be more in the store view informations. 

Since this change, it's impossible to go to the admin. The result is a page 404

 

And of course no back-up since several weeks !!!

 

The first thing i do is to rebuild via php admin the both table

core_store

core_store_group

 

But i still have a page 404 even after cleaning the cax=che manually

 

It's a multi-domaina nd multi store website and i see that default store has been also modify.

 

Any help are welcome ?

 

Thanks in advance