Hello there. Looks like I’m facing the same failure when upgrading as other users. There seems to be something wrong when upgrading from 2.X to 3.X
PHP 5.6
Can someone help me? Here is the log from the upgrade.
Code version: 3.1.1.2
Database version: 2.4.8.0
Latest version: 3.1.1.2
Database version is older than code version
Run “tools/upgrade.php upgrade” to update
root@server:/dir/where/ojs/is/installed# php tools/upgrade.php upgrade
[pre-install]
[load: upgrade.xml]
[version: 3.1.1.2]
[code: Installer Installer::checkPhpVersion]
[code: Installer Installer::syncSeriesAssocType]
[data: dbscripts/xml/upgrade/2.4.0_preupdate_usageStatistics.xml (skipped)]
[data: dbscripts/xml/upgrade/2.4.0_preupdate_usageStatistics2.xml (skipped)]
[code: Installer Installer::removeReviewEntries]
[data: dbscripts/xml/upgrade/3.0.0_preupdate.xml]
[data: dbscripts/xml/upgrade/3.0.0_adaptTimedViews.xml (skipped)]
[data: dbscripts/xml/upgrade/3.0.0_adaptReferrals.xml]
[data: dbscripts/xml/upgrade/3.0.0_adaptBooksForReview.xml]
[data: dbscripts/xml/upgrade/remove_timed_views_bots.xml (skipped)]
[data: dbscripts/xml/upgrade/3.0.0_preupdate_commentsToEditor.xml]
[data: dbscripts/xml/upgrade/3.1.0_preupdate_review_assignments.xml]
[data: dbscripts/xml/upgrade/3.1.0_preupdate_notes.xml]
[data: dbscripts/xml/upgrade/3.1.0_preupdate_payments.xml]
[data: dbscripts/xml/upgrade/3.1.1_preupdate_citations.xml]
[schema: lib/pkp/xml/schema/common.xml]
[schema: lib/pkp/xml/schema/log.xml]
[schema: lib/pkp/xml/schema/announcements.xml]
[schema: lib/pkp/xml/schema/scheduledTasks.xml]
[schema: lib/pkp/xml/schema/temporaryFiles.xml]
[schema: lib/pkp/xml/schema/metadata.xml]
[schema: lib/pkp/xml/schema/reviews.xml]
[schema: lib/pkp/xml/schema/reviewForms.xml]
[schema: lib/pkp/xml/schema/controlledVocab.xml]
[schema: lib/pkp/xml/schema/submissions.xml]
[schema: lib/pkp/xml/schema/submissionFiles.xml]
[schema: lib/pkp/xml/schema/notes.xml]
[schema: lib/pkp/xml/schema/views.xml]
[schema: lib/pkp/xml/schema/genres.xml]
[schema: lib/pkp/xml/schema/tombstone.xml]
[schema: lib/pkp/xml/schema/rolesAndUserGroups.xml]
[schema: lib/pkp/xml/schema/metrics.xml]
[schema: lib/pkp/xml/schema/views.xml]
[schema: lib/pkp/xml/schema/libraryFiles.xml]
[schema: lib/pkp/xml/schema/navigationMenus.xml]
[schema: dbscripts/xml/ojs_schema.xml]
[data: dbscripts/xml/indexes.xml]
[code: Installer Installer::installDefaultNavigationMenus]
[code: Installer Installer::migrateStaticPagesToNavigationMenuItems]
[code: Installer Installer::migrateSRLocale]
[code: Installer Installer::concatenateIntoAbout]
PHP Warning: Invalid argument supplied for foreach() in /dir/where/ojs/is/installed/classes/install/Upgrade.inc.php on line 2096
PHP Warning: Invalid argument supplied for foreach() in /dir/where/ojs/is/installed/classes/install/Upgrade.inc.php on line 2096
[code: Installer Installer::concatenateIntoMasthead]
PHP Warning: Invalid argument supplied for foreach() in /dir/where/ojs/is/installed/classes/install/Upgrade.inc.php on line 2255
PHP Warning: Invalid argument supplied for foreach() in /dir/where/ojs/is/installed/classes/install/Upgrade.inc.php on line 2255
[code: Installer Installer::migrateCounterPluginUsageStatistics (skipped)]
[code: Installer Installer::migrateTimedViewsUsageStatistics (skipped)]
[code: Installer Installer::migrateDefaultUsageStatistics (skipped)]
[data: dbscripts/xml/upgrade/2.4.0_postUsageStatsMigration.xml (skipped)]
[data: dbscripts/xml/upgrade/2.4.0_postUsageStatsMigration2.xml (skipped)]
[data: dbscripts/xml/upgrade/2.4.0_postCounterMigration.xml (skipped)]
[data: dbscripts/xml/upgrade/2.4.0_postTimedViewsMigration.xml (skipped)]
[data: dbscripts/xml/upgrade/3.0.0_change_assoc_type.xml]
[data: dbscripts/xml/upgrade/3.0.0_change_assoc_type_metrics.xml]
[data: dbscripts/xml/upgrade/3.0.0_settings.xml]
[code: Installer Installer::installDefaultGenres]
[code: Installer Installer::migrateArticleMetadata]
[data: dbscripts/xml/upgrade/3.0.0_update.xml]
[code: Installer Installer::clearDataCache]
[code: Installer Installer::migrateUserRoles]
[code: Installer Installer::fixReviewForms]
[code: Installer Installer::htmlifyEmailTemplates]
[note: docs/release-notes/README-BEACON]
[code: Installer Installer::installEmailTemplate]
[code: Installer Installer::installEmailTemplate]
[code: Installer Installer::installEmailTemplate]
[code: Installer Installer::installEmailTemplate]
[code: Installer Installer::installEmailTemplate]
[code: Installer Installer::installEmailTemplate]
[data: dbscripts/xml/upgrade/3.0.0_scheduledTasks.xml]
[code: Installer Installer::localizeCustomBlockSettings]
[code: Installer Installer::convertEditorDecisionNotes]
[code: Installer Installer::convertQueries]
[code: Installer Installer::migrateFiles]
WARNING: Unable to find a match for “31350-35163-10-PB.html” in “/dir/where/ojs/is/installed/files/journals/3//articles/31350/”. Skipping this file.
WARNING: Unable to find a match for “34186-45541-1-SM.pHp” in “/dir/where/ojs/is/installed/files/journals/3//articles/34186/”. Skipping this file.
WARNING: Unable to find a match for “34250-45685-1-RV.doc” in “/dir/where/ojs/is/installed/files/journals/3//articles/34250/”. Skipping this file.
WARNING: Unable to find a match for “34251-45684-1-SM.doc” in “/dir/where/ojs/is/installed/files/journals/3//articles/34251/”. Skipping this file.
WARNING: Unable to find a match for “34251-45686-1-RV.doc” in “/dir/where/ojs/is/installed/files/journals/3//articles/34251/”. Skipping this file.
WARNING: Unable to find a match for “34302-45865-1-RV.docx” in “/dir/where/ojs/is/installed/files/journals/3//articles/34302/”. Skipping this file.
WARNING: Unable to find a match for “34325-45947-1-RV.doc” in “/dir/where/ojs/is/installed/files/journals/3//articles/34325/”. Skipping this file.
WARNING: Unable to find a match for “34347-46038-1-RV.doc” in “/dir/where/ojs/is/installed/files/journals/3//articles/34347/”. Skipping this file.
PHP Notice: Undefined offset: 1 in /dir/where/ojs/is/installed/classes/install/Upgrade.inc.php on line 958
WARNING: Duplicate potential files for “” in “/dir/where/ojs/is/installed/files/journals/3//articles/34499/”. Taking the first.
PHP Notice: Undefined offset: 1 in /dir/where/ojs/is/installed/classes/install/Upgrade.inc.php on line 958
WARNING: Duplicate potential files for “” in “/dir/where/ojs/is/installed/files/journals/3//articles/34500/”. Taking the first.
PHP Notice: Undefined offset: 1 in /dir/where/ojs/is/installed/classes/install/Upgrade.inc.php on line 958
WARNING: Duplicate potential files for “” in “/dir/where/ojs/is/installed/files/journals/3//articles/34500/”. Taking the first.
PHP Notice: Undefined offset: 1 in /dir/where/ojs/is/installed/classes/install/Upgrade.inc.php on line 958
WARNING: Duplicate potential files for “” in “/dir/where/ojs/is/installed/files/journals/3//articles/34502/”. Taking the first.
PHP Notice: Undefined offset: 1 in /dir/where/ojs/is/installed/classes/install/Upgrade.inc.php on line 958
WARNING: Duplicate potential files for “” in “/dir/where/ojs/is/installed/files/journals/3//articles/34503/”. Taking the first.
PHP Notice: Undefined offset: 1 in /dir/where/ojs/is/installed/classes/install/Upgrade.inc.php on line 958
WARNING: Duplicate potential files for “” in “/dir/where/ojs/is/installed/files/journals/3//articles/34504/”. Taking the first.
PHP Notice: Undefined offset: 1 in /dir/where/ojs/is/installed/classes/install/Upgrade.inc.php on line 958
WARNING: Duplicate potential files for “” in “/dir/where/ojs/is/installed/files/journals/3//articles/34505/”. Taking the first.
PHP Notice: Undefined offset: 1 in /dir/where/ojs/is/installed/classes/install/Upgrade.inc.php on line 958
WARNING: Duplicate potential files for “” in “/dir/where/ojs/is/installed/files/journals/3//articles/34506/”. Taking the first.
PHP Notice: Undefined offset: 1 in /dir/where/ojs/is/installed/classes/install/Upgrade.inc.php on line 958
WARNING: Duplicate potential files for “” in “/dir/where/ojs/is/installed/files/journals/3//articles/34507/”. Taking the first.
PHP Notice: Undefined offset: 1 in /dir/where/ojs/is/installed/classes/install/Upgrade.inc.php on line 958
WARNING: Duplicate potential files for “” in “/dir/where/ojs/is/installed/files/journals/3//articles/34508/”. Taking the first.
PHP Notice: Undefined offset: 1 in /dir/where/ojs/is/installed/classes/install/Upgrade.inc.php on line 958
WARNING: Duplicate potential files for “” in “/dir/where/ojs/is/installed/files/journals/3//articles/34509/”. Taking the first.
PHP Notice: Undefined offset: 1 in /dir/where/ojs/is/installed/classes/install/Upgrade.inc.php on line 958
WARNING: Duplicate potential files for “” in “/dir/where/ojs/is/installed/files/journals/3//articles/34510/”. Taking the first.
PHP Notice: Undefined offset: 1 in /dir/where/ojs/is/installed/classes/install/Upgrade.inc.php on line 958
WARNING: Duplicate potential files for “” in “/dir/where/ojs/is/installed/files/journals/3//articles/34513/”. Taking the first.
WARNING: Unable to find a match for “33653-43722-1-RV.pdf” in “/dir/where/ojs/is/installed/files/journals/2//articles/33653/”. Skipping this file.
WARNING: Unable to find a match for “33843-44335-1-PB.pdf” in “/dir/where/ojs/is/installed/files/journals/2//articles/33843/”. Skipping this file.
[code: Installer Installer::convertSupplementaryFiles]
PHP Fatal error: Call to a member function getStatus() on null in /dir/where/ojs/is/installed/classes/install/Upgrade.inc.php on line 1369
root@server:/dir/where/ojs/is/installed#