Fórum OpenCart Brasil

Por um e-commerce livre, confiável e profissional

Por favor, poste aqui todas as dúvidas que você está tendo sobre a instalação, atualização ou configuração do OpenCart v1.x
#7041
Pessoal, estava tentando seguir o turorial do nosso amigo Arildo de como instalar banners e acabei colocando minha loja fora do ar, vejam o erro que está aparecendo, POR FAVOR ALGUÉM ME AJUDE!!!!!!!!!!

Notice: Use of undefined constant HTTP_SERVER - assumed 'HTTP_SERVER' in /home/jovanell/public_html/catalog/controller/error/not_found.php on line 13Notice: Use of undefined constant HTTP_SERVER - assumed 'HTTP_SERVER' in /home/jovanell/public_html/catalog/controller/error/not_found.php on line 32Notice: Use of undefined constant HTTP_SERVER - assumed 'HTTP_SERVER' in /home/jovanell/public_html/catalog/controller/module/cart.php on line 17Notice: Use of undefined constant HTTPS_SERVER - assumed 'HTTPS_SERVER' in /home/jovanell/public_html/catalog/controller/module/cart.php on line 18
Fatal error: Call to a member function getProducts() on a non-object in /home/jovanell/public_html/catalog/controller/module/cart.php on line 22
#7042
ola

as vezes acontece isso comigo

sabe o que eu faço

retiro tudo que joguei para o ftp

ou seja ,tente tirar todos os arquivos que vc jogou do banner /home/jovanell/public_html/catalog/controller/module/
/home/jovanell/public_html/admin/controller/module/

bom eu faço ah sim

fica a seu criterio...
att
COMERCIO
#7043
Comercio eu já fiz isso mais não rolou, eu tinha um backup antigo e já transferi os arquivos antigos via filezilla mais não voltou ao normal, o problema tá nesse arquivo cart.php, não sei como posso fazer para arrumar ele, veja como ele está:linha 17 , 18 e 22, veja:

$this->data['view'] = HTTP_SERVER . 'index.php?route=checkout/cart';
$this->data['checkout'] = HTTPS_SERVER . 'index.php?route=checkout/shipping';
foreach ($this->cart->getProducts() as $result) {

To desanimado meu amigo, não sei mais o que fazer.
#7045
então eu vi as linhas 17 18 e 22

esta igual a minha

a linha 23 sua tah ah sim >>>>>> $option_data = array();

já tentou desintalar o mudulo na administração de sua loja tbm?

att
Letycia
#7062
Olá a todos os amigos,

Bom depois de 11 horas de trabalho consegui resolver o problema, fui em pasta em pasta substituindo todos os arquivos home e heater, mais o problema mesmo estava na pasta WWW/ System / Startup.php , substitui ele e minha loja voltou ao normal, graças a Deus já estava desesperado!

Agradeço a ajuda daqueles que tentaram me ajudar de alguma maneira, muito obrigado a todos.
#7571
hey,
Could you help me ? I meet a problem same as you when I change my host.
Fatal error: Call to a member function getProducts() on a non-object in ....shop/catalog/controller/module/cart.php on line 22
I don't know this error :-s
#7590
mr.jn2p escreveu:hey,
Could you help me ? I meet a problem same as you when I change my host.
Fatal error: Call to a member function getProducts() on a non-object in ....shop/catalog/controller/module/cart.php on line 22
I don't know this error :-s
startup.php replace the file that is in the system folder of your original file OpenCart

I hope I helped: D