aarcos
Member
Posted 10 months 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/
bkmacdaddy
Member
Plugin Author
Posted 9 months ago #
I just added that line to the newest version 2.01. Try upgrading and let me know if it solves your problem.
wprebel
Member
Posted 9 months 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
bartom34
Member
Posted 3 months 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 ?