I get the following error when I add a donation product to the cart or checkout
PHP Fatal error: Call to undefined function uc_cart_get_id() in ... sites/all/modules/uc_donation/uc_donate/uc_donate.module on line 642, referer: http://www.mydomain.com/donate
Any ideas?
Comments
Comment #1
vivianspencer commentedOk, I found the problem
I didn't have the Cart module enabled, there should be a dependency added to the this modules .info file
I'll create a patch for this later when I get some time
Comment #2
kosherfrog commentedBecause of the way donations through Google checkout are specifically formatted it is better to issue a new order from the form generated by Google than using ubercart+uc_donation.
But then, google checkout sends xml to ubercart and the only response I get is a notification of error by Google:
We encountered an error trying to access your server at https://acor.org/google_checkout -- the error we got is: Send failed with code: 500. Response body was:
and nothing to follow. So I have no clue where is the problem.
Any help would be greatly appreciated.
Comment #3
vivianspencer commentedOk?
I'm not quite sure what problem you're referring to?
I'm not using Google Checkout and at no point in the post above did I mention using Google checkout. I'm using the Protx payment gateway to accept donations using the uc_donations module.
Also, I haven't go a server at https://acor.org/google_checkout? not quite sure where you're getting your information
The error I mentioned in my first post was due to the fact that ubercarts 'Cart' module was disabled, once enabled the error goes away.
The solution I suggested was to make the 'Cart' module a dependency for uc_donations, that way no one would run into the same problem I had.
Comment #4
greenskin commentedFixed.