• wizsupp

    (@wizsupp)


    Hi all,

    I have used a test link in our office domain and was able to login. After changing to the client’s domain, admin site cant be accessed anymore. They have their main site with us running on php.
    The sub-site shouldn’t have any connection to the php site since its not related to it, i mean, its not a multisite.
    I have created 2 databases already for this site since they have issues with their main site but not on our office domain.

    Code used were the following just to check if there’s any misconfiguration:
    UPDATE wp_options SET option_value = replace(option_value, ‘https://www.oldurl’, ‘https://www.newurl’) WHERE option_name = ‘home’ OR option_name = ‘siteurl’;

    UPDATE wp_posts SET guid = replace(guid, ‘https://www.oldurl’,’https://www.newurl’);

    UPDATE wp_posts SET post_content = replace(post_content, ‘https://www.oldurl’, ‘https://www.newurl’);

    UPDATE wp_postmeta SET meta_value = replace(meta_value,’https://www.oldurl’,’https://www.newurl’);

    Appreciate the reply.

    Thanks,
    Mark

Viewing 15 replies - 1 through 15 (of 18 total)
  • mdshak

    (@mdshak)

    Hi,
    1- Do you access the main site?

    2- Which specific error are you getting on login? I mean redirected, white screen, any error display.

    3- Please share the website url.

    Thanks
    Mohammad

    Thread Starter wizsupp

    (@wizsupp)

    hi,

    1. No. Access from a subdirectory.

    2. No error. After login, it just redirected back to login page.

    3. gwa.edu.sg/blog

    mdshak

    (@mdshak)

    Hi,
    Please try to login with this url https://gwa.asknlearn.com/wp-login.php.
    Thanks
    Mohammad

    Thread Starter wizsupp

    (@wizsupp)

    Hi Mohammad,

    I was able to access via this link, yes. This is a test domain also. We have used 2 domains already, the other is gwa.wizlearn.com/blog. Both works.
    But when I point it back to the gwa.edu.sg/blog site, it wouldn’t let me login. Would it be a domain server issue?

    mdshak

    (@mdshak)

    Hi,
    Please check this url to login https://gwa.edu.sg/blog/wp-login.php.
    Thanks
    Mohammad

    Thread Starter wizsupp

    (@wizsupp)

    Hi,

    Had tried and it is still redirecting to the login page.

    Can you advise if it is due to DNS or hosting ?

    mdshak

    (@mdshak)

    Hi,
    Do you to redirect to it custom login page? Please provide me some screenshots to explain well the issues.
    Thanks
    Mohammad

    Thread Starter wizsupp

    (@wizsupp)

    Hi,
    Screenshot
    Custom login page I see is just the following.

    mdshak

    (@mdshak)

    Hi,
    I see that you get the right login page screenshot.

    Do you not able to login according attached screenshot?

    Thanks
    Mohammad

    • This reply was modified 8 years ago by mdshak.
    Thread Starter wizsupp

    (@wizsupp)

    Hi,
    Was not able to login.

    It goes back to the login screen not showing any errors.

    mdshak

    (@mdshak)

    Hi,
    Please open to edit the wp-config.php file through FTP software. Just enable the debug here.
    Find this code define(WP_DEBUG, false); and set it true like define(WP_DEBUG, true);

    Now you can find the error log of this issue at root installation directory.

    Thanks
    Mohammad

    bynicolas

    (@bynicolas)

    Try updating your database with this script Search-Replace-DB. You might have a serialization error in your DB.

    Make sure you have a backup of your DB before running this script

    Thread Starter wizsupp

    (@wizsupp)

    Hi Mohammad,

    Have already set it to true but wont show any errors

    Hi Nicolas,

    Will try to do that, thanks for the tip.

    Thread Starter wizsupp

    (@wizsupp)

    By the way to update you guys, in the first installation of the site, I was not able to connect to their domain directly, gwa.edu.sg/
    username error
    So for test site, we placed url to Wizlearn.com instead. Was able to proceed, make some changes.
    But to go back to the main site, wp wont able to login to wp-admin, it just go back to the admin login page without throwing any errors.

    Thread Starter wizsupp

    (@wizsupp)

    Checking on other working wp site:
    sitea.com A xxx.xx.xxx.88
    https://www.sitea.com CNAME 14400 sitea.com

    current site having issues setup:
    siteb.com A xxx.xx.xxx.88
    https://www.siteb.com A xxx.xx.xxx.88

    only A names, to verify, would this cause issue?

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Can’t login to wordpress after changing domain name’ is closed to new replies.