• Resolved luciegbt

    (@luciegbt)


    Hi,

    I’m getting this error since yesterday on my website :

    Fatal error: Uncaught ArgumentCountError: Too few arguments to function WC_Payments_Customer_Service::__construct(), 3 passed in /home/customer/www/eye-motionalprocessesmeditations.com/public_html/wp-content/plugins/cartflows-pro/modules/gateways/class-cartflows-pro-gateway-woocommerce-payments.php on line 97 and exactly 4 expected in /home/customer/www/eye-motionalprocessesmeditations.com/public_html/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-customer-service.php:82 Stack trace: #0 /home/customer/www/eye-motionalprocessesmeditations.com/public_html/wp-content/plugins/cartflows-pro/modules/gateways/class-cartflows-pro-gateway-woocommerce-payments.php(97): WC_Payments_Customer_Service->__construct(Object(WC_Payments_API_Client), Object(WC_Payments_Account), Object(WCPay\Database_Cache)) #1 /home/customer/www/eye-motionalprocessesmeditations.com/public_html/wp-content/plugins/cartflows-pro/modules/gateways/class-cartflows-pro-gateway-woocommerce-payments.php(76): Cartflows_Pro_Gateway_Woocommerce_Pay in /home/customer/www/eye-motionalprocessesmeditations.com/public_html/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-customer-service.php on line 82

    Could you please help me identify what it is and help me?

    Thanks very much

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @luciegbt

    The error message you’re seeing suggests that the WC_Payments_Customer_Service::__construct() function in your WooPayments plugin is expecting 4 arguments, but it’s only getting 3. This is typically due to a conflict between plugins or a problem with the code of one of your plugins.

    In this case, it looks like there might be a conflict between the Cartflows Pro plugin and the WooPayments plugin. Here are a few steps you can take to troubleshoot this issue:

    1. Ensure all your plugins, themes, and WordPress itself are up to date. Outdated versions can often cause conflicts.
    2. Temporarily deactivate all your plugins except WooCommerce and WooPayments to see if the problem persists. If it doesn’t, reactivate your plugins one by one to identify which one is causing the conflict.
    3. If the problem persists even with all other plugins deactivated, try switching temporarily to a default WordPress theme like Storefront. If the problem is resolved, the issue may be with your theme.

    Additionally, I recommend contacting the Cartflows Pro support team with the error message for further assistance.

    Hope this helps you in resolving the issue. Please let us know if there’s anything else we can assist you with.

    Thread Starter luciegbt

    (@luciegbt)

    Hi,

    Thanks very much for your answer. I have tried in the meantime to revert back to the last version of woocommerce payments and it seems like it’s not causing the issue anymore. Would it mean the update caused the problem between cartflow and woocommerce payment?

    Thanks again

    Saif

    (@babylon1999)

    Hello @luciegbt,

    Thanks very much for your answer. I have tried in the meantime to revert back to the last version of woocommerce payments and it seems like it’s not causing the issue anymore. Would it mean the update caused the problem between cartflow and woocommerce payment?

    That is correct, the team made some changes to this class, and it appears that these changes have led to issues for plugins that rely on it, such as Cartflow.


    You can check the following report for more context: https://github.com/Automattic/woocommerce-payments/issues/7619

    If you heavily depend on their plugin, you can keep using the previous release of WooPayments until they adapt to this change. :?)

    You can also contact their team directly about this, here’s their support page: https://cartflows.com/support/

    Let us know if you have any other questions!

    Thread Starter luciegbt

    (@luciegbt)

    That’s perfect, Thanks very much for your help !

    Hi @luciegbt,

    That’s perfect, Thanks very much for your help!

    You’re welcome! I’m glad to hear that the information provided was helpful and your issue has been resolved.

    I’ll go ahead and mark this thread as resolved. However, if you ever have more questions or issues in the future, don’t hesitate to kick off a new topic.

    We’d be thrilled if you could spare a few minutes to leave us a review at ?? https://www.ads-software.com/support/plugin/woocommerce/reviews.

    Cheers!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal error – Uncaught ArgumentCountError on Woocommerce payments’ is closed to new replies.