OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Administrator interface problem after upgrading PHP

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
What to do if you have a technical problem with OCS:

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. Please note that this FAQ is OJS-centric, but most issues are applicable to both platforms.

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 OCS Conference Support and Discussion subforum; if you have a development question, try the OCS Development subforum.

Administrator interface problem after upgrading PHP

Postby larsh » Sat Jul 14, 2012 12:43 pm

I had a functioning installation of OCS 2.3.5 at http://www.DNPsymposium.org. After an upgrade to PHP5, part of the administrator interface is broken, however (other packages were upgraded too as part of a normal debian dist-upgrade, but only PHP5 seems a like candidate for causing the problem).

The front end seems to function well still, but when attempting to edit the organizing team, for example, a blank page is shown (worked earlier). Turning on debugging and the stack-trace option and reloading the blank page gives the following:

Code: Select all
(mysql): SET NAMES 'utf8'   
(mysql): SELECT * FROM sessions WHERE session_id = 'u7dnkj1upjjco2k8oc9holqqq2'   
(mysql): SELECT * FROM users WHERE user_id = 1   
(mysql): SELECT * FROM user_settings WHERE user_id = '1'   
(mysql): select version()   ocs2 has produced an error Message: WARNING: session_start(): Cannot send session cache limiter - headers already sent (output started at /var/ocs_dnpsymposium-2.3.5/lib/pkp/lib/adodb/adodb.inc.php:377) In file: /var/ocs_dnpsymposium-2.3.5/lib/pkp/classes/session/SessionManager.inc.php At line: 60 Stacktrace: Server info: OS: Linux PHP Version: 5.4.4-2 Apache Version: Apache/2.2.22 (Debian) DB Driver: mysql DB server version: 5.5.24-4
(mysql): SELECT * FROM conferences WHERE path = 'DNP'   
(mysql): SELECT * FROM site   
(mysql): SELECT setting_name, setting_value, setting_type FROM plugin_settings WHERE plugin_name = 'CustomBlockManagerPlugin' AND conference_id = '1' AND sched_conf_id = '0'   
(mysql): SELECT setting_name, setting_value, setting_type FROM plugin_settings WHERE plugin_name = 'AnnouncementFeedPlugin' AND conference_id = '1' AND sched_conf_id = '0'   
(mysql): SELECT setting_name, setting_value, setting_type FROM plugin_settings WHERE plugin_name = 'TranslatorPlugin' AND conference_id = '0' AND sched_conf_id = '0'   
(mysql): SELECT setting_name, setting_value, setting_type FROM plugin_settings WHERE plugin_name = 'CustomLocalePlugin' AND conference_id = '1' AND sched_conf_id = '0'   
(mysql): SELECT setting_name, setting_value, setting_type FROM plugin_settings WHERE plugin_name = 'StaticPagesPlugin' AND conference_id = '1' AND sched_conf_id = '0'   
(mysql): SELECT COUNT(*) FROM plugin_settings WHERE plugin_name = 'AcronPlugin' AND setting_name = 'crontab' AND conference_id = 0 AND sched_conf_id = 0   
(mysql): UPDATE plugin_settings SET setting_value = 'a:2:{i:0;a:3:{s:9:\"className\";s:20:\"tasks.ReviewReminder\";s:9:\"frequency\";a:1:{s:4:\"hour\";s:1:\"0\";}s:4:\"args\";a:0:{}}i:1;a:3:{s:9:\"className\";s:32:\"tasks.RegistrationExpiryReminder\";s:9:\"frequency\";a:1:{s:4:\"hour\";s:1:\"0\";}s:4:\"args\";a:0:{}}}', setting_type = 'object' WHERE plugin_name = 'AcronPlugin' AND setting_name = 'crontab' AND conference_id = 0 AND sched_conf_id = 0   
(mysql): SELECT * FROM versions WHERE current = 1   
(mysql): SELECT * FROM versions WHERE current = 1 AND product = 'ocs2'   
(mysql): SELECT * FROM sched_confs WHERE path = '4thDNP' and conference_id = '1'   
(mysql): SELECT COUNT(*) FROM sched_confs WHERE conference_id = '1' AND end_date < now()   
(mysql): SELECT COUNT(*) FROM sched_confs WHERE conference_id = '1' AND start_date < now() AND end_date > now()   
(mysql): SELECT * FROM sched_confs WHERE sched_conf_id = '1'   
(mysql): SELECT setting_name, setting_value, setting_type FROM plugin_settings WHERE plugin_name = 'ManualPayment' AND conference_id = '1' AND sched_conf_id = '1'   
(mysql): SELECT setting_name, setting_value, setting_type FROM plugin_settings WHERE plugin_name = 'AcronPlugin' AND conference_id = '0' AND sched_conf_id = '0'   
(mysql): SELECT COUNT(*) FROM roles WHERE conference_id = 0 AND sched_conf_id = 0 AND user_id = 1 AND role_id = 1   
(mysql): UPDATE sessions SET user_id = 1, ip_address = '87.72.81.158', user_agent = 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0', created = 1342138932, last_used = 1342291702, remember = 0, data = 'userId|s:1:\"1\";username|s:5:\"admin\";' WHERE session_id = 'u7dnkj1upjjco2k8oc9holqqq2'   


Applying the current patches to OCS 2.3.5 did not resolve the problem.

Any help is much appreciated.
larsh
 
Posts: 4
Joined: Sat Jul 14, 2012 12:16 pm

Re: Administrator interface problem after upgrading PHP

Postby larsh » Sat Jul 14, 2012 1:15 pm

More on the same problem:
[Sat Jul 14 22:07:01 2012] [error] [client 87.72.81.158] PHP Fatal error: Call to undefined function session_is_registered() in /var/ocs_dnpsymposium-2.3.5/lib/pkp/classes/session/Session.inc.php on line 64, referer: http://www.dnpsymposium.org/index.php/DNP/index/manager
larsh
 
Posts: 4
Joined: Sat Jul 14, 2012 12:16 pm

Re: Administrator interface problem after upgrading PHP

Postby larsh » Sat Jul 14, 2012 2:17 pm

The session_is_registered()-not-found-message made me realize that this problem had already been addressed:
http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=7544
The patch apparently also works for OCS. Apply it from directory lib/pkp.
larsh
 
Posts: 4
Joined: Sat Jul 14, 2012 12:16 pm

Re: Administrator interface problem after upgrading PHP

Postby bkbk » Fri Jan 10, 2014 6:29 am

thanx a lot, patch applied, problem solved.
bkbk
 
Posts: 2
Joined: Fri Jan 10, 2014 6:13 am


Return to OCS Technical Support

Who is online

Users browsing this forum: No registered users and 3 guests