Support » Fixing WordPress » Call to undefined function

  • Resolved jefito

    (@jefito)


    I’m using the Benevolence theme at my blog:

    http://www.jefitoblog.com

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Kafkaesqui

    (@kafkaesqui)

    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?

    jefito

    (@jefito)

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

    moshu

    (@moshu)

    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…

    Kafkaesqui

    (@kafkaesqui)

    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.

    jefito

    (@jefito)

    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.

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Call to undefined function’ is closed to new replies.