Elxis CMS Forum
Support => General => Topic started by: xmanhattan on June 14, 2010, 12:12:23
-
Hello all,
First of all, congratulations to Ioannis and the Elxis team on another fantastic version of Elxis.
I am not sure if this is a problem, but when I use the user login, I am getting a 404 page.
My link is showing the local directory where it is installed twice, see electra electra.
http://localhost/electra/electra/index.php?option=com_frontpage&Itemid=8 (http://localhost/electra/electra/index.php?option=com_frontpage&Itemid=8)
I am not using htaccess in the directory. I am using wamp php 5.2.9.
-
Still wondering if this is a bug or not?
-
It is a local installation inside a folder... It does not worth to spend time to find out what causes that. May be it is an htaccess you have in a parent folder, maybe it is the module's settings, maybe it is something else. Why dont you try to create virtual hosts on your computer by following the elxis.org's guide? That way you will have normal URLs and you wont bother with sub-folders, htaccess/files overwrites, etc.
-
Datahell I think I've understood the xmanhattan problem.
I've got the same error.
Scenario :
I've installed ELXIS 2009.2 locally using Uniform Server inside a directory called elxis2009-2 (like Xammp).
then I call the elxis installation typing "http://localhost/elxis2009-2/"
Well all went ok but when you login from frontend you will got this error:
404 Not Found
The requested URL /elxis2009-2/elxis2009-2/ was not found on this server.
If you note the url got /elxis2009-2/elxis2009-2/ two times Obviously the second elxis2009-2 is an error maybe introduced by a possible bug.
To overcome the problem I've added to the login redirect a "."
I've added the "." to the logout redirection too otherwise I'll have the same 404 error in the logout.
I hope I was clear.
Bye
-
Το πρόβλημα είναι το Login module, το εντόπησα και θα το διορθώσω τώρα. Για να το λύσετε εύκολα και χωρίς πείραγμα μπορείτε απλά να ορίσετε την URL ανακατεύθυνσης μετά το login στις παραμέτρους του module.
-
Το πρόβλημα είναι το Login module, το εντόπησα και θα το διορθώσω τώρα. Για να το λύσετε εύκολα και χωρίς πείραγμα μπορείτε απλά να ορίσετε την URL ανακατεύθυνσης μετά το login στις παραμέτρους του module.
Thank you for your answer... ehm...but I've a little bit of problem reading Greek !!! :o :o :o ... anyway google translate help :D :D
-
Amiga, is not a bug of elxis2009.2., You are in windows and è sempre stato così
in the module login you must define the logout redirection url. ;D
-
Sorryyyyy for the Greek.
I will release in a few minutes an updated version (rev2631) containing this fix and a fix for the archive (https://forum.elxis.org/index.php?topic=4899.0).
How to solve this issue on Elxis 2009.2 rev2628.
Open file: modules/mod_login.php
Go to line 99
Change this:
$this->logout = sefRelToAbs($this->requesteduri());
To this:
$req = $this->requesteduri();
$uri = parse_url($mainframe->getCfg('live_site'));
if (isset($uri['path']) && ($uri['path'] != '')) {
$req = preg_replace('@^('.$uri['path'].')@', '', $req);
}
$req = preg_replace('@^(\/)@', '', $req);
$this->logout = sefRelToAbs($req);
Go to line 169
Change this:
$this->login = sefRelToAbs($this->requesteduri());
To this:
$req = $this->requesteduri();
$uri = parse_url($mainframe->getCfg('live_site'));
if (isset($uri['path']) && ($uri['path'] != '')) {
$req = preg_replace('@^('.$uri['path'].')@', '', $req);
}
$req = preg_replace('@^(\/)@', '', $req);
$this->login = sefRelToAbs($req);
Elxis 2009.2 electra rev2631 will be released in 10 minutes.
-
Sorryyyyy for the Greek.
I will release in a few minutes an updated version (rev2631) containing this fix and a fix for the archive (https://forum.elxis.org/index.php?topic=4899.0).
How to solve this issue on Elxis 2009.2 rev2628.
Open file: modules/mod_login.php
Go to line 99
Change this:
$this->logout = sefRelToAbs($this->requesteduri());
To this:
$req = $this->requesteduri();
$uri = parse_url($mainframe->getCfg('live_site'));
if (isset($uri['path']) && ($uri['path'] != '')) {
$req = preg_replace('@^('.$uri['path'].')@', '', $req);
}
$req = preg_replace('@^(\/)@', '', $req);
$this->logout = sefRelToAbs($req);
Go to line 169
Change this:
$this->login = sefRelToAbs($this->requesteduri());
To this:
$req = $this->requesteduri();
$uri = parse_url($mainframe->getCfg('live_site'));
if (isset($uri['path']) && ($uri['path'] != '')) {
$req = preg_replace('@^('.$uri['path'].')@', '', $req);
}
$req = preg_replace('@^(\/)@', '', $req);
$this->login = sefRelToAbs($req);
Elxis 2009.2 electra rev2631 will be released in 10 minutes.
Thank you Datahell for the immediate fix :D.
Just to inform you that this little problem is present to 2009.1 too :).
ciao
-
I know, but we do not release individual patches for the previous versions.
Users have to upgrade to Elxis 2009.2.
The upgrade patch from 2009.1 to 2009.2 will be available tomorrow or on Thursday.
-
Datahell, sorry I know how busy you are. Thank you for the info.