We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16550
    • 23 Posts
    Hello,

    Trying to implement RSS feed in my website i have to cope with a big problem. The RSS feed doesn’t work because of a blank line at the very top of the source code of all my webpage, in front end.
    Do you know what files i have to check / change to avoid this problem

    my website :
    bourlingueur.org
    check the code

    thks
      • 26016
      • 561 Posts
      One of your RSS feed links seems to be fine.

      If I understand your question, I sometimes have a problem with my MODx RSS feed where I forget that you have to choose "blank" (rien!) as your template for any page with the RSS feed.

      Salut, Dave
        MODx and Wordpress development
        Linux, PHP 5.2, MySQL 5.0, Evo 1.05, Revo 2.08-pl, Firefox 4
        • 22840
        • 1,572 Posts
        Looking at it I would say Samba is correct, change the template to blank grin
          • 16550
          • 23 Posts
          hello, thanks for your answers.

          Actually i’ve created new pages out of MODX for my rss feed waiting the problem to be fix.

          The Url of faulty rss feed is:
          http://www.bourlingueur.org/partagez/carnet_voyage/rss/flux-rss-culture.html
          note that the first line of code is blank, as well as all my pages using MODX and whatever is the template (even if it is a blank template).

          I think that the problem is in a php file used when a page is parsed/displayed, i don’t know exactly how it works. Is anyone able to say what are the files used by MODX prior to display a simple page (for exemple with no template and nothing in the content huh).
            • 23571
            • 223 Posts
            I may be wrong here, but should your page not end in .rss? You might try changing the Internet Media Type to something like text/xml then change you URL alias to ’flux-rss-culture.rss’
              • 16550
              • 23 Posts
              no greg the page is already set to text/xml ... sad
                • 16550
                • 23 Posts
                sound strange no?

                look i have a new clue: on the previous page :

                i put a template with almost nothing except [*content*] and the result of Mysql inquiries.
                and in the template the word "exemple"

                When i display the code the **cking blankline is here. There are 3 php requests... any idea??
                  • 16550
                  • 23 Posts
                  a picture to clarify...
                    • 32055
                    • 11 Posts
                    If you’re using Revo .. check out ..

                    http://www.weareakta.com/blog/modx/modx-tutorial-rssgen
                      AKTA Web Studio
                      Interface design and app development
                      weareakta.com
                      @weareakta

                      Snippets / Plugins
                      MODx + Gravatar
                      RSSGen - RSS generator