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

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

franz created an issue. See original summary.

owenbush’s picture

Thanks for the issue, I'll see if I can take a look. I'm glad a cache clear fixed the problem for you though.

muriqui made their first commit to this issue’s fork.

muriqui’s picture

Status: Active » Needs review

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

owenbush’s picture

Status: Needs review » Reviewed & tested by the community

Thank you for this MR, this seems like a pretty reasonable workaround for the issue with missing titles

  • owenbush committed 92c2f69 on 2.0.x
    Issue #3244975 by muriqui, owenbush: Title field missing in Event...

  • owenbush committed 6a59e06 on 8.x-1.x
    Issue #3244975 by muriqui, owenbush: Title field missing in Event...
owenbush’s picture

Status: Reviewed & tested by the community » Fixed

This has been merged into the lastest dev branches for 8.x-1.x and 2.0.x

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.