Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi asegar2,

    The plugin is letting you know that your theme is missing a parameter in the register_sidebar function. To be more specific, WPP needs the id parameter in before_widget (the actual code might be slightly different on your theme):

    'before_widget' => '<li id="%1$s" class="widget %2$s">'

    Please, ask your theme developer to add this parameter so you can use the Ajaxify feature. The alternative is to turn off the Ajaxify feature and WPP will work as usual – but without using Ajax.

    Thread Starter asegar2

    (@asegar2)

    So this is due to something that was changed between 3.0.1 and 3.0.2? Because 3.0.1 worked fine, and did not display this error message.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Nope, that feature has been present since 3.0.0 actually. Did you make any other changes on your site recently? Changed / upgraded your theme?

    Thread Starter asegar2

    (@asegar2)

    No other changes, including the theme.

    Thread Starter asegar2

    (@asegar2)

    Here is my current register_sidebar function. It looks to me as though the code you’re saying is needed is already there. Other suggestions?

    if ( function_exists(‘register_sidebar’) ) {
    register_sidebar(array(
    ‘before_widget’ => ‘<li id=”%1$s” class=”widget %2$s”>’,
    ‘after_widget’ => ”,
    ‘before_title’ => ‘<h3 class=”widgettitle”>’,
    ‘after_title’ => ‘</h3>’,
    ));
    }

    Plugin Author Hector Cabrera

    (@hcabrera)

    That seems right, how odd. Could you please post your site’s URL so I can go take a look?

    Thread Starter asegar2

    (@asegar2)

    Plugin Author Hector Cabrera

    (@hcabrera)

    From what I see, that code you posted uses an LI element (see before_widget) to wrap your widgets, but in your sidebar’s HTML I don’t see it.

    Are you sure that’s the code that registers that sidebar?

    Thread Starter asegar2

    (@asegar2)

    The function definition I quoted is copied from my theme’s functions.php.

    I’ve added below the calls made to it immediately after the function is defined; perhaps a parameter is wrong here?

    if ( function_exists(‘register_sidebar’) ) {
    register_sidebar(array(
    ‘before_widget’ => ‘<li id=”%1$s” class=”widget %2$s”>’,
    ‘after_widget’ => ”,
    ‘before_title’ => ‘<h3 class=”widgettitle”>’,
    ‘after_title’ => ‘</h3>’,
    ));
    }

    register_sidebar(array(‘name’=>’blurb_box’,
    ‘before_widget’ => ”,
    ‘after_widget’ => ”,
    ‘before_title’ => ‘<h3>’,
    ‘after_title’ => ‘</h3>’,
    ));

    register_sidebar(array(‘name’=>’site_description’,
    ‘before_widget’ => ”,
    ‘after_widget’ => ”,
    ‘before_title’ => ‘<h3>’,
    ‘after_title’ => ‘</h3>’,
    ));

    register_sidebar(array(‘name’=>’quick_links’,
    ‘before_widget’ => ”,
    ‘after_widget’ => ”,
    ‘before_title’ => ‘<h3>’,
    ‘after_title’ => ‘</h3>’,
    ));

    register_sidebar(array(‘name’=>’sidebar_box1’,
    ‘before_widget’ => ”,
    ‘after_widget’ => ”,
    ‘before_title’ => ‘<h3>’,
    ‘after_title’ => ‘</h3>’,
    ));

    register_sidebar(array(‘name’=>’sidebar_box2’,
    ‘before_widget’ => ”,
    ‘after_widget’ => ”,
    ‘before_title’ => ‘<h3>’,
    ‘after_title’ => ‘</h3>’,
    ));

    register_sidebar(array(‘name’=>’upcoming_events’,
    ‘before_widget’ => ”,
    ‘after_widget’ => ”,
    ‘before_title’ => ‘<h3>’,
    ‘after_title’ => ‘</h3>’,
    ));

    /** Added by AJS 1/31/12 */
    register_sidebar(array(‘name’=>’quote_box’,
    ‘before_widget’ => ”,
    ‘after_widget’ => ”,
    ‘before_title’ => ‘<h3>’,
    ‘after_title’ => ‘</h3>’,
    ));

    Plugin Author Hector Cabrera

    (@hcabrera)

    I guess it’s either sidebar_box1 or sidebar_box2.

    Try changing any of these sidebars (or both) to this and see if it helps:

    register_sidebar(array('name'=>'sidebar_box1',
    'before_widget' => '<div id="%1$s" class="widget %2$s">',
    'after_widget' => '</div>',
    'before_title' => '<h3>',
    'after_title' => '</h3>',
    ));
    Thread Starter asegar2

    (@asegar2)

    That did it (sidebar_box2). Thank you so much!

    Plugin Author Hector Cabrera

    (@hcabrera)

    No problem!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘"Error: cannot ajaxify WordPress Popular Posts on this theme" after 3.0.1->3.0.2’ is closed to new replies.