Post by meoit » Mon Feb 26, 2018 8:21 am

I am refresh installing OC 3.0.3.0b on XAMPP. Test myself order by buying iPhone, then problem occur:

Notice: Undefined variable: data in C:\xampp\htdocs\OC3030b\catalog\controller\extension\payment\cod.php on line 4

Image

How to fix it ?

Thanks.

O0 O0 O0


User avatar
New member

Posts

Joined
Sun Nov 25, 2012 10:08 am

Post by straightlight » Mon Feb 26, 2018 8:24 am

How to fix it ?
By first posting what's on line 4 of the cod.php file

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.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member

Posts

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

Post by meoit » Mon Feb 26, 2018 8:31 am

public function index() {
return $this->load->view('extension/payment/cod', $data); // this is line 4 on cod.php
}

O0 O0 O0


User avatar
New member

Posts

Joined
Sun Nov 25, 2012 10:08 am

Post by straightlight » Mon Feb 26, 2018 8:42 am

Bug confirmed.

Replace with:

Code: Select all

return $this->load->view('extension/payment/cod');
This should resolved the problem. Thanks for reporting the issue.

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.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member

Posts

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

Post by meoit » Mon Feb 26, 2018 8:52 am

Thanks. It is working fine. :)

O0 O0 O0


User avatar
New member

Posts

Joined
Sun Nov 25, 2012 10:08 am

Post by straightlight » Mon Feb 26, 2018 8:55 am

Thanks for the feedback. The issue has now been reported on Github.

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.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member

Posts

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

Users browsing this forum: No registered users and 5 guests