I am getting this warning on Php5.3:
WD php: Warning: Parameter 2 to og_notifications_notifications() expected to be a reference, value given in messaging_module_invoke_all() (line 1242[error]
of /sites/all/modules/messaging/messaging.module).
line 1242 is in messaging.module
$result = call_user_func_array($function, $args);
The issue may be that the line to instantiate the function is indeed expecting a reference. apparently Php5.2x will use it as a value but it breaks on php5.3 ?
see http://drupalcontrib.org/api/function/og_notifications_notifications/6
function og_notifications_notifications($op, &$arg0, $arg1 = NULL, $arg2 = NULL) {
Probably the same issue: #925462: Parameter 2 to og_notifications_notifications() expected to be a reference, value given in...
Comments
Comment #1
Fidelix CreditAttribution: Fidelix commentedWell... i'm getting the same error message all the time.
Warning: Parameter 2 to og_notifications_notifications() expected to be a reference, value given em messaging_module_invoke_all() (linha 1242 em /home/lg/www/sites/all/modules/messaging/messaging.module)
Comment #2
fatfish CreditAttribution: fatfish commentedhttp://drupal.org/node/925462#comment-4271042
Comment #3
derEremit CreditAttribution: derEremit commentedstill not fixed in 2.4.
simply removing the & on the second argument apparently fixes it
Comment #4
Grayside CreditAttribution: Grayside commentedWithout canonical Notifications API documentation it is a bit difficult to determine the best course of action. However, I see that the Notifications project uses the ampersand in it's Notifications Lite implementation.
I do not want to change the expectations the Notifications module might have for implementations of this hook. Can someone confirm that this parameter is not supposed to be a reference?
Comment #5
Grayside CreditAttribution: Grayside commentedComment #6
AntiNSA CreditAttribution: AntiNSA commentedAnyIdea how to fix this yet? I have the lates dev versions....
Comment #7
kenorb CreditAttribution: kenorb commentedDoes it break any functionality?
As the workaround, you can downgrade to PHP 5.2.x or just disable warnings in your PHP.
Comment #8
AntiNSA CreditAttribution: AntiNSA commentedI am having memory problems and am trying to troubleshoot the cause. If you could fix this error that would be great.
Comment #9
AntiNSA CreditAttribution: AntiNSA commentedActually this error is causing verify issues within aegir. Can you do anything to issue a working patch which could solve this? Most appreciated...
Comment #10
puravida CreditAttribution: puravida commentedJust a quick note: This error may be caused by checking "Notifications" in the "Spam" module settings.
I have done no troubleshooting but I'm getting the following variation of this error:
Parameter 2 to spam_notifications() expected to be a reference, value given
The only thing different is that I installed the Spam module, as mentioned.
Hope it helps...
Cheers,
Brandon
Comment #11
puravida CreditAttribution: puravida commentedLooks like unchecking "Notifications" and "Users" still had the same error output. So it may be inherent in "Spam" or "Spambot" or "Spamicide." Sorry but cannot pinpoint yet.
Comment #12
jwilson3Duplicate of #925462: Parameter 2 to og_notifications_notifications() expected to be a reference, value given in..., which has a patch ;)