Insert Link Dialog shows files that do not exist

Tomaso Pye asked on June 28, 2016 16:30

I currently have a problem where one of our Kentico instances is showing files in the media library that do not exist, when using the insert link dialog from the rich text editor. This is our 3rd Kentico application, and this is the first time seeing this.

Here is a screenshot of the media library alt text

Here is a screenshot of the insert link dialog using that same media library alt text

The deleted documents return a 404 when you click on them, since they do not exist. I'm sure the files are gone since the media library will show the yield icon and offer an import action if the file is on the server but not in the db.

I have used smart search to see if there are any references to these files, thinking that maybe there is an old link on the site, and that is why it shows up as a valid link, but I didn't find anything.

This is occurring on our staging server, which is a single server. We are running Kentico 8.2.31. Googling did not bring up anything related to this.

Does anyone have any idea what is happening?

Thanks in advance for any help!

Recent Answers


Joshua Adams answered on June 28, 2016 16:39

Have you deleted files that would be under CMS/{SiteName} or made any change which would remove that folder or its contents? I believe by default the media library will place files under that location.

0 votesVote for this answer Mark as a Correct answer

Tomaso Pye answered on June 28, 2016 16:50

Actually we have things setup so the media libraries are under a specific folder for each site. If there is a file in the directory, media library will show an import option because it is not in the db. I don't see this, so I'm certain the file does not exist. Also clicking on the links or the view icon from the Insert Link dialog returns a 404, so again I know the file is not there.

I'm wondering if a table got out of synch somehow. I do have aggressive caching, but this has persisted after an app restart.

0 votesVote for this answer Mark as a Correct answer

Roman Hutnyk answered on June 28, 2016 19:43

Are you running web farm? If yes, I'd check if web farms sync tasks are being processed.

Otherwise I'd try to clear Kentico cache and see if Media library or insert link dialog still showing non-existing files. If clearing a cache helps - check on cache setting.

1 votesVote for this answer Mark as a Correct answer

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