-
-
Notifications
You must be signed in to change notification settings - Fork 10.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Images are braking with Casper 2.9.3 #10578
Comments
Same here. I just fresh-installed ghost with the latest docker image.
Infact, after uploading a post image and publishing, none of those paths are present on my filesystem, like the original image is not being resized to w300, w600, ... , to the relative folders |
I just ran a fresh install of Ghost and i'm not seeing this issue - Do you only see this issue when running Ghost inside of Docker? |
@morrolinux All of those links to images you pasted are resolving for me - did you update your Ghost instance? |
@pascalandy Can you include the request/response pairs for both the broken image request and the successful one in a new tab please? |
@allouis Ok I must have got confused, sorry. The files are there as you pointed out, the problem is just they don't get loaded as this issue states |
I run all my apps in a container since more than 2 years.
|
logs
In container
On host
Same conclusion for me.
Remember that all other Ghost themes are loading all images correctly. |
Yeah, I was more trying to diagnose the problem, I haven't replicated this issue outside of Docker, was wondering if you could? Thanks for the logs, I think the problem here is in the browser though, as the files exist, and the load in a new tab, just not inline in the html - is that correct? The request and response pairs from the network tab would be useful here for figuring out what is going on, as well as information about which browsers you're seeing the issue in, is it just Chrome? |
If you have the network tab open when you load a page, you should see some requests for the images that are failing, if you then click on the request a panel will open showing the request and response headers, and some other information. If you have the tab open when you load the url for the image directly, you should see something similar, except this time the request is successful. The more information from there as possible, to work out the difference between the requests - might help us work out what is causing one to fail and the other not to. One more thing, does it still fail inside an incognito window/other browsers? |
@allouis I found something. Let's have a look at two elements with two different failures: Then I noticed about the chromium warning in the address bar: It says something like "unsafe contents/scripts have been blocked" But then the https will be flagged as insecure |
@morrolinux This could be caused by incorrect config for your blog, do you have the |
In my case I do. It's passed as an ENV VAR for 18 months. But why would it only affect the theme Casper? |
@pascalandy Are you seeing the same thing in your network tab? the mix of The newer Casper theme has been updated to use v2 API, and currently the theme layer is outputting absolute urls by default when using the v2 api, which would cause the mixed content if However, if this isn't the cause of the issue for you (mixed content), then it is probably something else. |
@allouis my url env variabile is http (not https). I tried setting it to https, but then if I visit the site I get redirected to |
@morrolinux That is why you were seeing mixed content errors, you need to set your See our docs here: https://docs.ghost.org/concepts/config/#url
Sounds like your config isn't getting picked up, and it's using the default config. I would check the env var is exported, and if that still doesn't work, look for help on the forum which is a great place to get support. |
how come the |
I'll ask the forum anyawy. thanks |
@pascalandy Hey o/ Would you be able to include the information requested in #10578 (comment) so we can help find out what's wrong? |
Looking at your initial screenshots, you were also having the issue where your config is set incorrectly! (The first request is We've masked the issue by using relative URLs, but the root cause is still there and may cause other issues in the future - I would recommend fixing your config. Closing this now as issue has been masked - 👋 |
Will do, thank you. |
Issue Summary
Images are braking with Casper 2.9.3
To Reproduce
Start a brand new installation of Ghost 2.16.4
Good
Using Casper 2.7.1 everything is fine.
bad
Using Casper 2.9.3, thing brakes
open image in a new tab
When I do this, the image loads in the tab
config
Technical details:
The text was updated successfully, but these errors were encountered: