Hello,
when moving to a single product page for woocommerce with enfold, we get the error Missing argument 3 for avia_woocommerce_gallery_thumbnail_description(), called in /www/htdocs/(...)/wp-includes/plugin.php on line 235 and defined in /www/htdocs/(...)/wp-content/themes/enfold/config-woocommerce/config.php on line 1360
You can see for yourself on the link I will attach in private content.
Please share advice on how to tackle this issue.
Have a nice weekend and thanks in advance!
Hello,
I have the same problem …
I found the solution in another thread. I copied following into my fucnctions.php child theme. It works perfect!
/*
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;
}
}