You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uncaught TypeError: WooCommerce\PayPalCommerce\WcGateway\WCGatewayModule::WooCommerce\PayPalCommerce\WcGateway\{closure}(): Return value must be of type string, null returned in /modules/ppcp-wc-gateway/services.php:1639
#2999
Open
Francescou2 opened this issue
Jan 16, 2025
· 0 comments
Describe the Bug
Hi there, I got this error after updating to 2.9.6.
everything else seems to work correctly. what can i do?
Uncaught TypeError: WooCommerce\PayPalCommerce\WcGateway\WCGatewayModule::WooCommerce\PayPalCommerce\WcGateway{closure}(): Return value must be of type string, null returned in wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-wc-gateway/services.php:1639
Stack trace:
#0 wp-content/plugins/woocommerce-paypal-payments/lib/packages/Inpsyde/Modularity/Container/ReadOnlyContainer.php(71): WooCommerce\PayPalCommerce\WcGateway\WCGatewayModule::WooCommerce\PayPalCommerce\WcGateway{closure}()
#1 wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-wc-gateway/services.php(338): WooCommerce\PayPalCommerce\Vendor\Inpsyde\Modularity\Container\ReadOnlyContainer->get()
#2 [internal function]: WooCommerce\PayPalCommerce\WcGateway\WCGatewayModule::WooCommerce\PayPalCommerce\WcGateway{closure}()
#3 wp-content/plugins/woocommerce-paypal-payments/lib/common/Pattern/SingletonDecorator.php(62): call_user_func_array()
#4 wp-content/plugins/woocommerce-paypal-payments/lib/packages/Inpsyde/Modularity/Container/ReadOnlyContainer.php(71): WooCommerce\PayPalCommerce\Common\Pattern\SingletonDecorator->__invoke()
#5 wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-save-payment-methods/src/SavePaymentMethodsModule.php(85): WooCommerce\PayPalCommerce\Vendor\Inpsyde\Modularity\Container\ReadOnlyContainer->get()
#6 wp-includes/class-wp-hook.php(324): WooCommerce\PayPalCommerce\SavePaymentMethods\SavePaymentMethodsModule->WooCommerce\PayPalCommerce\SavePaymentMethods{closure}()
#7 wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#8 wp-includes/plugin.php(517): WP_Hook->do_action()
#9 wp-settings.php(682): do_action()
#10 wp-config.php(98): require_once('...')
#11 wp-load.php(50): require_once('...')
#12 wp-admin/admin.php(34): require_once('...')
#13 wp-admin/theme-editor.php(10): require_once('...')
#14 {main}
thrown
To Reproduce
the error occurs if I edit the theme's function.php file. it fails to complete saving because of this error.
Environment
The text was updated successfully, but these errors were encountered: