Error Log query!!
Posted: Sun Mar 11, 2012 2:52 am
Hi people,
Whilest in the backend of my site I clicked on the error log by mistake and saw that there is some error messages can't see what is causing the errors
PHP Notice: Undefined index: name in /home/********/public_html/catalog/controller/product/product.php on line 484
2012-03-06 18:02:52 - PHP Notice: Undefined index: text in /home/******/public_html/catalog/controller/product/product.php on line 488
2012-03-06 18:02:52 - PHP Notice: Undefined index: rating in /home/*******/public_html/catalog/controller/product/product.php on line 492
2012-03-06 18:02:52 - PHP Notice: Undefined index: captcha in /home/*******/public_html/catalog/controller/product/product.php on line 496
The lines in question are as follows:
if ((utf8_strlen($this->request->post['name']) < 3) || (utf8_strlen($this->request->post['name']) > 25)) {
$json['error'] = $this->language->get('error_name');
}
if ((utf8_strlen($this->request->post['text']) < 25) || (utf8_strlen($this->request->post['text']) > 1000)) {
$json['error'] = $this->language->get('error_text');
}
if (!$this->request->post['rating']) {
$json['error'] = $this->language->get('error_rating');
}
if (!isset($this->session->data['captcha']) || ($this->session->data['captcha'] != $this->request->post['captcha'])) {
$json['error'] = $this->language->get('error_captcha');
Any one got a solution or explanation!!!
regards
eddie
Whilest in the backend of my site I clicked on the error log by mistake and saw that there is some error messages can't see what is causing the errors
PHP Notice: Undefined index: name in /home/********/public_html/catalog/controller/product/product.php on line 484
2012-03-06 18:02:52 - PHP Notice: Undefined index: text in /home/******/public_html/catalog/controller/product/product.php on line 488
2012-03-06 18:02:52 - PHP Notice: Undefined index: rating in /home/*******/public_html/catalog/controller/product/product.php on line 492
2012-03-06 18:02:52 - PHP Notice: Undefined index: captcha in /home/*******/public_html/catalog/controller/product/product.php on line 496
The lines in question are as follows:
if ((utf8_strlen($this->request->post['name']) < 3) || (utf8_strlen($this->request->post['name']) > 25)) {
$json['error'] = $this->language->get('error_name');
}
if ((utf8_strlen($this->request->post['text']) < 25) || (utf8_strlen($this->request->post['text']) > 1000)) {
$json['error'] = $this->language->get('error_text');
}
if (!$this->request->post['rating']) {
$json['error'] = $this->language->get('error_rating');
}
if (!isset($this->session->data['captcha']) || ($this->session->data['captcha'] != $this->request->post['captcha'])) {
$json['error'] = $this->language->get('error_captcha');
Any one got a solution or explanation!!!
regards
eddie