Closed (fixed)
Project:
Notifications
Version:
6.x-2.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 May 2009 at 19:48 UTC
Updated:
28 Jun 2009 at 13:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
toddwoof commentedI'm getting the same error -- actually, lots and lots of the same error -- after upgrading to 6.x-2.0. Anyone have any ideas? I've been trying to figure out the new settings arrangement, based on the idea that I might be missing something in the configuration, but can't find anything obviously wrong with how I have it configured.
Comment #2
toddwoof commentedSome additional details:
Running D 6.11 with Zen theme.
Updgrading to Notifications/Messaging 2.0 results in many, many implode errors, maybe on every hit.
It seems to be related to hits by anonymous users.
Switched to Bluemarine to see if the theme was the problem, but no change.
Reverted to Notifications 1.1 and Messaging 1.1 and errors stopped.
Identical behavior on my development site.
Comment #3
swellbow commentedAlso getting this. Confirming it happens with anonymous users but not logged in users. I have notifications disabled for the particular content type, but this function still runs, passing a $type of 'unsubscribe'. Since the user is anonymous, they have no subscription information, and implode runs on an empty array.
It's being called by notifications_token_values ($type = user) if that helps any.
Comment #4
seaneffel commentedHere is more information:
I'm using OG 6.x-1.3 and Notifications 6.x-2.0.
I have a long chain of errors for each time a user submits content to an OG group. In my use case, users can only be subscribed to new content published in OG groups. The Drupal error log around the time of each of these postings started with these messages.
When a user submits a node, there is an error for each outgoing notification (one for each subscribed user):
And then another error, also for each outgoing notification:
The notifications do get sent to the users, but the error log is flooded with this pair of errors. Sometimes groups with 100 members the error log is staggeringly large.
Can anyone explain why this is happening?
Comment #5
Rosamunda commentedsubscribing
Comment #6
jose reyero commentedThe OG problem is a different one, see http://drupal.org/node/432556
So does this happen without OG? And which page causes this error? (viewing a node, submitting a comment.... )
Comment #7
swellbow commentedFor me this is happening without OG when users submit a new node (of a custom type). This node submit is also running validation api and mollom, but they don't seem to be involved as far as this error is concerned.
I have not seen this behavior with comments.
Comment #8
seaneffel commentedYes, it is still happening without the OG_notifications module. And its also the same as swellbow says, its not generating this error when submitting comments.
Comment #9
dicreat commentedI have the same error.
Comment #10
boonep commentedsubscribing
Comment #11
Gerard McGarry commentedIt happens independently of OG for me - like when a blog comment is posted or a type of content that can be subscribed to. Although, my feeling is that this started *before* the 2.0 version.
Comment #12
Mike Gogulski commentedsubbing
Comment #13
arthurf commentedThe issue with line 761 seems to be that $sid is not set, but the function array_key_exists($sid, $cache) requires that $sid have a value. If I understand this correctly, this patch should fix it.
Comment #14
kaareThe original post is related to the same problem I had, issue #484728: Incomplete test causing implode() to fail in notifications_get_link(). and is caused by an undefined
$elementsvariable innotifications_get_link().Could you try this patch (and read the explanation in #484728: Incomplete test causing implode() to fail in notifications_get_link()) and verify that this works?
Comment #15
dicreat commentedPatch #14 work for me. Thanks.
Comment #16
swellbow commentedPatch #14 works for me as well. Thanks a lot!
Comment #17
jose reyero commentedDone some fix, following the lines of #14
Comment #18
wxman commentedEvery time I got the error mentioned above, I also got this one on my apache log:
Call to undefined function pathauto_cleanstring() in /var/www/clients/client2/web2/web/sites/all/modules/custom_breadcrumbs/custom_breadcrumbs.module on line 324I don't know if they're connected, but I'm going to try the patch today.