Server error accessing non-open-access issues in 3.1.2-3

Problem: 500 http error accessing issues, for which Access is set to Subscription.
What I did:

  1. Clean install of OJS 3.1.2-3, create journal and set basic configurations.
  2. imported sql tables ‘genre_settings’, ‘genres’, ‘section_settings’, ‘sections’ from my production site.
  3. Imported sample issues via native XML plugin from my production site
  4. set ‘The journal will require subscriptions to access some or all of its contents.’ option
  5. for some issues, set access to ‘Subscription’ and choose some open access date.

Browsing Archive, trying to enter protected issue get 500 http error,
for Open Access issues the things are OK.

On my production site with 3.1.2-1 the same issues are shown as expected (with locked pdfs)

Server log message on error:
[Wed Dec 04 13:42:58.628075 2019] [php7:error] [pid 6045] [client ::1:38894] PHP Fatal error: Uncaught Error: Function name must be a string in /var/www/html/vo/ojs/pages/issue/\nStack trace:\n#0 /var/www/html/vo/ojs/pages/issue/ IssueHandler::_setupIssueTemplate(Object(Request), Object(Issue), false)\n#1 /var/www/html/vo/ojs/lib/pkp/classes/core/ IssueHandler->view(Array, Object(Request))\n#2 /var/www/html/vo/ojs/lib/pkp/classes/core/ PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(Request), Array, false)\n#3 /var/www/html/vo/ojs/lib/pkp/classes/core/ PKPPageRouter->route(Object(Request))\n#4 /var/www/html/vo/ojs/lib/pkp/classes/core/ Dispatcher->dispatch(Object(Request))\n#5 /var/www/html/vo/ojs/index.php(68): PKPApplication->execute()\n#6 {main}\n thrown in /var/www/html/vo/ojs/pages/issue/ on line 348, referer: http://localhost./index.php/umzh/issue/archive

Update: This whong behaviour is version-related.
On my laptop, I removed all files but in the ojs directory, unpacked files from 3.1.2-1, ran php upgrade.php upgrade, chown’ed all files to the webserver user, and all works fine.
Repeated the same with 3.1.2-2, and the problem is again there.

Hi @Vasyl_Ostrovskyi,

This is Journals with subscription support cannot publish · Issue #5315 · pkp/pkp-lib · GitHub – there’s a patch attached there that you can apply to fix the problem.

Note that we’ll be releasing a new build shortly to address this.

Alec Smecher
Public Knowledge Project Team