A few fields have errors when added to a newly defined content type #1817
Labels
bug - confirmed
For issues where a core developer has confirmed a bug exists.
Group 1 - Tripal Content Types | Terms | Fields
Any issue relating to Tripal Content including types, terms, and fields.
Tripal 4
Any issue or pull request focused on Tripal 4
Tripal Version
4.x
Drupal Version
10.x
PostgreSQL Version
13
PHP Version
8.x
Branch
tv4g1-issue1817-fields-on-new-content-types
General Description
If you create a new content type manually through the GUI and add certain fields, you have problems.
Steps to reproduce
Create a new content type through the UI (Admin > Tripal > Page Structure then "Add custom type")
I chose to create a "Primer" content type, so the base table will be feature, and most fields can be added to this. I used
primer (SO:0000112)
as the term.Manage fields for this new content type (Admin > Tripal > Page Structure > NEWCONTENTTYPE > Manage Fields)
![2024-03-16_minimal-fields](https://private-user-images.githubusercontent.com/8419404/313424536-b3f50209-5218-4f58-938b-b60624b5c7da.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkxMDk5MTEsIm5iZiI6MTcxOTEwOTYxMSwicGF0aCI6Ii84NDE5NDA0LzMxMzQyNDUzNi1iM2Y1MDIwOS01MjE4LTRmNTgtOTM4Yi1iNjA2MjRiNWM3ZGEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYyMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MjNUMDIyNjUxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YTEwZTgxMTZjNDc3NWZhYjUzYThkMjE0YWY2YTcxYTRjYWNhNGRiMWY4ZGJmNDJmMDEzMGQ0MGZlYmQ5ODU0ZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.ubbttN2EEXrkYGv3Ms3RuorZOmks2rAz3P9Id2aY9Rc)
Click on "Create new field" and provide a name/machine name. Four fields are required to be able to save a primer entity
Create a primer entity (you will need to create an organism first)
Now add the "Chado Synonym" field
Edit your existing primer, and enter a synonym and save.
The website encountered an unexpected error. Try again later.
TypeError: Drupal\tripal\TripalStorage\TripalStorageBase::addTypes(): Argument #2 ($types) must be of type array, null given, called in /var/www/drupal/web/modules/contrib/tripal/tripal/src/Entity/TripalEntity.php on line 423 in Drupal\tripal\TripalStorage\TripalStorageBase->addTypes() (line 115 of modules/contrib/tripal/tripal/src/TripalStorage/TripalStorageBase.php).
to be continued if other fields have errors
The text was updated successfully, but these errors were encountered: