- 22 Mai 2020, 20:00
#87339
Olá! Ao apertar finalizar compra no meu site OpenCart, é gerado uma mensagem de erro, e ao verificar o log de erros tenho os seguinte erro:
PHP Warning: Division by zero in /home1/chelpl70/public_html/system/library/d5/extends/boxpacker/vendor/dvdoug/boxpacker/src/OrientatedItem.php on line 127
O trecho de código em questão é este
Utilizo a verão 3.0.2.0 junto ao template Jewellery Ananda, mais uma extensão de calculo de frete e outra de pagamento do PagSeguro Checkout Transparent.
Alguém sabe como resolvo o problema?
PHP Warning: Division by zero in /home1/chelpl70/public_html/system/library/d5/extends/boxpacker/vendor/dvdoug/boxpacker/src/OrientatedItem.php on line 127
O trecho de código em questão é este
Código: Selecionar todos
** a linha 27 é a linha "if(!isset..." public function isStable()
{
$cacheKey = $this->width . '|' . $this->length . '|' . $this->depth;
if (!isset(static::$stabilityCache[$cacheKey])) {
static::$stabilityCache[$cacheKey] = (atan(min($this->length, $this->width) / ($this->depth ?: 1)) > 0.261);
}
return static::$stabilityCache[$cacheKey];
}
Utilizo a verão 3.0.2.0 junto ao template Jewellery Ananda, mais uma extensão de calculo de frete e outra de pagamento do PagSeguro Checkout Transparent.
Alguém sabe como resolvo o problema?