Parse error: syntax error, unexpected $end, expecting T_VARIABLE or '$'

Discussion in 'PHP' started by ausgezeichnete, Jan 11, 2009.

  1. #1
    am having this error in the SERVER and not in not my LOCAL


    Parse error: syntax error, unexpected $end, expecting T_VARIABLE or '$' in /home/vozemg0/public_html/vozenow/admin/smarty/Smarty_Compiler.class.php on line 1632




    any idea???????????????:confused::confused:
     
    ausgezeichnete, Jan 11, 2009 IP
  2. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #2
    That message usually means that you missed a closing } somewhere in your code.

    Can happen real easy if you have been editing a script. It could be anywhere.

    As a longshot you could try adding one just above the ?>.

    With notepad2 or other text editor with highlighting you can match the pairs until you find the missing one.
     
    Colbyt, Jan 11, 2009 IP
  3. elias_sorensen

    elias_sorensen Well-Known Member

    Messages:
    852
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    110
    #3
    Like Colbyt says, you are probably missing a closing-bracket.

    It could also be a missing semi-colon.

    The reason why the error is displayed on your server, and not locally, is because of the error_reporting in your php.ini

    If you put error_reporting(E_ALL) in the top of the file, you will see errors locally too.
     
    elias_sorensen, Jan 12, 2009 IP