Greetings,
I’m trying to upgrade OJS from 2.4.5 to 3.0.1. Being 3.0.2 in production, it seemed less tricky to upgrade to stable 3.0.1, and therefore minimize problems that might appear. I tested it before in a virtual machine, and with minor problems or translations issues (pt_PT) OJS was functional.
After that i tried in the actual server. I did all the steps in INSTALL/UPGRADE documentation, but i can’t make the upgrade successful, and OJS up and function again.
It’s been 2 weeks and right now i don’t know where to look at or change, or what actions to perform. If its DB problem, users and folders permissions, cron, web server, config.inc, i don’t know. The platform is offline for 2 weeks and users need it (our OJS has almost 50 different journals).
The actual problem is:
- (just to inform) checking upgrade.php delivers:
Code version: 3.0.1.0
Database version: 2.4.5.0
Latest version: 3.0.2.0
- when i run php tools/upgrade.php, the process doesn’t finish because it throws some errors.
upgrade.php log:
[code: Installer Installer::convertSupplementaryFiles]
Warning: Invalid argument supplied for foreach() in /var/www/html/classes/install/Upgrade.inc.php on line 1262
Warning: Invalid argument supplied for foreach() in /var/www/html/classes/install/Upgrade.inc.php on line 1272
these warnings are distributed for about 20 lines ending in:
Warning: Invalid argument supplied for foreach() in /var/www/html/classes/install/Upgrade.inc.php on line 1272
[code: Installer Installer::setFileUploader]
Fatal error: Call to a member function getId() on a non-object in /var/www/html/classes/install/Upgrade.inc.php on line 928
var/log/php_errors.log
[22-Mar-2017 11:23:17 Europe/Lisbon] WARNING: Duplicate potential files for “1730-5002-1-??.docx” in “/home/files/journals/3//articles/1730/”. Taking the first.
[22-Mar-2017 11:23:17 Europe/Lisbon] WARNING: Duplicate potential files for “1730-5004-1-??.docx” in “/home/files/journals/3//articles/1730/”. Taking the first.
[22-Mar-2017 11:23:27 Europe/Lisbon] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/classes/install/Upgrade.inc.php on line 1262
[22-Mar-2017 11:23:27 Europe/Lisbon] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/classes/install/Upgrade.inc.php on line 1272
(…)
[22-Mar-2017 11:23:59 Europe/Lisbon] PHP Fatal error: Call to a member function getId() on a non-object in /var/www/html/classes/install/Upgrade.inc.php on line 928
/var/log/httpd/error_log
after upgrade.php and its fatal error, no lines are added to the web server log.
however, when i access http://our_ojs_baseurl/phpmyadmin, log reports:
[Wed Mar 22 11:27:53 2017] [error] [client----ip------] ojs2: 404 Not Found
[Wed Mar 22 11:27:54 2017] [error] [client-----ip-----] PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/lib/pkp/plugins/generic/usageStats/PKPUsageStatsLoader.inc.php on line 195
[Wed Mar 22 11:27:54 2017] [error] [client -----ip-----] PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/lib/pkp/plugins/generic/usageStats/PKPUsageStatsLoader.inc.php on line 196
(more identical lines…finishing with: )
[Wed Mar 22 11:27:55 2017] [error] [client ----ip------] ] PHP Warning: require_once(/var/www/html/plugins/generic/alm/ArticleInfoSender.inc.php): failed to open stream: No such file or directory in /var/www/html/lib/pkp/includes/functions.inc.php on line 25
[Wed Mar 22 11:27:55 2017] [error] [client -----ip-----] PHP Fatal error: require_once(): Failed opening required ‘/var/www/html/plugins/generic/alm/ArticleInfoSender.inc.php’ (include_path=’.:/var/www/html/classes:/var/www/html/pages:/var/www/html/lib/pkp:/var/www/html/lib/pkp/classes:/var/www/html/lib/pkp/pages:/var/www/html/lib/pkp/lib/adodb:/var/www/html/lib/pkp/lib/phputf8:/var/www/html/lib/pkp/lib/pqp/classes:/var/www/html/lib/pkp/lib/smarty:.:/usr/share/pear:/usr/share/php’) in /var/www/html/lib/pkp/includes/functions.inc.php on line 25
browser window:
404 Not Found
Stack Trace:
File: /var/www/html/lib/pkp/classes/core/PKPPageRouter.inc.php line 203
Function: Dispatcher->handle404()
File: /var/www/html/lib/pkp/classes/core/Dispatcher.inc.php line 134
Function: PKPPageRouter->route(Object(Request))
File: /var/www/html/lib/pkp/classes/core/PKPApplication.inc.php line 227
Function: Dispatcher->dispatch(Object(Request))
File: /var/www/html/index.php line 68
Function: PKPApplication->execute()
Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/lib/pkp/plugins/generic/usageStats/PKPUsageStatsLoader.inc.php on line 195 Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/lib/pkp/plugins/generic/usageStats/PKPUsageStatsLoader.inc.php on line 196 Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/lib/pkp/plugins/generic/usageStats/PKPUsageStatsLoader.inc.php on line 195 (again, warnings repeated several times)
- even with the fatal error, i can access the url but the homepage has no theme, only after clicking on a journal it shows OJS 3 interface. Of course in system info it says the current version is 2.4.5.
I appreciate the help and guidance to solve this issues and i’m available to answer all the questions to “debug” the situation.
Thank you all and sorry for the long post, hope the information sparkles some solution.