“This page isn’t working. www.whereiscebu.com is currently unable to handle this request. HTTP Error 500.” Earlier this afternoon, I’ve broken my precious website! And it feels so disappointing for me and highly worried upon seeing the issue. But how are we going to resolve and able to fix this?
Honestly, this is one thing that I never wish to happen to my website. And if you happen to be a beginner and caught this kind of issue to your website, probably you will be in panic mode. Just take a deep breath and don’t panic. I have some solutions below for you to find.
One of the most frustrating errors that can occur in WordPress is having this kind of issue. Although there has never been an outright solution to this since it will require a lot of troubleshooting. And this can also consume a lot of your time and to test your patience too. But with the help of online resources I find a way on how are we going to help alleviate some of that stress by walking you through each of the solutions below.
Creating a new .htaccess file
Access your WordPress installation via cPanel or FTP. To check .htaccess file, this is located in the same directory where you will see folders like wp-content, wp-admin, and wp-includes. Sometimes it is hidden. If that’s the case, you’ll need to enable the show hidden files. Go to Settings (located upper rightmost of Cpanel File Manager); click √ Document Root for; check √ Show Hidden Files (dotfiles).
Then rename the .htaccess file. Just right-click and rename it to .htaccess.bak – this essentially deletes your site’s .htaccess file so we need to create a new one.
Once you have renamed the .htaccess file, try loading your site to see if this solved the problem. If it works good, your website will be back to normal page. If the solution did not work for you, then you need to try other steps below.
Deactivate all Plugins
If it did not work the above solutions, then this error is most likely being caused by a specific plugin. This might be caused some incompatibility issue of your WordPress version. There is no easy way to find this out. You have to deactivate all WordPress plugins at once. Try to rename plugins to plugins_off. And if this will not work, we will try another solutions below.
Increase PHP Memory Limit in WordPress
PHP memory limits are set by your host and WordPress. And as you go through to your site’s content and plugins oftentimes it exceeds the memory. This limit is often lower for shared hosting plans. However, there’s a solution to it by increasing your PHP memory limit in WordPress.
How to do? Open your root directory, and locate your wp-config.php file. Right-click on the file, and select Download to download it to your computer. Open the file in editor, and add this bit of code under the opening PHP tag:
Save the file, and re-upload it to your root directory, overwriting the original file. Refresh the client, and refresh your site. If you still see the error, you are not having PHP memory limit issues. And if this solution still won’t work for you, then remove the above code from the wp-config.php file on your computer, save it, and re-upload it to your root directory.
Upload Fresh Versions of wp-admin and wp-includes to Your Site
If the plugin option and other solutions above didn’t fix the internal server error, then try re-uploading the wp-admin and wp-includes folder from a fresh WordPress install. Download a fresh version of WordPress from the main site. These two files will NOT remove any of your information, but it may solve the problem in case any file was corrupted. Then try refresh your website to check if this works for you.
Upload A New Version of Current WordPress Theme
This step should be your last move. Download a fresh version of your current WordPress theme. Extract the files from the ZIP file, and open the extracted folder. Open your site’s root directory in an FTP client, and upload your fresh version of WordPress theme to your site’s directory. But before that, rename your current theme e.g. CUSTOMIZR_OFF, this would disable your old version. See image below.
Refresh your website. If the error is gone, it was likely caused by a corrupted core file. If you still see the error, you may have no other option but to seek help with your host.
Contact Your Host
I know how devastating sometimes having tried all the solutions above but it did not solve your problem in anyway. But lastly, your Host can be your savior. Although Host sometimes will not take immediate action to your problem. However, just keep on making follow-ups with the Technical team. And explain to them that you’ve checked every nook and cranny of your file system and can’t find a single issue that would lead to the 500 internal server error that’s running on your site.
I understand most of the time that Host won’t resolve 24 hours of your problem. It doesn’t always have to be that way. So you must be patient for your ticket to be given attention.
Lastly, How Did I Able to Resolve The Issue?
I tried to follow the solutions above by Uploading a New Version of my current WordPress Theme. And that solves my problem. I just followed and it was indeed successful. I felt relieved after all the disappointments and difficulties that I’ve been through!
I realized that the theme was the main problem because I may have touched the sensitivity of the scripts of functions.php and that creates the big trouble. There’s one plugin that I wanted to insert the scripts manually to functions.php and that causes the problem.
In view of this, in order to be safe, whatever may happen, just make sure to back up your site on a regular basis and update your plugins, themes, and WordPress core files as soon as they’re available.
Lastly, one thing for sure, I know there are a lot of us who budgets when it comes to Hosting package. It is suggested, to make sure to upgrade your hosting package accordingly. This error is most likely to occur on a small-budget shared hosting server. Upgrade your hosting package to make capable of handling your growing site. And I believe coz I’ve been facing this kind of intermittent issues to my site.
Perhaps, have you ever been into the same situation like this? And what was your resolution? Is it alright if you wanna share it to other readers too? Why not drop your feedback as well and let us try to figure things out.