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

Hello Community

I need help with a problem in my ojs 3.1.1.0.

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.
galley2

galley3

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?

Regards
Cristian

apache return this:

[Mon Feb 18 10:34:36.274728 2019] [:error] [pid 22472] [client 127.0.0.1:41922] ojs2: Invalid revised file id!, referer: http://127.0.0.1/publicaciones/index.php/FAVE/workflow/index/7921/1

and

Screenshot_20190218_104028

Screenshot_20190218_104206

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.