Skip to main content
Wordpress

• ▷ WordPress Errors - How to fix them ALL in 2020




Let's be clear: WordPress isn't a perfect gift that comes in a box, complete with manuals and troubleshooting guides.

In the real world, WordPress is an open source program, free to use, and without a dedicated customer support team, it is far from being a flawless platform.

Errors can be difficult or quick. Some mistakes that WordPress beginners often make were previously discussed here.

But, as an example, you run into a problem where you are in the process of developing your site, and the information is not reflected in your browser.

The quick solution with that is to clear your browser's cache. Website information will load faster if it is cached.

Therefore, if the browser does not load the newly added information on your site, the cache may not have received the information thoroughly. This way a simple 'flush the cache' in the browser will solve it, and you are good to go!

Aside from clearing your browser cache, we have listed 11 of the most common problems encountered in developing a WordPress website and how to solve them without having to worry about a thing.

1. Internal server error

Internal server error 500 is a very common HTTP status code, which means something is wrong with the server, but the server is not specific about what the problem is. When this message appears, you should investigate what is the cause of this error.

Here are some of the causes of internal server errors:

  • Corrupted .htaccess file - To fix this, just go to the root of your site via File Transfer Protocol (FTP) and rename your .htaccess file to .htaccess_old. Try to reload the site if it works, if so, go to Settings and then Permission Links to reset your Permission Links. This hack will create a new .htaccess file.
  • Plugin or theme number - If you find that you are facing these problems, try deactivating the plugins and go back to your old themes and plugins that work for your site.
  • Reaching the PHP limit - if the error message indicates that you have already reached your PHP limit, at the same time you could increase your PHP by creating a blank text file called php.ini. Paste the code into the file, save it and upload it to your / wp folder -admin / using FTP.memory = 64MBThis solution might work temporarily, and you will have to find another solution that will work forever.

If none of these work, try reloading the / wp-admin and / wp-includes folders from a fresh WordPress installation using an FTP client. Make sure to select "Overwrite" so that the old files are replaced.

2. 403 Forbidden error

Here are some cases where this error message occurs:

  • Access Denied on WordPress Login Page
  • When visiting any page of your WordPress site
  • During the installation process
  • Corrupt .htaccess file
  • Incorrect file permissions on your server
  • Accidental changes made by your hosting company

At the same time you may get "Access Denied" error on your page instead of 403 Forbidden status. In most cases, these errors are due to misconfiguration of security plugins, which can block multiple IP addresses.

If you think you are dealing with file permissions, the quick solution is to contact your hosting provider to check the file permissions. But, if you want to access it on your own, connect your WordPress site using the FTP Client. Go to the root folder where all your WordPress files are stored. Right-click the folder and select File Permissions.

After following the steps, you will see the file permissions dialog:

  • All folders must have a file permission of 744 or 755
  • All folders on the WordPress site must have a file permission of 644 or 640

Remember to adjust the parameters accordingly.

Please try to re-enter your website if this solution works. If not, you can choose file permission 744 or 755. Check the box next to "Recurse into subdirectories", then check the option "apply to directories only" and click OK. Repeat the process for the WordPress files.

3. 404 Page not found Error

The 404 error is the message that appears when your site visitor wants to enter a certain message on your page that could not be found. This happened when the .htaccess file was deleted and rewritten, and the permalink was not configured correctly.

To fix this issue, go to the Permalinks section in the Settings menu of the WordPress dashboard and save your changes. In this way, the configuration will update and refresh the new rules. This quick fix works the 99% of the time.

If this doesn't work, try manually updating the .htacess file in the folder where / wp-content and / wp-includes is located. Change the permission to 666 to make it writable. Repeat the original solution and change back to 660.

At the same time you can test this code in your .htaccess file.
1 # BEGIN WordPress 2 3 RewriteEngine On 4 RewriteBase / 5 RewriteRule ^ index.php$ - [L] 6 RewriteCond % {REQUEST_FILENAME})! -F 7 RewriteCond % {REQUEST_FILENAME}! -D 8 Rewrite rule. /index.php[L] 9 10 # END WordPress4

.

White Screen of Death (WSoD)

Appears as a blank screen with no information on a website. This is mainly due to PHP or database crashes, specifically:

  • Plugin compatibility issues: To quickly resolve these, try disabling and re-enabling them again.
  • Issues with themes - this mainly occurs when creating a new website in WordPress and activating a new theme. To fix this, try logging into your dashboard and turning on the default WordPress theme. If you can't get into the admin area, access your site using FTP and look for / wp-content / themes / folder. Then rename the active theme folder.
  • Theme directory is missing or renamed - An error appears in the interface "The theme directory" {theme-name} ". Access your WordPress dashboard, change the theme, change the name of your directory, or edit the "theme" and "stylesheet" records in wp_options.

We discuss World Health Day in detail in this post.

