WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Widget Plugin not working (27 posts)

  1. steven_stern
    Member
    Posted 8 years ago #

    It's not working for me. The configuration page doesn't work and there's an error in the javascript console. As far as I can tell, all the files are in the right places. Using the default theme, too.

    Error: Sortable is not defined
    Source File: http://sstern.ccim.com/wp-admin/themes.php?page=widgets.php
    Line: 71

  2. RobertGX
    Member
    Posted 8 years ago #

    I get same exact error: Sortable not defined.

  3. Kafkaesqui

    Posted 8 years ago #

    For this particular error (Sortable is not defined) let's start gathering info on it so the problem can be tracked down. This is the configuration where I'm seeing this (two other setups have no issues with the plugin):

    WordPress version: 2.0.2
    Web server: IIS 5.1

  4. Karrde
    Member
    Posted 8 years ago #

    Yeah, same exact error. As I mentioned in my other post regarding it, it seems to be due to the header code - sidebar_admin_head() - not being called. If I manually put a function call to the header in the code, like so:

    <?php sidebar_admin_head() ?>

    (I added it at line 547 in widgets.php for those interested) - it'll work.

    WordPress: 2.02
    Web server: Apache 2.0.55 on Windows XP (test box)
    PHP version: 5.1.1

  5. RobertGX
    Member
    Posted 8 years ago #

    WordPress 2.0.2
    Apache/2.2.0 (Win32)
    PHP/5.1.1

    Still get Sortable not defined error.

  6. Kafkaesqui

    Posted 8 years ago #

    Well so far it appears to be a platform (OS) issue. And thanks for the fix karrde.

  7. RobertGX
    Member
    Posted 8 years ago #

    Yes! Thanks karrde!

  8. steven_stern
    Member
    Posted 8 years ago #

    Apache 2.0.55 Win32 PH/4.4.1
    Windows XP Pro
    PHP 4.4.1 (cgi-fcgi) (built: Oct 30 2005 12:45:44)
    Wordpress 2.0.2

    The fix mentioned above didn't work.

  9. RobertGX
    Member
    Posted 8 years ago #

    It worked for me except that I can't add extra (more than 1) RSS or Text widgets...

  10. Karrde
    Member
    Posted 8 years ago #

    Yeah, it was a quick and dirty fix so that I could start testing widget integration with the theme I develop. I imagine that whatever's causing it to break under Win32 is also breaking the RSS and text widget issue that RobertGX is having.

  11. miltonalmeida
    Member
    Posted 8 years ago #

    My Widgets plugin is not working. I did install the files in the right place. In the account I have through my Web site it will not show the Sidebar Editor meny in the Presentation meny as the ReadMe file for the Widget states.

    Dos this plugin work when the blog is not hosted by WordPress but is hosted by another host, such as my own Website?

    Milt

  12. miltonalmeida
    Member
    Posted 8 years ago #

    Of course you know that in the post above I meant MENU and not "meny"... it is late... Sorry!

    does the Widgets plugin work when the blog is not hosted by WordPress.com but by another host such as my web site?
    You can read the post above as well to know what I am talking about.

    Milt

  13. valeo
    Member
    Posted 8 years ago #

    Thanks for the fix karrde! It worked for me.

    But, I don't think this problem is dependent of OS, but something else. This plugin didn't work for me either (after fix karrde mentioned it worked), and my host is running CentOS Linux and Apache. And like with RobertGX, I can only add one text and rss widget. But that's enough for me as long as I can make my theme compatible with widgets and continue somehow (I hope they release new version sometime).

  14. Josh Betz
    Member
    Posted 8 years ago #

    I've got a full fix. Apparently the ZIP file wasn't updated. So if your using IIS then this fix will work. (I got it from Andy)
    http://svn.wp-plugins.org/widgets/trunk/widgets.php

    For more information check out my blog post about it:
    http://betzster.no-ip.org/Blog/index.php/2006/04/03/sidebar-widgets-plugin-iis-fix/

  15. steven_stern
    Member
    Posted 8 years ago #

    betzster: Thanks! Works perfectly. (But the link to your post doesn't.)

  16. Karrde
    Member
    Posted 8 years ago #

    Yep, the new version as linked above by betzster fixes the problem for me also.

    Hurrah!

  17. TechGnome
    Moderator
    Posted 8 years ago #

    Looks like this is fixed now. Marking as Resolved.

    -tg

  18. seoidiot
    Member
    Posted 8 years ago #

    I cant get this to work.... i have installed and activated the plugin but i do not see the sidebar thing in presentation for any theme at all....

  19. Samuel Wood (Otto)
    Tech Ninja
    Posted 8 years ago #

    In order to see the sidebar widgets under the presentation menu, the theme you are using must support widgets. No support = no new menu option.

  20. kaos
    Member
    Posted 8 years ago #

    I'm now getting the same problem with Firefox 1.5.0.4 / Apache /Linux w/Cpanel. There are notes on the Scriptaculous site mentioning issues with Firefox 1.5.0.4?

    "Sortable not defined" is there error i'm getting on the Widgets admin page.

  21. lisaps
    Member
    Posted 7 years ago #

    I'm having the same problem as miltonalmeida and seoidiot, and I'm using a theme that supports widgets. I customized some of the CSS for Dark Maple, a supposedly widget-ready theme:

    http://www.transycan.net/blogtest/2006/04/11/dark-maple-ready-for-widgets/

  22. lisaps
    Member
    Posted 7 years ago #

    A bit of an ID:10T error here, but I still don't have the problem solved. Turns out I was using an old version of Dark Maple and once I updated it, the plugin started working.

    Only, then I tried to set it for multiple sidebars and now I can't connect to the blog at all. I've emailed my tech support about that issue, but can someone here clarify the directions on how to use multiple sidebars so I don't mess this up again? I'm not a PHP programmer so this wasn't immediately clear to me. The directions state:

    >Instead of register_sidebar() you should use >register_sidebars(n) where n is the number of sidebars. >Then place the appropriate number in the dynamic_sidebar() >function, starting with 1.

    I assume this means that my functions.php file should be this:

    <?php

    if ( function_exists('register_sidebars') )
    register_sidebars(5);

    ?>

    Does this mean that in my sidebar.php it should say this:

    ?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(5) ) : else : ?>

  23. vkaryl
    Member
    Posted 7 years ago #

    I think it means that you have to use a separate if statement (like what you posted) for each area you're calling a "sidebar". That would mean that your first if statement would be:

    <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(1) ) : else : ?> - which would pull the widgets from the Sidebar 1 in the widget config screen.

    And you would do the same for the rest of them, with the variable incrementing by one each time you used the if statement, so each if statement accesses a different sidebar and widget selection.

  24. lisaps
    Member
    Posted 7 years ago #

    Thanks for the help! I just want to make sure I understand. You're saying that if I had three sidebars, that in the sidebar.php file I would have this:

    <?php
    if ( function_exists('dynamic_sidebar') && dynamic_sidebar(1) ) : else :
    if ( function_exists('dynamic_sidebar') && dynamic_sidebar(2) ) : else :
    if ( function_exists('dynamic_sidebar') && dynamic_sidebar(3) ) : else :
    ?>

  25. Aquilez
    Member
    Posted 7 years ago #

    I have many errors..... can i fix the problem?

  26. shivakumar
    Member
    Posted 7 years ago #

    I have fixed it. There were two bugs,

    • sidebar_admin_head is not called
    • The script passed the full path of the javascript files (full path in your hard drive) to the browser and the browser is not able to load the javascripts.

    After fixing the first one, I see the widgets in the admin menu but unable to drag it. Then I found that the path to the javasctipts are wrong in the <script> tag. Now both the bugs are fixed and uploaded the updated widgets.php in url below

    http://www.blisspark.com/wp-widgets-fix/widgets.zip

  27. demonicume
    Member
    Posted 7 years ago #

    none of thes fixes allow me to use the text, RSS widgets. when i click 'save', the admin bar disappears.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags