PHP Fatal error: Uncaught Error: Call to a member function get_gallery_image_id
-
Hello,
We have a problem with a Woodmart theme, this PHP Fatal error occurs:
[31-Jan-2025 13:06:42 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_gallery_image_ids() on null in /home/example_com/web/example.com/public_html/wp-content/themes/woodmart/woocommerce/single-product/product-image.php:27
How can we solve this issue?
Best regards
Hello,
Please disable any plugins not directly related to our theme and provide us with your admin access details. We will log in to your dashboard and investigate the issue. Please ensure that you only keep the following plugins that are necessary for our theme to work correctly:
– WoodMart core
– WooCommerce
– Elementor/WPBakery Page Builder
Thank you in advance.
Hello,
It’s a live e-commerce site, so it’s not possible to do any of suggested.
Do you have any other suggestions?
Regards
In this case, you need to create a staging development copy of your website. There, you will be able to do such kind of experiments without any harm to your production website.
Kind Regards
We have a dev site, but that error does not occur on dev.
The difference is that we do not use the following plugins on the dev site:
- Advanced Order Export For WooCommerce (Pro)
- Akismet Anti-spam: Spam Protection
- Metorik Helper
- Onsite Messaging by PushAlert
- PushAlert – Web Push Notifications
- PixelYourSite PRO
- PixelYourSite Super Pack
- ShortPixel Image Optimizer
- WP Rocket
We cannot use the mentioned plugins on the dev site, due to licenses.
Regards
OK please keep plugins active and send us your admin access so we can do a quick check.
The admin access is below ⬇️
We have added the mentioned code to the functions.php of the child theme on the production site.
We’ll keep an eye on the PHP error log, so we’ll let you know if the error pops up again.