System error

error:  Can't use string ("0") as a HASH ref while "strict refs" in use at /var/www/site/elements/sites/2014/morinda/product_details_one_page.html line 77.
context: 
... 
73:  }
74:  }
75: 
76:  my $product = $cms->getProduct($ARGS{pid},1,1,1,$custtypeid,1);
77:  $product->{attachments}->{content}->{fileContents} =~ s/<script>[\s\S]*<\/script>//g;
78:  $product->{attachments}->{content}->{fileContents} =~ s/\"/\'/g;
79:  $product->{ogdescription} = ($product->{ogdescription}ne"")?$product->{ogdescription}:$product->{attachments}->{content}->{fileContents};
80:  $product->{ogtitle} = ($product->{ogtitle}ne"")?$product->{ogtitle}:$product->{short_title};
81:  $product->{attachments}->{ogimage}->{path} = ($product->{attachments}->{ogimage}->{path}ne"")?$product->{attachments}->{ogimage}->{path}:$product->{attachments}->{smallimage}->{path};
... 
code stack:  /var/www/site/elements/sites/2014/morinda/product_details_one_page.html:77
/var/www/site/sites/morinda/shop/dhandler.html:42
/var/www/site/sites/morinda/autohandler.html:244
/var/www/site/elements/util/trimsubpage:10
/var/www/site/sites/morinda/autohandler.html:245
/var/www/site/sites/autohandler.html:6
/var/www/site/autohandler.html:7
/var/www/site/syshandler:34
raw error






























Can't use string ("0") as a HASH ref while "strict refs" in use at /var/www/site/elements/sites/2014/morinda/product_details_one_page.html line 77.


Trace begun at /var/www/lib/HTML/Mason/Exceptions.pm line 129
HTML::Mason::Exceptions::rethrow_exception('Can\'t use string ("0") as a HASH ref while "strict refs" in use at /var/www/site/elements/sites/2014/morinda/product_details_one_page.html line 77.^J') called at /var/www/site/elements/sites/2014/morinda/product_details_one_page.html line 77
HTML::Mason::Commands::__ANON__('pid', 4960881) called at /var/www/lib/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xa9fb1f38)', 'pid', 4960881) called at /var/www/lib/HTML/Mason/Request.pm line 1267
eval {...} at /var/www/lib/HTML/Mason/Request.pm line 1261
HTML::Mason::Request::comp(undef, undef, 'pid', 4960881) called at /var/www/site/sites/morinda/shop/dhandler.html line 42
HTML::Mason::Commands::__ANON__ at /var/www/lib/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xa87f3f40)') called at /var/www/lib/HTML/Mason/Request.pm line 1267
eval {...} at /var/www/lib/HTML/Mason/Request.pm line 1261
HTML::Mason::Request::comp(undef, undef) called at /var/www/lib/HTML/Mason/Request.pm line 921
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0xa8dac470)') called at /var/www/site/sites/morinda/autohandler.html line 244
HTML::Mason::Commands::__ANON__ at /var/www/lib/HTML/Mason/Request.pm line 1333
HTML::Mason::Request::content('HTML::Mason::Request::ApacheHandler=HASH(0xa8dac470)') called at /var/www/site/elements/util/trimsubpage line 10
HTML::Mason::Commands::__ANON__ at /var/www/lib/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xa9a6bd30)') called at /var/www/lib/HTML/Mason/Request.pm line 1267
eval {...} at /var/www/lib/HTML/Mason/Request.pm line 1261
HTML::Mason::Request::comp(undef, undef, undef) called at /var/www/site/sites/morinda/autohandler.html line 245
HTML::Mason::Commands::__ANON__ at /var/www/lib/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xa9fb1b78)') called at /var/www/lib/HTML/Mason/Request.pm line 1267
eval {...} at /var/www/lib/HTML/Mason/Request.pm line 1261
HTML::Mason::Request::comp(undef, undef) called at /var/www/lib/HTML/Mason/Request.pm line 921
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0xa8dac470)') called at /var/www/site/sites/autohandler.html line 6
HTML::Mason::Commands::__ANON__ at /var/www/lib/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xa9fb1908)') called at /var/www/lib/HTML/Mason/Request.pm line 1267
eval {...} at /var/www/lib/HTML/Mason/Request.pm line 1261
HTML::Mason::Request::comp(undef, undef) called at /var/www/lib/HTML/Mason/Request.pm line 921
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0xa8dac470)') called at /var/www/site/autohandler.html line 7
HTML::Mason::Commands::__ANON__ at /var/www/lib/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xaa1869f8)') called at /var/www/lib/HTML/Mason/Request.pm line 1267
eval {...} at /var/www/lib/HTML/Mason/Request.pm line 1261
HTML::Mason::Request::comp(undef, undef) called at /var/www/lib/HTML/Mason/Request.pm line 921
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0xa8dac470)') called at /var/www/site/syshandler line 34
HTML::Mason::Commands::__ANON__ at /var/www/lib/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xa87f4030)') called at /var/www/lib/HTML/Mason/Request.pm line 1262
eval {...} at /var/www/lib/HTML/Mason/Request.pm line 1261
HTML::Mason::Request::comp(undef, undef, undef) called at /var/www/lib/HTML/Mason/Request.pm line 466
eval {...} at /var/www/lib/HTML/Mason/Request.pm line 466
eval {...} at /var/www/lib/HTML/Mason/Request.pm line 414
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0xa8dac470)') called at /var/www/lib/HTML/Mason/ApacheHandler.pm line 168
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0xa8dac470)') called at /var/www/lib/SiteHandler.pm line 307
eval {...} at /var/www/lib/SiteHandler.pm line 301
SiteHandler::handler('SiteSite', 'Apache2::RequestRec=SCALAR(0xb31987d8)') called at -e line 0
eval {...} at -e line 0