Andrus Posted May 13, 2015 Share Posted May 13, 2015 When I click Sign in/My account/My order I get an error on page. Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "/xxxxx/themes/default-bootstrap/authentication.tpl" on line 374 "{else}" unexpected closing tag <-- thrown in/xxxx/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 374 Can anyone guide me where to find this error? smarty_internal_templatecompilerbase.php lines near 374 are: } else { // map_named attributes if (isset($args['_attr'])) { foreach ($args['_attr'] as $key => $attribute) { if (is_array($attribute)) { This is line 374 $args = array_merge($args, $attribute); } } } Link to comment Share on other sites More sharing options...
tuk66 Posted May 13, 2015 Share Posted May 13, 2015 You probably mentioned the compiled file, not /themes/default-bootstrap/authentication.tpl. Smarty templates look different. {if}{else}{/if} Link to comment Share on other sites More sharing options...
Andrus Posted May 13, 2015 Author Share Posted May 13, 2015 authentication,tpl file looks like this near 374 {else} <!--{if isset($account_error)} <div class="error"> {if {$account_error|@count} == 1} <p>{l s='There\'s at least one error'} :</p> ----------------Line 374 {else} <p>{l s='There are %s errors' sprintf=[$account_error|@count]} :</p> {/if} <ol> Is anythng wrong there? Link to comment Share on other sites More sharing options...
Andrus Posted May 13, 2015 Author Share Posted May 13, 2015 Solution found: Replaced authentication.tpl with original one and problem solved. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now