[wp-trac] [WordPress Trac] #24646: fetch_feed() returns WP_Error with "A valid URL was not provided"
WordPress Trac
noreply at wordpress.org
Sun Jul 7 02:32:31 UTC 2013
#24646: fetch_feed() returns WP_Error with "A valid URL was not provided"
--------------------------+--------------------
Reporter: husdaman | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.5.3
Component: Feeds | Version: 3.5.2
Severity: major | Resolution:
Keywords: |
--------------------------+--------------------
Comment (by husdaman):
Replying to [comment:36 husdaman]:
> Replying to [comment:35 nacin]:
> > Replying to [comment:34 husdaman]:
> > > Replying to [comment:33 tjb1013]:
> > > > Replying to [comment:32 nacin]:
> > > > > The proper check would instead be:
> > > > > {{{
> > > > > add_filter( 'http_request_args', function( $args ) {
> > > > > $args['reject_unsafe_urls'] = false;
> > > > > return $args;
> > > > > } );
> > > > > }}}
> > > > >
> > > > > The http_request_reject_unsafe_urls filter only covers defaults.
> > > >
> > > > That worked, thanks.
> > >
> > > I'm trying to apply this but keep getting Parse error: syntax error,
unexpected T_FUNCTION
> >
> > You're running PHP 5.2. Please update to a newer version, like 5.3 or
5.4. 5.5 was also just released last month. Or, rewrite the code to work
in PHP 5.2.
>
> You are right, thank you, I do need to update my development server. On
production it was fine. I will retest the import to see if it also fixed
the problem.
Alright the import media problem is also gone with the filter fix.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24646#comment:37>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list