You are viewing the PKP Support Forum | PKP Home Wiki

Installation Problems

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
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.

Installation Problems

Postby gunkel » Thu Jan 18, 2007 12:56 pm

I am encountering an installation problem that has been reported on this forum in a number of circumstances. Like sourena (post on 19 Aug 2006), I am hosting with ipowerweb.com And the version of PHP currently installed on the sever is 4.4.1.

Here's the error message that is displayed in the browser (you've probably seen it before):

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

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

Warning: Cannot modify header information - headers already sent by (output started at /home/zizekstu/public_html/ijzs/classes/core/Registry.inc.php:38) in /home/zizekstu/public_html/ijzs/classes/core/Request.inc.php on line 33

According to posts on this forum, these errors will not impede OJS from functioning properly and should simply be disabled. I have tried adding the suggested line in index.php:

ini_set('display_errors', E_ALL ^ E_NOTICE);

This did not work. So I then tried to use the error_reporting() function in the same file. Same results.

And here's the really crazy part of this all. I have another account with ipowerweb.com and OJS installed on it without any problems. Granted this account is on another server running PHP 4.4.2. But I've run phpinfo() on both accounts and the configurations look to be identical.

So I really am at a loss as to what to do at this point. Can anyone help?
Posts: 10
Joined: Thu Jan 18, 2007 12:43 pm

Postby gunkel » Thu Jan 18, 2007 1:03 pm

Thanks so much for your quick reply. Unfortunately, I've already tried to add an "@" before the line in question. And I get a Parse Error, specifically the following:

Parse error: parse error, unexpected T_RETURN in /home/zizekstu/public_html/ijzs/classes/core/Registry.inc.php on line 38

And as you can guess, line 38 is the line to which I added the "@"

This is really putting my php knowledge to the test. And I am clearly not succeeding.

Any thoughts?
Posts: 10
Joined: Thu Jan 18, 2007 12:43 pm

Postby asmecher » Thu Jan 18, 2007 1:04 pm

Hi David,

Strange; off the top of my head, this could be caused by the Zend optimizer. If installed and running, it sometimes erroneously optimizes references. Try adding a "@" character at the beginning of the indicated line numbers; this will generally suppress error messages.

Alec Smecher
Open Journal Systems Team
Don't miss the First International PKP Scholarly Publishing Conference
July 11 - 13, 2007, Vancouver, BC, Canada
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Return to OJS Technical Support

Who is online

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