tw_rssfeeds

TW RSS Feeds ist eine leichtgewichtige Erweiterung zum Einbinden von RSS als Inhaltselement.

Bei der Installation in einem TYPO3 4.6.3 bei jweiland.net wurden allerdings keine Inhalte ausgegeben.

Die Lösung gab es wie so oft im Forum: Folgende Funktion ab Zeile 435

function xml_file($file) {
	if (!($fp = @fopen($file, "r")))
		$this->error("Kann XML-Datei <b>".$file."</b> nicht öffnen");
 
		while ($data = fread($fp, 4096)) {
			if (!(xml_parse($this->parser, $data)))
				$this->error("XML-Output: ".xml_error_string(xml_get_error_code($this->parser)));
		}
 
	xml_parser_free($this->parser);
}

wird ersetzt durch

function xml_file($file) {
	$my_curl_handle=curl_init();
	curl_setopt($my_curl_handle, CURLOPT_URL, $file);
	curl_setopt($my_curl_handle, CURLOPT_TIMEOUT, 10);
	curl_setopt($my_curl_handle, CURLOPT_RETURNTRANSFER, 1);
	$result=curl_exec($my_curl_handle);
	if (!$result) {
		$this->error("Kann XML-Datei <b>".$file."</b> nicht oeffnen");
	}
	if (!(xml_parse($this->parser, $result))) {
		$this->error("XML-Output: ".xml_error_string(xml_get_error_code($this->parser)));
	}
	xml_parser_free($this->parser);
	curl_close($my_curl_handle);
}  

und alles wird gut.