I get this on the admin/config/media/socialmedia/widgets page:

Fatal error: Call to undefined function widgets_element_definition_load() in /home/.../public_html/sites/all/modules/socialmedia/socialmedia.widgets.inc on line 677

I don't have widgets.module installed. widgets.module needs to be listed as a dependency in the socialmedia.info file.

I guess this module functions partially without widgets, so it might be preferable to wrap all the widgets.module relevant code in

if (module_exists("widgets")) {
  ...
}

Comments

TomDude48’s picture

Status: Active » Needs review

I went and wrapped the menu item in the module_exists conditional. Should be fixed in dev.

TomDude48’s picture

Status: Needs review » Fixed

No feedback in two weeks. Moving to fixed.

bernman’s picture

Version: 7.x-1.x-dev » 7.x-1.0-beta9
Status: Fixed » Active

After the upgrade to 7.x-1.0-beta9, I get the following error reported:

Fatal error: Call to undefined function widgets_get_context_author_uid() in /etc/drupal/all/modules/socialmedia/socialmedia.tokens.inc on line 114

I'll take a look at the code later today, but at first glance this looks like a hard dependency on the Widgets module. This is new since beta8.

TomDude48’s picture

Status: Active » Needs review

This should be fixed in the latest push.

naught101’s picture

Status: Needs review » Fixed

Pretty sure this was fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.