[Solved] OJS3 upgrade 3.0.0.0 - 3.1.2 ended up fatal error notification

Actually i am not too familiar with PHP code, but I try to figured out again by take a closer look on stopped upgrade step.

Some steps that I have tried:

  1. Taking a look to Upgrade.inc.php file on line 1721, and i figured it out that this problem actually similar to this thread (i’m sorry not too deep search on this forum :see_no_evil: ). But i don’t see any matched solution for me from that thread. On my case, all journals listed on my existing OJS are also have Journal manager with role_id = 16

  2. Look for an upgrade script that contains convertCommentsToEditor or similar word and i found 3.0.0_preupdate_commentsToEditor.xml on ~/ojs/classes/install/ folder.
    It seems that the xml file is trying to copy several columns on submissions table to a temporary submissions_tmp table, but i think it just stopped by the fatal errror produced during the upgrade process . cmiiw :wink:

  3. Browse the submission_tmp table through phpmyadmin, and i found a submission_id = 328 with NULL value at date_submitted column.
    submissions_tmp
    I know that submissions_tmp table is just a temporary table during upgrade, so i can’t edit the value directly.
    So i managed to find submission_id = 328 on submissions table, and filled out the submitted_time with the closest(estimated) time based on other row value.
    submissions

  4. I deleted the submissions_tmp table because later when the upgrade process is running, this table will be regenerated with new data.

  5. Run the upgrade command from cli, and guess what, It WORKS! :grinning:
    I know it was a strange issue and i don’t have any idea with it, but at least this solution worked on my upgrade problem.
    successfully_upgraded

Thanks :slightly_smiling_face: