Jump to content

Fix WARN in error log caused buy addresses.tpl file


DARKF3D3

Recommended Posts

This is the warn line i just found into my error log:

[Sun Oct 11 03:12:25 2015] [warn] [client 144.121.22.117] mod_fcgid: stderr: PHP Notice:  Undefined index: (State:name) in /var/www/host/my-website.com/my-website.com/cache/smarty/compile/a8/ed/fe/a8edfe327e7d9a4e1fdd6267ab2c4866b8c32054.file.addresses.tpl.php on line 92, referer: http://www.my-website.com/my-account
 

I downloaded this file, and at the top of it i found this line:

compiled from "/var/www/vhosts/dottorgadget.it/store.dottorgadget.it/themes/dottorgadget/addresses.tpl"

 

While this is the line 92 of the cache file:

<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['address']->value['formated'][smarty_modifier_replace($_smarty_tpl->tpl_vars['key']->value,',','')], ENT_QUOTES, 'UTF-8', true);?>
And this is the same line into the addresses.tpl file:

{$address.formated[$key|replace:',':'']|escape:'html':'UTF-8'}

 

Do you know how can I fix this?

 

 

Thank you

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