Undefined index when used in conjunction with Countries, likely due to AJAX refresh invoking a validate handler

Created on 2 May 2013, over 11 years ago
Updated 22 July 2024, 5 months ago

So, this is kind of a weird situation, but inside drupal commerce products, if i add fields with both drupal countries http://drupal.org/project/countries and multi image field http://drupal.org/project/multiupload_imagefield_widget an error Occurs.

This error happens when i try to select a continent using the countries module:

Notice: Undefined index: display_field in mfw_field_widget_value() (line 140 of /home/site/public_html/site/sites/all/modules/multiupload_filefield_widget/multiupload_filefield_widget.field.inc).

countries has nothing to do with multiupload and works fine when I remove the multiupload image field from the product.

I really don't know where to post the issue as it is really weird for me. I choose commerce, because this issue does not occur when both fields are present in nodes, only in a product.

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States xbrianx

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.

  • πŸ‡¦πŸ‡ΊAustralia VladimirAus Brisbane, Australia

    Thanks everyone!
    Fixed as 7.64 core.

  • Status changed to Needs review 5 months ago
  • πŸ‡¬πŸ‡·Greece arx-e

    I had this issue today with image fields that use multi upload image filed widget.

    "Warning: Undefined array key "display_field" in mfw_field_widget_value() (line 159 of /home/....../sites/all/modules/multiupload_filefield_widget/multiupload_filefield_widget.field.inc)."

    The change in #2 fixed the issue for me.
    Drupal 7.101, php 8.1. 29

Production build 0.71.5 2024