I use uc_subscription with ubercart to create monthly re-orders. However, when I view that new order I got an error. I guess because that the direct debit information is not copied.

# warning: implode() [function.implode]: Bad arguments. in /var/www/html/modules/directdebit/uc_directdebit/uc_directdebit.module on line 65.

Comments

clemens.tolboom’s picture

Status: Active » Postponed (maintainer needs more info)

This is the offending code

$result = db_query("SELECT data FROM {uc_directdebit} WHERE order_id = %d", $arg1->order_id);
if ($row = db_fetch_array($result)) {
  $data= unserialize( $row['data']);
          
  $value= implode("; ", $data);

This implies afaik that there is a record in the uc_directdebit table associated with the order. But is has no data.

Please check what happens when a subscription is created. What INSERT queries are executed? You can either install the devel.module for this or check the watchdog messages for "uc_dd_order", "save ....."

clemens.tolboom’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

No info from submitter. And very old.