Supporting each other

Community forums

Welcome, Guest
Username: Password: Remember me
Report any technical problems you discover and discuss solutions.
  • Page:
  • 1

TOPIC:

Homepage not loading after clicking Logout 9 years 6 months ago #2686

  • casglur
  • casglur's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 10
  • Thank you received: 0
Dear Community

When a user clicks the logout button they are not being returned to the home page. Instead the browser gets stuck in an unending loop calling the home page but never seeming to get it or display it. This kills the browser and also Apache which runs out of resources. My environment is:

OS: CentOS Linux release 7.0.1406 (Core)
Apache Version: Apache/2.4.6 (CentOS)
Xerte Toolkit Version: 2.1 (git git-103-gebc6f34)

Whilst stuck in the loop the Apache access_log displays the following approximately three times per second:

***.***.18.250 - - [28/Apr/2015:10:36:27 +0100] "GET /xertetoolkits/ HTTP/1.1" 200 2732 "myserver.swan.ac.uk/xertetoolkits/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0"
***.***.18.250 - - [28/Apr/2015:10:36:27 +0100] "GET /xertetoolkits/ HTTP/1.1" 200 2732 "myserver.swan.ac.uk/xertetoolkits/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0"
***.***.18.250 - - [28/Apr/2015:10:36:27 +0100] "GET /xertetoolkits/ HTTP/1.1" 200 2732 "myserver.swan.ac.uk/xertetoolkits/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0"
***.***.18.250 - - [28/Apr/2015:10:36:27 +0100] "GET /xertetoolkits/ HTTP/1.1" 200 2732 "myserver.swan.ac.uk/xertetoolkits/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0"

It looks like the Browser although successfully accessing the page (200) never actually gets it.

If I kill the browser session and then goto myserver.swan.ac.uk/xertetoolkits/ the page loads without any problem.

My best guess is that a PHP script that gets triggered by the clicking the logout button is causing some kind of internal loop - possibly related to killing off a session...

After a quick look around the codebase (gulp!) I'm unable to see any reason for the oddity and am stumped. Can anyone help?

thanks in advance

Please Inloggen or Create an account to join the conversation.

Homepage not loading after clicking Logout 9 years 6 months ago #2688

  • ronm
  • ronm's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 852
  • Thank you received: 261
Hi
This might be wide of the mark and irrelevant but what do you have around line 86 in your index.php the line that begins with <body onload...?

If that ends with ...onscroll="body_scroll()" onbeforeunload="javascript:logout()">
remove the last bit onbeforeunload="javascript:logout()" so that the line just ends ...onscroll="body_scroll()">

Let us know if that resolves the issue or indeed if it doesn't?
Ron
Xerte developer & trainer
e-learning & m-learning consultant
mitchellmedia.co.uk | xerteacademy.com | learningapps.co.uk
Note: Support here is voluntary and meant for users to support each other.
Need direct commercial support with Xerte? mitchellmedia.co.uk/contact/

Please Inloggen or Create an account to join the conversation.

Homepage not loading after clicking Logout 9 years 6 months ago #2690

  • casglur
  • casglur's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 10
  • Thank you received: 0
Hi Ron,

Yes, that seems to have done the trick! Working like a charm...

Many thanks for getting back on the issue so soon.

:)

Please Inloggen or Create an account to join the conversation.

  • Page:
  • 1
Moderators: ronmjultenJohnSmith
Time to create page: 0.048 seconds
Copyright © 2024 The Xerte Project.
Xerte logo Apereo logo OSI Logo

Search