GithubHelp home page GithubHelp logo

Missing some images? about cms HOT 7 CLOSED

stephenmeehanuk avatar stephenmeehanuk commented on May 28, 2024
Missing some images?

from cms.

Comments (7)

duncanmcclean avatar duncanmcclean commented on May 28, 2024

Not sure when it started, but I noticed some images are not loading on the frontend.

Do you see any console logs relating to the images not loading?

from cms.

stephenmeehanuk avatar stephenmeehanuk commented on May 28, 2024

Nope.

Just double checked the server for one of the images in srcset

/img/containers/assets/images/hero-images/track-worker-waterloo-1g8a7314.jpg/994f8e63b06980ed2ca8d641f6fa49a8.webp

994f8e63b06980ed2ca8d641f6fa49a8.webp is on the server. As are other 'missing' images I've manually checked...

from cms.

duncanmcclean avatar duncanmcclean commented on May 28, 2024

That's odd that they'd be on the server but not showing in the browser. Are you able to share the URL of the site you're having issues with (either via Discord DMs or via support).

from cms.

stephenmeehanuk avatar stephenmeehanuk commented on May 28, 2024

I'll message you on Discord now. Thanks for looking at this.

from cms.

duncanmcclean avatar duncanmcclean commented on May 28, 2024

Thanks for sending me the URL of your site.

When I tried to visit one of the image URLs in the browser, it redirected me to the site's homepage, which is probably the cause of the images not loading.

From looking at the HTTP headers of the images, it doesn't even look like those requests are hitting Statamic. If they were, I'd expect to see an X-Powered-By: Statamic header.

This makes me thing it's probably in some way related to your server configuration rather than being an issue with Statamic.

from cms.

stephenmeehanuk avatar stephenmeehanuk commented on May 28, 2024

Issue resolved.

Thanks for your help with this, I found a rouge rewrite rule that was playing havoc with my images!

Everything is working as expected now.

from cms.

duncanmcclean avatar duncanmcclean commented on May 28, 2024

Awesome! Glad to hear you managed to get it sorted 🎉

from cms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.