OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



rebuildIndex.php doesn't find published galley files

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

rebuildIndex.php doesn't find published galley files

Postby springday » Thu Sep 06, 2012 6:38 am

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?
springday
 
Posts: 111
Joined: Wed Jul 25, 2012 2:56 pm
Location: Munich, Germany

Re: rebuildIndex.php doesn't find published galley files

Postby asmecher » Thu Sep 06, 2012 9:09 am

Hi springday,

Thanks for reporting -- yes, the wrapper call you mentioned is missing. See http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=7855 for a patch.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8905
Joined: Wed Aug 10, 2005 12:56 pm

Re: rebuildIndex.php doesn't find published galley files

Postby springday » Thu Sep 06, 2012 10:32 am

For reporting such bugs, is it preferred I get an account for your bugzilla and directly post them there?

Regards,
Kai
springday
 
Posts: 111
Joined: Wed Jul 25, 2012 2:56 pm
Location: Munich, Germany

Re: rebuildIndex.php doesn't find published galley files

Postby asmecher » Thu Sep 06, 2012 11:23 am

Hi Kai,

All roads lead to Rome and either way is fine with us. If you're pretty sure you know what the bug is and what needs to be fixed, feel free to go right into Bugzilla. If you're not sure whether you're misunderstanding what's supposed to be happening, the forum might be a better place.

Thanks,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8905
Joined: Wed Aug 10, 2005 12:56 pm


Return to OJS Technical Support

Who is online

Users browsing this forum: Bing [Bot], dallibs, Google [Bot] and 9 guests