By ensurance
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!
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
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).
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.