I am getting the following error on all Story or Page nodes I create.

Parse error: syntax error, unexpected T_ENDIF in C:\Wamp\www\themes\summertime\node.tpl.php on line 27

This is a new site with very few modules enabled so far. The admin pages do not show this error. Removing node.tpl.php removes the error and the pages show as expected.

BTW, I love this theme. Thanks!

Comments

restyler’s picture

Status: Active » Postponed (maintainer needs more info)

I can't reproduce that on fresh dev installation. Can you please copy&paste your node.tpl.php here?

vlooivlerke’s picture

I downloaded both versions and both of them have the bug in the node.tpl.php on line 27

This cause the comments and featured section not to display correctly.

<?php
// if user can't read comments, we set comment number to 0
$comment_num = $node -> comment ? comment_num_all($node->nid) : 0;
?>

<? if($comment_num > 0 || $node -> comment != 0 ): ?>
<span class="comment-cloud">
<?php if ($comment_num == 0 && ($node -> comment == 2)): ?>

<a href="<?php echo url('comment/reply/' . $node -> nid, array('fragment' => 'comment-form' ));?>"><img src="<?php echo base_path() . path_to_theme() ?>/images/plus.gif"  alt="+" /></a>

<? elseif($comment_num != 0): ?>
	<?php echo l($comment_num, 'node/' . $node->nid, array('fragment' => 'comments'));?>
<?php endif; ?>
	</span>&nbsp;
<?php endif; ?>

It is this last endif that cause the problem.

I copied this code from the cvs section

vlooivlerke’s picture

Change line 17 to:

<?php if ($comment_num > 0 || $node -> comment != 0 ): ?>
restyler’s picture

that's just short_tags problem, again. I'll commit all fixes to that problem asap.

restyler’s picture

Status: Postponed (maintainer needs more info) » Fixed

fixed in 1.1 release, thanks guys!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.