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

Issue fork date_ical-3402246

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

joelpittet created an issue. See original summary.

joelpittet’s picture

Issue summary: View changes
Status: Active » Needs review

I just added an isset() "Check$field variable is an object before accessing properties on it."

stevewilson’s picture

Status: Needs review » Reviewed & tested by the community

This fixes the issue for me. Setting to RTBC.

joelpittet’s picture

Status: Reviewed & tested by the community » Fixed

This was fixed thanks @stevewilson for RTBCing this Nov 26, 2023 4bb4c259

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.