Cron - can someone give me a quick confirmation of function?

Re: How to use the cron job?

by Ambrish Tiwari -
Number of replies: 0

Hello All,

I creating a report plugin which is having scheduling feature. But when i am running the cron its give me below error .

</pre>Execute scheduled task: email_cron

... started 15:37:24. Current memory use 19.5MB.

Running Report Cron...

Warning: require_once(../../config.php): failed to open stream: No such file or directory in /home/vagrant/projects/www/html/moodle/blocks/custreport/classes/task/email_report.php on line 39


Call Stack:

    0.0023     240640   1. {main}() /home/vagrant/projects/www/html/moodle/admin/cron.php:0

    0.4951    2808944   2. cron_run() /home/vagrant/projects/www/html/moodle/admin/cron.php:81

    4.9169   20430024   3. block_custreport\task\email_report->execute() /home/vagrant/projects/www/html/moodle/lib/cronlib.php:74



Fatal error: require_once(): Failed opening required '../../config.php' (include_path='/home/vagrant/projects/www/html/moodle/lib/zend:/home/vagrant/projects/www/html/moodle/lib/pear:.:/usr/share/php:/usr/share/pear') in /home/vagrant/projects/www/html/moodle/blocks/custreport/classes/task/email_report.php on line 39


Call Stack:

    0.0023     240640   1. {main}() /home/vagrant/projects/www/html/moodle/admin/cron.php:0

    0.4951    2808944   2. cron_run() /home/vagrant/projects/www/html/moodle/admin/cron.php:81

    4.9169   20430024   3. block_custreport\task\email_report->execute() /home/vagrant/projects/www/html/moodle/lib/cronlib.php:74