Notice: Undefined index: #access in media_name_form_media_form_alter() (line 34 of modules/contrib/media_name/media_name.module).

Created on 13 October 2021, about 3 years ago
Updated 13 September 2024, 4 months ago

Original issue summary:
After installing the "8.x-1.0-alpha2" version, I was getting the following error message:
Notice: Undefined index: #access in media_name_form_media_form_alter() (line 34
of modules/contrib/media_name/media_name.module).

It looks like you are trying to #access a key that is not defined within an associative array.
This can be resolved by checking the variable with the "isset()" function first.

Steps to reproduce:

Enable this module.
Create two different media types. EG. Two document types for files
So the use case is having different meta data for specific document categories.
Expose the media name on the manage form display for one of the document types but not the other.
The error message will occur when editing the type without the media name.

🐛 Bug report
Status

Needs work

Component

Code

Created by

🇹🇳Tunisia matio89 UTC+1 🇹🇳

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

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