Fix Opencart Errors Notice: Undefined variable: entry_captcha in /template/information/contact.tpl on line 134 Notice: Undefined variable: error_captcha in /template/information/contact.tpl on line 142

by
Monday , 4 January 2016 , ora 2:21 pm in General

Spread the love
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

You must modify contact.php from /catalog/controller/information
Add after
$data[‘error_enquiry’] = ”;
}


if (isset($this->error[‘captcha’])) {
$data[‘error_captcha’] = $this->error[‘captcha’];
} else {
$data[‘error_captcha’] = ”;
}

++++++ after
$this->error[‘enquiry’] = $this->language->get(‘error_enquiry’);
}

add
if (empty($this->session->data[‘captcha’]) || ($this->session->data[‘captcha’] != $this->request->post[‘captcha’])) {
$this->error[‘captcha’] = $this->language->get(‘error_captcha’);
}

—-
after $data[‘entry_enquiry’] = $this->language->get(‘entry_enquiry’);

add
$data[‘entry_captcha’] = $this->language->get(‘entry_captcha’);

[Total: 0    Average: 0/5] You must sign to vote
Fix Opencart Errors Notice: Undefined variable: entry_captcha in /template/information/contact.tpl on line 134 Notice: Undefined variable: error_captcha in /template/information/contact.tpl on line 142 on Monday, 4 January, 2016 rated 5.0 of 5

Comments

comments


Tags:
No comments currently exist for this post.
Add a commentGet a Gravatar

* Name

* Email Address

Website Address

*

You can usethese tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>
.
Bucuresti LIVE Webcam
CURS VALUTAR
Recent Posts
BUCHAREST
22°
scattered clouds
humidity: 78%
wind: 5m/s N
H 22 • L 21
28°
Mon
30°
Tue
32°
Wed
Tag Cloud