gantry5 icon indicating copy to clipboard operation
gantry5 copied to clipboard

Gantry default Menu particle on PHP 8 gives error

Open MicPou opened this issue 2 years ago • 7 comments

Hi,

I have a Joomla 4.1.4 (test)website running on the server with PHP 8 and it generates the following error:

Unsupported operand types: string + string Previous exceptions Unsupported operand types: string + string (0)

…/src/classes/Gantry/Framework/Menu.php750

It seems to be related to the nav-toolbar.html.twig/nav-toolbar.yaml in the Ivee E-commerce template. According to the developer of this template the issue is related to the Gantry default Menu particle. Without this particle everything works fine in PHP 8.0.

Is this error already known? I found issue #2737, but the status of that one is marked "Closed".

MicPou avatar May 30 '22 10:05 MicPou

Hi Matias,

As we're eager to update our website to Joomla 4 / PHP 8, I immediately downloaded the latest Gantry .15 version. Unfortunately, the above bug still exists and a 500 error is triggered as soon as the PHP is set to version 8. Can you tell me when this bug could be resolved?

Kind Regards MichelP

MicPou avatar Sep 05 '22 11:09 MicPou

@MicPou Can you try out the CI build to test if the issue has been fixed for you?

mahagr avatar Sep 07 '22 05:09 mahagr

I just tested, it works fine now. Thanks Matias!

MicPou avatar Sep 07 '22 12:09 MicPou

Hello @mahagr the 5.5.16 update don't solve this: #3079 I can't move to PHP 8.0, i'm forced to PHP 7.4 :(

morphinestyle avatar Apr 18 '23 12:04 morphinestyle

Hello @mahagr the 5.5.16 update don't solve this: #3079 I can't move to PHP 8.0, i'm forced to PHP 7.4 :(

@morphinestyle does your comment still apply to this issue after you solved your issue in the other ticket?

N8Solutions avatar Apr 21 '23 14:04 N8Solutions

@N8Solutions yes, it is the same issue: i solved my issue because was a partially incompatible override with php 8.0.

morphinestyle avatar Apr 21 '23 14:04 morphinestyle

Great, thanks for letting me know @morphinestyle! So now we just need @MicPou to try the Gantry 5 v5.5.16 update to see if it solves things for him. https://gantry.org/downloads#joomla

N8Solutions avatar Apr 21 '23 14:04 N8Solutions