[wp-trac] [WordPress Trac] #10133: Dashboard feeds not loading
WordPress Trac
wp-trac at lists.automattic.com
Fri Jun 10 18:24:58 UTC 2011
#10133: Dashboard feeds not loading
----------------------------+-----------------------
Reporter: pavelevap | Owner:
Type: defect (bug) | Status: reopened
Priority: high | Milestone: 2.9
Component: Administration | Version: 3.1.1
Severity: normal | Resolution:
Keywords: needs-patch |
----------------------------+-----------------------
Changes (by kmfj1):
* keywords: SimplePie => needs-patch
* status: closed => reopened
* version: => 3.1.1
* resolution: fixed =>
Comment:
I removed my feed URL from the dashboard incoming links. This caused a
file not found error in file_get_contents in class-feed.php on about line
97. file_get_contents can't open the URL, which causes the error. If the
script used file_exists before file_get_contents this should fix the
issue? This is not a SimplePie issue but the extended class: WP_Feed_Cache
I changed to:
if(!file_exists($url)){
$this->error = 'the file doesn\'t exist
could not read the file';
$this->success = false;
}
else{
if ( ! $this->body =
file_get_contents($url) ) {
$this->error = 'file_get_contents
could not read the file';
$this->success = false;
}
}
This fixed the issue?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10133#comment:39>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list