gantry / gantry5

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

Class "Twig\Environment" not found #3216

Closed Peeripapo closed 4 months ago

Peeripapo commented 7 months ago

Hi, I have website with Joomla 3.10.11 and Gantry 5.5.17. We're on PHP 8.2

Suddenly the site is offline and we get this warning on the frontend.


 Error
Class "Twig\Environment" not found

Stack frames (10)
9
Error
…/src/classes/Gantry/Component/Theme/AbstractTheme.php130
8
Gantry\Component\Theme\AbstractTheme renderer
…/src/classes/Gantry/Component/Theme/AbstractTheme.php176
7
Gantry\Component\Theme\AbstractTheme render
/home/jfroriz/public_html/templates/it_insightfx/index.php28
6
require
/home/jfroriz/public_html/libraries/src/Document/HtmlDocument.php678
5
Joomla\CMS\Document\HtmlDocument _loadTemplate
/home/jfroriz/public_html/libraries/src/Document/HtmlDocument.php740
4
Joomla\CMS\Document\HtmlDocument _fetchTemplate
/home/jfroriz/public_html/libraries/src/Document/HtmlDocument.php555
3
Joomla\CMS\Document\HtmlDocument parse
/home/jfroriz/public_html/libraries/src/Application/CMSApplication.php1098
2
Joomla\CMS\Application\CMSApplication render
/home/jfroriz/public_html/libraries/src/Application/SiteApplication.php778
1
Joomla\CMS\Application\SiteApplication render
/home/jfroriz/public_html/libraries/src/Application/CMSApplication.php231
0
Joomla\CMS\Application\CMSApplication execute
/home/jfroriz/public_html/index.php52

`

Any suggestions ?
pablop76 commented 7 months ago

Joomla 3.10 is not compatible with PHP 8.2