Download & Extend

Missing argument 1 for theme_activitystream_feed_icon

Project:Activity Stream
Version:6.x-2.0-beta1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (duplicate)

Issue Summary

Hi,

When using the Feed Activity Stream in a View this error is displayed for each activitystream_feed node displayed.

warning: Missing argument 1 for theme_activitystream_feed_icon() in /activitystream/activitystream_feed/activitystream_feed.module on line 112.

The problem appears to be that the class activitystream_handler_activitystream_ico in views/activitystream_handler_activitystream_icon.inc is not passing the required node->data parameter to function theme_activitystream_feed_icon in activitystream_feed.module.

To workaround the issue, I just made the following modification in activitystream/views/activitystream_handler_activitystream_icon.inc

class activitystream_handler_activitystream_icon extends views_handler_field {

  function render($values) {
    //return print_r($values, true);
    if ($values->activitystream_module=='activitystream_feed') {
      return theme($values->activitystream_module .'_icon', ''); //pass empty param to workaround bug
    } else {
      return theme($values->activitystream_module .'_icon');
    }
    //return l(check_plain($values->feed_title), $values->feed_url, array('html' => TRUE));
  }

}

Comments

#1

Version:6.x-1.0» 6.x-2.0-beta1

This issue still persists in the 6.x-2.0-beta1 build.

#2

Status:active» fixed

Fixed in dev.

#3