Comments (10)
Deface shouldn't be able to do any damage here.
from solidus_social.
OK my colleague and I has figured out the issue. It's due to rails 5 reload order change.
In Rails 5, when the reload happens, it's following the following steps:
- unload the classes;
- load the Routes first; if there're any object not loaded / unloaded, load them
- and then reload the classes & decorators.
However, the decorator in SolidusSocial is trying to add in omniauthable
into the User class, by re-defining devise in the class. Since it's not loaded at the time when routes is defined for devise, the routes would complain (therefore u can see the error above).
There's a quick fix: force the re-loading of models & decorators, before the routes. I've included the fix in this commit.
from solidus_social.
Are you experiencing this in development or production?
(That following was misclick. Absolutely did not mean to close your issue
from solidus_social.
@jarednorman Development. Just started, and this started happening. Do you want the full error trace or my detailed Gemfile (basic, though, as I said)? Any other info I can provide?
from solidus_social.
Stack trace and Gemfile[.lock] might help. A link to the repo if it's public would be fine too.
from solidus_social.
Here they are!
Stack trace:
https://gist.github.com/MindRave/28b9fca98fcf750f4bc724d99609a109
Gemfile.lock
https://gist.github.com/MindRave/9ee0b6b0eb8dfc45b6041e51b5cc3ed0
from solidus_social.
Interesting. Looks like some kind of code reloading issue. You aren't doing anything unusual in how you're decorating or handling Spree::User
(if you're playing with it at all)?
from solidus_social.
Nothing special, no. I just started playing around with Solidus and added an override to test Deface, but it's a standard Spree override (app/overrides/temp_text.rb), nothing fancy...
Deface::Override.new( virtual_path: 'spree/user_registrations/new', name: 'temp_text', insert_after: '[data-hook="login_extras"]', text: 'Testing text', disabled: false )
from solidus_social.
@jarednorman Decided to try with Spree and spree_social. Getting the same error (just by adding a Deface override)... Either it's something on my end or the spree_social gem (if I understand correctly, the solidus_social is a fork of spree_social). I'll either disable the social auth for now, or try and find another solution altogether (developing like this is impossible
If you don't have any ideas, thank you for your help!
from solidus_social.
For anyone interested in looking into this issue further, I've created a vanilla solidus and replicated the issue: https://github.com/flyfy1/VanillaSolidus.
Basically, as long as I include the solidus_social
gem, the error would popup.
from solidus_social.
Related Issues (20)
- Remove omniauth-facebook HOT 2
- View partial _configuration_menu overrides solidus file HOT 2
- facebook and google login not working HOT 6
- solidus_social:install results in `method_missing': undefined method `add_routes' for Spree::Core::Engine:Class (NoMethodError) HOT 1
- Error uninitialized constant OmniauthCallbacksController HOT 11
- Translation missing because scoped weirdly: en.authentications.spree.destroy HOT 2
- Dependabot can't resolve your Ruby dependency files
- Dependabot can't resolve your Ruby dependency files
- Dependabot couldn't find a Gemfile-local for this project
- Guest cart replaces authenticated with its content HOT 1
- Dependabot can't resolve your Ruby dependency files
- Dependabot can't resolve your Ruby dependency files
- Error while integrating Twitter log-in HOT 1
- Twitter Login OAuth::Unauthorized (400 Bad Request) HOT 4
- Prepare Solidus Social for Solidus 3.0 HOT 1
- Dependabot can't resolve your Ruby dependency files
- Dependabot can't resolve your Ruby dependency files
- Dependabot can't resolve your Ruby dependency files
- Facebook login not working for me HOT 1
- Navigation to configuration not found HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from solidus_social.