A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: models/Produtos_model.php

Line Number: 653

Backtrace:

File: /home/rtorolamentos/public_html/application/models/Produtos_model.php
Line: 653
Function: _error_handler

File: /home/rtorolamentos/public_html/application/controllers/Produtos.php
Line: 139
Function: mostra_produto

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

File: /home/rtorolamentos/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: 653

Backtrace:

File: /home/rtorolamentos/public_html/application/models/Produtos_model.php
Line: 653
Function: _error_handler

File: /home/rtorolamentos/public_html/application/controllers/Produtos.php
Line: 139
Function: mostra_produto

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

File: /home/rtorolamentos/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: 667

Backtrace:

File: /home/rtorolamentos/public_html/application/models/Produtos_model.php
Line: 667
Function: _error_handler

File: /home/rtorolamentos/public_html/application/controllers/Produtos.php
Line: 139
Function: mostra_produto

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

File: /home/rtorolamentos/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: 667

Backtrace:

File: /home/rtorolamentos/public_html/application/models/Produtos_model.php
Line: 667
Function: _error_handler

File: /home/rtorolamentos/public_html/application/controllers/Produtos.php
Line: 139
Function: mostra_produto

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

File: /home/rtorolamentos/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: 140

Backtrace:

File: /home/rtorolamentos/public_html/application/controllers/Produtos.php
Line: 140
Function: _error_handler

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

File: /home/rtorolamentos/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: 140

Backtrace:

File: /home/rtorolamentos/public_html/application/controllers/Produtos.php
Line: 140
Function: _error_handler

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

File: /home/rtorolamentos/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: 801

Backtrace:

File: /home/rtorolamentos/public_html/application/models/Produtos_model.php
Line: 801
Function: _error_handler

File: /home/rtorolamentos/public_html/application/controllers/Produtos.php
Line: 141
Function: produtos_opcoes_lista

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

File: /home/rtorolamentos/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: 801

Backtrace:

File: /home/rtorolamentos/public_html/application/models/Produtos_model.php
Line: 801
Function: _error_handler

File: /home/rtorolamentos/public_html/application/controllers/Produtos.php
Line: 141
Function: produtos_opcoes_lista

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

File: /home/rtorolamentos/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: 142

Backtrace:

File: /home/rtorolamentos/public_html/application/controllers/Produtos.php
Line: 142
Function: _error_handler

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

File: /home/rtorolamentos/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: 142

Backtrace:

File: /home/rtorolamentos/public_html/application/controllers/Produtos.php
Line: 142
Function: _error_handler

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

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

Filename: core/Common.php

Line Number: 564

Backtrace:

File: /home/rtorolamentos/public_html/application/models/Produtos_model.php
Line: 746
Function: query

File: /home/rtorolamentos/public_html/application/controllers/Produtos.php
Line: 142
Function: lista_relacionados

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

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

Database Error

A Database Error Occurred

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: 746