PHP version compatibility OJS 3.0.2.0

Is OJS 3.0.2.0 compatible with PHP 7?

Hi @vvucic,

Yes – there will be various warnings and notices in the error log, but they’re cosmetic (and will be resolved in OJS 3.1 when that is released).

Regards,
Alec Smecher
Public Knowledge Project Team

Do you recommend to upgrade php to version 7 and work on that with OJS 3.0.2.0?

Hi @vvucic,

I would recommend running OJS 3.0.2 on PHP 5.6 or later. If you’re using PHP 5.6, then there should be no need to upgrade to PHP7. OJS 3.0.2 will run on PHP 5.3.7 or newer, but PHP 5.3.x is getting quite old.

Regards,
Alec Smecher
Public Knowledge Project Team

I installed PHP 5.6.30 and checking how it goes. Still have issuesds with using database created and functioning normally in xamp in windows with php 5.6.30.
A lot of hassle.

If we switch ojs 3.0.2 to php7 Error 500 is shown. With php5.6 all runs fine.
Our WebSpace provider will change php version at end of 2018. I hope you can provide a stable ojs until this date.

OJS 3.0.2 works perfectly with latest PHP (7.1.x). Can you look at your error log and post the error here?

I could not found any error log entry.

for Ubuntu: apache2 - Where are the Apache and PHP log files? - Ask Ubuntu

for Windows: error.log inside logs directory inside apache installation folder

Thanks. But we use a provider web-interface to get access to the error log.
with php5.6: File not found [/home/girisoci/public_html/ojs3.0.2/404.shtml]
with php7.1: no entry
in the access log
with php5.6
[10/Aug/2017:08:29:21 +0200] “GET / HTTP/1.1” 302 0 “-”
[10/Aug/2017:08:29:21 +0200] “GET /index.php/ijhdr HTTP/1.1” 200 28380 “-”
[10/Aug/2017:08:29:22 +0200] “GET /~ojs/zacha_ijhdr/iframes/semh2.css HTTP/1.1” 404 618 “http://highdilution.org/index.php/ijhdr
[10/Aug/2017:08:29:22 +0200] “GET /~ojs/zacha_ijhdr/layoutIJHDR/ HTTP/1.1” 404 618 “http://highdilution.org/index.php/ijhdr
[10/Aug/2017:08:29:55 +0200] “GET / HTTP/1.1” 500 0 "
and with php7.1
[10/Aug/2017:08:37:44 +0200] “GET / HTTP/1.1” 500 0

Errors are pointed in error log, not the apache access log.

If you can provide the errors, I or maybe PKP team can help you to identify the cause of the problem.
We use OJS with PHP 7.1 and don’t have any problems, so it is atypical problem.

Hi @asmecher,

I have updated the OJS to 3.1 version but I am still getting PHP warnings and deprecated messaged. Is there something that can be done to clear them?

Thanks,
SreeragCapture

Hi @sreeragm,

We’re working gradually to address these. They’re cosmetic and won’t cause problems. You can suppress them in your PHP configuration.

Regards,
Alec Smecher
Public Knowledge Project Team