errors

Found a bug? Tell us!!
Post Reply
Atom feed

errors

Post by Atom feed »

I am getting the following error when using the Atom 0.3 feed:

XML Parsing Error: not well-formed

Location: http://www.blog.[mysite].net/rss.php?version=atom0.3
Line Number 177, Column 10:<a target"_blank" href="http://www.blog.[mysite].net/exit.php?url_id=32&entry_id=21" title="http://news.bbc.co.uk/2/hi/europe/4179057.stm" onmouseover="window.status='http://news.bbc.co.uk/2/hi/europe/4179057.stm';return true;" onmouseout="window.status='';return true;">Full story here...</a><br />
---------^
I tried taking out that post, and gives the same error for a different post. Is the problem in the way I add my posts, or in the blog?

Thank you.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: errors

Post by garvinhicking »

Please give us the URL to your feed. The line you showed is not the cause of the error.

You could already try and install/activate the "Fix common XHTML errors" plugin.

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/
Guest

Post by Guest »

I did now install/activate the "Fix common XHTML errors" plugin. Ite seams that there was some badly formated HTML in my posts. Will that fix automatically with this plugin?
Thank you for the help and for S9Y :D
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

It fixes some "common" XHTML errors, so that means depending on what error you made (I can't figure out without you giving me the URL to your blog). Many errors are fixed by the plugin, but some others are not. Only the most common ones (escaping entities, missing slashes) are fixed :)

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/
Guest

Post by Guest »

The error was that I inserted in the link of a few posts the tag target="_blank" but in a few places I forgot the =....so that was causing the error.
I think I saw somewhere where you can make your links open in a new window, links that you include inin youor post. How do I do that?
My blog: blog.butlersonline.net
Thank you for your concern and help Garvin. :wink:

Another question I had is this: If I have 2 or more people posting in the same blog (i.e. me and my wife), I would like that the different authors have a slightly different shade or background color...in order to more easily differenciate between the "posters". Make sense?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

For opening links in new windows you need to patch a Serendipity file, described in this thread: http://www.s9y.org/forums/viewtopic.php ... ink+window

We will not include this in Serendipity by default; the 'target' attribute is deprecated sine XHTML 1.0 Strict, and it is a bad thing to do for an author to force users into opening links in a new window. The visitor should have the power to do so. That's my opinion :)

About the 2 or more people posting: Since Serendipity 0.7 we have an additional CSS class for each author. You can use the class

Code: Select all

.serendipity_entry_author_theMan {
  border: 5px solid blue;
}

.serendipity_entry_author_theWife {
  border: 5px solid red;
}
in your templates style.css 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/
Guest

Post by Guest »

Cool, Thanks Garvin. I'll try out the css right away.

The reason for the links opening in the new window is because, sometimes I post part of an article, and link to the rest of it. So, that the browser doesn't have to click "back, back...." to get back to browsing my blog, I like that option.
I agree that the user should have that control, but a lot of "browsers" are not that savey and are not as methodical as I might be. :)
Post Reply