Hi,

When I try to copy date_field I get the following error:

Undefined index: field_date in Drupal\bulk_copy_fields\Form\BulkCopyFieldsForm->buildForm() (line 235 of modules/contrib/bulk_copy_fields/src/Form/BulkCopyFieldsForm.php).

It's definitely there, I don't understand why it would be undefined. It happens whether I try to copy one node or half a dozen.

Once the batch process finishes it reports successful copying, but underneath that is a list of images which it couldn't copy, which is very strange as I didn't ask it to copy images.

Any ideas?

Thanks,
Jesse.

Comments

imperator_99 created an issue. See original summary.

el1_1el’s picture

Status: Active » Postponed (maintainer needs more info)

I tried setting up a content type with field_date_1 and field_date_2 and successfully copied field_date_1 to field_date_2. I had an image attached and didnt get any image errors.

Undefined index means field_date doesnt exist and im not sure how you got date_field as a field name since it would normally be field_date_field.

I'll need more info to investigate further - ie content type and screenshots of the process.

el1_1el’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)
Related issues: +#3178990: Why are base fields not copied?