Ojs-2.4.8 blank upgrade server php7

[Tue Dec 12 09:45:16.765295 2017] [fcgid:warn] [pid 12258:tid 2890844992] [client 192.168.55.90:57188] mod_fcgid: stderr: PHP Deprecated: Non-static method PKPApplication::defineExposedConstant() should not be called statically in /home/ejr/public_html/lib/pkp/classes/core/PKPApplication.inc.php on line 545

[Tue Dec 12 09:45:16.765329 2017] [fcgid:warn] [pid 12258:tid 2890844992] [client 192.168.55.90:57188] mod_fcgid: stderr: PHP Deprecated: Non-static method PKPApplication::getExposedConstants() should not be called statically in /home/ejr/public_html/lib/pkp/classes/core/PKPApplication.inc.php on line 513

[Tue Dec 12 09:45:16.765336 2017] [fcgid:warn] [pid 12258:tid 2890844992] [client 192.168.55.90:57188] mod_fcgid: stderr: PHP Fatal error: Cannot use ‘String’ as class name as it is reserved in /home/ejr/public_html/lib/pkp/classes/core/String.inc.php on line 57

Hi @khairil_alkudus

In a stack with PHP7 you will need adjust in your config.inc.php your database driver parameter from “mysql” to “mysqli”.

Regards,
Israel Cefrin
Public Knowledge Project Team

Hi @khairil_alkudus,

Currently OJS 2.4.x won’t work with PHP7 – there’s a new PHP7 class called String which conflicts with the String class that’s already included in OJS 2.4.x.

OJS 3.x has renamed String to PKPString so it’ll work with PHP7.

We’re not sure yet whether we’ll back-port the PHP7 changes to OJS 2.x, but in the meantime, I would suggest either using PHP5.x or, better still, upgrading to OJS3.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher

Would their be someone that we could approach to assist in the performing the changes required to ensure OJS 2.x works on PHP7. Possibly you have decided to back-port changes… any update will be appreciated.

Regards, Trudie