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.
Quote:
[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.
Re: PHP Fatal error: Uncaught Error: Undefined constant "MODULE_PAYMENT_PAYPALWPP_EC_
Note your settings, then remove and reinstall paypalwpp.
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.
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.
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).
Re: PHP Fatal error: Uncaught Error: Undefined constant "MODULE_PAYMENT_PAYPALWPP_EC_
It's there under configuration. Thank you.