PDA

View Full Version : Can't Log In from a Profile Page


Kyttias
01-16-2015, 10:57 AM
The sidebar login was directed down the wrong path.
I attempted to log in from visiting a user profile and I think it attempted to find a profile by the name of 'Login' which is just silly.

As a fix, in class_sidebar.php I changed the following line:
$this->loginBar = new FormBuilder("login", "login", "post");

To:
$this->loginBar = new FormBuilder("login", "../../login", "post");

I'm sure there's cleaner ways of getting to the root, but relative paths should work across every page (if it can't go a folder, or two folders back, then it's already at the root, etc).

MikiHeart
01-16-2015, 11:01 AM
I've noticed this on other pages, that you have to change and add the "../../"
I think it's an issue to do with the url rewrite.

Cirris
09-17-2015, 10:16 AM
I found that when adding the "../../" fix that it broke the login entirely for the sidebar no matter what page I accessed it from and for the login page. This may have something to do with having mine installed into a subfolder. Clicking the button for login gave me a 404 error.

Went to mysite.com/login
When it should have been mysite.com/folder/login

Also, I am by no means a programmer. This may make completely logical sense. I wouldn't know. XD