Cms: Error on the command line tool on RC3

Created on 29 Dec 2017  路  5Comments  路  Source: craftcms/cms

I've caught a bug while developing a plugin. It's related to the command line tool.

PHP Fatal Error 'yii\base\ErrorException' with message 'Class craft\queue\Command contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (yii\queue\cli\Command::isWorkerAction)'

Craft Command class is extending Yii2 queue/Command.php but didn't implement the isWorkerAction abstract method.

bug

Most helpful comment

You can either wait for RC4 to be released (planned for Jan 2), or change your craftcms/cms requirement in composer.json to "dev-develop as 3.0.0-RC99", and then run composer update. That will always update from the latest commit in the repo.

All 5 comments

For now, I've hardcoded a empty function, and it seems to fix the error, but I am not well versed enough in Yii to know if that would create unintended consequences.

Looks like it comes from a change in the new 2.0.2 queue release: https://github.com/yiisoft/yii2-queue/commit/10f74bb7b50a3814c4a917e4285b50e78b553265#diff-9a74ce881acb5860a1a9d2e2b3b85d25

Thanks for reporting it!

What would be the best way for me to update my local version with this new update?

You can either wait for RC4 to be released (planned for Jan 2), or change your craftcms/cms requirement in composer.json to "dev-develop as 3.0.0-RC99", and then run composer update. That will always update from the latest commit in the repo.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

angrybrad picture angrybrad  路  3Comments

michel-o picture michel-o  路  3Comments

bitboxfw picture bitboxfw  路  3Comments

richhayler picture richhayler  路  3Comments

angrybrad picture angrybrad  路  3Comments