Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1

    Default PHP Fatal error: Class 'dps_pxpay' not found

    Hello,

    Would anyone have an idea on why I am getting the following debug logs? The PxPay module works well, but my debug folder is filling up with the below error. It's appears we get a couple of these errors just prior to an actual transaction going through.

    Code:
    [15-Feb-2017 09:38:32 Pacific/Auckland] PHP Fatal error:  Class 'dps_pxpay' not found in /home/***/public_html/shop/dps_pxpay_result_handler.php on line 44

  2. #2
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: PHP Fatal error: Class 'dps_pxpay' not found

    Don't know if the plugin is downloadable or not, but if you post the code from the beginning of that file in the error message up to or a few lines after line 44, then it may be possible to identify the coding/installation error.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Mar 2009
    Location
    New Zealand
    Posts
    54
    Plugin Contributions
    0

    Default Re: PHP Fatal error: Class 'dps_pxpay' not found

    Hi,

    Did you ever manage to get this sorted out? We are experiencing the same issue.

    Thanks,

    Mike

  4. #4
    Join Date
    Mar 2009
    Location
    New Zealand
    Posts
    54
    Plugin Contributions
    0

    Default once payment is made an error occurs and no order is created

    Hi,

    We have experienced an issue with people combining carts after logging out and back in; once payment is made an error occurs and no order is created - however the customer is charged. Has anyone else experienced this issue and been able to solve it?

    Thanks,

    Mike

  5. #5
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: once payment is made an error occurs and no order is created

    Quote Originally Posted by mikecnz View Post
    Hi,

    We have experienced an issue with people combining carts after logging out and back in; once payment is made an error occurs and no order is created - however the customer is charged. Has anyone else experienced this issue and been able to solve it?

    Thanks,

    Mike
    Everyone experiences this issue when their plugins experience a fatal PHP error, since a fatal error stops PHP from executing past the point of the error .... thus, if it happens during processing a payment, the order won't get saved to the database even if the payment is collected.

    The fix is in fixing the problems with the payment gateway. This usually starts with inspecting the exact errors that are occurring: http://www.zen-cart.com/content.php?124-blank-page
    .

    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.

  6. #6
    Join Date
    Mar 2009
    Location
    New Zealand
    Posts
    54
    Plugin Contributions
    0

    Default Re: PHP Fatal error: Class 'dps_pxpay' not found

    Hi,

    The problem only occurs if the customer logs out and then logs in again and has items remaining in their cart from a previous session.
    When the customer checks out they are able to make payment; however instead of being returned to our website after payment the customer is
    presented with an HTTP 500 error.

    The only error in the logs is the PHP Fatal error: Class 'dps_pxpay' not found in.... the odd thing is that this also appears when a successful transaction occurs.

    Thanks,

    Mike.

  7. #7
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: PHP Fatal error: Class 'dps_pxpay' not found

    Been trying to follow the bouncing ball of this conversation/issue, not sure of sequence of events seeing as there have been post modifications. I also realize that two posts ago (in this thread) a suggestion was made that offers "global" solution advise. With the tidbit of information that has thus far been provided, would suggest as part of that code and myDebug log review to follow the existing "thread" of looking for where dps_dxpay is used/referenced. Also to investigate where the original code was provided (forum thread? Download? Etc...) and at least first validate that all files are included, and then to figure out if it is compatible with the existing system.

    Otherwise, hopefully the discussion of the issue can stay in a single thread. :)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  8. #8
    Join Date
    Mar 2009
    Location
    New Zealand
    Posts
    54
    Plugin Contributions
    0

    Default Re: PHP Fatal error: Class 'dps_pxpay' not found

    Thanks mc12345678,

    The plugin was downloaded from here: https://www.zen-cart.com/downloads.php?do=file&id=658

    As noted the sole error message in the log is:
    PHP Fatal error: Class 'dps_pxpay' not found in ****/dps_pxpay_result_handler.php on line 44
    This error shows in the log regardless of whether the transaction is successful (defined as order and payment received) or not (payment received but no order received).
    There is no additional error in instances where the payment is received but not no order comes through.
    If it helps, it appears that 6 instances of this error occur with each transaction.

    Below is the code up to line 44 of dps_pxpay_result_handler.php:

    Code:
    ?>
    <?php
    
    
    /*
     * Check for DPS PxPay type request parameter
     */
    if (isset($_GET['result'])) {
        // zen-cart dies silently without this line!
        define('GZIP_LEVEL', false);
    
        // assume this is an DPS PxPay callback or redirect
        require('includes/application_top.php');
        // set language things
        $language_page_directory = DIR_WS_LANGUAGES . $_SESSION['language'] . '/';
        require(DIR_WS_CLASSES . 'payment.php');
        // this will load everything we need...
        $payment_modules = new payment($_SESSION['payment']);
    
        // create own instance
        $dpspxpay = new dps_pxpay();
    My apologies; I know only a little HTML/CSS and very little about PHP. When I saw the error and googled it, I found this thread and hope that nsanford
    may have resolved the issue.

    Regards,

    Mike.

  9. #9
    Join Date
    Sep 2006
    Posts
    12
    Plugin Contributions
    0

    Default Re: PHP Fatal error: Class 'dps_pxpay' not found

    Hi.
    Just installed the DPS PXPAY gateway, same error messages appear in the log and had our first missing order.
    Did you find a solution ?

    Ross

  10. #10
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: PHP Fatal error: Class 'dps_pxpay' not found

    I've never used this module, but it's possible that your cart is configured in such a way that the module's dependence on callbacks is failing.

    You could explore making the following change:

    /includes/modules/payment/dps_pxpay.php

    Code:
            // support for fail proof result notification
            $this->_dpsResultRedirect = ('true' == ENABLE_SSL ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_HTTPS_CATALOG . 'dps_pxpay_result_handler.php';
            // without
            #$this->_dpsResultRedirect = zen_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL', false);
    change to:
    Code:
            // support for fail proof result notification
            $this->_dpsResultRedirect = ('true' == ENABLE_SSL ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_HTTPS_CATALOG . 'dps_pxpay_result_handler.php';
            // without
            $this->_dpsResultRedirect = zen_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL', true);
    Note the removal of # and the change to true
    .

    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.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v154 PHP Fatal error: Class 'QueryCache' not found
    By smarmyclothes in forum Upgrading to 1.5.x
    Replies: 5
    Last Post: 20 Sep 2015, 05:21 PM
  2. Help - PHP Fatal error: Class 'order' not found
    By Sevenhelmets in forum Managing Customers and Orders
    Replies: 3
    Last Post: 15 Jan 2011, 04:27 AM
  3. PHP Fatal error: Class 'queryFactoryResult' not found
    By timdwyer42 in forum General Questions
    Replies: 5
    Last Post: 5 Nov 2009, 11:48 PM
  4. PHP Fatal error: Class 'order' not found
    By 7and2suited in forum General Questions
    Replies: 3
    Last Post: 28 Apr 2009, 06:54 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