When I add a field to the user account settings and then enable the module and try to edit the user I get the following:

The website encountered an unexpected error. Please try again later.Drupal\Core\Entity\EntityStorageException: Entity validation was skipped. in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 829 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).

Drupal\user\Entity\User->preSave(Object) (Line: 434)
Drupal\Core\Entity\EntityStorageBase->doPreSave(Object) (Line: 578)
Drupal\Core\Entity\ContentEntityStorageBase->doPreSave(Object) (Line: 389)
Drupal\Core\Entity\EntityStorageBase->save(Object) (Line: 820)
Drupal\Core\Entity\Sql\SqlContentEntityStorage->save(Object) (Line: 387)
Drupal\Core\Entity\Entity->save() (Line: 38)
Drupal\user\ProfileForm->save(Array, Object)
call_user_func_array(Array, Array) (Line: 111)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 51)
Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 585)
Drupal\Core\Form\FormBuilder->processForm('user_form', Array, Object) (Line: 314)
Drupal\Core\Form\FormBuilder->buildForm('user_form', Object) (Line: 74)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 582)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 151)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 99)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 78)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 38)
Drupal\webprofiler\StackMiddleware\WebprofilerMiddleware->handle(Object, 1, 1) (Line: 50)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 657)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

To duplicate this issue go to account settings and add a text(plain) field (I.E. field_first_name) do not require it then try to edit the user profile.

Is anyone else running into this issue?

CommentFileSizeAuthor
#3 2949492-3.patch1.01 KBrajeshwari10

Comments

Christopher Riley created an issue. See original summary.

rajeshwari10’s picture

Assigned: Unassigned » rajeshwari10
rajeshwari10’s picture

Assigned: rajeshwari10 » Unassigned
Status: Active » Needs review
StatusFileSize
new1.01 KB

Hi,

Please Review the patch. The issue is resolved.

Thanks

Christopher Riley’s picture

So far on initial testing all seems fine and dandy thank you so much for the quick response. I will let you know if I run into any additional issues but I think we got this rascal taken care of.

neeraprajapati’s picture

Status: Needs review » Reviewed & tested by the community

Patch working fine.

rakesh.gectcr’s picture

Issue tags: +Drupal 9 compatibility, +Drupal 9 porting weekend, +Drupal 9 compatibilityDrupal 9 porting weekendDIACWMay2020
rakesh.gectcr’s picture

Status: Reviewed & tested by the community » Fixed

Thank you all for your contribution.

kristen pol’s picture

Issue tags: -Drupal 9 compatibilityDrupal 9 porting weekendDIACWMay2020 +DIACWMay2020

Fixing tags.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.