Post by andywoodrow » Tue Jun 02, 2020 6:01 am

My system error log is filling up of these little beauties:

Code: Select all

2020-05-30 13:47:28 - PHP Notice:  Undefined index: receipt_id in /home/sites/xx/x/xxxxxxxxxx/public_html/catalog/controller/payment/pp_pro_iframe.php on line 175
Line 175 is:

Code: Select all

'receipt_id'             => $this->request->post['receipt_id'],
It's not causing a problem, the sales are going through PayPal ok, but just wanted to figure out what this is?

Does anyone have an idea please?

Thank you :-)
Last edited by straightlight on Tue Jun 02, 2020 7:07 am, edited 1 time in total.
Reason: Added code tags.

New member

Posts

Joined
Mon Nov 02, 2015 5:48 pm

Post by Cue4cheap » Tue Jun 02, 2020 10:23 am

What version of Opencart? If 2.3.0.2 I have to guess that this is not the built in pp_pro_iframe? Or a modification has been made to it?
Line 167 is 'receipt_id' => $this->request->post['receipt_id'], on version 2.3.0.2.

Also turn on debugging and see if it logs what the IPN response is from paypal.

Mike

cue4cheap not cheap quality


Expert Member

Posts

Joined
Fri Sep 20, 2013 4:45 am

Post by andywoodrow » Tue Jun 09, 2020 4:00 am

Hi Mike, we're using 2.1.0.1.

We did make some changes to this file in March when we changed the template from TemplateD to mobile-iframe:

$s_data['L_BUTTONVAR55'] = 'template=TemplateD';
$s_data['L_BUTTONVAR55'] = 'template=mobile-iframe';

But we didn't touch this line (line 175 for us):
'receipt_id' => $this->request->post['receipt_id']

I think it's always been logged as an error, just only now sorting them out.

Could it be that the IPN response is not coming back and hence we get undefined? I'll look at debugging.

Cheers,
Andy

New member

Posts

Joined
Mon Nov 02, 2015 5:48 pm
Who is online

Users browsing this forum: No registered users and 26 guests