Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
After creating a new Knowledge Graph Type and clicking the "Add mapping" link i get the following php warning. I've not created any other fields - a simple content type page is available for testing purpose.
The error is caused by not having any @type fields in the entity type.
SteffenR
Comment | File | Size | Author |
---|---|---|---|
#4 | fix_warning_no_mapping_fields-2444353-4.patch | 1007 bytes | SteffenR |
2015-03-02 16-16-04.jpg | 69.84 KB | SteffenR |
Comments
Comment #1
SteffenRComment #2
SteffenRComment #3
SteffenRComment #4
SteffenRThe warning appears while not having any mapping fields defined in the knowledge graph type.
Could be solved easily by adding an empty array for $knowledge_graph_type_map_fields.
Attached a patch solving the issue.
Comment #5
SteffenRComment #6
CyberschorschThank you!