Since we compare the value of $bpn_var[$node_type], we need to make sure that it is set.

In bulk_photo_nodes_submit():

if (!empty($image_field) && $image_field != $bpn_var[$node_type]) {

Should be changed to:

if (!isset($bpn_var[$node_type])) {
  $bpn_var[$node_type] = NULL;
}
if (!empty($image_field) && $image_field != $bpn_var[$node_type]) {
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

JordanMagnuson’s picture

Title: undefined index error in bulk_photo_nodes_submit() » undefined index error when enabling bulk photo node settings on content type
Issue summary: View changes
JordanMagnuson’s picture

Issue summary: View changes
JordanMagnuson’s picture

Issue summary: View changes

  • JordanMagnuson committed 850ab10 on 7.x-1.x
    Issue #2446675: undefined index error when enabling bulk photo node...
JordanMagnuson’s picture

Status: Needs review » Closed (fixed)

Committed to dev.

cmgdesign’s picture

Hi there - I don't know the protocol so I'm not sure I should be commenting on a closed issue but I'm using the latest dev version 7x 1xdev but it's still giving me an error of

Notice: Undefined index: body in bulk_photo_nodes_create_subform() (line 470 of /homepages/11/d596565183/htdocs/sites/all/modules/bulk_file_nodes/bulk_photo_nodes.module).

hockey2112’s picture

Priority: Normal » Major
Status: Closed (fixed) » Active

Me too. Since it affects the functionality of the module, seems like this should be marked Major or Critical.