Post by kristoz » Wed Dec 07, 2011 7:34 pm

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?

New member

Posts

Joined
Sun Sep 25, 2011 9:53 pm

Post by rph » Wed Dec 07, 2011 7:50 pm

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.

-Ryan


rph
Expert Member

Posts

Joined
Fri Jan 08, 2010 5:05 am
Location - Lincoln, Nebraska

Post by kristoz » Wed Dec 07, 2011 7:57 pm

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

New member

Posts

Joined
Sun Sep 25, 2011 9:53 pm

Post by straightlight » Thu Dec 08, 2011 1:45 am

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.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by kristoz » Thu Dec 08, 2011 6:23 am

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

New member

Posts

Joined
Sun Sep 25, 2011 9:53 pm

Post by straightlight » Thu Dec 08, 2011 6:28 am

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.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by kristoz » Thu Dec 08, 2011 6:32 am

Thanx alot!!! :joker:

New member

Posts

Joined
Sun Sep 25, 2011 9:53 pm
Who is online

Users browsing this forum: No registered users and 15 guests