I have updated my php to 8.1 and am having problems

I have updated my php to 8.1, updated all the modules, updated the album files and index files and when I go to the gallery I get this error:-

Something went wrong
Optional parameter $isVendor declared before required parameter $formatter is implicitly treated as a required parameter in CartUtility.php on line 156

Please help

What version of Backlight are you using?

2.0.15

That’s pretty old at this point.
The current version of Backlight is compatible with php 8.
You could try reverting to an earlier version of php, but your best option is to update to Backlight 5

Yeah, wanted to try and avoid that, but I guess I got to bite the built. :weary:
Is it a straight forward upgrade? and do I need to re-buy all the add-ons that I had on my old version?

Very easy update
https://blog.theturninggate.net/2023/11/18/cheaper-easier-upgrades-to-backlight-5/

I don’t think you’ll have to repurchase the add-ons. At some point, Matt made it so the add-ons didn’t need to be repurchased.

After you upgrade to version 5, Check your Backlight Modules page for any available updates

2 Likes