R0.25 No Longer Supported

Quirky behaviour at initial LOG IN in JOOMLA

  • Steve Neufeld
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
15 years 8 months ago #1 by Steve Neufeld
Quirky behaviour at initial LOG IN in JOOMLA was created by Steve Neufeld
I'm running Joomla! 1.5.20 Stable awith using Joomdle 0.25a. I've upgraded the mod_calendar to accommodate the MOODLE calendar synchronization.

My JOOMLA is in a subdirectory www.mydomain.org/joomla
My MOODLE is also in a subdirectory www.mydomain.org/moodle
I'm hosting on HOSTGATOR: PHP Version 5.2.14
Firefox/3.5.11

Everything seems to be working fine, but when a user opens their browser for the first time and LOGS IN to JOOMLA for the first time they sometimes get redirected to the site domain, i.e., the page for www.mydomaim.org opens instead of JOOMLA after LOGging IN. When they click the BACK BUTTON in the browser they go back to JOOMLA and everything works fine. If they LOG OUT and LOG IN again, the JOOMLA-MOODLE integration works fine.

I suspect this is something to do with my browser settings or cookies, but I thought I would report this quirky behaviour as it could have something to do with the way JOOMDLE handles domains--as I notice that it is now possible to have JOOMLA and MOODLE in different domains.

Thanks!

Please Log in or Create an account to join the conversation.

More
15 years 8 months ago #2 by sems
Try unpublish joomdlehooks plugin. something is wrong with that plugin when workin g joomla 1.5.20 and moodle 1.9.9

Please Log in or Create an account to join the conversation.

More
15 years 8 months ago #3 by Antonio Durán
Replied by Antonio Durán on topic Re: Quirky behaviour at initial LOG IN in JOOMLA
Hi.

I just installed latest Moodle and Joomla on localhost to test this, and everything seems to be working fine.

steveneufeld: can you give more details on when/how the error is happening? As it seems it does not happens always, it would be good to find out what is triggering it.
New subdomain code should not have any effect, as it is only for log out.

sems: I just tested and there is nothing wrong in my local installation with joomdlehooks enabled. Can you ellaborate on your problems?

Please Log in or Create an account to join the conversation.

  • Steve Neufeld
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
15 years 8 months ago #4 by Steve Neufeld
Replied by Steve Neufeld on topic Re: Quirky behaviour at initial LOG IN in JOOMLA
Antonio

This has happend to me twice in two days running--but only after the initial boot of the computer and the first log in to the JOOMLA. I will try to replicate it again, and keep track of the exact steps.

I have a feeling it might be related to me logging in as ADMIN for the backend of JOOMLA, and then logging into the frontend as a USER to test things out. I work on one machine, and usually try to log in the front end as a USER in a different browser, but sometimes I forget. I've asked a few other people to see if they can replicate this error. Will let you know if I can give you any sensible notion of how this behaviour manifests itself.

Thanks!

Please Log in or Create an account to join the conversation.

  • Steve Neufeld
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
15 years 8 months ago #5 by Steve Neufeld
Replied by Steve Neufeld on topic Re: Quirky behaviour at initial LOG IN in JOOMLA
Hi!

One of my users reported the same problem. So it isn't to do with my machine or browser settings.

I was able to replicate the problem by closing all my browser windows (I used CHROME 5.0.375.127) and then restarted CHROME from scratch. Then I opened my JOOMLA at pilgrimsonline.sanalokul.biz/ (this is a sudomain redirect--the actual URL is sanalokul.biz/pilgrims_demo ). I logged in at the front end of JOOMLA as a registered user. After the log in I was redirected to the root domain of my server sanalokul.biz -- this is in fact a MOODLE (Note: I installed this main 'sanalokul' MOODLE at the root domain some time ago, but have subsequently set up other MOODLEs in subfolders, such as the MOODLE I am using with this JOOMDLE integration.)

From here, I used the BACK button to return to the previous JOOMLA page -- and in the JOOMLA window that appears I was shown as a logged in registered user. When I clicked on My Courses, I was taken to the correct moodle for this integration, which lives in a subfolder: ( www.sanalokul.biz/pilgrims/ ) I have the MOODLE open in the same window, so the JOOMLA is no longer open in a browser window.

When I logout of MOODLE, I get sent back to the JOOMLA (again, in the same window) and it shows me as logged out. I can then log back in to the Frontend of JOOMLA (as long as I haven't closed the browser completely) and I do not have the redirect problem to the root domain of my server. Everything works fine. But, if I shut down the browser and start from scratch, I get the redirect problem the first time again.

One 'odd' behaviour I noticed...if I open the browser from scratch, go to JOOMLA and log in, I get redirected to the root domain. I press the BACK button and then everything seems to work, except for one difference. If I logout of the JOOMLA at this point, I get a 'LOGOUT confirmation' notice in the wrapper, saying I am attempting to log out of a secure area, and I have to complete the log out using that LOGOUT button in the wrapper. However, when I log back in to the JOOMLA (without closing the browser) and then try to log out, this 'LOGOUT confirmation' notice doesn't appear.

Another 'odd' behaviour--when I closed CHROME for the third time, and then reopened it and tried to replicate the problem, I couldn't. :( However, I was able to replicate the problem in the first two times that I closed the browser and started it up from scratch.

I hope this helps you to identify the bug.

Please Log in or Create an account to join the conversation.

  • Steve Neufeld
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
15 years 8 months ago #6 by Steve Neufeld
Replied by Steve Neufeld on topic Re: Quirky behaviour at initial LOG IN in JOOMLA
Hi!

I think I have identified the problem.

I have my JOOMLA at sanalokul.biz/pilgrims_demo . I am hosted on HOSTGATOR and set up a subdomain redirect for this which is pilgrimsonline.sanalokul.biz

The problem of the redirect to my root domain only occurs if I access the JOOMLA (for the first time in a browser from scratch) when I use the subdomain redirect (i.e., if I point my newly opened browser at pilgrimsonline.sanalokul.biz ). If I restart my browser and point it at the actual subfolder sanalokul.biz/pilgrims_demo I don't get this problem.

So, it looks like there is an issue with handling subdomain redirects. Perhaps this is specific to my host Hostgator?

I hope this helps.

Please Log in or Create an account to join the conversation.

More
15 years 8 months ago #7 by Antonio Durán
Replied by Antonio Durán on topic Re: Quirky behaviour at initial LOG IN in JOOMLA
Thanks for all the info. I will try to investigate.

It could help if you could create a test user for me there so I can try to replicate the problem from home. You can send it by private message.

The only strange thing in your setup is the domain redirect thing, so maybe it has something to do with that.
What did you put in joomdle's config in moodle as joomla url?
I would try setting it up with the real URLs first, and test if it works that way. Then we can know for sure the root of the problem.

Please Log in or Create an account to join the conversation.

  • Steve Neufeld
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
15 years 8 months ago #8 by Steve Neufeld
Replied by Steve Neufeld on topic Re: Quirky behaviour at initial LOG IN in JOOMLA
Hi!

I think you are right--it seems to be a problem with the subdomain 'redirect'. In the MOODLE config for JOOMDLE I have the actual URL: www.sanalokul.biz/pilgrims_demo not the subdomain redirect. Ditto for the config in JOOMDLE - i.e., it is set to the actual URL sanalokul.biz/pilgrims not the subdomain redirect for that folder which is pilgrims.sanalokul.biz/

I've set up a test user for you and sent the details in a private message.

Thanks!

Please Log in or Create an account to join the conversation.

More
15 years 8 months ago #9 by Antonio Durán
Replied by Antonio Durán on topic Re: Quirky behaviour at initial LOG IN in JOOMLA
Then I would try putting the submdomain redirect in the config, to see if that helps.

Please do if you can, and if does not help, I will try replicating with the user you sent me.

Please Log in or Create an account to join the conversation.

  • Steve Neufeld
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
15 years 8 months ago #10 by Steve Neufeld
Replied by Steve Neufeld on topic Re: Quirky behaviour at initial LOG IN in JOOMLA
Hi!

Tried putting in the redirect URL, but that didn't work. It did solve the initial redirect to the root domain problem, but when I tried to follow a link to the MOODLE from MyCourses I was asked to LOG IN to MOODLE again -- like what happened when I didn't have the 'www' in the URL before.

Thanks!

Please Log in or Create an account to join the conversation.