when my client goes to bulk edit woo commerce orders, ie mark as complete we get an error, https://prnt.sc/ubnbn3
and an email that says
Error Details
=============
An error of type E_ERROR was caused in line 50 of the file /home/sites/7a/8/83be0c2ee6/public_html/wp-content/themes/xstore/woocommerce/single-product/product-image-builder.php. Error message: Uncaught Error: Call to a member function get_gallery_image_ids() on null in /home/sites/7a/8/83be0c2ee6/public_html/wp-content/themes/xstore/woocommerce/single-product/product-image-builder.php:50
Stack trace:
#0 /home/sites/7a/8/83be0c2ee6/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(344): include()
#1 /home/sites/7a/8/83be0c2ee6/public_html/wp-content/themes/xstore/woocommerce/single-product/product-image.php(25): wc_get_template(‘single-product/…’)
#2 /home/sites/7a/8/83be0c2ee6/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(344): include(‘/home/sites/7a/…’)
#3 /home/sites/7a/8/83be0c2ee6/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(1476): wc_get_template(‘single-product/…’)
#4 /home/sites/7a/8/83be0c2ee6/public_html/wp-content/plugins/openswatch/includes/class-color-swatch.php(862): woocommerce_show_product_images()
#5 /home/sites/7a/8/83be0c2ee6/public_html/wp-content/plugins/openswatch/includes/class-variatio