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.

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.

My linux distro uploaded PHP to version 5.3. Unfortunately it was not a smooth update for the operating system, and it got worst for OJS.(http://linguamatica.com)

When looking into the log I get lots of warnings of deprecated calls and strange get_class calls.

But it all ends with this:Sep 22 21:46:04 camelo httpd: PHP Fatal error: Class 'HookRegistry' not found in /home/ambs/OJS/classes/db/DAO.inc.php on line 175

Found somewhere earlier in the log:[Tue Sep 22 23:16:23 2009] [error] [client 93.108.171.131] PHP Warning: Parameter 2 to BlockPlugin::callback() expected to be a reference, value given in /home/ambs/OJS/classes/plugins/HookRegistry.inc.php on line 79

Can you tell us which actions are causing these errors to happen? I believe there are some oddities with OJS and PHP 5.3, but a lot of errors can be overlooked (deprecated calls etc. -- see viewtopic.php?f=8&t=4880). But if you are indeed running into show-stopper errors, please let us know exactly where and when they occur and we can investigate further.

I set:show_stacktrace = Onand changed DAO.inc.php back to its original contents.

but, on the log I just get:[28-Sep-2009 20:25:35] PHP Fatal error: Class 'HookRegistry' not found in /home/ambs/OJS/classes/db/DAO.inc.php on line 175

and nothing interesting in the website.

One easy way to notice things are not working properly is that in the bottom of the page '##journal.issn##: 1647-0818 ' appears, instead of what really should be shown: the journal footer, with Creative Commons logo, and that.

I too am having this problem after the host upgraded to the latest version of PHP. Webhosting is LAMP.

This is the error, and it is preventing login (no errors, just when I type in username and password it reloads the page like nothing happened). Additionally, it shows this error on all OJS pages by default:

Fatal error: Class 'HookRegistry' not found in /home/.../classes/db/DAO.inc.php on line 175

There have been a few PHP 5.3 issues reported against OJS and OCS. I'm not sure if this one is related to Bug 4775, but I've attached a note to it. Please feel free to CC yourself to that report for further updates; if it's a separate bug, it'll likely be reported and handled separately.

There have been a few PHP 5.3 issues reported against OJS and OCS. I'm not sure if this one is related to Bug 4775, but I've attached a note to it. Please feel free to CC yourself to that report for further updates; if it's a separate bug, it'll likely be reported and handled separately.

Cheers, James

Hi James,

Do you know of some temporary fix to get rid of that error splattered on all the different pages?

Great temporary fix - thank you. I'm having the same problem after upgrading to PHP 5.2.11 (note I originally stated that it was 5.3 but after checking the version I found that that was not correct). The Class HookRegistry is not found even though it is where it supposed to be, nobody can log on. This quick fix enables the ojs installation to function, even though it is a pain in the neck, because every time I refresh the screen I get blank 404 error and I have to refresh it again to get the right screen. After logging on or off I get 404 blank screen and refreshing doesn't help - I have to go back a screen and then refresh it. It all acts very unprofessionally and is embarrassing. I sure hope someone will find a real solution for this bug soon (the recent 47.. bug doesn't do any good for this problem).

ambs wrote:Changed line 169 from file classes/db/DAO.inc.php so that the condition is never true:

if ($callHooks === true && checkPhpVersion('4.3.0') && false) {

And things got a little better. No warning, language change works, login works correctly. But I am still having blank pages on some configuration parts...

Last edited by biomat on Fri Nov 06, 2009 6:50 am, edited 1 time in total.