- Posts: 7861
[Solved] Internal Server Error On Moodle Logout
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
14 years 4 months ago #11
by Antonio Durán
Replied by Antonio Durán on topic Re: Internal Server Error On Moodle Logout
If you comment out that last line, what do you get?
Please Log in or Create an account to join the conversation.
- Jeff Paul
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 31
14 years 4 months ago #12
by Jeff Paul
Replied by Jeff Paul on topic Re: Internal Server Error On Moodle Logout
With that line in auth.php commented out:
1. it logs out of Moodle. In the wrapper it shows the Moodle screen not logged in (No error comes up)
2. I checked the Joomla back end and it has logged out the user but the Joomla front-end still shows the used logged in.
3. I refresh the browser and the Joomla front end shows the user logged out.
In other words, it just looks like it's not redirecting/refreshing back to the Joomla home page after the moodle log out.
1. it logs out of Moodle. In the wrapper it shows the Moodle screen not logged in (No error comes up)
2. I checked the Joomla back end and it has logged out the user but the Joomla front-end still shows the used logged in.
3. I refresh the browser and the Joomla front end shows the user logged out.
In other words, it just looks like it's not redirecting/refreshing back to the Joomla home page after the moodle log out.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7861
14 years 4 months ago #13
by Antonio Durán
Replied by Antonio Durán on topic Re: Internal Server Error On Moodle Logout
Maybe the internal error is happening on the getout.php file then.
You can try doing the same debug, putting an exit(); at the start of the file, and seeing if it removes the error.
If so, move it down until it re-appears.
You can try doing the same debug, putting an exit(); at the start of the file, and seeing if it removes the error.
If so, move it down until it re-appears.
Please Log in or Create an account to join the conversation.
- Jeff Paul
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 31
14 years 4 months ago #14
by Jeff Paul
Replied by Jeff Paul on topic Re: Internal Server Error On Moodle Logout
I think that's the case since it's a server error and there seems to be a couple of references to SERVER variables in getout.php. I'm trying to find out where it's getting those values to see if it's getting fed something wrong.
Please Log in or Create an account to join the conversation.
- Jeff Paul
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 31
14 years 4 months ago #15
by Jeff Paul
Replied by Jeff Paul on topic Re: Internal Server Error On Moodle Logout
Update: I'm wrong again. Putting the exit(); on the first line of getout.php brings the server error. Back to the auth.php I guess.
Please Log in or Create an account to join the conversation.
- Jeff Paul
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 31
14 years 4 months ago #16
by Jeff Paul
Replied by Jeff Paul on topic Re: Internal Server Error On Moodle Logout
Okay, in moodle/auth/joomdle/auth.php
function logoutpage_hook()
I changed:
$redirect = get_config (NULL, 'joomla_url').'/components/com_joomdle/views/wrapper/getout.php';
to:
$redirect = get_config (NULL, ' www.mysitename.com/edu/components/com_jo...s/wrapper/getout.php ');
This gets rid of the "internal server error" when logging out from inside the joomdle moodle wrapper. Now I need to figure out how to get it to return to the joomla home page and show the user as logged out from the joomla side. A browser refresh does it, but that's not very elegant.
function logoutpage_hook()
I changed:
$redirect = get_config (NULL, 'joomla_url').'/components/com_joomdle/views/wrapper/getout.php';
to:
$redirect = get_config (NULL, ' www.mysitename.com/edu/components/com_jo...s/wrapper/getout.php ');
This gets rid of the "internal server error" when logging out from inside the joomdle moodle wrapper. Now I need to figure out how to get it to return to the joomla home page and show the user as logged out from the joomla side. A browser refresh does it, but that's not very elegant.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7861
14 years 4 months ago #17
by Antonio Durán
Replied by Antonio Durán on topic Re: Internal Server Error On Moodle Logout
change that to only:
$redirect = "http://wwww.my.../getout.php";
$redirect = "http://wwww.my.../getout.php";
Please Log in or Create an account to join the conversation.
- Jeff Paul
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 31
14 years 4 months ago #18
by Jeff Paul
Replied by Jeff Paul on topic Re: Internal Server Error On Moodle Logout
" change that to only:
$redirect = "wwww.my.../getout.php";"
This gives a "NOT FOUND" message in the joomdle wrapper, even after changing the wwww typo.
$redirect = "wwww.my.../getout.php";"
This gives a "NOT FOUND" message in the joomdle wrapper, even after changing the wwww typo.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7861
14 years 4 months ago #19
by Antonio Durán
Replied by Antonio Durán on topic Re: Internal Server Error On Moodle Logout
I guess you did put your full url....there must be a typo if it gives you not found.
Please Log in or Create an account to join the conversation.
- Jeff Paul
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 31
14 years 4 months ago #20
by Jeff Paul
Replied by Jeff Paul on topic Re: Internal Server Error On Moodle Logout
Yep, something isn't right.
This one eliminates the error message but doesn't return to the front of Joomla:
$redirect = get_config (NULL, ' www.mysite.com/edu/components/com_joomdl...s/wrapper/getout.php ');
So I tried this one:
$redirect = " www.mysite.com/edu/components/com_joomdl...s/wrapper/getout.php ";
The latter gives the "Not Found" error. Bizarre.
This one eliminates the error message but doesn't return to the front of Joomla:
$redirect = get_config (NULL, ' www.mysite.com/edu/components/com_joomdl...s/wrapper/getout.php ');
So I tried this one:
$redirect = " www.mysite.com/edu/components/com_joomdl...s/wrapper/getout.php ";
The latter gives the "Not Found" error. Bizarre.
Please Log in or Create an account to join the conversation.