Hi @knjigor
I am aware you are attempting to upgrade OJS, however this solution for OMP might work, because it is a similar issue:
Best, Israel