Support

Home Forums Event Espresso Premium WooCommerce PayPal Payments

WooCommerce PayPal Payments

Posted: August 26, 2023 at 8:01 pm

Viewing 1 reply thread


cmeseminars

August 26, 2023 at 8:01 pm

For me, the EE Payments page throws an error when the plugin WooCommerce PayPal Payments is active at the same time as the plugin Event Espresso – PayPal Express Checkout with Smart Buttons Version.

A RuntimeException was thrown! code: EE_Admin_Page – _route_admin_request – 1156
Page route “_payment_methods_list” with the supplied arguments () threw the following exception: WooCommerce\PayPalCommerce\Subscription\SubscriptionModule::WooCommerce\PayPalCommerce\Subscription\{closure}(): Argument #2 ($post) must be of type WP_Post, null given, called in cmeseminars/app/public/wp-includes/class-wp-hook.php on line 310

/cmeseminars/app/public/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php ( line no: 1156 )

backtrace to:
do_action( ‘event-espresso_page_espresso_payment_settings’ )
/Users/robk/Local Sites/cmeseminars/app/public/wp-admin/admin.php
Line 259

Plugins:
Event Espresso
Event Espresso – PayPal Express Checkout with Smart Buttons Version 1.0.8.p
https://eventespresso.com/wiki/paypal-express-checkout-smart-payment-buttons-payment-gateway/

WooCommerce PayPal Payments Version 2.2.1
https://woocommerce.com/products/woocommerce-paypal-payments/
https://woocommerce.com/document/woocommerce-paypal-payments/

Fatal error: Uncaught TypeError: WooCommerce\PayPalCommerce\Subscription\SubscriptionModule::WooCommerce\PayPalCommerce\Subscription\{closure}(): Argument #2 ($post) must be of type WP_Post, null given, called in /Users/robk/Local Sites/cmeseminars/app/public/wp-includes/class-wp-hook.php on line 310 and defined in /Users/robk/Local Sites/cmeseminars/app/public/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-subscription/src/SubscriptionModule.php:230 Stack trace: #0 /Users/robk/Local Sites/cmeseminars/app/public/wp-includes/class-wp-hook.php(310): WooCommerce\PayPalCommerce\Subscription\SubscriptionModule->WooCommerce\PayPalCommerce\Subscription\{closure}(‘page’, NULL) #1 /Users/robk/Local Sites/cmeseminars/app/public/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array) #2 /Users/robk/Local Sites/cmeseminars/app/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /Users/robk/Local Sites/cmeseminars/app/public/wp-content/plugins/event-espresso-core-reg/core/admin/templates/admin_details_wrapper.template.php(16): do_action(‘add_meta_boxes’, ‘page’, NULL) #4 /Users/robk/Local Sites/cmeseminars/app/public/wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_Template.helper.php(403): include(‘/Users/robk/Loc…’) #5 /Users/robk/Local Sites/cmeseminars/app/public/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(2833): EEH_Template::display_template(‘/Users/robk/Loc…’, Array, true) #6 /Users/robk/Local Sites/cmeseminars/app/public/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(2746): EE_Admin_Page->_display_admin_page(true) #7 /Users/robk/Local Sites/cmeseminars/app/public/wp-content/plugins/event-espresso-core-reg/admin_pages/payments/Payments_Admin_Page.core.php(423): EE_Admin_Page->display_admin_page_with_sidebar() #8 /Users/robk/Local Sites/cmeseminars/app/public/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(1149): Payments_Admin_Page->_payment_methods_list() #9 /Users/robk/Local Sites/cmeseminars/app/public/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(878): EE_Admin_Page->_route_admin_request() #10 /Users/robk/Local Sites/cmeseminars/app/public/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_Init.core.php(258): EE_Admin_Page->route_admin_request() #11 /Users/robk/Local Sites/cmeseminars/app/public/wp-includes/class-wp-hook.php(310): EE_Admin_Page_Init->initialize_admin_page(”) #12 /Users/robk/Local Sites/cmeseminars/app/public/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(”, Array) #13 /Users/robk/Local Sites/cmeseminars/app/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #14 /Users/robk/Local Sites/cmeseminars/app/public/wp-admin/admin.php(259): do_action(‘event-espresso_…’) #15 {main} Next RuntimeException: Page route "_payment_methods_list" with the supplied arguments () threw the following exception: WooCommerce\PayPalCommerce\Subscription\SubscriptionModule::WooCommerce\PayPalCommerce\Subscription\{closure}(): Argument #2 ($post) must be of type WP_Post, null given, called in /Users/robk/Local Sites/cmeseminars/app/public/wp-includes/class-wp-hook.php on line 310 in /Users/robk/Local Sites/cmeseminars/app/public/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php:1156 Stack trace: #0 /Users/robk/Local Sites/cmeseminars/app/public/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(878): EE_Admin_Page->_route_admin_request() #1 /Users/robk/Local Sites/cmeseminars/app/public/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_Init.core.php(258): EE_Admin_Page->route_admin_request() #2 /Users/robk/Local Sites/cmeseminars/app/public/wp-includes/class-wp-hook.php(310): EE_Admin_Page_Init->initialize_admin_page(”) #3 /Users/robk/Local Sites/cmeseminars/app/public/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(”, Array) #4 /Users/robk/Local Sites/cmeseminars/app/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #5 /Users/robk/Local Sites/cmeseminars/app/public/wp-admin/admin.php(259): do_action(‘event-espresso_…’) #6 {main} thrown in /Users/robk/Local Sites/cmeseminars/app/public/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php on line 1156


Tony

  • Support Staff

August 28, 2023 at 4:03 am

Hi there,

Are you sure this only relates to when the Smart Button’s add-on is active?

We had another report of this and I posted a fix with som details here:

https://eventespresso.com/topic/php-critical-error-in-correlation-with-woocommerce-paypal-featherlight-plugins/#post-347134

However, that issue wasn’t related to the smart buttons add-on, its an issue within core. So you do you NOT get this issue when the PayPal Smart buttons add-on is deactivated and you edit a registration/transaction?

Viewing 1 reply thread

The support post ‘WooCommerce PayPal Payments’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso