Daniel-KM / Omeka-plugin-UniversalViewer

Plugin for Omeka that adds the IIIF specifications in order to act like an IIPImage server, and the UniversalViewer, a unified online player for any file. It can display books, images, maps, audio, movies, pdf, 3D views, and anything else as long as the appropriate extensions are installed.
Other
23 stars 20 forks source link

images not loading #54

Open ArdenKirkland opened 3 years ago

ArdenKirkland commented 3 years ago

Thank you so much for this great plugin, which worked beautifully until just recently!

I've been doing all I can to try to resolve this on my own, but I finally have to admit I'm stumped. About 2 weeks ago I noticed that the Universal Viewer wasn't loading images properly. You can see what I mean at https://vccc.vassarspaces.net/items/show/1155. I've combed through past issues here and in Omeka forum posts and other solutions haven't worked for me. Here's what I've tried:

  1. Removing custom config.json for UV in theme
  2. Checking the box in configuration settings to force standard JSON
  3. Deactivating all plugins but UV
  4. Changing custom theme to standard Thanks Roy theme
  5. Uninstalling and reinstalling UV plugin
  6. Combing through my own recent edits to see what might have affected it, with no obvious culprits

With all these steps, it has continued to throw errors when trying to load images. My next step is to roll back to a backup from when it was still working, but I have made some substantial changes to exhibits which I don't want to have to redo if I can avoid it.

Can you please take a look at the many errors that pop up in browser dev console, to help me understand what has gone wrong?

mkclark03 commented 2 years ago

Hi Arden,

I noticed that you were able to resolve the issue with images not showing up in Universal Viewer. If possible, would you mind sharing how you fixed it? I'm trying to set up UniversalViewer for my library's archives and I'm also running into trouble. Thanks!

ArdenKirkland commented 2 years ago

Sorry I never posted an update here, @mkclark03 ! I did post an update in the Omeka forums: https://forum.omeka.org/t/images-not-loading-in-universal-viewer-plugin/13956/4

copying a bit of that here: I finally did just roll back to the last backup of my site when UV was working, and retrace my steps since then, one by one. Lo and behold, it was my own new custom shortcode plugin that was the conflict! I had initially de-activated each plugin to look for conflicts and nothing showed up, but in this case I had to actually uninstall it. In the past, conflicts have been apparent just by deactivating, which is why I didn’t think that was the conflict. So, lesson learned!

Without that plugin installed, UV worked just fine again. So then I was able to roll forward to my most recent backup and uninstall that plugin without losing any of my other edits. Then I went back to the plugin to debug, and it really was just an issue of extra whitespace and indentation. I tidied those up, and then it worked just fine.

I hope that helps!