Error:
White screen when refreshing feed.

Module:
parser_simplepie

PHP Versions
PHP 5.2.4
PHP 5.2.2

Platforms
Mac OS X (standard configuration with mysql 5)
Windows XP (xampp package)

Error does NOT occur with
on Windows XP with PHP 4.4.7

I could trace the error once to the preg_replace_callback() call in
normalize_url()

The error does not occur if in parser_simplepie.module I return "XML feed" instead of testing compatibilty. (add return "XML feed"; right after case 'compatible': in parser_simplepie_feedapi_feed() hook implementation.

Comments

alex_b’s picture

"I could trace the error once to the preg_replace_callback() call in
normalize_url()"
...
in SimplePie_Misc, simplepie.inc.

This might be an error that needs to be fixed in simplepie .

alex_b’s picture

Zend seems to be involved in this: the apache error log logs a

zend_mm_heap corrupted

error when the white screen comes up.

jbowman’s picture

are you using php 5.2.x? I believe there are some problems associated with the upgrade from 5.1 to 5.2. I believe str_ireplace was one of the functions notorious for kicking off this bug.

Rob T’s picture

This error happens for me as well (php 5.2.4, drupal 5.5). I ended up uninstalling and then installing my older copy of FeedAPI beta1, which worked just as it does on another site of mine.

jose reyero’s picture

Same problem here,

I'm using PHP 5.2.3 / SimplePie 1.1 / Apache 2.2.5 / Ubuntu Gutsy

Blank page and this error in Apache logs
[Mon Jan 07 19:36:55 2008] [notice] child pid 24255 exit signal Segmentation fault (11)

jose reyero’s picture

I've just tried the latest devel version of SimplePie and the issue seems to be fixed. It's working for me.

Ian Ward’s picture

Same problem. On my PHP 5.2.4 Apache 2 with Simplepie 1.0.1 I had no issues. Then I moved to 5.2.5 Apache 2 and I got the white screen on refresh. The following page returned "Could not refresh feed." When I switched to the devel version of Simplepie as did Jose, it fixed the issue and aggregated fine. I did not see a seg fault in my logs though.

alex_b’s picture

I can confirm this problem also with
SimplePie 1.1

(Apache 2, PHP 5.2.4)

I can also confirm Jose's experience that the latest development version of SimplePie (I grabbed the latest tarball) fixes the issue.

alex_b’s picture

Status: Active » Closed (won't fix)

I push this to won't fix as this is obviously a simplepie issue.

alex_b’s picture

For the time being I added a stop gap to this issue which "fixes" the whitescreen issue for most people, but removes feed type detection:

http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/feedapi/par...

While this is clearly no solution, this will remove a stumble stone for beginners, while it is an easy thing for advanced developers to remove those two lines in their installation.

Once simplepie 1.2 rolls out, we can remove those two ugly lines (Task http://drupal.org/node/210385)

Alex

bertboerland’s picture

Component: Code » Code feedapi (core module)

1.2 is out for a long time now. is there a status update?

alex_b’s picture

I can't tell you OTOH. If you're experiencing WSODs however, make sure it's not because of hitting the PHP memory limit.