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

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
User avatar
mobilexhtml
Forum Members
Forum Members
Posts: 28
Joined: Fri Feb 08, 2008 11:12 pm

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

Post 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
Last edited by mobilexhtml on Wed Dec 10, 2008 4:43 pm, edited 1 time in total.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

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

Post by RonnyK »

Do you have a link, to see and check?

Ronny
User avatar
mobilexhtml
Forum Members
Forum Members
Posts: 28
Joined: Fri Feb 08, 2008 11:12 pm

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

Post by mobilexhtml »

RonnyK wrote: Do you have a link, to see and check?

Ronny

yeah in pm...

-John
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

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

Post 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
User avatar
mobilexhtml
Forum Members
Forum Members
Posts: 28
Joined: Fri Feb 08, 2008 11:12 pm

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

Post 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...
Last edited by mobilexhtml on Wed Dec 03, 2008 8:38 pm, edited 1 time in total.
User avatar
mobilexhtml
Forum Members
Forum Members
Posts: 28
Joined: Fri Feb 08, 2008 11:12 pm

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

Post 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 }             
Last edited by mobilexhtml on Wed Dec 03, 2008 11:09 pm, edited 1 time in total.
SimonSchaufi

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

Post by SimonSchaufi »

wrap {literal} .. {/literal} around it :)
User avatar
mobilexhtml
Forum Members
Forum Members
Posts: 28
Joined: Fri Feb 08, 2008 11:12 pm

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

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

Return to “CMSMS Core”