"Undefined index: #type" error when combined with Remote Stream Wrapper

Created on 8 October 2021, about 3 years ago
Updated 27 November 2023, about 1 year ago

media_entity_file_replace.module includes a check of the entity form's widget, and uses a process callback if the widget's type is managed_file in order to hide action buttons. I found that since I'm using the Remote Stream Wrapper widget β†’ , the widget doesn't have a type at all, so I get a PHP notice on entity pages instead:
Notice: Undefined index: #type in /var/www/html/web/modules/contrib/media_entity_file_replace/media_entity_file_replace.module on line 148

I'll provide a patch that will include an additional check on that line for whether or not the widget has a type attribute, which appears to resolve the issue for me.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States kurttrowbridge

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

Merge Requests

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