Forums

Login Problems After domain change (10 posts)

  1. shrunk90
    Member
    Posted 2 years ago #

    I recently moved my wordpress site to a new domain (copied all files to new host, copied database etc).

    I also logged into my old wordpress admin at the old domain and changed the domain details in it's setup to the new domain (whether this does anything or not i'm not sure?!?)

    My problem is, after moving to the new domain - everything is up and running just fine - except mydomain/wp-admin login doesnt work - i enter my details and click login and it just takes me straight back to the login page.

    The only way i can login successfully is to go to my actual site and click 'login' in my page footer and logging in from there.

    Peculiarly, when i use this method, the address it takes me to for the login page is mysite//wp-login.php (notice the double forward-slash in front of wp-login.php

    The same anomaly is present when logged in to my wordpress dashboard / admin area the url in my address bar is mysite//wp-admin/

    Obviously none of you can text the login procedure as you dont have the details - but you can at least see what happens when clicking login in my page footer...

    my url is: http://www.mogsys.co.nz

  2. Samuel B
    moderator
    Posted 2 years ago #

    try resetting permalink structure
    admin - settings - permalinks

  3. shrunk90
    Member
    Posted 2 years ago #

    Have a look at the appearance of my permalinks settings in the screenshot below - the forward-slash is there in all of them...

    http://img520.imageshack.us/my.php?image=permza7.jpg

    Does it still look like something i might be able to sort within this settings menu?

  4. Samuel B
    moderator
    Posted 2 years ago #

    that is bizarre and today is the 1st time I've seen it - another person has this problem

    I would rename or delete my .htaccess
    then see what happens at
    admin - settings - permalinks

    edit - maybe one is not being created?
    http://codex.wordpress.org/Using_Permalinks#Creating_and_editing_.28.htaccess.29

  5. shrunk90
    Member
    Posted 2 years ago #

    Tried that (i did not have a .htaccess file at all) so created one and confirmed wordpress was able to update to it - but still all wordpress pages etc seem to be behind myurl//

    I wonder if this could also be the cause (in some way) of my contact forms not sending emails... i've tried contact form 7, and enhanced wordpress contact and neither of them are sending emails anywhere... wonder if its related...

  6. Samuel B
    moderator
    Posted 2 years ago #

  7. shrunk90
    Member
    Posted 2 years ago #

    Just checked all of that - doublebacklashes definitely not present in the urls in the database.

    Starting to think the easiest option will be a fresh install of wordpress, but still open to suggestions before taking this step.

    Cheers.

  8. shrunk90
    Member
    Posted 2 years ago #

    All sorted the only way i could think how - complete reinstall of wordpress and database :)

  9. sweeperdeeper
    Member
    Posted 2 years ago #

    Hi,

    I've been having the same problem. I moved my wp blog to a new host and domain and afterthat, I can't seem to login.

    The header of my wp-login page is fettered with these error messages:

    Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/manintl/public_html/wp-includes/widgets.php on line 654
    
    Warning: Invalid argument supplied for foreach() in /home/manintl/public_html/wp-includes/widgets.php on line 654
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/manintl/public_html/wp-includes/widgets.php:654) in /home/manintl/public_html/wp-login.php on line 255
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/manintl/public_html/wp-includes/widgets.php:654) in /home/manintl/public_html/wp-login.php on line 267

    And when I try to go ahead and perform the login to my backend panel, I get a page of error messages:

    Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/manintl/public_html/wp-includes/widgets.php on line 654
    
    Warning: Invalid argument supplied for foreach() in /home/manintl/public_html/wp-includes/widgets.php on line 654
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/manintl/public_html/wp-includes/widgets.php:654) in /home/manintl/public_html/wp-login.php on line 255
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/manintl/public_html/wp-includes/widgets.php:654) in /home/manintl/public_html/wp-login.php on line 267
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/manintl/public_html/wp-includes/widgets.php:654) in /home/manintl/public_html/wp-includes/pluggable.php on line 649
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/manintl/public_html/wp-includes/widgets.php:654) in /home/manintl/public_html/wp-includes/pluggable.php on line 650
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/manintl/public_html/wp-includes/widgets.php:654) in /home/manintl/public_html/wp-includes/pluggable.php on line 651
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/manintl/public_html/wp-includes/widgets.php:654) in /home/manintl/public_html/wp-includes/pluggable.php on line 850

    I have tried to remove my plugins, deleting the error lines, removing white spaces before and after <? , re-exporting my old sql database with updated utf8-unicode and reimporting database etc....I think I tried it all and I'm really stuck now.

    So if anyone can help me out of this muddle, let me know!

    Thanks in advance.

  10. mrjeany
    Member
    Posted 2 years ago #

    Hi

    I had a similar problem with two forward slashes appearing in a blog - I tried bypassing it in various ways and could manage the admin login, but the other authors kept coming up against login problems. I finally figured something out - at some point in the early stages when switching from a test url to the full domain of the site, I had added this to my wp-config.php file:

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

    as I'd been having problems getting the url to work.

    Removing the forward slash and writing the url like this:

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

    fixed the problem. Anyone having this problem, maybe check your wp-config for these lines?

Topic Closed

This topic has been closed to new replies.

About this Topic