OJS 2.4.8 to 3.1.1-4 Call to a member function getFileId()

@bozana, @asmecher, @NateWr and @mtub could you help with it?

Here is a new topic specific with all stack trace errors on debugging:

We tried to export import content from one to another, but it does’t work too.