Can´t logout from Chrome and Firefox. Ojs 3.0.2

Good afternoon,

I have a problem. I can not log out when accessing via firefox or chrome. When I log out, it continues to appear inside the user panel. With Edge there are no problems. I can only close sessions by forcing them from the admin panel.

Does anyone know why this problem is caused?

Hugs and many thanks!

Any advice to solve this problem?

Hi @jmbarroso,

Are you using any kind of rewriting setup? I suspect this is a cookie problem, possibly with the cookie path. Consider changing your session_cookie_name setting in config.inc.php to something else (this will require all active users to log in again) and see how that affects the situation.

Regards,
Alec Smecher
Public Knowledge Project Team

Many thanks Alec,

It was finally a problem with the .htaccess and is already solved.

Thanks, as always!

I’m having this exact issue where I can’t logout. Even if I expire user sessions. Every time I click logout out, it brings me to the Submissions page.

Every once in a while it allows me to logout. . But usually it does not. I changed the cookie name, however, I can’t not find a .htaccess file??

Can you tell me where you were able to edit an .htaccess file?

Hi @twoarmtom,

A .htaccess file is a way to configure your web server. It’s not supported on all environments and the details will depend on your service provider. See http://www.htaccess-guide.com/ for general information.

Regards,
Alec Smecher
Public Knowledge Project Team

I thought there was a default .htaccess file that would have been installed with the OSJ. There is not one, and I’m not sure how @jmbarroso corrected this issue with one. I’m not sure what to write in a .htaccess file that would fix this issue of not being able to logout of the site when using Chrome.

Hello @twoarmtom,

I am no specialist on this subject. I had an htacces in the root site where I have OJS installed. That is, my htaacces was on www.domain.com and was affecting www.domain.com/ojs. By changing the information in the htacces of www.domain.com I managed to solve the problem.

I apologize that I can not help you more, but it was a long time ago and I was making thousands of changes and I do not remember exactly what the essential change was. As I told you, I am not an expert, but I managed to solve it by asking, researching and testing.

A hug, luck and apology for my English.

HI @jmbarroso,
would you like to share your .htaccess configuration, please? I got same problem…

Hi @simbah,

this is my htaccess in the root folder of OJS.

<FilesMatch ".(html|htm|js|css|php)>
FileETag None
Header unset ETag
Header set Cache-Control “max-age=0, no-cache, no-store, must-revalidate”
Header set Pragma “no-cache”
Header set Expires “Wed, 11 Jan 1984 05:00:00 GMT”
</ FilesMatch>

The space after </ should not be. I had to put it because the editor did not recognize the code.

As I said before I am not an expert. I hope it helps you.

Hugs.

thank you @jmbarroso,
But alas…
it doesn’t work
I really need help right now. Please, someone help me… this is my error log

