In most cases, the 500 internal server error pops up when there is an issue with the server. This error can be caused by many reasons. In case you receive a 500 internal server error using Elementor, you need to check the error logs on your WordPress server.
Generally speaking, your server should show datalog errors for PHP. Through that, you need to find out the problem. Let’s see how you can create the PHP error logs.
PHP Error Log – Debug Your WordPress easily
Unlike any mind-shattering long list of coding and stuff, WordPress made debugging easy as pie. With just one global variable, you can debug your site to find the cause of 500 internal server errors.
To debug, go to CPanel File Manager for your WordPress site. There, look for the file WP-config.php. Right-click on it and click on the code editor. You will see some information, just go ahead and click Edit. After that, a code editor window will pop up. There, you need to add these two lines at the bottom,
define( ‘WP_DEBUG’, true );
define( ‘WP_DEBUG’, false );
This should enable debug mode for finding that 500 internal server error. Moreover, you can see the PHP error logs. For more information, please go to this page.
Reasons For Having 500 Internal Server Error
We can actually divide the cause of the error into two categories.
1. Common Errors 2. Fatal Errors
Let me elaborate on them for you.
1. Common Errors
This error happens whenever there is a memory issue. Actually, it happens when the site meets the memory limits. The standard requirement for a site is a 128MB memory limit. If it’s lacking, then the 500 error will most likely occur. Hence, some requirements for the site are:
- WordPress 5.0 or up
- PHP 7 or up
- MySQL 5.6 or up
- Browser Compatibility
- Server (must be from WordPress)
2. Fatal Errors
Most of the time, fatal errors happen due to:
- Memory exhaust
- Namespace declaration statement has to b…. error
- Output buffering error
For the first error, you need to increase the memory size of your WP site. This will solve the error.
Furthermore, the 2nd error is a bit problematic. So, you need to delete Elementor from your local memory and install the latest version again. This error occurs because of some corrupted 3rd party programs. Make sure to install the latest Elementor plugin from here.
Finally, the 3rd error occurs due to the old version of PHP. No need to worry. You can easily fix this 500 internal server problem from your CPanel.
Troubleshooting 500 Internal Server Error
First things first. As mentioned earlier, you need to see the PHP error log to find the root of the 500 internal server error. You must fix the issues shown in the log. If the log didn’t generate enough data, you have to bypass the system. In short, keep Elementor and disable all other plugins. Next, run the default theme that WordPress provides and mark the errors due to 3rd party products.
Additionally, another error might occur to your site. And, that is the Save error. Regardless of how many times you hit the Update button, it won’t save. This error may occur due to memory limits or security reasons. The best approach to it is to contact your hosting company and ask for solutions.
That’s it. Hope that you can solve 500 internal server error efficiently and effectively. This blog is sponsored by Element Pack, the one-in-all widget pack solution for Elementor. Make sure to give it a try.
Have a good day!