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.

CommentFileSizeAuthor
#1 demo-DRUPAL-6--1.watchdog.patch961 bytessun

Comments

sun’s picture

Status: Active » Needs review
StatusFileSize
new961 bytes

Please test attached patch.

sun’s picture

Status: Needs review » Fixed

Committed.

dave reid’s picture

Sorry...I didn't follow up to say the patch worked fine. Thanks!

dave reid’s picture

Thanks greggles! Any word on #299548: Line breaks not showing up in email?

dave reid’s picture

Arg...Firefox crashed and posted that to the wrong issue queue. Sorry.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.