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
Comment #1
mercmobily commentedHi,
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.
Comment #2
michtoen commentedStrange, 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.
Comment #3
mercmobily commentedHi,
OK no worries.
I think I know what it is anyway :-D
Leave this open, I will look into fixing it.
Merc.
Comment #4
irakli commentedThe fix for http://drupal.org/node/343906 actually fixes this one too. That was easy :)
Fix is in CVS now.
Comment #5
mercmobily commented(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.