Error/Problem with custom content and previewing the template

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
neenach2002

Error/Problem with custom content and previewing the template

Post 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)!
bernard

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

Post by bernard »

exactly the same problem here, displaying in the site when i'm not identified via FrontendUsers ; disappears when identified
bernard

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

Post 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.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

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

Post by calguy1000 »

I committed a change for this to svn yesterday.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Locked

Return to “CMSMS Core”