Jump to content

 PHP Deprecated: Unparenthesized `a ? b : c ? d : e` is deprecated on line 695


lebasha

Recommended Posts

hi 

i have prestashop 1.7.8.5

i have this error

 

 PHP Deprecated: Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in /home/modelf/public_html/modules/themeconfigurator/themeconfigurator.php on line 695

 

line 695:                 'context' => (Configuration::get('PS_MULTISHOP_FEATURE_ACTIVE') == 0) ? 1 : ($this->context->shop->getTotalShops() != 1) ? $this->context->shop->getContext() : 1

 

what should i do ? please help me

 

 

Link to comment
Share on other sites

  • 1 year later...

I've upgraded from 1.6 to 8 and PHP 8.1 and this module was causing error on the Module Manager page:

request.CRITICAL: Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\FatalError: "Compile Error: Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`" at .../modules/themeconfigurator/themeconfigurator.php line 695 {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Compile Error: Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` at .../modules/themeconfigurator/themeconfigurator.php:695)"} []
 

I had to switch PHP to 7.4 to be able to access the modules page, uninstall the module and delete from FTP.

Edited by noemx (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...