spree-mail-chimp
spree-mail-chimp copied to clipboard
uninitialized constant Hominid::ListError
I tried installing gem, and got the error
uninitialized constant Hominid::ListError
I forked spree_mail_chimp, inserted
require 'hominid'
at top of subscriptions_controller.rb
...and still got the same error.
I changed that to Hominid:APIError ...which eliminated that error but then got an error on
self.class.benchmark
I commented that out, including the begin end, ...but then got an error for uninitialized constant on
MailChimpSync::Sync
I did not find the above anywhere, at which point I stopped.
I also tried earlier version, 2.2.0 of hominid because after some research I discoverd that did have Hominid::ListError, but no glory there either.
Could really use some help or ideas on how to get this working.
Thanks!
Eric
you had the right approach, but MailChimpSync::Sync
is still there just means the code was not well tested. That's something left over from a previous version of the gem. I merged some pull requests never got around to testing and it looks like you found an issue, the contribution was unfortunately broken.
I might consider rewriting this at this point using the gibbon gem, especially since it was done without tests
Do you know the last commit which was working with Spree 1-1-Stable or 1.x.x?
Also, looked at hominid again, so during initialization it is creating instance of MailChimp API, yes? ...and that is where MailChimpSync::Sync i originating from. If that is case, curious that it is not working.
Hi Sam,
If you are interested in re-writing this, I created a new repository spree_mailchimp_gibbon that is a basically a fork of your project but using gibbon. I have stopped working on it at the moment, but would be a good start of a re-write.
I could not git the modal dialogue box working in your spree_mail_chimp, nor the spree_mail_chimp that I forked from @nebulab. His version is working, but also with broken dialogue box. After quite a bit of research I believe I discovered the reason for this is that it is based on the SimpleModal jQuery plugin by Eric Martin: http://www.ericmmartin.com/projects/simplemodal/ which is missing in both versions of spree_mail_chimp. Interested if that is a wrong conclusion.
I am process of getting this to work with @nebulab spree_mail_chimp fork.
Cheers,
Jet
+1 for this fix