0
Ich habe ein Problem in meinem Speicher, und es ist eine Division durch Null-Fehler in der PHP-Datei mit dem Namen Gd2.phpMagento - Achtung: Division durch Null Gd2.php
Warnung zu erzeugen: Division durch Null in/home/Domain/public_html/lib/Varien/Bild/Adapter/Gd2.php on line 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);
}
}