This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

Problems with RSS after Upgrade
#1

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 Huh

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.
Reply
#2

Hi,

It seems that when you were editing comments/includes/db/connect.php you may have caused a blank space or an extra line at the beginning or end of the file. Open the file and remove any extra spaces or lines before the first <?php and after the closing ?>

Have you completed the interview?
Reply
#3

Thank you very much for your help.

I removed all extra spaces in connect.php.

Now it works.
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by Steven
03-Feb-2020, 09:20 PM
Last Post by ddraber
15-Apr-2019, 02:34 PM
Last Post by chris
14-Feb-2019, 10:15 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)