Jump to content

Error 500 in My Account


patikj1972

Recommended Posts

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">&#xE853;</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">&#xE56A;</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">&#xE567;</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">&#xE916;</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">&#xE54E;</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">&#xE860;</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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...