We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Just upgrade from Craft 3 to 4, and seomatic throws a 500 error
An Error occurred while handling another error: TypeError: Cannot assign null to property craft\validators\DateTimeValidator::$tooEarly of type string in /home/xx/releases/20220519111253/vendor/yiisoft/yii2/caching/Cache.php:138 Stack trace: #0 /home/xx/releases/20220519111253/vendor/yiisoft/yii2/caching/Cache.php(138): unserialize() #1 /home/xx/releases/20220519111253/vendor/yiisoft/yii2/caching/Cache.php(603): yii\caching\Cache->get() #2 /home/xx/releases/20220519111253/vendor/nystudio107/craft-seomatic/src/services/MetaContainers.php(271): yii\caching\Cache->getOrSet() #3 /home/xx/releases/20220519111253/vendor/nystudio107/craft-seomatic/src/services/MetaContainers.php(249): nystudio107\seomatic\services\MetaContainers->parseGlobalVars() #4 /home/xx/releases/20220519111253/vendor/nystudio107/craft-seomatic/src/Seomatic.php(785): nystudio107\seomatic\services\MetaContainers->includeMetaContainers() #5 [internal function]: nystudio107\seomatic\Seomatic::nystudio107\seomatic{closure}() #6 /home/xx/releases/20220519111253/vendor/yiisoft/yii2/base/Event.php(312): call_user_func() #7 /home/xx/releases/20220519111253/vendor/yiisoft/yii2/base/Component.php(642): yii\base\Event::trigger() #8 /home/xx/releases/20220519111253/vendor/yiisoft/yii2/web/View.php(180): yii\base\Component->trigger() #9 /home/xx/releases/20220519111253/vendor/craftcms/cms/src/web/View.php(1747): yii\web\View->endPage() #10 /home/xx/releases/20220519111253/vendor/craftcms/cms/src/web/View.php(468): craft\web\View->endPage() #11 /home/xx/releases/20220519111253/vendor/craftcms/cms/src/web/TemplateResponseFormatter.php(52): craft\web\View->renderPageTemplate() #12 /home/xx/releases/20220519111253/vendor/yiisoft/yii2/web/Response.php(1095): craft\web\TemplateResponseFormatter->format() #13 /home/xx/releases/20220519111253/vendor/craftcms/cms/src/web/Response.php(275): yii\web\Response->prepare() #14 /home/xx/releases/20220519111253/vendor/yiisoft/yii2/web/Response.php(339): craft\web\Response->prepare() #15 /home/xx/releases/20220519111253/vendor/yiisoft/yii2/web/ErrorHandler.php(136): yii\web\Response->send() #16 /home/xx/releases/20220519111253/vendor/craftcms/cms/src/web/ErrorHandler.php(185): yii\web\ErrorHandler->renderException() #17 /home/xx/releases/20220519111253/vendor/yiisoft/yii2/base/ErrorHandler.php(135): craft\web\ErrorHandler->renderException() #18 /home/xx/releases/20220519111253/vendor/craftcms/cms/src/web/ErrorHandler.php(64): yii\base\ErrorHandler->handleException() #19 [internal function]: craft\web\ErrorHandler->handleException() #20 {main} Previous exception: TypeError: Cannot assign null to property craft\validators\DateTimeValidator::$tooEarly of type string in /home/xx/releases/20220519111253/vendor/yiisoft/yii2/caching/Cache.php:138 Stack trace: #0 /home/xx/releases/20220519111253/vendor/yiisoft/yii2/caching/Cache.php(138): unserialize() #1 /home/xx/releases/20220519111253/vendor/yiisoft/yii2/caching/Cache.php(603): yii\caching\Cache->get() #2 /home/xx/releases/20220519111253/vendor/nystudio107/craft-seomatic/src/services/MetaContainers.php(271): yii\caching\Cache->getOrSet() #3 /home/xx/releases/20220519111253/vendor/nystudio107/craft-seomatic/src/services/MetaContainers.php(249): nystudio107\seomatic\services\MetaContainers->parseGlobalVars() #4 /home/xx/releases/20220519111253/vendor/nystudio107/craft-seomatic/src/Seomatic.php(785): nystudio107\seomatic\services\MetaContainers->includeMetaContainers() #5 [internal function]: nystudio107\seomatic\Seomatic::nystudio107\seomatic{closure}() #6 /home/xx/releases/20220519111253/vendor/yiisoft/yii2/base/Event.php(312): call_user_func() #7 /home/xx/releases/20220519111253/vendor/yiisoft/yii2/base/Component.php(642): yii\base\Event::trigger() #8 /home/xx/releases/20220519111253/vendor/yiisoft/yii2/web/View.php(180): yii\base\Component->trigger() #9 /home/xx/releases/20220519111253/vendor/craftcms/cms/src/web/View.php(1747): yii\web\View->endPage() #10 /home/xx/releases/20220519111253/vendor/craftcms/cms/src/web/View.php(468): craft\web\View->endPage() #11 /home/xx/releases/20220519111253/vendor/craftcms/cms/src/web/TemplateResponseFormatter.php(52): craft\web\View->renderPageTemplate() #12 /home/xx/releases/20220519111253/vendor/yiisoft/yii2/web/Response.php(1095): craft\web\TemplateResponseFormatter->format() #13 /home/xx/releases/20220519111253/vendor/craftcms/cms/src/web/Response.php(275): yii\web\Response->prepare() #14 /home/xx/releases/20220519111253/vendor/yiisoft/yii2/web/Response.php(339): craft\web\Response->prepare() #15 /home/xx/releases/20220519111253/vendor/yiisoft/yii2/base/Application.php(390): yii\web\Response->send() #16 /home/xx/releases/20220519111253/web/index.php(24): yii\base\Application->run() #17 {main}
Steps to reproduce the behaviour:
A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered:
Clearing cache fixed
Sorry, something went wrong.
Phew, thanks. This bricked a site for me but a cache clear through the CP fixed the issue.
Yeah in general, I'd suggest clearing all caches on updates, similar to what I do here:
https://nystudio107.com/blog/updating-craft-cms-without-headaches#composer-2-0
Related: craftcms/cms#11455
No branches or pull requests
Describe the bug
Just upgrade from Craft 3 to 4, and seomatic throws a 500 error
An Error occurred while handling another error:
TypeError: Cannot assign null to property craft\validators\DateTimeValidator::$tooEarly of type string in /home/xx/releases/20220519111253/vendor/yiisoft/yii2/caching/Cache.php:138
Stack trace:
#0 /home/xx/releases/20220519111253/vendor/yiisoft/yii2/caching/Cache.php(138): unserialize()
#1 /home/xx/releases/20220519111253/vendor/yiisoft/yii2/caching/Cache.php(603): yii\caching\Cache->get()
#2 /home/xx/releases/20220519111253/vendor/nystudio107/craft-seomatic/src/services/MetaContainers.php(271): yii\caching\Cache->getOrSet()
#3 /home/xx/releases/20220519111253/vendor/nystudio107/craft-seomatic/src/services/MetaContainers.php(249): nystudio107\seomatic\services\MetaContainers->parseGlobalVars()
#4 /home/xx/releases/20220519111253/vendor/nystudio107/craft-seomatic/src/Seomatic.php(785): nystudio107\seomatic\services\MetaContainers->includeMetaContainers()
#5 [internal function]: nystudio107\seomatic\Seomatic::nystudio107\seomatic{closure}()
#6 /home/xx/releases/20220519111253/vendor/yiisoft/yii2/base/Event.php(312): call_user_func()
#7 /home/xx/releases/20220519111253/vendor/yiisoft/yii2/base/Component.php(642): yii\base\Event::trigger()
#8 /home/xx/releases/20220519111253/vendor/yiisoft/yii2/web/View.php(180): yii\base\Component->trigger()
#9 /home/xx/releases/20220519111253/vendor/craftcms/cms/src/web/View.php(1747): yii\web\View->endPage()
#10 /home/xx/releases/20220519111253/vendor/craftcms/cms/src/web/View.php(468): craft\web\View->endPage()
#11 /home/xx/releases/20220519111253/vendor/craftcms/cms/src/web/TemplateResponseFormatter.php(52): craft\web\View->renderPageTemplate()
#12 /home/xx/releases/20220519111253/vendor/yiisoft/yii2/web/Response.php(1095): craft\web\TemplateResponseFormatter->format()
#13 /home/xx/releases/20220519111253/vendor/craftcms/cms/src/web/Response.php(275): yii\web\Response->prepare()
#14 /home/xx/releases/20220519111253/vendor/yiisoft/yii2/web/Response.php(339): craft\web\Response->prepare()
#15 /home/xx/releases/20220519111253/vendor/yiisoft/yii2/web/ErrorHandler.php(136): yii\web\Response->send()
#16 /home/xx/releases/20220519111253/vendor/craftcms/cms/src/web/ErrorHandler.php(185): yii\web\ErrorHandler->renderException()
#17 /home/xx/releases/20220519111253/vendor/yiisoft/yii2/base/ErrorHandler.php(135): craft\web\ErrorHandler->renderException()
#18 /home/xx/releases/20220519111253/vendor/craftcms/cms/src/web/ErrorHandler.php(64): yii\base\ErrorHandler->handleException()
#19 [internal function]: craft\web\ErrorHandler->handleException()
#20 {main}
Previous exception:
TypeError: Cannot assign null to property craft\validators\DateTimeValidator::$tooEarly of type string in /home/xx/releases/20220519111253/vendor/yiisoft/yii2/caching/Cache.php:138
Stack trace:
#0 /home/xx/releases/20220519111253/vendor/yiisoft/yii2/caching/Cache.php(138): unserialize()
#1 /home/xx/releases/20220519111253/vendor/yiisoft/yii2/caching/Cache.php(603): yii\caching\Cache->get()
#2 /home/xx/releases/20220519111253/vendor/nystudio107/craft-seomatic/src/services/MetaContainers.php(271): yii\caching\Cache->getOrSet()
#3 /home/xx/releases/20220519111253/vendor/nystudio107/craft-seomatic/src/services/MetaContainers.php(249): nystudio107\seomatic\services\MetaContainers->parseGlobalVars()
#4 /home/xx/releases/20220519111253/vendor/nystudio107/craft-seomatic/src/Seomatic.php(785): nystudio107\seomatic\services\MetaContainers->includeMetaContainers()
#5 [internal function]: nystudio107\seomatic\Seomatic::nystudio107\seomatic{closure}()
#6 /home/xx/releases/20220519111253/vendor/yiisoft/yii2/base/Event.php(312): call_user_func()
#7 /home/xx/releases/20220519111253/vendor/yiisoft/yii2/base/Component.php(642): yii\base\Event::trigger()
#8 /home/xx/releases/20220519111253/vendor/yiisoft/yii2/web/View.php(180): yii\base\Component->trigger()
#9 /home/xx/releases/20220519111253/vendor/craftcms/cms/src/web/View.php(1747): yii\web\View->endPage()
#10 /home/xx/releases/20220519111253/vendor/craftcms/cms/src/web/View.php(468): craft\web\View->endPage()
#11 /home/xx/releases/20220519111253/vendor/craftcms/cms/src/web/TemplateResponseFormatter.php(52): craft\web\View->renderPageTemplate()
#12 /home/xx/releases/20220519111253/vendor/yiisoft/yii2/web/Response.php(1095): craft\web\TemplateResponseFormatter->format()
#13 /home/xx/releases/20220519111253/vendor/craftcms/cms/src/web/Response.php(275): yii\web\Response->prepare()
#14 /home/xx/releases/20220519111253/vendor/yiisoft/yii2/web/Response.php(339): craft\web\Response->prepare()
#15 /home/xx/releases/20220519111253/vendor/yiisoft/yii2/base/Application.php(390): yii\web\Response->send()
#16 /home/xx/releases/20220519111253/web/index.php(24): yii\base\Application->run()
#17 {main}
To reproduce
Steps to reproduce the behaviour:
Expected behaviour
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Versions
The text was updated successfully, but these errors were encountered: