[wp-trac] [WordPress Trac] #20219: GET - Too many redirects
WordPress Trac
wp-trac at lists.automattic.com
Tue Mar 13 10:06:10 UTC 2012
#20219: GET - Too many redirects
--------------------------+------------------------------
Reporter: Workshopshed | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: HTTP | Version:
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+------------------------------
Comment (by Workshopshed):
kawauso, thanks for reviewing the DIFF. The double minus is used
intentionally to decrement a counter and hence stop the procedure
recursing infinately. The count starts at 5 and decreases to zero. The
same error message occurrs multiple times in the file so to locate which
instance was causing the problem I added a number to the end. It was not
my intention to include that in the diff so well spotted.
dd32: Additional information as requested.
Yes, the code is in a custom plugin.
It was working ok till around November 2011 when something changed and
some of my feeds stopped being read.
I tracked that down to being those with a redirected feed.
Settings:
Safe Mode: Off
Curl: On, Version 7.15.5
Test Code is very simple, as all I am doing is calling fetch_feed, if you
check what is returned you will see the error
{{{
$rss = fetch_feed('http://blog.makezine.com/feed/');
}}}
The values that end up in the particular function are
{{{
$theResponse - string length = 0
$args['method'] - GET
Curl exec error - no
CURLINFO_HTTP_CODE - is either 301 or 302
$r['redirection'] - 5
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20219#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list