-
AuthorPosts
-
January 2, 2019 at 5:06 pm #1049317
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
January 3, 2019 at 5:36 am #1049472Hi 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,
RikardJanuary 3, 2019 at 4:00 pm #1049628Hi 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?
January 4, 2019 at 7:46 am #1049864Hi,
I’m seeing the featured image on the page linked above. Did you still need help with this?
Best regards,
Jordan ShannonJanuary 4, 2019 at 3:25 pm #1050003Hi 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
January 4, 2019 at 4:20 pm #1050025Hi,
Great! If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Warning: Missing argument’ is closed to new replies.
