Installation Error OJS Version 3.2.1.1

Greetings! I am going to install OJS Version 3.2.1.1. 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/adodb-mysql.inc.php:461
Stack trace: #0 /home/logicalc/public_html/ojs/lib/pkp/lib/vendor/adodb/adodb-php/adodb.inc.php(683): ADODB_mysql->_connect('localhost', '(removed)', '(removed)', '(removed)')
#1 /home/logicalc/public_html/ojs/lib/pkp/classes/db/DBConnection.inc.php(162): ADOConnection->Connect('localhost', '(removed)', '(removed)', '(removed)', false)
#2 /home/logicalc/public_html/ojs/lib/pkp/classes/db/DBConnection.inc.php(137): DBConnection->connect()
#3 /home/logicalc/public_html/ojs/lib/pkp/classes/db/DBConnection.inc.php(124): DBConnection->initConn()
#4 /home/logicalc/public_html/ojs/lib/pkp/classes/db/DBConnection.inc.php(56): DBConnection->initCustomDBConnection('mysql', 'localhost', '(removed)', '(removed)', '(removed)', false, 'utf8')
#5 /home/logicalc/public_html/ojs/lib/pkp/classes/install/PKPInstall.inc.php(77) in /home/logicalc/public_html/ojs/lib/pkp/lib/vendor/adodb/adodb-php/drivers/adodb-mysql.inc.php 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.

Thanks,
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