craftcms / cms

Build bespoke content experiences with Craft.
https://craftcms.com
Other
3.25k stars 630 forks source link

[5.x]: Serialization of 'Closure' is not allowed #15875

Open DowleyDeveloped opened 3 hours ago

DowleyDeveloped commented 3 hours ago

What happened?

Description

When updating to Craft 5.4.7.1 the front end of the site errors with "Serialization of 'Closure' is not allowed at /var/www/html/vendor/yiisoft/yii2/caching/Cache.php:113"

Craft CMS version

5.4.7.1

PHP version

8.3

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

No response

DowleyDeveloped commented 3 hours ago

This is the stack trace from the logs:

#0 /var/www/html/vendor/yiisoft/yii2/caching/Cache.php(113): igbinary_serialize()
#1 /var/www/html/vendor/yiisoft/yii2/caching/Cache.php(133): yii\caching\Cache->buildKey()
#2 /var/www/html/vendor/yiisoft/yii2/web/UrlManager.php(311): yii\caching\Cache->get()
#3 /var/www/html/vendor/yiisoft/yii2/web/UrlManager.php(229): yii\web\UrlManager->getBuiltRulesFromCache()
#4 /var/www/html/vendor/craftcms/cms/src/web/UrlManager.php(306): yii\web\UrlManager->buildRules()
#5 /var/www/html/vendor/yiisoft/yii2/web/UrlManager.php(211): craft\web\UrlManager->buildRules()
#6 /var/www/html/vendor/craftcms/cms/src/web/UrlManager.php(116): yii\web\UrlManager->addRules()
#7 /var/www/html/vendor/craftcms/cms/src/web/Request.php(1411): craft\web\UrlManager->parseRequest()
#8 /var/www/html/vendor/yiisoft/yii2/web/Application.php(82): craft\web\Request->resolve()
#9 /var/www/html/vendor/craftcms/cms/src/web/Application.php(318): yii\web\Application->handleRequest()
#10 /var/www/html/vendor/yiisoft/yii2/base/Application.php(384): craft\web\Application->handleRequest()
#11 /var/www/html/web/index.php(12): yii\base\Application->run()
#12 {main} {"memory":7373280,"exception":"[object] (Exception(code: 0): Serialization of 'Closure' is not allowed at /var/www/html/vendor/yiisoft/yii2/caching/Cache.php:113)"}