Skip to main content
added 663 characters in body
Source Link
Jarnail S
  • 4.7k
  • 30
  • 46
  • 80

I sorted out this error as:

  1. Go to the database tables: core_website, core_store and core_store_group
  2. First look for website_id attribute in table core_website and delete that website id from this.
  3. Repeat same in tables: core_store and core_store_group.

You can see your website id number in error page. ie getWebsite('3'). Here '3' is website id number


Above solution works well if you delete Website ID but if you remove stores (not store view because that deleted with store automatically) from under main website then this solution doesn’t work.

For that you need go to table cms_page_store and delete rows related store_views those are deleted.

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

Explanation:

You can check your store_view ids in admin->system->manage stores. All CMS pages should be assoicated with these id. If there is any extra/other id is in table cms_page_store field 'store_d' then 404 error will display.

I sorted out this error as:

  1. Go to the database tables: core_website, core_store and core_store_group
  2. First look for website_id attribute in table core_website and delete that website id from this.
  3. Repeat same in tables: core_store and core_store_group.

You can see your website id number in error page. ie getWebsite('3'). Here '3' is website id number

I sorted out this error as:

  1. Go to the database tables: core_website, core_store and core_store_group
  2. First look for website_id attribute in table core_website and delete that website id from this.
  3. Repeat same in tables: core_store and core_store_group.

You can see your website id number in error page. ie getWebsite('3'). Here '3' is website id number


Above solution works well if you delete Website ID but if you remove stores (not store view because that deleted with store automatically) from under main website then this solution doesn’t work.

For that you need go to table cms_page_store and delete rows related store_views those are deleted.

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

Explanation:

You can check your store_view ids in admin->system->manage stores. All CMS pages should be assoicated with these id. If there is any extra/other id is in table cms_page_store field 'store_d' then 404 error will display.

I sorted out this error as:

  1. Go to the database tables: core_websitecore_website, core_storecore_store and core_store_groupcore_store_group
  2. First look for website_idwebsite_id attribute in table :core_websitecore_website and delete that website id from this.
  3. Repeat same in tables: core_storecore_store and core_store_groupcore_store_group.

You can see your website id number in error page. ie getWebsite('3'). Here '3' is website id number

I sorted out this error as:

  1. Go to the database tables: core_website, core_store and core_store_group
  2. First look for website_id attribute in table :core_website and delete that website id from this.
  3. Repeat same in tables: core_store and core_store_group.

You can see your website id number in error page. ie getWebsite('3'). Here '3' is website id number

I sorted out this error as:

  1. Go to the database tables: core_website, core_store and core_store_group
  2. First look for website_id attribute in table core_website and delete that website id from this.
  3. Repeat same in tables: core_store and core_store_group.

You can see your website id number in error page. ie getWebsite('3'). Here '3' is website id number

added 169 characters in body
Source Link
Jarnail S
  • 4.7k
  • 30
  • 46
  • 80

I sorted out this error as: select core_website and look for website_id attribute. delete all lines

  1. Go to the database tables: core_website, core_store and core_store_group
  2. First look for website_id attribute in table :core_website and delete that website id from this.
  3. Repeat same in tables: core_store and core_store_group.

You can see your website id number in core_store and core_store_group tables has website_id attribute deference to core_websiteerror page.website_id ie getWebsite('3'). Here '3' is website id number

I sorted out this error as: select core_website and look for website_id attribute. delete all lines in core_store and core_store_group tables has website_id attribute deference to core_website.website_id.

I sorted out this error as:

  1. Go to the database tables: core_website, core_store and core_store_group
  2. First look for website_id attribute in table :core_website and delete that website id from this.
  3. Repeat same in tables: core_store and core_store_group.

You can see your website id number in error page. ie getWebsite('3'). Here '3' is website id number

Source Link
Jarnail S
  • 4.7k
  • 30
  • 46
  • 80
Loading