Magento Cron Job Issues

Magento Cron Job Issues

I have been having major issues with creating a custom module that runs a cron job.

I continually got “Invalid Callback” when I viewed the cron information in the database. I have finally tracked down what was causing it. My cron was setup properly but my config.xml was missing a part that tells Magento where your Models are located. So when my code told the cron to run:

export/cron::sendOrders

 

Magento didn’t know where the model was located. Simply adding:

 

<models>

 

<export>

 

<class>Spyder_Export_Model</class>

 

</export>

 

</models>

 

To the Global or Frontend part of my config.xml solved the problem perfectly.

Comments
comments powered by Disqus