I have a view which is being updated by AHAH (ffbss submit updates the view), if i use this view as my activity feed view then it all works fine until i come to submit a comment and it fails with the message:

warning: array_search() [function.array-search]: Wrong datatype for second argument in C:\xxx\sites\all\modules\activity\activity_comments\activity_comments.module on line 101.

The odd thing is that this behaviour only happens for the top most (ie, last status update message) activity feed. All other previous activity feeds can add comments just fine.

The code line in question is: $key = array_search('activity_comments_wrap', $form['#pre_render']);

and if i put dsm($form['#pre_render']) before that line then it shows that the variable is empty for that activity feed (but expected for all other feeds).

Comments

Scott Reynolds’s picture

Status: Active » Closed (duplicate)

This is an intensely complicated issue, and a duplicate:
#732966: Activity Comments Conflicts with FBSS & FBSL