Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » Running WordPress » Installing & running WordPress »

[SOLVED] Help! I Broke my WP INstallation!


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Mar 11, 2009, 10:03 AM
Shepherd Jim's Avatar
Shepherd Jim
 
297 posts · Feb 2009
Bristol, midcoast Maine USA
Exclamation [SOLVED] Help! I Broke my WP INstallation!

I was getting ready to take our WP site "live":

I was in Dashboard - Settings - General and was just getting ready to make the necessary changes, I inadvertently changed the WordPress Address (URL)

from http://www.hatchtown.com/wp/

to http://www.hatchtown.com

I then saved the change, AND THEN realized I'd meant to change the Blog Address NOT the WordPress address

I quickly re-set the AP addess back to include the /wp/ subdirectory, but it was too late. I can't get in, view the WP site, or anything.

Via my FTP program I can see that all the WP files, subdirectories, etc, are still there. How do I set this right?

Help! My wife's gonna kill me!
  #2  
Old Mar 11, 2009, 11:50 AM
Flynn's Avatar
Flynn
 
3,762 posts · Oct 2008
Munich, Germany
Try adding /wp-admin/ to both versions.

If you cannot login into any of them, try changing, with PHPMyAdmin, the value of the option "siteurl" (line1) or of the option "home" (~line 39-40) in the "wp_options" table in the Wordpress database, so that both values are identical again.
  #3  
Old Mar 11, 2009, 02:30 PM
Shepherd Jim's Avatar
Shepherd Jim
 
297 posts · Feb 2009
Bristol, midcoast Maine USA
I've been in PHPMyAdmin and changed both option "siteurl" (line1) and option "home" (line 39) to BOTH read http://hatchtown.com/wp/ AND I've also tried http://hatchtown.com/ AND http://hatchtown.com/wp/blog ...the /blog had sort of appeared out of no where at some point.

BUT no matter what I try, I get either the short "Error establishing a database connection" or longer:

"Error establishing a database connection

This either means that the username and password information in your wp-config.php file is incorrect or we can't contact the database server at p50mysql127.secureserver.net. This could mean your host's database server is down.

* Are you sure you have the correct username and password?
* Are you sure that you have typed the correct hostname?
* Are you sure that the database server is running?"

I'm not sure what to do now. I do have an automatic backup from yesterday created by the plugin WP-DBManager. Do I have to re-install WP and then restore using the backup? I'm think ing that not being able to "boot" WordPress is a step worse than having the ability to run WordPress but not "see" my "Atahualpa site". This is my first "crash" so I don't know what to expect.

Note: a set of instructions I had from the WP Codex said that after I made the changes in the database that you'd suggested that I should:

"18. Delete the folder wp-content/cache (this is a new folder added with WordPress 2.0)."

I did do that.

Last edited by Shepherd Jim; Mar 11, 2009 at 03:06 PM. Reason: update info
  #4  
Old Mar 11, 2009, 03:18 PM
Flynn's Avatar
Flynn
 
3,762 posts · Oct 2008
Munich, Germany
How does this part of wp-config.php, located at the Wordpress root directory, look like

PHP Code:
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME''putyourdbnamehere');

/** MySQL database username */
define('DB_USER''usernamehere');

/** MySQL database password */
define('DB_PASSWORD''yourpasswordhere');

/** MySQL hostname */
define('DB_HOST''localhost'); 

Edit your username and password before posting your code
  #5  
Old Mar 11, 2009, 04:20 PM
Shepherd Jim's Avatar
Shepherd Jim
 
297 posts · Feb 2009
Bristol, midcoast Maine USA
Yep Flynn, your instincts were right. I had re-set the database password so it did not agree with what was showing in wp-config.php at

"/** MySQL database password */
define('DB_PASSWORD', 'MyPassword');"

Everything else, username, hostname and such were all okay. I put the new password in and uploaded the corrected wp-config.pho back into the wp root directory.

But, now if I go to log in I get a weird login screen -- sort of like the usual WP without the CSS. And if I do try to log in I get a "Page Not Found" error screen.

And the site is looking strange -- you can see it at http://hatchtown.com/wp/ -- if you click on some of the links to static pages you go up to the old index.html file in the top level www.hatchtown.com directory.
  #6  
Old Mar 11, 2009, 04:41 PM
Shepherd Jim's Avatar
Shepherd Jim
 
297 posts · Feb 2009
Bristol, midcoast Maine USA
Eureka! It's all back! Once I was using the right database password AND had re-set the directory on lines 1 and 39 in the database AND waited a few minutes for that change to percolate through GoDaddy's system everything is back to the way it was.

I need a drink!

Thank you Flynn! Couldn't have done it without you!

Jim

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with initial installation cultureofclimatechange Atahualpa 3 Wordpress theme 6 Feb 18, 2010 03:44 AM
Help! I broke my WordPress installation, too. nasu Installing & running WordPress 4 Jul 1, 2009 09:49 AM
[SOLVED] I just broke my installation: Need urgent help 360degrees New Versions, & Updating 3 Jun 18, 2009 01:33 PM
Installation options stalled mugger Atahualpa 3 Wordpress theme 6 Jun 6, 2009 10:24 AM
[SOLVED] Installation problem: theme is visible but Atahualpa options panel doesn't w mkny13 New Versions, & Updating 6 Apr 30, 2009 09:09 AM


All times are GMT -6. The time now is 05:06 AM.


Powered by vBulletin® Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.