General help

 
 
Picture of Axel Kammerer
Cronjob produces an error
 

After Upgrading to 2.5.2 the CronJob does not run through and cron error logging says:

 
Content-type: text/html
<br />
<b>Parse error</b>:  syntax error, unexpected '{' in <b>/homepages/4/d488745907/htdocs/emee/public/moodle/lib/setup.php</b> on line <b>544</b><br />


The wget Cronjob and http version works fine ...

Axel

 .


 

 
Average of ratings: -
Picture of amit gupta
Re: Cronjob produces an error
 

Hi Axel,

It seems that in /homepages/4/d488745907/htdocs/emee/public/moodle/lib/setup.php, an extra '{' has been added accidentally.

Try making the necessary changes and restart the cron service.

Hope it helps !!!!

Amit

 
Average of ratings: -
Picture of Axel Kammerer
Re: Cronjob produces an error
 

Hi Amit, thnxs for you help.
Of course I looked up line 544 in lib/setup.php and everything was Okay. The problem was somehow more tricky.

The cron was of course running in the shell and the server uses php 4.4 for the shell even though the apache uses 5.4. Took me a while to figure that out but once I changed the php path for the shell to reflect version 5.4 everything ran smooth.

Axel

 

 
Average of ratings: -