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
[Solved]"Smarty error:character "s" not allowed in prolog validates.. sometimes
- mobilexhtml
- Forum Members
- Posts: 28
- Joined: Fri Feb 08, 2008 11:12 pm
[Solved]"Smarty error:character "s" not allowed in prolog validates.. sometimes
Last edited by mobilexhtml on Wed Dec 10, 2008 4:43 pm, edited 1 time in total.
Re: "Smarty error: character "s" not allowed in prolog" validates.. sometimes
Do you have a link, to see and check?
Ronny
Ronny
- mobilexhtml
- Forum Members
- Posts: 28
- Joined: Fri Feb 08, 2008 11:12 pm
Re: "Smarty error: character "s" not allowed in prolog" validates.. sometimes
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
are you sure that your doctype, set in the top of the template, is correct. As that definition already starts the issue...
Ronny
Ronny
- mobilexhtml
- Forum Members
- Posts: 28
- Joined: Fri Feb 08, 2008 11:12 pm
Re: "Smarty error: character "s" not allowed in prolog" validates.. sometimes
No not really..but I thought that when it validates (for the mostRonnyK wrote: are you sure that your doctype, set in the top of the template, is correct. As that definition already starts the issue...
Ronny

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.
- mobilexhtml
- Forum Members
- Posts: 28
- Joined: Fri Feb 08, 2008 11:12 pm
Re: "Smarty error: character "s" not allowed in prolog" validates.. sometimes
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 }
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.
Re: "Smarty error: character "s" not allowed in prolog" validates.. sometimes
wrap {literal} .. {/literal} around it 

- mobilexhtml
- Forum Members
- Posts: 28
- Joined: Fri Feb 08, 2008 11:12 pm
Re: "Smarty error: character "s" not allowed in prolog" validates.. sometimes
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..


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