PHP Fatal error: Using $this when not in object context - Paypal Error
Using Paypal Website Payments Standard.
I have yesterday and today started getting a few of these and wondering if anyone (hopefully the zen-cart experts) might be able to identify what could be causing it.
I am not too worried as orders are still coming in, however yesterday there were 3-4 in the space of 30 mins and today there have been 3 within another short period of time.
Assumably both occassions either the same customer trying a few times or a couple of customers trying a few times.
the error log is throwing this error:
[15-Oct-2013 13:20:15 UTC] PHP Fatal error: Using $this when not in object context in /home/mysite/public_html/includes/modules/payment/paypal/paypal_functions.php on line 935
When inspecting this code it is the last line of some code that is checking whether discounts are causing a problem?
The only discounts I have are a store wide % discount using sale maker - this has been running for months with no issue.
Some accounts have gv credit, and I have some coupons that are active that potentially are being used (or attempted use)
Either way being a fatal error is this something that will be preventing orders? or being some code that is just reporting when there is some error can it be ignored?
Until the customers in question actually contact us with their issue I wont really know exactly what is causing it but hoping for a bit of background as to what could be throwing this error if you don't mind?
Many thanks in advance.
Phil
Re: PHP Fatal error: Using $this when not in object context - Paypal Error
Line 935, change this: to this:
Re: PHP Fatal error: Using $this when not in object context - Paypal Error
Quote:
Originally Posted by
DrByte
Line 935, change this:
to this:
Thanks Doc, is this a known error that I am getting then? What is changing that code doing?
Re: PHP Fatal error: Using $this when not in object context - Paypal Error
It's a bug.
That line only handles debug logging.
But the error stops execution of everything that comes after it, too.
The bug will be fixed in the next version.
Re: PHP Fatal error: Using $this when not in object context - Paypal Error
thanks, so just to double check im definatly changing to :
ipn_logging(
and not
$this->ipn_logging(
yeah?
Re: PHP Fatal error: Using $this when not in object context - Paypal Error
Re: PHP Fatal error: Using $this when not in object context - Paypal Error
thanks for clarifying, i'll go ahead and fix that now.