1 reply [Last post]
Alaska's picture
Offline
Joined: 10/16/2007
Juice: 1434
Was this information Helpful?

Seeing this error message only when selecting the in store selection which is set at the default level of $0.00. If flat rate shipping is chosen no warnings and all works well.

* warning: call_user_func(): First argument is expected to be a valid callback in C:\apache2triad\htdocs\drupal_5.2\modules\shipping\uc_quote\uc_quote.module on line 875.
    * Invalid option selected. Recalculate shipping quotes to continue.

Reinstalled the modules in question. See the same issue on the localhost site (Drupal 5.2) and two live sites (Drupal 5.3).

Suggestions?

Jim

Alaska's picture
Offline
Joined: 10/16/2007
Juice: 1434
Code for Error

And here is the code listing for the above error in the uc quote module.

$method = $methods[$quote_option[0]];
      $quote_data = array();
      ob_start();
      $quote_data[$method['id']] = call_user_func($method['quote']['callback'], $products, $details);
      $messages = ob_get_contents();
      ob_end_clean();
      if ($messages && variable_get('uc_quote_log_errors', false)){
        watchdog('quote', $messages, WATCHDOG_WARNING);
      }
      if (!isset($quote_data[$quote_option[0]][$quote_option[1]])){
        drupal_set_message(t('Invalid option selected. Recalculate shipping quotes to continue.'), 'error');
        return false;

Jim