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.
I've been getting an "Unable to render media from site:name. Error: No file id" message when editing content.
The issue is how Media attempts to replace tokens with markup. It is specifically looking for double brackets. This causes a conflict with modules like Token Filter and the common Drupal practice of modules including in the subject line the site name in brackets (see: [[site:name]]
).
The way to fix this is check if the string is a real token before running it through media_wysiwyg. The attached patch fixes the problem. Please review, thanks.
Comments
Comment #2
joseph.olstadThanks for the patch, triggering tests.
Comment #3
joseph.olstad