-
Notifications
You must be signed in to change notification settings - Fork 207
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
Deployment: uninitialized constant ActiveShipping::Base #26
Comments
I think you mean Rails 3.2.3 |
spree_active_shipping also install alongside 1.1 beta, and so I don't know how you got this to work. |
I just fixed the spree_active_shipping issue with this commit: 80387e4 ... except that now active_shipping breaks with undefined method class_inheritable_accessor. LE SIGH. |
yes, you are correct, got a dyslexic on the version, it is 3.2.3. So I've update my Gemfile to pull from git now. Is your checkin just to fix the dependency information? |
I've updated the README for Could you try doing what the README now recommends and let us know how that goes? Thanks. |
Getting the same error... Spree section of Gemfile: Gems for Spree Commercegem 'spree', :path => 'gems/spree' |
rake aborted! Boom! I'm getting it too on Heroku. FUN! |
This is probably fixed with @8c68d887d73727ad435bf5b34797bebd52683eba. I'm just testing it on Heroku now. |
Nope, not fixed. Seems like active_shipping has changed quite a bit. |
I'm guessing you see what I see: Let me know if I can help in any way |
Ok, now I think it's really fixed with @09763f7. Please let us know how things go. |
Just tried it, back the the original error:
|
This problem is because of the non-deterministic load order on your system which is produced by This is what was happening. Heroku and CentOS machines load it in non-deterministic orders. Therefore we need to sort and then load, or alternatively require the class-defining file at the top of the class. I've gone with sort here, as that's easiest. I think this is really truly fixed now in @b6ee9b55b8f8a4068d4c77700b43a1fde6e97f72. The last "fix" was because it worked on Heroku the first time I tried it, and so I honestly thought it fixed it. This time I'm sure. |
we're good. Thanks! |
Success! Great to hear :) |
It doesn't seem to be working for me, I'm still getting this error:
|
@jclay Please provide more information as to how you're getting this error please. Include Spree version, output of |
I would be glad to! bundle show spree_active_shipping yields: /usr/local/rvm/gems/ruby-1.9.2-p318@jdhnew/bundler/gems/spree_active_shipping-b6ee9b55b8f8 I'm also running spree 1.0.3. This environment works fine when I'm running on my local development machine, however when I push to my deployment VPS and run bundle install/update and try to run rails s, I get the uninitialized constant ActiveShipping::Base (NameError) error. |
I was getting this error as well. Changing line 24:
to:
Fixed the issue. |
Oh geez, there's more than one?! One moment. |
Fixed in ^. Thanks @iloveitaly! |
Working perfectly now. Thanks @radar and @iloveitaly |
How does this look in Spree 0.70.x? I'm still getting the error when deploying. |
It is still most likely broken for that version. We are no longer officially supporting 0.70 now that 1.1 is out. Our support policy is new feature development & bug fixes on the current If you would like this extension to work on 0.70 you will need to fork it and patch it yourself. |
Tried deploying an app in development to production on both Heroku and a clean install CentOS and I'm getting the same issue.
Using RVM, Ruby 1.9.2p318, Rails 2.3.2. The Spree version is the 1.1 beta. Replication is fairly simple check project into github and then try to deploy on Heroku. The push to Heroku works, its when you try to run rake to create or migrate the DB is where it error out.
Here's the error:
rake aborted!
uninitialized constant ActiveShipping::Base
No very helpful.
The text was updated successfully, but these errors were encountered: