R0.23 No Longer Supported

[Solved] Logging out of Moodle error

  • Graham Nelmes
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
16 years 1 month ago - 16 years 1 month ago #1 by Graham Nelmes
[Solved] Logging out of Moodle error was created by Graham Nelmes
Everything works fine with 0.23 - does just whst I want. When a user logs in with Joomla they are automatically logged into Moodle - fine. However when logging out of Moodle they get a page 403 error. any ideas?
Last edit: 16 years 1 month ago by Antonio Durán.
The topic has been locked.
More
16 years 1 month ago #2 by Antonio Durán
Replied by Antonio Durán on topic Re: Logging out of Moodle error
Can it be that you have http-protected some joomla folders?

When user logs out of moodle, he is redirected to " site.com/components/com_joomdle/views/wrapper/getout.php " to get out of the wrapper.
The topic has been locked.
  • Graham Nelmes
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
16 years 1 month ago #3 by Graham Nelmes
Replied by Graham Nelmes on topic Re: Logging out of Moodle error
I don't think I have protected them but how can I unprotect them?
The topic has been locked.
More
16 years 1 month ago #4 by Antonio Durán
Replied by Antonio Durán on topic Re: Logging out of Moodle error
To know if this is the problem ,visit site.com/components/com_joomdle/views/wrapper/getout.php annd see what you get.
The topic has been locked.
  • Graham Nelmes
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
16 years 1 month ago #5 by Graham Nelmes
Replied by Graham Nelmes on topic Re: Logging out of Moodle error
This is what I got

Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster.

Error 403
The topic has been locked.
More
16 years 1 month ago #6 by Antonio Durán
Replied by Antonio Durán on topic Re: Logging out of Moodle error
Then I was right: it is protected.

How did you install Joomla? Manually as regular? Or is some kind of preinstalled in the hosting?

To solve, just check and change permissions for the file and all its route so that the file is accessible by the user.
The topic has been locked.
  • Graham Nelmes
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
16 years 1 month ago #7 by Graham Nelmes
Replied by Graham Nelmes on topic Re:Logging out of Moodle error
It's a mystery. I have done all you suggest but no improvement. Therro in the apache log is as follows.
The given path is misformatted or contained invalid characters: Cannot map GET /joomla/components/com_joomdle/views/wrapper/%3C?=%20JPATH_BASE;%20?> HTTP/1.1 to file

The installation of Joomal was manual.
The topic has been locked.
More
16 years 1 month ago #8 by Antonio Durán
Replied by Antonio Durán on topic Re:Logging out of Moodle error
Ah ok, my fault. It's a different error. I will try to fix it for next release.

In the meanwhile, another user reported this worked:

Edit components/com_joomdle/views/wrapper/getout.php
Change:
top.location.href = "<?= JPATH_BASE; ?>";
By:
top.location.href = "/";
The topic has been locked.
  • Graham Nelmes
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
16 years 1 month ago #9 by Graham Nelmes
Replied by Graham Nelmes on topic Re:Logging out of Moodle error
Unfortunately that didn't work and tooke me somewhere else.

As a workaround why can't you set top.location to the original entry point?
Thanks for all your help
The topic has been locked.
More
16 years 1 month ago #10 by Antonio Durán
Replied by Antonio Durán on topic Re:Logging out of Moodle error
I guess / gets you to site.com/
If your joomla is at site.com/joomla, try "/joomla" instead.

Or... where did it get you to?
The topic has been locked.