Install ojs PHP version 7.2 , Fatal error: Uncaught Error: Call to undefined function mysql_connect()

Hello ,

After the update ojs from to once i click on current issue will show me error .

Fatal error : Uncaught Error: Call to undefined function mysql_connect() in /data/apps/journalsys/lib/pkp/lib/adodb/drivers/ Stack trace: #0 /data/apps/journalsys/lib/pkp/lib/adodb/ ADODB_mysql->_connect(‘localhost’, ‘ojs’, ‘OJS88@018’, ‘ojs246’) #1 /data/apps/journalsys/lib/pkp/classes/db/ ADOConnection->Connect(‘localhost’, ‘username’, ‘password’, ‘ojs246’, false) #2 /data/apps/journalsys/lib/pkp/classes/db/ DBConnection->connect() #3 /data/apps/journalsys/lib/pkp/classes/db/ DBConnection->initConn() #4 /data/apps/journalsys/lib/pkp/classes/db/ DBConnection->initDefaultDBConnection() #5 /data/apps/journalsys/lib/pkp/classes/db/ DBConnection->__construct() #6 /data/apps/journalsys/lib/pkp/classes/core/ DBConnection::getInstance() #7 /data/apps/journalsys/classes/core/ PKPApplication->__construct() #8 /data/a in /data/apps/journalsys/lib/pkp/lib/adodb/drivers/ on line 456

one more thing i already change the database from mysql to mysqli

someone can help me please to solve this problem


1 Like

in change the driver type to mysqli.

edit: and just as I pressed send, saw that you did that already…

1 Like

Are you 100% sure you edited the and not mistakenly

for sure i update only to mysqli .

i have many issues only one issue it;s not working when i click on current button only show me the error everything working fine only current button if i click the error will appear again .


Very weird. You could of course try to clear the OJS file cache.

Is it possible, that you have some own custom code on the current issue page?
If you access the latest issue through the archive, do you get the same error?

No , only current button when i click will show me the error here is the link , please have a look


you get the same error if you go to Archives and access the latest issue from there. No 26 (2018) | Majmaa Journal

So the problem occurs with only that single issue.

Did you try to empty the OJS file cache?

YES , I cleared data chache , clear template cache.

No thing change :frowning:


I m using the latest version of OJS why show me in the message There is a new version of OJS available!

I was unable to reproduce the mysql error you mention, but the message about a new version is correct. OJS 3.1.2 was recently released:

I am using OJS 3.1.2 so I don’t know if it helps but can confirm it works when driver = mysqli in config file.