Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jul 2012
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Fatal error: Smarty error: [in evaluated template line 15]: syntax error: unexpected

    Ok, got an issue. Just started a real-estate classified website and configured so it would fit my tastes. Since yesterday, the users that want to add an ad can go all the process up to the last step, where, instead of the page with the message "Ad post successful!" are getting this error:

    Fatal error: Smarty error: [in evaluated template line 15]: syntax error: unexpected {elseif} (Smarty_Compiler.class.php, line 495) in /home/geloo/public_html/imob/libs/Smarty.class.php on line 1092

    also getting this if i want to go back from the page above:

    Parse error: syntax error, unexpected '{' in /home/geloo/public_html/imob/libs/Smarty.class.php on line 1075

    What would cause this kind of error, how can i discover the problem?
    I really need help, since I am newb in PHP, started some weeks ago to learn.

    I figured out that could be an error caused by something in the database, since when I tried with another clean database, it worked just as it should.

    If you want to see the process where the error appears, use this link:
    http://imobilis.info/newad.php - username: help - password: help. The error occurs at the last step, wich is /newad.php&step=7 or /free_return.php.

    If there is some info more needed, please tell me. Thanks in advance.

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,994
    Thanks
    4
    Thanked 2,662 Times in 2,631 Posts
    The first is a custom application error; for that you'll need someone that knows smarty templating.

    The second is a syntactical error in the code for Smarty.class.php. That indicates code was modified within that class causing it to no longer function as it throws an error during compilation. Given its name I'd suspect that its important for the system itself, so you'll need to figure out what has changed and either fix it or revert it.

  • Users who have thanked Fou-Lu for this post:

    Delysid (07-17-2012)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •