gantry5
gantry5 copied to clipboard
Error with PHP 8.1 and Set Error Reporting to default or maximum
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