Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2010
    Posts
    269
    Plugin Contributions
    1

    Default PHP Fatal error: Uncaught Error: Undefined constant "MODULE_PAYMENT_PAYPALWPP_EC_RETU

    ZC 2.0.0
    PHP 8.1

    I get this php fatal error occasionally with paypalwpp, and have changed that file to the one in gihub, but still sets this error.
    Any help would be greatly appreciated.

    [16-Jul-2024 16:19:00 America/Boise] PHP Fatal error: Uncaught Error: Undefined constant "MODULE_PAYMENT_PAYPALWPP_EC_RETURN_FMF_DETAILS" in /home1/redsauto/public_html/includes/modules/payment/paypalwpp.php:427
    Stack trace:
    #0 /home1/redsauto/public_html/includes/classes/payment.php(288): paypalwpp->before_process()
    #1 /home1/redsauto/public_html/includes/modules/checkout_process.php(98): payment->before_process()
    #2 /home1/redsauto/public_html/includes/modules/pages/checkout_process/header_php.php(13): require('/home1/redsauto...')
    #3 /home1/redsauto/public_html/index.php(35): require('/home1/redsauto...')
    #4 {main}
    thrown in /home1/redsauto/public_html/includes/modules/payment/paypalwpp.php on line 427

    [16-Jul-2024 16:19:00 America/Boise] Request URI: /index.php?main_page=checkout_process, IP address: 107.143.135.6
    --> PHP Fatal error: Uncaught Error: Undefined constant "MODULE_PAYMENT_PAYPALWPP_EC_RETURN_FMF_DETAILS" in /home1/redsauto/public_html/includes/modules/payment/paypalwpp.php:427
    Stack trace:
    #0 /home1/redsauto/public_html/includes/classes/payment.php(288): paypalwpp->before_process()
    #1 /home1/redsauto/public_html/includes/modules/checkout_process.php(98): payment->before_process()
    #2 /home1/redsauto/public_html/includes/modules/pages/checkout_process/header_php.php(13): require('/home1/redsauto...')
    #3 /home1/redsauto/public_html/index.php(35): require('/home1/redsauto...')
    #4 {main}
    thrown in /home1/redsauto/public_html/includes/modules/payment/paypalwpp.php on line 427.

    [16-Jul-2024 16:19:00 America/Boise] Request URI: /index.php?main_page=checkout_process, IP address: 107.143.135.6
    --> PHP Fatal error: Uncaught Error: Undefined constant "MODULE_PAYMENT_PAYPALWPP_EC_RETURN_FMF_DETAILS" in /home1/redsauto/public_html/includes/modules/payment/paypalwpp.php:427
    Stack trace:
    #0 /home1/redsauto/public_html/includes/classes/payment.php(288): paypalwpp->before_process()
    #1 /home1/redsauto/public_html/includes/modules/checkout_process.php(98): payment->before_process()
    #2 /home1/redsauto/public_html/includes/modules/pages/checkout_process/header_php.php(13): require('/home1/redsauto...')
    #3 /home1/redsauto/public_html/index.php(35): require('/home1/redsauto...')
    #4 {main}
    thrown in /home1/redsauto/public_html/includes/modules/payment/paypalwpp.php on line 427.

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,278
    Plugin Contributions
    125

    Default Re: PHP Fatal error: Uncaught Error: Undefined constant "MODULE_PAYMENT_PAYPALWPP_EC_

    Note your settings, then remove and reinstall paypalwpp.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #3
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,443
    Plugin Contributions
    11

    Default Re: PHP Fatal error: Uncaught Error: Undefined constant "MODULE_PAYMENT_PAYPALWPP_EC_

    You are missing at least one configuration listing from your database in the configuration table with the configuration group of 6.

    This was added to the database in '22 so you may have missed a step in a recent upgrade.

  4. #4
    Join Date
    Apr 2010
    Posts
    269
    Plugin Contributions
    1

    Default Re: PHP Fatal error: Uncaught Error: Undefined constant "MODULE_PAYMENT_PAYPALWPP_EC_

    I have done the sql updates every time, but maybe something didn't process properly, so I ran the section of sql from 1.5.8 that had the paypal data, then removed, and reinstalled both paypal modules. Now I just need to test it, or wait until a customer tries to place an order using instant checkout.

  5. #5
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,278
    Plugin Contributions
    125

    Default Re: PHP Fatal error: Uncaught Error: Undefined constant "MODULE_PAYMENT_PAYPALWPP_EC_

    You can verify the presence of this constant in your database using phpMyAdmin:

    SELECT * FROM configuration WHERE configuration_key = 'MODULE_PAYMENT_PAYPALWPP_EC_RETURN_FMF_DETAILS';

    (add the prefix to "configuration" if your site uses a prefix).
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  6. #6
    Join Date
    Apr 2010
    Posts
    269
    Plugin Contributions
    1

    Default Re: PHP Fatal error: Uncaught Error: Undefined constant "MODULE_PAYMENT_PAYPALWPP_EC_

    It's there under configuration. Thank you.

 

 

Similar Threads

  1. v158 PHP Fatal error: Undefined constant MODULE_PAYMENT_PAYPALDP_MERCHANT_COUNTRY
    By djdavedawson in forum PayPal Website Payments Pro support
    Replies: 11
    Last Post: 22 Apr 2024, 02:30 AM
  2. Replies: 2
    Last Post: 24 Oct 2022, 10:00 PM
  3. v157 PHP Fatal error: Uncaught Error: Call to undefined function ctype_digit()
    By katrobb in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 30 Jun 2021, 02:23 AM
  4. v155 PHP Fatal error: Uncaught Error: Call to undefined function mysqli_close()
    By Brent in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 2 Apr 2018, 04:03 PM
  5. Replies: 4
    Last Post: 10 Jul 2012, 06:10 PM

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