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
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

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: 10015
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: 10015
Joined: Wed Aug 10, 2005 12:56 pm


Return to OJS Technical Support

Who is online

Users browsing this forum: Bing [Bot] and 2 guests