problems w/ php 4.4.0 and OJS 2.0.1

Are you an Editor, Author, or Journal Manager in need of help? Want to talk to us about workflow issues? This is your forum.

Moderators: jmacgreg, michael, vgabler, 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.
ripnix
Posts: 14
Joined: Sat Jul 16, 2005 4:16 am
Location: Portugal
Contact:

problems w/ php 4.4.0 and OJS 2.0.1

Postby ripnix » Fri Jul 22, 2005 2:51 am

Hello again. I've just upgraded my php version to 4.4.0 from the FreeBSD ports tree, as usual, and i'm getting a lot of notices like:

"Only variable references should be returned by reference in... [file] line [lineno]"

Code: Select all

Notice: Only variable references should be returned by reference in /usr/home/mysite/public_html/journal/classes/db/DAO.inc.php on line 46
 
 Notice: Only variables should be assigned by reference in /usr/home/mysite/public_html/journal/classes/session/SessionManager.inc.php on line 145
 
 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /usr/home/mysite/public_html/journal/classes/db/DAO.inc.php:46) in /usr/home/mysite/public_html/journal/classes/session/SessionManager.inc.php on line 56
 
 Notice: Only variable references should be returned by reference in /usr/home/mysite/public_html/journal/classes/core/DataObject.inc.php on line 44
 
 Notice: Only variables should be assigned by reference in /usr/home/mysite/public_html/journal/index.php on line 36
 
 Notice: Only variable references should be returned by reference in /usr/home/mysite/public_html/journal/classes/db/DAO.inc.php on line 46
 
 Notice: Only variable references should be returned by reference in /usr/home/mysite/public_html/journal/classes/site/SiteDAO.inc.php on line 41
 
 Notice: Only variable references should be returned by reference in /usr/home/mysite/public_html/journal/classes/core/DataObject.inc.php on line 44
 
 Notice: Only variable references should be returned by reference in /usr/home/mysite/public_html/journal/classes/db/DAO.inc.php on line 46
 
 Notice: Only variable references should be returned by reference in /usr/home/mysite/public_html/journal/classes/site/SiteDAO.inc.php on line 41
 
 Notice: Only variable references should be returned by reference in /usr/home/mysite/public_html/journal/classes/core/DataObject.inc.php on line 44
 
 Notice: Only variable references should be returned by reference in /usr/home/mysite/public_html/journal/classes/db/DAO.inc.php on line 46
 
 Notice: Only variable references should be returned by reference in /usr/home/mysite/public_html/journal/classes/journal/JournalDAO.inc.php on line 194
 
 Warning: Cannot modify header information - headers already sent by (output started at /usr/home/mysite/public_html/journal/classes/db/DAO.inc.php:46) in /usr/home/mysite/public_html/journal/classes/template/TemplateManager.inc.php on line 152
 
 Notice: Only variable references should be returned by reference in /usr/home/mysite/public_html/journal/classes/core/Registry.inc.php on line 35


I'm testing OJS using MySQL and postgreSQL. These error messages are for postgreSQL installation, but from what could see the errors are the same for MySQL.
Could anyone help me?
Thank you,

Filipe
Last edited by ripnix on Sat Jul 08, 2006 10:16 am, edited 2 times in total.

kevin
Posts: 338
Joined: Tue Oct 14, 2003 8:23 pm
Contact:

Postby kevin » Fri Jul 22, 2005 8:42 am

These notices will be fixed in OJS 2.0.2

In the mean time, you can suppress them by changing:

Code: Select all

error_reporting(E_ALL);


to

Code: Select all

error_reporting(E_ALL & ~E_NOTICE);


in includes/driver.inc.php


Return to “OJS Editorial Support and Discussion”

Who is online

Users browsing this forum: Bing [Bot], Yahoo [Bot] and 1 guest