Warning array offset on null

Created on 18 March 2024, 9 months ago
Updated 1 April 2024, 9 months ago

Problem/Motivation

I'm not able to reproduce this error, but I am seeing this a lot in the logs of many production sites.

Warning: Trying to access array offset on value of type null in Drupal\file_resup\Form\FileFormAlterBase::managedFileProcess() (line 69 of /var/www/html/web/modules/contrib/file_resup/src/Form/FileFormAlterBase.php

Proposed resolution

Let's try setting it to null if nothing exists. πŸ€”

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States tim bozeman

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024