I’m on /admin/structure/contact/messages and clicking on Edit, gives me:

"The website encountered an unexpected error. Please try again later." Checking the error log, I have:

Drupal\Core\Entity\Exception\UndefinedLinkTemplateException: No link template 'canonical' found for the 'contact_message' entity type in Drupal\Core\Entity\Entity->toUrl() (line 219 of /Users/JCL/Sites/devdesktop/simplis-dev/docroot/core/lib/Drupal/Core/Entity/Entity.php).

I was on 8.0.2 core, updated to 8.0.3 and did not help. I had subject and message hidden (don't want those required fields) but made them visible again and no luck. All fields on my form are List (text) with checkboxes widget, each field has 3 values. The data is being stored in the database and Views works, but still can't edit.

Comments

JCL324 created an issue. See original summary.

larowlan’s picture

Issue tags: +Needs tests
larowlan’s picture

sidharthap’s picture

I could not replicate the issue using Drupal-8.0.4-dev, PHP-5.6.8, Database system version-5.6.24 however in log I found one error.
Entity/field definitions Mismatched entity and/or field definitions
The following changes were detected in the entity type and field definitions.
Contact message

Create the Message ID field.
Create the Created field.

jcl324’s picture

@sidharthap I too had the same mismatched entity error on my Status page. I ran drush entity-updates which fixed that problem, but did not solve my ability to edit a message. Thanks for the tip though!

larowlan’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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