The following error pops up all of a sudden: An unexpected error occurred. You may have been logged out. Please reload the page and try again

Hello,

The following error pops up all of a sudden on the all active page: An unexpected error occurred. You may have been logged out. Please reload the page and try again. The site has been working fine. Here are the couple of lines from the PHP error log. Is there way to fix it?

[16-Jan-2023 20:54:51 America/Boise] PHP Warning: Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /home3/theatlas/public_html/atlastjes/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 122
[16-Jan-2023 20:54:54 America/Boise] PHP Warning: Declaration of DRIVERDAO::setOAI(&$oai) should be compatible with PKPOAIDAO::setOAI($oai) in /home3/theatlas/public_html/atlastjes/plugins/generic/driver/DRIVERDAO.inc.php on line 25
[16-Jan-2023 20:54:54 America/Boise] PHP Warning: Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /home3/theatlas/public_html/atlastjes/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 122
[16-Jan-2023 20:54:55 America/Boise] PHP Warning: Declaration of DRIVERDAO::setOAI(&$oai) should be compatible with PKPOAIDAO::setOAI($oai) in /home3/theatlas/public_html/atlastjes/plugins/generic/driver/DRIVERDAO.inc.php on line 25
[16-Jan-2023 20:54:55 America/Boise] PHP Warning: Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /home3/theatlas/public_html/atlastjes/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 122
[16-Jan-2023 20:54:55 America/Boise] PHP Warning: Declaration of DRIVERDAO::setOAI(&$oai) should be compatible with PKPOAIDAO::setOAI($oai) in /home3/theatlas/public_html/atlastjes/plugins/generic/driver/DRIVERDAO.inc.php on line 25
[16-Jan-2023 20:54:55 America/Boise] PHP Warning: Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /home3/theatlas/public_html/atlastjes/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 122
[16-Jan-2023 20:54:55 America/Boise] PHP Warning: Declaration of SubmissionSubmitStep1Form::fetch($request) should be compatible with PKPSubmissionSubmitStep1Form::fetch($request, $template = NULL, $display = false) in /home3/theatlas/public_html/atlastjes/classes/submission/form/SubmissionSubmitStep1Form.inc.php on line 30

Hi @utkug,

Can you please indicate which version of OJS you’re using (e.g. 3.3.0-8)? Please include this information in your posts as it assists with troubleshooting.

Best regards,

Roger
PKP Team

Hello @rcgillis,

The OJS version is 3.1.2.0. Sorry not to include. Thank you for your time.

Utku

Hello @utkug,

Thank you for clarifying. Please note that the version of OJS that you’re using is no longer supported by PKP. I recommend that you upgrade to the newest version of OJS, as it is possible that your issue will be resolved by upgrading. However, other community members may wish to offer assistance.

Upgrading instructions are available in the PKP Administrator’s Guide and as part of our [Upgrade Guide] (https://docs.pkp.sfu.ca/dev/upgrade-guide/).

Information about the latest version of OJS can be found on the PKP Website

-Roger
PKP Team

Hi @utkug,

In addition to Roger’s excellent advice above – the messages you quoted above are just warnings, and aren’t likely to be the cause of the problem you’re encountering. If you look for messages containing “Error” or “Fatal”, you might be able to find something relevant. OJS 3.1.2-x has been around for a long time so it’s very likely that there will already be posts talking about the message you find.

Regards,
Alec Smecher
Public Knowledge Project Team

1 Like