Canapin
(Coin-coin le Canapin)
6월 21, 2018, 10:39오후
1
Hi,
When I publish a WP post to Discourse, the images won’t show up:
But they do show up in the message preview if I edit the topic.
Saving the edit or rebuilding the message HTML don’t fix it.
Typical HTML of such an image is:
<img class="wp-image-157219 size-full aligncenter" src="http://monocycle.info/wp-content/uploads/2018/06/catégories-e1529598284988.png" alt="" width="400" height="364" />
Any idea?
edit: I may have understood why.
The domain monocycle.info has been locally redirected to the server I’m working on, which is where my WordPress is installed. I did the redirection via the hosts windows file.
But Discourse doesn’t have this redirection, so I guess it has to read these images URLs by itself before somewhat delivering them on the message, and so it can’t find these image?
Not 100% sure this is the cause, but since my website will be launched in a few days, I’ll figure out when the domain will be globally redirected to my server.
Canapin
(Coin-coin le Canapin)
6월 24, 2018, 10:36오전
2
Hi,
Unfortunately it was not the problem I guess.
The DNS propagation is down, but the issue remains:
Even for images with the proper markdown syntax (see the very first image link):
The topic:
Voir l’article sur le site : https://monocycle.info/monocycle-info-fait-peau-neuve/ Vous avez sans doute remarqué que votre site préféré (mais si, mais si) a fait un petit lifting. Oh, rien qui change trop profondément vos habitudes, puisque...
Temps de lecture: 4 minutes 🕑
J'aime: 6 ❤
And the WP post: monocycle.info fait peau neuve - Monocycle.info
I can be wrong but what I understand here is that images may be loading on a secure site (https) but their links are (http) What I understand from that is the server from where the post is published should be configured to fully support https first.
EDIT: but that doesn’t looks like the case, I visited the site and both WP and Discourse are configured to load over SSL. What needs to be seen is how have you configured Discourse WP plugin.
Canapin
(Coin-coin le Canapin)
6월 24, 2018, 10:57오전
4
On the first message they were indeed in http, but I have updated my website shortly after, so as you can see on the second message, they are in https.
Here’s my WP Discourse configuration:
simon
6월 25, 2018, 8:08오후
5
What happens if you try rebuilding the HTML now?
Canapin
(Coin-coin le Canapin)
6월 25, 2018, 8:20오후
6
Hi,
It doesn’t do anything.
This does appear to have been the case - posting those URLs on that site in a new message works:
https://monocycle.info/wp-content/uploads/2018/06/new-site.png
Canapin
(Coin-coin le Canapin)
6월 25, 2018, 8:25오후
8
Hmm, since I’m here, I’m a bit puzzled as the topic doesn’t appear in its own category:
Here’s the topic: Monocycle.info fait peau neuve - Actualités - Monocycle.info
Last activity June 19, but I can’t find it here: Actualités - Monocycle.info
Why doesn’t it work on this very topic then? Why doesn’t rebuilding the HTML work?
Maybe it’s a server-side cache issue?
I see it here:
Strangely it works in a new post: Monocycle.info fait peau neuve - numéro 19 - Actualités - Monocycle.info (feel free to delete that after you look)
It should have fixed this - please check the logs (https://forum.monocycle.info/logs ) which may show you more details on the error.
Canapin
(Coin-coin le Canapin)
6월 25, 2018, 8:54오후
10
Uh… I don’t have it on my list when I’m logged in:
But it appears when I’m logged out. Any idea why?
When I rebuild the HTML, all the pictures appear a split second before transforming into these broken image icons.
I have no output in the error log.
Canapin
(Coin-coin le Canapin)
7월 13, 2018, 11:35오전
11
Hi again. So, nobody has an idea of what’s happening here?
I have a similar issue. Images are just not displayed in the post in Discourse. Only the alt or title values are displayed
WP Post:
Wieviel Cannabis kann man ernten? Diese Frage stellen sich vor allem Erstgrower. Schließlich will keiner sich drei Monate lang um Pflanzen kümmern, nur um am Ende ein paar Gramm rauszuholen, die nach zwei Wochen weg sind. Die Trockenmasse zählt Der...
Discourse post:
Original Artikel: Wieviel Ertrag Ist pro Pflanze möglich? | CannabisAnbauen.net Wieviel Cannabis kann ich ernten? Diese Frage stellen sich vor allem Erstgrower. Schließlich will keiner sich drei Monate lang um Pflanzen kümmern, nur um am Ende...
Lesezeit: 1 mins 🕑
„Gefällt mir“: 7 ❤
Are you sure the image links are https? This is important if the discourse you are posting on is https.
저도 같은 질문이 있습니다. Discourse에서는 이미지가 깨져 보이지만, 메시지 미리보기에서는 정상적으로 표시되고 클릭하면 올바르게 열립니다.
angus
(Angus McLeod)
1월 14, 2025, 8:04오전
25
안녕하세요 @copymonopoly , WP Discourse 플러그인으로 생성된 게시물에 있는 깨진 이미지인가요?
깨진 이미지는 원래 서버에 저장되어 있었습니다. migrate_to_S3를 사용하여 이 문제를 해결했지만, 새로운 문제가 발생했습니다.
I encountered a problem that is the opposite of what is described in this content.In fact,all files, including images, have the Content-Disposition set to attachment, causing the files to be downloaded.
angus
(Angus McLeod)
1월 14, 2025, 8:51오전
27
이 주제는 Wordpress 플러그인으로 생성된 게시물에서 이미지가 깨지는 문제에 대해 구체적으로 다루고 있습니다. 작성하신 다른 주제에서 답변을 해주세요.