Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #783216

    Warning: Missing argument 3 for avia_woocommerce_gallery_thumbnail_description() in /home/coneyislandtran/public_html/wp-content/themes/enfold/config-woocommerce/config.php on line 1351
    Hi
    I have a website using enfold. I had gotten the above warning… I have read here to re-upload the theme via FTP to the server. I just purchased 4.0 as I did not have any theme files at my disposal. Do I upload the whole enfold folder to the server and overwrite the exciting data in the existing enfold folder. I also have an enfold child theme folder.. nothing should be uploaded here?

    Stan

    #783271

    Hey CIBaby74,

    Yes, only replace the enfold theme, the child theme should not be replaced. If this error still appears, try adding this code at the bottom of functions.php:

    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;
    	}
    }

    Let us know if this helps. :)

    Best regards,
    Nikko

    #783633

    Thank You Nikko!!
    I didnt need to add any code, re uploading the theme file helped.

    Thank You Again!!
    Stan

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