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!!!!
Smarty error occur in error 404 page only? Topic is solved
-
Mircle
Re: Smarty error occur in error 404 page only?
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!
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!
-
icammy
Re: Smarty error occur in error 404 page only?
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!!!
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?
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...
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...
-
icammy
Re: Smarty error occur in error 404 page only?
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.
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.

