Support #16291


Images coming up blank in Media Library

Added by Marilyn Weber 3 months ago. Updated 3 months ago.

Priority name:
Category name:
Site cloning
Target version:
Start date:
Due date:
% Done:


Estimated time:


Via ZD, Benjamin Swett writes:
"On a cloned site, new images I try to upload to the media library are coming up blank in the media library and I am unable to use them as new site headers. Am I doing something wrong or is there something wrong with this cloned site? Thanks so much for your help."
The site is I attach an image of the empty items. LMK what else would be helpful. Thanks!


Annotation 2022-06-23 143422.jpg (101 KB) Annotation 2022-06-23 143422.jpg Marilyn Weber, 2022-06-23 02:35 PM

Related issues

Related to CUNY Academic Commons - Feature #12134: Site cloningResolvedJeremy Felt2019-11-22

Actions #1

Updated by Raymond Hoh 3 months ago

Actions #2

Updated by Raymond Hoh 3 months ago

  • Category name set to Site cloning
  • Status changed from New to Staged for Production Release
  • Assignee set to Raymond Hoh
  • Target version set to 2.0.2

Hi Marilyn,

I was able to determine the problem. I've fixed the issue on the site by removing an .htaccess file that shouldn't have been cloned to the new site's upload directory.

I've added Jeremy and Boone as watchers.

The issue is due to cloning a private site. For private sites, we add an .htaccess file to the site's upload directory to prevent hotlinking to the media asset for non-logged-in users. When a private site is cloned, it also copied the previous site's .htaccess file, which caused the broken images and wrong redirection to the previous site.

To fix this, I opted to delete the new .htaccess file if it was cloned from the previous site and re-generating the .htaccess file if the new site is private after the initial attachments are copied over:

I'm not sure how many cloned, private sites are affected by this. We should have heard more reports if that were the case.

Actions #3

Updated by Marilyn Weber 3 months ago

Thanks, Ray!

Actions #4

Updated by Boone Gorges 3 months ago

  • Status changed from Staged for Production Release to Resolved

Also available in: Atom PDF