Notice: Undefined index: flag_fetch_node_by_user

Created on 5 September 2014, about 11 years ago
Updated 19 August 2025, 2 months ago

On first install, I got the following notice:

Notice: Undefined index: flag_fetch_node_by_user in flag_rules_action_info() (line 380 of /.../sites/all/modules/contrib/flag/flag.rules.inc).
Notice: Undefined index: label in flag_rules_action_info() (line 381 of /.../sites/all/modules/contrib/flag/flag.rules.inc).

That looks like a legacy array index with no check for existence before referencing it. Line 380 of flag.rules.inc:

<?php
    $items['flag_fetch_entity_by_user'] = $items['flag_fetch_node_by_user'];
?>

I've added a test for existence and I'm submitting a patch.

🐛 Bug report
Status

Closed: outdated

Version

3.0

Component

Rules integration

Created by

🇨🇦Canada cleaver

Live updates comments and jobs are added and updated live.
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