Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #774115

    Hello,
    I updated to WooCommerce 3.01 today and now the gallery images on my products don’t display properly and they show this error:
    Missing argument 3 for avia_woocommerce_gallery_thumbnail_description() in /home/ncbr1/public_html/wp-content/themes/enfold/config-woocommerce/config.php on line 1360

    Link: http://ncbr.org/product/ncbr-california-hoodie/
    Code starting with line 1360:
    function avia_woocommerce_gallery_thumbnail_description($img, $attachment_id, $post_id, $image_class )
    {
    $image_link = wp_get_attachment_url( $attachment_id );
    if(!$image_link) return $img;
    $image = wp_get_attachment_image( $attachment_id, apply_filters( ‘single_product_small_thumbnail_size’, ‘shop_thumbnail’ ) );
    $image_title = esc_attr(get_post_field(‘post_content’, $attachment_id));
    $img = sprintf( ‘%s‘, $image_link, $image_class, $image_title, $image );
    return $img;
    }

    I tried removing the gallery images and re-adding them but the error still appears. I also went to WooCommerce’s support forum and they seem to think it’s an update needed in the theme. Please help.
    Thanks!
    Nikki

    #774118

    @ncborg there is already a large thread with a solution

    #774546

    Hi all,


    @mensmaximus
    thanks for the help :)

    @ncborg did you find a solution in the thread proposed by mensmaximus?

    Best regards,
    Victoria

    #774572

    Yes, thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.