Hi,
I have added ENTITY REFERENCE field with Type of item to reference FILE. Everything works fine.
But I can not access submissions. There is an error
Drupal\Core\Entity\Exception\Undefined LinkTemplateException: No link template 'canonical' found for the 'file' entity type in
Drupal\Core\Entity\Entity->toUrl()
I have tested ENTITY REFERENCE field with Type of item to reference FILE on content type it works fine, no error.
is there any way to solve?
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 3005072-6.patch | 1.97 KB | jrockowitz |
| #3 | 3005072-3.patch | 1.78 KB | jrockowitz |
| #2 | webform.webform.issue_3005072.yml | 3.86 KB | jrockowitz |
Comments
Comment #2
jrockowitz commentedThe attached webform replicates this issue.
Comment #3
jrockowitz commentedComment #4
jrockowitz commented@Eevvee Welcome to the Drupal Community
I wanted the say "Hello" and encourage you to learn more about...
Watch video about helping us help you
Comment #5
Eevvee commentedThank you very much, your patch works great .
Comment #6
jrockowitz commentedThe attached patch includes checking file download access to make sure we don't link to a protected file.
Comment #8
jrockowitz commented@Eevvee Congratulations on earning your first commit credit
I wanted the say "Thanks" for helping out with the Webform module. Learn more about...
Comment #9
Eevvee commentedSecond patch does not allow to see webform view page.
Comment #11
jrockowitz commented@Eevvee I don't understand what you mean by…
Please provide more information and/or update the patch.
Comment #12
Eevvee commentedmy-site/form/my-webform shows error "The website encountered an unexpected error. Please try again later."
This error shows only in that webform which have reference field.
I find an error
Error: Call to a member function getTokenUrl() on null in Drupal\webform\WebformMessageManager-> get() (line 281 of...
Comment #13
jrockowitz commentedThat sounds like an indirectly related error.
Can you please test the patch on https://simplytest.me?
Comment #14
jrockowitz commentedComment #16
jrockowitz commentedI am almost certain that #12 is an unrelated issue that should be addressed in a follow-up ticket with an example of the broken webform.