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.
If an entity use a term reference field, and you later delete a taxonomy term in use by a specific entity, text formatter chokes when trying to resolve the term. (Unfortunately, deleting a term doesn't remove the term references in the relevant fields tables - core bug: http://drupal.org/node/1281114 )
A quick glance lline 480 (where the reported error occurs) leads me to believe that the else statement on line 479 can be changed to:
elseif (isset($terms[$item['tid']]->name)) {
Thoughts?
Comment | File | Size | Author |
---|---|---|---|
#1 | 1809182.patch | 738 bytes | damiankloip |
Comments
Comment #1
damiankloip CreditAttribution: damiankloip commentedThanks for posting this issue. I think we encountered the same problem today. I think you are right about the related issue. We are trying to use a term that hasn't been loaded.
Here is a patch that hopefully will fix your issue too, which I will probably commit. Can you test and let me know?
Comment #2
damiankloip CreditAttribution: damiankloip commentedComment #3
damiankloip CreditAttribution: damiankloip commentedCommitted, http://drupalcode.org/project/textformatter.git/commitdiff/5b58523.
If this doesn't fix your issue, please feel free to re open this.
Comment #4
DannyPfeiffer CreditAttribution: DannyPfeiffer commentedAwesome, that was the fastest response I've ever seen by a maintainer!
Comment #5
damiankloip CreditAttribution: damiankloip commentedHaha, well I do try.... :)