Report this

What is the reason for this report?

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

Posted on June 6, 2017

The theme I have on landofmilfs.com 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!



This textbox defaults to using Markdown to format your 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.

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

@ensurance

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 ....

endwhile;

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.