[OJS 3.1.1] when I hit Install I am left with blank page

I am unable to install the latest version 3.1.1-2 of ojs.

After I fill out all the necessary blanks when I hit Install I am left with blank page.

What shall I do

Hi @Ismael,

Check your PHP error log for details.

Regards,
Alec Smecher
Public Knowledge Project Team

I don’t understand what the error log is saying.Shall I post it here.

Hi @Ismael,

Yes, post it here. Give it a quick scan first to make sure it doesn’t contain any usernames or passwords (though usually it won’t).

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @Ismael,

The relevant entry from your log is

PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/u119631530/public_html/ejhas/lib/pkp/lib/adodb/drivers/adodb-mysql.inc.php:456

Use the mysqli driver in your installation form, rather than mysql. Your server doesn’t support the mysql driver.

Regards,
Alec Smecher
Public Knowledge Project Team

It has installed but when I clicked on login it says
“Database connection failed!”

Hi @Ismael,

Did you install using the web-based installer or the command-line tool?

Regards,
Alec Smecher
Public Knowledge Project Team

web-based installer. Using chrome

Hi @Ismael,

Check your database credentials in config.inc.php to make sure they’re accurate.

If that doesn’t help, turn on the show_stacktrace option in config.inc.php, then follow the “Login” link again and post the results here.

Regards,
Alec Smecher
Public Knowledge Project Team

after show_stacktrace = on

Database connection failed!
Stack Trace:
File: /home/u119631530/public_html/ejhas/classes/core/Application.inc.php line 38
Function: PKPApplication->__construct()

File: /home/u119631530/public_html/ejhas/lib/pkp/includes/bootstrap.inc.php line 58
Function: Application->__construct()

File: /home/u119631530/public_html/ejhas/index.php line 65
Function: require("/home/u119631530/public_html/ejhas/lib/pkp/includes/bootstrap.in…")

Hi @Ismael,

Are your database credentials in config.inc.php accurate? Essentially this message is saying that OJS can’t connect to the database with the credentials specified there.

Regards,
Alec Smecher
Public Knowledge Project Team

Yes!
But suddenly It started Working.Thanks fro the help