Magento Expert Forum - Improve your Magento experience

Results 1 to 3 of 3

Admin CMS Pages gives 404 after deleted a store

  1. #1
    New member oylsb's Avatar
    Join Date
    Jan 2016
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Admin CMS Pages gives 404 after deleted a store

    I have searched google for solutions for hours, and I have, without luck, tryed this solution:
    Code:
    DELETE FROM cms_page_store WHERE store_id NOT IN (SELECT store_id FROM core_store);
    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;
    I have also flushed the cashe in System -> Cache mangement with no change for my problem.
    I still get an 404 error when I click at CMS -> Pages.

    Can anyone please help me with some other suggestions?
    Regards, Leif

    View more threads in the same category:


  2. #2
    New member
    Join Date
    Jan 2016
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default just run this and ignore rest

    Quote Originally Posted by oylsb View Post
    I have searched google for solutions for hours, and I have, without luck, tryed this solution:
    Code:
    DELETE FROM cms_page_store WHERE store_id NOT IN (SELECT store_id FROM core_store);
    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;
    I have also flushed the cashe in System -> Cache mangement with no change for my problem.
    I still get an 404 error when I click at CMS -> Pages.

    Can anyone please help me with some other suggestions?
    Regards, Leif


    DELETE FROM cms_page_store WHERE store_id NOT IN (SELECT store_id FROM core_store)

  3. #3
    Junior Member
    Join Date
    Jan 2016
    Location
    Miami, Florida
    Posts
    22
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    You can try to restore files in the folder on the path /app/code/core manualy, clean your cache (just delete your folder Cache (the path /var/cache). Also you can try to delete sessions (just delete folder /var/session).

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •