How to fix broken sites after auto-updates has broken them.

The following is relevant 95% of the time when wordpress has done some auto-update process, and there was either not enough disc space on the account or some other erro casued the update to fail.
Look for a 0byte wp-config file in your file manager - Open it to edit it.

Navigate to :

Copy the contents of the file below on that page.
 * Custom WordPress configurations on "wp-config.php" file.
 * This file has the following configurations: MySQL settings, Table Prefix, Secret Keys, WordPress Language, ABSPATH and more.
 * For more information visit {@link Editing wp-config.php} Codex page.
 * Created using {@link wp-config.php File Generator} on
 * @package WordPress
 * @generator
 *//* MySQL settings */
define('DB_CHARSET','utf8mb4');/* MySQL database table prefix. */
$table_prefix ='wp_';/* Authentication Unique Keys and Salts. *//* */
define('AUTH_KEY','put your unique phrase here');
define('SECURE_AUTH_KEY','put your unique phrase here');
define('LOGGED_IN_KEY','put your unique phrase here');
define('NONCE_KEY','put your unique phrase here');
define('AUTH_SALT','put your unique phrase here');
define('SECURE_AUTH_SALT','put your unique phrase here');
define('LOGGED_IN_SALT','put your unique phrase here');
define('NONCE_SALT','put your unique phrase here');/* Absolute path to the WordPress directory. */if(!defined('ABSPATH'))
	define('ABSPATH', dirname(__FILE__).'/');/* Sets up WordPress vars and included files. */
require_once(ABSPATH .'wp-settings.php');

Paste it into the opened wp-config.php you opened for editing earlier.
Get the details for :


on the wordpress installation page in cpanel, or in the mysql databases section and replace it as in the wp-config file.

Save the file and close it.

Pages should now load.
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to do a TELNET on a PC (Windows) OS

From time to time you may need to perform an operation called "TELNET".You can use TELNET to...

How to do a Ping

The purpose of this tutorial is to teach you how to do a ping. Pinging is a command which tells...

Installing TELNET Client in Windows Vista

By default, Vista doesn't install the Telnet client.The client is for text-based communication...

How to change the default index page using a .htaccess file

The below command will set the default page your website shows to whatever you specify. For...

Error Page Codes

This tutorial will show you a few of the most common error codes a server may return. There are...