PHP Fatal error: Call to undefined function uc_cart_get_id()

vivianspencer - December 5, 2008 - 20:27
Project:Ubercart Donation Products
Version:5.x-1.0
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed
Description

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?

#1

vivianspencer - December 6, 2008 - 16:11

Ok, 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

#2

kosherfrog - December 7, 2008 - 19:51
Title:PHP Fatal error: Call to undefined function uc_cart_get_id()» Google Checkout Donation new order notification unable to communicate with ubercart
Project:Ubercart Donation Products» UC Google Checkout
Version:5.x-1.0» 5.x-1.0

Because 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.

#3

vivianspencer - December 8, 2008 - 13:36
Title:Google Checkout Donation new order notification unable to communicate with ubercart» PHP Fatal error: Call to undefined function uc_cart_get_id()
Project:UC Google Checkout» Ubercart Donation Products
Version:5.x-1.0» 5.x-1.0

Ok?

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.

#4

greenSkin - March 12, 2009 - 23:24
Status:active» fixed

Fixed.

#5

System Message - March 26, 2009 - 23:30
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.