Alex71 Posted November 11, 2020 Share Posted November 11, 2020 Hello everybody, I hope someone can help me. Every time a user tries to add its address, no matter if from his dashboard or when he tries to check up, prestashop returns a error 500. The good thing is that if i try to add his address from the backend everything work fine, so i exclude the address table can be corrupted. I already tried whatever i could without any success (disabling caches, removing modules, disabling overrides and so on) The problem is happening in 1.7.6.8, but was happening also before the update. I've enabled the DEBUG mode and the error returned is the following: (1/1) ContextErrorException Notice: Undefined index: type in 0f2e5e4df9bd6053afb5d841d0f2f55bf0e1e90b_2.file.form-fields.tpl.php line 27 at content_5fac465ccf6fb8_12922042(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123 at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114 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, null, null, 0)in smarty_internal_templatebase.php line 116 at Smarty_Internal_TemplateBase->fetch(null, null, null, null, false, true, false)in SmartyDevTemplate.php line 40 at SmartyDevTemplateCore->fetch()in smartyfront.config.inc.php line 117 at smartyFormField(array('field' => array('value' => 'Molon')), object(SmartyDevTemplate))in SmartyLazyRegister.php line 83 at SmartyLazyRegister->__call('smartyFormField', array(array('field' => array('value' => 'Molon')), object(SmartyDevTemplate)))in 4c4837e7cd87b630a17ecf76822d6e919109041a_2.file.address-form.tpl.php line 56 at Block_19404207325fac465ccd02f8_89716197->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248 at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_19404207325fac465ccd02f8_89716197), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_19404207325fac465ccd02f8_89716197))in smarty_internal_runtime_inheritance.php line 156 at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_19404207325fac465ccd02f8_89716197', 'form_field', 0)in 4c4837e7cd87b630a17ecf76822d6e919109041a_2.file.address-form.tpl.php line 74 at Block_304465075fac465cccfa92_91664078->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248 at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_304465075fac465cccfa92_91664078), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_304465075fac465cccfa92_91664078))in smarty_internal_runtime_inheritance.php line 156 at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_304465075fac465cccfa92_91664078', 'form_fields', 0)in 4c4837e7cd87b630a17ecf76822d6e919109041a_2.file.address-form.tpl.php line 93 at Block_3500437485fac465cccf749_27624305->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248 at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_3500437485fac465cccf749_27624305), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_3500437485fac465cccf749_27624305))in smarty_internal_runtime_inheritance.php line 156 at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_3500437485fac465cccf749_27624305', 'address_form_fields', 0)in 4c4837e7cd87b630a17ecf76822d6e919109041a_2.file.address-form.tpl.php line 178 at Block_3869887915fac465cccd382_88609362->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248 at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_3869887915fac465cccd382_88609362), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_3869887915fac465cccd382_88609362))in smarty_internal_runtime_inheritance.php line 156 at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_3869887915fac465cccd382_88609362', 'address_form')in 4c4837e7cd87b630a17ecf76822d6e919109041a_2.file.address-form.tpl.php line 27 at content_5fac465ccd2ae3_54785602(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123 at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114 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, null, null, 0)in smarty_internal_templatebase.php line 116 at Smarty_Internal_TemplateBase->fetch(null, null, null, null, false, true, false)in SmartyDevTemplate.php line 40 at SmartyDevTemplateCore->fetch()in AbstractForm.php line 121 at AbstractFormCore->render(array('template' => 'customer/_partials/address-form.tpl', 'ui' => object(RenderableProxy)))in RenderableProxy.php line 52 at RenderableProxy->render(array('template' => 'customer/_partials/address-form.tpl', 'ui' => object(RenderableProxy)))in smartyfront.config.inc.php line 98 at smartyRender(array('template' => 'customer/_partials/address-form.tpl', 'ui' => object(RenderableProxy)), object(SmartyDevTemplate))in SmartyLazyRegister.php line 83 at SmartyLazyRegister->__call('smartyRender', array(array('template' => 'customer/_partials/address-form.tpl', 'ui' => object(RenderableProxy)), object(SmartyDevTemplate)))in d5d6558fc9f7989a4bad4eff837a4b59a6b347f5_2.file.address.tpl.php line 75 at Block_19404399475fac465cb9e155_00232470->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248 at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_19404399475fac465cb9e155_00232470), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_19404399475fac465cb9e155_00232470), object(Block_8437935835fac465cba4079_27642318))in smarty_internal_runtime_inheritance.php line 186 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_8437935835fac465cba4079_27642318))in smarty_internal_runtime_inheritance.php line 156 at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_8437935835fac465cba4079_27642318', 'page_content', 1)in 433218f33b117af17e4dc0439396b26fe57b89f4_2.file.page.tpl.php line 127 at Block_12883791945fac465cba29c2_15374212->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248 at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_12883791945fac465cba29c2_15374212), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_12883791945fac465cba29c2_15374212), object(Block_7648159235fac465cba9040_68505751))in smarty_internal_runtime_inheritance.php line 186 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_7648159235fac465cba9040_68505751))in smarty_internal_runtime_inheritance.php line 156 at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_7648159235fac465cba9040_68505751', 'page_content_container', 2)in c57d521f48c9387410c4fbec3d93de882f8a3e57_2.file.page.tpl.php line 181 at Block_14245976725fac465cba7959_53429933->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248 at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_14245976725fac465cba7959_53429933), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_14245976725fac465cba7959_53429933), object(Block_20246127295fac465cbae6d2_66044721))in smarty_internal_runtime_inheritance.php line 186 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_20246127295fac465cbae6d2_66044721))in smarty_internal_runtime_inheritance.php line 156 at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_20246127295fac465cbae6d2_66044721', 'content', 3)in eeed5909858cf501b3cbf7300066f19f6f476619_2.file.layout-full-width.tpl.php line 101 at Block_5722232925fac465cbad875_27415117->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248 at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_5722232925fac465cbad875_27415117), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_5722232925fac465cbad875_27415117), object(Block_9514344015fac465cbb6d03_45838010))in smarty_internal_runtime_inheritance.php line 186 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_9514344015fac465cbb6d03_45838010))in smarty_internal_runtime_inheritance.php line 156 at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_9514344015fac465cbb6d03_45838010', 'content_wrapper')in 4400e252e509b3bb39219bfe3909b04709f53a5c_2.file.layout-both-columns.tpl.php line 87 at content_5fac465cbbb0f6_80834826(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123 at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114 at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216 at Smarty_Internal_Template->render()in smarty_internal_template.php line 385 at Smarty_Internal_Template->_subTemplateRender('layouts/layout-both-columns.tpl', null, 'layouts/layout-full-width.tpl', 0, 3600, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 125 at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-both-columns.tpl')in eeed5909858cf501b3cbf7300066f19f6f476619_2.file.layout-full-width.tpl.php line 42 at content_5fac465cbaf172_82320791(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123 at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114 at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216 at Smarty_Internal_Template->render()in smarty_internal_template.php line 385 at Smarty_Internal_Template->_subTemplateRender('layouts/layout-full-width.tpl', null, 'layouts/layout-full-width.tpl', 0, 3600, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 125 at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-full-width.tpl')in c57d521f48c9387410c4fbec3d93de882f8a3e57_2.file.page.tpl.php line 33 at content_5fac465cbaa717_84655269(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123 at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114 at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216 at Smarty_Internal_Template->render()in smarty_internal_template.php line 385 at Smarty_Internal_Template->_subTemplateRender('page.tpl', null, 'layouts/layout-full-width.tpl', 0, 3600, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 125 at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'page.tpl')in 433218f33b117af17e4dc0439396b26fe57b89f4_2.file.page.tpl.php line 45 at content_5fac465cba5264_40934765(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123 at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114 at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216 at Smarty_Internal_Template->render()in smarty_internal_template.php line 385 at Smarty_Internal_Template->_subTemplateRender('customer/page.tpl', null, 'layouts/layout-full-width.tpl', 0, 3600, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 125 at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'customer/page.tpl')in d5d6558fc9f7989a4bad4eff837a4b59a6b347f5_2.file.address.tpl.php line 38 at content_5fac465cb9f1f0_52393317(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123 at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114 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, 'layouts/layout-full-width.tpl', null, 0)in smarty_internal_templatebase.php line 116 at Smarty_Internal_TemplateBase->fetch('customer/address.tpl', null, 'layouts/layout-full-width.tpl', null, false, true, false)in SmartyDev.php line 40 at SmartyDev->fetch('customer/address.tpl', null, 'layouts/layout-full-width.tpl')in FrontController.php line 683 at FrontControllerCore->smartyOutputContent('customer/address.tpl')in FrontController.php line 667 at FrontControllerCore->display()in Controller.php line 312 at ControllerCore->run()in Dispatcher.php line 515 at DispatcherCore->dispatch()in index.php line 28 Thank you in advance, Alex Link to comment Share on other sites More sharing options...
Alex71 Posted November 12, 2020 Author Share Posted November 12, 2020 I'm not a developer, but i cannot find any reference in customer/_partials/address-form.tpl, neither in _partials/form-errors.tpl (as exposed in the previous file). And the strange thing is that the same file is identical to the file on another site that is working perfectly..... I'm using the standard classic template, here the code: address-form.tpl ** * 2007-2019 PrestaShop and Contributors * * 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 https://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2019 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) * International Registered Trademark & Property of PrestaShop SA *} {block name="address_form"} <div class="js-address-form"> {include file='_partials/form-errors.tpl' errors=$errors['']} {block name="address_form_url"} <form method="POST" action="{url entity='address' params=['id_address' => $id_address]}" data-id-address="{$id_address}" data-refresh-url="{url entity='address' params=['ajax' => 1, 'action' => 'addressForm']}" > {/block} {block name="address_form_fields"} <section class="form-fields"> {block name='form_fields'} {foreach from=$formFields item="field"} {block name='form_field'} {form_field field=$field} {/block} {/foreach} {/block} </section> {/block} {block name="address_form_footer"} <footer class="form-footer clearfix"> <input type="hidden" name="submitAddress" value="1"> {block name='form_buttons'} <button class="btn btn-primary float-xs-right" type="submit" class="form-control-submit"> {l s='Save' d='Shop.Theme.Actions'} </button> {/block} </footer> {/block} </form> </div> {/block} form-errors.tpl {** * 2007-2019 PrestaShop and Contributors * * 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 https://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2019 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) * International Registered Trademark & Property of PrestaShop SA *} {if $errors|count} <div class="help-block"> {block name='form_errors'} <ul> {foreach $errors as $error} <li class="alert alert-danger">{$error|nl2br nofilter}</li> {/foreach} </ul> {/block} </div> {/if} Link to comment Share on other sites More sharing options...
mickbru Posted February 3, 2021 Share Posted February 3, 2021 Hi! I have exactly the same issue. Did you find a solution? Mike 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