I believe this happens when other modules are deleted. (sorry I haven't investigated why it is deleted)

drush features-import social-activity

Config field.field.message.moved_content_between_groups.field_message_related_object (missing from active)

Config field.field.message.create_topic_group.field_message_related_object (missing from active)

Config field.field.message.create_topic_community.field_message_related_object (missing from active)

Config field.field.message.create_post_profile.field_message_related_object (missing from active)

Config field.field.message.create_post_group.field_message_related_object (missing from active)

Config field.field.message.create_post_community.field_message_related_object (missing from active)

Config field.field.message.create_event_group.field_message_related_object (missing from active)

Config field.field.message.create_event_community.field_message_related_object (missing from active)

Config field.field.message.create_comment_reply.field_message_related_object (missing from active)

Config field.field.message.create_comment_post_profile.field_message_related_object (missing from active)

Config field.field.message.create_comment_group_post.field_message_related_object (missing from active)

Config field.field.message.create_comment_group_node.field_message_related_object (missing from active)

Config field.field.message.create_comment_community_post.field_message_related_object (missing from active)

Config field.field.message.create_comment_community_node.field_message_related_object (missing from active)

Config field.field.message.create_comment_author_node_post.field_message_related_object (missing from active)

drush features-import social_activity

drush features-import social_activity
Do you really want to import social_activity : field.field.message.moved_content_between_groups.field_message_related_object? (y/n): y
Do you really want to import social_activity : field.field.message.create_topic_group.field_message_related_object? (y/n): y
Do you really want to import social_activity : field.field.message.create_topic_community.field_message_related_object? (y/n): y
Do you really want to import social_activity : field.field.message.create_post_profile.field_message_related_object? (y/n): y
Do you really want to import social_activity : field.field.message.create_post_group.field_message_related_object? (y/n): y
Do you really want to import social_activity : field.field.message.create_post_community.field_message_related_object? (y/n): y
Do you really want to import social_activity : field.field.message.create_event_group.field_message_related_object? (y/n): y
Do you really want to import social_activity : field.field.message.create_event_community.field_message_related_object? (y/n): y
Do you really want to import social_activity : field.field.message.create_comment_reply.field_message_related_object? (y/n): y
Do you really want to import social_activity : field.field.message.create_comment_post_profile.field_message_related_object? (y/n): y
Do you really want to import social_activity : field.field.message.create_comment_group_post.field_message_related_object? (y/n): y
Do you really want to import social_activity : field.field.message.create_comment_group_node.field_message_related_object? (y/n): y
Do you really want to import social_activity : field.field.message.create_comment_community_post.field_message_related_object? (y/n): y
Do you really want to import social_activity : field.field.message.create_comment_community_node.field_message_related_object? (y/n): y
Do you really want to import social_activity : field.field.message.create_comment_author_node_post.field_message_related_object? (y/n): y

I get this error:

Drupal\Core\Field\FieldException: Attempt to create a field field_message_related_object that does not exist on entity type message. in
social-6.1/html/core/modules/field/src/Entity/FieldConfig.php:315

Comments

SocialNicheGuru created an issue. See original summary.

socialnicheguru’s picture

I think I have it.

The only place that storage is defined is here:
custom/activity_logger/config/install/field.storage.message.field_message_related_object.yml

drush features-import activity_logger
import the field
then import the other features like in the issue description.

jaapjan’s picture

Status: Active » Fixed

Allright, thanks for the information. Always import all the configurations :-)

socialnicheguru’s picture

The issue was that if I uninstall other modules somehow field_message_related_object also gets removed and I have to go through the entire process of reinstalling the missing features.

Status: Fixed » Closed (fixed)

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