I'm getting these errors sometimes:
PHP Parse error: syntax error, unexpected '<' in /var/www/some-site/sites/all/themes/Attempt1/page.tpl.php on line 270
<?php
if (array_key_exists('width', $_POST) && $_POST['width'] <= 768):
?>
<div id="ttr_content" style="width:100%">
<?php
else:
<?php
if($showleft and $showright){
?>
<div id="ttr_content">
<?php
}
elseif(!$showleft and $showright){
?>
The problem is the extraneous open PHP tag after the "else:". Removing it makes the file work.