OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Cron Job returning errors

Are you responsible for making OCS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, michael, John

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

Cron Job returning errors

Postby swatkins » Wed Feb 06, 2008 10:27 am

I've just set up OCS and the cron job for scheduled tasks. I'm getting a 'headers already sent' error returned in the cron email. Below is the email:

Notice: Undefined index: SCRIPT_NAME in {path-to-ocs}classes/core/Request.inc.php on line 110

Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cookie - headers already sent by (output started at {path-to-ocs}classes/core/Request.inc.php:110) in {path-to-ocs}classes/session/SessionManager.inc.php on line 56

Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at {path-to-ocs}classes/core/Request.inc.php:110) in {path-to-ocs}classes/session/SessionManager.inc.php on line 56


Does anyone know how I can alleviate these problems. I would just set an ob_start(), but this is working with classes. Not sure how to fix this! Thanks for any help!
swatkins
 
Posts: 2
Joined: Wed Feb 06, 2008 10:16 am

Re: Cron Job returning errors

Postby smiri » Wed Feb 06, 2008 4:36 pm

Hi swatkins,

I believe your problem is not having the SCRIPT_NAME set properly. Can you have a look at your phpinfo and see what its value is.

Thanks,
smiri
 
Posts: 183
Joined: Thu Sep 06, 2007 7:01 pm


Return to OCS Technical Support

Who is online

Users browsing this forum: Google [Bot] and 2 guests