Page 1 of 1

[Solved]"Smarty error:character "s" not allowed in prolog validates.. sometimes

Posted: Wed Dec 03, 2008 7:54 pm
by mobilexhtml
Hi

I am having an issue with my header.. It sometimes shows up very far down on the page, I reload the page and it goes up where it should be...I use content block to fetch the header, which is a picture with this wrapped around it:




I also get this error (that I think is related) when trying to validate my templates..

#  Error  Line 1, Column 0: character "s" not allowed in prolog.
string(124) "Smarty error: [in template:44 line 11]: syntax error: unrecognized

I get 8 of them, all stating the same, but on different lines..

But the weird thing is that my templates validates as xhtml mp 1.0 for the most..
Meaning if I try to validate now..no problem, but if I wait 2 seconds and validate again it will either validate again or give me the smarty error..

I am thinking that when my header is where it should be, it validates and vice versa..

I though of the byte order mark issue, so I saved all my templates as ANSI and then copy pasted the code back to cmsms.. But this did nothing..(maybe because I just copy/pasted ?)

I run CMS Made Simple 1.4.1 "Spring Garden" and use firefox 3.0.4 with stupid stupid Vista


Hope someone can help..

-John

Re: "Smarty error: character "s" not allowed in prolog" validates.. sometimes

Posted: Wed Dec 03, 2008 7:57 pm
by RonnyK
Do you have a link, to see and check?

Ronny

Re: "Smarty error: character "s" not allowed in prolog" validates.. sometimes

Posted: Wed Dec 03, 2008 8:00 pm
by mobilexhtml
RonnyK wrote: Do you have a link, to see and check?

Ronny

yeah in pm...

-John

Re: "Smarty error: character "s" not allowed in prolog" validates.. sometimes

Posted: Wed Dec 03, 2008 8:15 pm
by RonnyK
are you sure that your doctype, set in the top of the template, is correct. As that definition already starts the issue...

Ronny

Re: "Smarty error: character "s" not allowed in prolog" validates.. sometimes

Posted: Wed Dec 03, 2008 8:26 pm
by mobilexhtml
RonnyK wrote: are you sure that your doctype, set in the top of the template, is correct. As that definition already starts the issue...

Ronny
No not really..but I thought that when it validates (for the most :-) it is "all good" .. hmm..
and wikipedia says this: http://en.wikipedia.org/wiki/XHTML_Mobi ... CTYPE   :D

But what do you mean "..definition already starts the issue... " ?

-John


I'll change too




and see...

Re: "Smarty error: character "s" not allowed in prolog" validates.. sometimes

Posted: Wed Dec 03, 2008 8:58 pm
by mobilexhtml
Nope, that did not help...

The smarty string error just goes on top of the doctype..

string(124) "Smarty error: [in template:32 line 11]: syntax error: unrecognized tag: color: #FFFFFF (Smarty_Compiler.class.php, line 446)"
string(111) "Smarty error: [in template:32 line 11]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)"
string(124) "Smarty error: [in template:32 line 12]: syntax error: unrecognized tag: color: #FFFFFF (Smarty_Compiler.class.php, line 446)"
string(111) "Smarty error: [in template:32 line 12]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)"
string(124) "Smarty error: [in template:32 line 13]: syntax error: unrecognized tag: color: #FFFFFF (Smarty_Compiler.class.php, line 446)"
string(111) "Smarty error: [in template:32 line 13]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)"
string(155) "Smarty error: [in template:32 line 14]: syntax error: unrecognized tag: background-color: black; color: rgb(0, 0, 0); (Smarty_Compiler.class.php, line 446)"
string(111) "Smarty error: [in template:32 line 14]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)"
string(139) "Smarty error: [in template:32 line 15]: syntax error: unrecognized tag: font-family: Times New Roman; (Smarty_Compiler.class.php, line 446)"
string(111) "Smarty error: [in template:32 line 15]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)"
string(224) "Smarty error: [in template:32 line 16]: syntax error: unrecognized tag: float: left; width: 100%; background-color: black; font-family: Times New Roman; text-align: center; color: white; (Smarty_Compiler.class.php, line 446)"
string(111) "Smarty error: [in template:32 line 16]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)"
string(165) "Smarty error: [in template:32 line 17]: syntax error: unrecognized tag: font-size: small; font-family: arial black,avant garde; (Smarty_Compiler.class.php, line 446)"
string(111) "Smarty error: [in template:32 line 17]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)"
string(143) "Smarty error: [in template:32 line 18]: syntax error: unrecognized tag: text-align: center; color: white; (Smarty_Compiler.class.php, line 446)"
string(111) "Smarty error: [in template:32 line 18]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)"






This was copied from the browser/source.. the other faults "Smarty error: character "s" not allowed in prolog" shows in the validator w3c..



correct me if I'm wrong....

But is smarty seeing this as some udt or global content block ??? :


:link { color: #0000FF }             

Re: "Smarty error: character "s" not allowed in prolog" validates.. sometimes

Posted: Thu Dec 04, 2008 1:56 pm
by SimonSchaufi
wrap {literal} .. {/literal} around it :)

Re: "Smarty error: character "s" not allowed in prolog" validates.. sometimes

Posted: Mon Dec 08, 2008 4:24 pm
by mobilexhtml
Thank you.. It seem to have worked...  :-)

I will "monitor" the site before I can say that this is [solved].., because this is a sneaky problem.. Just when I think it's okay, it gives me a surprise.. But so far so good..

;D