Shape 5

Joomla Templates => Shenandoah - Club => : jeny May 15, 2012, 10:57:04 AM



: Parse error: syntax error, unexpected T_ENDIF
: jeny May 15, 2012, 10:57:04 AM
Hi,

I use joomla 1.6, and my site is hosted by OVH which uses PHP 5.3.8
The template that i use is shenandoah V1.

Since the begining, i've had no problem, but for 2 month now, i have not been able lunch the website. The error message bellow keeps displaying :

Parse error: syntax error, unexpected T_ENDIF in /homez.441/poungame/www/templates/shenandoah/html/com_content/featured/default_item.php on line 6


I've examined the file and bellow are the first code lines :


</dd>

      </dd>

      </dd>
<?php endif; ?>

<?php if ($params->get('show_author') && !empty($this->item->author )) : ?>
   <dd class="createdby">
      <?php $author =  $this->item->author; ?>
      <?php $author = ($this->item->created_by_alias ? $this->item->created_by_alias : $author);?>

         <?php if (!empty($this->item->contactid ) &&  $params->get('link_author') == true):?>
            <?php    echo JText::sprintf('COM_CONTENT_WRITTEN_BY' ,
             JHTML::_('link',JRoute::_('index.php?option=com_contact&view=contact&id='.$this->item->contactid),$author)); ?>

         <?php else :?>
            <?php echo JText::sprintf('COM_CONTENT_WRITTEN_BY', $author); ?>
         <?php endif; ?>
   </dd>
<?php endif; ?>   
<?php if ($params->get('show_hits')) : ?>
      <dd class="hits">
      <?php echo JText::sprintf('COM_CONTENT_ARTICLE_HITS', $this->item->hits); ?>
      </dd>


Thank you in advance for your help

Jeny


: Re: Parse error: syntax error, unexpected T_ENDIF
: pmiddleton May 15, 2012, 11:24:16 AM
The default_item.php file is definitely not right.

Download the template again and upload the entire template/shenandoah/com_content folder, replacing the one on your site.


: Re: Parse error: syntax error, unexpected T_ENDIF
: jeny May 19, 2012, 03:53:44 AM
Thank you Paul

Before I do what you're recommanding, is it not going to erase some components (extentions, plug-ins) that i have installed after the template ?

What are the effect of replacing a template ?


: Re: Parse error: syntax error, unexpected T_ENDIF
: pmiddleton May 19, 2012, 04:35:32 AM
You shouldn't need to, you should just need to upload the content of the one folder - templates/shenandoah/html/com_content from the template archive.

You could even try just replacing the default_item.php in the featured folder in there, as this is the one causing the error.

If you like, you can PM me FTP and super admin access details, and I'll do it for you.