OJS3.1.1.2 ARTICLE_ACCESS_DEFAULT constant not defined


I am getting this error with OJS

PHP Notice: Use of undefined constant ARTICLE_ACCESS_DEFAULT - assumed 'ARTICLE_ACCESS_DEFAULT' in /controllers/grid/toc/TocGridCellProvider.inc.php on line 61 https://github.com/pkp/ojs/blob/master/controllers/grid/toc/TocGridCellProvider.inc.php#L61

@asmecher should that be defined here: https://github.com/pkp/ojs/blob/master/classes/article/PublishedArticle.inc.php#L21 and should it be 0?

Hi @ajnyga,

That should actually be ARTICLE_ACCESS_ISSUE_DEFAULT. I’ve corrected it here: Correct wrong constant name https://forum.pkp.sfu.ca/t/ojs3-1-1-2-art… · pkp/ojs@f14476e · GitHub

Because the undefined constant evaluates to 0, the code works fine – but throws a warning. That’ll be fixed in the next release.

Alec Smecher
Public Knowledge Project Team

1 Like