You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Notice: Trying to access array offset on value of type null in field_config_label_instance() (line 436 of /var/www/html/docroot/core/modules/field/field.module)
#5651
Closed
alanmels opened this issue
Jun 15, 2022
· 2 comments
Description of the bug
A single item configuration export page at
admin/config/development/configuration/single/export
is giving the notice in title.Steps To Reproduce
To reproduce the behavior:
admin/config/development/logging
and set All messages to display.admin/config/development/configuration/single/export
and see the reported notice.Additional information
The offending line looks as
$entity_label = $entity_type['label'];
and the whole function as:Now, I've put the following check to find out which entity is causing the notice:
and it returned
comment
(which is not entity on Backdrop AFAIK) three times:Running the same check condition for
$config_name
has given:I'm not sure what's the best solution here, but changing the code as below makes the notice go away:
Should I create a PR or another solution preventing the comment configuration from being fed to the function should be considered?
The text was updated successfully, but these errors were encountered: