Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The function includes the following code (starts at line 1455) which was causing some problems on a site that has the Date and Signup modules installed:
foreach (module_list() as $module) {
$function = $module .'_order';
// $order must be passed by reference.
if (function_exists($function) && ($value = $function('total', $order, NULL))) {
$total += $value;
}
}
I had to add && ($function != 'date_order')
to the "if" statement to keep '$value' from being an array. A more robust way may be to insure that '$value' is_numeric() before trying to add it to the $total.
Comments
Comment #1
longwaveThis was fixed in the Ubercart 2.1/2.2 releases, see #611044: Fatal error: Unsupported operand types in .../uc_order.module on line 1459