Flag module drupal 7 compatibility with PHP 8.1

Created on 21 July 2023, 11 months ago
Updated 29 February 2024, 3 months ago

Problem/Motivation

After upgrading my php verision to 8.1 and clearing cache the flags module does not work as expected. Site crashes with warnings in watchdog:
Warning: Undefined array key "normal" in /var/www/html/sites/all/modules/contrib/flag/includes/flag/flag_flag.inc on line 1214
arning: Trying to access array offset on value of type null in /var/www/html/sites/all/modules/contrib/flag/includes/flag/flag_flag.inc on line 203

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Needs work

Version

3.9

Component

Flag core

Created by

🇮🇳India aravindkrishna

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

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

Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024