Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1049317

    Hello!

    I see on some products I have there are missing images and various warnings such as this:

    Warning: Missing argument 3 for avia_woocommerce_gallery_thumbnail_description(), called in /home/duncan27/public_html/wp-includes/class-wp-hook.php on line 286 and defined in /home/duncan27/public_html/wp-content/themes/enfold-child/functions.php on line 13

    LInks in private.

    Could you help me with this?

    Thank you,

    Duncan

    #1049472

    Hi Duncan,

    You have this in you child theme functions.php file:

    
    /*
    	Woocommerce 3.0.0 Compatibility Fix
    	Remove Enfold's custom functions that conflict with the new image display in WooCommerce 3.0.0
    */
    global $woocommerce;
    if( version_compare( $woocommerce->version, '3.0.0', ">=" ) ) {
    	function avia_woocommerce_gallery_thumbnail_description($img, $attachment_id, $post_id, $image_class ) {
    	    return $img;
    	}
    	function avia_woocommerce_post_thumbnail_description($img, $post_id){
    	    return $img;
    	}
    }

    Could you try to remove that to see if it helps?

    Best regards,
    Rikard

    #1049628

    Hi Rikard,

    Thank you! I removed that and no more Warning!

    But I cannot get the featured image to display… Could you see what might be causing that problem and a suggested fix?

    #1049864

    Hi,

    I’m seeing the featured image on the page linked above. Did you still need help with this?

    Best regards,
    Jordan Shannon

    #1050003

    Hi Jordan,
    I was able to resolve that issue- thank you.

    As for the original warning issue, your solution worked!

    We can close this ticket- much appreciated!!!

    Duncan

    #1050025

    Hi,

    Great! If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Warning: Missing argument’ is closed to new replies.