ERROR with Attachment
-
Hello,
I found this error in the latest version.Error details: If any product don’t have any images/attachments then it is showing error if my debug mode in true. This is not a way.
Solution: I found the solution. I found that the attachment object is not checked before loading in wc_get_product_attachment_props() function in wc-product-functions.php file.
if you add a object check just after line 720 and before line 721 like
`if( ! is_object( $attachment ) ) return;
then it would okay.
I hope soon it will updated.
Thanks.
Jaed
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘ERROR with Attachment’ is closed to new replies.