Module uc_recurring_hosted have function uc_recurring_hosted_subscription_load which calls db_fetch_object(). Function db_fetch_object() is undefined function, because it is Drupal 6 of function.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mar4ehk0 created an issue. See original summary.

joshuautley’s picture

Fixed. Change "db_fetch_object" to "fetchObject".

Update uc_recurring/modules/uc_recurring_hosted/uc_recurring_hosted lines 148 - 156

OLD...

function uc_recurring_hosted_subscription_load($id, $type = 'rfid') {
  $return = array();

  if ($type == 'rfid') {
    $return = db_fetch_object(db_query("SELECT * FROM {uc_recurring_hosted} WHERE rfid = :rfid", array(':rfid' => $id)));
  }
  elseif ($type == 'subscription_id') {
    $return = db_fetch_object(db_query("SELECT * FROM {uc_recurring_hosted} WHERE subscription_id = :subscription_id", array(':subscription_id' => $id)));
  }

NEW...

function uc_recurring_hosted_subscription_load($id, $type = 'rfid') {
  $return = array();

  if ($type == 'rfid') {
    $return = fetchObject(db_query("SELECT * FROM {uc_recurring_hosted} WHERE rfid = :rfid", array(':rfid' => $id)));
  }
  elseif ($type == 'subscription_id') {
    $return = fetchObject(db_query("SELECT * FROM {uc_recurring_hosted} WHERE subscription_id = :subscription_id", array(':subscription_id' => $id)));
  }
glynster’s picture

You should be using the dev version many things have been updated in there, including that.

joshuautley’s picture

I am now actually using DEV. Thank you for getting back to me though.

mar4ehk0’s picture

There is not recommended use DEV version on production, I created patch for alpha.

tomarnold2’s picture

(Note: missing semicolons on the two lines with $query->condition in the patch #5 above)

tomarnold2’s picture

FileSize
1.22 KB

This patch was made from the dev branch