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

::Spree::UserRegistrationsController.prepend self - not found on install #115

Open
maykazw opened this issue Oct 19, 2023 · 6 comments
Open

Comments

@maykazw
Copy link

maykazw commented Oct 19, 2023

Hi, i want to add social register but I have problem with install this feature - can someone explain me, what m I doing wrong ?

shop git:(main) ✗ bundle exec rails g solidus_social:install /Users/maykazw/.rvm/gems/ruby-3.2.2/gems/solidus_social-1.6.0/app/decorators/controllers/solidus_social/spree/user_registrations_controller_decorator.rb:24:in <module:UserRegistrationsControllerDecorator>: uninitialized constant Spree::UserRegistrationsController (NameError)
::Spree::UserRegistrationsController.prepend self
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Did you mean? UserSessionsController UserConfirmationsController from /Users/maykazw/.rvm/gems/ruby-3.2.2/gems/solidus_social-1.6.0/app/decorators/controllers/solidus_social/spree/user_registrations_controller_decorator.rb:5:in <module:Spree> from /Users/maykazw/.rvm/gems/ruby-3.2.2/gems/solidus_social-1.6.0/app/decorators/controllers/solidus_social/spree/user_registrations_controller_decorator.rb:4:in <module:SolidusSocial> from /Users/maykazw/.rvm/gems/ruby-3.2.2/gems/solidus_social-1.6.0/app/decorators/controllers/solidus_social/spree/user_registrations_controller_decorator.rb:3:in <main>

@kennyadsl
Copy link
Member

Hello @maykazw, is this happening on a fresh install?

@thomasbromehead
Copy link

thomasbromehead commented Feb 7, 2024

Hello @kennyadsl
Having the same issue, in fact lots of ::Spree uninitialized constants in a lot of the solidus-contrib repos.
Tonight tried installing solidus_static_content and solidus_reviews and get the same problem, I will create an issue on each repo domani.
I'm on solidus 4.1.3, rails 7.0.8 and ruby 3.2.2
@maykazw Did you resolve this?

@kennyadsl
Copy link
Member

Maybe it's already fixed by #116? If you have a chance, can you please try and let me know if those are related?

@dtdionne
Copy link

I just did a fresh solidus install, worked great. Then I tried to install social straight away and got the following similar error:

bundle exec rails g solidus_social:install
/usr/share/gems/gems/solidus_social-1.6.0/app/decorators/controllers/solidus_social/spree/user_registrations_controller_decorator.rb:24:in <module:UserRegistrationsControllerDecorator>': uninitialized constant Spree::UserRegistrationsController (NameError) Did you mean? UserSessionsController UserConfirmationsController from /usr/share/gems/gems/solidus_social-1.6.0/app/decorators/controllers/solidus_social/spree/user_registrations_controller_decorator.rb:5:in module:Spree'

@dtdionne
Copy link

dtdionne commented Feb 15, 2024

Whats odd is I recall either this exact same error, or one so very similar back in sept in the prior version of SS. A friend fixed it, that fix now appears in 1.6...but 1.6 is again broken, in this exact same place, but just in a different way.

@dtdionne
Copy link

dtdionne commented Feb 17, 2024

Yeah, sooooo uhhhh, my bad I think...this works fine with the depreciated frontend, at least it installs.

If that too suddenly quits working in the next 6 months we know the solidus folks are dishonest dirtbags trying to leverage "open source" for any other reason than its intent.

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

4 participants