I'm getting the following error message when I post comments to a node:
warning: array_key_exists() [function.array-key-exists]: The first argument should be either a string or an integer in /usr/www/users/dpedia/drupal6dev/sites/all/modules/notifications/notifications.module on line 761.
I inserted the following drupal_set_message line into the notifications_load_subscription function, which is where the error is occurring:
drupal_set_message("SUBS =" . $subs);
It returns three results, showing that the function was called three times, with values for $subs of 1, 5 and 1 respectively. I don't know why any of those values would cause the error message above to kick out, but I was able to suppress the error message by changing line 759 from
$sid = $subs;
to
$sid = (int) $subs;
Comments
Comment #1
jose reyero commentedWe are not doing checks for allowing wrong argumets. I think this is OG, check on og queue
Comment #2
sraisz commentedI had the same problem. Did what you did and it went away. First I installed the .dev version to see if that might fix it.
This seems to have appeared after I enabled notifications for OG enabled group posting content.
Comment #3
sheldon rampton commentedIt's not an OG thing, by the way. I got this error message on a site that doesn't use organic groups.