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

administrador@f... - December 5, 2008 - 15:20

Same problem, but line es 382

#2

Dave Reid - December 28, 2008 - 01:56
Title:Invalid argument supplied for foreach()...» Invalid parameters for watchdog()
Version:6.x-1.4» 6.x-1.x-dev

The problem is an invalid call to watchdog:

<?php
watchdog
('blog_reactions', t('Node !nid has been updated', array('!nid' => $row->nid)), WATCHDOG_NOTICE, l('View', 'node/'. $row->nid));
?>

should be:
<?php
watchdog
('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

dereine - March 27, 2009 - 11:56
Status:active» needs review

here is a patch which fixes this issue

AttachmentSize
blog_reactions-310487.patch 716 bytes

#4

sanduhrs - March 30, 2009 - 08:10
Assigned to:Anonymous» sanduhrs
Status:needs review» fixed

Commited to 6-dev.
Backported to 5-dev.
Thanks.

#5

System Message - April 13, 2009 - 08:20
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.