Zen Cart Logo
Forums / PayPal Express Checkout support / PHP Fatal error: Uncaught Error: Undefined constant "MODULE_PAYMENT_PAYPALWPP_EC_RETU

PHP Fatal error: Uncaught Error: Undefined constant "MODULE_PAYMENT_PAYPALWPP_EC_RETU

Views: 2,068

Results 1 to 6 of 6
16 Jul 2024, 10:54 PM
#1
vanhorn_s avatar

vanhorn_s

Zen Follower

Join Date:
Apr 2010
Posts:
283
Plugin Contributions:
0

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.

16 Jul 2024, 11:34 PM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,690
Plugin Contributions:
56

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

Note your settings, then remove and reinstall paypalwpp.

16 Jul 2024, 11:47 PM
#3
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,772
Plugin Contributions:
9

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

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.

17 Jul 2024, 3:04 PM
#4
vanhorn_s avatar

vanhorn_s

Zen Follower

Join Date:
Apr 2010
Posts:
283
Plugin Contributions:
0

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

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.

17 Jul 2024, 3:44 PM
#5
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,690
Plugin Contributions:
56

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

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

17 Jul 2024, 4:52 PM
#6
vanhorn_s avatar

vanhorn_s

Zen Follower

Join Date:
Apr 2010
Posts:
283
Plugin Contributions:
0

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

It's there under configuration. Thank you.