Home Forums WoodMart support forum PHP Fatal error: Uncaught Error: Call to a member function get_gallery_image_id

PHP Fatal error: Uncaught Error: Call to a member function get_gallery_image_id

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #634509

    Milos Spasic
    Participant

    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

    #634526

    Artem Temos
    Keymaster

    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.

    #634548

    Milos Spasic
    Participant

    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

    #634550

    Artem Temos
    Keymaster

    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

    #634558

    Milos Spasic
    Participant

    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

    #634560

    Artem Temos
    Keymaster

    OK please keep plugins active and send us your admin access so we can do a quick check.

    #634567

    Milos Spasic
    Participant

    The admin access is below ⬇️

    #634575

    Artem Temos
    Keymaster

    Please use the code from the previous topic to fix this https://xtemos.com/forums/topic/mobile-bottom-navbar-not-showing/#post-631797

    #634598

    Milos Spasic
    Participant

    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.

Tagged: , ,

Viewing 9 posts - 1 through 9 (of 9 total)