R0.24 No Longer Supported

404 'Not Found Error' after login

More
15 years 9 months ago #41 by Chris
Replied by Chris on topic Re: 404 'Not Found Error' after login
Thanks for feeding back. Antonio is away this weekend - I will feedback to him once he returns.
The topic has been locked.
More
15 years 9 months ago #42 by Howard
Replied by Howard on topic Re: 404 'Not Found Error' after login
Hi No problem
But I think it has made no difference at all been trying this option out and once clearing out all the cahce etc it seems the original solution is the better. Still it might help someone else..
:>)
The topic has been locked.
More
15 years 9 months ago #43 by Antonio Durán
Replied by Antonio Durán on topic Re: 404 'Not Found Error' after login
Hi.

Finally I could have some time to dig into the Virtuemart login module issue, but could not replicate it locally.

I just installed virtuemart login module and used it to login, and it worked as expected. Is that what you do to get the token error, or there is anything else?

Thanks.
The topic has been locked.
More
15 years 9 months ago #44 by Howard
Replied by Howard on topic Re: 404 'Not Found Error' after login
Hi
"mod_virtuemart_login"
Yes thats how I am using it on a site with joomla-virtuemart/moodle on the same domain and 1 MySQL DB.
I just tried it out again and if you use the defaults then I get a token error, however if I change the options in the module

Login redirection from Joomla! Home Page to "Page from which the user logged in"
Logout redirection from Joomla! Home Page "Page from which the user logged out"

then no issue. !!!!?????
The topic has been locked.
More
15 years 9 months ago #45 by Antonio Durán
Replied by Antonio Durán on topic Re: 404 'Not Found Error' after login
Hi.

I had a similar problem, but it did not give me a token error. Instead, when I left the default "go to joomla index" option when logging, I was redirected to a wrong url (localhostindex...).

I think the difference may come from the fact that I am working on improving redirection on the copy I am working with, and I already made some changes.

After looking more into it I see the problem arise because VM gives a 'joomla relative' path in the returnurl parameter. It seems I have fixed it now, but I will need some more time to test and clean the code before I upload it to SVN.
Then you will be able to test it and see if it is really fixed.

Or well... I think you can test by just pasting some lines in land.php:
Code:
if ($wantsurl[0] != '/') { $path = parse_url (get_config (NULL, 'joomla_url'), PHP_URL_PATH); $wantsurl = $path.'/'.$wantsurl; }

It hast to go in the first place in the last default: section of the last switch in the file (line 115).

Thanks for the followup, your tests really help :)
The topic has been locked.
More
15 years 9 months ago #46 by Howard
Replied by Howard on topic Re: 404 'Not Found Error' after login
Okay doing it now hope I am putting it in the correct place?


else
{
$redirect_url = $CFG->wwwroot;
switch ($mtype)
{
case "course":
$redirect_url .= "/course/view.php?id=$id";
break;
case "news":
$redirect_url .= "/mod/forum/discuss.php?d=$id";
break;
case "event":
// $redirect_url .= "/calendar/view.php?view=day&course=$id&cal_d=$day&cal_m=$mon&cal_y=$year";
$redirect_url .= "/calendar/view.php?view=day&cal_d=$day&cal_m=$mon&cal_y=$year";
break;
default:
if ($wantsurl[0] != '/')
{
$path = parse_url (get_config (NULL, 'joomla_url'), PHP_URL_PATH);
$wantsurl = $path.'/'.$wantsurl;
}
//$redirect_url = get_config (NULL, 'joomla_url');
//$redirect_url = urldecode ($wantsurl) ;
if ($wantsurl)
$redirect_url = urldecode ($wantsurl) ;
else
$redirect_url = get_config (NULL, 'joomla_url');
}
}
redirect($redirect_url);

The topic has been locked.
More
15 years 9 months ago #47 by Antonio Durán
Replied by Antonio Durán on topic Re: 404 'Not Found Error' after login
Yes, it seems correct.
The topic has been locked.
More
15 years 9 months ago #48 by Howard
Replied by Howard on topic Re: 404 'Not Found Error' after login
Hi Tested and passed with flying colours

That has seemed to have done the trick... :>)
The topic has been locked.
More
15 years 9 months ago #49 by Antonio Durán
Replied by Antonio Durán on topic Re: 404 'Not Found Error' after login
Great. Thanks again for the feedback.
The topic has been locked.
More
15 years 9 months ago - 15 years 9 months ago #50 by giovanni
Replied by giovanni on topic Re: 404 'Not Found Error' after login
:blink: Hi !! Great work !!
But i have a problem: 404 'Not Found Error' after login
you tried to load www.mysite.org/ %05%A1%D1%D1%C0%E8%BC%BD%DD%DD%DC%B9%85%C9%8D%85%8D%85%B5%C1%85%B9%A5%84%B9%8D%BD%B4%BC'
I have Joomla installed in root www.mysite.org and moodle in www.mysite.org/moodle
System check is OK
I have made these changes in land.php:
default:
// if ($wantsurl)
// $redirect_url = urldecode ($wantsurl) ;
// else
$redirect_url = get_config (NULL, 'joomla_url');

but it doesn't work.
If Joomdle hooks plugin is enabled i have the 404 'Not Found Error' after login,
if I go back at homepage it's all OK.
I have disabled joomla SEF plugin e mod_rewrite

Can You help me ?
Greetings
Last edit: 15 years 9 months ago by giovanni.
The topic has been locked.