Smarty & templates_c errors (another cause & soultio
Recently, I was having alot of Smarty errors. Specifically wit hthe templates_c directory. After making some changes to my configuration, the errors went away. All was good. However, about a week later, I began to get template_c errors again. This was confusing since I had made no changes during that time. Some more research pointed me to my server (shared server) file limits. I am allowed 200MB of disk space (which is fine). However, I am only allowed to have 10000 actual files. This is what was messing up templates_c. When Smarty writes to templates_c, it puts alot of files (and directories) there. This can put you over the top for your host plan (which will cause your server to generate an error), and it will cause template_c errors until you empty you templates_c cache (or remove other junk from your server).
The moral of this story is, be sure you check your _file limits_ for your host account. In my case, I had alot of junk (old versions of xcart) on my server. Removing this stuff seems to have worked. I'll now closely watch my file limit and empty the templates_c cache when (if) I get into the danger zone again.
Also, be careful! Some ISP's don't warn you before you go over your limits. If this is the case, you will probably be billed for anything over your plan limit.
Hope this helps anyone with similar problems.
Piper
|