<span class="resolved" aria-label="Resolved" title="Topic is resolved."></span>PHP Warning: array_sum(): Addition is not supported

[ad_1]

Replies: 4

I am trying to use a REST-API integration with WooCommerce 8.4.0 (specifically, PirateShip, which I’ve used successfully in the past). It connects but it can’t fetch the WooCommerce data, and I noticed the following in the logs.

[26-Dec-2023 22:54:22 UTC] PHP Warning: array_sum(): Addition is not supported on type string in /home/public_html/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php on line 271

I’m wondering if this is why PirateShip isn’t working, and how exactly do I get around this? Would rolling back a couple versions at least get the connetiction working? I’m compelled to give that a shot… but would rather fix the current version.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer