OA article galleys redirect to index after upgrade to 2.3.7

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.
Posts: 13
Joined: Wed Apr 25, 2007 3:15 pm
Location: Winnipeg

OA article galleys redirect to index after upgrade to 2.3.7

Postby sweidman » Wed Aug 08, 2012 1:49 pm

Hi all.

I tried to upgrade a 2.2.0 journal instance to 2.3.7 but was forced to downgrade it again when I encountered problems. Here is the link to the restored 2.2 version:


Before the upgrade, an unauthenticated user could click the link to the pdf galley for an article, and it would display. e.g. any article listed in the articles section


After the upgrade, clicking an article's galley link (as anonymous or with the Reader role) silently redirects to the journal's index page.

The files can nevertheless be viewed as Journal Manager.

I tried to dig into the problem and found that in the validate function (pages/article/ArticleHandler.inc.php:458), the test:

Code: Select all

      if ($issue && $issue->getPublished() && $publishedArticle->getStatus() == STATUS_PUBLISHED) {

fails on getStatus(). Instead of STATUS_PUBLISHED (3), it returns 1, which is (if I'm reading things correctly) STATUS_QUEUED. This causes execution to skip down to the else clause of the if statement at line 531:

Code: Select all

      } else {
         $request->redirect(null, 'index');

which does the redirection. I can short circuit the whole thing by calling setStatus(STATUS_PUBLISHED) just before the if statement at line 458, but that hardly seems like the right solution.

Does anyone know why the 2.2.0->2.3.7 upgrade would cause this to happen? Could I just fix it by setting articles.status to 3 for the articles that are currently set to 1? It looks as if the articles in question have already been through the publication workflow.

Thanks in advance for any assistance.

Syd Weidman

Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Re: OA article galleys redirect to index after upgrade to 2.

Postby asmecher » Fri Feb 27, 2015 1:24 pm

Hi all,

See this thread:
https://pkp.sfu.ca/support/forum/viewto ... =2&t=13717

Alec Smecher
Public Knowledge Project Team

Return to “OJS Technical Support”

Who is online

Users browsing this forum: No registered users and 2 guests