Viewing 3 replies - 1 through 3 (of 3 total)
  • I don’t even know if anyone has ever encountered such a conundrum!

    It’s a pretty common user error.

    I would think someone at WordPress needs to perform some major surgery and log back into my account, go to Settings/General and change my WordPress site address back to ‘avantduel.com’!

    Nope. Only you have access to your site. WordPress has no access to your hosting account or your WordPress web site.

    You can change the URL’s back to what they should be by using one of the methods outlined in these instructions: Changing The Site URL Please read carefully before deciding which method is best for you.

    Thread Starter ottovr

    (@ottovr)

    I tried to follow these instructions on how to get my site back up – see below ‘Edit functions.php’ – I found the ‘themes’ folder as a subfolder in the public_html folder, and inside it under the ‘Universal’ theme folder (which is the theme I am using for the site), I found a ‘functions.php’ file which I have transferred out and edited and then transferred back. When I tried to access the ‘avantduel.com/wp-admin/ I got the following error (?) message –

    /** * @package WordPress * @subpackage Universe * @since Universe 1.0 */ ?>

    However, when I just put the avantduel.com in my browser, the site came back up, which is progress, but I still can’t login to make any changes and I don’t know if I should remove those lines now (as instructed below), as it hasn’t really been fixed. HELP!

    <?php
    update_option(‘siteurl’,’http://avantduel.com&#8217;);
    update_option(‘home’,’http://avantduel.com&#8217;);

    Edit functions.php
    If you have access to the site via FTP, then this method will help you quickly get a site back up and running, if you changed those values incorrectly.

    1. FTP to the site, and get a copy of the active theme’s functions.php file. You’re going to edit it in a simple text editor (like notepad) and upload it back to the site.

    2. Add these two lines to the file, immediately after the initial “<?php” line.

    update_option(‘siteurl’,’http://example.com&#8217;);
    update_option(‘home’,’http://example.com&#8217;);
    Use your own URL instead of example.com, obviously.

    3. Upload the file back to your site, in the same location. FileZilla offers a handy “edit file” function to do all of the above rapidly; if you can use that, do so.

    4. Load the login or admin page a couple of times. The site should come back up.

    5. Repeat the above steps, but remove those lines. IMPORTANT: Do NOT leave those lines in there. Remove them immediately after the site is up and running again.

    If there is no functions.php file in the theme:

    Create a new text file called “functions.php”.

    Edit it with notepad, and add this text to it, using your own URL instead of example.com:

    <?php
    update_option(‘siteurl’,’http://example.com&#8217;);
    update_option(‘home’,’http://example.com&#8217;);
    ?>
    Upload that to your theme directory, then proceed as stated above. Remove the file afterwards.

    Thread Starter ottovr

    (@ottovr)

    Ureka! After I inserted the lines into the ‘functions.php’ file, I got the ‘avantduel.com’ to load properly, but it still wouldn’t allow me to login. So, then I removed those lines from the ‘functions.php’ file, as instructed, and now I am back to being able to login! Thanks for the link and caring enough to share it!…I am, Otto von Ruggins, Master of the Unheard Øf

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can't Login’ is closed to new replies.