patikj1972 Posted June 18, 2024 Share Posted June 18, 2024 Hi all, I wonder if someone can help me. When customers try to login to their account in our store, they get a error 500. I turned on debug and got this error but I don't know how to solve it. Anyone that can help? (1/1) SmartyCompilerException Syntax error in template "file:/home/ohtmizug/golfbutik_migration/themes/10carts/templates/customer/my-account.tpl" on line 69 "{if $configuration.voucher_enabled && !$configuration.is_catalog}" unclosed '{block}' tag in smarty_internal_templatecompilerbase.php line 69 at Smarty_Internal_TemplateCompilerBase->trigger_template_error('unclosed \'{block}\' tag') in smarty_internal_compilebase.php line 196 at Smarty_Internal_CompileBase->closeTag(object(Smarty_Internal_SmartyTemplateCompiler), array('if', 'else', 'elseif')) in smarty_internal_compile_if.php line 200 at Smarty_Internal_Compile_Ifclose->compile(array(), object(Smarty_Internal_SmartyTemplateCompiler), array(), null, null) in smarty_internal_templatecompilerbase.php line 768 at Smarty_Internal_TemplateCompilerBase->callTagCompiler('ifclose', array(), array()) in smarty_internal_templatecompilerbase.php line 1501 at Smarty_Internal_TemplateCompilerBase->compileTag2('ifclose', array(), array()) in smarty_internal_templatecompilerbase.php line 565 at Smarty_Internal_TemplateCompilerBase->compileTag('ifclose', array()) in smarty_internal_templateparser.php line 2559 at Smarty_Internal_Templateparser->yy_r45() in smarty_internal_templateparser.php line 3481 at Smarty_Internal_Templateparser->yy_reduce(45) in smarty_internal_templateparser.php line 3573 at Smarty_Internal_Templateparser->doParse(4, ' ') in smarty_internal_smartytemplatecompiler.php line 128 at Smarty_Internal_SmartyTemplateCompiler->doCompile('{** * 2007-2018 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License 3.0 (AFL-3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/AFL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2018 PrestaShop SA * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) * International Registered Trademark & Property of PrestaShop SA *}{extends file=\'customer/page.tpl\'}{block name=\'page_title\'} {l s=\'Your account\' d=\'Shop.Theme.Customeraccount\'}{/block}{block name=\'page_content\'} <div class="row"> <div class="links"> <a class="col-lg-4 col-md-6 col-sm-6 col-xs-12" id="identity-link" href="{$urls.pages.identity}"> <span class="link-item"> <i class="material-icons"></i> {l s=\'Information\' d=\'Shop.Theme.Customeraccount\'} </span> </a> {if $customer.addresses|count} <a class="col-lg-4 col-md-6 col-sm-6 col-xs-12" id="addresses-link" href="{$urls.pages.addresses}"> <span class="link-item"> <i class="material-icons"></i> {l s=\'Addresses\' d=\'Shop.Theme.Customeraccount\'} </span> </a> {else} <a class="col-lg-4 col-md-6 col-sm-6 col-xs-12" id="address-link" href="{$urls.pages.address}"> <span class="link-item"> <i class="material-icons"></i> {l s=\'Add first address\' d=\'Shop.Theme.Customeraccount\'} </span> </a> {/if} {if !$configuration.is_catalog} <a class="col-lg-4 col-md-6 col-sm-6 col-xs-12" id="history-link" href="{$urls.pages.history}"> <span class="link-item"> <i class="material-icons"></i> {l s=\'Order history and details\' d=\'Shop.Theme.Customeraccount\'} </span> </a> {/if} {/if} {if $configuration.voucher_enabled && !$configuration.is_catalog} <a class="col-lg-4 col-md-6 col-sm-6 col-xs-12" id="discounts-link" href="{$urls.pages.discount}"> <span class="link-item"> <i class="material-icons"></i> {l s=\'Vouchers\' d=\'Shop.Theme.Customeraccount\'} </span> </a> {/if} {if $configuration.return_enabled && !$configuration.is_catalog} <a class="col-lg-4 col-md-6 col-sm-6 col-xs-12" id="returns-link" href="{$urls.pages.order_follow}"> <span class="link-item"> <i class="material-icons"></i> {l s=\'Merchandise returns\' d=\'Shop.Theme.Customeraccount\'} </span> </a> {/if} {block name=\'display_customer_account\'} {hook h=\'displayCustomerAccount\'} {/block} </div> </div>{/block}{block name=\'page_footer\'} {block name=\'my_account_links\'} <div class="text-xs-center"> <a href="{$logout_url}" class="btn btn-primary"> {l s=\'Sign out\' d=\'Shop.Theme.Actions\'} </a> </div> {/block}{/block}', true) in smarty_internal_templatecompilerbase.php line 481 at Smarty_Internal_TemplateCompilerBase->compileTemplateSource(object(SmartyDevTemplate), false, null) in smarty_internal_templatecompilerbase.php line 402 at Smarty_Internal_TemplateCompilerBase->compileTemplate(object(SmartyDevTemplate)) in smarty_template_compiled.php line 184 at Smarty_Template_Compiled->compileTemplateSource(object(SmartyDevTemplate)) in smarty_template_compiled.php line 141 at Smarty_Template_Compiled->process(object(SmartyDevTemplate)) in smarty_template_compiled.php line 105 at Smarty_Template_Compiled->render(object(SmartyDevTemplate)) in smarty_internal_template.php line 216 at Smarty_Internal_Template->render(false, 0) in smarty_internal_templatebase.php line 232 at Smarty_Internal_TemplateBase->_execute(object(SmartyDevTemplate), null, '10cartslayouts/layout-both-columns.tpl', null, 0) in smarty_internal_templatebase.php line 116 at Smarty_Internal_TemplateBase->fetch('customer/my-account.tpl', null, '10cartslayouts/layout-both-columns.tpl', null, false, true, false) in SmartyDev.php line 40 at SmartyDev->fetch('customer/my-account.tpl', null, '10cartslayouts/layout-both-columns.tpl') in FrontController.php line 727 at FrontControllerCore->smartyOutputContent('customer/my-account.tpl') in FrontController.php line 709 at FrontControllerCore->display() in Controller.php line 326 at ControllerCore->run() in Dispatcher.php line 525 at DispatcherCore->dispatch() in index.php line 28 Link to comment Share on other sites More sharing options...
Prestashop Addict Posted June 18, 2024 Share Posted June 18, 2024 This is a template bug as indicated closing tag {/block} is missing in themes/10carts/templates/customer/my-account.tpl Link to comment Share on other sites More sharing options...
patikj1972 Posted June 18, 2024 Author Share Posted June 18, 2024 8 minutes ago, Prestashop Addict said: This is a template bug as indicated closing tag {/block} is missing in themes/10carts/templates/customer/my-account.tpl I do understand that, but how can I fix it? Link to comment Share on other sites More sharing options...
Prestashop Addict Posted June 18, 2024 Share Posted June 18, 2024 Ask the person who modified the template 😉 Link to comment Share on other sites More sharing options...
Nickz Posted June 18, 2024 Share Posted June 18, 2024 37 minutes ago, patikj1972 said: I do understand that, but how can I fix it? Did you create back up for the files which were edited? 1 hour ago, patikj1972 said: When customers try to login to their account in our store, they get a error 500. I turned on debug and got this error but I don't know how to solve it. Anyone that can help? Prestashop version, theme used? Link to comment Share on other sites More sharing options...
patikj1972 Posted June 18, 2024 Author Share Posted June 18, 2024 38 minutes ago, Nickz said: Did you create back up for the files which were edited? No, i'm not sure how long this has been going on to be honest. Prestashop version, theme used? 1.7.8.8 and a theme called 10 carts. Link to comment Share on other sites More sharing options...
Nickz Posted June 18, 2024 Share Posted June 18, 2024 28 minutes ago, patikj1972 said: No, i'm not sure how long this has been going on to be honest. You can find out over the errorlog files under var> log> apatche2 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