1
cm2339
login (user.php) redirects to incorrect place
  • 2005/5/26 17:48

  • cm2339

  • Just popping in

  • Posts: 32

  • Since: 2005/2/21


We just moved our test site to our production server. Everything works great except when a user logs in. The login forms sends the information correctly and the message appears, "Thank you for logging in [username]." Then the meta refresh is directing the web browser to the wrong place. A folder (that does not exist) under the top level of the site.

Can anyone point me in the direction on what setting to change to get the user.php to redirect to the main page of the site "/index.php" ?

Thanks for any help!

A little background: our test box url is :http://mysite.com/subfolder and our production ishttp://mysite.com/
so the loss of the subfolder is our problem.

THANKS!

2
Mithrandir
Re: login (user.php) redirects to incorrect place

Did you update the XOOPS_URL value in your mainfile.php in the XOOPS root?

3
cm2339
Re: login (user.php) redirects to incorrect place
  • 2005/5/26 18:35

  • cm2339

  • Just popping in

  • Posts: 32

  • Since: 2005/2/21


My aplologizies, I should have mentioned that in the first place... Yes the XOOPS_URL has been defined in mainfile.php and the line looks like this:

define('XOOPS_URL', 'http://www.mysite.com'); // (no trailing slashes!)

Everything else in the site works that uses the xoops_url except the redirection after a valid login. Even invalid logins are redirected to the correct place.

I have noticed on an invalid login the URL has the querystring set to: ?xoops_redirect=%2Fbad_folder%2Fuser.php%3F

Thanks for any help!

4
ThaMikestro
Re: login (user.php) redirects to incorrect place
  • 2005/6/26 8:53

  • ThaMikestro

  • Just popping in

  • Posts: 2

  • Since: 2005/2/13


Hello,

I'm having similar problems with my site, and I was just wondering if you ever found a solution. If so, can you please post the steps you took to fix this redirection issue? It would definitely help me out, and hopefully others who experience the same problem in the future.

Thanks!
Mike

5
rune79
Re: login (user.php) redirects to incorrect place
  • 2005/9/13 9:32

  • rune79

  • Just popping in

  • Posts: 13

  • Since: 2005/1/9 1


I have the redirecting problem too, on a valid login!?

6
rune79
Re: login (user.php) redirects to incorrect place
  • 2005/9/20 13:38

  • rune79

  • Just popping in

  • Posts: 13

  • Since: 2005/1/9 1


Solved my problem!

It is dicusssed here:
XOOPS forum

My problem was that i had not included the header.php in my template.

7
cm2339
Re: login (user.php) redirects to incorrect place
  • 2005/9/22 16:56

  • cm2339

  • Just popping in

  • Posts: 32

  • Since: 2005/2/21


rune79

Thanks for the thread link. Unfortunately, I tried the steps from that thread and we are still having the problem. I am really confused. We have two, yes two, other XOOPS sites on the same server and those work as expected. This one site in particular is having this issue.

I solved the problem by removing the login block from the main page and adding a custom block with a link directly to user.php. Everything works as expected when using that strategy.

Thanks again for the information!!

Login

Who's Online

154 user(s) are online (57 user(s) are browsing Support Forums)


Members: 0


Guests: 154


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits