Hi @envisiondesign
The error you’re facing usually stems from a third-party plugin or custom code misusing the woocommerce_form_field filter on the admin pages. This is a common scenario with plugins that modify WooCommerce checkout fields.
The term swph_woo_custom... from your stack trace may be a truncated part of the offending plugin’s identifier or name.
To address this, please scan through your plugins and look for any that seem to alter WooCommerce fields – this is likely where the problem lies. Deactivating the suspected plugin might eliminate the error, but please back up your site before making any changes.
Once identified, reaching out to the developer of the conflicting plugin or code for a fix would be a good next step. They should ensure their code only affects relevant frontend pages and doesn’t run on the settings pages from other plugins.
Kind regards,
Niklas
Hi!
I experiment the same kind of fatal error. Paypal options appear for users but no button to proceed for the checkout. The Paypal button on the cart page works well.
https://www.editionsinnovalivres.com/checkout/
Fatal error: Uncaught TypeError: Argument 1 passed to WooCommerce\PayPalCommerce\ApiClient\Entity\Address::__construct() must be of the type string, bool given, called in /home/ccrmxg56/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Factory/AddressFactory.php on line 41 and defined in /home/ccrmxg56/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Entity/Address.php:69 Stack trace: #0 /home/ccrmxg56/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Factory/AddressFactory.php(41): WooCommerce\PayPalCommerce\ApiClient\Entity\Address->__construct(false, ”, ”, ”, ”, ”) #1 /home/ccrmxg56/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Factory/PayerFactory.php(111): WooCommerce\PayPalCommerce\ApiClient\Factory\AddressFactory->from_wc_customer(Object(WC_Customer), ‘billing’) #2 /home/ccrmxg56/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/sr in /home/ccrmxg56/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Entity/Address.php on line 69
Can you help me with this please ?
-
This reply was modified 2 years, 8 months ago by
innovalivres.
-
This reply was modified 2 years, 8 months ago by
innovalivres.
We have not heard back from you in a while, so I’m marking this thread as resolved.
Hopefully, you were able to proceed as advised above.
If you have any further questions, please feel free to reopen this topic or create a new one.
@innovalivres the error you mention is unrelated to what is reported in this thread. Please create a new thread for yourself or contact the support team directly. Thanks!