BUG: Missing slash in URL (https:/) inside data-srcset for product images

This topic has 11 replies, 2 voices, and was last updated 6 days, 23 hours ago ago by Jack Richardson

  • Avatar: Mirko
    Mirko
    Participant
    April 10, 2026 at 07:38

    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

    Content is visible for topic creator and
    support staff only.
    Files is visible for topic creator and
    support staff only.
    10 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    April 10, 2026 at 08:32

    Hello @Mirko,

    As we can see from the details, you are already using the image optimization features of the LiteSpeed Cache plugin, including the conversion of images to the WebP format. However, based on the attached information, it appears that some images were migrated incorrectly. For example, the file https://wizard.rs/wp-content/uploads/2020/11/M-5-1-300×300.jpg.webp has an added WebP postfix instead of having the source correctly replaced.

    We recommend try disabling our built-in image optimization by setting the value to “Default” (under the Speed Optimization section in Theme Options) and continuing to use the functionality provided by your LiteSpeed Cache plugin, as there seem to be some compatibility issues between our lazy loading feature and the plugin’s functionality.

    Also, then activate image regeneration process to ensure all images are correctly updated.

    If you have another suggestion, please clarify it in detail.

    Best regards,
    Jack Richardson
    The 8Theme’s Team

    Avatar: Mirko
    Mirko
    Participant
    April 10, 2026 at 09:47

    This is my old log, there is no .webp now in the log only .jpg
    I dont use any optimisations from LS cache, only caching functions.
    I dont use css/html/js minify from them, and lazy load is disabled also.
    I have try also to disable LS cache plugin.
    Few days ago i have regenerated thumbnails from woocomerc using there built in function.
    I cant change from xstore lazy load to LS cache lazy load, as Xstore keeps puting lazy load in html so i get just broken images.

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    April 10, 2026 at 10:35

    Hello @Mirko,

    After reviewing your settings, we found that the “Lazy Load for Images” option is currently set to “Lqip” (see: https://prnt.sc/3S_fFTSoj1qr). We previously requested that you set this option to the “Default” value and check the results. For testing purposes, we temporarily applied the “Default” setting and did not observe any issues on your single product pages (https://prnt.sc/-URHvZ0OvVNL).

    Please provide us with the steps to reproduce the issue on your website, along with the URL where you notice such errors. Additionally, kindly clarify the exact problem and share any relevant screenshots or videos, as we currently see that all images are displayed correctly regardless of the “Lazy Load for Images” configuration.

    Best regards,
    Jack Richardson
    The 8Theme’s Team

    Avatar: Mirko
    Mirko
    Participant
    April 10, 2026 at 10:55

    Modern browsers are not showing this problems, but bots like google and similar are hitting into 404.

    Files is visible for topic creator and
    support staff only.
    Avatar: Mirko
    Mirko
    Participant
    April 10, 2026 at 10:57

    You can go to redirection plugin and look into 404 logs, im deleting this logs every few hours as i get up to 10.000 logs related to src set each day

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    April 10, 2026 at 11:55

    Hello @Mirko,

    Please note that the issue you are reporting is not directly related to our theme. The problem appears to be caused by broken images that are still cached in Google search results for your website. When customers attempt to open these pages or images, redirections may occur.

    We recommend that you request reindexing of your website through the Google Search Console, clear all caches, or temporarily disable them on your website. After completing these steps, please check the issue again after a few days.

    If you require assistance with the reindexing process, we kindly suggest contacting your hosting provider for guidance, as it may also be possible to initiate this action through your hosting tools.

    Best regards,
    Jack Richardson
    The 8Theme’s Team

    Avatar: Mirko
    Mirko
    Participant
    April 10, 2026 at 13:06

    I did that, i will see if that fix the problem.
    Also can you tell me, as i am using LQIP from xstore, is there a way to add images above the fold excluded from lazy load and change its fetch prority?
    My goal is to speed up performance.
    Thank you

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    April 10, 2026 at 14:34

    Hello @Mirko,

    Please check the “Image Loading Offset” option (https://prnt.sc/Vp3GUhItc0xb). Configuring this option correctly will help prevent content from shifting while scrolling, as images will begin loading when they are a specified number of pixels off-screen.

    Please note that setting this value too high will cause all images within that offset range to load automatically.

    Best regards,
    Jack Richardson
    The 8Theme’s Team

    Avatar: Mirko
    Mirko
    Participant
    April 10, 2026 at 14:49

    Thank you, and if you can give me 1 more advice.
    This image file is larger than it needs to be (600×600) for its displayed dimensions (181×181). Use responsive images to reduce the image download size.
    In woocomerc thumbnails are displaying in 600×600 pixels for mobile, but i have set thumbnails to 300×300 in Xstore and 600×600 for full size.
    How to make it load 300×300 pixels?

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    April 10, 2026 at 15:01

    Hello @Mirko,

    If you are referring to the thumbnail images in the single product gallery, they are correctly displayed at a size of 300×300 pixels (see: https://prnt.sc/33KFJMmPFKQD). However, if some products display larger images, you may need to manually regenerate those images using a tool such as https://wordpress.org/plugins/regenerate-thumbnails/.

    We have also checked the product on your shop (https://prnt.sc/UQhTh87syguC) as well as the related products on the single product page, and the images are displayed in the correct sizes (see: https://prnt.sc/vnbE3Nnv9L_3).

    If you still have any questions, please provide us with more details about your request so that we can offer more accurate support without the need for additional clarification.

    We also recommend reviewing the following articles for further useful information:
    https://wordpress.org/support/topic/remove-sizesauto-in-wordpress-6-7/
    https://developer.wordpress.org/apis/responsive-images/

    Best regards,
    Jack Richardson
    The 8Theme’s Team

  • Viewing 11 results - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.