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?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Rajeshr_R’s picture

I got same problem can anybody fix it?

BeaPower’s picture

me too I get this, fixed?

andrewscullion’s picture

I think if you make sure you are using the latest release of the theme and module this issue is fixed.

TomDude48’s picture

Status: Active » Needs review

As per andrewscullion, please verify that with the latest versions it is still not working.

Po3t’s picture

Version: 7.x-1.0-beta5 » 7.x-1.0-rc1

I just installed this module and its giving me error messages all over the place.

  • Warning: Illegal offset type in isset or empty in _widgets_error() (line 1033 of /sites/all/modules/widgets/widgets.module).
  • Warning: Illegal offset type in isset or empty in _widgets_error() (line 1024 of /sites/all/modules/widgets/widgets.module).
  • Warning: Illegal offset type in _widgets_error() (line 1028 of /sites/all/modules/widgets/widgets.module).
  • Warning: Illegal offset type in isset or empty in _widgets_error() (line 1033 of /sites/all/modules/widgets/widgets.module).
  • Notice: Undefined index: template in theme_widgets_set_view() (line 1121 of /sites/all/modules/widgets/widgets.module).
  • Notice: Undefined index: template in theme_widgets_set_view() (line 1121 of /sites/all/modules/widgets/widgets.module).
  • Notice: Undefined index: template in theme_widgets_set_view() (line 1121 of /sites/all/modules/widgets/widgets.module).
  • Notice: Undefined index: template in theme_widgets_set_view() (line 1121 of /sites/all/modules/widgets/widgets.module).
  • Notice: Undefined index: template in theme_widgets_set_view() (line 1121 of /sites/all/modules/widgets/widgets.module).
  • Notice: Undefined index: template in theme_widgets_set_view() (line 1121 of /sites/all/modules/widgets/widgets.module).

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.

Ashfaq Lincoln’s picture

facing the error message problem. can anyone please suggest what to do. Thanks in advance

bramface’s picture

Same issue.

dooug’s picture

I 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.