Software Hosting and Development Services available at PKP Publishing Services
As the developers of Open Journal Systems, Open Conference Systems, Open Harvester Systems, and Open Monograph Press, the PKP team are experts in helping journal managers and conference organizers make the most of their online publishing projects. PKP Publishing Services offers support for:
As a customer of PKP Publishing Services, you will not only receive direct, personalized support from the PKP Development Team, but will be contributing to the ongoing development of the PKP applications. All funds raised by PKP Publishing Services go directly toward enhancing our free, open source software. For more information, please contact us.
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, michael, jheckman, barbarah, btbell, bdgregg, 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.
by osborne » Mon Apr 25, 2011 6:41 pm
Session.inc.php uses the session_is_registered function and related functions, which are deprecated as of PHP5.3.0. Are there plans to replace them?
Martin J. Osborne
-
osborne
-
- Posts: 77
- Joined: Mon Jun 07, 2004 1:24 pm
- Location: Toronto, Canada
by aftavaresjr » Wed Jul 11, 2012 4:59 am
Hello friends, I have a problem with OJS here and I'm not sure solve. If you can help I am immensely grateful.
I was having problems as the variable "session_is_registered" that was interrupted by PHP and could not access the system because of an error with it. I had upgraded from PHP 5.3 to 5.4.
I made the changes suggested here on the forum, comment out the line that contains a call to the function in the file Session.inc.php and it worked, but not everything.
The page view "(page User) Managing Editor -> (settings and tools) configuration" simply does not open anything. It is blank and shows nothing.
I can not see anything in error logs, both apache and php.
Does anyone have a tip or idea of what can be?
thank you
hugs
Alfredo
-
aftavaresjr
-
- Posts: 2
- Joined: Wed Jul 11, 2012 4:37 am
by springday » Thu Jul 26, 2012 1:54 am
I have the same problem as aftavaresjr after upgrading from PHP 5.3 to 5.4. The page BASE_DIR/index.php/fi/manager/setup remains blank. I do not get an error message in the browser and can't find any info in Apache's or PHP's logs.
I've run xdebug to trace the program execution, but being an amateur I can't find the answer to what's going wrong. Anyway, the program run-through is ending with a two calls to "ADODB_mysql->ErrorNo()" from ojs-2.3.7\lib\pkp\classes\db\DAO.inc.php:200 and "mysql_errno(resource(53) of type (mysql link persistent))" from ojs-2.3.7\lib\pkp\lib\adodb\drivers\adodb-mysql.inc.php:515. Dies mysql error-number "resoure(53)" help anything to track down the problem with the deprecated "session_is_registered"-function?
The very last line on the stack trace is "SessionManager->close()" from \ojs-2.3.7\lib\pkp\classes\session\SessionManager.inc.php:0, which returns TRUE.
Best wishes,
Kai
-
springday
-
- Posts: 98
- Joined: Wed Jul 25, 2012 2:56 pm
- Location: Munich, Germany
by springday » Thu Jul 26, 2012 2:10 am
I'm one step (i.e. one error message) further:
Fatal error: Call-time pass-by-reference has been removed in C:\xampp\htdocs\ojs-2.3.7\pages\manager\SetupHandler.inc.php on line 193
So now I wonder if I'm in the right forum at all - is this error related with the disabling of "session_is_registered" or not? Can I change the code line
- Code: Select all
$journal =& $router->getContext(&$request);
to
- Code: Select all
$journal =& $router->getContext($request);
without negative side effects?
-
springday
-
- Posts: 98
- Joined: Wed Jul 25, 2012 2:56 pm
- Location: Munich, Germany
by asmecher » Thu Jul 26, 2012 7:58 am
Hi Kai,
Yes, you can remove the ampersand in that case to fix the warning. I'll file and commit this for the next release. (See
http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=7717 for the same change in patch form.)
Regards,
Alec Smecher
Public Knowledge Project Team
-
asmecher
-
- Posts: 5762
- Joined: Wed Aug 10, 2005 12:56 pm
-
Return to OJS Technical Support
Who is online
Users browsing this forum: aesmith and 4 guests