I have created a simple module with a config file and one observer to run a cron every minute. But the cron is not registering in the database as well as not executing at all. I tried running cron.php manually still no results. Here is my module's files:


<?xml version="1.0" encoding="UTF-8"?>
                <cron_expr>* * * * * *</cron_expr>


class Inic_Icron_Model_Observer
    public function importdata() {

I can't figure out what I am doing wrong. I have cleared cache and tried running it manually still not result. Can anyone please help me?

  • Make sure that your system.log file as full permission otherwise you can print something inside importdata function.check error log as well Commented Aug 6, 2013 at 6:09
  • Yes the log file as full permissions and there are no error logs getting generated.
    – jdhaar
    Commented Aug 6, 2013 at 6:24

1 Answer 1


Maybe it's because you defined the model alias as cron

<cron><!-- model alias here-->

and in your cron you call the model with alias icron:


Also make sure the module is loaded. I mean check if the file app/etc/modules/Inic_Icron.xml exists. You might want to clear the cache also.

  • That was the issue. Now the cron is getting registered in the table.
    – jdhaar
    Commented Aug 6, 2013 at 6:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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