2

I have Magento 2.2.1 installed.

I get this issue (got that issue also in 2.2) when running php bin/magento cron:run:

Fatal error: Uncaught Error: Cannot instantiate interface Magento\Framework\ShellInterface in <magento-root-dir>/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:111
Stack trace:
#0 <magento-root-dir>/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\\Framewo...', Array)
#1 <magento-root-dir>/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Compiled->create('Magento\\Framewo...')
#2 <magento-root-dir>/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(144): Magento\Framework\ObjectManager\ObjectManager->get('Magento\\Framewo...')
#3 <magento-root-dir>/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(230): Magento\Framework\ObjectManager\Fa in <magento-root-dir>/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php on line 111

This error is not appearing when in developer mode.

In production mode, I cleared all caches, recompiled etc.

Php version => 7.1.

Any help is much appreciated?

Thanks.

2
  • We have this issue as well, on a Commerce 2.2.1 site. In our case it is caused by the Wyomind_CronScheduler extension. Once we disable it, the error goes away and the Cron starts working correctly again. Nov 14 '17 at 16:18
  • ah yes, perfect. That was exactly the problem. Thanks a lot! (you should post as answer) Nov 15 '17 at 21:29
2

We have this issue as well, on a Commerce 2.2.1 site. In our case it is caused by the Wyomind_CronScheduler extension. Once we disable it, the error goes away and the Cron starts working correctly again.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.