Page 1 of 1

Undefined variable: entry_captcha in Contact Us page

Posted: Sun Sep 20, 2015 12:22 am
by sgtgenoma
Hello boys!

Open Cart version: 2.0.3.1
Environment:
OS: windows 7
xampp: 5.6.8

I'm developoing in my localhost and I have this problem in the contact us page (link footer) Notice: Undefined variable: entry_captcha in catalog\view\theme\martin_hogar\template\information\contact.tpl on line 136

Url: de la imagen https://drive.google.com/file/d/0B5PS2j ... sp=sharing

Samebody can helpme?

Thanks!

Re: Undefined variable: entry_captcha in Contact Us page

Posted: Sun Sep 20, 2015 12:33 am
by deepvision
You have to add the following code to the controller file:
catalog/controller/information/contact.php

Code: Select all

$data['entry_captcha'] = $this->language->get('entry_captcha');
after the

Code: Select all

$data['entry_enquiry'] = $this->language->get('entry_enquiry');

Re: Undefined variable: entry_captcha in Contact Us page

Posted: Sun Sep 20, 2015 2:20 am
by sgtgenoma
Thanks deepvision!!! :D

It look like a bug? Isn't it? by the way because all what I have done was install the last version and I haven't modified any line of code.

Your code apparently resolved my first problem, I say apparently because I can't test the solution because I can see the captcha yet (https://drive.google.com/file/d/0B5PS2j ... sp=sharing) the img has the next source <img src="index.php?route=tool/captcha" alt=""> any idea?

Thanks!!

Re: Undefined variable: entry_captcha in Contact Us page

Posted: Sun Sep 20, 2015 12:21 pm
by deepvision
Yes, looks like unfinished code.