Title: Broken wp-config.php
Last modified: August 31, 2016

---

# Broken wp-config.php

 *  Resolved [Eusebiu Oprinoiu](https://wordpress.org/support/users/eusebiuoprinoiu/)
 * (@eusebiuoprinoiu)
 * [10 years ago](https://wordpress.org/support/topic/broken-wp-configphp/)
 * Hello, Taylor!
    I tried testing your plugin on localhost and it broke the entire
   website. The problem seems to be caused by the wp-config.php file whose content
   was almost entirely deleted. Only those lines of code are left: [http://pastebin.com/p0B3C3qv](http://pastebin.com/p0B3C3qv)
 * Best regards,
    Eusebiu Oprinoiu
 * [https://wordpress.org/plugins/simple-cache/](https://wordpress.org/plugins/simple-cache/)

Viewing 11 replies - 1 through 11 (of 11 total)

 *  Plugin Author [Taylor Lovett](https://wordpress.org/support/users/tlovett1/)
 * (@tlovett1)
 * [10 years ago](https://wordpress.org/support/topic/broken-wp-configphp/#post-7278872)
 * Can you email tlovett88[at]gmail?
 *  Thread Starter [Eusebiu Oprinoiu](https://wordpress.org/support/users/eusebiuoprinoiu/)
 * (@eusebiuoprinoiu)
 * [10 years ago](https://wordpress.org/support/topic/broken-wp-configphp/#post-7278881)
 * Sure! I sent you an email with a few more details.
 *  [daverempel](https://wordpress.org/support/users/daverempel/)
 * (@daverempel)
 * [10 years ago](https://wordpress.org/support/topic/broken-wp-configphp/#post-7278953)
 * I had the same issue on a local install.
 *  [TIV.NET INC.](https://wordpress.org/support/users/tivnetinc/)
 * (@tivnetinc)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/broken-wp-configphp/#post-7279102)
 * [@taylor](https://wordpress.org/support/users/taylor/):
 * 1.
 * `if ( ! @is_writable( ABSPATH . 'wp-config.php' ) ) {`
 * What if WP is in a folder? wp-config is not where you are looking for it.
 * 2. If I disable the above `if`, you find the config, *DELETE* everything in it
   and keep only one line about WP_CACHE…. Exactly the same as other people here
   reported.
 * Regards
    Gregory (@tivnet)
 *  Plugin Author [Taylor Lovett](https://wordpress.org/support/users/tlovett1/)
 * (@tlovett1)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/broken-wp-configphp/#post-7279153)
 * Is everyone here on Windows?
 *  [daverempel](https://wordpress.org/support/users/daverempel/)
 * (@daverempel)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/broken-wp-configphp/#post-7279154)
 * yeah windows 10 here
 *  [daverempel](https://wordpress.org/support/users/daverempel/)
 * (@daverempel)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/broken-wp-configphp/#post-7279155)
 * basically overwrote my whole wp-config.php file
 *  Plugin Author [Taylor Lovett](https://wordpress.org/support/users/tlovett1/)
 * (@tlovett1)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/broken-wp-configphp/#post-7279163)
 * What versions of Windows? What type of development environments? XAMP?
 *  [daverempel](https://wordpress.org/support/users/daverempel/)
 * (@daverempel)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/broken-wp-configphp/#post-7279167)
 * Windows 10 – WAMP
 *  Plugin Author [Taylor Lovett](https://wordpress.org/support/users/tlovett1/)
 * (@tlovett1)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/broken-wp-configphp/#post-7279176)
 * Fixed in 1.2.4
 *  [coderazor](https://wordpress.org/support/users/coderazor/)
 * (@coderazor)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/broken-wp-configphp/#post-7279180)
 * Hi Taylor,
 * I downloaded and installed the plugin from git this afternoon 16.04.27, and it
   wiped out the db info, SALTS etc from my wp-config file. It did add the line 
   for define( ‘WP_CACHE’, true ); // Simple Cache, and left the line for the path
   to wp-settings.php … all else was gone.
 * I had backed up my files beforehand, and simply added the missing info back in,
   but figured I would let you know.
 * Site is hosted on godaddy on a shared linux hosting account. Yell if you need
   more info. and thanks

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Broken wp-config.php’ is closed to new replies.

 * ![](https://ps.w.org/simple-cache/assets/icon-256x256.png?rev=1389527)
 * [Simple Cache](https://wordpress.org/plugins/simple-cache/)
 * [Support Threads](https://wordpress.org/support/plugin/simple-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-cache/reviews/)

## Tags

 * [cache](https://wordpress.org/support/topic-tag/cache/)

 * 11 replies
 * 5 participants
 * Last reply from: [coderazor](https://wordpress.org/support/users/coderazor/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/broken-wp-configphp/#post-7279180)
 * Status: resolved