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.
Problem/Motivation
Creating content with the option --type
without an option or with the wrong syntax, such as --types page
, creates contents without a type assigned to. Viewing this content brings WSOD.
Proposed resolution
Check if type is given and syntax is correct
Remaining tasks
send patch
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#2 | check_content_type-2629892-2.patch | 1.34 KB | Mac_Weber |
|
Comments
Comment #2
Mac_Weber CreditAttribution: Mac_Weber as a volunteer commentedComment #5
Mac_Weber CreditAttribution: Mac_Weber as a volunteer commentedTestbot is complaining about a class not found. I don't know what is causing this problem as the class exists.
Comment #6
willzyx CreditAttribution: willzyx commented@Mac_Weber thanks for the patch! the failure was unrelated (see #2629828: Wrong dependencies are used on Drupal CI for devel_entity_test module).
Can we add test coverage for this?
Comment #7
willzyx CreditAttribution: willzyx commentedClosed as duplicated of #2517070: devel-generate creates invalid content (blank titles etc) if expected content-type does not exist. @Mac_Weber you can comment on that issue to get credit. Thanks!