Have you ever tried a website and all you saw was a white screen? Not at all pleasant, eh? Even more so if the site you tried to access is that of your client’s website. This experience can be dismal! Especially if this is the first time this happens.
7 “Life-Saving” WordPress Techniques
So, to help you in these “pane” cases, here are some great WordPress techniques that will help save the life of your projects from a “possible” zombie apocalypse. They are based on the most common blackouts on WordPress sites.
Check out the corrective actions for the most common breads in WordPress.
Problem # 1 – Lost WordPress admin password and cannot recover
By default, WordPress offers the option to reset the password through the administrator account email. Just click on the “Lost your password” link located under the login form and then provide the email.
But the big problem is when you do not remember the email, or for some reason you do not have access to the page to reset the password. So, if this happens you will have to recover the password another way. You may be running WordPress on ‘ localhost ‘, or for some reason no longer have access to the registered email, so you will not be able to reset your password via email.
First you will need to have access to phpMyAdmin already. Most hosting services provide this software already installed on the server at no extra cost. Once you are logged in from phpMyAdmin, select the database that is used in the installation of your WordPress site.
You should find the table named “wp-users”. It is in this table that we will find the entries that you will need to edit in order to edit the users’ password, including the administrator. The user “admin” is usually the first of the list with ID = 1. Select this line and click on the yellow pencil or “Edit”.
Look for the line named “user_pass”, n this line, in the “Function” column, select MD5. In the “Value” column, enter your new password there. In the image below we will define it as “suanovasenha”. To save your changes, click Run. You should now be able to log in to your WordPress dashboard with the new password.
Problem # 2 – WordPress white screen
This is a terrifying problem that can happen for many reasons, ranging from a simple file upload to the server, to plug-in updates.
If the white screen issue started when upgrading to a new version of WordPress, before doing anything, try to update also the installed plugins and themes. Of course, to do this you will need to have access to the WordPress Administrator. If you do not have access to the WP admin panel, you will have to follow the tips below to solve the problem.
There are hundreds of possible causes for this problem. It could be from a library not found in the PHP installation to a badly made and / or incompatible WordPress plugin. That is, it is impossible to put here in this Post all possible causes of the White Screen. But the main causes of this problem will be addressed.
What you should do is turn on WordPress Debug mode. When it is activated, several error messages will be displayed on the screen. What you should do is investigate each of these messages. Usually, the last message is the most important because, usually it means that the execution of the PHP script stopped at that error of the last message.
Most of the time, it occurs when you update WordPress and some plugin is incompatible with the new version. Or even by some sloppiness of the Plugin developer, which did not follow the basic rules of Plugins development.
Since it is not possible to immediately identify which Plugin is causing the problem, we must disable ALL of them. To do this, simply access the directory where WordPress is installed on the server and rename the “plugins” folder to any other name and then enable the plugins one-by-one.
Problem # 3 – Your WordPress project is getting the message “Internal Server Error”
This is not a specific WordPress error because it can happen with anything else that runs on the server.
‘ Internal Server Error ‘ is not specific to WordPress, and can happen with anything else running on your server. Due to the general nature of this error, it says nothing to the developer. Asking someone to solve your problem with Internal Server Error is as if you asked the Doctor how to resolve the pain without telling him where it is located.
With that said, Internal Server Error in WordPress is often caused by a plugin and / or functions of a theme. Other likely causes for an Internal Server Error in WordPress that we know of are: Corrupted .htaccess files and PHP memory limit. We also hear about Internal Server Error occurring only when you try to access the admin area while the rest of the site remains normal.
The first thing you should do when analyzing where the Internal Server Error in WordPress comes from is to check for a corrupted .htaccess file. You can do this by renaming your .htaccess file to .htaccess_old. To rename an .htaccess file, you will need to log in to your server using FTP. Once you are there, the .htaccess file will be located in the same directory as the / wp-content /, / wp-admin / and / wp-includes / folders.
Problem # 4 – Database connection error
The error stated in this problem is called “Error establishing a database connection” and means that an error occurred while establishing the connection to the database.
Error establishing database connection is one of those errors that scare everyone who uses WordPress. As the name implies, it means that an error occurred connecting to the database. There are a number of reasons why it might be caused by a server error. But it can also be caused by a change in the details of accessing the database.
The first step is to check if the error happens only to the outside when accessing the address of the website, or also in the control panel of WordPress, in the administration area.
Checks if the database host is correct. In most cases, it will be localhost. If you run WordPress on a local server then try replacing localhost with the IP address.
Check if the error occurred when your website was receiving a lot of traffic. The error may be occurring due to your hosting.
Problem # 5 – The fatal error “Allowed memory size Exhausted”
This is a problem that occurs when we try to perform any kind of server-intensive action.
You can easily increase the PHP memory limit through the php.ini file. Many small hosts will not provide access to this type of file, but some will. So, if your web host allows you to create a php.ini file in your hosting area, this way can help you.
If you do not have access to or cannot create a php.ini file in your hosting area, you may be able to achieve the same result through the wp-config.php file.
If you do not have much experience with WordPress or with those server things, PHP programming, etc., surely the best thing to do is to ask for help from someone who has knowledge. But if at the moment you do not have anyone who can help you, the best thing to do is request support from the company that hosts your site.
Problem # 6 – The site crashed after an upgrade
This problem is caused by the incompatibility of a theme or a plugin.com to the latest version of WordPress after upgrade.
On the rare occasions when this happens, you need to find out which theme or plugin is causing the problem. If you are a developer, you can turn on the WordPress debug mode that should allow you to identify the problem 98% of the time.
If you’re not a developer, here is a simple way to find out what’s causing the problem:
- Disable all plugins;
- Switch to a standard WordPress theme like Twenty Ten, Twenty Eleven, Twenty Twelve, Twenty Thirteen or Twenty Fourteen;
- You can rest assured that: the core WordPress + theme default = works;
- Upgrade to the latest version of WordPress;
- Try activating the theme for the first time. If the site breaks down, you know that the theme is incompatible;
If all of your plugins work with the default theme and the latest version of WordPress, disable them all again, enable your theme and test each plugin one by one and test the site. Using this method, you will find the core / theme / plugin combination that does not work.
Problem # 7 – Installation damage backup
Backing up is a security need for your WordPress site. The reality is that even implementing WordPress website security and protection measures for the contents and source codes of your site, it is never 100% guarantee that nothing will happen and damage or erase parts of your project. If you do not keep an up-to-date backup, you’ll keep your hands waving. Well, you will not be able to retrieve any information or files from your site. Soon, CanalWP will teach you how to back up WordPress with Dropbox.
Dropbox is one of the most widely used cloud storage and sharing systems today. Compatible with most operating systems (Windows, Mac OS X and Linux or Unix distributions), Dropbox lets you access your files from anywhere in the world. Creating a Dropbox account is easy and fast.
To perform a WordPress backup with Dropbox, you need to have a Dropbox account and install the WordPress Backup to Dropbox plugin on your Panel. You can download the plugin through your official website or through the Dashboard of your site.
With your active Dropbox account and the WordPress Backup to Dropbox plugin also active on your dashboard, let’s start with the setup to perform your backups and keep your site files safe.