Jump to content

[SOLVED] Notice Undefined index Problem in addresses.tpl


IeM

Recommended Posts

Hi,

I am getting an 'Undefined index' notice.

 

The page /addresses  (within My Account)

 

What is displayed:

Name

street

City, State

Notice: Undefined index: in /home/xxxxxxx/public_html/site.net/www/cache/smarty/compile/0a/21/d3/0a21d39e2ec8250e020cf306748602f8d4c832d6.file.addresses.tpl.php on line 203

Post Code

country

phone

 

 

This is from the cached file:


<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['address']->value['formated'][smarty_modifier_replace($_smarty_tpl->tpl_vars['key']->value,',','')], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
[code=auto:0]
 
 
In the addresses.tpl file:
[code=auto:0]
{assign var="adrs_style" value=$addresses_style} {foreach from=$multipleAddresses item=address name=myLoop} {$address.object.alias}
 
{foreach from=$address.ordered name=adr_loop item=pattern} {assign var=addressKey value=" "|explode:$pattern} {foreach from=$addressKey item=key name="word_loop"} {$address.formated[$key|replace:',':'']|escape:'htmlall':'UTF-8'} {/foreach}

 

{/foreach} » {l s='Update'}

 

» {l s='Delete'}

 

{/foreach}

[code=auto:0]

 

Any ideas on how to go about finding the missing data and what to do about correcting it?

 

Thanks

 

 

 

 

 

 

 

 

Edited by IeM (see edit history)
Link to comment
Share on other sites

  • 4 weeks later...
×
×
  • Create New...