Page 1 of 1

unrecognized tag 'title'. It worked... then it didn't.

Posted: Mon Mar 14, 2005 2:06 am
by jptechnical
I was using the bulletmenu tag for links for the main pages on section headers. Here is my code:

Code: Select all

Here are all the pages available in the {title} section:
{bulletmenu start_element="3"}
It used to work fine, and when I say used to I mean 10 mins ago! I had gotten half done putting this code in each main page and then when I was on the 2nd to last one I loaded the page and whammy this error:

Code: Select all

fatal error: Smarty error: [in db:Membership line 38]: syntax error: unrecognized tag 'title' (Smarty_Compiler.class.php, line 576) in /home/myname/public_html/lib/smarty/Smarty.class.php on line 1088
Then I went back and checked the other pages and they gave me the same error. I cleared the cache and checked the spelling, the code, I copied from one I knew had worked and it didnt make a difference.

I know that the tag {title} is already called twice; once in the for the page title and once in the template above the {content} tag. These still work fine.

I am pretty sure some tags you can not run more than once in the same page, but it would be really bad if a smarty tag like {title} couldn't, or if it had a limited number of uses before it was too much.

Anyone have an idea? Is this possibly a bug?

Thanks all.

Re: unrecognized tag 'title'. It worked... then it didn't.

Posted: Mon Mar 14, 2005 3:11 am
by Ted
Wow!

That is a huge bug that has never come up before...  The trick is that it will work on a template, but not in a content page.

Basically, I handle several tags with my own logic before sending it off to smarty to handle the rest of the tags.  On of them is title...  I'm actually replacing instances of {title} before {content}, so title tags inside content get sent off to smarty, which doesn't have a clue how to handle them.  {stylesheet} will do the same thing.

Thanks for finding that.  I never really thought about it before.  It's going on my TODO list now.  If I get a chance tomorrow, I'll try to figure out the fix against the 0.9.2 code.

Re: unrecognized tag 'title'. It worked... then it didn't.

Posted: Sat Apr 01, 2006 3:53 pm
by mat123slade
Hi,

I'm also having a problem, my website is using latest of CMS Made simple, it was working fine yesterday, and I haven't touched it or added content in any way and all of  sudden I'm getting the following error :

Code: Select all

Fatal error: Smarty error: [in template:9 line 9]: syntax error: unrecognized tag 'title' (Smarty_Compiler.class.php, line 580) in /home/matt/public_html/lib/smarty/Smarty.class.php on line 1095
I'm getting this on every page with every default template. I've tried taking out the {title} tag but it puts the same error message with following tag on page...

I really can't think what this has come from. Any advice would be greatly appreciated.

Re: unrecognized tag 'title'. It worked... then it didn't.

Posted: Fri May 19, 2006 8:34 am
by guynux
Hi,
Have exactly the same fatal error with Savusavu:
Fatal error: Smarty error: [in template:17 line 9]: syntax error: unrecognized tag 'title' (Smarty_Compiler.class.php, line 580) in /mnt/124/free.fr/c/c/any/cms/lib/smarty/Smarty.class.php on line 1095
Seems also correlated in admin/image manger with the two following messages:
Invalid base directory: /var/www/free.fr/c/c/any/cms/uploads/images
Warning: is_dir() [function.is-dir]: Unable to access /var/www/free.fr/c/c/any/cms/uploads/images in /mnt/124/free.fr/c/c/any/cms/lib/filemanager/ImageManager/Classes/ImageManager.php on line 57
The uploads/images path is quite good in config.php.
Something seems also wrong displaying a lot of "--Add Me - module:..." in the admin/content or modules menu.
For information, installed the Album (worked fine) and SimpleViewer (did'nt work) and Uploads (1.1.9) modules.
After I ugraded in CMSMS 1.3, I got exactly the same.
Any help very appreciated for this great CMS
Thanks
Guy

Re: unrecognized tag 'title'. It worked... then it didn't. [solved]

Posted: Sun May 21, 2006 8:48 am
by guynux
For me,  this was an issue in relation with some changes of my hosting.
The solution was changing in config.php all:

Code: Select all

/var/www/free.fr/c/c/any/cms
by:

Code: Select all

/mnt/124/free.fr/c/c/any/cms