A PHP Error was encountered

Severity: Warning

Message: mysqli::query(): MySQL server has gone away

Filename: mysqli/mysqli_driver.php

Line Number: 307

Backtrace:

File: /home/soydali1/public_html/www.dalish.gt/application/models/Productos_model.php
Line: 607
Function: get

File: /home/soydali1/public_html/www.dalish.gt/application/controllers/Marcas.php
Line: 84
Function: ofertas

File: /home/soydali1/public_html/www.dalish.gt/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: mysqli::query(): Error reading result set's header

Filename: mysqli/mysqli_driver.php

Line Number: 307

Backtrace:

File: /home/soydali1/public_html/www.dalish.gt/application/models/Productos_model.php
Line: 607
Function: get

File: /home/soydali1/public_html/www.dalish.gt/application/controllers/Marcas.php
Line: 84
Function: ofertas

File: /home/soydali1/public_html/www.dalish.gt/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/soydali1/public_html/www.dalish.gt/system/core/Exceptions.php:271)

Filename: core/Common.php

Line Number: 564

Backtrace:

File: /home/soydali1/public_html/www.dalish.gt/application/models/Productos_model.php
Line: 607
Function: get

File: /home/soydali1/public_html/www.dalish.gt/application/controllers/Marcas.php
Line: 84
Function: ofertas

File: /home/soydali1/public_html/www.dalish.gt/index.php
Line: 315
Function: require_once

Database Error

A Database Error Occurred

Error Number: 2006

MySQL server has gone away

SELECT `codigos`.`precio3` `precio_venta`, sum(if(inventario.id_detalle_venta = 0 and inventario.anulada = 0, `inventario`.`item`, 0)) inventario, `inventario`.`id_codigo`, `codigos`.`id` `idcodigo`, `codigos`.`codigo`, `codigos`.`id_producto`, `codigos`.`descripcion`, `codigos`.`imagen_nueva`, `codigos`.`descuento`, `codigos`.`descuento`, `codigos`.`oferta`, `codigos`.`precio1`, `codigos`.`precio2`, `codigos`.`precio3`, `codigos`.`precio4`, `productos`.`id` `idprod`, `productos`.`id_categoria`, `productos`.`producto`, `productos`.`id_marca`, `presentaciones`.`id` `idpres`, `presentaciones`.`id_categoria` `catpres`, `presentaciones`.`id_unidad`, `presentaciones`.`medida`, `unidades`.`id` `iduni`, `unidades`.`unidad`, `categorias`.`id` `idcat`, `categorias`.`categoria` FROM `inventario` JOIN `codigos` ON `codigos`.`id` = `inventario`.`id_codigo` JOIN `productos` ON `productos`.`id` = `codigos`.`id_producto` JOIN `categorias` ON `categorias`.`id` = `productos`.`id_categoria` JOIN `presentaciones` ON `presentaciones`.`id` = `codigos`.`id_presentacion` JOIN `unidades` ON `unidades`.`id` = `presentaciones`.`id_unidad` WHERE `inventario`.`precio_venta` = 0 AND `inventario`.`status` = 1 AND `inventario`.`id_tienda` = 1 AND `inventario`.`anulada` = 0 AND `inventario`.`id_detalle_venta` = 0 AND `codigos`.`oferta` = 1 GROUP BY `codigos`.`id` ORDER BY RAND() LIMIT 4

Filename: models/Productos_model.php

Line Number: 607