Closed qbadev closed 3 years ago
Apparently you installed Contao/built the cache using PHP 8 instead of 7.4?
that might be, as I have web php 7.4, and CLI 8.0
You have the answer to your question then? :) Contao as well as many other Symfony bundles and the Symfony full stack framework itself ensure optimal configuration during cache build time. They also check for available php extensions to make sure they can make the best out of the available platform. You must use the same PHP configuration (extensions and version) when building it (or running any CLI commands for that matter).
Yes, that's clear, I always keep it clean and updated, but this time Automatic Updates of Ubuntu made a mess. Thanks for pointing me to the right direction.
Have:
request.CRITICAL: Uncaught PHP Exception Exception: "Php8AttributesListener must not be loaded for PHP 7.4.15" at vendor/friendsofsymfony/http-cache-bundle/src/EventListener/Php8AttributesListener.php line 35 {"exception":"[object] (Exception(code: 0): Php8AttributesListener must not be loaded for PHP 7.4.15 at vendor/friendsofsymfony/http-cache-bundle/src/EventListener/Php8AttributesListener.php:35)"} []
Quick investigation shows, thatPhp8AttributesListener
must be loaded only for PHP 8. Why is it being loaded with Contao core, when in 7.4 environment?