App for Cloudflare® Pro

App for Cloudflare® Pro 1.8.9

Some WooCommerce product images do not link to the R2 location

sjamaan

New member
After moving all images from uploads to R2 I have confirmed that all images are present on the R2 bucket and are visible on the media.mysite.com subdomain.
And new images uploaded also are saved on the correct location.

However, some products did not display their image thumbs on WooCommerce category (initiated through lazy-imageset) or the 100x100 thumbs on product page. (jquerymin.js2) This only happens to resized images / thumbs, while the full image always displays. The weird thing is that its not consistent. Some image thumbs are fetched straight from the new location and do display while others do not.

I added the redirection so that images display, but the images still link to the old location and are then fetched from R2. That's not great.
The mini thumbs on product page or product variant page served trough jquerymin.js2 have the error NS-BINDING_ABORTED

I'm not using any special theme. Just the Hello theme by Elementor. Its not stock WP, but 2nd most used theme on WP and more used than most WP stock themes, I wonder if this plugin is compatible with WooCommerce thumbs or if I need to do something else.
 
As it sounds like you already did, the redirects is going to be the short-term solution (it probably doesn't hurt to leave them in place indefinitely do search engines and things know where the new locations are anyway).

It does seem strange if some are working but others aren't (it would normally be an all or nothing situation). This plugin isn't doing anything abnormal to generate the URL location. It's hooking into the standard WordPress wp_get_attachment_url filter, which really anything doing something with attachment images should be using (it's the standard way to generate the URL for an attachment in WordPress).

I have seen the NS_BINDING_ABORTED console error with completely unrelated projects and in those cases it ended up being a Firefox browser issue with AJAX requests. Are you by chance using Firefox, and if so would you be able to test with a different browser just to see if it's something specific to Firefox? That being said, even if it is a Firefox specific thing, the AJAX request causing the issue isn't coming from this plugin (it doesn't do any AJAX on the public side of things), so you may need to contact the developers that are doing the lazy loading/thumbnail loading on that, but maybe you can at least narrow it down for them to something specific to Firefox (hopefully anyway).
 
I wonder if WC does something special for image resizing or if there is a plugin messing it up. I did disable plugins but no dice there.

NS_BINDING_ABORTED indeed occurs on FF and not on Chrome.
 
Is there anything unique about the URLs that Firefox is kicking back the NS_BINDING_ABORTED error? Like maybe it's just HTTP URLs (and HTTPS work fine)? It still probably makes sense to ping the developers of whatever is doing the AJAX requests that are failing with Firefox... maybe something they have seen before.
 
Back
Top