Skip to main content
added 89 characters in body
Source Link
awm
  • 2.5k
  • 1
  • 22
  • 44

You are getting this error becauseUpdate: it seems that you need to run cron to complete the field that was removed in configuration haspurging process drupal goes through.

Also you may be getting some errors when the fields you are deleting have data in the databasethem . entup does not attemp to drop fields with data in them and you have to do it yourself. You have 2 options:

  1. Go to each field in the content type and delete them manually.

  2. Write an update hook that delete the fields before you run entup. In other words, you run drush updb then you run drush entup provided you have implemented an update hook that deletes the fields. Something like this (code not tested):

     function my_module_update_8001() { $entity_type = 'node'; // or user or wherever the field appears $bundle_name = "article"; // or whereever the field appears $field_machine_names = array('field_one', 'field_two'); foreach($field_machine_names as $field_machine_name) { $field = \Drupal::entityManager()->getStorage('field_config')->load($entity_type.$bundle_name.$field_machine_name); $field->delete(); } } 

In addition, make sure that you run cron frequently because that's when drupal does garbage collection and deleted field data get purged.

You are getting this error because the field that was removed in configuration has data in the database. entup does not attemp to drop fields with data in them and you have to do it yourself. You have 2 options:

  1. Go to each field in the content type and delete them manually.

  2. Write an update hook that delete the fields before you run entup. In other words, you run drush updb then you run drush entup provided you have implemented an update hook that deletes the fields. Something like this (code not tested):

     function my_module_update_8001() { $entity_type = 'node'; // or user or wherever the field appears $bundle_name = "article"; // or whereever the field appears $field_machine_names = array('field_one', 'field_two'); foreach($field_machine_names as $field_machine_name) { $field = \Drupal::entityManager()->getStorage('field_config')->load($entity_type.$bundle_name.$field_machine_name); $field->delete(); } } 

In addition, make sure that you run cron frequently because that's when drupal does garbage collection and deleted field data get purged.

Update: it seems that you need to run cron to complete the field purging process drupal goes through.

Also you may be getting some errors when the fields you are deleting have data in them . entup does not attemp to drop fields with data in them and you have to do it yourself. You have 2 options:

  1. Go to each field in the content type and delete them manually.

  2. Write an update hook that delete the fields before you run entup. In other words, you run drush updb then you run drush entup provided you have implemented an update hook that deletes the fields. Something like this (code not tested):

     function my_module_update_8001() { $entity_type = 'node'; // or user or wherever the field appears $bundle_name = "article"; // or whereever the field appears $field_machine_names = array('field_one', 'field_two'); foreach($field_machine_names as $field_machine_name) { $field = \Drupal::entityManager()->getStorage('field_config')->load($entity_type.$bundle_name.$field_machine_name); $field->delete(); } } 

In addition, make sure that you run cron frequently because that's when drupal does garbage collection and deleted field data get purged.

added 8 characters in body
Source Link
awm
  • 2.5k
  • 1
  • 22
  • 44

You are getting this error because the field that was removed in configuration has data in the database. entup does not attemp to drop fields with data in them and you have to do it yourself. You have 2 options:

  1. Go to each field in the content type and delete them manually.

  2. Write an update hook that delete the fields before you run entup. In other words, you run drush updb then you run drush entup provided you have implemented an update hook that deletes the fields. Something like this (code not tested):

     function my_module_update_8001() { $entity_type = 'node'; // or user or wherever the field appears $bundle_name = "article"; // or whereever the field appears $field_machine_names = array('field_one', 'field_two'); foreach($field_machine_names as $field_machine_name) { $field = \Drupal::entityManager()->getStorage('field_config')->load($entity_type.$bundle_name.$field_machine_name); $field->delete();  field_purge_field($field); } } 

In addition, make sure that you run cron frequently because that's when drupal does garbage collection and deleted field data get purged.

You are getting this error because the field that was removed in configuration has data in the database. entup does not attemp to drop fields with data in them and you have to do it yourself. You have 2 options:

  1. Go to each field in the content type and delete them manually.

  2. Write an update hook that delete the fields before you run entup. In other words, you run drush updb then you run drush entup provided you have implemented an update hook that deletes the fields. Something like this (code not tested):

     function my_module_update_8001() { $entity_type = 'node'; // or user or wherever the field appears $bundle_name = "article"; // or whereever the field appears $field_machine_names = array('field_one', 'field_two'); foreach($field_machine_names as $field_machine_name) { $field = \Drupal::entityManager()->getStorage('field_config')->load($entity_type.$bundle_name.$field_machine_name); $field->delete();  field_purge_field($field); } } 

In addition, make sure that you run cron frequently because that's when drupal does garbage collection.

You are getting this error because the field that was removed in configuration has data in the database. entup does not attemp to drop fields with data in them and you have to do it yourself. You have 2 options:

  1. Go to each field in the content type and delete them manually.

  2. Write an update hook that delete the fields before you run entup. In other words, you run drush updb then you run drush entup provided you have implemented an update hook that deletes the fields. Something like this (code not tested):

     function my_module_update_8001() { $entity_type = 'node'; // or user or wherever the field appears $bundle_name = "article"; // or whereever the field appears $field_machine_names = array('field_one', 'field_two'); foreach($field_machine_names as $field_machine_name) { $field = \Drupal::entityManager()->getStorage('field_config')->load($entity_type.$bundle_name.$field_machine_name); $field->delete(); } } 

In addition, make sure that you run cron frequently because that's when drupal does garbage collection and deleted field data get purged.

Source Link
awm
  • 2.5k
  • 1
  • 22
  • 44

You are getting this error because the field that was removed in configuration has data in the database. entup does not attemp to drop fields with data in them and you have to do it yourself. You have 2 options:

  1. Go to each field in the content type and delete them manually.

  2. Write an update hook that delete the fields before you run entup. In other words, you run drush updb then you run drush entup provided you have implemented an update hook that deletes the fields. Something like this (code not tested):

     function my_module_update_8001() { $entity_type = 'node'; // or user or wherever the field appears $bundle_name = "article"; // or whereever the field appears $field_machine_names = array('field_one', 'field_two'); foreach($field_machine_names as $field_machine_name) { $field = \Drupal::entityManager()->getStorage('field_config')->load($entity_type.$bundle_name.$field_machine_name); $field->delete(); field_purge_field($field); } } 

In addition, make sure that you run cron frequently because that's when drupal does garbage collection.