Closed (cannot reproduce)
Project:
Drupal core
Version:
11.x-dev
Component:
theme system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
4 Jul 2024 at 03:38 UTC
Updated:
10 Oct 2025 at 10:26 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
quietone commentedFixes are made on on 11.x (our main development branch) first, and are then back ported as needed according to our policies. Also, 10.2 is in security mode now.
Comment #3
samitk commentedHi @dmytro.chornyi,
I verified it both in 10.2.x and 11.x, i am not able to reproduce it at my end, I added following code in
sites/development.services.ymlAlso checked all the check-boxes on
admin/config/development/settingspage. Adding screenshot for the reference.It might me the Theme issue. Can you please share all the details like the theme name etc.
Thanks
Samit K.
Comment #4
malhar_cDon't know if this is relevant but here's a quick fix that worked for me. I'm on Drupal 10.3.1 though, and I faced this exact warning while customising the default user login page using hook_theme_suggestions_alter() and hook_theme_registry_alter(), but this might help others as well, if you are in similar endeavour.
Setting the type key for the theme suggestion directly in the theme registry resolves it.
Cheers :)
Malhar
Comment #5
dmytro.chornyi commentedComment #6
smustgrave commentedSince there's been no follow up to reproduce this going to close out. If still an issue in D11 please re-open updating summary.
Comment #7
mykola dolynskyiI am also getting this warning after updated to d11 latest.
In custom module I define hook_theme() and there custom theme hooks with template names. However it warns me about empty template and next render chain is failing
This was working on drupal 9.5 before