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

Fidelix’s picture

Well... 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)

fatfish’s picture

derEremit’s picture

Version: 6.x-2.1 » 6.x-2.4

still not fixed in 2.4.
simply removing the & on the second argument apparently fixes it

Grayside’s picture

Without 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?

Grayside’s picture

Status: Active » Postponed (maintainer needs more info)
AntiNSA’s picture

Priority: Normal » Critical

AnyIdea how to fix this yet? I have the lates dev versions....

kenorb’s picture

Does it break any functionality?
As the workaround, you can downgrade to PHP 5.2.x or just disable warnings in your PHP.

AntiNSA’s picture

I am having memory problems and am trying to troubleshoot the cause. If you could fix this error that would be great.

AntiNSA’s picture

Actually this error is causing verify issues within aegir. Can you do anything to issue a working patch which could solve this? Most appreciated...

puravida’s picture

Just 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

puravida’s picture

Looks 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.

jwilson3’s picture