OJS 3.0.2 getting http error 500 with php 7.0

the shared hosting co just updated the php to 7.0 from 5.6 which resulted in http 500 error

any ideas what my be making this happen?

I have the error log, not sure the best way to include it .

Thanks for your help

Hi @Ant_Pelosi,

OJS 3.0.2 should be PHP 7.x compatible – feel free to post your error log here.

Alec Smecher
Public Knowledge Project Team

Hello @Ant_Pelosi,
PHP 7 requires “mysqli” as database driver in config.ini file. We have been using “mysql” with older php versions.
Can you check that, and if is “mysqli” and still you get the error, you need to see errog log as @asmecher as advised.


Thank you @asmecher and @anupent For the response. Here is a link to error log file https://drive.google.com/file/d/0B2jZn7qixWnvci1sa2V4X2dNM0U/view?usp=sharing

I have now changed the database driver to mysqli and waiting of service provider to switch to php 7.0 to test

All the fatal errors in that log are
Uncaught Error: Call to undefined function mysql_connect()

So I’m guessing @anupent has it right.

1 Like