Page 1 of 1

Preview templates

Posted: Mon Oct 18, 2004 5:42 pm
by newbie
Hi all,

I've installed CMS MS today and found it very cool. Everything looks great but when I try to edit / create new template (or content) -> I cannot preview it while editing (by pressing a preview button).
If i press "show site" it shows ok with a new template or content.
Here are the warnings I get by pressing the "preview" button:

Warning: fopen("c:/home/cmsmadesimple/smarty/cms/cache/cache\cms537.tmp", "r") - No such file or directory in c:\home\cmsmadesimple\lib\preview.functions.php on line 57

Warning: stat failed for c:/home/cmsmadesimple/smarty/cms/cache/cache\cms537.tmp (errno=2 - No such file or directory) in c:\home\cmsmadesimple\lib\preview.functions.php on line 58

Warning: fread(): supplied argument is not a valid File-Handle resource in c:\home\cmsmadesimple\lib\preview.functions.php on line 58

Warning: fclose(): supplied argument is not a valid File-Handle resource in c:\home\cmsmadesimple\lib\preview.functions.php on line 59

Warning: unlink() failed (No such file or directory) in c:\home\cmsmadesimple\lib\preview.functions.php on line 60

any suggestions?
Sorry if this question is too lame:)

Preview templates

Posted: Mon Oct 18, 2004 5:51 pm
by Ted
Check your config.php. Is your previews_path consistent with your root_path? Meaning, is the previews_path equal to root_path + "/smarty/cms/cache"?

Preview templates

Posted: Mon Oct 18, 2004 5:56 pm
by newbie
Thanks!
I found the problem in the path!

Continue to enjoy the CMS MS!