WordPress is a free and open source CMS which is based on the PHP and MySQL. For using a WordPress, you don’t need a very technical knowledge of PHP and MySQL. You can create your pages as well write your posts in a very easy manner. WordPress also provides you an option to use either a default theme or the customized theme to create an appearance of the website as per your requirement. The major advantage of WordPress is that it has a vast number of plugins which helps you to achieve the difficult functionalities in very simple steps i.e. You don’t need to write code of web based languages (PHP or HTML) to perform difficult tasks.At last ….WordPress is FREE!!!!You can download WordPress for self-hosted installations from WordPress.org or you can use the hosted service of WordPress.com.
Despite it is so easy to use but you can also encounter some problems with the WordPress website.The most common problem is the 500 Internal Server Error.You have to keep in mind that every time the problem is not due to WordPress,it can be from the server side also.Here below we are are describing some of the source of the problem along with their solutions.
It might be possible that you will encounter this error when you installed a new plugin.This problem is due to its incompatibility with the WordPress version due to either any of the possibilities
- code of Plugin supports the old version of PHP only.
- Updated version of WordPress removed the support of the functions used in plugin
- Coded incorrectly for e.g. referring to default database instead of using prefixes.
Solution: Open your FTP client and login into your account with your credentials.Go to path /www/wp-content and rename the folder plugins to _plugins.Now when you enter in the admin panel ,you may encounter as series of error like
ABC plugin was deactivated because the file D.php can’t be found
Don’t worry about it. Rename the folder _plugins to plugins. Now you will find that all the errors are gone and the plugins are listed in the deactivated state. Now reactivate one by one and find the one which is creating the problem. Remove it and find the alternative of it on WordPress plugin library.
If the disabling of plugins does not help, then you can also try to resolve this problem by applying the default theme.It might be possible that the updates of the theme created this problem.
Bad or Corrupted .htaccess
If the above-stated steps didn’t solve your problem,then it might be possible that your .htaccess file got corrupted. .htaccess is a distributed configuration file which is used by the WordPress to manipulate how Apache serves files from its root directory and subdirectories.WordPress modifies this file to handle pretty permalinks.
Solution: From the root of the WordPress install, rename the .htacess to .htacess_old.You can rename it with the help of your FTP client. After renaming,open the admin panel of the WordPress,then click on Settings->Permalinks.Now click on Save Changes button.This step will regenerate the working .htaccess file but the changes made by you earlier manually will be lost.You need to rewrite the changes.
Note: If you don’t find .htaccess file in your FTP Client then enable your settings to view the hidden files of FTP client.
Exhausted PHP Memory Limits
WordPress requires a certain amount of free memory to work perfectly but it might be possible that your plugins, themes, and scripts use a major part of that memory.
Solution: Now you need to increase the memory limit.For this, add the line in wp-config.php
You can easily do it with the help of your FTP client.
Corruption in Core Files
Generally, users commit mistakes while adding code snippets in the core files.If the core files of the WordPress are corrupted,then you can also face this error.
Solution:Reupload a fresh copy of wp-admin and wp-include folders from the newly released version of WordPress.No Worry…You will not loose any data because the wp-content folder is not replaced and it contains all of yours data.
About 90% of percent of the problems will be solved after following the above solution but it might be possible that the error is generated due to some other reason i.e PHP errors.Now you have to enable a debug log so that you can analyze step by step to solve the issue.To enable debug log mode, open wp-config.php file and find the statement
Now comment it by writing // in front of statement and write the following code
define(‘WP_DEBUG’, true);define(‘WP_DEBUG_LOG’, true);define(‘WP_DEBUG_DISPLAY’, false);@ini_set(‘display_errors’,0);
This will generate a file name error.log which can be opened in any text editor.Now find the error step by step and resolve the PHP issues in the PHP files.But for this, you need to be technically perfect in PHP.
Note: After solving your problem always remember to uncomment the code and remove the newly inserted code otherwise your will get an error.log file of big size.
Conclusion: There are also other applications installed on the server side.These applications can also stop your website.If the problem is due to wordPress then the above-stated steps will surely solve your problem.If the problem persists we suggest you to contact your service provider and report them this issue.