magemojo / m2-ce-cron

Magento 2 cron project to fix bugs and common cron issues.
https://magemojo.com
MIT License
165 stars 45 forks source link

Error with extension on Magento 2.1 #13

Closed Ctucker9233 closed 6 years ago

Ctucker9233 commented 6 years ago

I'm trying to use your extension on Magento 2.1 and when I run bin/magento setup:di:compile I get the following error

Incorrect dependency in class MageMojo\Cron\Controller\Adminhtml\Settings\Index in /home/tuckersf/public_html/app/code/MageMojo/Cron/Controller/Adminhtml/Settings/Index.php \Magento\Framework\Message\ManagerInterface already exists in context object Total Errors Count: 1

Please provide a fix as soon as possible.

gnuzealot commented 6 years ago

@Ctucker9233 Try clearing clearing the folder generated/* first before compiling.

Ctucker9233 commented 6 years ago

@gnuzealot I ran rm -rf var/di var/generation var/cache/ var/page_cache/ pub/static/frontend/* before running the upgrade and compile commands

gnuzealot commented 6 years ago

@Ctucker9233 what was the full version number? I'll try to reproduce it here.

Ctucker9233 commented 6 years ago

Version of Magento is 2.1.11. Is that what you meant by full version number?

gnuzealot commented 6 years ago

@Ctucker9233 Please try it now, should be fixed with https://github.com/magemojo/m2-ce-cron/commit/5be6233b8df8432d6d4bc6e73f4c18112b85e617

Ctucker9233 commented 6 years ago

It works perfectly now. Thank you.

gnuzealot commented 6 years ago

Excellent, closing the issue.