pessoal2004 Posted February 4, 2023 Posted February 4, 2023 Hi, I update the TB 1.4 from PHP 7.4 to PHP 8.1 Now I have the error: Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in file modules/themeconfigurator/themeconfigurator.php at line 894 890: 'info' => [ 891: 'module' => $this->name, 892: 'name' => $this->displayName, 893: 'version' => $this->version, 894: 'context' => (Configuration::get('PS_MULTISHOP_FEATURE_ACTIVE') == 0) ? 1 : ($this->context->shop->getTotalShops() != 1) ? $this->context->shop->getContext() : 1, Note: I don’t have multishop. This is a TB bug with PHP 8.1 or I missed some step on the update? Cheers
musicmaster Posted February 4, 2023 Posted February 4, 2023 (edited) Corrected I mentioned the likely problem in my page about updating the Panda theme: The problem is that some themes use parts of the themeconfigurator module even while it is not active. However, inactive modules are not updated during the update process. The solution is to download a recent version of the themeconfigurator module or Thirty Bees and copy the newer version of the module in place of the old one. Edited February 5, 2023 by musicmaster 1
pessoal2004 Posted February 6, 2023 Author Posted February 6, 2023 Hi musicmaster, Thank you very much for your great help.
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