I got that warning when i created a gallery for the node gallery module:

* warning: array_keys() [function.array-keys]: The first argument should be an array in /var/www/htdocs/modules/friendlist/friendlist_access/friendlist_access.module on line 292.
* warning: Invalid argument supplied for foreach() in /var/www/htdocs/modules/friendlist/friendlist_access/friendlist_access.module on line 292.

Comments

mercmobily’s picture

Hi,

The quick solution is to just disable friendlist_access -- unless you are using it!

Does the problem get better if you change line 268 into:

$node->friendlist_access = (array) unserialize($result->permissions);

...?
Just a wild guess.
I just wonder why nobody else has had the same problem before...

Merc.

michtoen’s picture

Strange, i can't reproduce the bug now!

I and another developer had it here and there over the weekend on our test site, but now it seems
vanished after we added other modules. Anyway, i disabled the friendlist access.

ATM all works fine, i will give a note when it happens again. We have still alot to install and change,
so there is a chance.

mercmobily’s picture

Hi,

OK no worries.
I think I know what it is anyway :-D

Leave this open, I will look into fixing it.

Merc.

irakli’s picture

Assigned: Unassigned » irakli
Status: Active » Fixed

The fix for http://drupal.org/node/343906 actually fixes this one too. That was easy :)

Fix is in CVS now.

mercmobily’s picture

(Did I mention that I love you Irakly?)

((Somebody who *actually* knows Drupal is now maintaining Friendlist...))

(((I want the same luck with Drigg...)))

(((( thanks :-D ))))

Merc.

Status: Fixed » Closed (fixed)

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