gantry / gantry5

:rocket: Next Generation Template / Theme Framework
http://gantry.org
1.04k stars 204 forks source link

Crash Gantry/Component/Twig/TwigExtension.php #3220

Open MotiKol opened 10 months ago

MotiKol commented 10 months ago

Hi there,

implanting a new component ( https://joomlaboat.com/custom-tables ) in my Gantry 5 based website, here is the result. How to solve it?

Using PhP 82 (same with 8.1) and Joomlead


Symfony\Component\ErrorHandler\Error\FatalError thrown with message "Compile Error: Declaration of Gantry\Component\Twig\TwigExtension::getGlobals() must be compatible with Twig\Extension\GlobalsInterface::getGlobals(): array"

Stacktrace:

0 Symfony\Component\ErrorHandler\Error\FatalError in /home/udqb0598/b2b-partners.com/devt/libraries/gantry5/src/classes/Gantry/Component/Twig/TwigExtension.php:53


JOOMLEAD ANSWERS

Tony wrote:

Hi there, The issue was caused by the site using the Gantry 5 framework only ? If so, I recommend you submit the question to the Gantry 5 issue tracker: https://github.com/gantry/gantry5/issues

https://joomlead.com/ticket-support/?wpsc-section=ticket-list&ticket-id=51343032&auth-code=RU8pauLp

moti replied 2024/01/03 05:51:52

Hi Tony,

PhP 8.2 I tried to download to 8.1 ---> same problem

Happy New Year to you too !

Marc

Tony replied 2024/01/03 00:45:59 Hi there, Which php version you are using ? Happy New Year

moti reported 2023/12/30 15:08:29

Hi there,

implanting a new component ( https://joomlaboat.com/custom-tables ) , here is the result. How to solve it?


Symfony\Component\ErrorHandler\Error\FatalError thrown with message "Compile Error: Declaration of Gantry\Component\Twig\TwigExtension::getGlobals() must be compatible with Twig\Extension\GlobalsInterface::getGlobals(): array"

Stacktrace:

0 Symfony\Component\ErrorHandler\Error\FatalError in /home/udqb0598/b2b-partners.com/devt/libraries/gantry5/src/classes/Gantry/Component/Twig/TwigExtension.php:53

N8Solutions commented 10 months ago

@MotiKol What version of Gantry 5 are you using? What version of Joomla are you using? Have you tried contacting the folks at joomlaboat.com?

I'm also disappointed in Joomlead, as they should have not only asked what versions you were running to be sure your site was up-to-date, but they should have pointed you to contact Joomlaboat as well since it is their component that you are trying to add to your site. (Please note, I'm only a volunteer, I do not work for Gantry or Rocket Theme)