WordPress.org

Ready to get started?Download WordPress

Forums

Pinterest RSS Widget
Possible fix for - PHP Fatal error: Call to undefined method WP_Erro (4 posts)

  1. aarcos
    Member
    Posted 1 year ago #

    Im getting this error too often in my error log

    PHP Fatal error: Call to undefined method WP_Error::get_item_quantity() in /xxxxxxx/xxxxxx/xxxxxx/wp-content/plugins/pinterest-rss-widget/pinterest-rss-widget.php on line 64

    that contains the following code:

    $maxitems = $rss->get_item_quantity((int)$maxfeeds);

    after a little research on this topic, i found this

    http://wordpress.org/support/topic/atal-error-call-to-undefined-method-wp_errorget_item_quantity

    Same problem but with another rss the recomendation is to add

    rss->set_timeout(60);
    $maxitems = $rss->get_item_quantity((int)$maxfeeds);

    Is this a solution or you recommend another alterntive?

    http://wordpress.org/extend/plugins/pinterest-rss-widget/

  2. bkmacdaddy
    Member
    Plugin Author

    Posted 1 year ago #

    I just added that line to the newest version 2.01. Try upgrading and let me know if it solves your problem.

  3. wprebel
    Member
    Posted 1 year ago #

    hi bkmacdaddy, we upgraded to 2.01 and continue to receive the same error.

    Fatal error: Call to undefined method WP_Error::set_timeout() in /xxxxxxxxxxxxxxxxxxxxxxxxxxxx/wp-content/plugins/pinterest-rss-widget/pinterest-rss-widget.php on line 61

  4. bartom34
    Member
    Posted 1 year ago #

    Hi bkmacdaddy,

    I upgrade for the version 2.2.1 and the problem is still here.

    You can check-it here :
    http://www.happybeertime.com/album-photo-biere/

    I check the code and there is the timeout line recomended by aarcos.

    The problem is it solve ?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic