Closed (fixed)
Project:
Ubercart
Version:
6.x-2.2
Component:
Orders
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Jul 2010 at 16:16 UTC
Updated:
17 Mar 2011 at 19:46 UTC
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
Comment #1
longwaveThat code is no longer present in 6.x-2.x-dev.