• Resolved EnvisionDesign

    (@envisiondesign)


    Version 2.1.0

    Fatal error: Uncaught TypeError: Return value of WooCommerce\PayPalCommerce\WcGateway\Settings\SettingsRenderer::render_multiselect() must be of the type string, null returned in /home2/reedsswe/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-wc-gateway/src/Settings/SettingsRenderer.php:188 Stack trace: #0 /home2/reedsswe/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-wc-gateway/src/WCGatewayModule.php(512): WooCommerce\PayPalCommerce\WcGateway\Settings\SettingsRenderer->render_multiselect(NULL, ‘swph_woo_custom…’, Array, ‘Default text’) #1 /home2/reedsswe/public_html/wp-includes/class-wp-hook.php(308): WooCommerce\PayPalCommerce\WcGateway\WCGatewayModule::WooCommerce\PayPalCommerce\WcGateway\{closure}(NULL, ‘swph_woo_custom…’, Array, ‘Default text’) #2 /home2/reedsswe/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(NULL, Array) #3 /home2/reedsswe/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(3009): apply_filters(‘woocomme in /home2/reedsswe/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-wc-gateway/src/Settings/SettingsRenderer.php on line 188

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Syde Niklas

    (@niklasinpsyde)

    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.
    Plugin Support Syde Niklas

    (@niklasinpsyde)

    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!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Fatal Error: Uncaught TypeError’ is closed to new replies.