PHP errors when viewing http://example.com/lm_paypal/ipn

- Strict warning: Creating default object from empty value in lm_paypal_ipn_in() (line 58 of /var/www/html/drupal-7.12/sites/all/modules/lm_paypal/lm_paypal.ipn.inc).
- Notice: Undefined index: txn_type in lm_paypal_ipn_in() (line 59 of /var/www/html/drupal-7.12/sites/all/modules/lm_paypal/lm_paypal.ipn.inc).

Comments

L-four’s picture

Looks like there needs to be a check for empty requests and do some kind of redirect but your not supposed to actually navigate to that URL.

waverate’s picture

I agree. However it would be nice not to have PHP errors.

Patch at #5 #1131076: PDOException: SQLSTATE[HY000]: General error: 1366 removes these errors.

waverate’s picture

Status: Active » Needs review
L-four’s picture

Status: Needs review » Fixed

Committed to 7.x-1.x-dev

waverate’s picture

Status: Fixed » Active

Hmmm. Error is back.

Using Drupal 7.14 and 7.x-1.x-dev (2012-May-10).

Strict warning: Creating default object from empty value in lm_paypal_ipn_in() (line 63 of /var/www/html/drupal-7.14/sites/all/modules/lm_paypal/lm_paypal.ipn.inc).

dblog shows:

LM_PayPal	05/10/2012 - 11:12	IPN incoming NOT VERIFIED web_accept got 	Anonymous (not verified)	view
php	05/10/2012 - 11:12	Strict warning: Creating default object from empty...	Anonymous (not verified)	
LM_PayPal	05/10/2012 - 11:12	lm_paypal_ipn_in $last = 17	Anonymous (not verified)	
LM_PayPal	05/10/2012 - 11:12	lm_paypal_ipn_in called	Anonymous (not verified)