Troubleshooting Guide#
Common issues and solutions when working with Entity Builder.
Installation Issues#
Module Dependencies Not Found#
Error: Unable to install Entity Builder due to missing dependencies
Solution:
AG-Grid Library Not Loading#
Symptoms:
- Grid interface doesn't appear
- JavaScript errors in browser console
- 404 errors for AG-Grid files
Solutions:
- Verify Asset Packagist configuration:
- Install the composer-installers-extender:
- Install AG-Grid library:
- Verify installation:
- Clear caches:
Service Container Errors#
Error: Service "eb.operation_processor" not found
Solution:
Validation Errors#
Field Type Not Found#
Error: Field type "invalid_type" does not exist.
Cause: Misspelled field type or missing module.
Solution:
Widget/Formatter Incompatible#
Error: Widget "string_textfield" is not compatible with field type "text_long".
Solution: Use compatible widgets:
| Field Type | Compatible Widgets |
|---|---|
string |
string_textfield |
text_long |
text_textarea |
text_with_summary |
text_textarea_with_summary |
entity_reference |
entity_reference_autocomplete, options_select |
boolean |
boolean_checkbox, options_buttons |
Bundle Not Found#
Error: Bundle "article" not found for entity type "node".
Solutions:
- Create the bundle in the same definition:
- Or check that the bundle exists:
Circular Dependency Detected#
Error: Circular dependency detected: A > B > A
Cause: Operations depend on each other in a cycle.
Solution: Review entity reference fields and ensure they don't create cycles.
Naming Convention Errors#
Errors:
Field name must start with "field_".Group name must start with "group_".
Solution:
Execution Errors#
Permission Denied#
Error: You do not have permission to apply entity definitions.
Solution:
Bundle Already Exists#
Error in create_only mode: Bundle "article" already exists.
Solutions:
- Use sync mode (default):
- Or delete the existing bundle first:
Field Storage Conflict#
Error: Field storage for "field_body" already exists with different settings.
Cause: Field storage with same name exists but has different configuration.
Solutions:
- Use a different field name:
- Or match the existing storage settings:
UI Issues#
Grid Not Displaying Data#
Symptoms:
- Grid appears empty
- Data not loading
Solutions:
- Check browser console for JavaScript errors
- Verify CSRF token is valid (logout and login)
- Clear Drupal cache:
drush cr - Check for AJAX errors in network tab
Validation Indicators Not Showing#
Symptoms:
- Red highlighting not appearing
- Error messages not visible
Solutions:
- Ensure JavaScript is enabled
- Check browser console for errors
- Verify the correct theme is loaded
- Clear browser cache
Settings Modal Not Opening#
Solutions:
- Ensure field type is selected first
- For entity reference, select target type
- Check browser console for errors
- Verify AJAX endpoints are accessible
Rollback Issues#
Rollback Not Found#
Error: Rollback with ID 42 not found.
Causes:
- Rollback was already executed
- Rollback was purged due to retention policy
- Apply failed before creating rollback
Solutions:
Cannot Rollback - Content Exists#
Error: Cannot delete bundle - content exists.
Solution: Delete content first, then rollback:
Partial Rollback Failure#
Symptoms:
- Some operations rolled back successfully
- Others failed
Solution: Manually fix failed items and mark rollback complete.
Performance Issues#
Slow Definition Apply#
Symptoms:
- Apply takes a long time
- Timeouts on large definitions
Solutions:
- Split large definitions:
- Use CLI instead of UI:
- Increase PHP limits:
High Memory Usage#
Solutions:
- Process definitions in smaller batches
- Increase PHP memory limit
- Use Drush with increased memory:
Debug Mode#
Enable debug mode for detailed logging:
Via Settings:
Navigate to /admin/config/development/eb/settings and enable Debug Mode.
Via Config:
Debug output shows:
- Dependency resolution steps
- Change detection results
- Validation details
- Operation data before/after
Getting Help#
Check Logs#
Validate Definition#
Discover Available Plugins#
Report Issues#
- Check the issue queue
- Include:
- Drupal and PHP versions
- Entity Builder version
- Steps to reproduce
- Error messages
- Relevant YAML definitions