5. Failed to establish a database connection

If this error is displayed on your site, there may be a problem with the connection in your database, which could be caused by the following:

  • Incorrect wp-config.php information - Make sure the following details are correct:
    • base name
    • database username
    • database password
    • database host

If you are sure this data is correct, try resetting your MySQL password manually

  • Problem with your web server - Contact your web host, as the problem may be a server down or a problem with space in the database.
  • Hacked Website - Try using Sucuri to scan your site, make sure you have secure plugins in place, that it scans your website without slowing it down and can fix it in just a minute.

6. Failed to auto update WordPress

Sometimes a failing automatic WordPress update appears as:

  • Blank screen without any information
  • Update notice failure
  • A PHP error message

To fix these issues, update your WordPress site manually or recover previous website backups.

7. Connection timeout error

This type of error mainly occurs because your website is running out of memory, or trying to access more than your server can handle.

Here are some quick ideas you can use to fix this error:

  • Ask your hosting provider to increase your memory limit or add this code to your file definition wp-config.php ('WP_MEMORY_LIMIT', '64M');
  • Increase the maximum execution time in your php.ini file

8. "Maintenance Mode" stuck after update

This error is easy for you to know, as the message "Maintenance Mode" will appear all over your web page. To fix this right away, delete the .maintenance file in your WordPress site's installation directory and update your website.

9. Syntax error

The syntax error occurs when you are adding some code to your WordPress and you may have missed something or entered something that does not match the above in effect.

To fix this problem, you need to review the code you entered and correct the problematic syntax. Most of the time, missing brackets or characters are the usual culprits.

10. How to block access to WordPress Admin (wp-admin)

Common reasons you are locked out of the WordPress admin area:

1. Incorrect password Yes

you have forgotten your password or your website has been hacked, you can try to reset your password from phpMyAdmin. To get started, go to your cPanel control panel and click on the phpMyAdmin icon under Database. Once it starts, select your WordPress database.
Find the table labeled '{table prefix} _users' (in other words, wp_users) and click 'Browse'

AND

Give the username for which you want to change the password, change the value in user_pass and replace it with your new password.

In the function column, select MD5 from the drop-down menu. This ensures that your password is encrypted with the MD5 hash when stored in the database.

2. Administrator privileges lost Yes

your website is hacked, it is feasible that you can enter the administration area but you will not be able to make changes to the themes or plugins. This means that your permission has been modified.

To solve this problem, you can add a new administrator user to your database through MySQL. You just have to go to your cPanel control panel and update the wp_users table.

Click "Insert" to create a new account and add the following:

  • ID: any number
  • user_login: new username
  • user_pass: New Password. Be sure to select MD5 from the function menu.
  • Username: nickname
  • user_email: email you want to associate with this account
  • user_url: the URL of your website
  • user_registered: date / time the user is registered
  • user_status: Set to 0.
  • display_name: the name you would like to display for this user on the site

Once you're done, click "Go" and update the wp_usermeta table with the following details:

  • unmeta_id: this is self-provoked
  • user_id: id that you previously added
  • meta_key: wp_capabilities.
  • meta_value: insert this: a: 1: {s: 13: »administrator»; s: 1: »1 ″;}

Insert another line with the following details:

  • unmeta_id: this is self-provoked
  • user_id: id that you previously added
  • meta_key: wp_user_level
  • meta_value: 10.

That's it and click "Go"

TO

time you can use the newly added username as your username to login to wp-admin.

3. PHP errors (syntax errors)

This typically occurs when bad code from another website was copied and pasted onto your site. You can correct this by accessing the FTP program, removing the code you added, regularly in the functions.php file, and reloading the file.

Other causes of blockage include:

  • An installed plugin or code that tries to make changes in the admin section
  • Errors when establishing the connection to the database
  • White screen of death

Content Errors
Possible issues that caused these errors and ideas to fix them:

  • The HTML code is invalid - this usually happens when the website developer forgets to close the tag
    With for
    check this, you can copy the code to an HTML validation check program to find out what HTML code needs to be corrected.
  • The theme has been corrupted - if you discover that all your codes are correctly entered, your theme could be the problem. Update the theme to a new version if it is available or reinstall the latest version of the theme.
  • Wrong width or proportion - make sure all your margins match each other's size.
  • Float property - Make sure float: left and float: right is added to the items on the right. Incorrect CSS will break the display of your website.
  • Style.css file broken - hiring a developer is worth noting if you are not technical

conclusion

A website owner should be aware of the most common problems that a WordPress website can encounter.

At the same time, you should consider even simple troubleshooting to avoid long downtime that could lead to lost visitors or profit.

A website maintenance or troubleshooting team may be the best route if something unexpected occurs on your website that is beyond your control.

At the same time, make sure that all the codes on your website are protected and properly encrypted to avoid being hacked.