2016-05-15 72 views
0

我在店裏的一個問題,它的產生一個部門在名爲Gd2.phpMagento的 - 警告:被零除Gd2.php

警告PHP文件零誤差:在被零除/ 379

if ($this->_keepAspectRatio) { 
    // do not make picture bigger, than it is, if required 
    if ($this->_constrainOnly) { 
     if (($frameWidth >= $this->_imageSrcWidth) && ($frameHeight >= $this->_imageSrcHeight)) { 
      $dstWidth = $this->_imageSrcWidth; 
      $dstHeight = $this->_imageSrcHeight; 
     } 
    } 
    // keep aspect ratio 
    if ($this->_imageSrcWidth/$this->_imageSrcHeight >= $frameWidth/$frameHeight) {// <- Line 379 
     $dstHeight = round(($dstWidth/$this->_imageSrcWidth) * $this->_imageSrcHeight); 
    } else { 
     $dstWidth = round(($dstHeight/$this->_imageSrcHeight) * $this->_imageSrcWidth); 
    } 
} 

回答

0

也許你指定錯誤的圖像大小,但最有可能的源文件行家用/域/的public_html/lib中/瓦瑞恩/圖片/適配器/ Gd2.php不是圖像或圖像沒有recornized格式