Does not work with Drupal - 11.1.6 and php 8.3.13

Created on 3 May 2025, 4 days ago

I have installed the module on Drupal - 11.1.6 running with php 8.3.13 and when i try to add a mapping there is no
field to process option - i made sure that i have the pdf field in the bundle.

I looked at the code and when i edited the /src/Entity/Form/Mapping/EditForm.php

so the

 $form['fields_container_ne']['field_ne'] = [
          '#title' => $this->t('Field'),
          '#type' => 'select',
          '#options' => $field_options,
          '#default_value' => $field_selector['field'],
          '#description' => $this->t('File field to process.'),
          '#disabled' => FALSE,
          '#required' => TRUE,
        ];

disabled was true - i have changed it to false - now i can edit the mapping and now i see the file fields but when i try to save them they are not saved - in the drupal log there are two warnings but i dont know how to fix this.

The warnings are something like this.

Warning: Undefined array key "field_label" in Drupal\document_ocr\Controller\MappingListBuilder->buildRow() (line 43 of /var/www/drupal/web/modules/contrib/document_ocr/src/Controller/MappingListBuilder.php)

Warning: Undefined array key "field" in Drupal\document_ocr\Controller\MappingListBuilder->buildRow() (line 43 of /var/www/drugs/web/modules/contrib/document_ocr/src/Controller/MappingListBuilder.php)

Any suggestions ?

🐛 Bug report
Status

Active

Version

1.0

Component

Miscellaneous

Created by

🇧🇬Bulgaria persuader

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

Comments & Activities

Production build 0.71.5 2024