Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A few fields have errors when added to a newly defined content type #1817

Open
dsenalik opened this issue Mar 16, 2024 · 0 comments
Open

A few fields have errors when added to a newly defined content type #1817

dsenalik opened this issue Mar 16, 2024 · 0 comments
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

Comments

@dsenalik
Copy link
Contributor

dsenalik commented Mar 16, 2024

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

  1. 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.

  2. Manage fields for this new content type (Admin > Tripal > Page Structure > NEWCONTENTTYPE > Manage Fields)
    Click on "Create new field" and provide a name/machine name. Four fields are required to be able to save a primer entity
    2024-03-16_minimal-fields

  3. Create a primer entity (you will need to create an organism first)

  4. Now add the "Chado Synonym" field

  5. 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).

  6. to be continued if other fields have errors

@dsenalik dsenalik added bug - confirmed For issues where a core developer has confirmed a bug exists. Tripal 4 Any issue or pull request focused on Tripal 4 Group 1 - Tripal Content Types | Terms | Fields Any issue relating to Tripal Content including types, terms, and fields. labels Mar 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

1 participant