solidusio-contrib / solidus_social

Building block for social authentication in your Solidus store.
BSD 3-Clause "New" or "Revised" License
27 stars 52 forks source link

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

Open maykazw opened 10 months ago

maykazw commented 10 months ago

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 commented 10 months ago

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

thomasbromehead commented 7 months ago

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 commented 7 months ago

Maybe it's already fixed by https://github.com/solidusio-contrib/solidus_social/pull/116? If you have a chance, can you please try and let me know if those are related?

dtdionne commented 7 months ago

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'

dtdionne commented 7 months ago

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 commented 6 months ago

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.