[26-Jul-2017 16:52:18 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/myusername/public_html/ojs/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114

[26-Jul-2017 16:52:18 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/myusername/public_html/ojs/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315

[26-Jul-2017 16:52:18 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/myusername/public_html/ojs/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114

[26-Jul-2017 16:52:18 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/myusername/public_html/ojs/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315

[26-Jul-2017 16:52:18 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/myusername/public_html/ojs/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114

[26-Jul-2017 16:52:18 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/myusername/public_html/ojs/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315

[26-Jul-2017 16:52:18 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/myusername/public_html/ojs/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114

[26-Jul-2017 16:52:18 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/myusername/public_html/ojs/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315

[26-Jul-2017 16:52:18 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/myusername/public_html/ojs/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114

[26-Jul-2017 16:52:18 UTC] PHP Strict Standards: Declaration of DashboardHandler::authorize() should be compatible with PKPHandler::authorize($request, &$args, $roleAssignments, $enforceRestrictedSite = true) in /home/myusername/public_html/ojs/lib/pkp/pages/dashboard/DashboardHandler.inc.php on line 17

[26-Jul-2017 16:52:18 UTC] PHP Deprecated: Non-static method Request::getContext() should not be called statically, assuming $this from incompatible context in /home/myusername/public_html/ojs/lib/pkp/classes/plugins/ThemePlugin.inc.php on line 409

[26-Jul-2017 16:52:18 UTC] PHP Deprecated: Non-static method
PKPRequest::_checkThis() should not be called statically, assuming $this from incompatible context in /home/myusername/public_html/ojs/classes/core/Request.inc.php on line 68

[26-Jul-2017 16:52:18 UTC] PHP Warning: file_exists(): open_basedir restriction in effect. File(/lib/pkp/js/lib/jquery/plugins/validate/localization/messages_id_ID.js) is not within the allowed path(s): (/home:/tmp:/usr) in /home/myusername/public_html/ojs/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 571

[26-Jul-2017 16:52:18 UTC] PHP Warning: file_exists(): open_basedir restriction in effect. File(/lib/pkp/js/lib/jquery/plugins/validate/localization/messages_id.js) is not within the allowed path(s): (/home:/tmp:/usr) in /home/myusername/public_html/ojs/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 571

[26-Jul-2017 16:52:18 UTC] PHP Warning: file_exists(): open_basedir restriction in effect. File(/lib/pkp/lib/vendor/moxiecode/plupload/js/i18n/id_ID.js) is not within the allowed path(s): (/home:/tmp:/usr) in /home/myusername/public_html/ojs/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 588

[26-Jul-2017 16:52:18 UTC] PHP Warning: file_exists(): open_basedir restriction in effect. File(/lib/pkp/lib/vendor/moxiecode/plupload/js/i18n/id.js) is not within the allowed path(s): (/home:/tmp:/usr) in /home/myusername/public_html/ojs/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 588

[26-Jul-2017 16:52:19 UTC] PHP Deprecated: Non-static method Request::getContext() should not be called statically, assuming $this from incompatible context in /home/myusername/public_html/ojs/lib/pkp/classes/plugins/ThemePlugin.inc.php on line 409

[26-Jul-2017 16:52:19 UTC] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically, assuming $this from incompatible context in /home/myusername/public_html/ojs/classes/core/Request.inc.php on line 68

[26-Jul-2017 16:52:19 UTC] PHP Strict Standards: Declaration of SubmissionsListGridHandler::authorize() should be compatible with GridHandler::authorize($request, &$args, $roleAssignments, $enforceRestrictedSite = true) in /home/myusername/public_html/ojs/lib/pkp/controllers/grid/submissions/SubmissionsListGridHandler.inc.php on line 0

[26-Jul-2017 16:52:19 UTC] PHP Strict Standards: Declaration of SubmissionsListGridHandler::initialize() should be compatible with GridHandler::initialize($request, $args = NULL) in /home/myusername/public_html/ojs/lib/pkp/controllers/grid/submissions/SubmissionsListGridHandler.inc.php on line 0

[26-Jul-2017 16:52:19 UTC] PHP Strict Standards: Declaration of SubmissionsListGridHandler::initFeatures() should be compatible with GridHandler::initFeatures($request, &$args) in /home/myusername/public_html/ojs/lib/pkp/controllers/grid/submissions/SubmissionsListGridHandler.inc.php on line 0

[26-Jul-2017 16:52:19 UTC] PHP Strict Standards: Declaration of SubmissionsListGridHandler::authorize() should be compatible with GridHandler::authorize($request, &$args, $roleAssignments, $enforceRestrictedSite = true) in /home/myusername/public_html/ojs/lib/pkp/controllers/grid/submissions/SubmissionsListGridHandler.inc.php on line 0

[26-Jul-2017 16:52:19 UTC] PHP Strict Standards: Declaration of SubmissionsListGridHandler::initialize() should be compatible with GridHandler::initialize($request, $args = NULL) in /home/myusername/public_html/ojs/lib/pkp/controllers/grid/submissions/SubmissionsListGridHandler.inc.php on line 0

[26-Jul-2017 16:52:19 UTC] PHP Strict Standards: Declaration of SubmissionsListGridHandler::initFeatures() should be compatible with GridHandler::initFeatures($request, &$args) in /home/myusername/public_html/ojs/lib/pkp/controllers/grid/submissions/SubmissionsListGridHandler.inc.php on line 0

[26-Jul-2017 16:52:19 UTC] PHP Strict Standards: Declaration of SubmissionsListGridHandler::authorize() should be compatible with GridHandler::authorize($request, &$args, $roleAssignments, $enforceRestrictedSite = true) in /home/myusername/public_html/ojs/lib/pkp/controllers/grid/submissions/SubmissionsListGridHandler.inc.php on line 0

[26-Jul-2017 16:52:19 UTC] PHP Strict Standards: Declaration of SubmissionsListGridHandler::initialize() should be compatible with GridHandler::initialize($request, $args = NULL) in /home/myusername/public_html/ojs/lib/pkp/controllers/grid/submissions/SubmissionsListGridHandler.inc.php on line 0

[26-Jul-2017 16:52:19 UTC] PHP Strict Standards: Declaration of SubmissionsListGridHandler::initFeatures() should be compatible with GridHandler::initFeatures($request, &$args) in /home/myusername/public_html/ojs/lib/pkp/controllers/grid/submissions/SubmissionsListGridHandler.inc.php on line 0

[26-Jul-2017 16:52:19 UTC] PHP Deprecated: Non-static method Request::getContext() should not be called statically, assuming $this from incompatible context in /home/myusername/public_html/ojs/lib/pkp/classes/plugins/ThemePlugin.inc.php on line 409

[26-Jul-2017 16:52:19 UTC] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically, assuming $this from incompatible context in /home/myusername/public_html/ojs/classes/core/Request.inc.php on line 68

[26-Jul-2017 16:52:19 UTC] PHP Deprecated: Non-static method Request::getContext() should not be called statically, assuming $this from incompatible context in /home/myusername/public_html/ojs/lib/pkp/classes/plugins/ThemePlugin.inc.php on line 409

[26-Jul-2017 16:52:19 UTC] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically, assuming $this from incompatible context in /home/myusername/public_html/ojs/classes/core/Request.inc.php on line 68

[26-Jul-2017 16:52:19 UTC] PHP Deprecated: Non-static method Request::getContext() should not be called statically, assuming $this from incompatible context in /home/myusername/public_html/ojs/lib/pkp/classes/plugins/ThemePlugin.inc.php on line 409

[26-Jul-2017 16:52:19 UTC] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically, assuming $this from incompatible context in /home/myusername/public_html/ojs/classes/core/Request.inc.php on line 68

@asmecher would you help me?

Hi @simbah,

Have you tried the other suggestions on this thread? What did you try, and what was the result?

Regards,
Alec Smecher
Public Knowledge Project Team

changing session_cookie_name didn’t work
using @jmbarroso 's .httaccess didn’t work
that’s all

Hi @simbah,

Are you also using OJS 3.0.2?

I would suggest adding an explicit session_cookie_path to your config.inc.php to ensure that’s not causing the problem.

Test with several browsers on the same machine and report back what the result was. Ensure that you delete any OJSSID cookies (or whatever your current session_cookie_name is) before testing.

Regards,
Alec Smecher
Public Knowledge Project Team

changing session_cookie_name works once, but after that i can’t logout anymore…
i will try your sugesstion
i’m on ojs 3.0.2
my problem appeared after my hosting provider did some maintenance, they did server migration, but at that time i used ojs 3.0.1 and the problem still happen after i upgrade it…

@asmecher fyi
when i tried using a new installation, my host respond fine, but when i did migration the old installation to the new one the problems appeared.
i put my ojs (the old installation) in a sub domain, do you think it caused the problem?