Support » Fixing WordPress » Call to undefined function

  • Resolved jefito


    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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?

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

    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…

    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.

    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.


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