Upgrade OJS 2.4.8 to OJS 3.1 failed with PHP Fatal error: Call to a member function getContextId() on null in ReviewAssignment.inc.php on line 517

Hi @bozana

Starting with my resulting 3.0.2 DB, I have tried to upgrade it to OJS 3.1.0.1, and then I got the same result, I have got the following Warnings and Error messages:

[data: dbscripts/xml/upgrade/3.1.0_update_a.xml]
[code: Installer Installer::fixGenreIdInFileNames]
PHP Warning:  rename(/srv/iisue_dev/files/journals/81//articles/58450//attachment/58450-1-169156-1-13-20171210.pdf,/srv/iisue_dev/files/journals/81//articles/58450//attachment/58450-1-169156-1-13-20171210.pdf): No existe el fichero o el directorio in /var/www/html/iisue_dev/classes/install/Upgrade.inc.php on line 2490
Unable to move "/srv/iisue_dev/files/journals/81//articles/58450//attachment/58450-1-169156-1-13-20171210.pdf" to "/srv/iisue_dev/files/journals/81//articles/58450//attachment/58450-1-169156-1-13-20171210.pdf".

And after all these Warnings messages, I have got the following Errors messages:

[code: Installer Installer::repairKeywordsAndSubjects]
[code: Installer Installer::enabledSitePlugins]
[code: Installer Installer::moveCSSFiles]
[code: Installer Installer::repairSuppFilesFilestage]
[code: Installer Installer::moveReviewerFiles]
ERROR: Reviewer files with ID 168293 from review assignment 6823 could not be found in the database table submission_files
ERROR: Reviewer files with ID 168947 from review assignment 6953 could not be found in the database table submission_files
PHP Warning:  rename(/srv/iisue_dev/files/journals/81//articles/58586/submission/review/58586-1-169144-1-4-20171206.docx,/srv/iisue_dev/files/journals/81//articles/58586/submission/review/attachment/58586-1-169144-1-5-20171206.docx): No existe el fichero o el directorio in /var/www/html/iisue_dev/classes/install/Upgrade.inc.php on line 2003
ERROR: Unable to move "/srv/iisue_dev/files/journals/81//articles/58586/submission/review/58586-1-169144-1-4-20171206.docx" to "/srv/iisue_dev/files/journals/81//articles/58586/submission/review/attachment/58586-1-169144-1-5-20171206.docx".
PHP Warning:  rename(/srv/iisue_dev/files/journals/81//articles/58620/submission/review/58620-1-169152-1-4-20171208.docx,/srv/iisue_dev/files/journals/81//articles/58620/submission/review/attachment/58620-1-169152-1-5-20171208.docx): No existe el fichero o el directorio in /var/www/html/iisue_dev/classes/install/Upgrade.inc.php on line 2003
ERROR: Unable to move "/srv/iisue_dev/files/journals/81//articles/58620/submission/review/58620-1-169152-1-4-20171208.docx" to "/srv/iisue_dev/files/journals/81//articles/58620/submission/review/attachment/58620-1-169152-1-5-20171208.docx".
[code: Installer Installer::fixAuthorGroup]
[data: dbscripts/xml/upgrade/3.0.0_reviewer_files.xml]
[code: Installer Installer::removeCancelledReviewAssignments]
PHP Fatal error:  Call to a member function getContextId() on null in /var/www/html/iisue_dev/lib/pkp/classes/submission/reviewAssignment/ReviewAssignment.inc.php on line 517

My upgrade process finished with the same error. Do you know how can resolve this problem in my upgrading process, from OJS 2.4.8 to 3.1 or OJS 3.0.2 to 3.1? Do you think that the rows in review_assignments that its submission_id isn’t in articles table, are the cause of the problem?

1 Like