OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



errors in runScheduledTasks execution

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

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

errors in runScheduledTasks execution

Postby delong » Wed Feb 22, 2006 10:42 am

This has me a bit puzzled since I upgraded to 2.1. I get this output every night from running my runScheduledTasks cronjob:


Notice: Only variable references should be returned by reference in /home/extra3/public_html/ojs/classes/core/Registry.inc.php on line 38


I believe this is the section containing line 38:

/**
* Get the value of an item in the registry.
* @param $key string
* @return mixed
*/
function &get($key) {
$registry = &Registry::getRegistry();

$result = null;
if (isset($registry[$key])) $result = &$registry[$key];
return $result;
}


I don't know what it is complaining about. :/
delong
 
Posts: 13
Joined: Thu Dec 01, 2005 3:17 pm

Postby asmecher » Wed Feb 22, 2006 11:06 am

Hi delong,

This sort of thing has been caused in the past by a buggy version of Zend optimizer. Try disabling the optimizer, if you're running it, and see if the problem goes away -- if so, you might consider upgrading your optimizer.

Regards,
Alec Smecher
Open Journal Systems Team
asmecher
 
Posts: 9214
Joined: Wed Aug 10, 2005 12:56 pm


Return to OJS Technical Support

Who is online

Users browsing this forum: No registered users and 4 guests

cron