cancel
Showing results for 
Search instead for 
Did you mean: 

The website with id 0 that was requested wasn't found.

The website with id 0 that was requested wasn't found.

Hello I have this problem, can someone help me?
I tried several things but it doesn't work, the pages load normally but the php commands don't work on the SSH terminal

isue.png

Table store

store.png

store_group

store-group.png

store_websitestore-website.png

thanks

6 REPLIES 6

Re: The website with id 0 that was requested wasn't found.

Hello @kleibert_aquino 

 

Run these SQL queries:

SET FOREIGN_KEY_CHECKS=0;
UPDATE `store` SET store_id = 0 WHERE code='admin';
UPDATE `store_group` SET group_id = 0 WHERE name='Default';
UPDATE `store_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;

Please take a database backup before running the above queries.

Hope it helps.

---
If you've found my answer useful, please give"Kudos" and "Accept as Solution"

Re: The website with id 0 that was requested wasn't found.

Hey @Meetanshi 

what about: The website with id 1 that was requested wasn't found. Verify the website and try again.

i found this in my exception log after I had installed magento 2.3.5 and try to launch the admin page. my admin page would not launch, it will give me a blank page saying: 

An error has happened during application run. See exception log for details.

 my exception log would also say

{"exception":"[object] (Magento\\Framework\\Exception\\NoSuchEntityException(code: 0): The website with id 1 that was requested wasn't found. Verify the website and try again. at /vendor/magento/module-store/Model/WebsiteRepository.php:110)"} []

Re: The website with id 0 that was requested wasn't found.

 

For fixing the error: 

An error has happened during application run. See exception log for details.

Fix the permissions on the folder where you gave writing permissions:

sudo chown -R daemon:daemon /opt/bitnami/apps/magento/

 

 

Re: The website with id 0 that was requested wasn't found.

Fix the permissions for the folder where you gave writing permissions:

Eg:

sudo chown -R daemon:daemon /opt/bitnami/apps/magento/

Re: The website with id 0 that was requested wasn't found.

Web error codes are also known as http status codes. There are five different classes of http status codes, and they always start with the following digits, depending on what error the user encountered. These are also symptoms of the error that the user encountered. I think that you need to use a program to restore the server and fix this error. The main thing is, if you want your site to be visited, do not forget that it needs to be constantly updated with https://www.creative.onl/website-support/. By the way, do you have any problems with the BIOS?

Re: The website with id 0 that was requested wasn't found.

Hello I have this problem, can someone help me? I tried several things but it doesn't work, the pages load normally but the php commands