• dylan_st

    (@dylan_st)


    Hi,

    I botched a site URL change after prematurely switching my WordPress site to a domain that wasn’t properly hosted.

    I was able to get the site back up by using the documentation on editing the functions.php of my theme.

    However, I can no longer log in to my admin account. The login page is stuck in a loop. I gather that somewhere buried in my theme the URL is still pointed incorrectly but I am a novice so I can’t figure out where to look.

    So far I have tried –

    1. Clearing my cache and cookies (just in case)
    2. Resetting my password
    3. Disabled my plugins via my FTP
    4. Editing my functions.php to bring my site up
    5. Editing the WP-config to bring my site up

    Again – my site was restored (although not fulling reading the CSS) but I just can’t get back into my admin dashboard to properly reset my site URL back to the temporary address

Viewing 5 replies - 1 through 5 (of 5 total)
  • Jim Thornton

    (@mintegrate)

    you’re saying that your login page at /wp-login.php gets stuck in a loop or once you submit your credentials it goes into a loop?

    Charmer83

    (@charmer83)

    i have the same problem

    Thread Starter dylan_st

    (@dylan_st)

    Once I submit my credentials it refreshes to the login page asking for my credentials again.

    Thread Starter dylan_st

    (@dylan_st)

    I was working with my friend who is more experience and he pulled this error while debugging but we can’t figure out why because that line is no in my functions.php

    [17-Nov-2014 23:56:12 UTC] PHP Fatal error: Call to undefined function phpupdate_option() in /home1/cordcarp/public_html/wp-content/themes/cordcarpenterm

    @chambers – I did find a recommendation to add this to your functions.php or wp-config.php

    define(‘WP_HOME’,’https://example.com/wp-admin’);
    define(‘WP_SITEURL’,’https://example.com’);

    Didn’t work for me but makes sense that it could work.

    Other things I have tried –
    Renaming my template to force it to the default template which resulted in a totally blank site and still the same login problem. Also deleted my .htaccess file to no avail.

    SOS!

    Jim Thornton

    (@mintegrate)

    It just seems odd that you were able to get the site back up. Can you share what you added to functions.php?

    When you changed the settings do you mean in the wordpress dashboard you changed the wordpress address url and hit save and then it disappeared?

    If so, go into phpmyadmin in your hosting account for the database as listed in your wp-config.php file. Then go to the table “wp_options” and if option_id 1 is not your intended url, then change the option_value for the option_name siteurl to the original url path.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Cannot log in after botched site URL change’ is closed to new replies.