How to fix a corrupted WordPress installation¶
WordPress frequently releases updates, which you can install through WordPress' admin interface. Usually, this works without a hitch. But with some (big) upgrades, the upgrade fails half way and leaves you with a broken website.
Fortunately, you can still fix your website, and this article tells you how to do that.
Download a fresh copy of WordPress¶
First of all, you will need to download a fresh copy of WordPress. You can download this from the official WordPress website: https://wordpress.org/download/
From there, you can download a .zip file with the WordPress code. You will need to extract this archive on your own computer.
Setup an FTP client and connection¶
To upload the WordPress files, you will need an FTP client and FTP connection. This article explains this in more detail: How to upload files with FTP.
Any FTP client should work, but this article will provide instructions intended for FileZilla, a popular FTP client available for all major operating systems.
Navigate to the folder of your website¶
In your FTP client, you need to navigate to the folder of your website.
If the website you're trying to fix is the domain you created the account with, then you'll probably need to use the
For subdomains and addon domains added to your account later, there will be a folder with the domain name, and another
htdocs folder within it. That's the folder which probably contains the website files.
Upload the WordPress code to your website¶
After finding the WordPress code of your website, you need to find the extracted
wordpress folder you got from WordPress.org. Then, select all the contents of this folder, and upload then to your existing WordPress site.
If you're uploading the code to the right folder, it should ask what to do with the files already there. You should select "Overwrite" and click the boxes to apply this action to all uploads.
At the bottom of the page, you will see the upload queue. It can take a while for all the uploads to be completed.
Check the WordPress admin area again¶
After the uploads have completed, you can check the WordPress admin area again. It may contain additional information or steps needed to complete the upgrade. After completing these steps on screen, you should have a fully functional and fully upgraded WordPress website.