Forums

Fatal Error when activating new plugins (11 posts)

  1. designer2008
    Member
    Posted 3 years ago #

    I get the following error any time I activate a new plugin:

    Fatal error: Call to undefined function register_sidebar_widget() in /home6/typetheo/public_html/wp-content/plugins/smart-youtube/smartyoutube.php on line 542

    This doesn't seem to be affecting my admin or site, though it is worrisome that I get an error every time a plugin is activated. Any thoughts?

  2. iridiax
    Member
    Posted 3 years ago #

    Check for an updated version of your theme and check out:

    http://codex.wordpress.org/Widgetizing_Themes

  3. designer2008
    Member
    Posted 3 years ago #

    I am running the most updated version of my theme. I did upgrade to the latest version of Smart Youtube today, and the problem seemed to immediately follow.

  4. iridiax
    Member
    Posted 3 years ago #

    According to the changelog, the latest version of Smart Youtube has "added support for sidebar widget videos" so you would need a widget-ready theme.

  5. designer2008
    Member
    Posted 3 years ago #

    I'm not sure I understand how the link you posted pertains to the issue I'm trying to solve. Sorry if I'm missing something obvious.

  6. iridiax
    Member
    Posted 3 years ago #

    Does your theme let you use widgets?

  7. Navjot Singh
    Member
    Posted 3 years ago #

    Yes, this happens only on 2.7 version of Smart Youtube plugin. Added the tag to notify the plugin author.

  8. bagheadinc
    Member
    Posted 3 years ago #

    You can fix this by editing the following lines in the smartyoutube.php file...

    // register widget
      if (function_exists('register_sidebar_widget'))
      if (function_exists('register_widget_control'))

    Just use the function_exists command like this...

    // register widget
      if (function_exists('register_sidebar_widget'))
    	register_sidebar_widget('Smart YouTube', 'yte_widget');
      if (function_exists('register_widget_control'))
    	register_widget_control('Smart YouTube', 'yte_widgetcontrol');

    It will still register the Smart YouTube widget and you will no longer get that error whenever you activate a plugin.

  9. Vladimir Prelovac
    Member
    Posted 3 years ago #

    Fixed in version 2.7.2 :)

  10. Navjot Singh
    Member
    Posted 3 years ago #

    Thanks for the quick fix. Here is one more problem and a suggestion too.

    Your plugin in the sidebar says insert HTML code or the video link. But the problem is that it parses only httpv code. Nothing else. If I want to write something in the bottom of the video in sidebar using HTML code, it does not parses it. Moreover, the widegt does not give any option of titling the widget? I should be able to title the widget with something of my choice as latest videos. Pls add these features to make widget feature more useful.

    Also your comment form at smart youtube post is not allowing my comment asking me to enable javascript and cookies where infact they are already enabled and plugin status shows the same too. Pls fix that error too.

  11. Navjot Singh
    Member
    Posted 3 years ago #

    One more thing..even your Blog's forum is not allowing any new post showing blank page after posting in your support forums. So only way to report errrors was this which I am using.

Topic Closed

This topic has been closed to new replies.

About this Topic