After upgrading to OJS 2.4 I wanted to rebuild the search index, but the script reports an I/O error for every galley PDF. The reason why the files couldn't be opened is quite clear: The path has a "7" where there used to be "public" under previous OJS versions (e.g. /ojs-files/journals/3/articles/3868/7/6868-2647-1-PB.pdf, the file is actually located at /ojs-files/journals/3/articles/3868/public/6868-2647-1-PB.pdf).
Could it be that the problem lies in ArticleFile.inc.php's getFilePath()-function, which returns
- Code: Select all
return Config::getVar('files', 'files_dir') . '/journals/' . $journalId . '/articles/' . $this->getArticleId() . '/' . $this->getFileStage() . '/' . $this->getFileName();
without calling the new fileStageToPath-function of ArticleFileManager.inc.php?