Page 1 of 1

Error/Problem with custom content and previewing the template

Posted: Sat Jan 14, 2006 1:28 am
by neenach2002
I get the following error when I try to preview my template in the box that normally shows the template:

Warning: Invalid argument supplied for foreach() in /home/soanime/public_html/cms/modules/CustomContent/CustomContent.module.php on line 448

Fatal error: Smarty error: [in preview:cmspreview08XnWH line 369]: syntax error: unexpected {else} (Smarty_Compiler.class.php, line 468) in /home/soanime/public_html/cms/lib/smarty/Smarty.class.php on line 1088

The template displays fine when accessed normally.  When I remove this code:

Code: Select all

{else}
{html_blob name="ad"}
{/else}
I still get the first error, but the template itself displays below the error in the preview box.

I have the custom content module installed, along with it's dependencies.
Any help would be greatly appreciated...

Lastly...this is the only CMS I would ever dream of using...I love the fact that it uses Smarty, and is so easy to customize.  I like it better than anything else I've seen!  Great work you guys (and girls)!

Re: Error/Problem with custom content and previewing the template

Posted: Sat Jan 14, 2006 12:07 pm
by bernard
exactly the same problem here, displaying in the site when i'm not identified via FrontendUsers ; disappears when identified

Re: Error/Problem with custom content and previewing the template

Posted: Sat Jan 14, 2006 12:20 pm
by bernard
I forgot to say hello, at first.

I also forgot to say that this error occurs even when Custom Content isn't USED in any pages. It only needs to be installed to show such an error.

Thx in advance.

Re: Error/Problem with custom content and previewing the template

Posted: Mon Jan 23, 2006 3:56 pm
by calguy1000
I committed a change for this to svn yesterday.