Dear colleagues,
I’ve been reading about similar issues when upgrading to OJS 3. I am using web interface to upgrade with Firefox. When clicking the upgrade button, I just get a white page.
I uploaded the files for 3.1.2-4 (compressed file downloaded from this site), properly copied public/files_dir/config configuration, AFAIK, and double checked the common issues in the config file and everything seems fine. However, the error log is huge, but I don’t really understand it (sorry, just a user, not IT guy). It says something about deprecated PHP although I can choose several versions in my shared hosting service and I am using 7.3. Full error log:
[08-Feb-2020 10:06:01 UTC] PHP Warning: Constants may only evaluate to scalar values in /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/classes/db/DBConnection.inc.php on line 17
[08-Feb-2020 10:06:02 UTC] PHP Parse error: syntax error, unexpected ‘?’, expecting variable (T_VARIABLE) in /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/classes/notification/PKPNotificationOperationManager.inc.php on line 373
[08-Feb-2020 10:06:36 UTC] PHP Warning: Declaration of InstallHandler::validate($request) should be compatible with PKPHandler::validate($requiredContexts = NULL, $request = NULL) in /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/pages/install/InstallHandler.inc.php on line 120
[08-Feb-2020 10:06:36 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbObject has a deprecated constructor in /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 106
[08-Feb-2020 10:06:36 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbTable has a deprecated constructor in /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 205
[08-Feb-2020 10:06:36 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbIndex has a deprecated constructor in /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 613
[08-Feb-2020 10:06:36 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbData has a deprecated constructor in /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 774
[08-Feb-2020 10:06:36 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbQuerySet has a deprecated constructor in /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 959
[08-Feb-2020 10:06:36 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; adoSchema has a deprecated constructor in /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 1217
[08-Feb-2020 10:06:36 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADODB_Cache_File has a deprecated constructor in /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/lib/adodb/adodb.inc.php on line 263
[08-Feb-2020 10:06:36 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADOConnection has a deprecated constructor in /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/lib/adodb/adodb.inc.php on line 359
[08-Feb-2020 10:06:36 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADORecordSet has a deprecated constructor in /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/lib/adodb/adodb.inc.php on line 2921
[08-Feb-2020 10:06:36 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADORecordSet_array has a deprecated constructor in /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/lib/adodb/adodb.inc.php on line 3939
[08-Feb-2020 10:06:36 UTC] PHP Warning: Declaration of InstallForm::execute() should be compatible with Form::execute(…$functionArgs) in /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/classes/install/form/InstallForm.inc.php on line 20
[08-Feb-2020 10:06:36 UTC] PHP Warning: Declaration of UpgradeForm::execute() should be compatible with Form::execute(…$functionArgs) in /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/classes/install/form/UpgradeForm.inc.php on line 63
[08-Feb-2020 10:06:38 UTC] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /home/qpgxhmx5vzrl/public_html/ojs/cache/t_compile/e8ea13aa559bf8604ca823015b397a28d8666486^28682bb3d6b6e750ebd3d458abc8f92b4da9ea9f_0.app.headerusernav.tpl.php on line 136
[08-Feb-2020 10:07:02 UTC] PHP Warning: Declaration of InstallHandler::validate($request) should be compatible with PKPHandler::validate($requiredContexts = NULL, $request = NULL) in /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/pages/install/InstallHandler.inc.php on line 120
[08-Feb-2020 10:07:02 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbObject has a deprecated constructor in /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 106
[08-Feb-2020 10:07:02 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbTable has a deprecated constructor in /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 205
[08-Feb-2020 10:07:02 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbIndex has a deprecated constructor in /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 613
[08-Feb-2020 10:07:02 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbData has a deprecated constructor in /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 774
[08-Feb-2020 10:07:02 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbQuerySet has a deprecated constructor in /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 959
[08-Feb-2020 10:07:02 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; adoSchema has a deprecated constructor in /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 1217
[08-Feb-2020 10:07:02 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADODB_Cache_File has a deprecated constructor in /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/lib/adodb/adodb.inc.php on line 263
[08-Feb-2020 10:07:02 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADOConnection has a deprecated constructor in /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/lib/adodb/adodb.inc.php on line 359
[08-Feb-2020 10:07:02 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADORecordSet has a deprecated constructor in /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/lib/adodb/adodb.inc.php on line 2921
[08-Feb-2020 10:07:02 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADORecordSet_array has a deprecated constructor in /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/lib/adodb/adodb.inc.php on line 3939
[08-Feb-2020 10:07:02 UTC] PHP Warning: Declaration of InstallForm::execute() should be compatible with Form::execute(…$functionArgs) in /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/classes/install/form/InstallForm.inc.php on line 20
[08-Feb-2020 10:07:02 UTC] PHP Warning: Declaration of UpgradeForm::execute() should be compatible with Form::execute(…$functionArgs) in /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/classes/install/form/UpgradeForm.inc.php on line 63
[08-Feb-2020 10:07:03 UTC] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /home/qpgxhmx5vzrl/public_html/ojs/cache/t_compile/e8ea13aa559bf8604ca823015b397a28d8666486^28682bb3d6b6e750ebd3d458abc8f92b4da9ea9f_0.app.headerusernav.tpl.php on line 136
[08-Feb-2020 10:07:12 UTC] PHP Warning: Declaration of InstallHandler::validate($request) should be compatible with PKPHandler::validate($requiredContexts = NULL, $request = NULL) in /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/pages/install/InstallHandler.inc.php on line 120
[08-Feb-2020 10:07:12 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbObject has a deprecated constructor in /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 106
[08-Feb-2020 10:07:12 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbTable has a deprecated constructor in /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 205
[08-Feb-2020 10:07:12 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbIndex has a deprecated constructor in /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 613
[08-Feb-2020 10:07:12 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbData has a deprecated constructor in /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 774
[08-Feb-2020 10:07:12 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbQuerySet has a deprecated constructor in /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 959
[08-Feb-2020 10:07:12 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; adoSchema has a deprecated constructor in /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 1217
[08-Feb-2020 10:07:12 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADODB_Cache_File has a deprecated constructor in /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/lib/adodb/adodb.inc.php on line 263
[08-Feb-2020 10:07:12 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADOConnection has a deprecated constructor in /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/lib/adodb/adodb.inc.php on line 359
[08-Feb-2020 10:07:12 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADORecordSet has a deprecated constructor in /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/lib/adodb/adodb.inc.php on line 2921
[08-Feb-2020 10:07:12 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADORecordSet_array has a deprecated constructor in /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/lib/adodb/adodb.inc.php on line 3939
[08-Feb-2020 10:07:12 UTC] PHP Warning: Declaration of InstallForm::execute() should be compatible with Form::execute(…$functionArgs) in /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/classes/install/form/InstallForm.inc.php on line 20
[08-Feb-2020 10:07:12 UTC] PHP Warning: Declaration of UpgradeForm::execute() should be compatible with Form::execute(…$functionArgs) in /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/classes/install/form/UpgradeForm.inc.php on line 63
[08-Feb-2020 10:07:12 UTC] PHP Deprecated: Non-static method PKPRequest::isPost() should not be called statically in /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/classes/form/validation/FormValidatorPost.inc.php on line 38
[08-Feb-2020 10:07:12 UTC] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically in /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/classes/core/PKPRequest.inc.php on line 398
[08-Feb-2020 10:07:12 UTC] PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/lib/adodb/drivers/adodb-mysql.inc.php:456
Stack trace:
#0 /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/lib/adodb/adodb.inc.php(558): ADODB_mysql->_connect(‘localhost’, ‘qpgxhmx_ojs’, ‘1YQ609oBkN05Gpa…’, ‘qpgxhmx_ojs’)
#1 /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/classes/db/DBConnection.inc.php(162): ADOConnection->Connect(‘localhost’, ‘qpgxhmx_ojs’, ‘1YQ609oBkN05Gpa…’, ‘qpgxhmx_ojs’, false)
#2 /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/classes/db/DBConnection.inc.php(137): DBConnection->connect()
#3 /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/classes/db/DBConnection.inc.php(94): DBConnection->initConn()
#4 /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/classes/db/DBConnection.inc.php(53): DBConnection->initDefaultDBConnection()
#5 /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/classes/db/DBConnection.inc.php(238): DBConnection->__construct()
#6 /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/classes/db/DBConnection.i in /home/qpgxhmx5vzrl/public_html/ojs/lib/pkp/lib/adodb/drivers/adodb-mysql.inc.php on line 456
I just don’t know what to do. Any help will be appreiated.
Best,
Daniel