images disabled – bad function call arguments
-
This maybe has two parts. I have worked around it for myself so I can’t say for certain what I’m telling you is 100% true.
I have images disabled and wc_bof_image_width/height is NULL
However images are still being handled in some manner.I found hundreds of these in my debug log:
PHP Warning: A non-numeric value encountered in wp-includes/media.php on line 647
the function is wp_image_matches_ratio()The number of times this is called exceeds the number of images it should be handling so maybe some redundancy exists somewhere.
As a workaround, I edited class-standard-product-search.php and removed this call:
this->get_product_image( $id )
(same deal with product_variation)With null size options, get_product_image() sets $size = ‘shop_thumbnail’;
I would guess that is the non-numeric value that wp_image_matches_ratio() is complaining about. I didn’t test further as I have no desire to use images.-Sean
- The topic ‘images disabled – bad function call arguments’ is closed to new replies.