Page 1 of 1

Are these bugs?

Posted: Wed Dec 07, 2011 7:34 pm
by kristoz
In error Log I am getting these errors :

Code: Select all

Undefined index:  payment_address_id in /catalog/controller/checkout/payment.php on line 11
Undefined index:  password in /system/library/customer.php on line 124
Are these bugs or I need to ignore them?

Re: Are these bugs?

Posted: Wed Dec 07, 2011 7:50 pm
by rph

Code: Select all

Undefined index:  payment_address_id in /catalog/controller/checkout/payment.php on line 11
It's a known bug. Fixed in SVN for a couple months now.

Code: Select all

Undefined index:  password in /system/library/customer.php on line 124
Don't know where that's coming from.

Re: Are these bugs?

Posted: Wed Dec 07, 2011 7:57 pm
by kristoz
First one is coming: Clear instalation without ANY modifications or changes of settings. Customers cannot checkout if they choose "Register Account".

Second one is coming when customer is writing wrong password..

Re: Are these bugs?

Posted: Thu Dec 08, 2011 1:45 am
by straightlight
This error:

Code: Select all

Undefined index:  payment_address_id in /catalog/controller/checkout/payment.php on line 11
has already been addressed and fixed on some other topic yesterday on my behalf.

Code: Select all

Undefined index:  password in /system/library/customer.php on line 124
This error seem to be redirected from the catalog/controller/account/login.php file.

find:

Code: Select all

if (!$this->customer->login($this->request->post['email'], $this->request->post['password'])) {
replace with:

Code: Select all

if (isset($this->request->post['email']) && isset($this->request->post['password']) && !$this->customer->login($this->request->post['email'], $this->request->post['password'])) {
From catalog/controller/account/register.php file,

find:

Code: Select all

$this->customer->login($this->request->post['email'], $this->request->post['password']);
replace with:

Code: Select all

if (isset($this->request->post['email']) && isset($this->request->post['password'])) {
	$this->customer->login($this->request->post['email'], $this->request->post['password']);
}
These should correct the problem.

Re: Are these bugs?

Posted: Thu Dec 08, 2011 6:23 am
by kristoz
Straightlight second one worked perfectly , but could you give me this thread link where did you fixed this:

Code: Select all

Undefined index:  payment_address_id in /catalog/controller/checkout/payment.php on line 11
Can't seem to find it

Re: Are these bugs?

Posted: Thu Dec 08, 2011 6:28 am
by straightlight
At line 10 of that file,

replace:

Code: Select all

if ($this->customer->isLogged()) {
with:

Code: Select all

if ($this->customer->isLogged() && isset($this->request->post['payment_address_id'])) {
This should correct the problem.

Re: Are these bugs?

Posted: Thu Dec 08, 2011 6:32 am
by kristoz
Thanx alot!!! :joker: