A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: models/Produtos_model.php

Line Number: 674

Backtrace:

File: /home/belacasars/public_html/application/models/Produtos_model.php
Line: 674
Function: _error_handler

File: /home/belacasars/public_html/application/controllers/Produtos.php
Line: 135
Function: mostra_produto

File: /home/belacasars/public_html/application/controllers/Produtos.php
Line: 18
Function: detalhes

File: /home/belacasars/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to get property 'grade' of non-object

Filename: models/Produtos_model.php

Line Number: 674

Backtrace:

File: /home/belacasars/public_html/application/models/Produtos_model.php
Line: 674
Function: _error_handler

File: /home/belacasars/public_html/application/controllers/Produtos.php
Line: 135
Function: mostra_produto

File: /home/belacasars/public_html/application/controllers/Produtos.php
Line: 18
Function: detalhes

File: /home/belacasars/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: models/Produtos_model.php

Line Number: 685

Backtrace:

File: /home/belacasars/public_html/application/models/Produtos_model.php
Line: 685
Function: _error_handler

File: /home/belacasars/public_html/application/controllers/Produtos.php
Line: 135
Function: mostra_produto

File: /home/belacasars/public_html/application/controllers/Produtos.php
Line: 18
Function: detalhes

File: /home/belacasars/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to get property 'grade' of non-object

Filename: models/Produtos_model.php

Line Number: 685

Backtrace:

File: /home/belacasars/public_html/application/models/Produtos_model.php
Line: 685
Function: _error_handler

File: /home/belacasars/public_html/application/controllers/Produtos.php
Line: 135
Function: mostra_produto

File: /home/belacasars/public_html/application/controllers/Produtos.php
Line: 18
Function: detalhes

File: /home/belacasars/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: controllers/Produtos.php

Line Number: 136

Backtrace:

File: /home/belacasars/public_html/application/controllers/Produtos.php
Line: 136
Function: _error_handler

File: /home/belacasars/public_html/application/controllers/Produtos.php
Line: 18
Function: detalhes

File: /home/belacasars/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to get property 'id_produto' of non-object

Filename: controllers/Produtos.php

Line Number: 136

Backtrace:

File: /home/belacasars/public_html/application/controllers/Produtos.php
Line: 136
Function: _error_handler

File: /home/belacasars/public_html/application/controllers/Produtos.php
Line: 18
Function: detalhes

File: /home/belacasars/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: models/Produtos_model.php

Line Number: 803

Backtrace:

File: /home/belacasars/public_html/application/models/Produtos_model.php
Line: 803
Function: _error_handler

File: /home/belacasars/public_html/application/controllers/Produtos.php
Line: 137
Function: produtos_opcoes_lista

File: /home/belacasars/public_html/application/controllers/Produtos.php
Line: 18
Function: detalhes

File: /home/belacasars/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to get property 'grade' of non-object

Filename: models/Produtos_model.php

Line Number: 803

Backtrace:

File: /home/belacasars/public_html/application/models/Produtos_model.php
Line: 803
Function: _error_handler

File: /home/belacasars/public_html/application/controllers/Produtos.php
Line: 137
Function: produtos_opcoes_lista

File: /home/belacasars/public_html/application/controllers/Produtos.php
Line: 18
Function: detalhes

File: /home/belacasars/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: controllers/Produtos.php

Line Number: 138

Backtrace:

File: /home/belacasars/public_html/application/controllers/Produtos.php
Line: 138
Function: _error_handler

File: /home/belacasars/public_html/application/controllers/Produtos.php
Line: 18
Function: detalhes

File: /home/belacasars/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to get property 'id_produto' of non-object

Filename: controllers/Produtos.php

Line Number: 138

Backtrace:

File: /home/belacasars/public_html/application/controllers/Produtos.php
Line: 138
Function: _error_handler

File: /home/belacasars/public_html/application/controllers/Produtos.php
Line: 18
Function: detalhes

File: /home/belacasars/public_html/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/belacasars/public_html/system/core/Exceptions.php:271)

Filename: core/Common.php

Line Number: 564

Backtrace:

File: /home/belacasars/public_html/application/models/Produtos_model.php
Line: 748
Function: query

File: /home/belacasars/public_html/application/controllers/Produtos.php
Line: 138
Function: lista_relacionados

File: /home/belacasars/public_html/application/controllers/Produtos.php
Line: 18
Function: detalhes

File: /home/belacasars/public_html/index.php
Line: 315
Function: require_once

Database Error

Ocorreu um erro de banco de dados

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'limit 1) AND p.id_produto <> and p.ativo='SIM' AND produtos_ima' at line 6

SELECT p.*,p.seo_url,p.nome,imagem,categoria_sub,p.codigo,m.marca FROM produtos as p LEFT JOIN categorias_sub ON p.id_categoria_sub = categorias_sub.id_categoria_sub LEFT JOIN produtos_imagens ON p.id_produto = produtos_imagens.id_produto left join marcas as m on m.id_marca=p.id_marca WHERE p.id_categoria_sub = (SELECT produtos.id_categoria_sub FROM produtos WHERE id_produto = limit 1) AND p.id_produto <> and p.ativo='SIM' AND produtos_imagens.tipo = 'PRINCIPAL' ORDER BY RAND() LIMIT 6

Filename: models/Produtos_model.php

Line Number: 748