Using a Sept. 18th dev version - which works fabulously for the most part - except that I'm getting the following error report on pages that display the attached view:

warning: array_merge() [function.array-merge]: Argument #2 is not an array in /Users/thomascermak/Sites/londonfuse/sites/all/modules/activity/activity.module on line 358.

CommentFileSizeAuthor
#1 array.patch1.15 KBScott Reynolds
friend_activity.txt6.47 KBpribeh

Comments

Scott Reynolds’s picture

Status: Active » Needs review
StatusFileSize
new1.15 KB

Funny, its really happening when you go to the page display?

Anyways, give this a try.

pribeh’s picture

Vanished! Thanks!

liliplanet’s picture

Hi,

I also have the same problem, although have activity.module of 20 September and the patch is not possible in latest version.

array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #2 is not an array in /home/public_html/sites/all/modules/activity/activity.module on line 358.

Most appreciate any reply :)
Lilian

Scott Reynolds’s picture

I also have the same problem, although have activity.module of 20 September and the patch is not possible in latest version.

I was able to just fine.

~/Sites/contrib/sites/all/modules/activity: pwd
/Users/scott/Sites/contrib/sites/all/modules/activity
~/Sites/contrib/sites/all/modules/activity: patch -i ~/Desktop/array_0.patch.txt 
patching file activity.module
~/Sites/contrib/sites/all/modules/activity: 

Anyways, I committed a different version of this patch. The patch posted i this issue only really helped to find the problem. My committed sortof fixed it? hook_token_values() is being called without passing in the $object.. That is causing problems previously, because if the $object was empty() then the hook_activity_token_values() would return NULL instead of an array.

My commit makes it always return an array even if the $object is empty().

http://drupal.org/cvs?commit=266212

Scott Reynolds’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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