Installation Error OJS Version

Greetings! I am going to install OJS Version But I receive database error many times.

Error Log:

[31-Jul-2020 17:53:58 UTC] PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/logicalc/public_html/ojs/lib/pkp/lib/vendor/adodb/adodb-php/drivers/
Stack trace: #0 /home/logicalc/public_html/ojs/lib/pkp/lib/vendor/adodb/adodb-php/ ADODB_mysql->_connect('localhost', '(removed)', '(removed)', '(removed)')
#1 /home/logicalc/public_html/ojs/lib/pkp/classes/db/ ADOConnection->Connect('localhost', '(removed)', '(removed)', '(removed)', false)
#2 /home/logicalc/public_html/ojs/lib/pkp/classes/db/ DBConnection->connect()
#3 /home/logicalc/public_html/ojs/lib/pkp/classes/db/ DBConnection->initConn()
#4 /home/logicalc/public_html/ojs/lib/pkp/classes/db/ DBConnection->initCustomDBConnection('mysql', 'localhost', '(removed)', '(removed)', '(removed)', false, 'utf8')
#5 /home/logicalc/public_html/ojs/lib/pkp/classes/install/ in /home/logicalc/public_html/ojs/lib/pkp/lib/vendor/adodb/adodb-php/drivers/ on line 461

Using above error log message, please guide me what I do for successful installation.

Hi @zaffarshah,

Your stack trace accidentally included database credentials – please change those in your database ASAP, and make sure not to post private information for security’s sake.

Try searching the forum for Call to undefined function mysql_connect and I think you’ll find the solution.

Alec Smecher
Public Knowledge Project Team

Can any body fill this OJS form I am stuck. I don’t understand what to do?

After successfully installation of OJS Version 3 I add New Journal and after that now I am unable to view my website. What is the problem I also clear cookies.

1 Like