Smarty error occur in error 404 page only?

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
icammy

Smarty error occur in error 404 page only?

Post 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!!!!
Mircle

Re: Smarty error occur in error 404 page only?

Post 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!
icammy

Re: Smarty error occur in error 404 page only?

Post 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!!!
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Smarty error occur in error 404 page only?

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

Re: Smarty error occur in error 404 page only?

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

Return to “CMSMS Core”