Página 1 de 1

Problema no controller e no order

Enviado: 06 Ago 2012, 19:18
por isleno
Olá, uso o opencart 1.5.3.1
Ao clicar em um pedido por exemplo pelo link http://loja.genesiseries.com/index.php? ... der_id=298
Dá o erro:

Notice: Undefined variable: order_id in /home/genesise/public_html/loja/catalog/controller/account/order.php on line 149Warning: Cannot modify header information - headers already sent by (output started at /home/genesise/public_html/loja/index.php:100) in /home/genesise/public_html/loja/system/engine/controller.php on line 28Warning: Cannot modify header information - headers already sent by (output started at /home/genesise/public_html/loja/index.php:100) in /home/genesise/public_html/loja/system/engine/controller.php on line 29

E também no painel de controle mostra:

012-08-06 21:45:30 - PHP Notice: Undefined variable: order_id in /home/genesise/public_html/loja/catalog/controller/account/order.php on line 149
2012-08-06 21:45:30 - PHP Warning: Cannot modify header information - headers already sent by (output started at /home/genesise/public_html/loja/index.php:100) in /home/genesise/public_html/loja/system/engine/controller.php on line 28
2012-08-06 21:45:30 - PHP Warning: Cannot modify header information - headers already sent by (output started at /home/genesise/public_html/loja/index.php:100) in /home/genesise/public_html/loja/system/engine/controller.php on line 29

O que poderia ser isso?

As respectivas linhas são:
Código: Selecionar todos
Order.php linha 149
			$this->session->data['redirect'] = $this->url->link('account/order/info', 'order_id=' . $order_id, 'SSL');

e controler.php linha 28
		header('Status: ' . $status);
linha 29
		header('Location: ' . str_replace('&', '&', $url));
Alguma ideia?
Obrigado!!

Re: Problema no controller e no order

Enviado: 06 Ago 2012, 23:05
por Manoel Vidal
Olá,

Este erro era comum antes da versão 1.5.1.3, e foi totalmente corrigido desde então, então pergunto, será que você não instalou alguma extensão/modificação que pode está ocasionando este problema, ou mesmo instalou um tema que lhe trouxe este erro ? Pergunto pois testei aqui na versão 1.5.3.1 e realmente o erro não existe.

Espero ter ajudado. :D

Re: Problema no controller e no order

Enviado: 06 Ago 2012, 23:23
por isleno
Ops, parece que eu utilizo a 1.5.2.1
E agora?

Re: Problema no controller e no order

Enviado: 07 Ago 2012, 01:08
por Manoel Vidal
Você poderia atualizar para a versão 1.5.3.1 ?
https://www.opencartbrasil.com.br/tutori ... -opencart/