Forum Support

Shape 5
March 06, 2021, 07:51:43 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Parse error: syntax error, unexpected T_ENDIF  (Read 587 times)
jeny
Jr. Member
**
Offline Offline

Posts: 9



« on: 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
Logged
pmiddleton
Global Moderator
*****
Offline Offline

Posts: 2097



« Reply #1 on: 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.
Logged

Paul
------------
Shape 5 Team


- Using Firebug will save you so much time, frustration and forum questions:
http://getfirebug.com/


- Need some custom coding done on your site? Use our Shape 5 Hire a Coder program for free:
http://www.shape5.com/hire_a_coder/listauctions
jeny
Jr. Member
**
Offline Offline

Posts: 9



« Reply #2 on: 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 ?
Logged
pmiddleton
Global Moderator
*****
Offline Offline

Posts: 2097



« Reply #3 on: 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.
Logged

Paul
------------
Shape 5 Team


- Using Firebug will save you so much time, frustration and forum questions:
http://getfirebug.com/


- Need some custom coding done on your site? Use our Shape 5 Hire a Coder program for free:
http://www.shape5.com/hire_a_coder/listauctions
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.