Fórum OpenCart Brasil

Por um e-commerce livre, confiável e profissional

Suporte geral sobre problemas técnicos para OpenCart v3.x.
#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
Código: Selecionar todos
    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];
    }
** a linha 27 é a linha "if(!isset..."
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?

Olá! Tudo bem? Verifique as configura&cced[…]

Olá! Tudo bem? Trabalho com Opencart h&aac[…]

Imagem do Carrinho de Compras

Olá! Tudo bem? São vários lo[…]

Discover new facets of pleasure, one night only R[…]