Page 1 of 1
Why do I see this smarty error (cgsimple)...
Posted: Thu Jul 24, 2008 5:51 pm
by sarah_h
I'm just trying the simplest of things; to get the page title
{$cgsimple->get_page_title()}
But this is what I see.
string(146) "Smarty error: [in content:content_en line 5]: syntax error: unrecognized tag: $cgsimple->get_page_title() (Smarty_Compiler.class.php, line 446)" string(117) "Smarty error: [in content:content_en line 5]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)"
I've tried loads of example found here on the forum but I always see this error.
Any ideas?
Sarah
Re: Why do I see this smarty error (cgsimple)...
Posted: Thu Jul 24, 2008 5:57 pm
by kermit
sarah_h wrote:
{$cgsimple->get_page_title()}
unrecognized tag: $cgsimple->get_page_title()
do you have
http://dev.cmsmadesimple.org/projects/cgsimplesmarty/ module installed?
sarah_h wrote:
[in content:content_en line 5]
in a page's content block, you can simply use the built-in {title} tag to display the current page's title.. e.g: {title}
Re: Why do I see this smarty error (cgsimple)...
Posted: Wed Jul 30, 2008 9:31 am
by sarah_h
Thanks Kermit. I feel such a fool!

Re: Why do I see this smarty error (cgsimple)...
Posted: Fri Aug 01, 2008 7:53 am
by dumpf
Hi there,
Actually I've got the same problem with CGSimpleSmarty.
I tried it with the latest and some older versions, always getting the same error:
Code: Select all
string(142) "Smarty error: [in content:parent line 1]: syntax error: unrecognized tag: $cgsimple->get_page_title() (Smarty_Compiler.class.php, line 446)" string(113) "Smarty error: [in content:parent line 1]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)"
Funny thing with that: if I reload the page, the error disappears but nothing else does appear. Neither an error message nor anything at all.
This happens with all "$cgsimple->"-tags (I need to include content from non-active pages to the active one) I tried.
{cgrepeat} and {module_something} are working!
I'd appreciate some help
Thanks in advance
Max
PS: I use CMSMS v1.2.4, cgsimple v1.3 (and tried older ones as well)
Re: Why do I see this smarty error (cgsimple)...
Posted: Fri Aug 01, 2008 7:49 pm
by Dr.CSS
You should upgrade ASAP from 1.2.4...
Re: Why do I see this smarty error (cgsimple)...
Posted: Sun Aug 03, 2008 12:20 am
by dumpf
Ok I'll do that. But will it solve my problem?
I'll just try and post the answer myself
Edit:
I just updated to v1.3.1
Fortunately, nothing got lost while upgrading.
Unfortunately, the error still exists. I even encountered a new problem:
Sometimes(!) when (re)loading a page, this smarty error occurs:
Code: Select all
string(326) "Smarty error: [in content:content_en line 1]: syntax error: unrecognized tag: mso-style-parent:"";
margin:0cm; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; mso-bidi-font-size:10.0pt;
font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; (Smarty_Compiler.class.php, line 446)"
string(117) "Smarty error: [in content:content_en line 1]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line
590)" string(377) "Smarty error: [in content:content_en line 1]: syntax error: unrecognized tag: mso-style-next:Standard;
margin:0cm; margin-bottom:.0001pt; mso-pagination:widow-orphan; page-break-after:avoid; mso-outline-level:1;
font-size:12.0pt; mso-bidi-font-size:10.0pt; font-family:"Times New Roman"; mso-font-kerning:0pt; font-weight:normal;
(Smarty_Compiler.class.php, line 446)" string(117) "Smarty error: [in content:content_en line 1]: syntax error: unrecognized
tag '' (Smarty_Compiler.class.php, line 590)" string(328) "Smarty error: [in content:content_en line 1]: syntax error:
unrecognized tag: mso-margin-top-alt:auto; margin-right:0cm; mso-margin-bottom-alt:auto; margin-left:0cm;
mso-pagination:widow-orphan; mso-outline-level:3; font-size:13.5pt; font-family:"Times New Roman"; font-weight:bold;
(Smarty_Compiler.class.php, line 446)" string(117) "Smarty error: [in content:content_en line 1]: syntax error: unrecognized
tag '' (Smarty_Compiler.class.php, line 590)" string(331) "Smarty error: [in content:content_en line 1]: syntax error:
unrecognized tag: mso-margin-top-alt:auto; margin-right:0cm; mso-margin-bottom-alt:auto; margin-left:0cm;
mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";
(Smarty_Compiler.class.php, line 446)" string(117) "Smarty error: [in content:content_en line 1]: syntax error: unrecognized
tag '' (Smarty_Compiler.class.php, line 590)" string(355) "Smarty error: [in content:content_en line 1]: syntax error:
unrecognized tag: mso-style-name:byline; mso-margin-top-alt:auto; margin-right:0cm; mso-margin-bottom-alt:auto; margin-
left:0cm; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New
Roman"; (Smarty_Compiler.class.php, line 446)" string(117) "Smarty error: [in content:content_en line 1]: syntax error:
unrecognized tag '' (Smarty_Compiler.class.php, line 590)" string(251) "Smarty error: [in content:content_en line 1]: syntax
error: unrecognized tag: size:612.0pt 792.0pt; margin:70.85pt 70.85pt 2.0cm 70.85pt; mso-header-margin:36.0pt;
mso-footer-margin:36.0pt; mso-paper-source:0; (Smarty_Compiler.class.php, line 446)" string(117) "Smarty error: [in
content:content_en line 1]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)" string(130) "Smarty error:
[in content:content_en line 1]: syntax error: unrecognized tag: page:Section1; (Smarty_Compiler.class.php, line 446)"
string(117) "Smarty error: [in content:content_en line 1]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line
590)" string(505) "Smarty error: [in content:content_en line 1]: syntax error: unrecognized tag: mso-style-name:"Normale
Tabelle"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-
alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan;
font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-
language:#0400; (Smarty_Compiler.class.php, line 446)" string(117) "Smarty error: [in content:content_en line 1]: syntax
error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)"
As you can see it's part of a css-style. But why does it appear spontaneausly? As i can see, there is no regularity...
I'd really appreciate some help because the homepage has to go online soon
Thanks a lot!
Edit No2:
I also tried using a different template. I assumed I forgot a "}" anywhere. I was wrong

