Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uninitialized constant CamaleonCms::Admin::AdminController Error if I use cloudfront URL & while trying to delete Images #402

Closed
mazharoddin opened this issue May 26, 2016 · 8 comments

Comments

@mazharoddin
Copy link
Contributor

mazharoddin commented May 26, 2016

Hi @owen2345,

I am getting "uninitialized constant CamaleonCms::Admin::AdminController" error if I use cloudfront URL in filesystem settings, I observed same error if I try to delete images in 'media' tab.

ActionController::RoutingError (uninitialized constant CamaleonCms::Admin::AdminController):
  activesupport (4.2.5) lib/active_support/inflector/methods.rb:263:in `const_get'
  activesupport (4.2.5) lib/active_support/inflector/methods.rb:263:in `block in constantize'
  activesupport (4.2.5) lib/active_support/inflector/methods.rb:259:in `each'

@mazharoddin mazharoddin changed the title uninitialized constant CamaleonCms::Admin::AdminController if I use cloudfront URL & while trying to delete Images uninitialized constant CamaleonCms::Admin::AdminController Error if I use cloudfront URL & while trying to delete Images May 27, 2016
@owen2345
Copy link
Owner

@mazharoddin Please try again and confirm me if the problem persist with the version 2.2.0 because I tried many times and it works well for me.

Regards,

@mazharoddin
Copy link
Contributor Author

yes @owen2345 ..I was getting this exception with latest version, let me re-create it.

@mazharoddin
Copy link
Contributor Author

Hi @owen2345, yes I am able to recreate this issue with latest version aswell, you can use https://github.com/mazharoddin/camaleon_cms_debug repository to recreate this issue

@owen2345
Copy link
Owner

@mazharoddin could you please send more details and screenshots to reproduce the error?
I can not reproduce the problem in your repo too.

@mazharoddin
Copy link
Contributor Author

Sure @owen2345 , please find below for some screen shots, first I am enabling amazon s3 and cloudfront using settings, then later I am trying to upload image using media, operation shows as completed, but after upload I am unable to access the image. If I click on image link I am getting "uninitialized constant CamaleonCms::Admin::AdminController" error.
screen shot 2016-06-18 at 20 49 36
screen shot 2016-06-18 at 20 54 14
screen shot 2016-06-18 at 20 55 36
screen shot 2016-06-18 at 20 59 06

@owen2345
Copy link
Owner

@mazharoddin
I am so sorry, but I can not reproduce. Please contact me on skype "owen-2345" to review together.
Regards,

@mazharoddin
Copy link
Contributor Author

Sure @owen2345, np. Thanks for debugging it. Let me check if there is something wrong with my S3/coudfront images.
Sure I will contact you on skype to review together.

@mazharoddin
Copy link
Contributor Author

Hi @owen2345,
This issue was due to typo, I was using Cloudfront URL directly instead of appending "https://" to it.
Now I am able to access photos using Cloudfront URI. Sorry for the confusion. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants