INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Wordpress login page broken

Wordpress login page broken

(OP)
Hi I am currently working on a website we recently moved from a server on GoDaddy to another Godaddy server.

http://southernsignaturelandscapedesign.com/

We successfully moved the site it seemed however there was a couple issues.

1. The first issue, which has been resolved is the options-functions.php in the "lutetimuness/administrator" folder (lutetimuness is the wordpress theme we are using), and in the wp-logoin.php in the main folder. Both files were mentioned in a warning "cannot modify header" message at the wp-login.php page. I opened the files and saw the errors were at the bottom of the files which showed empty lines after the closing ?> bracket. I removed the empty lines and space and the warning message disappeared from the admin login page.


2. However, before and still after the login page fails to login with any credentials used. I attempted to go into the database, attempted to change the password and username and went as far as creating a new admin via the database using the steps here: http://www.dnawebagency.com/how-to-add-an-admin-us...
None of this worked and the admin login page still fails to recognize any log-ins attempted.

What could be causing this? If anyone has an idea we would surely appreciate a direction to investigate. I just opened another file in wp-admin/admin-ajax.php and saw that file also had an empty space below the closing php ?> bracket. I deleted the empty space. I'm not sure if this may because the problem or if it showing up in different files may be corrupting the login attempts or if there was something that went wrong when we moved the site to the new server.

Again, if anyone has a clue as to what the root of this problem may be we would greatly appreciate it.

RE: Wordpress login page broken

(OP)
P.S. - I forgot to add that before I elimiated the empty lines in the options-functions.php and wp-login.php files the theme on the front end was failing to load and no styles were appearing. After I deleted the empty space the theme began loading normally on the front end and everything seems to be normal, however the back end login area is still broken. Thanks for your time.

RE: Wordpress login page broken

the domains are muddled up. thus the cookies are too.

the link above takes us to southernsignaturelandscapedesign.com
and appending /wp-login.php takes us to the login page.

however the login form is pointing to southernsignaturedesign.com no landscape involved....

so there is some domain repointing going on that is breaking the login script.

you cannot get to southernsignaturedesign.com as you get automatically redirected back to the longer url.

so I suggest that you harmonise your domain names. do this in the admin screen.

to get access to the admin screen edit wp-config.php and change the following two lines (or add them if they are not present);

CODE

define('WP_HOME','http://southernsignaturelandscapedesign.com');
define('WP_SITEURL','http://southernsignaturelandscapedesign.com'); 

RE: Wordpress login page broken

(OP)
Excellent! Such an easy fix I overlooked. I am very new to the wordpress platform. Thanks so much we have been stumped for a couple days.

RE: Wordpress login page broken

just a curiosity, did you change your domains in your WP database wp_options table?

Darryn Cooke
www.darryncooke.com | Marketing and Creative Services

RE: Wordpress login page broken

@darryncooke
do you still need to? i thought the definitions in wp-config allowed you to bypass the old method of direct changes to the table.

RE: Wordpress login page broken

Instead of messing with the wp-config I usually run a find and replace in the tables. It's much cleaner and prevents any other sort of pain in the you know where problems from popping up.

There is even a WP plugin called *i think* Search and Replace that will do just that.

Darryn Cooke
www.darryncooke.com | Marketing and Creative Services

RE: Wordpress login page broken

curious Darryn. I read that article differently. As I read it, WP Core devs say that for single site there are four different methods of moving domain names, only one of which requires db manips.

i used always to change the database directly. but I suspect that wp-config takes precedence over the db values as they will be defined first (and you cannot change a constant).

RE: Wordpress login page broken

from WP

This is not necessarily the best fix, it's just hardcoding the values into the site itself. You won't be able to edit them on the General settings page anymore when using this method.

Editing the DB takes 5 minutes and it is the best long term solution. I use that in my process so it's one less thing I might have to trouble shoot should anything happen. The first 3 methods to me are more of a short term and quick fix solutions and are also somewhat easier for the less technically inclined. This is of course my opinion and preference but I don't like to add much to the WP-config file if I don't have to, I have forgotten mods I have made in the past and spent many hours trying to solve issues that were there because of the modified file.

Darryn Cooke
www.darryncooke.com | Marketing and Creative Services

RE: Wordpress login page broken

fair enough. i think i'd be the other way around. i'd much rather parametrise things in a config file than muck around with the db. one of the great things about wp is how many routes the framework offers to get to a goal.

RE: Wordpress login page broken

fair enough. i think i'd be the other way around. i'd much rather parametrise things in a config file than muck around with the db. one of the great things about wp is how many routes the framework offers to get to a goal.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close