mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-07-10 07:06:20 -04:00
SimplePie error message XML PCRE
https://github.com/FreshRSS/FreshRSS/issues/1227
This commit is contained in:
@@ -241,7 +241,7 @@ class FreshRSS_Feed extends Minz_Model {
|
||||
|
||||
if ((!$mtime) || $feed->error()) {
|
||||
$errorMessage = $feed->error();
|
||||
throw new FreshRSS_Feed_Exception(($errorMessage == '' ? 'Feed error' : $errorMessage) . ' [' . $url . ']');
|
||||
throw new FreshRSS_Feed_Exception(($errorMessage == '' ? 'Unknown error for feed' : $errorMessage) . ' [' . $url . ']');
|
||||
}
|
||||
|
||||
$links = $feed->get_links('self');
|
||||
|
||||
@@ -1304,6 +1304,7 @@ class SimplePie
|
||||
// Check absolute bare minimum requirements.
|
||||
if (!extension_loaded('xml') || !extension_loaded('pcre'))
|
||||
{
|
||||
$this->error = 'XML and PCRE extensions not loaded!';
|
||||
return false;
|
||||
}
|
||||
// Then check the xml extension is sane (i.e., libxml 2.7.x issue on PHP < 5.2.9 and libxml 2.7.0 to 2.7.2 on any version) if we don't have xmlreader.
|
||||
|
||||
Reference in New Issue
Block a user