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 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
Comment #1
TomDude48 CreditAttribution: TomDude48 commentedI went and wrapped the menu item in the module_exists conditional. Should be fixed in dev.
Comment #2
TomDude48 CreditAttribution: TomDude48 commentedNo feedback in two weeks. Moving to fixed.
Comment #3
bernman CreditAttribution: bernman commentedAfter 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.
Comment #4
TomDude48 CreditAttribution: TomDude48 commentedThis should be fixed in the latest push.
Comment #5
naught101 CreditAttribution: naught101 commentedPretty sure this was fixed.