Cannot preview unpublished or view published issues - get 404 error

I just published the latest version of our journal and could not preview it before published or view it after publishing. It is returning a 404 error. I am using 3.1.1.0 on a Linux server. Here are the lines from the server log, I have no idea why it is looking for ojs2, nor where to look for that coding. Any help would be greatly appreciated. Thanks!

PHP Warning: Cannot use a scalar value as an array in /ojs/lib/pkp/classes/core/DataObject.inc.php on line 133, referer: http://celt.miamioh.edu/ojs/index.php/JECT/manageIssues

PHP Strict Standards: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in /ojs/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 386, referer: http://celt.miamioh.edu/ojs/index.php/JECT/manageIssues

PHP Strict Standards: Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 19, referer: http://celt.miamioh.edu/ojs/index.php/JECT/manageIssues

PHP Strict Standards: Declaration of CustomBlockPlugin::getEnabled() should be compatible with BlockPlugin::getEnabled($contextId = NULL) in /ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 19, referer: http://celt.miamioh.edu/ojs/index.php/JECT/manageIssues

PHP Warning: Cannot use a scalar value as an array in /ojs/lib/pkp/classes/core/DataObject.inc.php on line 133, referer: http://celt.miamioh.edu/ojs/index.php/JECT/manageIssues

ojs2: 404 Not Found, referer: http://celt.miamioh.edu/ojs/index.php/JECT/manageIssues

Hi @sheardln,

I don’t see any references to ojs2 there; where are you seeing it mentioned?

Regards,
Alec Smecher
Public Knowledge Project Team

Hi Alex,
The last line. Here is the full line from the error log:
[Wed Feb 12 14:59:34 2020] [error] [client 123.45.67.89] ojs2: 404 Not Found, referer: http://celt.miamioh.edu/ojs/index.php/JECT/manageIssues

Hi @sheardln,

Right in front of my face :slight_smile:

That ojs2 reference isn’t a problem (in fact every OJS 3.x installation will report that in a few places). Nor are any of the warnings related to a problem previewing or viewing issues as far as I can see.

Are you using subscription-based publishing?

Regards,
Alec Smecher
Public Knowledge Project Team

No worries. I miss stuff all the time. Speaking of which - we are on a subscription-based publishing. Even though I am an admin, I bet I don’t have a “subscription” - that is probably the issue, isn’t it? Although doesn’t explain why the preview fails before I publish the issue.

Hi @sheardln,

There are a few pieces of OJS’s subscription code that check to see whether things are set up suitably, and if they aren’t, you’ll see a redirect like the one you’re encountering. It would be much nicer if OJS gave you an indication what was happening in cases like this but we haven’t gotten there yet.

OJS’s subscription code has evolved quite a bit since OJS 3.1.1-0 was released so one line of attack could be to upgrade to the latest stable release, if that’s an option for you.

Alternately, are you successfully publishing using subscriptions already, or just experimenting with it? If you haven’t yet been using subscriptions, one common pitfall is to turn on subscriptions but not configure a payment plugin. Make sure a payment plugin is chosen and all of its fields are filled in; that might resolve the issue.

Regards,
Alec Smecher
Public Knowledge Project Team

Thanks, Alex! We are going to upgrade shortly to the newest version. The PHP it required has delayed us. We are just playing around with subscriptions at this point as we use a different system to manage those. OJS is mainly used as a submission tool. Once upgraded, I will take a look at setting up a payment plugin and see if that fixes that issue.
Cheers!