Hi XStore Support Team,
I’ve discovered a persistent bug related to how the theme generates image URLs for WooCommerce products, specifically when the theme’s Lazy Load or LQIP feature is active.
The Issue:
Inside the data-srcset (and consequently srcset) attributes for product images, the URLs are missing a forward slash in the protocol. They are being rendered as https:/ instead of https://.
Here is an exact log from my server showing the broken URLs generated by the theme:
/wp-content/uploads/2020/11/M-5-1.jpg.webp 600w, https:/wizard.rs/wp-content/uploads/2020/11/M-5-1-300×300.jpg.webp 300w, https:/wizard.rs/wp-content/uploads/2020/11/M-5-1-150×150.jpg.webp 150w, https:/wizard.rs/wp-content/uploads/2020/11/M-5-1-1×1.jpg.webp 1w, https:/wizard.rs/wp-content/uploads/2020/11/M-5-1-10×10.jpg.webp 10w, https:/wizard.rs/wp-content/uploads/2020/11/M-5-1-100×100.jpg.webp 100w
Where it happens:
This occurs on single product pages, within the responsive image sizes string (100w, 150w, 300w, etc.). The main src is usually fine, but the URLs inside the srcset string are malformed.
Impact:
While modern browsers try to auto-correct this for real visitors, bots and scrapers are constantly hitting these malformed URLs, resulting in massive amounts of 404 errors and filling up my server logs/Redirection plugin.
Troubleshooting done:
I have temporarily disabled LiteSpeed Cache and other optimization plugins, and confirmed that the issue stems directly from the XStore image generation logic (likely the LQIP or lazy-loading string replacement functions).
I had webp replacment from LS cache, i destroyed all data, but it wasnt related to it also.
I converted entire database to innoDB
Cleared all cache and destroyed all cache data, regenerated thumbnails in woocomerce, but nothing changed.
Thanks,
Mirko