RSS feed from News module
Posted: Tue Feb 15, 2005 4:03 pm
Hi all,
do anybody knows, how to force module News send header properly? I mean - if I click on my RSS (XML) button, i will allways receive page with text/html content type... Try it and check page info in Your browser. Because of this bug some RSS readers cannot work properly and returns error...
PHP function void header ( string string [, bool replace [, int http_response_code]] ) has parameter 'replace' with default value 'true', but it doesn't works...
Or - error will be in another place of code - I was change file /moduleinterface.php -
lines
I was move right after include file 'include.php' at beginning of script, but ALL my news with í things caused in browser this error:
XML Parsing Error: undefined entity. Maybe those HTML characters are not allowed in XML document? They was converted by TinyMCE from national characters - how can i turn off this feature of TinyMCE?
Cheers, 100rk.
do anybody knows, how to force module News send header
Code: Select all
header('Content-type: text/xml');
PHP function void header ( string string [, bool replace [, int http_response_code]] ) has parameter 'replace' with default value 'true', but it doesn't works...
Or - error will be in another place of code - I was change file /moduleinterface.php -
lines
Code: Select all
header("Content-Language: " . $current_language);
header("Content-Type: text/html; charset=" . get_encoding());
XML Parsing Error: undefined entity. Maybe those HTML characters are not allowed in XML document? They was converted by TinyMCE from national characters - how can i turn off this feature of TinyMCE?
Cheers, 100rk.