Problem/Motivation
A Drupal build I inherited has been using a patch from #2913598: Accessibility enhancements for html output of iframe tag (title, id, name, inner A link) for years. Specifically https://www.drupal.org/files/issues/2019-09-19/video_embed_field-title_a...
With the release of 8.x-2.6, the patch can longer be applied. I removed the patch from Composer and the build successed, but now the install profile fails with...
Error: Class "Drupal\Core\Render\Element\RenderElementBase" not found in /var/www/html/web/modules/contrib/video_embed_field/src/Element/VideoEmbedIFrame.php on line 13 #0 /var/www/html/vendor/composer/ClassLoader.php(576): include()
I tried installing just this module on D9 with https://simplytest.me/, but that no longer works because of the Composer 2.9 security-audit requirements.
I haven't dug into this too far yet, but based on other issues related to RenderElementBase my guess is that 8.x-2.6 wasn't actually tested on D9. I know the solution is to upgrade to a supported version of Drupal and we are working on that, but if this is no longer going to support D9 please update the info.yml to reflect that.
For now, I'm just going to continue using the patch with the previous release.
Issue fork video_embed_field-3562351
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
i-trokhanenkoI have the same error using Video Embed Field 8.x-2.6 and Drupal core 9.5.11
Comment #5
i-trokhanenkoComment #6
mably commentedLooks like 2.6 is not compatible with D9 anymore. Merging.
Comment #8
mably commentedComment #10
mably commentedLooks like it even requires Drupal 10.3+. Will push an update.
Comment #12
mably commentedLooks like the change was introduced in issue #3483115: Fix phpstan warnings.
Comment #13
mably commentedLooks like we could easily rollback the change. Will give it a try.
I do not have any Drupal 9 instance easily available, so I'll need help from the community to validate that everything is working fine again on Drupal 9 after I push the rollback.
The problem is that Gitlab CI tests do not cover EOL versions as far as I know, so there don't seem to be any easy way to verify that updates do not break compatibility with Drupal 9.
Feel free to chime in if you have any solution to this problem to share.
Comment #15
mably commentedComment #16
mably commentedCan someone confirm that MR 102 restores compatibility with Drupal 9.2+ please?
Ping @kreynen @i-trokhanenko
Comment #17
beretor commentedHello,
I have this Issue:
Error: Class 'Drupal\Core\Render\Element\RenderElementBase' not found in include() (line 13 of modules/contrib/video_embed_field/src/Element/VideoEmbedIFrame.php).
drupal/core 9.4.4
drupal/video_embed_field 2.6.0
Context: We updated drupal/video_embed_field from 2.4 to 2.6 to get the YouTube error 153 fix.
I last tried at: 16.12.2025 11am.
I tried Merge request!102 on my local Drupal, and it worked like a charm.
No more errors.
Thank you.
If you require further information, please feel free to ask.
Comment #18
mably commentedHi @beretor, thanks for your feedback.
Can you please switch this issue to RTBC so I can merge it? Thanks.
Comment #19
beretor commentedTested with
drupal/core 9.4.4
drupal/video_embed_field 2.6.0
Comment #20
beretor commented@mably done.
Comment #21
beretor commented@mably ok, done
Comment #22
mably commentedIt's merged.