March 25, 2024 at 9:12 PM
#218489
Participant
There’s a second bug on checkout, that seems to be linked with PHP 8. I checked every single email of yours, and every single one, when it overrides the emails’s ‘object’ variable in the trigger() function, it does so by setting an object to that variable. Except in one specific email, causing a crash because of variable type mismatch.
It’s in class-mvx-email-admin-changer-order-status.php in the main mvx plugin.
In the trigger function, you set
$this->object = $order_id;
when it should be something like
$this->object = wc_get_order( $order_id );
You may not have ever seen a crash on your end, but when other plugins use the ‘object’ variable via filters and expect it to be an actual object and not an integer, then it crashes.




