Here’s the code at the line 525 (beginning at 520):
` do {
foreach ( (array) current($wp_filter[$tag]) as $the_ )
if ( !is_null($the_[‘function’]) )
call_user_func_array($the_[‘function’], array_slice($args, 0, (int) $the_[‘accepted_args’]));
} while ( next($wp_filter[$tag]) !== false );
array_pop($wp_current_filter);
}
That isn’t the relevant code to the error though. There is something wrong with your custom code, or another plugins. The WC_List_Grid class is at fault.
If this isn’t your custom code, then try temporarily switching back to the WordPress Twenty Sixteen Theme, or Storefront, and disable all plugins except for WooCommerce. If that resolves the issue, then slowly re-enable features until you find the one that’s causing the conflict.
Thank you for your answer. I changed the theme, disabled plugins except Woocommerce and the error message went away. However, all my images are blurry. I tired to regenerate thumbnails, but this doesn’t help. The product images are not saving the settings in Woo. Is there something else I can do? This was correct before. Is there some code I can insert into the functions.php file or another?
Really appreciate your help and I hope I can get this resolved.
Does this happen with just your theme, or also while using a default theme / regenerating images with that active? Themes can control image sizes, so could be something wrong there.
Here is a guide on setting up image dimensions in WooCommerce: https://docs.woocommerce.com/document/using-the-appropriate-product-image-dimensions/
Are you using a retina device? Like a macbook or iPhone maybe? If so, perhaps this will help: https://ww.wp.xz.cn/plugins/wp-retina-2x/. Also check to make sure your images are large enough to display in the size you want them too.
Thank you. I’ve read through that literature and have tried all the fixes listed. The problem seems to be that wordpress is using a thumbnail size for woocommerce product images, and these are being blown up. For example: I upload an image at 1000×1000. When I look at the details for the image, it says it’s using the image at 275×275. I don’t have any thumbnails of that size. This makes the “new” product images blurry and stretched out. It doesn’t affect the product images before the migration. I’ve tried to isolate the code that calling the image:
<img class=”attachment-shop_single size-shop_single wp-post-image” width=”275″ height=”275″ sizes=”(max-width: 275px) 100vw, 275px”>
The image ‘source’ for this in particular is:
src=”http://liquescencemedia.com/wordpress/wp-content/uploads/2016/08/Liquescence-Time-Travel-Mens-Ash-Grey-1-275×275.jpg
On the image details attachment page everything is fine, the resolution is high.
So I’m quite frustrated with this. Why is it calling a 275×275 from uploads when I’ve uploaded an image 1000×1000?
Any help with this fix is appreciated. I’ve reset and regenerated all to no avail.
Here’s a link to a working store product from before the migration:
http://liquescencemedia.com/store/uncategorized/test-product-image/
http://liquescencemedia.com/store/melismatiqks/music-scores-t-shirts-crumbs-agnus-dei/
And here’s a link to the test image product page which is blown up:
http://liquescencemedia.com/store/uncategorized/test-product-image/
If you look at the image code details, you’ll see that wordpress is using a different size, not the full size, for the product. I don’t know how to change this or why it’s happening. Hardcrop is set to “off” in woocommerce.
Did you try regenerating thumbnails while using a default WordPress theme like I mentioned above?
By default, the shop_single thumbnail size used: https://github.com/woothemes/woocommerce/blob/master/templates/single-product/product-image.php#L31. The dimensions are chosen here: http://cld.wthms.co/UbfX/2RZPuRAO
Your theme or another plugin must be overriding it.