OJS 3.1 Upgrading Issue from 3.0.2

I am trying to upgrade from OJS3.0.2 to OJS 3.1 and getting this error
[24-Oct-2017 11:06:03 Etc/GMT] PHP Fatal error: Call to a member function getId() on a non-object in public_html/beta/classes/install/Upgrade.inc.php on line 2476
Any solution for it?


Yep, in my case too.

Hi all,

See Fix genre assignment for upgrades · Issue #2506 · pkp/pkp-lib · GitHub for the relevant Github issue, and watch there for updates.

Alec Smecher
Public Knowledge Project Team

1 Like

Thanks @asmecher and appreciate hard work of OJS team.
Code commit by @Vitaliy at Update Upgrade.inc.php (issue #2506) by Vitaliy-1 · Pull Request #1630 · pkp/ojs · GitHub fixed this error, however, after upgrading two new issue appears -

  1. Few PDF files disappeared from the issue list and article page on frontend. It seems only those files disappeared which were migrated from OJS 2.4.8 to 3.0.2 during earlier upgrade from 2.4.8 to ojs 3.0.2.
  2. Few characters in the article title has been changed after upgrading probably " and , . and other symbols.

Further, I noticed that My Authored Grid has been disappeared (It might be intentional) but if the user is author as well as a reviewer then article authored by the user and article assigned for review will be shown in same grid My Assigned.

Hi @aabahishti

Regarding the first upgrade error with genres having the key = NULL: That patch was not correct – see further discussion in that GitHub issue – you would need to fix your DB table genres.

Regarding the second issue with missing files: it could be connected with the wrong fix of the first one. So could you please change it all to the original situation (clean backup of DB and files), fix the missing keys in your 3.0,2 DB table genres and start the upgrade anew?


1 Like

Thanks @bozana
I updated successfully