gantry5 icon indicating copy to clipboard operation
gantry5 copied to clipboard

Crash Gantry/Component/Twig/TwigExtension.php

Open MotiKol opened this issue 1 year ago • 1 comments

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

MotiKol avatar Jan 05 '24 14:01 MotiKol

@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)

N8Solutions avatar Jan 09 '24 16:01 N8Solutions