Let’s take a look at common errors in WordPress and what to do to fix them.

1. Internal Server Error- How to fix internal server error in WordPress

Another common error that WordPress users may encounter is “Internal Server Error” or sometimes “500 Internal Server Error”. This error often occurs when something has happened, but the server cannot determine the problem. Since the error message does not tell you where to look for it, you will have to deal with it yourself. We have compiled a list of solutions to this problem, and one of them should help you deal with this error.

  • Plugin or theme functions
  • Corrupted .htaccess file
  • PHP memory limit exhausted
  • When trying to access the admin panel while the site is working fine

2. Error Establishing a Database Connection

The message contains a clear indication that your website cannot connect to the database. However, solving this error can be tricky for beginners. This usually happens when the user has entered or changed the database accounts (hosting, username, password) incorrectly. Another reason may lie in the fact that there is no response from the server or the database is corrupted. However, in most cases, these are usually the wrong login accounts.

3 deadly white screen

This error usually manifests itself on a completely white screen of your device without any error messages, which makes it especially difficult since you have no idea where to look for it and how to fix it. In most cases, the reason is that the script has run out of PHP memory. The reason for this may be one of the plugins that do not function correctly; a poorly coded theme template that you use on your site. This can also happen due to configuration on the server. It is also possible that the user will only see a deadly white screen in certain areas of the site.

4. WordPress posts error 404 – not found

The symptoms of this error appear when a user visits an individual post on their site and receives a 404 -page not found error message. At the same time, the user can view all other sections of his site, including the admin panel. The most common cause of this problem is the permalink setup in WordPress. To solve this problem, the user must reconfigure the permalink settings or manually update the rewrite rules.

As mentioned above, the user has access to the administrative panel, to the main page of his blog, but when he tries to access individual posts, he receives a 404 Not found error message. This usually happens due to the .htaccess file being deleted or something wrong with the rewrite rules.

5. The sidebar is located below the content

Another common problem that novice WordPress users may encounter is that the sidebar appears below the content, and not properly on the side. Most of the reasons for this error are related to topics. Sometimes when users add code snippets to their site, they may accidentally forget to close the HTML div tag or add an extra closing div tag, which can break the theme layout. Another common mistake is using disproportionate widths in CSS or clearing floats incorrectly (float is a CSS positioning property, simplified left-right, etc.)

Check out everything you recently changed. Added a new plugin? Did you make HTML-related changes? If your page or post content has <div> tag blocks, make sure they are properly closed. One of the best ways to find errors is to use the W3 Validator. (Just enter your URL into the box and you’ll get a list of errors in a few seconds).

6. White text and disappeared buttons in WordPress visual editor

Sometimes buttons on the WordPress visual editor panel may disappear or be replaced with white space. This issue can occur when the connected JavaScript does not work in the user’s admin panel, the TinyMCE files are missing or damaged, or a conflict with some other plugin that modifies or extends the TinyMCE that comes with WordPress.

7. WordPress Memory Exhausted Error – increasing PHP memory

Symptoms of this error can be a deadly white screen or an error message like this:

Fatal error: The allowed memory size of 33554432 bytes exhausted (tried to allocate 2348617 bytes) in /home/username/public_html/site1/wp-includes/plugin.php online xxx bytes) to the folder name online xxx)

This error occurs when a WordPress script or plugin runs out of memory allocated by default.

How to fix this error. Open your wp-config.php file located in your WordPress root folder. Add the following line inside your PHP tag.

one define(‘WP_MEMORY_LIMIT’, ’64M’);

Thus, you will increase the memory limit to 64 M. If after this the error persists, contact your hosting. Most likely they will go into their php.ini file to increase the memory limit for you.

8. How to fix Syntax Error in WordPress

This error often occurs when you are trying to add code snippets (snippets) to WordPress and accidentally miss a character or letter, or the code itself is not written correctly. As a result, a PHP parse error pops up and you see a message in front of you that looks like this:

Parse error – syntax error, unexpected $ end in /public_html/site1/wp-content/themes/my-theme/functions.php on line 278 -content / themes / my-theme / functions.php on line 278)

The error message contains an indication that something extraneous was found in the code, as well as the location of the script where the line number error was found. To fix this error, you must correct the syntax. In most cases, this is an omitted parenthesis or some extra character in the code.