Fails to open pdf file in the table of contents

I finished migrating to version 3.1.1.2 but when I open any pdf file the page goes blank and I have to download manually

Your update of OJS was not completed successfully, maybe you did not have enough permissions, if you can not solve, I have a php script with which I solved my problem.

Hello Salvador, thank you for helping me, you can pass me the script that you say

You must know the basics of programming with php to be able to execute this script, it is really very simple:

https://drive.google.com/file/d/1kfhjJKKylD5u3IxT4i6lsrjQb4yrC3Gq/view?usp=sharing

download, apply parameters and run it, if your problem is same as me, this file will make the directory names “submission/proof” and will copy files with the name got it from database.