Page 1 of 1

Error Log query!!

Posted: Sun Mar 11, 2012 2:52 am
by eddie_d
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

Re: Error Log query!!

Posted: Sun Mar 11, 2012 5:58 am
by cwswebdesign
Have you modified any of those files to add any extensions? It's always a good idea to get back to square one and have the original files loaded, making sure they work properly. Then you can trace your steps forward and back to find out exactly what's causing the issue(s).

Re: Error Log query!!

Posted: Sun Mar 11, 2012 7:52 am
by Raysky
Looks like the post variables are not present. Check the calling form

Re: Error Log query!!

Posted: Sun Mar 11, 2012 10:04 am
by eddie_d
Raysky wrote:Looks like the post variables are not present. Check the calling form
?????????????????????????????????????

Re: Error Log query!!

Posted: Sun Mar 11, 2012 10:06 am
by eddie_d
cwswebdesign wrote:Have you modified any of those files to add any extensions? It's always a good idea to get back to square one and have the original files loaded, making sure they work properly. Then you can trace your steps forward and back to find out exactly what's causing the issue(s).
no I have not changed or added any mods since installing the cart last month, it has appeared out of nowhere.

Regards

Eddie