gantry5 icon indicating copy to clipboard operation
gantry5 copied to clipboard

Error with PHP 8.1 and Set Error Reporting to default or maximum

Open uGE70 opened this issue 2 years ago • 0 comments

Platform (MAMP Pro 6.6.2, Mac OS 11.6.1): Joomla 4.1.4, Gantry 5.5.14, all Gantry templates, PHP 8.1.1 or greater, no cache, no SEO plugin.

Steps to reproduce Using Joomla 4.1.4, set Error Reporting to default/maximum in global configuration and PHP to 8.1.1 or greater Go to Gantry backend or any frontend page using Gantry template styles.

Actual result I get the following error message: Error: During inheritance of Countable: Uncaught Whoops\Exception\ErrorException: Return type of Twig\Node\Node::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /libraries/gantry5/compat/vendor/twig/twig/src/Node/Node.php:213 Capture d’écran 2022-06-20 à 09 56 02

uGE70 avatar Jun 20 '22 08:06 uGE70