Blog Post Images Not Displaying

Adam Ivancic asked on September 29, 2016 18:26

I can successfully upload an image to a blog post using the "Post Image" option from the Form tab on the new post, but then I just get a broken image on the actual published blog post. If I try to go to the image URL, I get a 404 error.

The image URL from the Post Image option is: [domain]/cms/getattachment/bf6e3aa1-f233-4ee2-bf8f-0d21d765a5b0/[Image-Name].jpg?versionhistoryid=18510&chset=49a463cf-f713-4881-aa00-29c30ab3d7d9

The URL from the broken image on the actual post is: [domain]/getattachment/bf6e3aa1-f233-4ee2-bf8f-0d21d765a5b0/?maxsidesize=250

The GUID for the image matches, so I'm not sure why the image won't actually display on the blog post. Anyone have any ideas?

Correct Answer

Juraj Ondrus answered on October 3, 2016 13:19

Hi,
I believe we were in touch over the email regarding this issue so I am posting the solution here for reference:

In Kentico 9, for example the transformation method GetImage requires additional column to resolve the image path and name correctly. In this case it is the NodeAlias column.

So, you need to add the NodeAlias column to the web part configuration - Columns property.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Joshua Adams answered on September 29, 2016 18:36

Looks like you are missing the /cms/ part of the url. Add that before in the transformation and see if that makes the path correct.

0 votesVote for this answer Mark as a Correct answer

Adam Ivancic answered on September 29, 2016 18:49 (last edited on September 29, 2016 18:52)

I tried that, but I still get the 404 error when adding cms to the path. Also, this only seems to be happening in version 9. In our old version 8 site, this process works without issue.

0 votesVote for this answer Mark as a Correct answer

Joshua Adams answered on September 29, 2016 19:06

In your site settings, do you have redirect documents to main extension checked? Did your web.config file change after getting to version 9? Maybe missing the runAllManagedModules item from the web.config?

0 votesVote for this answer Mark as a Correct answer

harshal bundelkhandi answered on October 6, 2016 08:56

I am uploading the images on Amazon s3 storage. in transformation i am getimage method to call the images.but while exporting & importing website to from dev to stg server server . i am getting broken image url link.

can you please suggest for the same.

Regards, Harshal

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.