Coder Social home page Coder Social logo

ArgumentError:wrong number of arguments (given 0, expected 1) on Spree::User#send_confirmation_instructions (spree_auth_devise 4.3.0) about spree_auth_devise HOT 6 CLOSED

hoshinotsuyoshi avatar hoshinotsuyoshi commented on July 29, 2024
ArgumentError:wrong number of arguments (given 0, expected 1) on Spree::User#send_confirmation_instructions (spree_auth_devise 4.3.0)

from spree_auth_devise.

Comments (6)

damianlegawiec avatar damianlegawiec commented on July 29, 2024

@hoshinotsuyoshi please run bundle update spree_auth_devise - this will install 4.3.1 with a fix for this error. Thank you fo reporting it!

from spree_auth_devise.

hoshinotsuyoshi avatar hoshinotsuyoshi commented on July 29, 2024

Hi @damianlegawiec , Thank you for your quick fix!

I have tried spree_auth_devise 4.3.1.
But spree4.2.0.rc2, my own spree app, still seems to have the same problem.

( 👀 👍 #515 )


However, I haven't tried spree/spree 's master branch yet.

I'll report back when I've finished trying it out!

As far as I can tell, the spree/spree master branch now requires rails 6.1 (as opposed to 4.2.0.rc2(requires rails 6.0)).

This rails update process will take some time, so please be patient!

from spree_auth_devise.

damianlegawiec avatar damianlegawiec commented on July 29, 2024

@hoshinotsuyoshi master branch does not require rails 6.1, it's still possible to use it with rails 6.0

from spree_auth_devise.

hoshinotsuyoshi avatar hoshinotsuyoshi commented on July 29, 2024

@hoshinotsuyoshi master branch does not require rails 6.1, it's still possible to use it with rails 6.0

Oh, I'm sorry! You are right. 🙇

I've just finished trying.

from spree_auth_devise.

hoshinotsuyoshi avatar hoshinotsuyoshi commented on July 29, 2024

@damianlegawiec

Spree master branch ( spree/spree@d3c0e86 ) and spree_auth_devise 4.3.1 still seems to have the same problem in my own spree app. 😭

As backtraces says;

  1) Spree::User# (**masked**)
     Failure/Error: let!(:user) { create(:user) }

     ArgumentError:
       wrong number of arguments (given 0, expected 1)
     # /usr/local/bundle/gems/spree_auth_devise-4.3.0/app/models/spree/user.rb:45:in `send_confirmation_instructions'
     # /usr/local/bundle/gems/devise-4.7.3/lib/devise/models/confirmable.rb:183:in `send_on_create_confirmation_instructions'
     # /usr/local/bundle/gems/factory_bot-6.1.0/lib/factory_bot/evaluation.rb:18:in `create'

I want to talk about this line:

/usr/local/bundle/gems/devise-4.7.3/lib/devise/models/confirmable.rb:183:in `send_on_create_confirmation_instructions'

devise's model:

https://github.com/heartcombo/devise/blob/v4.7.3/lib/devise/models/confirmable.rb#L52
https://github.com/heartcombo/devise/blob/v4.7.3/lib/devise/models/confirmable.rb#L182-L184

the confirmable.rb line-183 #send_confirmation_instructions is not passed any arguments.

spree_auth_devise's model:

But spree_auth_devise user.rb 's #send_confirmation_instructions is defined as that receives one argument.

def send_confirmation_instructions(current_store)


Therefore, modifying code of controller does not solve this problem, I think.

from spree_auth_devise.

hoshinotsuyoshi avatar hoshinotsuyoshi commented on July 29, 2024

I can confirm now this problem was solved! ( tested on 812ca85 , and spree4.2.0.rc5 ) 😄

Thank you for your maintaining! @damianlegawiec @aplegatt

from spree_auth_devise.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.