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

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
jptechnical
Forum Members
Forum Members
Posts: 131
Joined: Wed Jan 12, 2005 12:18 am

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

Post 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.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

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

Post 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.
mat123slade

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

Post 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.
Last edited by mat123slade on Sat Apr 01, 2006 4:00 pm, edited 1 time in total.
guynux

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

Post 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
Last edited by guynux on Fri May 19, 2006 3:53 pm, edited 1 time in total.
guynux

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

Post 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
Post Reply

Return to “CMSMS Core”