Unable to run cron

Unable to run cron

by Vamshi Seshasayan Penumarthi -
Number of replies: 1
I have installed Moodle 3.2.3 on Godaddy shared hosting plan. 

I have created a cron job as 

/usr/local/bin/php -q /home/nuzwebmaster1/public_html/moodle/admin/cli/cron.php 

to run every 30 minutes. 

But the Notifications page still shows 

The cron.php maintenance script has not been run for at least 24 hours. 

I also  tried executing cron.php maintenance script from browser. But it displayed nothing. 

What am I missing?

Average of ratings: -
In reply to Vamshi Seshasayan Penumarthi

Re: Unable to run cron

by Vamshi Seshasayan Penumarthi -

AAaaaah...Finally! Figured the solution by myself. 

Thanks to Marina Glancy.

I have seen several threads with similar problem. This may help a lot of  moodlers, especially godaddy hosting users.

There has been a bug in godaddy provided moodle package. This was reported in Tracker at MDL-58890

clilib.php parse error is preventing cron.php from executing. You have to modify line 195 of clilib.php. It has an unexpected "."  in the line die(." ".$text); which prevents cron.php from executing. Changing the line to die($text); allows cron.php to execute.


Average of ratings: Useful (1)