Reposting this from the ubercart forums: http://www.ubercart.org/forum/bug_reports/17473/uc_ordercainc

in the file uc_order.ca.inc

watchdog('ca', 'Attempted to e-mail an invoice with no recipient.<pre>'. addslashes(print_r($settings))."<pre>", array(), WATCHDOG_ERROR);

Is seems wrong. Well, maybe not. I'm not a great programmer nor do I know the standards; however, this seems to work a lot better.

 watchdog('ca', 'Attempted to e-mail an invoice with no recipient "@addresses".<pre>@debug</pre>', array('@addresses' => $settings['addresses'], '@debug' => print_r($settings, true)), WATCHDOG_ERROR);

It properly displays the error in the log and not during the final stages of checkout if something bad happens.

NOTE:
I'm using
// $Id: uc_order.ca.inc,v 1.1.2.28 2009/10/20 20:58:07 islandusurper Exp $

of order and
6.13 of drupal.

It won't update with one (or more) of the other ubercart modules, so I'm stuck in the stone ages (for now). This problem may have been fixed.

Anyhow, hope it helps if it's still a problem.

Comments

longwave’s picture

Status: Needs review » Closed (fixed)

That code is no longer present in 6.x-2.x-dev.