Logout Button Redirecting to Submission Page Instead of Login Page in OJS 3.3.0.19

Hi all,

I am currently experiencing an issue with the logout functionality in Open Journal Systems (OJS) version 3.3.0.19. When users click the Logout button, instead of being redirected to the login page, they are being redirected to the Submission Page.

I have tried using the clear cache and clear template cache in the administration but it has not resolved.

I would greatly appreciate any guidance or suggestions to resolve this issue. Is there a configuration setting or any specific files I should check to fix the logout redirection behavior?

Thank you in advance for your support!

Best regards,
Dinesh

Hi @Dinesh_P,

This looks similar to what has been reported here some time ago: Ojs 3.0.1.0 .problem with logout and other link - #6 by ctgraham

As a first step, you may want to try to identify the issue, by doing the following:

-Roger
PKP Team

Hi @rcgillis,

Thank you for your suggestion. However, I have already updated OJS from version 3.1 to 3.3, so I can assure you that it is up-to-date with the latest version.

Regarding the Web Inspector and access logs, could you please elaborate on where we can find the access logs and the response codes? Any guidance would be appreciated.

Thanks,
Dinesh

Hi @Dinesh_P,

For the PHP error logs, see this post here: How do I find my PHP error log?

For web inspector/browser tools, you might have to do a web search and look for online tutorials on how to best use these, and it will depend on your browser. Most people have the most success with the Firefox tools, I find.

-Roger
PKP Team

Hi @rcgillis,

Thank you for the information provided. However, when I analyzed the issue, I found that when we log out, it first redirects to the login controller and then executes the sign-out controller. The status shows as pending, so I believe this might be due to cached data on the disk when logging in and then logging out. What do you think, and how can we solve this?

Please find the below image for your reference.

Thanks,
Dinesh

Hi @Dinesh_P,

That looks like your browser log - not output from a PHP error log. Can you check your PHP error log and report back on messages from there?

-Roger
PKP team

Hi @rcgillis,

I have checked the error log, but there are no errors related to the login or logout controller and its related contents.

Could you please let me know how we can approach this in order to find the issue?

Thanks,
Dinesh

Hi @Dinesh_P,

Thanks for letting me know. I’m not really sure how to approach this next - usually error messages in the logs provide further guidance. Hopefully another team or community member will be able to assist.

-Roger
PKP Team

Hi @rcgillis,

When I checked the error log it is showing like this:

PHP Fatal error: Uncaught TypeError: Unsupported operand types: string % int in /plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Util/PageHelper.php:80
Stack trace:
#0 /plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Util/PageHelper.php(43): Seboettg\CiteProc\Util\PageHelper::renderChicago('Pages 225 ‘, ’ 229’)
#1 /plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Text.php(160): Seboettg\CiteProc\Util\PageHelper::processPageRangeFormats(Array, Object(Seboettg\CiteProc\Style\Options\PageRangeFormats))
#2 /plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Text.php(108): Seboettg\CiteProc\Rendering\Text->renderPage(‘Pages 225 - 229’)
#3 /plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Choose/ChooseIf.php(79): Seboettg\CiteProc\Rendering\Text->render(Object(stdClass), NULL)
#4 /plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Choose/Choose.php(105): Seboettg\CiteProc\Rendering\Choose\ChooseIf->render(Object(stdClass))
#5 /plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Choose/ChooseIf.php(79): Seboettg\CiteProc\Rendering\Choose\Choose->render(Object(stdClass), NULL)
#6 /plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Choose/Choose.php(98): Seboettg\CiteProc\Rendering\Choose\ChooseIf->render(Object(stdClass))
#7 /plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Style/Macro.php(86): Seboettg\CiteProc\Rendering\Choose\Choose->render(Object(stdClass), NULL)
#8 /plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Text.php(290): Seboettg\CiteProc\Style\Macro->render(Object(stdClass))
#9 /plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Text.php(120): Seboettg\CiteProc\Rendering\Text->renderMacro(Object(stdClass))
#10 /plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Layout.php(130): Seboettg\CiteProc\Rendering\Text->render(Object(stdClass), 0)
#11 /plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Layout.php(97): Seboettg\CiteProc\Rendering\Layout->renderSingle(Object(stdClass), 0)
#12 /plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Style/Bibliography.php(76): Seboettg\CiteProc\Rendering\Layout->render(Object(Seboettg\CiteProc\Data\DataList), NULL)
#13 /plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/CiteProc.php(137): Seboettg\CiteProc\Style\Bibliography->render(Object(Seboettg\CiteProc\Data\DataList))
#14 /plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/CiteProc.php(183): Seboettg\CiteProc\CiteProc->bibliography(Object(Seboettg\CiteProc\Data\DataList))
#15 /plugins/generic/citationStyleLanguage/CitationStyleLanguagePlugin.inc.php(423): Seboettg\CiteProc\CiteProc->render(Object(Seboettg\CiteProc\Data\DataList), ‘bibliography’)
#16 /plugins/generic/citationStyleLanguage/pages/CitationStyleLanguageHandler.inc.php(45): CitationStyleLanguagePlugin->getCitation(Object(Request), Object(Submission), ‘chicago-author-…’, Object(Issue), Object(Publication))
#17 /lib/pkp/classes/core/PKPRouter.inc.php(397): CitationStyleLanguageHandler->get(Array, Object(Request))
#18 /lib/pkp/classes/core/PKPPageRouter.inc.php(246): PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(Request), Array, false)
#19 /lib/pkp/classes/core/Dispatcher.inc.php(144): PKPPageRouter->route(Object(Request))
#20 /lib/pkp/classes/core/PKPApplication.inc.php(360): Dispatcher->dispatch(Object(Request))
#21 /index.php(68): PKPApplication->execute()
#22 {main}
thrown in /plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Util/PageHelper.php on line 80

Could please you tell me why this is happening and how to resolve this?

And also suggest whether it is linked to the above mentioned issue?

Thanks,
Dinesh

Hi @Dinesh_P,

See: citationStyleLanguage: error · Issue #138 · pkp/citationStyleLanguage · GitHub

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

Thank you for sharing the information.

Could you please explain why the logout is redirecting to the submission page when we log out, and suggest how to resolve this issue?

Upon investigation, we believe the problem may be related to cookies. When I inspect and delete the cookies, the logout works correctly. However, I’m unsure how to resolve this issue permanently. Can you assist us in finding a solution?

Thanks,
Dinesh

This topic was automatically closed after 9 days. New replies are no longer allowed.