OJS 3.0, production galley files not loading

Hi @ajnyga,

Alternately, I suspect it’ll be best to relax the current restriction on the galley files listing to permit both SUBMISSION_FILE_PROOF and SUBMISSION_FILE_SUPPLEMENTARY. You can do this by editing controllers/grid/articleGalleys/ArticleGalleyGridCellProvider.inc.php. Find the code that fetches the file inorder to present the link:

import('lib.pkp.classes.submission.SubmissionFile');
$submissionFile = $submissionFileDao->getLatestRevision(
    $element->getFileId(),
    SUBMISSION_FILE_PROOF,
    $element->getSubmissionId()
);

Change it to:

import('lib.pkp.classes.submission.SubmissionFile');
$submissionFile = $submissionFileDao->getLatestRevision(
    $element->getFileId(),
    null,
    $element->getSubmissionId()
);

Please confirm whether this resolves the issue (you’ll have to reset the file_stage records you changed) and if so I can commit to our code repository.

Regards,
Alec Smecher
Public Knowledge Project Team