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.
When adding a template file htmlmail--example_module--outgoing_message.tpl.php to my theme directory, following notice is shown twice after flushing the cache:
Notice: Undefined index: render element in drupal_find_theme_templates() (line 1092 of C:\***\includes\theme.inc).
Also happens when using htmlmail--example_module.tpl.php, but it doesn't happen using htmlmail.tpl.php.
Comments
Comment #1
pillarsdotnet CreditAttribution: pillarsdotnet commentedTrying to duplicate...
Comment #2
pillarsdotnet CreditAttribution: pillarsdotnet commentedWas able to duplicate the problem.
Troubleshooting...
Comment #3
pillarsdotnet CreditAttribution: pillarsdotnet commentedFound it. There is a change of hook_theme() from d6 to d7 -- the "arguments" key in d6 has been renamed to "variables" in d7.
Thank you for your report. Corrected in 7.x-2.40 release.
Comment #4
pillarsdotnet CreditAttribution: pillarsdotnet commentedComment #6
Rathod03 CreditAttribution: Rathod03 commentedhii
I am converting custom module from D6 to D7
but i got Notice: Undefined index: render element in theme()
and fix 'arguments' as 'variables' but still getting the Notice
can any one tell how to remove it