An unexpected error occurred. You may have been logged out. Please reload the page and try again

Hi @Sridhar_Gutam,

Check your browser’s developer tools – I suspect the request that attempts to save the settings is being mistakenly intercepted by a security tool on your server. The response code will indicate if this is the case.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @1118

Similar issues were are also facing. Its not allowing any admin actions: saving the content edited on the website, publication of issues, editing of the articles added to the issues etc.

We are not able to log into physical servers right now but our server admin will look for the error logs and post soon.

Dear Sir,

I also have the same issue after upgrading to 3.2.0.-1. I am unable to save any edits in the metadata of article. I pressed F12 after I pressed the save button and got the error message given below.

Please see below the error message from the browser after pressing F12. Kindly resolve the issue as early as possible as we are unable to publish any issue and also it is not possible to revert back (downgrade) to previous version of OJS.

jquery.js?v=3.2.0.1:9725 [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help, check https://xhr.spec.whatwg.org/.
send @ jquery.js?v=3.2.0.1:9725
tinymce.js?v=3.2.0.1:13938 [Intervention] Slow network is detected. See Intervention: WebFonts use adaptive timeouts to take fallback fonts - Chrome Platform Status for more details. Fallback font will be used while loading: http://www.scigreen.com/lib/pkp/lib/vendor/tinymce/tinymce/skins/lightgray/fonts/tinymce.woff
/index.php/JBPT/api/v1/submissions/58/publications/52:1 Failed to load resource: the server responded with a status of 405 (Method Not Allowed)
DevTools failed to parse SourceMap: http://www.scigreen.com/lib/pkp/lib/vendor/tinymce/tinymce/skins/lightgray/skin.min.css.map

1 Like

We did not have time to wait for a solution to this problem, so we resumed our backup copy of the site with version OJS 3.1.2.1

Hi @Editor_JBPT,

This is a helpful clue:

Failed to load resource: the server responded with a status of 405 (Method Not Allowed)

OJS doesn’t make this kind of response by itself, so I suspect your web server is blocking the PUT request that OJS uses to save the settings page. I’d suggest reviewing your web server’s configuration, and perhaps its security log if it has one, to ensure that PUT requests are allowed.

Regards,
Alec Smecher
Public Knowledge Project Team

HI asmecher, Thanks a lot for your reply to enable the PUT requests in my web server. I have asked my web hosting company to enable PUT requests to my website in the server. They have enabled it. Meanwhile, I have downgraded my OJS version to 3.1.2.1 to publish recent issue. So, now, I am unable to test it. I will upgrade my OJS to 3.2.0.-1 again and test soon. However, your suggestion solved my another problem [Texture plugin - Not saving the edits]. Many Thanks.

1 Like

We are facing the same problem whenever we try to publish a submission immediately, when we schedule it for the next day the status of the article changes to “scheduled” but the day passes and the article doesn’t get published on the website. can you please help?

Hi @pkp,

This is the same issue you posted at Submission scheduled but not published, correct? Please don’t double-post; it clutters the forum.

Regards,
Alec Smecher
Public Knowledge Project Team

I have got the same issue. I am using ojs 3.2.0-2. PHP 7.3 and IIS.
Here is the screenshot of Settings->Website
I am not able to save any changes in this section. Kindly guide accordingly @asmecher
image

Another look at the network tab on the same page. I am getting this :
image

Here are the request and response headers:

image

In google chrome: (I have enabled PUT verbs in the website handler mapping for php)
image
Any Ideas? @asmecher

Hi @Farhan_Abbas,

The 405 error is something you’ll have to fix at your web server level; the request is being blocked by your server before it even gets to OJS.

Regards,
Alec Smecher
Public Knowledge Project Team

Trying to find a solution for that… did not face any such issues before… hopefully will get a work around…

Hi there,

I’ve been having the same problem - can’t save any changes and the system keeps coming up with this message about an unexpected error. I contacted my hosting provider and explained that it might be the 405 error (PUT requests blocked by the server), and the tech support fixed it. Unfortunately, this didn’t solve the problem. If I’m not mistaken, this is the line from the log:

07

Hi @hobbitelanor,

Double-check to make sure your PHP meets the minimum requirements.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher, thank for your reply. My hosting is currently running on PHP 7.3.18. Could you please point me to the list of php requirements? It’s just that everything I’ve been using as a reference so far has been in conformity with the PHP settings on my server. Thanks again

Hi @hobbitelanor,

PHP 7.3 should be fine – but are you sure that’s what’s running OJS? Sometimes CPanel can run several versions of PHP and it can be ambiguous which is actually running. Could you verify with a phpinfo script?

Regards,
Alec Smecher
Public Knowledge Project Team

Hi,
After upgrading to OJS 3.x, I also faced this error message (in the title) and unable to save changes at the Site Administration page.
This error seems typically occuring on systems having multiple journals with their individual domains on a single OJS installation. If rewrite is enabled, and index.php removed via mod_rewrite.
I can’t edit the journals from site administration page (the page that we create journals).
I can change settings of the journals on the main domain (if they don’t have their own domain). I can also change every setting of Journals when I logged in using Journal’s domain.
To me, it seems arising from;

Access to XMLHttpRequest at 'https://www.adlitipbulteni.xyz/atb/$$$call$$$/grid/settings/user/user-grid/fetch-grid?_=1593366154357' from origin 'https://journals.akademisyen.xyz' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Since the journal domains (adlitipbulteni.xyz etc…) are alias, I could’nt find a way to insert Header Set Access Controls to the apache conf file for journal domains. Placing a .htaccess file with the code to the public_html of journals.akademisyen.xyz doesn’t have any effect on removing CORS errors.
Any suggesstions?
Best Regards,
I use Webmin panel, PHP 7.4, Apache 2.4.6 on CentOS Linux 7.8.
Screen Shot 2020-06-28 at 20.52.53

Hi @drugurkocak,

See e.g. this Stackoverflow post for some suggestions on getting CORS headers working in .htaccess. I think that’s probably the best place for it.

If adding CORS headers via .htaccess isn’t working, you could also modify the PHP code to add them there. However, you’ll have to look around for the best place to put this – PKPTemplateManager.inc.php and PKPRouter.inc.php might be good places to look.

Regards,
Alec Smecher
Public Knowledge Project Team

1 Like

Hello all, @asmecher and anyone who may be able to help,

We’re migrating to OJS 3 and are having problems with savign administration settings.
Nothing is saved and the “an unexpecte error ocurred. you may have been logged out” message is always displayed.
[update @ 15h35 local time]
Also, we’re unable to send emails… not sure it’s related, but nothing logged in. Error message “There was a problem sending an email message. Please try again later, or contact your system administrator.” is displayed…

Where can we look for the source of the problem to find a fix?

ERROR LOG

[Thu Jul 09 11:33:01.493413 2020] [php7:notice] [pid 363010] [client 192.168.0.240:33606] PHP Notice: Trying to access array offset on value of type null in /var/www/revista.ibict.br/plugins/themes/default/DefaultThemePlugin.inc.php on line 204, referer: http://revista.ibict.br/ciinf?i
[Thu Jul 09 11:33:02.866283 2020] [php7:notice] [pid 363007] [client 192.168.0.240:33622] PHP Notice: Trying to access array offset on value of type null in /var/www/revista.ibict.br/plugins/themes/default/DefaultThemePlugin.inc.php on line 204
[Thu Jul 09 11:33:03.866325 2020] [php7:notice] [pid 363017] [client 192.168.0.240:33627] PHP Notice: Trying to access array offset on value of type null in /var/www/revista.ibict.br/plugins/themes/default/DefaultThemePlugin.inc.php on line 204
[Thu Jul 09 11:33:03.893697 2020] [php7:notice] [pid 363017] [client 192.168.0.240:33627] ojs2: 404 Not Found
[Thu Jul 09 11:33:04.124690 2020] [php7:notice] [pid 363013] [client 192.168.0.240:33628] PHP Notice: Trying to access array offset on value of type null in /var/www/revista.ibict.br/plugins/themes/default/DefaultThemePlugin.inc.php on line 204, referer: https://www.google.com/
[Thu Jul 09 11:33:04.310890 2020] [php7:warn] [pid 363007] [client 192.168.0.240:33622] PHP Warning: Creating default object from empty value in /var/www/revista.ibict.br/cache/t_compile/00a0a0910209607cb33eb0fe6474f30ed7399ed7^52019e87b90081f2c6bfa717994d81ab7712dd1f_0.app.frontendcomponentssearchF.php on line 30
[Thu Jul 09 11:33:04.312366 2020] [php7:warn] [pid 363007] [client 192.168.0.240:33622] PHP Warning: Creating default object from empty value in /var/www/revista.ibict.br/cache/t_compile/00a0a0910209607cb33eb0fe6474f30ed7399ed7^52019e87b90081f2c6bfa717994d81ab7712dd1f_0.app.frontendcomponentssearchF.php on line 30
[Thu Jul 09 11:33:04.368477 2020] [php7:notice] [pid 363009] [client 192.168.0.240:33630] PHP Notice: Trying to access array offset on value of type null in /var/www/revista.ibict.br/plugins/themes/default/DefaultThemePlugin.inc.php on line 204
[Thu Jul 09 11:33:08.526154 2020] [php7:warn] [pid 363013] [client 192.168.0.240:33628] PHP Warning: Creating default object from empty value in /var/www/revista.ibict.br/cache/t_compile/00a0a0910209607cb33eb0fe6474f30ed7399ed7^52019e87b90081f2c6bfa717994d81ab7712dd1f_0.app.frontendcomponentssearchF.php on line 30
[Thu Jul 09 11:33:08.527572 2020] [php7:warn] [pid 363013] [client 192.168.0.240:33628] PHP Warning: Creating default object from empty value in /var/www/revista.ibict.br/cache/t_compile/00a0a0910209607cb33eb0fe6474f30ed7399ed7^52019e87b90081f2c6bfa717994d81ab7712dd1f_0.app.frontendcomponentssearchF.php on line 30
[Thu Jul 09 11:33:14.175693 2020] [php7:error] [pid 363008] [client 192.168.0.13:44302] PHP Fatal error: Uncaught Error: Call to a member function getId() on null in /var/www/revista.ibict.br/plugins/generic/customLocale/CustomLocalePlugin.inc.php:32\nStack trace:\n#0 /var/www/revista.ibict.br/lib/pkp/classes/plugins/PluginRegistry.inc.php(69): CustomLocalePlugin->register()\n#1 /var/www/revista.ibict.br/lib/pkp/classes/plugins/PluginRegistry.inc.php(144): PluginRegistry::register()\n#2 /var/www/revista.ibict.br/lib/pkp/classes/core/Dispatcher.inc.php(132): PluginRegistry::loadCategory()\n#3 /var/www/revista.ibict.br/lib/pkp/classes/core/PKPApplication.inc.php(279): Dispatcher->dispatch()\n#4 /var/www/revista.ibict.br/index.php(68): PKPApplication->execute()\n#5 {main}\n thrown in /var/www/revista.ibict.br/plugins/generic/customLocale/CustomLocalePlugin.inc.php on line 32
[Thu Jul 09 11:33:14.613180 2020] [php7:warn] [pid 363010] [client 192.168.0.240:33606] PHP Warning: Creating default object from empty value in /var/www/revista.ibict.br/cache/t_compile/00a0a0910209607cb33eb0fe6474f30ed7399ed7^52019e87b90081f2c6bfa717994d81ab7712dd1f_0.app.frontendcomponentssearchF.php on line 30, referer: http://revista.ibict.br/ciinf?i
[Thu Jul 09 11:33:14.615819 2020] [php7:warn] [pid 363010] [client 192.168.0.240:33606] PHP Warning: Creating default object from empty value in /var/www/revista.ibict.br/cache/t_compile/00a0a0910209607cb33eb0fe6474f30ed7399ed7^