Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade from 3.1.1.4 to 3.1.2-1 Error: Blank page #5081

Closed
kallewesterling opened this issue Sep 23, 2019 · 3 comments
Closed

Upgrade from 3.1.1.4 to 3.1.2-1 Error: Blank page #5081

kallewesterling opened this issue Sep 23, 2019 · 3 comments

Comments

@kallewesterling
Copy link

kallewesterling commented Sep 23, 2019

I am now trying to update the OJS version to the most recent stable release but when I upgrade, I end up with a blank page. The PHP error log says:

[23-Sep-2019 16:40:11 Europe/Stockholm] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/lambdanordica.org/public_html/cache/t_compile/e8ea13aa559bf8604ca823015b397a28d8666486^28682bb3d6b6e750ebd3d458abc8f92b4da9ea9f_0.app.headerusernav.tpl.php on line 136
[23-Sep-2019 16:40:12 Europe/Stockholm] PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /var/www/lambdanordica.org/public_html/lib/pkp/lib/adodb/drivers/adodb-mysql.inc.php:456
Stack trace:
#0 /var/www/lambdanordica.org/public_html/lib/pkp/lib/adodb/adodb.inc.php(558): ADODB_mysql->_connect('mysql61.unoeuro...', 'lambdanordica_o...', 'xxxxxxxx', 'lambdanordica_o...')
#1 /var/www/lambdanordica.org/public_html/lib/pkp/classes/db/DBConnection.inc.php(151): ADOConnection->Connect('mysql61.unoeuro...', 'lambdanordica_o...', 'xxxxxxxx', 'lambdanordica_o...', false)
#2 /var/www/lambdanordica.org/public_html/lib/pkp/classes/db/DBConnection.inc.php(126): DBConnection->connect()
#3 /var/www/lambdanordica.org/public_html/lib/pkp/classes/db/DBConnection.inc.php(83): DBConnection->initConn()
#4 /var/www/lambdanordica.org/public_html/lib/pkp/classes/db/DBConnection.inc.php(52): DBConnection->initDefaultDBConnection()
#5 /var/www/lambdanordica.org/public_html/lib/pkp/classes/db/DBConnection.inc.php(227): DBConnection->__construct()
#6 /var/www/lambd in /var/www/lambdanordica.org/public_html/lib/pkp/lib/adodb/drivers/adodb-mysql.inc.php on line 456

The PHP version on the server where I'm trying to install the system is 7.3.9.

@kallewesterling
Copy link
Author

Looks like the mysql driver has been discontinued in php7: ADOdb/ADOdb#310

@kallewesterling
Copy link
Author

#1118 had the solution for me.

@suprayogi20
Copy link

open config.inc.php on your ojs
and
change script
[database]
driver = mysql
to
[database]
driver = mysqli

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants