I’m in the process of transferring from one hosting company to another. I am testing my website on the new host before adjusting name servers. Files were restored from a full cPanel backup.
I get an Http 500 error when trying to access any ojs page.
The error log in the ojs directory shows the following:
[22-Jan-2019 08:48:08 Europe/London] PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/*******/public_html/ojs/lib/pkp/lib/adodb/drivers/adodb-mysql.inc.php:456
Stack trace:
#0 /home//public_html/ojs/lib/pkp/lib/adodb/adodb.inc.php(558): ADODB_mysql->_connect(‘localhost’, '’, , ‘_ojs2’)
#1 /home//public_html/ojs/lib/pkp/classes/db/DBConnection.inc.php(144): ADOConnection->Connect(‘localhost’, '’, *******, *******’, false)
#2 /home/*******/public_html/ojs/lib/pkp/classes/db/DBConnection.inc.php(119): DBConnection->connect()
#3 /home/*******/public_html/ojs/lib/pkp/classes/db/DBConnection.inc.php(76): DBConnection->initConn()
#4 /home/*******/public_html/ojs/lib/pkp/classes/db/DBConnection.inc.php(52): DBConnection->initDefaultDBConnection()
#5 /home/*******/public_html/ojs/lib/pkp/classes/db/DBConnection.inc.php(220): DBConnection->__construct()
#6 /home/*******/public_html/ojs/lib/pkp/classes/core/PKPApplication.inc.php(158): DBConnection::getInstance()
#7 in /home/*******/public_html/ojs/lib/pkp/lib/adodb/drivers/adodb-mysql.inc.php on line 456
[I’ve blanked out a few bits for obvious reasons]
I’m running OJS v3.0.2.0
Server OS: Linux
Apache version: 2.4.37
PHP version: 5.6.39
The website is on a shared IP on both old and new hosting company.
Does anyone have any suggestions of how to resolve this? I’m not technical!