Post by TexasGreg » Thu Jun 30, 2022 9:08 pm

I get this error: Fatal error: Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in /storage/modification/system/library/cart/user.php on line 134

I can fix it in that file but when I refresh modifications it reverts back to the old file. I can't find the file that generates it. /system/library/cart/user.php doesn't contain the same code as /storage/modification/system/library/cart/user.php. Where should I look?

New member

Posts

Joined
Sun Nov 11, 2018 9:30 pm

Post by ADD Creative » Thu Jun 30, 2022 9:22 pm

You could go to Extensions -> Modifications and disable them one by one refreshing each time. That should allow you to work out which one is making the change.

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by JNeuhoff » Thu Jun 30, 2022 9:51 pm

You could try the 3-0-x-x_Maintenance branch which works fine with PHP 8.x versions.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by TexasGreg » Thu Jun 30, 2022 11:26 pm

ADD Creative wrote:
Thu Jun 30, 2022 9:22 pm
You could go to Extensions -> Modifications and disable them one by one refreshing each time. That should allow you to work out which one is making the change.
This did the trick. I searched the modifications table to find the code that needed to be replaced. Thanks a lot!

New member

Posts

Joined
Sun Nov 11, 2018 9:30 pm

Post by TexasGreg » Thu Jun 30, 2022 11:27 pm

JNeuhoff wrote:
Thu Jun 30, 2022 9:51 pm
You could try the 3-0-x-x_Maintenance branch which works fine with PHP 8.x versions.
I'll give this a try. Might be something I missed. Thanks!

New member

Posts

Joined
Sun Nov 11, 2018 9:30 pm

Post by straightlight » Fri Jul 01, 2022 6:42 am

opencart-3 repository is getting converted to PHP 8 full compatibility soon.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 106 guests