Certain users are unable to view orders in admin
-
Fatal error: Call to a member function get_items() on boolean woocommerce/includes/admin/meta-boxes/views/html-order-items.php on line 13
My client’s site has 2 admins, one can view orders and the other gets the error above.
I have updated to v2.3.13, still get the error, and then updated again via download and FTP. Still getting the error.
After some debugging found that in woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-items.php in the output function globals $thepostid and $theorder are not set, hence wc_get_order is returning false.
I have temporarily added global $post and wc_get_order($post->ID) as a fix though obviously this not ideal.
Any insight much appreciated, thanks!
- The topic ‘Certain users are unable to view orders in admin’ is closed to new replies.