Ojs - error getFileId() on null in FileLinkAction.inc.php

Hello Community

I need help with a problem in my ojs

I get in php log:

Uncaught Error: Call to a member function getFileId() on null in FileLinkAction.inc.php:46

in when I want upload Production → Gallery, not view option for upload. IF I create te galery empty and after click in “change file” I get this-> see image.


I found this topic [OJS] Uploading a new Galley file and selecting "Change file" corrupts the uploaded file · Issue #2922 · pkp/pkp-lib · GitHub but in ojs 3.0.2 .

some suggestion How could I solve this problem in 3.1.1?


apache return this:

[Mon Feb 18 10:34:36.274728 2019] [:error] [pid 22472] [client] ojs2: Invalid revised file id!, referer:




Hi @cristianviza

There was a problem related to JSON parsing in some circumstances, maybe your issue is associated with it: Submission metadata form: pressing save button triggers browser errors · Issue #4072 · pkp/pkp-lib · GitHub
It should be resolved for the latest stable OJS release.