Created a new importer not attached to a content type. In Settings for HTTP Fetcher "Use PubSubHubbub" is unchecked.
When I try to create the importer (supplying an url for it) under domain/import it fails with the a curl related error message:

"Call to undefined function curl_init() in /var/www/referate/international/sites/all/modules/feeds/libraries/ on line 74"

This means the function subscribe in is called even if the use PubSubHubbub setting is not activated and the feed in question definitely does not provide anything related to PubSubHubbub.

1.) The errournous call must be fixed
2.) The included lib should be protected against a missing curl lib settup in php


alex_b’s picture

Title: PuSHSubscriber subscribe always called (Call to undefined function curl_init() ) » Call to undefined function curl_init()

1.) Is fixed in HEAD.
2.) yes.

waztech_steve’s picture

I have this error too.
I think this means I do not have the CURL library installed in my PHP
I did this using XUBUNTU:

I used Synaptic Package Manager to find the library PHP5-Curl and downloaded and installed it.
you can also run from a terminal: sudo apt-get install php5-curl
then restart Apache from a terminal: sudo /etc/init.d/apache2 restart

then I refreshed the page, and it created the feed and imported 121 items.
So that is my workaround.

alex_b’s picture

Title: Call to undefined function curl_init() » Catch missing curl library when using PubSubHubbub

More accurate title. Again: missing curl library errors when _not_ using PubSubHubbub should be fixed with alpha 13.

serbanghita’s picture

i can confirm this. it's cool that it will be fixed in alpha13. thanks!

alex_b’s picture

Status: Active » Fixed

This should be fixed by now. Any remaining errors should go on new issues.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.