A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: models/Produtos_model.php

Line Number: 521

Backtrace:

File: /home/oceaniasportwear/public_html/application/models/Produtos_model.php
Line: 521
Function: _error_handler

File: /home/oceaniasportwear/public_html/application/controllers/Produtos.php
Line: 118
Function: mostra_produto

File: /home/oceaniasportwear/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: 521

Backtrace:

File: /home/oceaniasportwear/public_html/application/models/Produtos_model.php
Line: 521
Function: _error_handler

File: /home/oceaniasportwear/public_html/application/controllers/Produtos.php
Line: 118
Function: mostra_produto

File: /home/oceaniasportwear/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: 531

Backtrace:

File: /home/oceaniasportwear/public_html/application/models/Produtos_model.php
Line: 531
Function: _error_handler

File: /home/oceaniasportwear/public_html/application/controllers/Produtos.php
Line: 118
Function: mostra_produto

File: /home/oceaniasportwear/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: 531

Backtrace:

File: /home/oceaniasportwear/public_html/application/models/Produtos_model.php
Line: 531
Function: _error_handler

File: /home/oceaniasportwear/public_html/application/controllers/Produtos.php
Line: 118
Function: mostra_produto

File: /home/oceaniasportwear/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: 119

Backtrace:

File: /home/oceaniasportwear/public_html/application/controllers/Produtos.php
Line: 119
Function: _error_handler

File: /home/oceaniasportwear/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: 119

Backtrace:

File: /home/oceaniasportwear/public_html/application/controllers/Produtos.php
Line: 119
Function: _error_handler

File: /home/oceaniasportwear/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: 121

Backtrace:

File: /home/oceaniasportwear/public_html/application/controllers/Produtos.php
Line: 121
Function: _error_handler

File: /home/oceaniasportwear/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: 121

Backtrace:

File: /home/oceaniasportwear/public_html/application/controllers/Produtos.php
Line: 121
Function: _error_handler

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

Filename: core/Common.php

Line Number: 570

Backtrace:

File: /home/oceaniasportwear/public_html/application/models/Produtos_model.php
Line: 593
Function: query

File: /home/oceaniasportwear/public_html/application/controllers/Produtos.php
Line: 121
Function: lista_relacionados

File: /home/oceaniasportwear/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: 593