Page 1 of 2
website down after clearing cache
Posted: Mon Dec 26, 2005 10:01 am
by Azrae
aaah
I deleted all files in the tmp-dir (not the directories)
I did so because the website hasn't shown my edited content (just the old)
After doing so, I get the following error:
Code: Select all
Warning: Smarty error: unable to read resource: "db:33" in /home/deneirn/public_html/cms/lib/smarty/Smarty.class.php on line 1088
As you can see here:
www.deneir.net/cms
I dont know what the problem is, but I hope somebody here does

Re: website down after clearing cache
Posted: Mon Dec 26, 2005 1:04 pm
by Ted
Can you set debug to true in config.php?
Re: website down after clearing cache
Posted: Tue Dec 27, 2005 9:21 am
by Azrae
hm
Code: Select all
SELECT template_id, template_name, template_content, stylesheet, encoding, active, default_template, modified_date FROM cms_templates WHERE template_id = NULL
It seems that it hasn't got a template-id

Strange...
Re: website down after clearing cache
Posted: Tue Dec 27, 2005 6:01 pm
by Ted
And the admin is working fine?
Re: website down after clearing cache
Posted: Fri Dec 30, 2005 10:09 am
by Azrae
admin works perfectly
Re: website down after clearing cache
Posted: Fri Dec 30, 2005 10:13 am
by petert
Azrael wrote:
admin works perfectly
looks like the problem I had. My problems were fixed in the newest svn version.
See also:
http://dev.cmsmadesimple.org/tracker/in ... 6&atid=101
Re: website down after clearing cache
Posted: Sat Dec 31, 2005 10:28 am
by Azrae
Well,I'll give it a try.
Strange that this bug doesnt occure more often...
Re: website down after clearing cache
Posted: Mon Jan 16, 2006 10:06 pm
by Azrae
I got the latest trunk yesterday, downloaded it, uploaded it to the server and made the update.
Doesnt work
Code: Select all
Fatal error: Smarty error: [in template:6 line 17]: syntax error: unrecognized tag: li[i].onmouseover = function() { for(n=0;n/home/deneirn/public_html/cms/lib/smarty/Smarty.class.php on line 1095
Well, thats rather frustrating

Why does that not work?

Re: website down after clearing cache
Posted: Mon Jan 16, 2006 11:12 pm
by Ted
Do you have javascript on the page that isn't escaped with {literal}{/literal}?
Re: website down after clearing cache
Posted: Tue Jan 17, 2006 8:46 am
by Azrae
Do you mean js written on my own?
Re: website down after clearing cache
Posted: Tue Jan 17, 2006 8:52 am
by petert
Azrael wrote:
Do you mean js written on my own?
any javascript that isn't escaped with {literal} will make smarty treat it as a tag. This is because smarty treats the { char as start of smarty specific tags.
Thus any { that's in your content/pages that isn't escaped will make smarty crap out.
So, are there any ['s or ]'s that might cause smart to act up?
See also:
Embedding javascript
Re: website down after clearing cache
Posted: Tue Jan 17, 2006 10:12 am
by Azrae
Well, that may be possible, I have to watch.
in earlier versions of cmsms that wasn't a problem

Re: website down after clearing cache
Posted: Tue Jan 17, 2006 10:20 am
by petert
Azrael wrote:
in earlier versions of cmsms that wasn't a problem
It's a Smarty 'problem', so it always has been there.
Re: website down after clearing cache
Posted: Tue Jan 17, 2006 12:22 pm
by Azrae
But strange that it doesnt occur earlier to me, because I haven't changed my site for a while...
Re: website down after clearing cache
Posted: Tue Jan 17, 2006 12:49 pm
by petert
Azrael wrote:
But strange that it doesnt occur earlier to me, because I haven't changed my site for a while...
then maybe it has got nothing to do with the javascript problem I described earlier.