Aborted rendering of embedded media with simplenews

Created on 19 December 2022, over 2 years ago
Updated 28 May 2025, about 2 months ago

Problem/Motivation

  • Error message logged: "During rendering of embedded media: recursive rendering detected"
  • Batch sending of newsletter with embedded media image fails to include those images after first few messages are sent.

Steps to reproduce

  • Upgrade from Drupal 9.4.8 to 9.5.0
  • Use simplenews 3.0.0-beta4
  • Use symphony mailer 1.1.0-beta3
  • Use CKEditor 5 with media embed configured
  • Create Article newsletter with media image embedded via CKEditor
  • Edit the Article's newsletter to issue with 73 recipients
  • Send the Article newsletter

Expected behaviour

  • All sent messages contain the embedded image
  • No unexpected log entries

Actual behaviour

  • Only the first few messages contain the embedded image
  • Many unexpected log entries generated like this one:
    Type 	media
    Date 	Monday, December 19, 2022 - 17:18
    User 	Iain Houston
    Location 	http://d10-vagrant.bradford-abbas.uk/batch?_format=json&id=411&op=do
    Referrer 	http://d10-vagrant.bradford-abbas.uk/batch?id=411&op=start
    Message 	During rendering of embedded media: recursive rendering detected for 75. Aborting rendering.
    Severity 	Error
    

Discussion

  • This issue of "recursive rendering" seems to have been extant three years ago. I could not find a point at which the issue was actually resolved but issue queues went quiet so I assume that this was solved?
  • The above issue seemed to actually be incorrectly detecting recursion where, as in this case, we just have a large number of serial renders.
  • On the surface this resembles a similar issue that I raised a few weeks ago that we closed "working as designed" (See issue https://www.drupal.org/project/simplenews/issues/3285034 🐛 Media image ignored (in batch only) with Symfony Mailer Closed: works as designed ) but in this case we have a specific log message detailing the reason for the failure
  • Image fields in the Article are sent correctly. It is only the embedded images that are at issue
🐛 Bug report
Status

Closed: outdated

Version

1.1

Component

Code

Created by

🇬🇧United Kingdom iainH

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇬🇧United Kingdom adamps

    This issue was found with an early beta, and hasn't been reported by anyone else in 2.5 years. There's no simple way to reproduce it. Hopefully the problem is now fixed and I feel it's now reasonable to call the issue outdated.

Production build 0.71.5 2024