[SOLVED]Stupid ?> at top of page

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
bunker
Forum Members
Forum Members
Posts: 30
Joined: Wed Mar 18, 2009 5:59 pm

[SOLVED]Stupid ?> at top of page

Post by bunker »

Hi..

I have no idea why a ?> appears on the top of all my pages... Even in the admin area..

U can see under http://www.alteabuilders.com

It appears just after the body tag opens...

What files are loaded before here?

The top of my template looks like this:

Code: Select all

{process_pagedata}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<__html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$lang_parent}" lang="{$lang_parent} >
<head>
{metadata}
{stylesheet}
{literal}
<!--[if IE 7]>
<style type="text/css">
html.slide{height: 1%;} /*Holly Hack for IE7 and below*/
</style>
<![endif]-->
{/literal}
<__script__ type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></__script>
<__script__ type="text/javascript" src="uploads/Freshmedia/scrolltopcontrol.js"></__script>
{cms_selflink dir="start" rellink=1}
{cms_selflink dir="prev" rellink=1}
{cms_selflink dir="next" rellink=1}
<title>{sitename} - {title}</title>
</head>
</__body>

<!-- wrap starts here -->
<div id="wrap">
{* start accessibility skip links *}
    <ul class="accessibility">
      <li>{anchor anchor='menu_vert' title='Skip to navigation' accesskey='n' text='Skip to navigation'}</li>
      <li>{anchor anchor='main' title='Skip to content' accesskey='s' text='Skip to content'}</li>
    </ul>
    {* end accessibility skip links *}
    <hr class="accessibility" />
    {* Horizontal ruler that is hidden for visual browsers by CSS *}
<!-- wrap starts here -->
<div id="wrap-out"><div id="wrap">
Thx in advanced!!
Last edited by bunker on Wed Jun 13, 2012 8:05 am, edited 1 time in total.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1968
Joined: Mon Jan 29, 2007 4:47 pm

Re: Stupid ?> at top of page

Post by Jo Morg »

bunker wrote:It appears just after the body tag opens...
Actually, no. It is the 1st thing that appears on your page source, so before the <__html> tag, even before the DOCTYPE...

Code: Select all

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<__html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en >
There is not enough data to say where it comes from. It may even come from an included php file, or an UDT which may be wrongly coded. I doubt it comes from the core or a module, however you should provide more data.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Stupid ?> at top of page

Post by Dr.CSS »

You have some bad xhtml...

<__html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$lang_parent}" lang="{$lang_parent} >

Notice the " missing at the end of lang="{$lang_parent} ....
bunker
Forum Members
Forum Members
Posts: 30
Joined: Wed Mar 18, 2009 5:59 pm

Re: Stupid ?> at top of page

Post by bunker »

DrCss.. your right!! Consider this solved!
Post Reply

Return to “Layout and Design (CSS & HTML)”