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.
When creating a search index of the file type, after searching on the search page you get an error because $url is not an array but just the file.
please review this tiny patch that fixes this.
Greets
Tim
Comment | File | Size | Author |
---|---|---|---|
#1 | patch2.txt | 943 bytes | Anonymous (not verified) |
patch.txt | 878 bytes | Anonymous (not verified) |
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedSorry,
committed patch to soon, the uri for the file also needs to be converted so this would be a better option:
Greets
Tim
Comment #2
drunken monkeyAh, didn't notice this before, but this seems to be an annoying core bug — see #1057242: entity_uri() should not use $entity->uri (was $file->uri doesn't match the contract for uri callbacks).
Your patch looks like a good workaround, I'll probably commit it soon. Thanks!
Comment #3
drunken monkeyCommitted, thanks.