Jump to content

ContextErrorException Prestashop 1.7.4.2 Notice: Undefined index: ciudad in d55e4425a59b1ba8d049f27d085471a1e8001b9e_2.file.address-form.tpl.php line 62


Recommended Posts

Hola. Instalé el Prestashop 1.7.4.2 y probando me aparece el siguiente error:
Entiendo que el error está en la linea 62 de la ruta indicada, pero no sé como corregirlo.
Antes estaba trabajando con la versión 1.6.1.11 pero la borré completamente para actualizarme.
Agradezco su ayuda, saludos

(1/1) ContextErrorException

Notice: Undefined index: ciudad

in d55e4425a59b1ba8d049f27d085471a1e8001b9e_2.file.address-form.tpl.php line 62
at Block_15400467455ba518e0128c52_05913658->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 247
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_15400467455ba518e0128c52_05913658), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 183
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_15400467455ba518e0128c52_05913658),object(Block_6510331035ba518e01435a6_07653076))in smarty_internal_runtime_inheritance.php line 185
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_6510331035ba518e01435a6_07653076))in smarty_internal_runtime_inheritance.php line 157
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_6510331035ba518e01435a6_07653076', 'form_field', 1)in db756ecbbfd9c9231343b925b6c32927c624cb11_2.file.address-form.tpl.php line 74
at Block_20104873395ba518e0142355_99741518->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 247
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_20104873395ba518e0142355_99741518), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 231
at Smarty_Internal_Runtime_Inheritance->callParent(object(SmartyDevTemplate), object(Block_2873165495ba518e012eef2_98387157), '\'{block append}\'')in smarty_internal_runtime_inheritance.php line 180
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_2873165495ba518e012eef2_98387157),object(Block_20104873395ba518e0142355_99741518))in smarty_internal_runtime_inheritance.php line 185
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_20104873395ba518e0142355_99741518))in smarty_internal_runtime_inheritance.php line 157
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_20104873395ba518e0142355_99741518', 'form_fields', 1)in db756ecbbfd9c9231343b925b6c32927c624cb11_2.file.address-form.tpl.php line 93
at Block_510465085ba518e0141cc5_14788229->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 247
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_510465085ba518e0141cc5_14788229), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 183
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_510465085ba518e0141cc5_14788229))in smarty_internal_runtime_inheritance.php line 157
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_510465085ba518e0141cc5_14788229', 'address_form_fields', 1)in db756ecbbfd9c9231343b925b6c32927c624cb11_2.file.address-form.tpl.php line 178
at Block_17830518395ba518e013d966_25523296->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 247
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_17830518395ba518e013d966_25523296), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 183
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_17830518395ba518e013d966_25523296))in smarty_internal_runtime_inheritance.php line 157
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_17830518395ba518e013d966_25523296', 'address_form')in db756ecbbfd9c9231343b925b6c32927c624cb11_2.file.address-form.tpl.php line 27
at content_5ba518e0147305_84152991(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 206
at Smarty_Internal_Template->render()in smarty_internal_template.php line 365
at Smarty_Internal_Template->_subTemplateRender('customer/_partials/address-form.tpl', null, null, 0, 3600, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 127
at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'customer/_partials/address-form.tpl')in d55e4425a59b1ba8d049f27d085471a1e8001b9e_2.file.address-form.tpl.php line 48
at content_5ba518e0138ea8_80448810(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 206
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 41
at SmartyDevTemplateCore->fetch()in AbstractForm.php line 119
at AbstractFormCore->render(array('file' => 'checkout/_partials/address-form.tpl', 'ui' => object(RenderableProxy), 'use_same_address' => true, 'type' => 'delivery', 'form_has_continue_button' => true))in RenderableProxy.php line 52
at RenderableProxy->render(array('file' => 'checkout/_partials/address-form.tpl', 'ui' => object(RenderableProxy), 'use_same_address' => true, 'type' => 'delivery', 'form_has_continue_button' => true))in smartyfront.config.inc.php line 94
at smartyRender(array('file' => 'checkout/_partials/address-form.tpl', 'ui' => object(RenderableProxy), 'use_same_address' => true, 'type' => 'delivery', 'form_has_continue_button' => true), object(SmartyDevTemplate))in SmartyLazyRegister.php line 83
at SmartyLazyRegister->__call('smartyRender', array(array('file' => 'checkout/_partials/address-form.tpl', 'ui' => object(RenderableProxy), 'use_same_address' => true, 'type' => 'delivery', 'form_has_continue_button' => true), object(SmartyDevTemplate)))in f84474026cd4891192a23b518522ebac719b765d_2.file.addresses.tpl.php line 76
at Block_12353280125ba518e0107866_27785268->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 247
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_12353280125ba518e0107866_27785268), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 183
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_12353280125ba518e0107866_27785268),object(Block_4500721705ba518e00629a6_32851830))in smarty_internal_runtime_inheritance.php line 185
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_4500721705ba518e00629a6_32851830))in smarty_internal_runtime_inheritance.php line 157
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_4500721705ba518e00629a6_32851830', 'step_content', 1)in 83faaf6adc7bbcd0baabff3e331915c6afd9b6cc_2.file.checkout-step.tpl.php line 72
at Block_9435457185ba518e005ef50_49464747->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 247
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_9435457185ba518e005ef50_49464747), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 183
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_9435457185ba518e005ef50_49464747))in smarty_internal_runtime_inheritance.php line 157
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_9435457185ba518e005ef50_49464747', 'step')in 83faaf6adc7bbcd0baabff3e331915c6afd9b6cc_2.file.checkout-step.tpl.php line 26
at content_5ba518e0063685_48721804(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 206
at Smarty_Internal_Template->render()in smarty_internal_template.php line 365
at Smarty_Internal_Template->_subTemplateRender('checkout/_partials/steps/checkout-step.tpl', null, null, 0, 3600, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 127
at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'checkout/_partials/steps/checkout-step.tpl')in f84474026cd4891192a23b518522ebac719b765d_2.file.addresses.tpl.php line 34
at content_5ba518e0121033_94106134(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 206
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 41
at SmartyDevTemplateCore->fetch()in AbstractCheckoutStep.php line 98
at AbstractCheckoutStepCore->renderTemplate('checkout/_partials/steps/addresses.tpl', array('identifier' => 'checkout-addresses-step', 'position' => 2, 'ui' =>object(RenderableProxy)), array('address_form' => object(RenderableProxy), 'use_same_address' => true, 'use_different_address_url' => 'https://juguetepolis.com/cb/pedido?use_same_address=0', 'new_address_delivery_url' => 'https://juguetepolis.com/cb/pedido?newAddress=delivery', 'new_address_invoice_url' => 'https://juguetepolis.com/cb/pedido?newAddress=invoice', 'id_address_delivery' => 0, 'id_address_invoice' => 0, 'show_delivery_address_form' => true, 'show_invoice_address_form' => false, 'form_has_continue_button' => true, 'not_valid_addresses' => ''))in CheckoutAddressesStep.php line 293
at CheckoutAddressesStepCore->render(array('identifier' => 'checkout-addresses-step', 'position' => 2, 'ui' => object(RenderableProxy)))in RenderableProxy.php line 52
at RenderableProxy->render(array('identifier' => 'checkout-addresses-step', 'position' => 2, 'ui' => object(RenderableProxy)))in smartyfront.config.inc.php line 94
at smartyRender(array('identifier' => 'checkout-addresses-step', 'position' => 2, 'ui' => object(RenderableProxy)), object(SmartyDevTemplate))in SmartyLazyRegister.php line 83
at SmartyLazyRegister->__call('smartyRender', array(array('identifier' => 'checkout-addresses-step', 'position' => 2, 'ui' => object(RenderableProxy)),object(SmartyDevTemplate)))in 47b8e17b1f006f1a18c6e71097526565ab5cfa43_2.file.checkout-process.tpl.php line 28
at content_5ba518e00434b2_87289299(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 206
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 41
at SmartyDevTemplateCore->fetch()in CheckoutProcess.php line 114
at CheckoutProcessCore->render(array('file' => 'checkout/checkout-process.tpl', 'ui' => object(RenderableProxy)))in RenderableProxy.php line 52
at RenderableProxy->render(array('file' => 'checkout/checkout-process.tpl', 'ui' => object(RenderableProxy)))in smartyfront.config.inc.php line 94
at smartyRender(array('file' => 'checkout/checkout-process.tpl', 'ui' => object(RenderableProxy)), object(SmartyDevTemplate))in SmartyLazyRegister.php line 83
at SmartyLazyRegister->__call('smartyRender', array(array('file' => 'checkout/checkout-process.tpl', 'ui' => object(RenderableProxy)),object(SmartyDevTemplate)))in e37de5f099edddb18419001a8f79b8f221810362_2.file.checkout.tpl.php line 178
at Block_14908543955ba518dfdf5ac2_64791953->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 247
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_14908543955ba518dfdf5ac2_64791953), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 183
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_14908543955ba518dfdf5ac2_64791953))in smarty_internal_runtime_inheritance.php line 157
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_14908543955ba518dfdf5ac2_64791953', 'cart_summary', 3)in e37de5f099edddb18419001a8f79b8f221810362_2.file.checkout.tpl.php line 217
at Block_18201909485ba518dfdf53c0_02853354->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 247
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_18201909485ba518dfdf53c0_02853354), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 183
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_18201909485ba518dfdf53c0_02853354))in smarty_internal_runtime_inheritance.php line 157
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_18201909485ba518dfdf53c0_02853354', 'content')in e37de5f099edddb18419001a8f79b8f221810362_2.file.checkout.tpl.php line 71
at content_5ba518dfdfd646_61041576(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 206
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('checkout/checkout.tpl', null, 'layouts/layout-full-width.tpl', null, false, true, false)in SmartyDev.php line 41
at SmartyDev->fetch('checkout/checkout.tpl', null, 'layouts/layout-full-width.tpl')in FrontController.php line 679
at FrontControllerCore->smartyOutputContent('checkout/checkout.tpl')in FrontController.php line 663
at FrontControllerCore->display()in Controller.php line 275
at ControllerCore->run()in Dispatcher.php line 428

at DispatcherCore->dispatch()in index.php line 28

 

 

Link to comment
Share on other sites

hey bud, can ya go to the advanced in backoffice and hit information and post the stuff  that talks about

Server information Linux #1 SMP Thu Feb 8 23:35:45 MST 2018 x86_64

Server software version: Apache

PHP version: 7.1.14

Memory limit: 256M

Max execution time: 30

Upload Max File size: 64M

MySQL version: 5.6.41-84.1

MySQL engine: InnoDB

MySQL driver: DbPDO

Link to comment
Share on other sites

  • 1 year later...

Hi,

I just encountered the same problem.

Any solutions yet?

 

Server information Linux #1 SMP Tue Mar 3 06:58:58 EST 2020 x86_64

Server software version: Apache/2

PHP version: 7.1.33

Memory limit: 2048M

Max execution time: 240

Upload Max File size: 2048M

MySQL engine: InnoDB

MySQL driver: DbPDO

PrestaShop version: 1.7.6.1

Link to comment
Share on other sites

Just upgraded the PS website to 1.7.65.

The problem is still there but the debugging has changed:

Property Address->id_country is empty.
at line 1003 in file classes/ObjectModel.php

1000. $message = $this->validateField($field, $this->$field);
1001. if ($message !== true) {
1002. if ($die) {
1003. throw new PrestaShopException($message);
1004. }
1005.
1006. return $error_return ? $message : false;

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...