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 have just set up a Facebook and twitter account with social media and widgets modules and I get the following error repeated multiple times:
Notice: Undefined index: template in theme_widgets_set_view() (line 1109 of ../sites/all/modules/contrib/widgets/widgets.module).
Backtrace:
theme_widgets_set_view(Array) theme.inc:1060
theme('widgets_set_view', Array) common.inc:5766
drupal_render(Array) common.inc:5773
drupal_render(Array) common.inc:5865
render(Array) page.tpl.php:113
include('../sites/all/themes/corolla/templates/page.tpl.php') theme.inc:1413
theme_render_template('sites/all/themes/corolla/templates/page.tpl.php', Array) theme.inc:1103
theme('page', Array) common.inc:5766
drupal_render(Array) common.inc:5629
drupal_render_page(Array) common.inc:2583
drupal_deliver_html_page(Array) common.inc:2471
drupal_deliver_page(Array, '') menu.inc:531
menu_execute_active_handler() index.php:21
This is causing the admin theme to become unusable. Is there a quick fix as I do not want to have to switch all this functionality off again?
Comment | File | Size | Author |
---|---|---|---|
#8 | widgets-fixes_undefined_index-1601908-8.patch | 948 bytes | dooug |
Comments
Comment #1
Rajeshr_R CreditAttribution: Rajeshr_R commentedI got same problem can anybody fix it?
Comment #2
BeaPower CreditAttribution: BeaPower commentedme too I get this, fixed?
Comment #3
andrewscullion CreditAttribution: andrewscullion commentedI think if you make sure you are using the latest release of the theme and module this issue is fixed.
Comment #4
TomDude48 CreditAttribution: TomDude48 commentedAs per andrewscullion, please verify that with the latest versions it is still not working.
Comment #5
Po3t CreditAttribution: Po3t commentedI just installed this module and its giving me error messages all over the place.
And that's just a fraction of the errors I'm seeing.
EDIT: Looks like it may have been related to the Social Media module. I hadn't gone through the setup wizard for that module when I was getting all of these errors. Once I went through the wizard, the errors seem to have vanished.
Comment #6
Ashfaq Lincoln CreditAttribution: Ashfaq Lincoln commentedfacing the error message problem. can anyone please suggest what to do. Thanks in advance
Comment #7
bramface CreditAttribution: bramface commentedSame issue.
Comment #8
dooug CreditAttribution: dooug commentedI am working on an existing site that someone had already patched the
widgets.module
file to fix this issue (I assume, though I couldn't replicate the issue).I've attached the patch. Please review. You can apply the patch with git.
In general, this module seems to have some serious issues, including lots of commented code and
dsm()
debugging that need to be cleaned up. But hopefully this patch resolves this particular issue. Though I suspect fully solving the issue would require getting deeper into the code, this patch is a quick fix.