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
/opt/app/tradeindia/cw/components/common/default-dhandler.html:16
/var/www/cw/akehandicrafts.com/dhandler.html:13
/var/www/cw/akehandicrafts.com/dautohandler.html:15
/var/www/cw/akehandicrafts.com/autohandler.html:365
/opt/app/tradeindia/cw/components/syshandler.html:77
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 125
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__('product_id', 5464251) called at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x5619eb47fda0)', 'product_id', 5464251) called at /usr/share/perl5/HTML/Mason/Request.pm line 1302
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, 'product_id', 5464251) called at /opt/app/tradeindia/cw/components/common/default-dhandler.html line 16
HTML::Mason::Commands::__ANON__ at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x5619e9d9c280)') called at /usr/share/perl5/HTML/Mason/Request.pm line 1302
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef) called at /var/www/cw/akehandicrafts.com/dhandler.html line 13
HTML::Mason::Commands::__ANON__ at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x5619e9bb2bf0)') called at /usr/share/perl5/HTML/Mason/Request.pm line 1302
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/share/perl5/HTML/Mason/Request.pm line 955
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x5619eb78dee0)') called at /var/www/cw/akehandicrafts.com/dautohandler.html line 15
HTML::Mason::Commands::__ANON__ at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x5619ead90b20)') called at /usr/share/perl5/HTML/Mason/Request.pm line 1302
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/share/perl5/HTML/Mason/Request.pm line 955
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x5619eb78dee0)') called at /var/www/cw/akehandicrafts.com/autohandler.html line 365
HTML::Mason::Commands::__ANON__ at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x5619ea960158)') called at /usr/share/perl5/HTML/Mason/Request.pm line 1302
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/share/perl5/HTML/Mason/Request.pm line 955
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x5619eb78dee0)') called at /opt/app/tradeindia/cw/components/syshandler.html line 77
HTML::Mason::Commands::__ANON__ at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x5619eb233ba8)') called at /usr/share/perl5/HTML/Mason/Request.pm line 1300
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/share/perl5/HTML/Mason/Request.pm line 481
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 481
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 433
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x5619eb78dee0)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 165
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x5619eb78dee0)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 831
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x5619eb6d5fa0)', 'Apache2::RequestRec=SCALAR(0x5619eb764778)') called at /opt/app/tradeindia/cw/modules/B2B/Handler/CW.pm line 132
eval {...} at /opt/app/tradeindia/cw/modules/B2B/Handler/CW.pm line 131
B2B::Handler::CW::handler('Apache2::RequestRec=SCALAR(0x5619eb764778)') called at -e line 0
eval {...} at -e line 0