Unable to Login into OJS without clearing cache

Hi,

I am facing a cache issue while login into OJS. When I try to log on the first time into the website, I am able to successfully get in. But thereafter, if I try to log-in again after log-out, I am unable to get in unless I clear the browser cache.

Can someone help me with a possible way to fix it without the browser cache clearance?

Thanks,
Sreerag

Hi @sreeragm,

What version of OJS are you using? (Please include this in your posts.)

Can you check your PHP error log for any relevant messages?

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

I am using OJS version 3.0.2. But, the cache issue has been prevalent before upgrading from 2.4.8 version.

I just tried to login again and the issue persists. Please find below the logs for the same:

[25-May-2017 17:47:49 UTC] PHP Strict Standards: Non-static method PKPRequest::_checkThis() should not be called statically in /home/umassded/dev.ojs.lib.umassd.edu/lib/pkp/classes/core/PKPRequest.inc.php on line 715
[25-May-2017 17:47:50 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/umassded/dev.ojs.lib.umassd.edu/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315
[25-May-2017 17:47:50 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/umassded/dev.ojs.lib.umassd.edu/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114
[25-May-2017 17:47:50 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/umassded/dev.ojs.lib.umassd.edu/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315
[25-May-2017 17:47:50 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/umassded/dev.ojs.lib.umassd.edu/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114
[25-May-2017 17:47:50 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/umassded/dev.ojs.lib.umassd.edu/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315
[25-May-2017 17:47:50 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/umassded/dev.ojs.lib.umassd.edu/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114
[25-May-2017 17:47:50 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/umassded/dev.ojs.lib.umassd.edu/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315
[25-May-2017 17:47:50 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/umassded/dev.ojs.lib.umassd.edu/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114
[25-May-2017 17:47:50 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/umassded/dev.ojs.lib.umassd.edu/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315
[25-May-2017 17:47:50 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/umassded/dev.ojs.lib.umassd.edu/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114
[25-May-2017 17:47:50 UTC] PHP Strict Standards: Declaration of PKPLoginHandler::authorize() should be compatible with PKPHandler::authorize($request, &$args, $roleAssignments, $enforceRestrictedSite = true) in /home/umassded/dev.ojs.lib.umassd.edu/lib/pkp/pages/login/PKPLoginHandler.inc.php on line 19
[25-May-2017 17:47:50 UTC] PHP Strict Standards: Declaration of LoginHandler::_setMailFrom() should be compatible with PKPLoginHandler::_setMailFrom($request, $mail, $site) in /home/umassded/dev.ojs.lib.umassd.edu/pages/login/LoginHandler.inc.php on line 19
[25-May-2017 17:47:50 UTC] PHP Deprecated: Non-static method Request::getContext() should not be called statically, assuming $this from incompatible context in /home/umassded/dev.ojs.lib.umassd.edu/lib/pkp/classes/plugins/ThemePlugin.inc.php on line 409
[25-May-2017 17:47:50 UTC] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically, assuming $this from incompatible context in /home/umassded/dev.ojs.lib.umassd.edu/classes/core/Request.inc.php on line 68
[25-May-2017 17:47:50 UTC] PHP Strict Standards: Declaration of CustomBlockPlugin::getSeq() should be compatible with BlockPlugin::getSeq($contextId = NULL) in /home/umassded/dev.ojs.lib.umassd.edu/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 130
[25-May-2017 17:47:50 UTC] PHP Strict Standards: Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /home/umassded/dev.ojs.lib.umassd.edu/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 130
[25-May-2017 17:47:50 UTC] PHP Strict Standards: Declaration of CustomBlockPlugin::getEnabled() should be compatible with BlockPlugin::getEnabled($contextId = NULL) in /home/umassded/dev.ojs.lib.umassd.edu/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 130
[25-May-2017 17:47:50 UTC] PHP Strict Standards: Declaration of CustomBlockPlugin::getContents() should be compatible with BlockPlugin::getContents($templateMgr, $request = NULL) in /home/umassded/dev.ojs.lib.umassd.edu/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 130

Hi @sreeragm,

I’ve just tried a couple of login/logout cycles and it appears to work fine for me. Have you tried another browser? Do you have some kind of browser caching plugin/toolbar installed?

Regards,
Alec Smecher
Public Knowledge Project Team