Support » Fixing WordPress » Fatal error: Call to undefined method WP_Error::init()

  • After i passed to wp 2.9.1, a script from my wordpress theme doesn’t work.
    It is shown the folowing error:

    Fatal error: Call to undefined method WP_Error::init() in /hermes/web09/b2379/moo.cristescu/wp-content/themes/Uni Ego RSS 1.0/search.php on line 17

    The part of the code where the error appears is:

    $rss = fetch_feed("$part13");
    $rss->init();
    $rss->handle_content_type();
    $maxitems = $rss->get_item_quantity();
    $rss_items = $rss->get_items(0, $maxitems);

    Does anyone have an idea what is it about?

  • The topic ‘Fatal error: Call to undefined method WP_Error::init()’ is closed to new replies.