• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question How to fix the most common WordPress errors

NoraHensl

New Pleskian
Recently I had a problem with my website, and while I was looking for a solution, I found a tutorial on how to fix several popular WordPress errors. Here are some of them:

1. Internal Server Error may appear if something is wrong and the server is not able to identify the problem. In this case you can:
  • check for the corrupted .htaccess file
  • increase PHP memory limit
  • deactivate all WordPress plugins at once
  • re-upload the wp-admin and wp-includes folder from a fresh WordPress install
  • contact your web hosting support team to check the server logs
2. Incorrect Syntax caused by a mistake in a code syntax. A missing comma, or an extra curly bracket can break the entire script.
  • edit the code that caused this error
  • access the file you last edited using FTP
  • connect it to your website and go to the theme file that needs editing (the error will tell exactly which file and which line you need to edit)
  • remove the code you last added or write the code in correct syntax
  • save the file and upload it back to your server
3. The WordPress White Screen of Death can happen when a script exhausts PHP memory limit, due to a poorly coded theme/plugin, or because of an issue with a web hosting server.
  • increase PHP memory available to WordPress
  • disable all the plugins
  • replace your current theme with a default theme
  • turn on debugging in WordPress
  • empty your cache
  • increase PHP’s text processing capability by increasing the recursion and backtrack limit

You can paste the following code in your wp-config.php file.

1
2
3
/** Trick for long posts */
ini_set('pcre.recursion_limit',20000000);
ini_set('pcre.backtrack_limit',10000000);

Note: Before you make any changes to your site, make sure you have a backup of your WordPress site.


Hope it will be helpful for you!

Regards,
Nora
 
Last edited:
Back
Top