System error

error:  Can't use an undefined value as an ARRAY reference at /var/www/cw/adarshengineers.in/vessels.html line 27.
context: 
... 
23:  my $catalog_id = $u->{catalog_id};
24:  unless($num_data){
25:  $total_data=1;
26:  my $total_data = $m->comp('scripts/catalog_category.html',catalog_id=>$catalog_id,category_id=>$category_id,p_category_id=>$p_category_id,per_page=>$per_page,page_no=>$page_no,total_data=>$total_data);
27:  $num_data = scalar ( @{$total_data->{Prod}} );
28:  }
29:  $ARGS{total_data}=0;
30:  my $data = $m->comp('scripts/catalog_category.html',catalog_id=>$catalog_id,category_id=>$category_id,p_category_id=>$p_category_id,per_page=>$per_page,page_no=>$page_no,total_data=>$total_data);
31:  my $pages = $m->comp('scripts/paginate.html',num_data=>$num_data,per_page=>$per_page,page_class=>undef,no_class=>undef,frontend_uri=>$ENV{SCRIPT_NAME}) if (scalar ( @{$data->{Prod}}) < $num_data);
... 
code stack:  /var/www/cw/adarshengineers.in/vessels.html:27
/var/www/cw/adarshengineers.in/autohandler.html:497
/opt/app/tradeindia/cw/components/syshandler.html:76
raw error






























Can't use an undefined value as an ARRAY reference at /var/www/cw/adarshengineers.in/vessels.html line 27.


Trace begun at /usr/share/perl5/HTML/Mason/Exceptions.pm line 125
HTML::Mason::Exceptions::rethrow_exception('Can\'t use an undefined value as an ARRAY reference at /var/www/cw/adarshengineers.in/vessels.html line 27.^J') called at /var/www/cw/adarshengineers.in/vessels.html line 27
HTML::Mason::Commands::__ANON__ at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x558620bca828)') 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(0x558620908dd0)') called at /var/www/cw/adarshengineers.in/autohandler.html line 497
HTML::Mason::Commands::__ANON__ at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x55861fb64d48)') 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(0x558620908dd0)') called at /opt/app/tradeindia/cw/components/syshandler.html line 76
HTML::Mason::Commands::__ANON__ at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x558620ca4210)') 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(0x558620908dd0)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 165
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x558620908dd0)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 831
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x558620bebb68)', 'Apache2::RequestRec=SCALAR(0x5586208f4ba8)') called at /opt/app/tradeindia/cw/modules/B2B/Handler/CW.pm line 113
eval {...} at /opt/app/tradeindia/cw/modules/B2B/Handler/CW.pm line 112
B2B::Handler::CW::handler('Apache2::RequestRec=SCALAR(0x5586208f4ba8)') called at -e line 0
eval {...} at -e line 0