OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Unsuccessfull installation

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.

Unsuccessfull installation

Postby Miguel Benito » Wed Feb 28, 2007 2:38 am

I try to isntall OJS for a new journal.

I get this answer:
Only variable references should be returned by reference in /home/immig6/public_html/aktuelltommigration/classes/core/Registry.inc.php on line 38

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

I understand that I have to change thi file registry.inc.php but I don't know how.
Miguel Benito
Miguel Benito
 
Posts: 3
Joined: Wed Feb 28, 2007 1:45 am

Headers already sent

Postby ramon » Wed Feb 28, 2007 8:06 am

Miguel,

This is more likely to be a PHP configuration problem.
Check that session.autostart = Off and that output_buffering = On.
ramon
 
Posts: 945
Joined: Wed Oct 15, 2003 6:15 am
Location: Brasí­lia/DF - Brasil

Postby asmecher » Wed Feb 28, 2007 9:38 am

Hi Miguel,

In my experience, if you're using the most recent release (OJS 2.1.1), this is a PHP / Zend Optimizer bug. You'll have to configure PHP to send error messages to a log file rather than the browser; the error messages will still be generated but they won't affect the user.

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

Unsuccessfull installation

Postby Miguel Benito » Wed Feb 28, 2007 12:21 pm

Well, I tried to change the file registry.inc.php
and then I get a new error.

Parse error: syntax error, unexpected ';', expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/immig6/public_html/aom/classes/core/Registry.inc.php on line 63

I could try to "to configure PHP to send error messages to a log file rather than the browser" as Alec suggest. But which file have I to configure to do that?
My knowledge of php is almost null.
Miguel
Miguel Benito
 
Posts: 3
Joined: Wed Feb 28, 2007 1:45 am

Postby asmecher » Wed Feb 28, 2007 12:48 pm

Hi Miguel,

Your modification is incorrect; please return Registry.inc.php to its former state.

You can hide error messages using one of two methods:

1) If you have access to modify your system's php.ini file (i.e. if you're running your own server), you can turn off the "display_errors" setting and turn on the "log_errors" setting; this is recommended for production environments anyway.

2) If you don't have access to modify php.ini, you can add the following statement near the top of index.php (making sure it's inside the <?php tag and outside of any comment blocks):
Code: Select all
ini_set('display_errors', 0);

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


Return to OJS Technical Support

Who is online

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