Perhaps you can help me? I have an unusual issue with a particular file.
I'm using Smarty the PHP templating engine and up until now was doing pretty well with it. When I view my website now though I keep getting a "HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request."
What's weird is the minute I rename my template from index.tpl to header.tpl or anything else like ijustmadethisup.tpl I don't get the 500 error. I think somewhere along the line the code was invalid and caused the 500 error to occur but now it won't work at all unless I rename the template.
I suspect it is a caching issue but the template_c and cache folder that I use for my Smarty app are empty and I have turned caching off using...
Code:
$smarty->caching = Smarty::CACHING_OFF;
.
I'm fairly new to running my own server and I am not sure how to diagnose this issue. I've looked inside /var/log/messages and /var/log/apache2/access.log and /var/log/apache2/error.log but can see no obvious problems. I'm using Ubuntu 10.10.
Any help would be appreciated.
Thanks everyone.