Joomla Site Problem

Discussion in 'PHP' started by tomupton, Feb 7, 2009.

  1. #1
    Hi all,

    Im new to the forum, but im hoping someone can advise me on the problem.

    Today my joomla site has some up with the following:

    Warning: Unterminated comment starting line 3 in /home/hrcac/public_html/templates/consultant/index.php on line 3

    Can someone advise how to resolve this issue? as ive never experienced this before.

    Regards
    Tom
     
    tomupton, Feb 7, 2009 IP
  2. steelaz

    steelaz Peon

    Messages:
    47
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    File may be corrupted, try reuploading index.php
     
    steelaz, Feb 7, 2009 IP
  3. tomupton

    tomupton Active Member

    Messages:
    392
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    58
    #3
    Thanks for your reply. Seems very strange as nothing has been touched on the website for a while. Do you think the host may have changed something to cause the problem?
    i.e. a server update or something along those lines?
    Tom
     
    tomupton, Feb 7, 2009 IP
  4. darrenbeige

    darrenbeige Peon

    Messages:
    97
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    The error means that somewhere in Joomla (index.php), there is a comment which has not been closed, ie

    /* This is a comment
    echo 'That has not been closed, as there is no */';
    ?>

    It should be a simple matter of finding the non ending comment, and adding */
     
    darrenbeige, Feb 8, 2009 IP
  5. tomupton

    tomupton Active Member

    Messages:
    392
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    58
    #5
    Thanks very much for your comments. The site is back up and running again which is great news, but the template is now all out of place!
    What im prepared to do is give someone a small donation through paypal if they can resolve this issue for me?
    Im still concerned why it happened in the first place, as its been fine for months..

    PM me if you would be happy to take a look at it for me, i would make a donation via paypal.
    Regards
    Tom
     
    tomupton, Feb 8, 2009 IP
  6. darrenbeige

    darrenbeige Peon

    Messages:
    97
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Remove the large whitespace in this, and you should be okay.

        <TD width=8 
    
        background="templates/consultant/images/shade.gif" bgcolor="#276F9D">&nbsp;</TD></TR></TBODY></TABLE>
    
    Code (markup):
     
    darrenbeige, Feb 8, 2009 IP