Error [256] Smarty error .... Help!

Discussion in 'Troubleshooting' started by kcarey, Mar 26, 2010.

  1. kcarey

    kcarey Member

    Joined:
    Dec 27, 2009
    Messages:
    42
    Error [256] Smarty error: [in memory:text line 6] .... Help!

    Has anyone ever encountered this error? I'm not sure what is generating the error?? It only appears if any option is selected under "Messages to customer after payment" .... feature in admin --> Email.

    ERROR [256] Smarty error: [in memory:text line 6]: syntax error: unrecognized tag: $config.currency|default:"$" (Smarty_Compiler.class.php, line 403) in line 1102 of file /www/sites/mysite/docs/membership/smarty/Smarty.class.php

    This is preventing my site from going live. Any help would be appreciated! Logged a case with the Helpdesk several days ago, but no response.

    Thanks in advance

    ~kcarey
    ________
    Mazda 626 Specifications
  2. kcarey

    kcarey Member

    Joined:
    Dec 27, 2009
    Messages:
    42
    solved my problem
    ________
    R5
  3. thehpmc

    thehpmc Member

    Joined:
    Aug 24, 2006
    Messages:
    901
    Always helpful to others if you include the actual solution you found.
  4. appthemes

    appthemes New Member

    Joined:
    Dec 23, 2009
    Messages:
    9
    I had the same problem and was able to solve it by unchecking the emails that automatically get sent after the order is completed. It was a tag in one of those emails that wasn't formatted correctly.

    It took me over an hour to figure it out. I wish the error msg could've been more clear. I posted my solution so someone else doesn't have to waste their time to debug it.


    ~David

    WordPress Classifieds Ads Theme
    http://wpclassipress.com
  5. kcarey

    kcarey Member

    Joined:
    Dec 27, 2009
    Messages:
    42
    Solved

    my error was generated by an error in the html of one of the emails (Admin --> emails) When it went from text only to text/html it made a coding error of "$" in the htm code.

    Please let me know if you have any problems. I can point you in the right direction. I spend too many hours looking for this simple solution!

    ~kcarey
    ________
    JUGALETTES
  6. thebizcoach

    thebizcoach New Member

    Joined:
    Nov 16, 2009
    Messages:
    10
    same message different problem

    I have the same message but it is affecting my signup.html page... and therefore none of my signup pages are working. It all started when I tried to do what appeared to be a simple fix to center my sign up pages and I found some code in the forum... however, I failed to copy the file to keep a good version... and now I am in dire need of this fix.

    My code looks like this...

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
    <head>
    <title>Learn2Earn Sign Up</title>
    </head>
    <body>
    <p>{assign var="title" value=$smarty.const._TPL_SIGNUP_TITLE}{include file="header.html"} {include file="error.inc.html"}</p>
    <form method="post" action="{$smarty.server.PHP_SELF|escape}" id="signup">
    <table summary="Signup Form" class="vedit">
    <tbody>
    <tr>
    {* Select Payment System in same way, only if its count &gt;1 *} {if $smarty.request.hide_paysys } <input name="paysys_id" value="{$smarty.request.hide_paysys|escape}" type="hidden" /> <input name="hide_paysys" value="{$smarty.request.hide_paysys|escape}" type="hidden" /> {else} {if $config.product_paysystem} {assign var="paysys_id_not_required" value="1"} {else}
    </tr>
    <tr>

    the error that I am getting looks like this:

    ERROR [256] Smarty error: [in signup.html line 20]: syntax error: unidentified token ';1' (Smarty_Compiler.class.php, line 1357) in line 1102 of file /home/content/44/5042744/html/members/smarty/Smarty.class.php


    I know this is a coding error, but I can't for the life of me find what is screwed up in the code. I'm certainly not a coding expert by any means, so if there is someone out there that can help me... of course this would happen on a weekend! Its like trying to get a plumber on a holiday!
    Thanks Forum!
  7. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Did you use any Visual editor to make such edit?
    First I see that ">" was replaced to &gt; in this line:
    {* Select Payment System in same way, only if its count &gt;1 *}
    original line should be:
    {* Select Payment System in same way, only if its count > 1 *}
    However above replacement will not generate any errors because it was within comment. But I believe that above replacement was done in other parts of signup template as well.
    So, after you restore original template, use simple text editor in order to modify it (like notepad)

Share This Page