Critical bug introduced in latest version
-
In the latest version, you added type hints for the
WemaloPluginBase->getValue()
function, specifically that the second parameter must be an array. But as you can see in the stack trace below, your own code inWemaloPluginOrders.php(354)
calls that function with anObject()
. Now we cannot process any orders anymore.Error Details ============= An error of type E_ERROR was caused in line 62 of the file /var/www/html/wp-content/plugins/wemalo-api/api/handler/WemaloPluginBase.php. Error message: Uncaught TypeError: Argument 2 passed to WemaloPluginBase::getValue() must be of the type array, object given, called in /var/www/html/wp-content/plugins/wemalo-api/api/handler/WemaloPluginOrders.php on line 354 and defined in /var/www/html/wp-content/plugins/wemalo-api/api/handler/WemaloPluginBase.php:62 Stack trace: #0 /var/www/html/wp-content/plugins/wemalo-api/api/handler/WemaloPluginOrders.php(354): WemaloPluginBase->getValue('name', Object(WC_Order_Item_Product)) #1 /var/www/html/wp-content/plugins/wemalo-api/api/handler/WemaloPluginOrders.php(153): WemaloPluginOrders->buildOrderObj(24448) #2 /var/www/html/wp-content/plugins/wemalo-api/api/handler/WemaloPluginOrders.php(916): WemaloPluginOrders->getOrderToDownload(24448, true, Object(Automattic\WooCommerce\Admin\Overrides\Order), true) #3 /var/www/html/wp-content/plugins/wemalo-api/plugin/WemaloAPIRegisterOrder.php(509): WemaloPluginOrders->transmitOrder(24448, Object(Automattic\WooCommerce\Admin\Overrides\Order)) #4 /var/www/html/wp-content/plugins/wem
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Critical bug introduced in latest version’ is closed to new replies.