Hi,
we use Buy Again for WooCommerce
https://flintop.com/product/buy-again-for-woocommerce/
V5.1.0
CRITICAL Uncaught TypeError: Unsupported operand types: string + int
in /wp-content/plugins/buy-again-for-woocommerce/inc/class-bya-order-handler.php:196
means that on line 196 of the Buy Again for WooCommerce plugin an attempt is made to add a string and a number, which is no longer silently converted in PHP 8+, but throws an error.
You can fix it so: in Line: 196
$args[‘order_count’] = (int) $customer_obj->get_order_count() + (int) $bya_product_obj->get_order_count();
in lines 197 and 198 also cast to (int)
Please inform me when this has been fixed š
best regards Rafael
Open
Last updated: June 10, 2025
0 comments
Log in to comment on this feature request.