White screen when refreshing feed

alex_b - January 2, 2008 - 19:57
Project:FeedAPI
Version:5.x-1.x-dev
Component:Code feedapi (core module)
Category:bug report
Priority:normal
Assigned:Unassigned
Status:won't fix
Description

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.

#1

alex_b - January 2, 2008 - 20:05

"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 .

#2

alex_b - January 2, 2008 - 20:15

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

zend_mm_heap corrupted

error when the white screen comes up.

#3

jbowman - January 3, 2008 - 03:14

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.

#4

Rob T - January 6, 2008 - 02:48

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.

#5

Jose Reyero - January 7, 2008 - 18:48

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)

#6

Jose Reyero - January 11, 2008 - 19:22

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

#7

Ian Ward - January 13, 2008 - 21:24

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.

#8

alex_b - January 14, 2008 - 21:26

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.

#9

alex_b - January 15, 2008 - 13:52
Status:active» won't fix

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

#10

alex_b - January 15, 2008 - 20:05

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

#11

bertboerland@ww... - October 19, 2009 - 19:07
Component:Code» Code feedapi (core module)

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

#12

alex_b - October 19, 2009 - 22:29

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

 
 

Drupal is a registered trademark of Dries Buytaert.