Home Forums WoodMart support forum No Category and Product Thumbs are showing

No Category and Product Thumbs are showing

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #690261

    CooperDevon
    Participant

    Hello,
    I recently installed the Woodmart theme and am currently testing Bunny.net’s CDN, DNS, and Storage services for my WooCommerce shop.
    However, I’ve run into an issue where product thumbnails and category images are not displaying on the category listing pages or homepage. Interestingly, when I visit the individual product page, the images show up correctly.
    After inspecting the issue, I noticed that the broken image links are pointing to folders instead of actual image files. For example, one of the image src attributes is pointing to:

    curl -I “https://domaindomain.com/wp-content/uploads/2025/10/”
    HTTP/2 403
    date: Thu, 09 Oct 2025 20:30:31 GMT
    content-type: text/html
    vary: Accept-Encoding
    server: BunnyCDN-CR1-794
    cdn-pullzone: 4607187
    cdn-uid: db8a7be9-22d1-4458-be3e-ae27244fc7ed
    cdn-requestcountrycode: CR
    age: 0
    cache-control: no-cache
    x-cache: MISS
    cdn-proxyver: 1.37
    cdn-requestpullsuccess: True
    cdn-requestpullcode: 403
    cdn-cachedat: 10/09/2025 20:30:31
    cdn-edgestorageid: 794
    cdn-requestid: ea7aea12e36d23c03927208c6094caf9
    cdn-cache: MISS
    cdn-status: 403
    cdn-requesttime: 0

    This is a folder, not a specific file. Since the CDN can’t find a file, it forwards the request to the origin, which then returns a 403 Forbidden error. However, when I directly access a file within that folder, the image loads correctly through the CDN:

    curl -I “https://domaindomain.com/wp-content/uploads/2025/10/1.svg”
    HTTP/2 200
    date: Thu, 09 Oct 2025 20:31:03 GMT
    content-type: image/svg+xml
    content-length: 12340
    vary: Accept-Encoding
    server: BunnyCDN-CR1-794
    cdn-pullzone: 4607187
    cdn-uid: db8a7be9-22d1-4458-be3e-ae27244fc7ed
    cdn-requestcountrycode: CR
    access-control-allow-origin: *
    access-control-allow-headers: Server, x-goog-meta-frames, Content-Length, Content-Type, Range, X-Requested-With, If-Modified-Since, If-None-Match
    access-control-expose-headers: Server, x-goog-meta-frames, Content-Length, Content-Type, Range, X-Requested-With, If-Modified-Since, If-None-Match
    cache-control: max-age=25600000
    etag: “68e81097-3034”
    last-modified: Thu, 09 Oct 2025 19:44:23 GMT
    cdn-storageserver: MI-727
    cdn-fileserver: 727
    cdn-proxyver: 1.37
    cdn-requestpullsuccess: True
    cdn-requestpullcode: 200
    cdn-cachedat: 10/09/2025 20:31:03
    cdn-edgestorageid: 794
    cdn-requestid: d7692decd79efc61b8cd1bc2a8c66cc8
    cdn-cache: MISS
    cdn-status: 200
    cdn-requesttime: 0
    accept-ranges: bytes

    So it seems the issue is related to how image URLs are being generated, possibly by the theme or how Bunny is handling the offloaded assets.

    Can you advise what can be done to ensure that all images are properly served from BunnyCDN and not pointing to folders?

    Thank you in advance!
    Best regards,

    Sascha

    • This topic was modified 3 days, 5 hours ago by CooperDevon.
    Attachments:
    You must be logged in to view attached files.
    #690559

    Hello,

    Please deactivate all the 3rd party plugins and activate only theme-required plugins on the site and then check the issue. I am sure your issue will be solved. Then, activate the 3rd party plugins one by one and check which plugin is creating the issue for you.

    Otherwise, if the issue still exists, then keep the 3rd party plugins deactivated and let me know I will further check and give you a possible solution.

    Best Regards,

    #690687

    CooperDevon
    Participant

    Hi Woodmart Team,

    Bunny support inspected the live site and confirmed the image “src” on archive cards points to a directory, e.g.:
    https://xxxxxxxx.com/wp-content/uploads/2025/10/

    This is a folder, so the request returns 403. If I request an actual file in that folder, it loads correctly via CDN.

    What I believe is happening:
    – On archives, the theme’s thumbnail output resolves to a directory path instead of a file URL. Single product uses a different template path and works.
    – Disabling third-party plugins (except Bunny Offloader) does not fix it.
    – Replacing the archive hook with a hard tag in content-product-*.php didn’t change the result, so it seems earlier in the render chain (URL building/filter) for archives.

    Could you please:

    Check that woodmart_get_all_product_thumbnails_urls() and woodmart_get_product_thumbnail() always return a real file URL on archives (never a directory).

    Provide a compatibility fix or filter for media offloading/CDNs so archive thumbnails resolve to a file path from wp_get_attachment_image_url().

    Confirm which script handles must not be deferred (e.g., jquery, imagesloaded, woodmart main bundle) in case JS timing affects visibility.

    Best regards

Viewing 3 posts - 1 through 3 (of 3 total)