in Issues/Bugs by dpearcemn (680 points)
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.

2 Answers

by dpearcemn (680 points)
This happens when I export a Drupal 7 template.
by templatetoaster (24.8k points)
We fixed this issue in 1.5.2.4195 version.
Interested in localizing/Translating TemplateToaster Software in your native language in exchange of a Pro License ? Contact Us
...