uc_subscription not supported
Hanno - July 3, 2008 - 08:02
| Project: | Direct Debit Payment |
| Version: | 5.x-1.x-dev |
| Component: | directdebit |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
Jump to:
Description
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.

#1
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 ....."