Web Hosting Forum | Lunarpages

Author Topic: Wordpress login redirects to local IP  (Read 4051 times)

Offline Bebop17

  • Newbie
  • *
  • Posts: 4
Wordpress login redirects to local IP
« on: June 21, 2014, 12:23:25 PM »
I have a weird problem. I just moved a Wordpress + Woocommerce site to Lunarpages. (I am new to Lunarpages but not to hosting.)

Everything is working fine, with one exception. When I try to log in, I can see the browser trying to connect to the domain, then suddenly it starts trying to connect to my local IP, and eventually times out or throws a 400 error, with my local IP in the address bar.

 :?

The site works fine, the shopping cart works fine, even the password reset function on the login page works fine - I just can't log in. I can connect to my database via phpmyadmin and even Navicat. So it's not a database issue. At least not a general one.

I edited the db host setting in my wp-config.php file, changing it from localhost to my domain name. I reset my password, via the reset function, and via Navicat. No change - everything is still working fine except login.

Needless to say, this is a problem LOL. Before I give up and rebuild the site from scratch (it's not that huge a job, really), does anyone have any idea what I might be missing?


Offline MrPhil

  • Senior Moderator
  • Berserker Poster
  • *****
  • Posts: 6002
Re: Wordpress login redirects to local IP
« Reply #1 on: June 21, 2014, 04:42:08 PM »
When you moved the site from another server (is that what you did?) you might have overlooked some configuration file that needs updating. If that's not it, what is the particular PHP version required for your site (WP + Woo)? If you were running quite a few levels back, your new LP site is probably PHP 5.3, and session-related stuff tends to break unless you upgrade your WP to reasonably current levels.
Visit My Site

E-mail Me
  
-= From the ashes shall rise a sooty tern =-

Offline Bebop17

  • Newbie
  • *
  • Posts: 4
Re: Wordpress login redirects to local IP
« Reply #2 on: June 21, 2014, 06:33:54 PM »
When you moved the site from another server (is that what you did?) you might have overlooked some configuration file that needs updating. If that's not it, what is the particular PHP version required for your site (WP + Woo)? If you were running quite a few levels back, your new LP site is probably PHP 5.3, and session-related stuff tends to break unless you upgrade your WP to reasonably current levels.

Thank you very much for your suggestions.   :smiling: I just built the site a few weeks ago. The WP version is current, and the server it was on is also running PHP 5.3. So I'm still mystified! I have gone through every config option I can think of. I wish I could see the relevant error logs but that doesn't seem to be an option - or am I missing something in that regard?

Offline MrPhil

  • Senior Moderator
  • Berserker Poster
  • *****
  • Posts: 6002
Re: Wordpress login redirects to local IP
« Reply #3 on: June 21, 2014, 07:50:53 PM »
There should be at least two forms of error logs by default: the control panel (LPCP/cPanel) Error Log, and error_log files dropped in the directories of PHP scripts that failed.
Visit My Site

E-mail Me
  
-= From the ashes shall rise a sooty tern =-

Offline Bebop17

  • Newbie
  • *
  • Posts: 4
Re: Wordpress login redirects to local IP
« Reply #4 on: June 22, 2014, 09:32:13 AM »
There should be at least two forms of error logs by default: the control panel (LPCP/cPanel) Error Log, and error_log files dropped in the directories of PHP scripts that failed.

Oy. The only log I see in cPanel is the web error log. There is an option to choose logs but it just lets me choose the interface for traffic logs. I stumbled over the references to LPCP in the wiki (one for the suggestion box:why oh why is there no link to the wiki from my cpanel home?). I have tried every combination of method to access LPCP according to the instructions in the wiki (server name, domain name, IP, both ports) but can't get in. What am I missing *there*?  :help:

Offline MrPhil

  • Senior Moderator
  • Berserker Poster
  • *****
  • Posts: 6002
Re: Wordpress login redirects to local IP
« Reply #5 on: June 22, 2014, 10:49:01 AM »
Your server has cPanel OR LPCP. All new accounts probably get on LPCP servers, but I suppose a new account might sometimes be put on a cPanel server. Anyway, it sounds like you found the web "Error Log". Now look around in the File Manager for files named "error_log". That's what they're named on cPanel; it might be something a bit different on LPCP.

Also check your .htaccess file, to see if it's redirecting to what is now a wrong place.
Visit My Site

E-mail Me
  
-= From the ashes shall rise a sooty tern =-

Offline Bebop17

  • Newbie
  • *
  • Posts: 4
Re: Wordpress login redirects to local IP
« Reply #6 on: June 29, 2014, 12:41:50 PM »
Just came back to say that it was indeed something in the .htaccess file set up by the developer of the primary site in this account. Thanks.

 

Share |