Solved – Undefined index: jobs Error On Running Cron In Magento 2.X.X

Solved - Undefined index: jobs Error On Running Cron In Magento 2.X.X

Cron jobs in Magento 2 are a great tool to automate repetitive tasks!

However, sometimes the developers face an Undefined index: jobs error on running cron in Magento 2.x.x.  (including me 🙈)

While running the below command,

Magento throws the below exception:

[Exception] Notice: Undefined index: jobs in /home/ubuntu/repo/project/vendor/magento/
module-cron/Model/Config/Converter/Db.php on line 39

The solution to undefined index: jobs error on running cron in Magento 2.x.x:

While migrating from Magento 1 to Magento 2, you may have got the entries as crontab/{groupname}/jobs/{code} with the missing group name i.e default in core_config_data table. You need to delete the wrong table entries and run the upgrade and deploy command to solve the issue.

That’s all to get rid of the error.

If you still have any issues with the error, please mention them in the Comments section below.

I’ll gladly help you out.

Do share the solution with the fellow developers via social media.

Thanks.

 

Get E-commers Updates in Your Inbox

Thank you for subscribing.

Something went wrong.

5
(based on 6 Reviews)

Sanjay is a co-founder at Meetanshi. He is a Certified Magento Developer who loves creating Magento E-commerce solutions. Owing to his contributions in Magento Forums and posting solutions, he is among the top 50 contributors of the Magento community in 2019. When he is not engrossed with anything related to Magento, he loves to play cricket.

Leave a reply:

Your email address will not be published.