Page 1 of 1
Undefined index
Posted: Fri Jun 01, 2012 11:54 am
by bwingwing
Hi all,
GOT THIS ERROR LOG WHEN WORK ON INFORMATION PAGE.
PHP Notice: Undefined index: bottoms in /volume1/web/admin/controller/catalog/information.php on line 380
I still can save, don't know what was the problem.
using v1.5.3.1
Thank you for your answer.
Re: Undefined index
Posted: Fri Jun 01, 2012 1:45 pm
by pprmkr
On line 379 in admin/controller/catalog/information.php:
Code: Select all
if (isset($this->request->post['bottom'])) {
$this->data['bottom'] = $this->request->post['bottoms'];
} elseif (!empty($information_info)) {
$this->data['bottom'] = $information_info['bottom'];
} else {
$this->data['bottom'] = 0;
}
The post-values are checked here, and as you can see there is a typo.
Change on line 380
Code: Select all
$this->data['bottom'] = $this->request->post['bottoms'];
to:
Code: Select all
$this->data['bottom'] = $this->request->post['bottom'];
Re: Undefined index
Posted: Fri Jun 01, 2012 2:53 pm
by bwingwing
Thanks, pprmkr!!
pprmkr wrote:On line 379 in admin/controller/catalog/information.php:
Code: Select all
if (isset($this->request->post['bottom'])) {
$this->data['bottom'] = $this->request->post['bottoms'];
} elseif (!empty($information_info)) {
$this->data['bottom'] = $information_info['bottom'];
} else {
$this->data['bottom'] = 0;
}
The post-values are checked here, and as you can see there is a typo.
Change on line 380
Code: Select all
$this->data['bottom'] = $this->request->post['bottoms'];
to:
Code: Select all
$this->data['bottom'] = $this->request->post['bottom'];
Re: Undefined index
Posted: Mon Jul 02, 2012 11:51 am
by jrotem
Just chiming in here, I tried this correction but I am still getting "Undefined index: bottom in......admin/controller/catalog/information.php on line 382" errors. Anything else I can do? I cannot save "Information."
Thank you.