Parameter 2 to og_notifications_notifications() expected to be a reference, value given in...

Created on 28 September 2010, about 14 years ago
Updated 27 October 2024, about 2 months ago

Problem/Motivation

The following error happens when accessing an OG node page, or clearing drupal cache with drush.

warning: Parameter 2 to og_notifications_notifications() expected to be a reference, value given in messaging/messaging.module on line 1242

Requirements:

1. Php 5.3
2. Clean install Drupal 6.
3. Installed modules:
Messaging 6.x-4.x-dev
Organic groups 6.x-2.x-dev

Proposed resolution

Find in og_notifications.module the function og_notifications_notifications and remove the ampersand by the first argument:

function og_notifications_notifications($op, &$arg0, $arg1 = NULL, $arg2 = NULL)
=>
function og_notifications_notifications($op, $arg0, $arg1 = NULL, $arg2 = NULL)

Remaining tasks

  • Create patch.

User interface changes

None.

API changes

Follow function signature as defined in Messaging API module.

Data model changes

None

πŸ› Bug report
Status

Closed: outdated

Version

2.0

Component

og_notifications

Created by

πŸ‡ΈπŸ‡°Slovakia petiar

Live updates comments and jobs are added and updated live.
  • PHP 5.3

    The issue particularly affects sites running on PHP version 5.3.0 or later.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024