Exception ‘Mage_Core_Exception’ with message ‘Invalid callback:

Exception ‘Mage_Core_Exception’ with message ‘Invalid callback:

This Error Occurs when company_module name is invalid and not added properly in model tab in cron.


<config>
    <modules>
        <yourcompany_yourmodule>
            <version>1.0.0</version>
        </yourcompany_yourmodule>
    </modules>

    <global>
        <models>
            <yourmodule>
                <class>Yourcompany_Yourmodule_Model_Observer</class>
            </yourmodule>
        </models>
    </global>

    <crontab>
        <jobs>
            <Yourcompany_mymodule>
                <schedule>
                    <cron_expr>*/15 * * * *</cron_expr>
                </schedule>
                <run>
                    <model>Yourmodule/observer::updateAll</model>
                </run>
            </Yourcompany_mymodule>
        </jobs>
    </crontab>
</config>

Change it to the

 <crontab>
        <jobs>
            <Yourcompany_mymodule>
                <schedule>
                    <cron_expr>*/15 * * * *</cron_expr>
                </schedule>
                <run>
                     <model>yourcompany_yourmodule/observer::updateAll</model>
                </run>
            </Yourcompany_mymodule>
        </jobs>
    </crontab>


Advertisements

Add Comment

📖 Read More