Closed (fixed)
Project:
Ubercart
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Jun 2009 at 07:42 UTC
Updated:
16 May 2011 at 10:41 UTC
Jump to comment: Most recent file
Comments
Comment #1
cha0s commentedSorry, there was a mistake in the last patch... early code that was ditched. Here's the latest.
Comment #2
Island Usurper commentedOh, wow. This gets my approval big time. Thanks for this.
When I was testing out the forms, I found that the first query in uc_attribute_subject_delete() was confused. You have to do a join there to get the the oid from just the aid and nid/pcid.
I think it's easier to keep all of the API kind of functions together, so I added those new functions after uc_attribute_option_load(). Keeping all of the functions that deal with the database in one place makes them easier for me, at least, to find them when I need to.
Comment #3
cha0s commentedAlright, been cranking on this.
Got 4 patches here... The API functions, implementing the API in the code, a skeleton for product tests, and attribute tests (which need product test structure).
I also put up a branch with the changes as commits instead, for visualizations. (advanced)
Branch at: http://therealcha0s.net/ubercart/branches/488422
Patches should be applied from top to bottom, as they're attached.
Unfortunately, simpletest has some limitations that doesn't allow me to write tests for the class/product attribute UI. (Nested edit elements don't work, e.g. $edit['attributes'][1]['field'])
Comment #4
Island Usurper commentedGonna put this off until after the 2.0. It's good, but it's too big a change to the API this close to the release.
Comment #5
ezeedub commentedI tried applying these patches, but I get the following error on the first one:
Should I be applying the earlier ones in this thread first? I'm trying to get Ubercart Devel Generate to work.
Any help is greatly appreciated. Thanks
[EDIT: I tried various combinations of the four, but am not all that familiar with patching, and have since just started over with a fresh ubercart folder.]
Comment #6
cha0s commented@skriv unfortunately this is what happens when laziness gets the better of a project. The 'maintainers' have had six months to get this (fully tested) patch in and have failed spectacularly. You will find many instances of this within Ubercart's general history. I gave up (a paying job) a while ago due to the immense frustration.
I suggest waiting for the next e-commerce module that will be coming without the word 'Uber' in it. :P
Comment #7
univate commentedYeah it is a shame this has had to sit here this long, this does look like one of the better improvements to ubercart.
Comment #8
splash112 commentedSad story
I wouldn't call anybody lazy... But it is definitly a shame that all improvements are off limits till the day that Ubercore sees the light....
Comment #9
univate commentedThere has got to be a better way... I still don't really have alot of faith of ubercore (the code) being a reality for at least 12-18months or more...
I like what ubercore promises and really want to see it become a reality. I would prefer to see the ubercart team focus on ubercore as goal rather then just starting from scratch:
* when building a new feature there needs to be an API for it (and tests)
* when refactoring something then build an API (and tests)
I think patches like this one would make ubercore a reality alot quicker.
Comment #10
cha0s commentedPatches like this are being contributed to another project. :P
Comment #11
splash112 commentedJust to close the circle
http://www.bywombats.com/blog/01-14-2010/rose-any-other-name#comments
Comment #12
ayalon commentedSad story... The API would be very helpful.
Comment #13
Andy_Lowe commentedUnfortunately, this patch came to late to make it into Ubecart 2.0, and we would be doing a great disservice to developers and user by completely changing the API in a 2.X point release thereby breaking most contrib modules. The results of that would be contrib modules that work for 2.N but not 2.N+1 or vice versa. Very Bad. As a result, we decided to postpone this patch until a major release.
Ubercart 3.0 ( http://drupal.org/node/696816 ) is near completion, and is simply a straight port of Ubercart to Drupal 7. We chose to do a straight port without new features for a few reasons. 1. The Drupal community does not want to make the same mistake it did with Drupal 6 of having a new version that no one can use because critical contrib modules aren't ready. 2. Porting is difficult enough without adding in a bunch of feature / API changes. 3. The vast majority of Ubercart users want a straight port.
As soon as the port is completed, which looks like it will be long before Drupal 7 is ready, we will start adding in features (this one is near the top of the list) for the next release. It is quite possible that early in the D7 life cycle we will have this committed. Committing it any earlier is just not practical. It would result in an unreasonable burden for the developers of Ubercart contributed modules and confused users with broken sites.
--Andy
Comment #14
cha0s commentedYour original mistake was the 'straight port' from 5 to 6 without refactoring systems like this that are a nightmare to work with for 3rd party developers.
Your justification for that is by doing it again? Not sure I follow.
Comment #15
univate commentedThis is worthy of a real review to understand the potential effects of applying it, either to D6 or D7
* No changes to *.install (ie: no updates to database so will not effect any developers who are interacting with attributes directly via the database)
* Two functions changed:
The change to the first function "uc_attribute_load" is worth a closer look as the order of the arguments have been changed and the implementation of the function also changed which could result in a changed behaviour. One step to ensure compatibility for other developers is the argument order could be changed back. If testing could also show that the implementation did not result in any changed behavior that would also be a good argument.
The second function could be put back to ensure compatibility for any developer using it.
This patch changes the other ubercart modules to use attributes to make use of the new API functions rather then interacting directly with the database. Issues with this are that the implementation is different and causes problems.
Addition of simpletests do not effect any functionality.
Issues applying patch to D6
Issues applying patch to D7
Conclusions:
There are definitely issues with committing this to D6 now that there is a stable version, a compromise that might be workable would be committing the API patch and thoroughly testing, while not committing the implementation patch. The D7 issues are all very minor, the argument of wanting to do a straight D6-D7 port doesn't really apply here as this is not about implementing new functionality, it is just about cleaning up the implementation of an existing system and if anything reducing the amount of SQL should be helpful to the port process. Simpletests in D7 should also be encouraged.
Comment #16
univate commentedI've re-rolled this patch so it applies to the current 2.x-dev
This patch includes the API and the two tests patches from #3
I have left out the implementation patch (the 2nd patch) for the reason I have mentioned above - it doesn't add anything for 3rd party developers and there is a risk it could break something. While the API doesn't change much and adds a lot of extra functions for 3rd party devs.
Comment #17
yesct commentedI'm wondering if this patch would help with
http://www.ubercart.org/forum/support/15840/api_adding_option_attribute_...
Comment #18
tr commentedThanks for the patch univate. You should have reopened the issue!
Comment #19
univate commentedI should also note that in the patch above I have made the two changes I suggested in #15
That is:
* changed the argument order in uc_attribute_load so that it doesn't break the existing API
* uc_product_get_attributes - left this function in the code
Comment #20
tr commented@univate: I agree with everything you said in #15. I plan to examine the patch in #16 and test it over the weekend. I'm concerned that the patch/tests might not address checkbox options properly since those were introduced into Ubercart well after #3 was written. The in-memory structure of attributes/options was changed at the same time, and caused a number of problems, especially with contributed modules.
I would appreciate if others would review the patch and test it with a variety of contributed modules. I would like people to try the tests as well - this is a major bonus which will help in getting the patch pushed through.
Comment #21
sethcohn commented+1, seems like the description at http://www.tsd.net.au/blog/understanding-ubercarts-attributes shows why fixing this sooner (D6) rather than later (D7) would be a good thing.
Comment #22
tr commented@sethcohn: Then please test the patch and report back on how it works.
Comment #23
DanGarthwaite commented@sethcohn Funny, that's how I found this page...
Comment #24
torgospizzaSubscribing with great interest. Are we going to need to re-roll the patch in #16 now that new UC releases are out?
Comment #25
webchickThis looks like a really nice clean-up. I was bummed to see that save/delete logic was all smooshed into form submit handlers and whatnot. :\
Comment #26
cha0s commentedWow. You guys are definitely earning your keep ;)
Comment #27
Island Usurper commentedcha0s, do you have anything useful to say? If not, you can stay out of my issue queue.
Comment #28
Island Usurper commentedOK, if no one else is going to test this, I'll say what I've found out.
The patch applies cleanly to the latest version, so it doesn't look like we have to reroll it yet. So far, I've only run the tests, and got two failures: "Attribute integrity check failed." on lines 63 and 100. There are also a bunch of Notices because the site I ran them on was already displaying them. These should be fixed.
I also noticed that uc_product.test doesn't actually have tests in it. If we're going to keep it, we should comment out UbercartProductTestCase::getInfo() so it won't appear on the test list and confuse people.
Is there a reason why implementing this API in Ubercart would cause differences in the way other code would use it? I mean, can it be written in a way that preserves backwards compatibility? Do we even need to strive for that at this point? (For moving to UC 3, we can change that some if we don't run out of time. UC 3 is supposed to come out at the same time as Drupal 7.)
Comment #29
univate commentedI have just committed a module in the uc_recurring project that I have been using for some time (6 months+) that relies on this API being available - #569798: Simple Subscriptions UI - so if you are looking to see why this patch is required that is a good example case.
As I mentioned in #15 above the changes in this patch do not change the functionality of ubercart or the attribute system. All it does is puts an API on top of the existing functionality, so us developers don't need to constantly write SQL queues to add remove attributes ourselves. In the patch I re-rolled in #16 I removed all the core changes in ubercart that attempt to use this API, thereby remove most of the risk associated with committing patch.
What "backwards compatibility" issues are you concerned about? as this patch (atleast my re-roll) does not remove any functions, it only add new functions to add the API us developers need to work with attributes.
I will look at the error/warnings you noticed and see if I can't re-roll a patch to fix those.
Comment #30
virtuali1151 commentedWhen trying to use the patch in the distrubtion I get these errors.. anybody have ideas? Sorry if this is the wrong thread etc.. I am new to ubercart and just trying to figure out how to apply this patch properly.
Thanks for any assistance in advance.
(Stripping trailing CRs from patch.)
patching file uc_attribute/uc_attribute.module
Hunk #1 FAILED at 538.
1 out of 1 hunk FAILED -- saving rejects to file uc_attribute/uc_attribute.module.rej
(Stripping trailing CRs from patch.)
patching file uc_attribute/uc_attribute.test
(Stripping trailing CRs from patch.)
patching file uc_product/uc_product.admin.inc
Hunk #1 FAILED at 389.
Hunk #2 FAILED at 418.
Hunk #3 FAILED at 439.
3 out of 3 hunks FAILED -- saving rejects to file uc_product/uc_product.admin.inc.rej
(Stripping trailing CRs from patch.)
patching file uc_product/uc_product.module
Hunk #1 FAILED at 1948.
1 out of 1 hunk FAILED -- saving rejects to file uc_product/uc_product.module.rej
(Stripping trailing CRs from patch.)
patching file uc_product/uc_product.test
Comment #31
cha0s commentedNo Lyle, nothing useful, only the patch.
Also, you're blocking this module as well: http://drupal.org/project/uc_generate Devel Ubercart generation.
Comment #32
torgospizza@virtuali1151: Are you patching the right version of Ubercart? I think the patch is for 2.4 but I could be wrong.
Comment #33
virtuali1151 commented@torgosPizza - Hi Mate... Yes.. I have version 6.x-2.4. Cheers.
Comment #34
torgospizzaWell if the hunks are failing that probably means the code is not matching up in the diff... looks like the patch will need to be re-rolled. You can usually tell what the issue is by looking at the reject files that patch creates (*.rej). Hope that helps! I haven't had time to patch my system yet otherwise I'd have some feedback myself.
Comment #35
virtuali1151 commentedTks for your help mate. I have attached the .rej files for anybody that wants to take a look and try to fix.
Tks again.
Comment #36
webchick#16 applies fine for me. You need to apply it to the latest 6.x-2.x-dev, not 6.x-2.4.
Also, guys, I dunno what sort of personal issue is going on between you, but please keep it off of drupal.org.
Comment #37
virtuali1151 commented@ webchick - Thanks for that info. It patched two of the files correctly but errored on the below:
patching file uc_attribute/uc_attribute.module
Hunk #1 FAILED at 538.
1 out of 1 hunk FAILED -- saving rejects to file uc_attribute/uc_attribute.module.rej
patching file uc_attribute/uc_attribute.test
patching file uc_product/uc_product.test
I have attached the .rej for that file. If you have any ideas would be great.
These are the distrubtions I am using.
ubercart dev is: 6.x-2.x-dev
uc recurring: 6.x-2.x-dev
and patch: ubercart-488422-16.patch
Comment #38
univate commentedAll tests now pass - issue was the original patch and tests changed the arguments in the function uc_attribute_load, my patch I changed them back to remain 100% backwards compatible with any existing code. Although I do agree that the new argument order does make more sense it should be something for 3.x
I have commented out the UbercartProductTestCase::getInfo() function and made comment to add this back when test are added. This class is required for the attribute tests.
The patch definitely applies cleaning to the current 2.x-dev
Comment #39
virtuali1151 commentedI just tried this and it failed at the same spot?
Comment #40
virtuali1151 commentedAttached is the .rej file that was created.
Comment #41
tr commentedPatch in #38 applies cleanly for me.
Comment #42
virtuali1151 commentedStrange.. I have redownloaded ubertcart version ubercart-6.x-2.x-dev.tar.gz and applied patch (patch -p0 < uc_attribute_api-488422-38.patch) and still getting the same above error? Not sure what I may be doing incorrectly if it working for others?
Any advice is appreciated.
Comment #43
torgospizza#42, it looks like the entire patch is getting rejected. Are you sure it's the latest dev? What happens if you rm -rf the sites/all/modules/ubercart dir, then dl the latest dev tarball? (You could also try this on another server that you don't mind deleting an entire module dir).
Comment #44
virtuali1151 commentedHi Torgos,
I tried your suggestion and it still errors on the first one. The other two files dont seem to error. I am downloading the latest version from here. (http://drupal.org/project/ubercart/ OR here http://drupal.org/node/280820).
This is the error I am still receiving:
patching file uc_attribute/uc_attribute.module
Hunk #1 FAILED at 538.
1 out of 1 hunk FAILED -- saving rejects to file uc_attribute/uc_attribute.module.rej
patching file uc_attribute/uc_attribute.test
patching file uc_product/uc_product.test
arrrgggggggg:)
Thanks again for any advice guys.
Comment #45
virtuali1151 commentedCan somebody maybe attach their distribution they have used and found it works here? That way I can narrow down the issue abit?
Thanks again.
Cheers.
Comment #46
virtuali1151 commentedHi Guys.. Sorry for so many posts here..:) Just trying to figure this out. I have a question maybe you guys can assist with.
1.) If the subscription UI etc is only ready for the old dev version why is it being released in the Alpha distributions? I must apologize for my lack of knowledge here.. I am quite new and just trying to understand the logic as I would love to have this feature enabled for the latest stable version. Any testing etc I can do to get this to work I am more than happy to assist.
Cheers.
Comment #47
Island Usurper commentedAnd now with all the tests passing all the time, even the ones that had been commented out before. I fixed testAttributeUIAddAttribute() so that the "required" check would work all the time. Remember when using
? :inside a string that it has a lower precedence than.. That means the first part of the string becomes part of the condition, and the next part becomes part of the "else".Comment #48
univate commentedI can confirm the test pass and using in a real case with my uc_recurring_subscription module also works as expected.
Comment #49
Island Usurper commentedThanks, everyone, for your contributions.
Committed.
Comment #50
virtuali1151 commentedHi There,
Would anybody be able to assist with why mine is failing at the following:
Hunk #1 FAILED at 538.
1 out of 1 hunk FAILED -- saving rejects to file uc_attribute/uc_attribute.module.rej
patching file uc_attribute/uc_attribute.test
patching file uc_product/uc_product.test
I will gladly pay for some assistance.
The rej file is attached at #40
Thank you.
Comment #51
torgospizzaCan you post your uc_attribute.module file?
Also, now that Lyle has committed the patch, you should see this change if you download the newest 6.x-2.x-dev version.
Comment #52
virtuali1151 commentedHi Torgos,
Ok.. I have downloaded the latest version.. and when I enable the Subscription Manager I get the belwo error:
This module requires a patch to ubercart, read the README.txt
Soo then I try this patch like this:
root@svr1 [/home/public_html/sites/all/modules/ubercart]# patch -p0 < 488422_attribute_api.patch
patching file uc_attribute/uc_attribute.module
Hunk #1 FAILED at 538.
1 out of 1 hunk FAILED -- saving rejects to file uc_attribute/uc_attribute.module.rej
patching file uc_attribute/uc_attribute.test
patching file uc_product/uc_product.test
and it errors. Attached are the original and rej files.
The only thing I can think of is if the original recurring update changed my DB fields and that is causing it to error? I have no idea if the patch works on the just ubercart code..?? or updates db fields etc..
Again.. thanks for your help mate.
Comment #53
torgospizzaHi, the -dev version hasn't updated yet, which is why you're still getting those errors. The latest dev is dated 10/31, you'll probably want the one that will be dated 11/1 or 11/2.
You could also checkout directly from CVS.
Comment #54
virtuali1151 commentedahh.. ok.. I will wait..
Tks Torgos.. your a legend.
Comment #55
univate commentedAwesome thanks.
Next API issues to knock over now:
#750664: Product Feature API
Comment #56
virtuali1151 commentedHi Guys,
Ok.. the latest distribution works without errors except when I set the Subscription Settings product class to membership type... instead of the recurring subscription.... not sure if this is because I already have some memberships etc defined or not..??
•warning: Invalid argument supplied for foreach() in /home/public_html/sites/all/modules/uc_recurring/modules/uc_recurring_subscription/uc_recurring_subscription.admin.inc on line 46.
Thanks again guys.
Cheers.
Comment #57
virtuali1151 commentedHi guys,
Anybody have an idea why this error is happening?
•warning: Invalid argument supplied for foreach() in /home/public_html/sites/all/modules/uc_recurring/modules/uc_recurring_subscription/uc_recurring_subscription.admin.inc on line 46.
Comment #58
rszrama commentedJust so we're clear on what to expect when we upgrade, this patch seems to just add an attribute API with test coverage. It does not seem to be changing any data, so any custom code we have interacting with attributes should still work. Does this hold true for data returned by the uc_attribute_load() function, i.e. that we can expect it to return the same data it used to?
I also don't see this patch updating any attribute related forms to actually use the API. Did I miss something there? Is there another patch handling that?
Comment #59
univate commentedHi Ryan, thats correct.
There is a patch in #3 that also changed ubercart's implementation to use these new api's, but as I stated in #15 that part of this issue added the most risk and so my suggestion was to leave out that part of the patch, which it was, so ubercart still works exactly the same as before this patch (no functions have been removed and the database schema is still exactly the same).
The goal here was just to provide functions module developers need to leverage the attribute system without having to mess with the database directly.
Comment #60
rszrama commentedGood to know. We have a couple really custom implementations of Attributes and I wanted to make sure we'd be able to safely update. It sounds like your approach covers our tail. : )
Comment #61
sorensong commentedOk, so if I'm using Subscription Manager 6.x-2.0-alpha5, which patch do i need to apply?
Comment #62
lunk rat commentedSame question: which patch to patch uc core for Subscription Manager 6.x-2.0-alpha5?
I ran the patch that comes with the module but I get the error from #57 as well as the following when I view the product:
warning: Invalid argument supplied for foreach() in /home/public_html/sites/all/modules/ubercart/uc_attribute/uc_attribute.module on line 1174.
New to recurring stuff
Comment #63
univate commentedThis issue is fixed and has nothing to do with uc_recurring - if you want to discuss uc_recurring related issue, you should do so in the uc_recurring issue queue.
The specific issue discussing the subscription manager/ui module can be found at:
#569798: Simple Subscriptions UI
Comment #64
virtuali1151 commentedHi All,
The below error is still happening? Should we post this in the recurring que..??
•warning: Invalid argument supplied for foreach() in /home/public_html/sites/all/modules/uc_recurring/modules/uc_recurring_subscription/uc_recurring_subscription.admin.inc on line 46.
If your current setup is that you have recurring subscriptions as your product class type.. then you change it to membership type in the subscription settings is when this is triggered. It gives the above error on all current subscriptions.
Cheers.
Comment #65
torgospizzavirtual, yes. That is a uc_recurring issue, and this is the queue for Ubercart.
Comment #66
virtuali1151 commentedOk.. no worries.. I added it over there...
Thanks mate.
Comment #67
kasyap5 commentedHi All,
I am new to drupal .. and I am getting the following error after i install recurring subscription module :
warning: Invalid argument supplied for foreach() in /home/ey9oguhf/public_html/vm.hktechsol.com/modules/ubercart/uc_attribute/uc_attribute.module on line 1174.
can u let me know which patch i need to apply for uc_attribute module?
I am using drupal 6.19
Thanks in advance ..
Comment #68
Mixologic@kasyap5 - Typically the best way to find help with an error that you are having is to post a support request or bug report in the issue queue of the module that is causing you the error, even though uc_recurring is part of Ubercart, it is its own distinct module with its own maintainers that can give you the best advice. (Even though the maintainers of that module also happen to be on this thread).. But in general your best bet is to post to the http://drupal.org/project/issues/uc_recurring issue queue for your particular error, since you said it started when you enabled uc_recurring. This issue also happens to be marked fixed, which means people are less likely to be reading it at all. But in general, if your problem isnt directly related to the issue topic, its better to open another topic. You'll notice that Lunk Rat posted the same error you have in comment 62, and was also directed to the uc_recurring issue queue, but nobody has posted an issue there so its possible nobody knows about it.
Best of luck with your issue.
Comment #69
kasyap5 commentedThanks mixologic ... the reason why i came to this page is that i got instructions in README file of the recurring subscription package as follows:
uc_recurring_subscription
~~~~~~~~~~~~~~~~~~~~~~~~~
uc_recurring_subscription is a drupal module that integrates recurring payments
and roles and provides a set of features specifically designed for managing a
membership/subscription website.
INSTALL
~~~~~~~
This module requires a patch to ubercart, more detail on the issue can be found
in the following issue:
http://drupal.org/node/488422
The patch required for this module is included in this project download under:
module/uc_recurring_subscription/ubercart_api.patch
To apply:
1. Copy the ubercart_api.patch file to ubercart module directory.
2. Patch by running the command:
patch -p0 < ubercart_api.patch
3. You shouldn't get any errors if it applies correctly.
so i wonder where would i get the correct "ubercart_api.patch" file ..
Comment #70
torgospizzaI think the patch has been committed, which is why this issue is "fixed". If that's the case, then the documentation you quoted should be updated as well.
Comment #71
ronvanherk commentedHi,
I have installed the UC Subscriptions module, but Drupal keeps telling me to patch ubercart.
I tried about all the patches in this topic (and the others) but I just keep getting errors like:
root@CoastecTV:/var/www/modules# patch -p0 < ubercart-488422-16.patch
patching file uc_attribute/uc_attribute.module
Hunk #1 FAILED at 538.
1 out of 1 hunk FAILED -- saving rejects to file uc_attribute/uc_attribute.module.rej
My Ubercart module is up to date: 6.x-2.4, and UC Recurring Payments and Subscriptions is 6.x-2.0-alpha5
Any help would be highly appreciated, as I can't use the module right now. After adding a subscription, the screen goes white and nothing else happens..
Best regards,
Ron
Comment #72
tr commentedYou need to read the entire issue. The patch that got committed is in #47. Closing this issue - this is not the right place to keep discussing problems with uc_recurring.
Comment #73
summit commentedHi,
Is with this patch (#47) this explained problem solved: http://www.tsd.net.au/blog/understanding-ubercarts-attributes
I just want to make sure what the system is doing when I go from Ubercart 2.4 to .dev?
Thanks a lot in advance for your reply still on this closed issue.
greetings,
Martijn
Comment #74
univate commented@summit - what problem are you trying to solve?
This patch does not make any functional changes, all it does is add an API.
Comment #75
summit commentedHi, I would like to have Ubercart working nicely with attributes as explained in: http://www.tsd.net.au/blog/understanding-ubercarts-attributes?
Greetings, Martijn
Comment #76
torgospizzaIs there something specific in that page you're wondering about?
Comment #77
summit commentedThe 4 thingies, because there is referred to this page, I thought I ask it here.
greetings, Martijn
Comment #78
torgospizzaI see. These are still issues, because as as univate explained in #74, this patch does not change any functionality, it just adds some new API methods that we can use to (eventually) address the shortcomings as mentioned on that page.
Comment #79
summit commentedAfter more investigation I saw some threads about these thingies, shall I open another issue with them? Or is this the right place still?
greetings, Martijn
Comment #80
torgospizzaI'd create a new Issue.
Comment #81
summit commentedOk filed a discussion issue on http://drupal.org/node/1010986. I really like the way Ubercart works, but also that all sorts of people are working on still improving the drupal 6 version!.
greetings, Martijn
Comment #82
BeaPower commentedI tried patch #47 for alpha version and I get this:
File to patch: uc_attribute/uc_attribute.module'
uc_attribute/uc_attribute.module': No such file or directory
Skip this patch? [y] n
File to patch: uc_recurring.module
patching file uc_recurring.module
Hunk #1 FAILED at 538.
1 out of 1 hunk FAILED -- saving rejects to file uc_recurring.module.rej
patching file uc_attribute/uc_attribute.test
patching file uc_product/uc_product.test
Did it work? If not, where is the working patch?
Comment #83
univate commentedThis issue is now CLOSED!!! the patch is already in ubercart's current 6.x-2.x-dev.
Comment #84
shensman commentedWhen you say the issue is CLOSED, do you mean we don't need any patch anymore?
I have installed 6.x-2.x-dev dated on January 14, 2011, but still get the following message:
This module requires a patch to ubercart, read the README.txt
Comment #85
torgospizzaYes, that's what that means. Sounds like that message is still in there by mistake - probably an oversight.
Comment #86
shensman commentedSo hopefully the mistake will be fixed very soonn?
Comment #87
emilianodelau commentedI get the following fatal error when trying to install the module.
Fatal error: Call to undefined function uc_attribute_save() in /myHomeDirectory/sites/all/modules/uc_recurring/modules/uc_recurring_subscription/uc_recurring_subscription.install on line 115
Comment #88
tr commentedhttp://drupal.org/node/317
Comment #89
bdsweb commentedHello... I'm using the latest n greatest dev (May 11, 2011) and am still seeing the errors everyone has reported here.
warning: Invalid argument supplied for foreach() in /sites/all/modules/ubercart/uc_attribute/uc_attribute.module on line 1174
in #84 & #85 you say we don't need the patch, that it's rolled into the latest. Could someone help with this?
Thanks!
Comment #90
bdsweb commentedPlus there are Attributes that can't be removed... I go in to edit a product's attributes, click the far left option to remove, click "save changes" and the attribute is still there. It's now blank and says "n/a" below it. 4 are listed on the product page, but only 3 listed in the db.
Thanks for looking into this
Comment #91
bdsweb commentedAlso, when I try to rearrange the order of attributes on the Edit Attributes page, it deletes the attribute name and locks me from adding it back in... I essentially have to cancel the edit I was trying to do in the first place.
Comment #92
bdsweb commentedOk, don't know why, but if I delete all my products and re-enter all of them all over again (including resetting the attributes) it appears to work without errors. Something in the update isn't retro-active for info already in the db.
Closed... but a very frustrating problem.
Comment #93
kevinpattison commentedHey,
I'm trying to patch a fresh install of ubercart and I'm getting:
Rejection file attached. How can
I fix this?