A free, self-hostable news aggregator…
SimplePie error message XML PCRE
Alexandre Alapetiteccecebc2b467
diff --git a/app/Models/Feed.php b/app/Models/Feed.phpindex 9855ca742..6104b1e31 100644--- a/app/Models/Feed.php+++ b/app/Models/Feed.php@@ -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');diff --git a/lib/SimplePie/SimplePie.php b/lib/SimplePie/SimplePie.phpindex 8af55c9fd..8026fb149 100644--- a/lib/SimplePie/SimplePie.php+++ b/lib/SimplePie/SimplePie.php@@ -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.