• After update to from 1.7.3 to 2.0.3 i get following error on product page. WP Version: 4.9.5, WC Version: 2.6.14
    Fatal error: Uncaught Error: Call to undefined method WC_Product_Grouped::get_gallery_image_ids() in <PATH>/plugins/responsive-lightbox/includes/class-frontend.php on line 1071

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello, i have the same problem.
    Page is broken. PHP7.2.

    We had the same problem after the latest update. It broke every WooCommerce product page, until our developer replaced that line of code (line 1071) with this:

            $attachment_ids = array();
    
            if ( is_callable( array( $product, 'get_gallery_image_ids' ) ) ) {
                $attachment_ids = $product->get_gallery_image_ids();
            }
    

    It’s not a fix to restore compatibility with the latest WooCommerce version, but it is a fix to restore the site’s functionality until the developer of the Responsive Lightbox plugin releases an update.

    Plugin Author dFactory

    (@dfactory)

    Should be fixed in just released 2.0.4

    Thanks, that fixed it! ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Call to undefined method WC_Product_Grouped::get_gallery_image_ids()’ is closed to new replies.