Post by eddie_d » 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

Our online shop using OpenCart http://www.enscomputers.co.uk


New member

Posts

Joined
Fri Feb 03, 2012 4:28 am
Location - Somerset UK

Post by cwswebdesign » Sun Mar 11, 2012 5:58 am

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).

This account is inactive. Look for us under the name 'EvolveWebHosting' and contact us under that username.

Thanks!


User avatar
Active Member

Posts

Joined
Sun Dec 11, 2011 12:26 am
Location - USA

Post by Raysky » Sun Mar 11, 2012 7:52 am

Looks like the post variables are not present. Check the calling form

Newbie

Posts

Joined
Sun Mar 11, 2012 7:43 am

Post by eddie_d » Sun Mar 11, 2012 10:04 am

Raysky wrote:Looks like the post variables are not present. Check the calling form
?????????????????????????????????????

Our online shop using OpenCart http://www.enscomputers.co.uk


New member

Posts

Joined
Fri Feb 03, 2012 4:28 am
Location - Somerset UK

Post by eddie_d » Sun Mar 11, 2012 10:06 am

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

Our online shop using OpenCart http://www.enscomputers.co.uk


New member

Posts

Joined
Fri Feb 03, 2012 4:28 am
Location - Somerset UK
Who is online

Users browsing this forum: Bing [Bot] and 89 guests