A user with admin permissions changed the URL of our WordPress site. This, of course, caused the site to be unreachable.
After major frustration, and frantic searching, I asked friends on the SharePoint-Community.net for help. Was referred to this URL:http://codex.wordpress.org/Changing_The_Site_URL
What worked for me was a two step process:
Since I had just upgraded the WordPress site the day before to the newest version (at the time 3.6.1), I had backup files on an external hard drive.
I tried first doing a hack on the Functions.php file in the theme. That gave us a login prompt but nothing else. I tried editing the wp-config.php file, but at first it didn't seem to work. So I went ahead and rolled back the files from the day before.
Then I tried one more time with wp-config.php as follows (from the codex.wordpress.org site above):
Edit wp-config.php
It is possible to set the site URL manually in the wp-config.php file.
Add these two lines to your wp-config.php, where "example.com" is the correct location of your site.
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');
This is not necessarily the best fix, it's just hardcoding the values into the site itself. You won't be able to edit them on the General settings page anymore when using this method.
What I discovered with all of this is that it takes a few minutes for the updates/changes to appear and a couple of log in attempts.
The site is working again.
Special thanks to Danny Hebert for his assistance!
After major frustration, and frantic searching, I asked friends on the SharePoint-Community.net for help. Was referred to this URL:http://codex.wordpress.org/Changing_The_Site_URL
What worked for me was a two step process:
Since I had just upgraded the WordPress site the day before to the newest version (at the time 3.6.1), I had backup files on an external hard drive.
I tried first doing a hack on the Functions.php file in the theme. That gave us a login prompt but nothing else. I tried editing the wp-config.php file, but at first it didn't seem to work. So I went ahead and rolled back the files from the day before.
Then I tried one more time with wp-config.php as follows (from the codex.wordpress.org site above):
Edit wp-config.php
It is possible to set the site URL manually in the wp-config.php file.
Add these two lines to your wp-config.php, where "example.com" is the correct location of your site.
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');
This is not necessarily the best fix, it's just hardcoding the values into the site itself. You won't be able to edit them on the General settings page anymore when using this method.
What I discovered with all of this is that it takes a few minutes for the updates/changes to appear and a couple of log in attempts.
The site is working again.
Special thanks to Danny Hebert for his assistance!
Comments
Post a Comment