Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Comments

@Francescou2
Copy link

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

  • WordPress Version 6.7.1
  • WooCommerce Version 9.5.2
  • Plugin Version 2.9.6
  • Browser [e.g. Chrome, Safari] and Version Chrome 131.0.6778.205
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant