Still working at it. This is what I’ve done:
I did this and I was able to get back into the dashboard:
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’,’https://example.com/blog’); update_option(‘home’,’https://example.com/blog’);
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.
And then I did this:
If you have accidentally changed your WordPress site URL
Suppose you accidentally changed the URIs where you cannot move the files. (but still can access the login page, through a redirection or something)
wp-login.php can be used to (re-)set the URIs (Insert the following lines after
require( dirname(__FILE__) . ‘/wp-load.php’ );
//FIXME: do comment/remove these hack lines. (once the database is updated) update_option(‘siteurl’, ‘https://your.domain.name/the/path’ ); update_option(‘home’, ‘https://your.domain.name/the/path’ );
You’re done. Test your site to make sure that it works right. If the change involves a new address for your blog, make sure you let people know the new address, and consider adding some redirection instructions in your .htaccess file to guide visitors to the new location.
Changing The Site URL also provides the details of this process!
And then this…
Changing the URL directly in the database
If you know how to access phpMyAdmin on your host, then you can edit these values directly to get you up and running again.
1. Backup your database and save the copy off-site.
2. Login to phpMyAdmin.
3. Click the link to your Databases.
4. A list of your databases will appear. Choose the one that is your WordPress database.
5. All the tables in your database will appear on the screen.
6. From the list, look for wp_options. Note: The table prefix of wp_ may be different if you changed it when installing.
7. Click on the small icon indicated as Browse.
8. A screen will open with a list of the fields within the wp_options table.
9. Under the field option_name, scroll down and look for siteurl.
10. Click the Edit Field icon which usually is found at the far left at the beginning of the row.
11. The Edit Field window will appear.
12. In the input box for option_value, carefully change the URL information to the new address.
13. Verify this is correct and click Go to save the information.
14. You should be returned to your wp_options table.
15. Look for the home field in the table and click Edit Field. Note There are several pages of tables inside wp_options. Look for the > symbol to page through them.
16. In the input box for option_value, carefully change the URL information to the new address.
17. Verify this is correct and click Go to save the information.
But I still get a white page when I try to find the site https://bargainboys.net
Then I tried deactivating every plugin I had running. Still no luck.
What else am I missing?
I am NOT giving up!
Thanks,
Lili