Update class-orders.php

add_message will fail if wc_add_message is not available