Theme I have has error with Digitalocean, but not other host!

The theme I have on gives me a ‘http error 500’ any time I try to view one of my post. I tried deleting all plugins, editing my htacces file (however it wasn’t in the same folder as wp-content, wp-includes, etc). I even deleted my droplet and tried reinstalling it. It’s not the theme because I bought a hostgator plan and it works just fine on there.

Any help would be loved as I love digital ocean!


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.


If you’re able to post single.php, we can take a closer look to see if there’s anything we can spot if you’re unable to. A second set of eyes generally helps :-).

WordPress generally uses:

while ( expr ) : 

    do stuff ....


So you’re most likely missing the endwhile; at the end (at least according to that error).

Hi @ensurance

My guess would be that your theme is doing something, which is not compatible with PHP 7.0, which is the default version delivered with Ubuntu 16.04

Have a look in your Apache log file to get more details - run this command:

tail -30 /var/log/apache/error.log