After upgrading to 4.0.10 today I'm getting an error on webform submission.
Error: Call to undefined method Drupal\referral_portal\Entity\Node\Referral::setPassword() in Drupal\webform_content_creator\Entity\WebformContentCreatorEntity->mapContentField() (line 471 of modules/contrib/webform_content_creator/src/Entity/WebformContentCreatorEntity.php).
Drupal\webform_content_creator\Entity\WebformContentCreatorEntity->createContent() (Line: 25)
webform_content_creator_webform_submission_insert()
call_user_func_array() (Line: 402)
Drupal\Core\Extension\ModuleHandler->Drupal\Core\Extension\{closure}() (Line: 355)
Drupal\Core\Extension\ModuleHandler->invokeAllWith() (Line: 401)
Drupal\Core\Extension\ModuleHandler->invokeAll() (Line: 215)
Drupal\Core\Entity\EntityStorageBase->invokeHook() (Line: 915)
Drupal\Core\Entity\ContentEntityStorageBase->invokeHook() (Line: 565)
Drupal\Core\Entity\EntityStorageBase->doPostSave() (Line: 796)
Drupal\Core\Entity\ContentEntityStorageBase->doPostSave() (Line: 1030)
Drupal\webform\WebformSubmissionStorage->doPostSave() (Line: 490)
Drupal\Core\Entity\EntityStorageBase->save() (Line: 804)
Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (Line: 988)
Drupal\webform\WebformSubmissionStorage->save() (Line: 370)
Drupal\Core\Entity\EntityBase->save() (Line: 913)
Drupal\webform\Entity\WebformSubmission->save() (Line: 2054)
Drupal\webform\WebformSubmissionForm->save()
call_user_func_array() (Line: 105)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers() (Line: 43)
Drupal\Core\Form\FormSubmitter->doSubmitForm() (Line: 589)
Drupal\Core\Form\FormBuilder->processForm() (Line: 321)
Drupal\Core\Form\FormBuilder->buildForm() (Line: 48)
Drupal\Core\Entity\EntityFormBuilder->getForm() (Line: 1250)
Drupal\webform\Entity\Webform->getSubmissionForm() (Line: 89)
Drupal\webform\Controller\WebformEntityController->addForm()
Note that this content creator is creating nodes, not users. There is no password field on the webform.
I'm using PHP 8.3.23, Drupal 11.2.2, Webform 6.3.0-beta4.
Comments
Comment #2
floydm commented$attributes[$field_id][WebformContentCreatorInterface::TYPE]is resolving to TRUE.'password' == 'TRUE'Comment #3
floydm commentedComment #4
joaomarques736 commentedHello floydm,
It is already fixed in 4.0.11. Many thanks for reporting this!
Comment #5
joaomarques736 commentedComment #6
floydm commentedFantastic. Thank you!
Comment #8
reevo commented4.0.12 seems to have reintroduced this issue.
Comment #9
rteijeiro commentedPatch in #2 still fixes the issue for version 4.0.12. Tested and it works. Maybe reopen the issue until it's committed?
Comment #10
sara_asb commentedHello reevo, thanks for the heads-up! We've re-applied the change and it is now available in release 4.0.13.