Trying to access array offset on value of type null in date_ical_plugin_style_ical_feed->get_field_value()

Created on 16 November 2023, 11 months ago
Updated 20 December 2023, 9 months ago

Problem/Motivation

After upgrading to 3.12, I started seeing these in the logs:

Warning: Trying to access array offset on value of type null in date_ical_plugin_style_ical_feed->get_field_value() (line 473 of date_ical/includes/date_ical_plugin_style_ical_feed.inc).
Warning: Attempt to read property "field_info" on string in date_ical_plugin_style_ical_feed->get_field_value() (line 473 of date_ical/includes/date_ical_plugin_style_ical_feed.inc).

Steps to reproduce

Proposed resolution

Check that the $field variable is an object before accessing properties on it.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

RTBC

Version

3.0

Component

iCal Export

Created by

🇨🇦Canada joelpittet Vancouver

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024