Closed kaspar-allenbach closed 1 year ago
What version of Blitz are you running? If 4.x, you’ll need to remove the warmCacheDelay
setting as it was removed from the plugin in 4.0.0, see https://github.com/putyourlightson/craft-blitz/blob/develop/CHANGELOG.md#400---2022-05-04
@bencroker
CraftCMS 4.4.8
Blitz 4.4.4
PHP 8.1
I'm getting the same error after upgrade from craft 3.x. on php craft up
, after applying migrations when craft applying project-config changes.
Any ideas how to fix this?
Same as above, @Romanavr. You’ll need to remove the warmCacheDelay
config setting in /config/blitz.php
.
Same as above, @Romanavr. You’ll need to remove the
warmCacheDelay
config setting in/config/blitz.php
.
@bencroker I don't have it in blitz config:
<?php
return [
'*' => [
'debug' => false,
'cachingEnabled' => false,
],
'dev' => [
'debug' => true,
],
// Staging environment settings
'staging' => [
'debug' => false,
'cachingEnabled' => true,
],
// Production environment settings
'production' => [
'debug' => false,
'cachingEnabled' => true,
'cacheControlHeader' => 'public, s-maxage=14400, max-age=0',
],
];
After deleting the last 2 values and clearing the cache, I can apply the changes from the project file
I’m not sure why applying project config changes would not have removed the warmCacheDelay
setting, but glad to hear you resolved it!
I haven't defined warmCacheDelay
in /config/blitz.php
either. How exactely did you resolve this? @Romanavr
I found an entry in the project.yaml:
Is this the culprit? I'm afraid changing anything manually here.
@kaspar-allenbach Removing the setting from project config, as described above, should work, let me know if you have any further issues.
Ah. this is indeed the project config. Okay now I get it. Thank you
I haven't defined
warmCacheDelay
in/config/blitz.php
either. How exactely did you resolve this? @RomanavrI found an entry in the project.yaml:
Is this the culprit? I'm afraid changing anything manually here.
I've removed it manually from the DB, projectconfig
table, example on the screenshot.
Ben's method didn't work for me.
I think I found the solution:
./craft project-config rebuild
./craft project-config/apply
./craft blitz/cache/clear
via the terminal. The Blitz CP Panel is inacessible with this issue ¯_(ツ)_/¯
@bencroker I've got this exact same issue too! Nothing in my project config mentions the warmCacheDelay
setting anywhere.
[error] yii\base\UnknownPropertyException: Setting unknown property: putyourlightson\blitz\drivers\purgers\CloudflarePurger::warmCacheDelay at /var/www/html/vendor/yiisoft/yii2/base/Component.php:209
This is coming from a Craft 3.8 -> Craft 4.4 upgrade!
I can't apply my updated project config from the upgrade with this issue!
@johnwbaxter Is the config setting found in the config/blitz.php
file, perhaps?
@bencroker Nope!! I searched the whole project and it's nowhere in any config or PC.
I have resolved i?t by doing what @kaspar-allenbach suggested. rebuild/apply/clear and then redeploy the branch with the migrated PC from the repo and then run "reapply everything" and now I'm back in business.
Very weird though.
My guess it that it was either cached or stored in the database. Glad to hear you got it resolved.
I can't purge the cache anymore because this erorr message appears
It also appears when I want to access blitz settings. What is this?