Re: Why do I see this smarty error (cgsimple)...
Posted: Mon Aug 04, 2008 3:56 am
by Dr.CSS
Nope, your problem is that you are pasting out of M$ word and all those crazy things are msword specific formatting...
mso-style-parent:"";
margin:0cm; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; mso-bidi-font-size:10.0pt;
font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";
If you look at the source, turn off the wysiwyg editor when editing a page you will see all kinds of excess formatting...
Re: Why do I see this smarty error (cgsimple)...
Posted: Mon Aug 04, 2008 11:54 am
by dumpf
aah I see.
So I outed my as a newbee
Strange though, that it happens sometimes and after a reload it's gone.
But that still doesn't solve my problem with cgsimple.
Could it relate to a problem with the php-configuration? e.g. Safemode?
Re: Why do I see this smarty error (cgsimple)...
Posted: Mon Aug 04, 2008 4:19 pm
by dumpf
Solved.
And I prooved to be a huge idiot.
Those who are able to read, got a damn huge advantage:
When this module is installed, a new smarty object named cgsimple is automatically available to your page templates, global content blocks, and various module templates.
And NOT (as I thought) on content itself!
That solved the whole problem. Damn I'm such a newbee. Everone should scream: "RTFM"
Thanks a lot for everyone's help!
Max
Re: Why do I see this smarty error (cgsimple)...
Posted: Wed Aug 06, 2008 5:29 am
by kermit
@dumpf
just tested {$cgsimple->get_page_title()} and {$cgsimple->get_page_content(pagealias)}in a page's content; where 'pagealias' was a different page and was marked 'inactive' (also checked with it being 'active')
the first output the same as {title} as expected; the second one output the content of the designated page (although that content was not run through smarty (?) .. tags in that content were not interpreted, such as "{title}" and a menumanager tag.
this was done in cmsms 1.3.1 with cgsimplesmarty 1.3