When you replace /themes/royal/woocommerce/single-product/product-image.php with original one .. you will see the error.
Now I use modify version the product-image.php