[solved] {content_image} breaks on default 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.
Post Reply
180michael
Forum Members
Forum Members
Posts: 27
Joined: Fri Dec 26, 2008 9:29 pm

[solved] {content_image} breaks on default Template

Post by 180michael »

When I use {content_image block='image1'} in the default template it seems to break every time. Am I missing something here or did I just find a bug? Is there a fix for this problem? Thank You!

Fatal error: Call to undefined function _smarty_cms_function_content_return() in /homepages/6/d281311174/htdocs/prestelinteriors/plugins/function.content_image.php on line 35

CMSMS: 1.5.3
PHP 5.2.8
MYSQL 5.0.67
Last edited by 180michael on Fri Apr 03, 2009 5:24 pm, edited 1 time in total.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: {content_image} breaks on default Template

Post by Ted »

Just curiously, is the {content_image} in your template BEFORE the regular {content} tag?  We might have stumbled on a bug here.

Thanks!
180michael
Forum Members
Forum Members
Posts: 27
Joined: Fri Dec 26, 2008 9:29 pm

Re: {content_image} breaks on default Template

Post by 180michael »

AW! No, I didn't place the {content} tag in the template to begin with. It's a static page per design. Is it bad though that {content_image} can't be used without the {content} tag?

It works now as expected.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: {content_image} breaks on default Template

Post by Ted »

1.x still has a limitation where {content} must be in the templates.  It's just legacy at this point -- the template stuff needs to be rewritten to handle that better.

Thanks for the good post, though.  Made it easy to track it down.
180michael
Forum Members
Forum Members
Posts: 27
Joined: Fri Dec 26, 2008 9:29 pm

Re: {content_image} breaks on default Template

Post by 180michael »

No problem. Thank you for your help!
Post Reply

Return to “CMSMS Core”