Results 1 to 6 of 6
  1. #1
    Casual Pligger Sadmir's Avatar
    Joined
    Mar 2007
    Posts
    79

    Problem with RSS Feed inFirefox

    Hi.


    I got a error whe you click on the RSS feed on my site. so I replaced a backup that I had from a week ago now the RSS feed works in Safari,, hwever I keep getting an error in Firefox.


    I've attached my rss.php file

    here is the error that I get in Firefox:


    PHP Code:
    XML Parsing Error: XML or text declaration not at start of entity
    Location: http://diigme.com/rss.php?category=&status=&group=
    Line Number 1, Column 4:            <?xml version="1.0" encoding="utf-8"?>

    Thank you
    Attached Files Attached Files

  2. #2
    Pligg Founder Yankidank's Avatar
    Joined
    Dec 2005
    Location
    San Francisco, CA
    Posts
    5,063
    Site
    http://pligg.com/demo/
    I wonder if that's caused by the exra spaces in front of the <?xml declaration. I'm not sure why your site produces those spaces, while the Pligg Demo does not.
    The Facebook Module for Pligg CMS!
    Register, Login, and Submit Stories with Facebook. An absolute MUST HAVE for all Pligg sites!

  3. #3
    Casual Pligger Sadmir's Avatar
    Joined
    Mar 2007
    Posts
    79
    its strange it was working great for almost 2 weeks and just yesterday i noticed the problem, and right now the error is only i Firefox, I have not tested it yet in IE

  4. #4
    Constant Pligger NeverHome's Avatar
    Joined
    Jun 2006
    Posts
    125
    I think this has something to do with empty characters at the beginning of your xml file...

    <?xml version="1.0" encoding="utf-8"?>
    <rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:wfw="http://wellformedweb.org/CommentAPI/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:atom="http://www.w3.org/2005/Atom"
    >


    If you go to your DiigMe.com | Published News and VIEW SOURCE you will see that your feed is there all right, there's just a hiccup loading due to empty spaces preceding the <?xml version="1.0" encoding="utf-8"?> (I guess).

  5. #5
    New Pligger vardump's Avatar
    Joined
    Aug 2010
    Posts
    2
    I had the same problem and found a solution. The problem for me was the tweetmeme module. I uninstalled it and the error was gone.

    If you don't wanna uninstall it, you can use a simple trick to deactivate it in the rss.php:

    rss.php:
    <?php
    // The source code packaged with this file is Free Software, Copyright (C) 2005 by
    // Ricardo Galli <gallir at uib dot es>.
    // It's licensed under the AFFERO GENERAL PUBLIC LICENSE unless stated otherwise.
    // You can get copies of the licenses here:
    // http://www.affero.org/oagpl.html
    // AFFERO GENERAL PUBLIC LICENSE is also included in the file called "COPYING".

    include_once('Smarty.class.php');

    $main_smarty = new Smarty;
    $rss = 'rss';



    modules/tweetmeme/init_tweetmeme.php:

    <?php
    if(defined('mnminclude') and $rss != 'rss'){
    ...


    So it checks, if it's the rss.php, or not.

    Best Regards
    vardump

  6. #6
    Casual Pligger Sadmir's Avatar
    Joined
    Mar 2007
    Posts
    79
    Quote Originally Posted by vardump View Post
    I had the same problem and found a solution. The problem for me was the tweetmeme module. I uninstalled it and the error was gone.

    If you don't wanna uninstall it, you can use a simple trick to deactivate it in the rss.php:

    rss.php:
    <?php
    // The source code packaged with this file is Free Software, Copyright (C) 2005 by
    // Ricardo Galli <gallir at uib dot es>.
    // It's licensed under the AFFERO GENERAL PUBLIC LICENSE unless stated otherwise.
    // You can get copies of the licenses here:
    // http://www.affero.org/oagpl.html
    // AFFERO GENERAL PUBLIC LICENSE is also included in the file called "COPYING".

    include_once('Smarty.class.php');

    $main_smarty = new Smarty;
    $rss = 'rss';



    modules/tweetmeme/init_tweetmeme.php:

    <?php
    if(defined('mnminclude') and $rss != 'rss'){
    ...


    So it checks, if it's the rss.php, or not.

    Best Regards
    vardump
    Thank you, When I do that I get tit running in Safari and Firefox, however I just get text in google Chrome?

Similar Threads

  1. RSS Feed Problem
    By mh0825 in forum Questions & Comments
    Replies: 1
    Last Post: 08-21-2008, 04:56 PM
  2. Rss Feed Problem
    By ericsson in forum Questions & Comments
    Replies: 1
    Last Post: 02-03-2008, 02:00 PM
  3. Linux Rights / RSS Feed Problem
    By valtronic in forum Questions & Comments
    Replies: 0
    Last Post: 01-03-2008, 10:24 AM
  4. Story Rss Feed $url_short problem!
    By never123456 in forum Questions & Comments
    Replies: 1
    Last Post: 12-12-2007, 11:41 AM
  5. Problem with RSS-feed's dc:creator field. Just one fix please!
    By Andtony in forum Questions & Comments
    Replies: 0
    Last Post: 10-15-2007, 12:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Donate to Pligg CMS Dreamhost Web Hosting Host Gator Web Hosting