mediacms-io / mediacms

MediaCMS is a modern, fully featured open source video and media CMS, written in Python/Django and React, featuring a REST API.
https://mediacms.io
GNU Affero General Public License v3.0
2.52k stars 458 forks source link

Individual media pages completely blank #1022

Open pappastech opened 1 month ago

pappastech commented 1 month ago

Describe the issue I just installed the latest version of MediaCMS yesterday and everything was working fine. About 30 minutes ago as I was uploading content to do more testing, the individual media pages are now showing up blank. I can see all the media on the home or recent uploads pages, but when I click on a specific picture or video, the menu bar is gone and the media doesn't show up. When clicking on a video, I do hear the audio, but nothing is shown in the browser. I have tried multiple browsers, cleared cache and restarted the server without success. The debug log is empty, so not sure where to look from here.

To Reproduce Steps to reproduce the issue:

  1. Go to 'Home'
  2. Click on any media
  3. See a blank page

Expected behavior Each media page should show the intended media.

Screenshots image image

Environment (please complete the following information):

Additional context Some console debug messages from Chrome: image

pappastech commented 1 week ago

Any ideas here?

grobertson commented 1 week ago

I've now seen this twice and cannot figure out the issue either.

Page loads, then goes blank. Notifications from the app (the thin green or blue bar when something is changed or you login) are still visible though, another odd detail for troubleshooting. I'm a solid Django guy but this front end leaves me stumped pretty often.

grobertson commented 1 week ago

I may have found the issue.

@pappastech Can you post and let me know if you have SHOW_ORIGINAL_MEDIA set to False in your settings.py or in any overriding settings file.

In my case, I finally traced my own issue to an attempt to bind events for a missing element which turned out to be the "DOWNLOAD" link button. Enabling SHOW_ORIGINAL_MEDIA again and restarting mediacms with "service mediacms restart" will allow the page to fully load without errors.

If that works for you this should probably be titled "Disabling SHOW_ORIGINAL_MEDIA breaks media detail view". The proper fix appears to be adding a conditional to /frontend/src/static/js/utils/settings/media.js