Page 1 of 1

Smarty error occur in error 404 page only?

Posted: Fri Dec 22, 2006 1:49 am
by icammy
Hello all,
I have a Smarty error when there is a error 404 in my CMS.
The error is
" string(124) "Smarty error: [in template:17 line 12]: syntax error: invalid attribute name: ' "
I have checked with my template. The line 12 is a metadata tag.
" {metadata } "

When I try to refresh the page for one or twice, this error will disapper.
After it is disappered and I try to refresh the page, this error occur again.
This metadata base href is quite important to me as I would like to use the relative path.

Could anybody help for this issue?
Thanks in advance!!!!

Re: Smarty error occur in error 404 page only?

Posted: Mon Dec 25, 2006 9:13 pm
by Mircle
Gday,
I had a similar issue and the fix was that I put everything in my metadat inside a {literal}stuff here {/literal} tag. I ahve no idea why it works, it just did!

Re: Smarty error occur in error 404 page only?

Posted: Mon Jan 29, 2007 8:23 am
by icammy
Thanks Mircle!!
I have tried your suggestion. Added {literal} {/literal}

And it is now {literal}
{metadata }
{/literal}

I saved it and refresh the page, " string(124) "Smarty error: [in template:17 line 12]: syntax error: invalid attribute name: ' "
is disappeared, but " {metadata } " shown in the same position.

Thanks in advance!!!

Re: Smarty error occur in error 404 page only?

Posted: Mon Jan 29, 2007 4:23 pm
by Dr.CSS
The {metadata} tag should be as shown here nothing in it...

If you use this tag and you don't get

You may need to go to Site Admin » Global Settings and add it to the Global Metadata: box using the above formatting...

Re: Smarty error occur in error 404 page only?

Posted: Tue Jan 30, 2007 2:53 am
by icammy
Thanks Mark!

I have tried to added in the Global Metadata and it doesn't work.
Thus, I tried added instead of
like the following.....





and the feedback is still negative.

" {metadata } " appear in every pages of the CMS Made Simple.

I have tried to delete {metadata }  in my template,
but it makes all my images using relative path unload.