Tagged: error
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
Hey perefalcon,
Ensure that youre using the latest WooCommerce version and disable all the plugins, except the WC to check if there
s some plugin conflicting.
Best regards,
John Torvik
Hi John,
I have disabled all plugins except the updated WooCommerce, and I’m still getting the error message…
Thanks,
Kari
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
Hi Victoria,
That took care of it! Thanks so much!!
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
Hello,
No, I don’t need any further help on this topic. Please go ahead and close it.
Thanks!
Hi,
Thanks again for using Enfold :)
Best regards,
Nikko