Coder Social home page Coder Social logo

Comments (10)

JDutil avatar JDutil commented on June 23, 2024

Yes this was a spree_social issue that was resolved yesterday. As suggested in the spree_social issue opened you should just need to run bundle update to make sure you have the latest spree_auth_devise and spree_social referenced in your Gemfile.lock

from spree_auth_devise.

swapab avatar swapab commented on June 23, 2024

@JDutil Thanks a lot

bundle update didn't updated my spree_auth_devise version, am still getting the same error

from spree_auth_devise.

JDutil avatar JDutil commented on June 23, 2024

As I mentioned before make sure your spree_social is using the latest commit for the 1-3 branch 13986074378cd53344250df9823fad5e628f147a

from spree_auth_devise.

hdtr avatar hdtr commented on June 23, 2024

I still get the same error with current versions of spree_social and spree_auth_devise in 1.3 branch.

rails -v
3.2.13
spree -v
1.3.2

Bundle update result: https://gist.github.com/zrl3dx/1b86e3655a936b37c511 - i have pointed explicitly to last commits but still no effect. I checked manually code in my project and compared it with git versions and it's identical, so i suppose i have the latest version, but why i still get that error?

Error and stacktrace here, it's almost identical as above: https://gist.github.com/zrl3dx/fea1916ea113750cd820

from spree_auth_devise.

srprasanna avatar srprasanna commented on June 23, 2024

any luck on this issue ?? How do we go about fixing the issue.

from spree_auth_devise.

hdtr avatar hdtr commented on June 23, 2024

I'm using some workaround (probably its caused by simple name change in spree), the following code fixes that error for me:

before_filter :fix_spree_user_var, :if => Proc.new {|p| p.spree_current_user.present?}

def fix_spree_user_var
  @spree_user = spree_current_user
end

from spree_auth_devise.

radar avatar radar commented on June 23, 2024

I am unable to reproduce this issue today. If you're still having this issue, please let me know.

from spree_auth_devise.

hdtr avatar hdtr commented on June 23, 2024

I've created repo with that bug, you can look at it here: https://github.com/zrl3dx/spree_error

What to do to see error:

  1. Create an account.
  2. Add any authentication method in admin panel or override first line in users/_social.html.erb partial (active_authentication_methods? check).
  3. Click 'My account' link.

You should get same error (no @spree_user at that scope) as mentioned above.

from spree_auth_devise.

rounders avatar rounders commented on June 23, 2024

I'm also seeing the same error as @zrl3dx when using the latest 1-3-stable branches of spree_auth_devise and spree_social

The issue seems to be that @spree_user isn't set. However, @user does get set.

from spree_auth_devise.

radar avatar radar commented on June 23, 2024

This seems to be a spree_social bug. There is an open issue for that there: spree-contrib/spree_social#92.

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.