[resolved] Call to undefined function (6 posts)

  1. jefito
    Posted 9 years ago #

    I'm using the Benevolence theme at my blog:


    And after upgrading to 2.0.2 this morning, my right sidebar disappeared, replaced with the following message:

    Call to undefined function: get_right_sidebar() in /home/jblog/public_html/blog/wp-content/themes/benevolence/index.php on line 153

    This is all Greek to me...if anybody could help me get the error fixed, I'd really appreciate it.

  2. Kafkaesqui

    Posted 9 years ago #

    Issues I see here:

    1. There is no get_right_sidebar() function in WordPress. Never has been.

    2. Benevolence is a 2-column theme.

    So did you perform the mods to this theme? If so, where were you defining the get_right_sidebar() function?

  3. jefito
    Posted 9 years ago #

    I didn't perform the mods, no...a friend did it. Up until the upgrade, it was working perfectly...

  4. moshu
    Posted 9 years ago #

    That doesn't seem to be a regular WP function (get_right_sidebar). The function that WP "knows" about should be get_sidebar()
    But if it worked before the upgrade, there probably was somewhere a specific function which got deleted.

    Edit. Oopps, I am slow...

  5. Kafkaesqui

    Posted 9 years ago #

    Do you know the filename for the "right" sidebar template? Try replacing the call to get_right_sidebar() in your primary templates with this:

    <?php load_template(TEMPLATEPATH . '/rightsidebar.php'); ?>

    Just make sure the name of the template (rightsidebar.php here) is the correct one.

  6. jefito
    Posted 9 years ago #

    Using load_template works like a charm. Kafkaesqui gets a gold star from me and is my hero for the day.

    Whatever that's worth.


Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.