0

For any reason I receive this ugly message every time when removing a field from an entity. No matter if the entity is a node or a paragraph.

The error message makes no sense, as removing a field from a node via admin ui causes the error: Attempt to create a field field_top_line that does not exist on entity type paragraph.

The field field_top_line is an old field, that was removed long ago and has no relation to the current entity. The removing-action from the entity however does work.

When I search for the field in sql I find many mentions in the current tables:

  • cachetags
  • cache_config
  • cache_discovery
  • config
  • config_snapshot
  • key_value
  • watchdog

Has anybody an idea how to solve this issue?

<em class="placeholder">Drupal\Core\Field\FieldException</em>: Attempt to create a field field_top_line that does not exist on entity type paragraph. in <em class="placeholder">Drupal\field\Entity\FieldConfig-&gt;getFieldStorageDefinition()</em> (line <em class="placeholder">315</em> of <em class="placeholder">core/modules/field/src/Entity/FieldConfig.php</em>). <pre class="backtrace">Drupal\Core\Entity\Sql\SqlContentEntityStorage-&gt;readFieldItemsToPurge(Object, 10) (Line: 452)
Drupal\Core\Entity\ContentEntityStorageBase-&gt;purgeFieldData(Object, 10) (Line: 92)
field_purge_batch(10) (Line: 115)
Drupal\field_ui\Form\FieldConfigDeleteForm-&gt;submitForm(Array, Object)
call_user_func_array(Array, Array) (Line: 111)
Drupal\Core\Form\FormSubmitter-&gt;executeSubmitHandlers(Array, Object) (Line: 51)
Drupal\Core\Form\FormSubmitter-&gt;doSubmitForm(Array, Object) (Line: 589)
Drupal\Core\Form\FormBuilder-&gt;processForm(&#039;field_config_delete_form&#039;, Array, Object) (Line: 318)
Drupal\Core\Form\FormBuilder-&gt;buildForm(&#039;field_config_delete_form&#039;, Object) (Line: 93)
Drupal\Core\Controller\FormController-&gt;getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber-&gt;Drupal\Core\EventSubscriber\{closure}() (Line: 582)
Drupal\Core\Render\Renderer-&gt;executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber-&gt;wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber-&gt;Drupal\Core\EventSubscriber\{closure}() (Line: 151)
Symfony\Component\HttpKernel\HttpKernel-&gt;handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel-&gt;handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session-&gt;handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle-&gt;handle(Object, 1, 1) (Line: 99)
Drupal\page_cache\StackMiddleware\PageCache-&gt;pass(Object, 1, 1) (Line: 78)
Drupal\page_cache\StackMiddleware\PageCache-&gt;handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware-&gt;handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware-&gt;handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel-&gt;handle(Object, 1, 1) (Line: 693)
Drupal\Core\DrupalKernel-&gt;handle(Object) (Line: 19)
</pre>
  • try running drush entity-updates – GiorgosK Mar 29 '19 at 7:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.