System error

error:  Can't use an undefined value as a HASH reference at /var/www/cw/akehandicrafts.com/products_details.html line 165.
context: 
... 
161: 
162:  <%perl>
163:  # Custom Field Data
164:  my $custom_field_data = $prod->{'custom_fields_data'};
165:  foreach my $data (sort %$custom_field_data) {
166:  foreach my $value (@{$custom_field_data->{$data}}) {
167:  if($value) {
168:  foreach my $a (%$value) {
169:  </%perl>
... 
code stack:  /var/www/cw/akehandicrafts.com/products_details.html:165
/var/www/cw/akehandicrafts.com/autohandler.html:365
/opt/app/tradeindia/cw/components/syshandler.html:79
raw error






























Can't use an undefined value as a HASH reference at /var/www/cw/akehandicrafts.com/products_details.html line 165.


Trace begun at /usr/share/perl5/HTML/Mason/Exceptions.pm line 129
HTML::Mason::Exceptions::rethrow_exception('Can\'t use an undefined value as a HASH reference at /var/www/cw/akehandicrafts.com/products_details.html line 165.^J') called at /var/www/cw/akehandicrafts.com/products_details.html line 165
HTML::Mason::Commands::__ANON__('fn', 'solid-brass-decorative-aftaba', 'product_id', 5422777) called at /usr/share/perl5/HTML/Mason/Component.pm line 138
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7f8371aba648)', 'fn', 'solid-brass-decorative-aftaba', 'product_id', 5422777) called at /usr/share/perl5/HTML/Mason/Request.pm line 1305
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1295
HTML::Mason::Request::comp(undef, undef, undef, 'fn', 'solid-brass-decorative-aftaba', 'product_id', 5422777) called at /usr/share/perl5/HTML/Mason/Request.pm line 958
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x7f837197e1b0)') called at /var/www/cw/akehandicrafts.com/autohandler.html line 365
HTML::Mason::Commands::__ANON__('fn', 'solid-brass-decorative-aftaba', 'product_id', 5422777) called at /usr/share/perl5/HTML/Mason/Component.pm line 138
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7f8370827aa0)', 'fn', 'solid-brass-decorative-aftaba', 'product_id', 5422777) called at /usr/share/perl5/HTML/Mason/Request.pm line 1305
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1295
HTML::Mason::Request::comp(undef, undef, undef, 'fn', 'solid-brass-decorative-aftaba', 'product_id', 5422777) called at /usr/share/perl5/HTML/Mason/Request.pm line 958
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x7f837197e1b0)') called at /opt/app/tradeindia/cw/components/syshandler.html line 79
HTML::Mason::Commands::__ANON__('fn', 'solid-brass-decorative-aftaba', 'product_id', 5422777) called at /usr/share/perl5/HTML/Mason/Component.pm line 138
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7f8371984bc8)', 'fn', 'solid-brass-decorative-aftaba', 'product_id', 5422777) called at /usr/share/perl5/HTML/Mason/Request.pm line 1303
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1295
HTML::Mason::Request::comp(undef, undef, undef, 'fn', 'solid-brass-decorative-aftaba', 'product_id', 5422777) called at /usr/share/perl5/HTML/Mason/Request.pm line 484
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 484
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 436
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x7f837197e1b0)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 165
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x7f837197e1b0)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 831
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x7f8370e700b8)', 'Apache2::RequestRec=SCALAR(0x7f8371643c70)') called at /opt/app/tradeindia/cw/modules/B2B/Handler/CW.pm line 88
eval {...} at /opt/app/tradeindia/cw/modules/B2B/Handler/CW.pm line 87
B2B::Handler::CW::handler('Apache2::RequestRec=SCALAR(0x7f8371643c70)') called at -e line 0
eval {...} at -e line 0