I get the following errors only when viewing 'demo' log entries:
* warning: Invalid argument supplied for foreach() in /home/.katona/davereid20/drupal-6/includes/common.inc on line 789.
* warning: strtr() [function.strtr]: The second argument is not an array in /home/.katona/davereid20/drupal-6/includes/common.inc on line 806.
Looked into the code, the changes to the watchdog API from 5 to 6 didn't get changed in demo.module. The offending lines of code:
watchdog('demo', $message, $success ? WATCHDOG_NOTICE : WATCHDOG_ERROR);
watchdog('demo', $message, WATCHDOG_ERROR);
The third parameter should be array() and then the status code.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | demo-DRUPAL-6--1.watchdog.patch | 961 bytes | sun |
Comments
Comment #1
sunPlease test attached patch.
Comment #2
sunCommitted.
Comment #3
dave reidSorry...I didn't follow up to say the patch worked fine. Thanks!
Comment #4
dave reidThanks greggles! Any word on #299548: Line breaks not showing up in email?
Comment #5
dave reidArg...Firefox crashed and posted that to the wrong issue queue. Sorry.
Comment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.