Serendipity-Buch

Handbuch für Serendipity bestellen

Das offizielle, umfassende Serendipity-Handbuch für Einsteiger und Profis ist nun im Handel und kann online bei Amazon oder OpenSourcePress, oder auch bei jedem Buchhändler, bestellt werden!

Forum-Information

Before posting about errors, make sure that the answer cannot already be found in our FAQ or by searching this forum!
Posting is restricted to registered users (registering is free and simple!) due to recent spam attacks. When having trouble with this board, contact garvin(-at)s9y(-dot)org.

Board index General discussions Feeds Stopped working

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
robw
Regular
 
Posts: 20
Joined: Thu Mar 30, 2006 3:05 pm

Postby robw » Fri Jun 09, 2006 1:27 am

The feeds for my site seem to have stopped working, and I can't figure out why. I upgraded to version 1.03-beta recently, but am not sure if they were not working prior to this.

I have tried the xml cleanup plugin (suggested in another thread), but this made no difference. In Safari, the feeds just return a “unknown error” (NSURLErrorDomain:-1) error. In explorer the xml shows. It fails in various readers.

The site is : http://www.hypnotherapyregister.com/register/

Any help much appreciated!

Cheer
Rob

User avatar
garvinhicking
Core Developer
 
Posts: 26675
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany

Postby garvinhicking » Fri Jun 09, 2006 11:38 am

Hi!

It seems that you have edited some PHP file and introduced a blank line either BEFORE the first <?php or after the last ?> of that file. Because the first line of your RSS feed is no longer the XML info, but that blank line from one of your templates.

Best regards
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

robw
Regular
 
Posts: 20
Joined: Thu Mar 30, 2006 3:05 pm

Postby robw » Fri Jun 09, 2006 11:57 am

Thanks Garvin,

As always, you are a superstar. I found that there was a line after the ?> in the template config.in.php file, which I have now removed and the site RSS has magically re-appeared!

Cheers
Rob

JWalker
Regular
 
Posts: 177
Joined: Mon Sep 12, 2005 4:14 pm
Location: Botevgrad, Bulgaria

Postby JWalker » Fri Jun 09, 2006 12:18 pm

garvinhicking wrote:Hi!

It seems that you have edited some PHP file and introduced a blank line either BEFORE the first <?php or after the last ?> of that file. Because the first line of your RSS feed is no longer the XML info, but that blank line from one of your templates.

Best regards
Garvin


What this means:
-- blank line before '<?php' or
-- operator (some HTML code) before '<?php' that emits a blank line ?

I have exactly same problem, but did not doscovered in which file is the 'bug'.
Ivan Cenov
OKTO-7 Co., Botevgrad
Bulgaria

User avatar
garvinhicking
Core Developer
 
Posts: 26675
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany

Postby garvinhicking » Fri Jun 09, 2006 12:29 pm

Hi!

Sadly this blank line can happen in ANY of the files you have edited or uploaded. It is often casued by editors that add \r\n or \n to the output somewhere, often because of windows file editors.

Sadly you have to go through every file you ever modified. usual causes are plugin files, template configuration file, language files.

Sadly there's no automatism to find out.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

JWalker
Regular
 
Posts: 177
Joined: Mon Sep 12, 2005 4:14 pm
Location: Botevgrad, Bulgaria

Postby JWalker » Fri Jun 09, 2006 12:40 pm

Thanks for the reply. Indeed, I am under Windows and have edited (dont know how many) files with MS VStudio editor. I found several files in the root s9y directory with empty line after last '?>'. As I suspect there are many. With enough persistence, I will find out ... :).
Tnx.

P.S. Some files have not closing '?>' at the end. What about them ?
Ivan Cenov
OKTO-7 Co., Botevgrad
Bulgaria

User avatar
garvinhicking
Core Developer
 
Posts: 26675
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany

Postby garvinhicking » Fri Jun 09, 2006 12:47 pm

Hi!

Actually if a file does not have a closing ?>, this is the best way. Because with this, no blank lines can be added after the document. A closing ?> is not required, so it's the easiest way to help people get rid of at least that blank line bug at the end of a file.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

robw
Regular
 
Posts: 20
Joined: Thu Mar 30, 2006 3:05 pm

Postby robw » Fri Jun 09, 2006 12:48 pm

Hi JWalker,

