In this WordPress tutorial, we will quickly show you how to handle a couple of common errors, and how to, if all else fails, reinstall WordPress. If you don’t have time to follow all the steps, our team can do it for you. Check our services and prices with this link. We are here to help!
Common WordPress Problems
Before we begin, and we cannot stress this enough, uninstallation and reinstallation of the existing WordPress site is not always the answer. On the contrary, sometimes the errors we get, have a really simple fix. To clarify, we will go through the common ones, to show you what we are talking about. But, since this guide is only focused on uninstall and reinstall WordPress, we won’t show you how to deal with them in great detail. If you are still not confident enough with WordPress to tackle these problems, by all means, seek help from professionals. Besides, nobody is judging!
This is one of those frustrating coding error messages we all get in our programming adventure once in a while. Syntax is a group of rules you need to comply with in order to get the code working. For that reason, even the smallest mistake like a bracket or comma can “break” the code. To fix it, see where the problem arose, find it and manually correct it (in fact, the error displays code line location of the problem). Learn more about fixing syntax error in WordPress.
A Plugin Is Acting Weird
Face it, some themes and plugins don’t behave well together. If there is a problem, you will have to use a different plugin compatible with the ones you already have installed. To check which ones are making all the fuss, disable each one separately.
Internal Server Error
This one is a little tricky. It tells us there is a problem but that the server is not sure what and where is it. To fix it, you need to check a couple of things: htaccess, PHP memory limit, and plugins. Plugins are the easiest thing to troubleshoot. In essence, you need to disable each one and see if the problem is fixed.
Next, you can try increasing the PHP memory limit inside wpconfigphp file. Still not fixed? Find htaccess and make a WordPress backup. Go to Settings > Permalinks and save permalink changes. This should do the trick. Learn more about fixing internal server error in WordPress.
This is not always a cause for concern. In truth, it doesn’t even have to be a problem with your WordPress theme. There is a chance you have too many div tags in your code. Learn how to fix sidebar below content issue in WordPress.
If 404 error happens: Go to Settings > Permalinks and save changes. This will then overwrite htaccess and in most cases fix the problem.
Can’t Log Into WordPress Dashboard
If you somehow lost the password, but still have access to PhpMyAdmin, you can change it right there. After that just log in again! Learn more about fixing cannot login to WordPress issues.
How To Reinstall WordPress
So, you tried everything, but the problem is still there? Now, we must completely reinstall WordPress! There are a couple of different methods you can choose from. It depends on if you want to have a completely fresh installation or just a quick reinstall.
Reinstall WordPress via the Dashboard
We will start with the simplest solution. There is no need to back up anything with this method, nothing is being deleted. To reinstall WordPress via the dashboard, follow the steps below.
Go to Dashboard (in your upper left corner) and press “Re-install Now”.
The installation should begin immediately.
Finally, you will see “Welcome to WordPress” and the number of the version you just installed.
The job is therefore done!
Reinstall WordPress Through FTP
Sometimes, as we mentioned before, you can lose access to your WordPress dashboard. So what would be the solution here? To do the same thing we did in the example above, without the admin panel access, we can transfer files via FTP. (We are using Filezilla 3.44.1. in this tutorial) This method also doesn’t require back up.
Installing FTP Client
First, go to the FileZilla website and download the latest version of FileZilla Client. After it’s downloaded install it.
Open the FTP program, fill all the information you are asked to (Host, Username, Password, and Port) and click “Quickconnect”.
If everything is in the right order, the following text will be displayed. (some of the information will differ a little in your case).
On the left side, you should see your local files and on the right, your remote files.
*Don’t close the FileZilla because we will need it in the next part.
Using FileZilla To Reinstall WordPress
Now that we have an FTP client, we need to download the latest version of WordPress. To do so, go to WordPress site and download it. (It’s free of course!)
Export your WordPress content from the .zip archive. The list should look like this:
Select all files in the folder except wpcontent files . Go back to FileZilla and drag all the extracted WordPress files to the “htdocs” folder in your remote site section. The warning will appear asking if you are sure about overwriting the files. Check “Always use this action” and click ok.
Wait for it to finish and you are done. The text we previously showed should now look similar to this.
You now have a manually reinstalled core WordPress via ftp.
The “Nuclear” Option
Maybe you heard the term “nuke it”? Well, as the name implies, it destroys everything. In contrast to the real world, we at least have an efficient virtual shelter (a back-up). This option is for the bravest or the ones that just know how to do it properly. In a couple of minutes, you will be one of the latter. For this, we will also use FileZilla.
To export your data (posts, pages, etc.), do the following:
Go to the “Tools” section and click on “Export”.
This will open the “Export” section, where you can choose what to download. Just leave it on “All content”.
The browser will then download the .xml file to your computer.
Finally, copy the “wp-content” folder from FileZilla from WordPress hosting to your computer.
Content is secured!
Nuking The Files
Now for the fun (and a little scary) part. Open the FileZilla and login to your WordPress hosting (like we showed you before). Go to the “Remote site” section and find the htdocs folder. Open it, select all the existing WordPress files, right-click and click “Delete”.
Wait for it to finish, and now all the files are gone.
To complete the uninstallation, we need to delete all existing databases as well. Depending on the control panel of your host, this part could be visually different accordingly. In your control panel, you should find an icon called “MySQL Databases”. Click on it.
There you can choose the database you want to delete and click on “Remove Database”.
At last, you’ve destroyed every trace of your site. Now we need to bring it back!
Reinstall WordPress from a fresh copy
There are various ways you can do this. The user-friendly approach is an automatic installation from your host’s control panel. (all of the providers capable of WordPress hosting have this) The other method is something we already did previously so it should take no effort.
Before that, let us create the database. Go to your control panel, and open “MySQL Databases”. (the same location as before)
Pick a name and press “Create Database”.
Your database is now established. We will need this information soon.
As an example, here, we have the “Softaculous Apps Installer”. It offers several programs to be installed directly from the host.
After you open it and find WordPress software, press “Install Now”.
If you don’t want to configure anything yet, scroll down the next page, and press Install.
Wait for the installation to complete.
After all that, you now have freshly installed WordPress!
The Manual Way
We already looked at how to use FileZilla to uninstall and reinstall WordPress. For this purpose, all you need to do is to drag the files and folders into the now-empty htdocs folder. After that, go to your website.
The installation will ask you to choose a language. (However, don’t worry, you can change this later)
Then, you will be presented with information about the installation process. Click on “Let’s go!” to continue.
Fill data for your database and submit.
Press the “Run the installation” button.
Write your details and click on “Install WordPress”.
As a result, you can now log into your fully working copy of WordPress.
Bringing Data Back
To bring back your data overwrite the “wp-content” folder in FileZilla with the one from your computer.
Next, to get posts and pages go to the “Tools” section and click on “Import”.
We first need to activate the importer. Find the “Install Now” button beneath the word “WordPress”.
After the installation run the importer.
Choose your .xml file and click on “Upload file and import”.
We recommend that you configure “robots.txt” before nuking your site or doing some longer maintenance. In other words, make sure Google bots won’t crawl and index your site while in that state.
- How to Navigate Around your WordPress Dashboard
- Comments in WordPress- How To Use Them
- How to Use Categories in WordPress