- Posts: 46
R0.24 No Longer Supported
404 'Not Found Error' after login
- Howard
- Offline
- Senior Member
-
Less
More
15 years 10 months ago #11
by Howard
Replied by Howard on topic Re: 404 'Not Found Error' after login
antonio wrote:
I too am experiencing a similar problem when logging in a user into Joomla, when it attempts to login user into moodle it times out. If I refresh the page I get a token error.
When I disable hooks plugin then all is fine.
Have tried all other modules disabled and enabled and the hooks plugin seems to cause a problem.
When I close the 404 error page and reload then the user is logged in as if there was no problem.
however when the user in moodle tries to logout out of moodle it won't
(seperate window)
If you click on module courses when logged with a regular user, are you auto-logged in Moodle or do you get errrors or you get to moodle unauthenticated?
I too am experiencing a similar problem when logging in a user into Joomla, when it attempts to login user into moodle it times out. If I refresh the page I get a token error.
When I disable hooks plugin then all is fine.
Have tried all other modules disabled and enabled and the hooks plugin seems to cause a problem.
When I close the 404 error page and reload then the user is logged in as if there was no problem.
(seperate window)
The topic has been locked.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7902
15 years 10 months ago #12
by Antonio Durán
Replied by Antonio Durán on topic Re: 404 'Not Found Error' after login
whitehm: Joomdle hooks plugin is the one which does single sign out, that is why it does not work.
Strange thing here is the joomdlehooks plugins is very similar to older versions, and basically does the same as when you click on a link to go to moodle.
spere40: I see it gives an error with a ver strange URL, which I don't know where come from.
First: did you configure full moodle url (http : // site.com/moodle)?
A debug we could use is this: in joomdlehooks.php, at the end of onLoginUser, there is a redirect.
You could try changing this:
$app->redirect($moodle_url."/auth/joomdle/land.php?username=$username&token=$token&use_wrapper=0&create_user=0&wantsurl=$login_url" );
By:
echo $moodle_url."/auth/joomdle/land.php?username=$username&token=$token&use_wrapper=0&create_user=0&wantsurl=$login_url";
exit ();
This would get you to a blank page after logging, showing the redirect URL, so we can know if there is a problem.
Strange thing here is the joomdlehooks plugins is very similar to older versions, and basically does the same as when you click on a link to go to moodle.
spere40: I see it gives an error with a ver strange URL, which I don't know where come from.
First: did you configure full moodle url (http : // site.com/moodle)?
A debug we could use is this: in joomdlehooks.php, at the end of onLoginUser, there is a redirect.
You could try changing this:
$app->redirect($moodle_url."/auth/joomdle/land.php?username=$username&token=$token&use_wrapper=0&create_user=0&wantsurl=$login_url" );
By:
echo $moodle_url."/auth/joomdle/land.php?username=$username&token=$token&use_wrapper=0&create_user=0&wantsurl=$login_url";
exit ();
This would get you to a blank page after logging, showing the redirect URL, so we can know if there is a problem.
The topic has been locked.
- Saul Perez
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 17
15 years 10 months ago #13
by Saul Perez
Replied by Saul Perez on topic Re: 404 'Not Found Error' after login
Yes, I did configure the url as
www.fbla-pbl-geeks.com/moodle
but i wouldnt know how to change the php. I'm not too familiar with the programming
but i wouldnt know how to change the php. I'm not too familiar with the programming
The topic has been locked.
- Howard
- Offline
- Senior Member
-
Less
More
- Posts: 46
15 years 10 months ago - 15 years 10 months ago #14
by Howard
Replied by Howard on topic Re: 404 'Not Found Error' after login
Hi
I have had ago at changing that line and this is the rediret url it shows up on the blank page.
www.mywebsite.com/auth/joomdle/land.php username=fredbloggs&token=3d7697281998fedb62fda4b2ebb5f97a&use_wrapper=0&create_user=0&wantsurl=index.php%3Foption%3Dcom_content%26view%3Dfrontpage%26Itemid%3D1
cheers
I have had ago at changing that line and this is the rediret url it shows up on the blank page.
www.mywebsite.com/auth/joomdle/land.php username=fredbloggs&token=3d7697281998fedb62fda4b2ebb5f97a&use_wrapper=0&create_user=0&wantsurl=index.php%3Foption%3Dcom_content%26view%3Dfrontpage%26Itemid%3D1
cheers
Last edit: 15 years 10 months ago by Howard.
The topic has been locked.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7902
15 years 10 months ago - 15 years 10 months ago #15
by Antonio Durán
Replied by Antonio Durán on topic Re: 404 'Not Found Error' after login
Is that real? I see that it lacks a '/' between land.php and username=....
Last edit: 15 years 10 months ago by Antonio Durán.
The topic has been locked.
- Howard
- Offline
- Senior Member
-
Less
More
- Posts: 46
15 years 10 months ago - 15 years 10 months ago #16
by Howard
Sorry it was wrong but it comes up with a ? and not a /
Replied by Howard on topic Re: 404 'Not Found Error' after login
Code:
http://www.mywebsite.com/auth/joomdle/land.php?username=fredbloggs&token=6f85efec13039b43e0d1cc0663f907cb&use_wrapper=0&create_user=0&wantsurl=index.php%3Foption%3Dcom_content%26view%3Dfrontpage%26Itemid%3D1
Sorry it was wrong but it comes up with a ? and not a /
Last edit: 15 years 10 months ago by Howard.
The topic has been locked.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7902
15 years 10 months ago #17
by Antonio Durán
Replied by Antonio Durán on topic Re: 404 'Not Found Error' after login
Everything seems right, so I guess is not in this moment when the problem happens.
I don't have the code at hand now to give you more instructions for continuing debugging, will do tomorrow.
As for now, just to rule it out: try disabling CB login and using stock Joomla instead, to see if anything changes.
I don't have the code at hand now to give you more instructions for continuing debugging, will do tomorrow.
As for now, just to rule it out: try disabling CB login and using stock Joomla instead, to see if anything changes.
The topic has been locked.
- Howard
- Offline
- Senior Member
-
Less
More
- Posts: 46
15 years 10 months ago #18
by Howard
Replied by Howard on topic Re: 404 'Not Found Error' after login
Hi
Just incase there is some confusion here.
I am using Joomla/Virtuemart and Moodle and I have tried Joomla login instead of Virtuemart login which was an improvement. The result is from Joomla login it will login to Moodle and open the moodle page in a window (but not in a joomla wrapper)and then will not go back to Joomla frontpage.
With Virtuemart login Joomla frontpage just sits there waiting and nothing happens if you leave it for about 30 secs and then press return it then responds logins in to moodle and then back to joomla frontend.
My debug test is with virtuemart login
Just incase there is some confusion here.
I am using Joomla/Virtuemart and Moodle and I have tried Joomla login instead of Virtuemart login which was an improvement. The result is from Joomla login it will login to Moodle and open the moodle page in a window (but not in a joomla wrapper)and then will not go back to Joomla frontpage.
With Virtuemart login Joomla frontpage just sits there waiting and nothing happens if you leave it for about 30 secs and then press return it then responds logins in to moodle and then back to joomla frontend.
My debug test is with virtuemart login
The topic has been locked.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7902
15 years 10 months ago #19
by Antonio Durán
Replied by Antonio Durán on topic Re: 404 'Not Found Error' after login
Sorry, but I am not really following you....
Do you mean that you are testing now with Joomla logging and the joomdlehooks plugin is partially working?
And it logs you into moodle and gets you to moodle and stays there? Which page?
This is really looking like a obscure problem, so maybe I could take a look with you if you want to give me access through a private channel...I would need cpanel and admin access for both platforms.
Do you mean that you are testing now with Joomla logging and the joomdlehooks plugin is partially working?
And it logs you into moodle and gets you to moodle and stays there? Which page?
This is really looking like a obscure problem, so maybe I could take a look with you if you want to give me access through a private channel...I would need cpanel and admin access for both platforms.
The topic has been locked.
- Howard
- Offline
- Senior Member
-
Less
More
- Posts: 46
15 years 10 months ago #20
by Howard
Replied by Howard on topic Re: 404 'Not Found Error' after login
Hi yes thats right so far
The moodle page it halts on is the page that takes you to the course that the student is registered in, from that point the student would then select the link to get into the course.
This morning I'm planning to do a complete clean install of Joomla and Moodle and see what happens. My guess with the issues Ive had it is probably my ISP I am hosted with that has caused the issues.
However if you have any other ideas let me know.
The moodle page it halts on is the page that takes you to the course that the student is registered in, from that point the student would then select the link to get into the course.
This morning I'm planning to do a complete clean install of Joomla and Moodle and see what happens. My guess with the issues Ive had it is probably my ISP I am hosted with that has caused the issues.
However if you have any other ideas let me know.
The topic has been locked.