Site "live" problems after move

Permalink
I'm about to lose my mind. I have a temporary site (temp.mysite.com) and it works fine and so we were ready to go "live". However, in IE it's all jacked up with the move (www.mysite.com). (Firefox and Safari are fine.) The site still previews great in the temporary location. I can't figure out what in the world is going on. Also, there are no errors on the temp site, but all sorts showing up on the "live" site:

# Error Line 1, Column 2: Non-space characters found without seeing a doctype first. Expected <!DOCTYPE html>.

<!DOCTYPE html>


# Error Line 1, Column 2: Element head is missing a required instance of child element title.

<!DOCTYPE html>

Content model for element head:
If the document is an iframe srcdoc document or if title information is available from a higher-level protocol: Zero or more elements of metadata content.
Otherwise: One or more elements of metadata content, of which exactly one is a title element.

# Error Line 1, Column 17: Stray doctype.

<!DOCTYPE html>


# Error Line 2, Column 16: Stray end tag html.

<html lang="en">


# Error Line 2, Column 16: Cannot recover after last error. Any further errors will be ignored.

<html lang="en">

View Replies:
weyboat replied on at Permalink Reply
weyboat
Sounds like your header.php is causing problems,
Can you post the code here?
tcbrasel replied on at Permalink Reply
Sure, but the code looks exactly the same to me on the temporary site as it does the "live" site.

<?php  defined('C5_EXECUTE') or die("Access Denied."); ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width; initial-scale=1.0">
<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getThemePath()?>/style.css">
<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getThemePath()?>/flexslider.css">
<!--[if lt IE 9]>
   <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<? Loader::element('header_required'); ?>
<script src="<?=$this->getThemePath()?>/overthrow.js"></script>
<script src="<?=$this->getThemePath()?>/flexslider.js"></script>
   <script type="text/javascript">
      $(window).load(function() {
weyboat replied on at Permalink Reply
weyboat
Try it like this
<?php   defined('C5_EXECUTE') or die(_("Access Denied.")); ?>
<!DOCTYPE html>
<html lang="en">
<head><?php   Loader::element('header_required'); ?>
<meta name="viewport" content="width=device-width; initial-scale=1.0">
<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getThemePath()?>/style.css">
<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getThemePath()?>/flexslider.css">
<!--[if lt IE 9]>
   <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script src="<?php=$this->getThemePath()?>/overthrow.js"></script>
<script src="<?php=$this->getThemePath()?>/flexslider.js"></script>
   <script type="text/javascript">
      $(window).load(function() {
         $('.flexslider').flexslider();
weyboat replied on at Permalink Reply
weyboat
Sorry just correct a typo and added missing declarations
Try this instead
<?php   defined('C5_EXECUTE') or die(_("Access Denied.")); ?>
<!DOCTYPE html>
<html lang="en">
<head><?php   Loader::element('header_required'); ?>
<meta name="viewport" content="width=device-width; initial-scale=1.0">
<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getThemePath()?>/style.css">
<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getThemePath()?>/flexslider.css">
<!--[if lt IE 9]>
<script type="text/javascript" src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script type="text/javascript" src="<?php echo $this->getThemePath()?>/overthrow.js"></script>
<script type="text/javascript" src="<?php echo $this->getThemePath()?>/flexslider.js"></script>
   <script type="text/javascript">
      $(window).load(function() {
         $('.flexslider').flexslider();
tcbrasel replied on at Permalink Reply
I'm baffled at why it works on my subweb but not the one it needs to work on - at the root.
tcbrasel replied on at Permalink Reply
Just now saw your other response. I changed the code, no parse errors, but doesn't look any different in IE or on the validation service page.
tcbrasel replied on at Permalink Reply
I tried that and got this error:

Parse error: syntax error, unexpected '=' in /var/www/vhosts/mysitename.com/httpdocs/themes/XR-Theme/elements/header.php on line 12
weyboat replied on at Permalink Reply
weyboat
Okay final attempt
<?php   defined('C5_EXECUTE') or die(_("Access Denied.")); ?>
<!DOCTYPE html>
<html lang="en">
<head><?php   Loader::element('header_required'); ?>
<meta name="viewport" content="width=device-width; initial-scale=1.0">
<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getThemePath()?>/style.css">
<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getThemePath()?>/flexslider.css">
<script type="text/javascript" src="<?php echo $this->getThemePath()?>/overthrow.js"></script>
<script type="text/javascript" src="<?php echo $this->getThemePath()?>/flexslider.js"></script>
<!--[if lt IE 9]>
<script type="text/javascript" src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
   <script type="text/javascript">
      $(window).load(function() {
         $('.flexslider').flexslider();
tcbrasel replied on at Permalink Reply
Still no luck but thank you.
Steevb replied on at Permalink Reply
Steevb
The templates, NOT the header was the issue.

All templates were somehow serving the byte order mark (BOM.

Problem is now solved.