19-Aug-2011, 11:34 PM
After the upgrade from 1.5 to 1.6 today the RSS has Problems.
http://www.bewertungen-und-test.duo-cred...ts/rss.php
Warning: Cannot modify header information - headers already sent by (output started at /homepages/20/d354575681/htdocs/duo-credit/www-bewertung/comments/includes/db/connect.php:1) in /homepages/20/d354575681/htdocs/duo-credit/www-bewertung/comments/rss.php on line 48
I tried to fix it, but my php is not so good
http://www.bewertungen-und-test.duo-cred...ts/rss.php
Warning: Cannot modify header information - headers already sent by (output started at /homepages/20/d354575681/htdocs/duo-credit/www-bewertung/comments/includes/db/connect.php:1) in /homepages/20/d354575681/htdocs/duo-credit/www-bewertung/comments/rss.php on line 48
I tried to fix it, but my php is not so good
PHP Code:
<?php
define ('IN_COMMENTICS', '1');
/* Database Connection */
require "includes/db/connect.php"; //connect to database
//get settings
require "includes/classes/settings.php";
$settings = new Settings;
//load functions file
require "includes/functions/page.php";
//load language file
require "includes/language/" . $settings->language_frontend . "/rss.php";
if (!$settings->rss_enabled) {
die(CMTX_RSS_FEATURE_DISABLED);
}
if (cmtx_is_administrator()) {} else {
if (cmtx_in_maintenance()) { //check if under maintenance
die();
}
}
header("Content-Type:text/xml; charset=utf-8");
I hope someone can Help me.