david1200 Posted March 20, 2021 Share Posted March 20, 2021 Hello, I have this message after having done an update from 1.7.6.0 to 1.7.7.2: (1/1) ContextErrorException Notice: Use of undefined constant _PS_ENV_ - assumed '_PS_ENV_' in index.php line 74 Here is line 74: if (_PS_MODE_DEV_) { Debug::enable(); } require_once __DIR__.'/../app/AppKernel.php'; $kernel = new AppKernel(_PS_ENV_, _PS_MODE_DEV_); // When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter //Request::enableHttpMethodParameterOverride(); $request = Request::createFromGlobals(); Request::setTrustedProxies([], Request::HEADER_X_FORWARDED_ALL); I can not connect to back office, front is accessible. I tried to change my PHP versions, nothing to do. What d you think? Thanks for your help. Also, debug mode in front office show that: Notice: Use of undefined constant _PS_ENV_ - assumed '_PS_ENV_' in /home/myprestashop/src/Adapter/Environment.php on line 64 Link to comment Share on other sites More sharing options...
Futonbro Posted April 10, 2021 Share Posted April 10, 2021 (edited) Hi we are facing similar problems. As weve updated to php version 7.4 and shortly afterwards went back to 7.3 we got the same error as you out of the blue. Additionaly those errors occured after using back&frontend after changing versions without any problems. For now both front and backend are not working anymore, showing the error mentioned above. Thanks a lot! Kind Regards Malte Edited April 10, 2021 by Futonbro (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now