zmedia

OJS 3 Problem uploading files in copyediting



I’m having problems with a single submission, being unable to upload files in the copyediting stage. The file upload modal only shows “Loading” message, but nothing appears. This submission was published in an issue, but it wasn’t really done.

Sometimes also show notification modal error "failed ajax request or invalid json returned".

Then I tried to add this script in file and it worked to solve my problem.

1. controllers/grid/files/copyedit/form/ManageCopyeditFilesForm.inc.php

   -  public function execute($stageSubmissionFiles, $fileStage = null)

  public function execute($stageSubmissionFiles = null, $fileStage = null, ...$functionArgs)

    {

        parent::execute($stageSubmissionFiles, SubmissionFile::SUBMISSION_FILE_COPYEDIT);

    }


2. controllers/grid/files/final/form/ManageFinalDraftFilesForm.inc.php

    -  public function execute($stageSubmissionFiles, $fileStage = null)

   public function execute($stageSubmissionFiles = null, $fileStage = null, ...$functionArgs)

    {

        parent::execute($stageSubmissionFiles, SubmissionFile::SUBMISSION_FILE_FINAL);

    }


3. controllers/grid/files/query/form/ManageQueryNoteFilesForm.inc.php

    - public function execute($stageSubmissionFiles, $fileStage = null)

   + public function execute($stageSubmissionFiles = null, $fileStage = null, ...$functionArgs)

    {

        parent::execute($stageSubmissionFiles, SubmissionFile::SUBMISSION_FILE_QUERY);

    }


4. controllers/grid/files/review/form/ManageReviewFilesForm.inc.php

    -  public function execute($stageSubmissionFiles, $fileStage = null)

    + public function execute($stageSubmissionFiles = null, $fileStage = null, ...$functionArgs)

    {

        parent::execute(

            $stageSubmissionFiles,


The reference i got https://github.com/pkp/pkp-lib/commit/a35d95682115c65e91f5b90eae79fbaa6d053088









Posting Komentar untuk "OJS 3 Problem uploading files in copyediting"