lebasha Posted February 24, 2023 Share Posted February 24, 2023 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 More sharing options...
JBW Posted February 28, 2023 Share Posted February 28, 2023 Seems the module themeconfigurator is not compatible with your PHP version. Check for module update and your PHP version and make sure it's compatible with your PS 1 Link to comment Share on other sites More sharing options...
noemx Posted June 28, 2024 Share Posted June 28, 2024 (edited) 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 June 28, 2024 by noemx (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