Problem/Motivation
In a clean install, seems like the Default Event Instance type doesn't have a Title field. The inheritance rule maps to N/A and visiting an instance or clicking to Edit it throws a WSOD with following error:
InvalidArgumentException: Field title is unknown. in Drupal\Core\Entity\ContentEntityBase->getTranslatedField() (line 587 of /var/lib/tugboat/stm/web/core/lib/Drupal/Core/Entity/ContentEntityBase.php)
Steps to reproduce
Install standard site, enable Main module. I used Simplytest.me if that has any effect.
*Clearing the cache fixes the issue*
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Comments
Comment #2
owenbush commentedThanks for the issue, I'll see if I can take a look. I'm glad a cache clear fixed the problem for you though.
Comment #5
muriqui commentedPossible solution/workaround in MR !55: add a try-catch to \Drupal\recurring_events\Controller\EventInstanceController::getTitle() so that if the 'title' field isn't available on the instance, it falls back to the series' label.
Comment #6
owenbush commentedThank you for this MR, this seems like a pretty reasonable workaround for the issue with missing titles
Comment #9
owenbush commentedThis has been merged into the lastest dev branches for 8.x-1.x and 2.0.x