Page 1 of 1

[SOLVED]Stupid ?> at top of page

Posted: Fri Jun 08, 2012 4:35 pm
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!!

Re: Stupid ?> at top of page

Posted: Fri Jun 08, 2012 5:43 pm
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.

Re: Stupid ?> at top of page

Posted: Sat Jun 09, 2012 7:11 pm
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} ....

Re: Stupid ?> at top of page

Posted: Wed Jun 13, 2012 8:05 am
by bunker
DrCss.. your right!! Consider this solved!