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
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
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?
Hi,
I’m seeing the featured image on the page linked above. Did you still need help with this?
Best regards,
Jordan Shannon
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
Hi,
Great! If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon