A few days ago, my provider (micfo.com) apparently updated its PHP server to version 4.4.0 and its Zend Optimizer (whatever that is!) to version 2.5.10a. Around that time, the aggregator for my site at http://rpg.turnodanoite.com stoped working. Cron.php just freezes up and if I try to manually update a feed, nothing happens (the browser starts loading a new window and just hangs there for a few minutes until it calls it quits).

After a bit, the following message appears on the admin Watchod page: "fsockopen(): unable to connect to feeds.feedburner.com:80 in /home/ricmad/public_html/rpg/includes/common.inc on line 268."

This followed by the message: "Feed analysis failure. Operation now in progress."

And then a third Watchdog message: "Cannot modify header information - headers already sent by (output started at /home/ricmad/public_html/rpg/includes/common.inc:384) in /home/ricmad/public_html/rpg/includes/common.inc on line 192."

When the site tries to ping www.drupal.org to warn of new content, I get a similar error (repeated with every cron job): "fsockopen(): unable to connect to www.drupal.org:80 in /home/ricmad/public_html/rpg/includes/common.inc on line 268."

The tech support guys for micfo haven't helped me one bit... it took three days of e-mail exchanges just for them to admit something had been changed/updated in their server, which was the first thing I asked when I submited the support ticket. Anyway, they say connections through port 80 should work... and they added the feeds I wanted to the allow list of their firewall (to no avail).

Can anyone help me out? Is there anything I could ask the tech guys to look into, some PHP parameter or configuration? Anyone got a PHP script that can I use to test if fsockopen() is being blocked or something like that?

I've placed on my domain a script to get the phpinfo for my server. It's at http://www.turnodanoite.com/ phpinfo.php (remove the space after the slash)

Please help if you can.

Comments

ricmadeira’s picture

Oh, I forgot to add... I know for sure that this is a problem with the micfo server because I have a couple of blogs using the b2evolution CMS and in both the anti-spam tool stopped connecting to the b2evo spam database to update the forbidden keywords.

I also failed to mention that the aggregator.module is failing so badly that the tech support guys even closed my account (some help those $%&# are!) for a few hours because drupal's cron.php (which I run hourly) started eating up all their CPU power... this and the anti-spam update script in my b2evo blogs (which is not even triggered automatically). I disabled the aggregator and ping modules in the admin panel so that wouldn't happen again.

I read somewhere on the internet about a problem with fsockopen() where the sockets failed to close after the script had termined until eventually the server would be up to its neck in open sockets... maybe this is what's happening?

ricmadeira’s picture

Can anyone at least provide me with a simple PHP script that replicates the way the aggregator opens a socket, reads a feed, and closes the socket?

It's pretty simple, I think. I found it on common.inc, or whatever it is called, and it's only a few lines of code. I couldn't make use of it, however, because it has all these $variables in it that I don't know what to replace with... I tried to print the $variables to the screen, but my PHP knowledge is so limited I couldn't even do that.

With this script I could talk to the support guys and tell them "here's a simple tiny script, only a couple of lines, now explain to me why it doesn't work".

Please help!