• Resolved webmatthieu

    (@webmatthieu)


    on my page https://lepetitcordon.com/wholesale-registration-page/
    there was a fatal error with the plugin woocommerce paypal payments

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

    I use the plugin Wholesale Prices Premium Plugin for WooCommerce
    I have to disable your plugin

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @webmatthieu

    Thank you for reaching out to us, we are here to help.

    Normally when merchants encounter such an error we would advise them to perform conflict testing, but it seems that you have already done this and found out that the error is caused by a conflict with a plugin call Wholesale Prices Premium. Is that correct?

    If that is so, please let me know how you want to proceed here? If we were able to get the exact name and version of the plugin, we could see if we can reproduce this. However, in most cases, it is not us that can resolve such an issue, but the 3rd party plugin provider.
    Have you tried to replace this plugin with another Wholesale plugin to see if that would work? Have you reached out to the developer? If this is a free plugin or sold by WooCommerce we can take a look at the plugin, but we would need to know what plugin this is.

    Pending your response.

    Kind regards,
    Joost

    I’m having the exact same issue also FYI.

    I have a separate ticket in place for this.

    Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @kristinubute and @webmatthieu

    it would seem you are both encountering the same issue, so I will copy my colleagues response from the private engagement here, hoping this will help @webmatthieu resolve the issue or at least get clarity on the issue at hand:

    The error you’re experiencing is related to a conflict between the WooCommerce PayPal Payments plugin (version 2.4.1) and the WooCommerce Wholesale Lead Capture plugin by Rymera Web Co (version 1.11). The issue arises because the WooCommerce Wholesale Lead Capture plugin is using the woocommerce_form_field filter on pages that are not related to its functionality, including the PayPal Payments settings pages. This is evident from the wwlc_state reference in the stack trace of the error.

    /home/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-wc-gateway/src/WCGatewayModule.php(549): WooCommerce\PayPalCommerce\WcGateway\Settings\SettingsRenderer->render_multiselect(NULL, ‘wwlc_state’, Array, ”)

    To resolve this issue, the WooCommerce Wholesale Lead Capture plugin needs to limit the usage of the woocommerce_form_field filter to only its frontend pages. This adjustment will prevent the filter from interfering with the operation of other plugins, such as the WooCommerce PayPal Payments plugin.

    Unfortunately, from the WooCommerce PayPal Payments side, there’s not much that can be done immediately to address this conflict, other than a potential future refactor of the settings fields to not use woocommerce_form_fields.

    For now, the most effective solution would be to contact the support team for the WooCommerce Wholesale Lead Capture plugin and inform them of this conflict, requesting that they update their plugin to limit the use of the woocommerce_form_field filter to their own pages. This approach should resolve the fatal error and prevent future issues.

    If this still leaves you with questions or if you don’t agree with this response, please let us know.

    Kind regards,
    Joost

    Plugin Support Syde Niklas

    (@niklasinpsyde)

    This error was caused by a third-party plugin using a WooCommerce filter incorrectly.

    But since we haven’t heard back from you in a while, I’ll mark this thread as resolved.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘fatal error on my website’ is closed to new replies.