cancel
Showing results for 
Search instead for 
Did you mean: 

There has been an error processing your request

There has been an error processing your request

magento 2.2.2

xampp 7.1.2

windows 10

php 7.1.2.4

 

**This is not on live site but on local backup/xamp on my computer**

 

I'm getting the infamous 'There has been an error processing your request' error when loading

 

In core_config_data I have changed url and in env.php I have changed database

 

have deleted \var\session and \var\cache\ files

 

My goal is to setup a local store on my computer so I can test different things before I apply it to real store

 

debug.log has this value:
main.DEBUG: cache_invalidate:

 

still get the error. wonder if there is something I have forgotten to change

 

Audun

5 REPLIES 5

Re: There has been an error processing your request

Hi @Loginname

 

Kindly change your mode to developer mode, so you will able to see the exact error !

 

Run below command :

 

php bin/magento deploy:mode:set developer

 

After that you will able to see the exact error on the browser kindly post the error - so its help us to  troubleshoot the issue !

 

 

if issue solved,Click Kudos & Accept as Solution

Re: There has been an error processing your request

You need to first enable developer mode using a command line,

php bin/magento deploy:mode:set developer

 

Go inside the root pub/errors folder,

Just copy local.xml.sample to local.xml

Also, you can enable fromdisplay_errorsapp/bootstrap.php file. At line no. 11 removes# from the start of the line.

Now the final statement displays as ini_set('display_errors', 1);

If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial

Re: There has been an error processing your request

Hello @Loginname

 

Mostly this error occurs due to Database connection error so please cross check database username, password, database name in app/etc/env.php file first.

 

If all fine with the database then please set proper permission to specific folders:

sudo chmod -R 0777 var/ pub/ generated/

 

If still, you will face issue then check var/reports/report number and post the error here.

 

Manish Mittal
https://www.manishmittal.com/

Re: There has been an error processing your request

I get :

1 exception(s):
Exception #0 (Magento\Framework\Exception\NoSuchEntityException): Requested store is not found

Re: There has been an error processing your request

Hi @Loginname

 

Based on the error log i would suggest you to run below query in your database :

 

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;

For more details refer this link - https://magento.stackexchange.com/questions/156176/magento-2-requested-store-is-not-found

 

It will resolved your issue !

 

Hope it helps !

if issue solved,Click Kudos & Accept as Solution