Invalid parameters for watchdog()
kennedyjs - September 18, 2008 - 22:45
| Project: | Blog reactions |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | sanduhrs |
| Status: | closed |
Description
I get the following error message when using Blog Reactions. Saw this while previewing an article I was going to post.
warning: Invalid argument supplied for foreach() in /home/httpd/friendsofhope_test/sites/all/modules/blog_reactions/blog_reactions.module on line 392.
My site can be found at http://test.friendsofhope.us/. You may log on using the test account to test things if you like. Username is "Test user"; password is "foobar". --Scott
***** http://custweb.com/ *****

#1
Same problem, but line es 382
#2
The problem is an invalid call to watchdog:
<?phpwatchdog('blog_reactions', t('Node !nid has been updated', array('!nid' => $row->nid)), WATCHDOG_NOTICE, l('View', 'node/'. $row->nid));
?>
should be:
<?phpwatchdog('blog_reactions', 'Node !nid has been updated', array('!nid' => $row->nid), WATCHDOG_NOTICE, l('View', 'node/'. $row->nid));
?>
See http://api.drupal.org/api/function/watchdog/6
#3
here is a patch which fixes this issue
#4
Commited to 6-dev.
Backported to 5-dev.
Thanks.
#5
Automatically closed -- issue fixed for 2 weeks with no activity.