Results 1 to 7 of 7
  1. #1
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default 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
    Phil Rogers
    A problem shared is a problem solved.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,374
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: PHP Fatal error: Using $this when not in object context - Paypal Error

    Line 935, change this:
    Code:
    $this->zcLog(
    to this:
    Code:
    ipn_logging(
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: PHP Fatal error: Using $this when not in object context - Paypal Error

    Quote Originally Posted by DrByte View Post
    Line 935, change this:
    Code:
    $this->zcLog(
    to this:
    Code:
    ipn_logging(
    Thanks Doc, is this a known error that I am getting then? What is changing that code doing?
    Phil Rogers
    A problem shared is a problem solved.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,374
    Blog Entries
    7
    Plugin Contributions
    274

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

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default 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?
    Phil Rogers
    A problem shared is a problem solved.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,374
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: PHP Fatal error: Using $this when not in object context - Paypal Error

    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: PHP Fatal error: Using $this when not in object context - Paypal Error

    thanks for clarifying, i'll go ahead and fix that now.
    Phil Rogers
    A problem shared is a problem solved.

 

 

Similar Threads

  1. Replies: 2
    Last Post: 8 May 2016, 03:44 PM
  2. v139h PHP Fatal error: Call to a member function add_session() on a non-object
    By absoluteblock in forum General Questions
    Replies: 5
    Last Post: 27 Apr 2013, 01:23 AM
  3. Replies: 0
    Last Post: 10 Nov 2008, 02:37 PM
  4. Fatal error: Using $this when not in object context (one-page-checkout)
    By gsdcypher in forum All Other Contributions/Addons
    Replies: 14
    Last Post: 28 Feb 2008, 08:08 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR