I got locked out of the admin environment by a 500 error
The web error log states:
yii\base\UnknownPropertyException: Setting unknown property: craft\models\Updates::message in /home/mysite/httpdocs/vendor/yiisoft/yii2/base/Component.php:209
When commenting out this line (209)
throw new UnknownPropertyException('Setting unknown property: ' . get_class($this) . '::' . $name);
The admin works as expected
Update Craft to 3.1.17.1
I tried fixing this by removing the vendor folder and composer.lock and do a composer update. But that didn't do the trick
Could you try running ./craft clear-caches/all
Tried it, but uncommenting the line resulted in the same error.
Could you send me your composer.json and composer.lock files at [email protected]?
Sent!
I see I also have some trouble with the Plugin Store and and unknown error in the installed plugin list. Just thought I'd mention it if It may be related
Having this same error, clearing caches CLI worked to fix tho.
Actually never mind. I can only load the CP once after clearing caches, then I have to clear again to load the next page.
@theskyfloor any chance this is on a public box and you could send some Craft CP and SSH access to [email protected]?
It is. The tough thing is it's on the client's server and they are the devops server admin : ( Let me see what I can do!
Hello! Getting the same error, but only on one Craft install, not the other.. Here is a stack trace: https://sentry.dfo.no/share/issue/328978bc5d1b4ec9b4b598e1fbd11099/
@angrybrad I can't give you SSH access because of firewall restrictions, but I could give you a login to the CP.. (but now I've downgraded it to 3.1.16...)
@theskyfloor : what plugins do you have activated..? Ours are AsyncQueue, CodeMirror, Queue Manager, Redactor, Spoon, and Workflow.. Also: I managed to get the problem to go away by rolling back to 3.1.16..
@phoob I have a lot of plug-ins on this install but we definitely have some overlap which is interesting: AsyncQueue, CodeMirror, Queue Manager, Redactor, Spoon, and Workflow are all installed on this site as well for me.
@angrybrad I'm having the same issue here if I install 3.1.17.1. Other than Redactor, none of the plugins overlap with the other guys.
Following, had the same issue. Redactor is the only overlap with @phoob.
Same Error here.
Trace:
#0 .../vendor/yiisoft/yii2/BaseYii.php(546): yii\base\Component->__set('message', 'Server Error')
#1 .../vendor/yiisoft/yii2/base/BaseObject.php(107): yii\BaseYii::configure(Object(craft\models\Updates), Array)
#2 .../vendor/craftcms/cms/src/services/Updates.php(106): yii\base\BaseObject->__construct(Array)
#3 .../vendor/craftcms/cms/src/services/Updates.php(77): craft\services\Updates->getUpdates()
#4 .../vendor/craftcms/cms/src/widgets/Updates.php(74): craft\services\Updates->getTotalAvailableUpdates()
#5 .../vendor/craftcms/cms/src/controllers/DashboardController.php(514): craft\widgets\Updates->getBodyHtml()
#6 .../vendor/craftcms/cms/src/controllers/DashboardController.php(99): craft\controllers\DashboardController->_getWidgetInfo(Object(craft\widgets\Updates))
#7 [internal function]: craft\controllers\DashboardController->actionIndex()
#8 .../vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#9 .../vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array)
#10 .../vendor/craftcms/cms/src/web/Controller.php(109): yii\base\Controller->runAction('index', Array)
#11 .../vendor/yiisoft/yii2/base/Module.php(528): craft\web\Controller->runAction('index', Array)
#12 .../vendor/craftcms/cms/src/web/Application.php(297): yii\base\Module->runAction('dashboard/index', Array)
#13 .../vendor/yiisoft/yii2/web/Application.php(103): craft\web\Application->runAction('dashboard/index', Array)
#14 .../vendor/craftcms/cms/src/web/Application.php(286): yii\web\Application->handleRequest(Object(craft\web\Request))
#15 .../vendor/yiisoft/yii2/base/Application.php(386): craft\web\Application->handleRequest(Object(craft\web\Request))
#16 .../html/index.php(21): yii\base\Application->run()
#17 {main}
By the way: i have two craft sites on the same server, with very (very) similar configuration.. one of them works with 3.1.17.1, the other one fails..
I'm also having this issue in (3.1.17.1). In my local if I downgrade Feed Me to 3.1.13, it breaks the console. If I upgrade it to 3.1.15 the error goes away. I cannot reproduce any of this in my remove server though. Maybe Feed Me is unrelated but seems that many people with this issue have Feed Me installed.
If you clear the caches and reload the CP you can gain momentary access to the CP until you move to another view. When I do that I'm seeing that this request index.php?p=admin/actions/app/check-for-updates
is getting a 500.
Is anyone still getting this error? (Especially after running ./craft clear-caches/all
)
I certainly was. I downgraded so I can't test further.
Is anyone still getting this error? (Especially after running
./craft clear-caches/all
)
@brandonkelly yes: running ./craft clear-caches/all
fixes the problem only until Craft starts looking for updates again.. which appears to happen immediately. Then I get two error notices in CP, and when trying to reload the page, it fails. (https://sentry.dfo.no/share/issue/65ca620323e4493fa30f0271996f932f/)
I'm still getting it. ./craft clear-caches/all
only recovers the first load. I downgraded, because it completely blocked me from the CP.
Getting the same error. Some overlap Feedme & Redactor. But doubt this is the issue.
Believe we found the root of this and it's on our end... will get a fix deployed shortly.
We鈥檝e confirmed this is fixed now! Run ./craft clear-caches/all
or delete the contents of your storage/runtime/cache/
folder and you should be back in bsusiness.
@brandonkelly Any idea when this will be part of an official release?
@brandonkelly can you clarify if this was a remote bug? because ./craft clear-caches/all
didn't work before, so I'm assuming something changed.
@whoisjuan After a bit of digging in the commit that closed this issue, I noticed that it is a file that is part of CraftNet, the system that powers the plugin store, updates and all that. Most likely why it now works fine without any updates to Craft.
@echantigny Thanks!
Yeah sorry for not clarifying. The bug was on Craftnet鈥檚 end.
Most helpful comment
We鈥檝e confirmed this is fixed now! Run
./craft clear-caches/all
or delete the contents of yourstorage/runtime/cache/
folder and you should be back in bsusiness.