At each scheduled cron run I get one or two of these errors, seems like when it wants to get info for the RSS feeds generated by our drupal installation. Does anyone know how to fix them or make them stop?

What I see is:
fsockopen(): unable to connect to www.cctvcambridge.org:80 in /m

Thanks for any help?

Comments

gabriella’s picture

I think that I have read about this somewhere here on drupal.org, and that it could have something to do with a firewall.. someting like RSS feeds that don't work if there is proxy server running.

I dont remember where I read it but if you search drupal or perhaps google using the phrase "fsockopen(): unable to connect to", you might find some clues

bottasini’s picture

Many webhosts have the function fsockopen() disabled for security reasons, therefore all the software (Drupal module aggregator included) that use that function cannot work there. I do not know why fsockopen() may be a dangerous function but I faced this limitation on several hosts.

Therefore it is not a Drupal problem but a hosting problem.

wings’s picture

Where is it disabled? I can probably change the Apache or PHP settings with a bit of instruction, but if it is disabled by a firewall it might be a challenge to convince our IT guys to let it through.

Brian

jsbthree’s picture

You said the firewall may block this function. Does anyone know if this is true and how to enable.

I ask because I've installed a Cisco Pic firewall to try to stop some random bot wierdness and the cron has stoped working or aggregating feeds.