Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #795086

    Hello,

    I’m getting the following messages on my product pages: Warning: Missing argument 3 for avia_woocommerce_gallery_thumbnail_description() in /home/content/p3pnexwpnas01_data01/65/3617665/html/wp-content/themes/enfold-child/functions.php on line 10

    Warning: Missing argument 4 for avia_woocommerce_gallery_thumbnail_description() in /home/content/p3pnexwpnas01_data01/65/3617665/html/wp-content/themes/enfold-child/functions.php on line 10

    I already have this code: 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;
    }
    } on my functions page and I have updated to the latest theme version via wordpress and ftp.

    Thanks!
    Kari

    #795296

    Hey perefalcon,

    Ensure that youre using the latest WooCommerce version and disable all the plugins, except the WC to check if theres some plugin conflicting.

    Best regards,
    John Torvik

    #795990

    Hi John,

    I have disabled all plugins except the updated WooCommerce, and I’m still getting the error message…

    Thanks,
    Kari

    #796145

    Hi Kari,

    Try removing the code with version compare, since you have your WooCommerce above 3.0.0, you don’t need that part any more. Let us know if you need more help.

    Best regards,
    Victoria

    #796150

    Hi Victoria,

    That took care of it! Thanks so much!!

    #796355

    Hi,

    Great, glad you got it working. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

    #796643

    Hello,

    No, I don’t need any further help on this topic. Please go ahead and close it.

    Thanks!

    #796660

    Hi,

    Thanks again for using Enfold :)

    Best regards,
    Nikko

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