Jump to content
thirty bees forum

Error PHP 8.1 - Unparenthesized `a ? b : c ? d : e` is not supported


Recommended Posts

Posted

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

Posted (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 by musicmaster
  • Thanks 1

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...