Jump to content

One click update error message


david1200

Recommended Posts

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

  • 3 weeks later...

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

Fehler.JPG

Edited by Futonbro (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...