Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I finally managed to installl this module.When I visit rules page,some rules have errors.For example for the "Subscription started (update)" rule I have this message:Error: The data type of the configured argument does not match the parameter's date requirement.
Same issue for the Subscription validity changed rule and Subscription started (insert) rule.
Also for the Apply bought subscription time I take this error :Error: The utilized component rules_commerce_sp_line_item_is_subscription_product fails the integrity check.
How can I make these rules correct?
Thanks
Comment | File | Size | Author |
---|---|---|---|
#54 | commerce_sp-missing_exports-1522018-53.patch | 29.69 KB | mrconnerton |
#48 | rules_screenshot.jpeg | 113.23 KB | Liliplanet |
#37 | 1522018-commerce_sp_missing_export-37.patch | 9.33 KB | mh86 |
#22 | Untitled.png | 25.55 KB | likewhoa |
#18 | fixed.png | 48.83 KB | likewhoa |
Comments
Comment #1
piriya33 CreditAttribution: piriya33 commentedI'm having the same error here.
Comment #2
piriya33 CreditAttribution: piriya33 commentedI've attached a screenshot just in case anyone who could help us with this would like a better picture.
Comment #3
fagoThis is caused by a recent change in date.module, see #1266688: Support microdata in date fields. The revert in date.module over there fixes the problem.
Setting to postponed until we know how date.module continues.
Comment #4
fagodate fixed it, thus update to date 2.5
Comment #6
Tribal CreditAttribution: Tribal commentedI am still receiving an issue, even after updating to Date v2.5. Please see attachment.
Comment #7
Anonymous (not verified) CreditAttribution: Anonymous commentedI can confirm with @Tribal that the issue still exists.
Comment #8
jpstrikesback CreditAttribution: jpstrikesback commentedSame here with Date 7.x-2.5+9-dev
Comment #9
esha CreditAttribution: esha commentedSame here, but it seems to be fixable by enabling the "Cart" and "Product pricing" modules
Comment #10
tom-d CreditAttribution: tom-d commentedSame problem with date 7.x-2.5+15-dev.
Enabling "Cart" and "Product pricing" does not fix the problem.
Comment #11
likewhoa CreditAttribution: likewhoa commentedconfirmed here with both stable/dev releases of date
Comment #12
likewhoa CreditAttribution: likewhoa commentedadding updated screenshot to show issue at hand. This prevents subscriptions from functioning. Raising Priority level to Major.
Comment #13
nigelw CreditAttribution: nigelw commentedThis bug essentially makes the 2.x version completely unusable. I would go ahead and use the 1.x and wait to update later, but on the project page it says there isn't an upgrade path between the two versions. fago, maybe if you have some time while you are in Munich you can save us? :)
BTW, loved the "There Must be Rules" session you did.
Comment #14
loziju CreditAttribution: loziju commentedI did the following to remove all errors in rules: add a boolean field_commerce_sp_skip_expire in user. I suspect fago forgot to export this field? From the rules description, I can only guess that this is a boolean field.
Fago could you please confirm my finding above?
I haven't tested the functionality yet though. Btw, I'm using date v2.6 and so far it doesn't seem to be the root cause for errors in rules. It's good if others can confirm on this too.
Comment #15
likewhoa CreditAttribution: likewhoa commented@loziju i couldn't reproduce this on my end.
Comment #16
loziju CreditAttribution: loziju commented@likewhoa: I took a look at the screenshot you submit in #12. Seems like you have field_commerce_sp_validity error too. Is this field present under account?
Some experiments you can try:
- revert all features to default (it will still say overridden even after reverting, not so sure why this is so)
- update the date module (I'm using 2.6 now)
- disable the module, uninstall, make sure all fields, commerce_sp subscription product are all deleted and reinstall
Update on my part: with #14, I manage to get commerce_sp and commerce_sp_paypal to run on my site now. Rules and rules schedules are now triggered correctly. It doesn't seem to be caused by date module (I'm using 2.6). Sorry, unfortunately I don't really have time now to learn how to create patch and put it here, so #14 is the only contribution I can make as of now.
Comment #17
likewhoa CreditAttribution: likewhoa commented@loziju seems to have worked and now rules seems fine but i will need to test functionality...
Comment #18
likewhoa CreditAttribution: likewhoa commentedattaching screenshot and lowering priority to normal. This does not seem to be an issue with the date module but with the missing field in #14 since after adding that field and reverting the feature everything seems fine. Will test and report back.
Comment #19
calmher CreditAttribution: calmher commentedConfirming that #14 above solved the Rules error for me (I also have Date Module v2.6). Thanks!
Comment #20
nigelw CreditAttribution: nigelw commented@likewhoa how did the testing go? Adding the field fixes the Rules errors, but does it actually make the subscriptions work?
Comment #21
likewhoa CreditAttribution: likewhoa commented@nigelwaters I haven't had time to test functionality yet but will sometime this week.
Comment #22
likewhoa CreditAttribution: likewhoa commenteddoing a test transaction i encounter some rules data set errors. Attached is a screenshot from watchdog and I will paste each rules error pages below.
So in short, commerce_sp seems broken on my end and this is a fresh install with only modification noted in #14.
Comment #23
nigelw CreditAttribution: nigelw commentedIn my testing it appears that manually adding the field (suggested in #14) doesn't fix the issue. Tested on a clean install. Fago, any chance you can enlighten us as to what may be happening?
Comment #24
likewhoa CreditAttribution: likewhoa commented@nigelwaters you need to revert the feature then add the field after then rules errors will disappear but functionality doesn't work anyways because of the mentioned dataset errors in #22
Comment #25
bmx269 CreditAttribution: bmx269 commentedWhat do you set for the Boolean values? 0 and 1?
Comment #26
nigelw CreditAttribution: nigelw commentedI sent a message via d.o to fago a couple of weeks ago to see if I could provide a bounty to get this fixed and did not hear anything back. If anyone has any ideas how to get the 2.x version fixed and running again, send me a message via my contact form. I'll offer up a bounty to get it done.
Comment #27
nigelw CreditAttribution: nigelw commentedI realized that I forgot to enable my personal contact form on my D.O. Account. If anyone knows how to fix the 2.x version of this module, I am willing to throw out a bounty. Please contact me via, my now enabled, contact form. :) http://drupal.org/user/1036596/contact
Comment #28
tribsel CreditAttribution: tribsel commentedi have the same problem... additionaly, after i manually added boolean field to account, i still have one rule broken:
Error: The utilized component rules_commerce_sp_line_item_subscription_product_apply fails the integrity check. in "Apply bought subscription time" reaction rule.
Comment #29
mh86 CreditAttribution: mh86 commentedAs mentioned in #14, the export of the skip-expire field is missing.
Comment #30
Andrew211 CreditAttribution: Andrew211 commentedHey, will probably laugh at this question one day, can someone explain how to:
add a boolean field_commerce_sp_skip_expire in user
as outlined in #14
Appreciated.
Comment #31
tribsel CreditAttribution: tribsel commented@Andrew211 go to configuration -> people -> account settings -> manage fields
url is /admin/config/people/accounts/fields
and add new field called field_commerce_sp_skip_expire. you will see a dropdown with available field types, choose boolean and save.
Comment #32
danreb CreditAttribution: danreb commentedHaving hard time making this module to works too, upon searching for solutions, just found another feature module that simply works here and it can assign different role for different subscriptions products.
Comment #33
likewhoa CreditAttribution: likewhoa commented^ is absolutely wrong regarding commerce_sp as it DOESN'T have any role functions built into it's feature. You have to implement this in rules yourself which is VERY flexible.
I have commerce_sp all configured with commerce_sp_paypal and it's working very well, even with recurring payments through paypal. It just works.
Comment #34
tribsel CreditAttribution: tribsel commented@likewhoa yeah, it works... but not quite for a bit less experienced ;) i also have a lot of problems with this, eg. rules not firing or firing and show errors like Invalid data value given... same as you mentioned above. did you solve it? how?
Comment #35
likewhoa CreditAttribution: likewhoa commented@tribsel various steps including reverting feature,uninstall/reinstall,adding boolean field,setting weight on certain rules and testing the crap out of it.
Comment #36
tribsel CreditAttribution: tribsel commentedyeah, that sounds familiar. good to hear you managed to do it lol.
Comment #37
mh86 CreditAttribution: mh86 commentedI have a local copy of fago. Here is a patch containing the missing exports.
Comment #38
webdrips CreditAttribution: webdrips commented#37 seems to work for me although I had not tried the 2.x branch up until now. I was able to get all my subscription products/rules working properly with this version/patch.
Comment #39
likewhoa CreditAttribution: likewhoa commented@webdrips 2.x is the only branch you should be using.
Comment #40
webdrips CreditAttribution: webdrips commented@likewhoa, I doubt your average Drupaller would draw that conclusion (unless you mean for the patch) since the 1.x branch is the only one available on the project home page.
Comment #41
Andrew211 CreditAttribution: Andrew211 commentedSeem to be getting pretty close, is anyone encountering an error in:
Rules -> Components
Error: Unknown action data_convert.
It's only appearing in the following component:
"Apply subscription if line item is subscription product"
Cheers
Comment #42
Andrew211 CreditAttribution: Andrew211 commentedRE #41, if anyone needs a fix they may need to update the rules module, the rules module that comes with Commerce Kick Start didn't have that rule.
Comment #43
claudiu.cristeaThis is critical for 7.x-2.x
Comment #44
claudiu.cristea#37 works but doesn't apply clean. I had to manually patch .info file.
Then I had to revert Subscription feature.
Comment #45
likewhoa CreditAttribution: likewhoa commented@claudiu.cristea are you sure that you are applying it against a fresh git clone of 7.x-2x-dev? Keep in mind that you should uninstall your current commerce_sp, remove the sites/all/modules/commerce_sp and run the following commands.
Assuming you are in your Drupal ROOT and have drush installed.
likewhoa
The patch applies cleanly if done this way.
Comment #46
bessone CreditAttribution: bessone commented#37 worked for me
Comment #47
pixelsweatshop CreditAttribution: pixelsweatshop commented#37 worked for me too. marking as RTBC. THanks mh86.
Comment #48
Liliplanet CreditAttribution: Liliplanet commentedHi, it's taken me quite a while to migrate from Ubercart to Commerce and the most important part is this module as my commerce depends on the sale of roles.
Have re-installed commerce_sp 7.x-2.x and applied the patch in #37 but still have major errors ..
see attached screenshot.
Please would you be so kind to release the patched 7.x-2.x or attach to this thread. Would be so much appreciated :)
UPDATE: somehow got it fixed by deleting all references to commerce_sp, re-installing features and commerce_sp, so far so good :)
Comment #49
likewhoa CreditAttribution: likewhoa commented@Liliplanet you forgot to switch status back ;)
Comment #50
AaronBauman#37 RTBC++
In addition to the steps in #45, I had to run features-revert to get everything sussed (i'm also dealing with an issue in commerce_sp_paypal).
EDIT: Additionally, I had to update to Rules-7.x-2.x-dev to get the "data_convert" action and solve the final two broken integrity checks.
Comment #51
RealGecko CreditAttribution: RealGecko commentedDamn, upgrading from version 1.2 to 2.x-dev was quite a challenge. Thanks for your comments.
Comment #52
Rob_Feature CreditAttribution: Rob_Feature commentedFollowed this exactly using the method in #45 and I still am not able to revert my commerce_sp feature from overridden. it may need some additional review.
Comment #53
rjdjohnston CreditAttribution: rjdjohnston commented+1 - having to revert features to make #45 work
Comment #54
mrconnerton CreditAttribution: mrconnerton commentedI tried the patch and while it "worked" I couldn't get the feaure to revert either. I think the key here is this patch was made with features 1.x but the latest stable version of features is 2.x. Here is a new patch that will enable this module with a working defaulted feature.
I am using the following module version:
Rules 7.x-2.2
Features 7.x-2.x
Commerce Sp 7.x-2.x
Comment #55
mrconnerton CreditAttribution: mrconnerton commentedComment #56
zkrebs CreditAttribution: zkrebs commentedAny update on this, still can't seem to get the rules errors to go away.
Comment #57
mrconnerton CreditAttribution: mrconnerton commented@slavojzizek have you tried the patch in #54 and the required modules listed there?
Comment #58
zkrebs CreditAttribution: zkrebs commentedI'm using:
Date 2.6
Rules 7.x-2.2
Features 7.x-2.0-beta2
Commerce Sp (Subscription Products) 7.x-2.x-dev
Had the errors on initial install, followed #45, didn't work. Realized I needed to upgrade rules, did that. Then ran through #45 again. Then I added a field as per #14.
Tried patch #57, get
Comment #59
mrconnerton CreditAttribution: mrconnerton commentedThe patch I posted is not ment to work with the other patches. I suggest you try this:
This disabled, uninstalls and deletes the module you have, downloads it again then apply only the patch in #53, nothing else. and enable
Comment #60
zkrebs CreditAttribution: zkrebs commentedI tried #59 and still get
Could the fact that I am using Commerce Kickstart be to blame?
Error: Data selector account:field-commerce-sp-skip-expire for parameter data is invalid.
Error: The utilized component rules_commerce_sp_schedule_subscription_expiration fails the integrity check.
Error: The utilized component rules_commerce_sp_schedule_subscription_expiration fails the integrity check.
Error: The utilized component rules_commerce_sp_schedule_subscription_expiration fails the integrity check.
Error: The utilized component rules_commerce_sp_subscription_end fails the integrity check.
Also, updated to Rules 7.x-2.3+1-dev
Comment #61
mrconnerton CreditAttribution: mrconnerton commentedI haven't actually used it with kickstart. Is the feature showing as defaulted? If its overridden, can you try and revert it?
Comment #62
zkrebs CreditAttribution: zkrebs commentedEDIT: That was the key, updating the rules dev - apparently the beta2 won't work. Problem solved.
Comment #63
mrconnerton CreditAttribution: mrconnerton commentednvm-read the last post
Comment #64
technocrat CreditAttribution: technocrat commentedHow exactly do I get the 2.x version of commerce_sp to work? I Tried #59 with the latest dev of Rules with no luck.
UPDATE:
Okay, Finally got this to work. Follow #59 and make sure you have the latest dev of Features and Rules. Remember to Revert the Commerce SP feature. There are no more errors. Will come back and tell if payments go through correctly with Commerce_sp_paypal.
Comment #65
zkrebs CreditAttribution: zkrebs commentedtechnocrat, please let me know. I got payments to work, however how to cancel them remains unanswered...
Comment #66
likewhoa CreditAttribution: likewhoa commentedworks for me.
@slavojzizek just unset the subscription validity field on the users account and then let cron handle the rest.
Comment #67
technocrat CreditAttribution: technocrat commentedCould you please elaborate on that? I'm completely unaware of how commerce_sp_paypal handles the cancellation of the subscription. Does the module already recognize if a subscriber cancels a subscription at paypal when it updates that information during cron runs? Could the reverse action be possible too? For example, could I create a Rules Link for a subscriber to automatically cancel subscription from their own user account and it cancels the subscription both on the website and their paypal account?
Comment #68
a_thakur CreditAttribution: a_thakur commentedStill have this issue.
Using
# Feature 7.x-2.x
# Rules 7.x-2.x-dev
# Commerce SP 7.x-2.x
Comment #69
a_thakur CreditAttribution: a_thakur commentedThe errors go away, when I revert the features, but come back when I clear the cache.
Comment #70
mrconnerton CreditAttribution: mrconnerton commented@a_thakur interesting, I will try a fresh site with #59 notes an clear the cache a bunch and triple check the features.
Comment #71
likewhoa CreditAttribution: likewhoa commentedWFM and below is a simple howto on getting this done. I will try to make this official documentation perhaps.
1. First you need a distro.make file with the following contents.
2. Run the following drush commands
3. UI changes
Comment #72
mrconnerton CreditAttribution: mrconnerton commentedThats some sweet documentation. We should find a place for that in docs.
As for this issue, lets keep it on track for:
For those that are new to features, We do indeed want your feature to be in a default state once you install it, but the moment you start changing rules and such, its going to be overriden. That is where features_override comes in.
Fago made me co-maintainer so once we can make sure this module is default out of the box, we can get it commited.
Comment #73
zkrebs CreditAttribution: zkrebs commented#71 worked, but I had to go through it and extract the goodies because I already had a DC instance going, did not want to re-do it.
Comment #74
muschpusch CreditAttribution: muschpusch commented@likewhoa: thanks a lot! Don't you want to ask fago to be a co-maintainer? The patches really need to be committed and the 2.x dev release is out of date...
Comment #75
mrconnerton CreditAttribution: mrconnerton commentedFago made me a co maintainer so I can commit this patch but only a few people have said it has worked and a few others seem to still have issues. When it actually gets to RTBC then I will commit.
The goal of this patch is on a fresh install of the module, the feature exports should be in a default state.
Comment #76
Cellar Door CreditAttribution: Cellar Door commentedI can confirm that the steps outlined in 71 and the patch in 54 work to get the subscriptions up and running. I even used it in a commons install with success so it should be considered RTBC
Comment #77
PeterX-dupe CreditAttribution: PeterX-dupe commentedwhen comes the upgrade !?
Comment #78
cutmedia CreditAttribution: cutmedia commented+1 #71 works, I had persistent errors after install but reverting features fixed that.
Comment #79
mrconnerton CreditAttribution: mrconnerton commentedCommited to commit:e8bd92c7e4c141ca78678a689934cf996ccc050c.
Please remember that this requires Features 2.x