The function is defined in this file:

admin/includes/functions/extra_functions/edit_orders.php

Make sure this file copied correctly to the right directory.