samvera-deprecated / sufia

[DEPRECATED] Sufia: a fully featured, flexible Samvera repository front-end.
http://sufia.io/
Other
111 stars 78 forks source link

Error when adding a new work #3012

Open scholarworks opened 7 years ago

scholarworks commented 7 years ago

Descriptive summary

On a fresh install with the following gems

gem 'sufia', github: 'projecthydra/sufia', branch: 'master'
gem 'flipflop', github: 'jcoyne/flipflop', branch: 'hydra'
gem 'hydra-role-management'

I am getting an error saving a new work:

https://gist.github.com/scholarworks/c374d29ed7fe75c9870926c3de786d35

screenshot 2017-01-11 12 20 33

jcoyne commented 7 years ago

Have you tried restarting your dev server? Could this be an error when autoloading after making a change in one of the gems?

scholarworks commented 7 years ago

@jcoyne - Yeah, I'm getting this after a restart on a fresh install. Just restarted again. Haven't changed any gems past the initial install.

mjgiarlo commented 7 years ago

FWIW, we've seen this in Sufia ever since we based it atop CC, but I've only ever seen it in development mode. Try the production environment, or Hyrax. ;)

scholarworks commented 7 years ago

@mjgiarlo - yeah, this is in development - haven't set the environment to production yet. Will work on that soon as well, but sticking with development during testing/demos has been a lot easier than production. Thanks.

scholarworks commented 7 years ago

@mjgiarlo - Confirmed I do not see this when running in the production environment. Which I would guess means it's not a blocker, but should still be addressed if possible as it's a pain when getting started.

mjgiarlo commented 7 years ago

Thanks, @scholarworks!

jcoyne commented 7 years ago

I wonder if switching require 'curation_concerns' to require_dependency 'curation_concerns' would fix this problem. See http://apidock.com/rails/ActiveSupport/Dependencies/Loadable/require_dependency