404 error on publication files after upgrade

After upgrading from version 2.4.6 to 3.3.0.5 and using ftfy to correct encoding issues on the database some articles are returning a 404 error when trying to access their file. I’ve verified and the files exist under the specified files folder and when reading the error log I’m viewing the following error the following error is shown:

[29-Apr-2021 22:47:12 America/Mexico_City] ojs2: 404 Not Found

I’m missing something in the config.inc.php or what should I do to fix this.