Hello.
I tried to update OJS from 3.1.0 to 3.1.1. But there was a problem with assigning a role to the user. Even the site administrator does not have a role and can not add articles. The problem remained even when trying to install this version from scratch.
This problem is observed in different system configurations:
Hmmm… @1118, do you use the release package or git code? Hmmm… it seems like you did not install everything needed i.e. it seems like you would need to clear cache and do this:
I am not sure what everything is needed when using the release package, thus I will tag @NateWr and @asmecher here – is npm install and run build needed when using the release package?
From the screenshot, it appears that the user role list is loading, but no roles are available. If someone who is having the problem could check their PHP error log as well as the browser console for any error messages, I’ll take a look.
Very interesting…
When I use the Google Chrome browser, it shows the following errors:
In PHP 5.6.26:
In PHP 7.0.11:
And the same error console for both versions PHP on the tab Submission:
But in the Opera browser this error does not exist. Maybe it was really a cache.
But the error when you can not remove the submitted article remained in this version
HI @1118,
If it is working for me (any user) means OJS code should be OK.
I suggest you re-install everything from scratch. Make sure you restore database and file folder from the backup (which was working previously with your old OJS installation).
Also, you increase your Maximum execution time in php setting to atleast 180 seconds.
I wonder if this isn’t caused by the browser caching old Javascript code. Try doing a hard refresh if you encounter this, to see whether that resolves it.
Regards,
Alec Smecher
Public Knowledge Project Team
No objections. WP does something similar, and I know there has been some chat about this effecting proxy setups, but the consensus seems to be that it is better than not having it, and I think it makes sense for our users.
Another approach is to hash the file itself and append that as a query string. That can be good if we want to bust cache between versions at all.
I upgrade OJS to 3.1.1-1 two weeks ago, and when I and two editors enter to the submission list, this appears as a blank page, and only fix that with CTRL + SHIFT + R or SHIFT + F5, two of as solve this at the first day and I was thinking that maybe this not will be a problem in a few days because cache will be deleted but even some days after the upgrade one editor have the same issue…
I have fear about upgrade now to 3.1.1-2 because the journal is more active and has authors and reviewers active all day, what is the recommendation to avoid this issue? I can’t explain to all users that they need use CTRL + SHIFT + R
Here’s a diff showing a small change you can make to add a query string with the current version of OJS to every script and style loaded (eg /style.css?v=3.1.1.0). Then when you update OJS, the version will be bumped and browsers will not rely on the cached data:
We want to keep that milestone as trim as possible, and limited to major bugs. (A side note: if there are no changes to the JS/CSS in a release, you won’t face any issues with cached files.)