Project:Blog reactions
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:sanduhrs
Status:closed (fixed)

Issue Summary

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/ *****

Comments

#1

Same problem, but line es 382

#2

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

Status:active» needs review

here is a patch which fixes this issue

AttachmentSize
blog_reactions-310487.patch 716 bytes

#4

Assigned to:Anonymous» sanduhrs
Status:needs review» fixed

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

#5

Status:fixed» closed (fixed)

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

nobody click here