Problem with file product-image.php
-
Afer update I receive this error:
Fatal error: Uncaught Error: Call to a member function get_gallery_image_ids() on null in /home/885114.cloudwaysapps.com/mwagefnprm/public_html/wp-content/themes/woodmart/woocommerce/single-product/product-image.php:27 Stack trace: #0 /home/885114.cloudwaysapps.com/mwagefnprm/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include() #1 /home/885114.cloudwaysapps.com/mwagefnprm/public_html/wp-content/themes/woodmart/inc/modules/layouts/elementor/single-product/class-gallery.php(331): wc_get_template() #2 /home/885114.cloudwaysapps.com/mwagefnprm/public_html/wp-content/plugins/elementor/includes/base/controls-stack.php(2265): XTS\Modules\Layouts\Gallery->render() #3 /home/885114.cloudwaysapps.com/mwagefnprm/public_html/wp-content/plugins/elementor/includes/base/widget-base.php(609): Elementor\Controls_Stack->render_by_mode() #4 /home/885114.cloudwaysapps.com/mwagefnprm/public_html/wp-content/plugins/elementor/includes/base/widget-base.php(733): Elementor\Widget_Base->render_content() #5 /home in /home/885114.cloudwaysapps.com/mwagefnprm/public_html/wp-content/themes/woodmart/woocommerce/single-product/product-image.php on line 27
Hello,
You need to select “Copy” in the WPML configuration as shown on the screenshot https://monosnap.com/file/yAwHUXA8zEZ4O44yxBXw0Q6HMUX2cB
Kind Regards
Same error even if I set this option on wpml
Hi,
Please, describe to us your problems in a bit more detail. Attach some screenshots and provide us with a list of steps on how to reproduce them on your website.
Thank you in advance.
I created a custom product layout using woodmart layout, then I translate it in all available language.
It works fine untill the last update.
Now I need to edit the template in English and german but if I try to use elementor on each template I receive the error above.
I send in private the url to edit product template in english and german translation
You’re working on live website.
Please or use Troubleshooting mode or I need to send you a staging enviroment.
After changing the WPML configuration https://monosnap.com/file/yAwHUXA8zEZ4O44yxBXw0Q6HMUX2cB you had to resave the layout on the default language. We did this on your main website and the problem disappeared.
You are welcome. Feel free to contact us if you have any further questions.
The topic ‘Problem with file product-image.php’ is closed to new replies.