System error

error:  Illegal division by zero at /home/euromag/v2/Euromag/sources/lib//Euromag/Content/Video.pm line 289.
context: 
... 
285:  my $orig_h = int($1);
286: 
287:  $code =~ s/width=['"]?([0-9]+)["']?/width="$width"/ig;
288: 
289:  my $height = int( $width * $orig_h / $orig_w );
290:  $code =~ s/height=['"]?([0-9]+)["']?/height="$height"/ig;
291: 
292:  return $code;
293:  }
... 
code stack:  /home/euromag/v2/Euromag/sources/lib/Euromag/Content/Video.pm:289
/home/euromag/v2/Euromag/sources/comps/www/comps/document/video.msn:26
/home/euromag/v2/Euromag/sources/comps/www/document.html:25
/home/euromag/v2/Euromag/sources/comps/www/dhandler:4
/home/euromag/v2/Euromag/sources/comps/www/autohandler:1
raw error






























Illegal division by zero at /home/euromag/v2/Euromag/sources/lib//Euromag/Content/Video.pm line 289.


Trace begun at /usr/local/share/perl/5.10.1/HTML/Mason/Exceptions.pm line 129
HTML::Mason::Exceptions::rethrow_exception('Illegal division by zero at /home/euromag/v2/Euromag/sources/lib//Euromag/Content/Video.pm line 289.^J') called at /home/euromag/v2/Euromag/sources/lib/Euromag/Content/Video.pm line 289
Euromag::Content::Video::get_prepared_code('Euromag::Content::Video=HASH(0x5a11520)', 'slice', 1) called at /home/euromag/v2/Euromag/sources/comps/www/comps/document/video.msn line 26
HTML::Mason::Commands::__ANON__ at /usr/local/share/perl/5.10.1/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x5a56008)') called at /usr/local/share/perl/5.10.1/HTML/Mason/Request.pm line 1302
eval {...} at /usr/local/share/perl/5.10.1/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef) called at /home/euromag/v2/Euromag/sources/comps/www/document.html line 25
HTML::Mason::Commands::__ANON__ at /usr/local/share/perl/5.10.1/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x5415130)') called at /usr/local/share/perl/5.10.1/HTML/Mason/Request.pm line 1302
eval {...} at /usr/local/share/perl/5.10.1/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef) called at /home/euromag/v2/Euromag/sources/comps/www/dhandler line 4
HTML::Mason::Commands::__ANON__ at /usr/local/share/perl/5.10.1/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x5390928)') called at /usr/local/share/perl/5.10.1/HTML/Mason/Request.pm line 1302
eval {...} at /usr/local/share/perl/5.10.1/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef) called at /home/euromag/v2/Euromag/sources/comps/www/autohandler line 1
HTML::Mason::Commands::__ANON__ at /usr/local/share/perl/5.10.1/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x5392588)') called at /usr/local/share/perl/5.10.1/HTML/Mason/Request.pm line 1297
eval {...} at /usr/local/share/perl/5.10.1/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/local/share/perl/5.10.1/HTML/Mason/Request.pm line 481
eval {...} at /usr/local/share/perl/5.10.1/HTML/Mason/Request.pm line 481
eval {...} at /usr/local/share/perl/5.10.1/HTML/Mason/Request.pm line 433
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x5a55960)') called at /usr/local/share/perl/5.10.1/HTML/Mason/ApacheHandler.pm line 168
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x5a55960)') called at /usr/local/share/perl/5.10.1/HTML/Mason/ApacheHandler.pm line 825
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x5380718)', 'Apache=SCALAR(0x5a75d58)') called at /home/euromag/v2/makeidea/sources/lib/MakeIdea/BK/Core/handler.pl line 84
eval {...} at /home/euromag/v2/makeidea/sources/lib/MakeIdea/BK/Core/handler.pl line 81
MakeIdea::BK::Core::Handler::Mason::handler('Apache=SCALAR(0x5a75d58)') called at /dev/null line 0
eval {...} at /dev/null line 0