What I did to narrow it down is to change the template back to the default one and check to see if the RSS started working again - which it did.

This told me that the issue was with one of my custom template files and by process of elimination I was able to find it.

(Becuase of the way S9Y cleverly backfills any missing files in a template with the ones from the default version, you can try renaming each of your template files in turn to turn them off and narrow down the problem file.)

Hope this helps!
Cheers
Rob

sparkx
 
Posts: 2
Joined: Sun Jun 11, 2006 8:00 am

Postby sparkx » Sun Jun 18, 2006 6:39 am

I am struggling with the feeds as well.

It's strange though, if I click the rss feed links in firefox, I can see the output, but when I subscribe to them in NetNewsWire, it shows no posts. The atom feed gives an error in firefox, and no posts in the reader. And strangely, the comments feed works like it should.

I thought it might be the blank line issue, and did find a couple files with that, but even after repair the problem remained. I did a default install to another folder on the server to check and make sure it wasn't an issue with my host. Subscribing to those feeds worked just fine. So, I made a guess that something I had done to one of the files had broken the feeds. Since this was a fairly new install of Serendipity, I decided to delete all the files and do a fresh install.

The fresh install went off without a problem, and all of my entries remained, but still the feeds don't show any posts when I subscribe to them. This leads me to believe that there is something in the database that is causing it for this instance of Serendipity, but not the other, which has its own database. Am I missing something obvious?

The site is at http://thecarnage.geckobrothers.com and the feeds are

http://thecarnage.geckobrothers.com/ind ... index.rss2
http://thecarnage.geckobrothers.com/ind ... index.rss1
http://thecarnage.geckobrothers.com/ind ... ments.rss2
http://thecarnage.geckobrothers.com/ind ... atom10.xml

User avatar
garvinhicking
Core Developer
 
Posts: 26675
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany

Postby garvinhicking » Sun Jun 18, 2006 12:11 pm

Hi sparkx!

Your RSS2 feed looks proper! If I subscribe to it using my default RSS Client RSS Bandit, it works as expected.

Maybe the sites you are trying it are caching your feed and you need to wait for some time until they fetch the now working feed(s)?

About the error in your Atom feed: Atom is very picky about XHTML compliance. In one of your entries you made a URL like http://www.opensourcecms.com/index.php? ... Itemid=159

However in valid XHTML this needs to be:

Code: Select all
http://www.opensourcecms.com/index.php?option=content&amp;task=view&amp;id=205&amp;Itemid=159


So you'd either need to fix this manually (replace "&" with "&amp;") or you could also install the "Fix common XHTML errors" event plugin, which fixes those things automatically for you!

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

sparkx
 
Posts: 2
Joined: Sun Jun 11, 2006 8:00 am

Postby sparkx » Sun Jun 18, 2006 4:18 pm

Thanks Garvin! It must just be something odd with this reader. I just got feedback from a couple readers that it is working for them again too, so that's good.

I didn't know that about the atom feed. I'll keep an eye out for that in the future.

sparkx

Gamersea
Regular
 
Posts: 65
Joined: Thu Jun 15, 2006 8:52 am

Postby Gamersea » Wed Jun 21, 2006 9:31 pm

I have the same sort of issue but on my blog(s) the outside/remote feeds have stopped working.
Could this problem have been made by the same issue of a blank line?

hyperorbiter
Regular
 
Posts: 19
Joined: Thu Mar 30, 2006 3:58 am
Location: New Zealand

Postby hyperorbiter » Mon Jun 26, 2006 6:05 am

hi,

my feeds return the following in safari:

"This page contains the following errors:

error on line 1 at column 1: Document is empty
Below is a rendering of the page up to the first error."

www.definitive.co.nz/blog/

any clues?
i'm not cool enough to have a signature

User avatar
garvinhicking
Core Developer
 
Posts: 26675
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany

Postby garvinhicking » Mon Jun 26, 2006 1:32 pm

Hi!

Hm, sadl yyour URL seems to be down right now?

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

hyperorbiter
Regular
 
Posts: 19
Joined: Thu Mar 30, 2006 3:58 am
Location: New Zealand

Postby hyperorbiter » Mon Jun 26, 2006 11:43 pm

hi garvin,

it's intermittent at the isp at the moment, but it's a separate problem...

if you try now you'll see what i mean...

thanks

stu
i'm not cool enough to have a signature

Next


Return to General discussions

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron