[podcasting] invalid token

Creating and modifying plugins.
Lux
Regular
Posts: 764
Joined: Fri Aug 12, 2005 4:36 pm
Location: Grüt, Zürich, Switzerland
Contact:

[podcasting] invalid token

Post by Lux »

Hi!

Any ideas what that means?

http://feedvalidator.org/check.cgi?url= ... 2Fatom.xml

XML parsing error: <unknown>:49:64: not well-formed (invalid token)

Thanks for any hint

Dirk
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: [podcasting] invalid token

Post by Timbalu »

I would say the validator script is not God! ;-)
But I also would try to use <audio controls="controls" preload="none"> instead.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Lux
Regular
Posts: 764
Joined: Fri Aug 12, 2005 4:36 pm
Location: Grüt, Zürich, Switzerland
Contact:

Re: [podcasting] invalid token

Post by Lux »

Timbalu wrote:I would say the validator script is not God! ;-)
Agreed, but the guy writing Instacast for iOS mentioned that there are erros in the feed.
Timbalu wrote:But I also would try to use <audio controls="controls" preload="none"> instead.
This brings even more errors and warnings.

Cheers

Dirk
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: [podcasting] invalid token

Post by Timbalu »

Try to move things around between line 49 and 64. Maybe the closing audio tag and or the p tags...
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Lux
Regular
Posts: 764
Joined: Fri Aug 12, 2005 4:36 pm
Location: Grüt, Zürich, Switzerland
Contact:

Re: [podcasting] invalid token

Post by Lux »

Timbalu wrote:Try to move things around between line 49 and 64. Maybe the closing audio tag and or the p tags...
How?

This is copied from the plaintext of the article:

Code: Select all

<a href="http://archiv.radiotux.de/sendungen/radiotux/2012-02-29.RadioTux.Magazin.Februar2012.mp3">Februar-Sendung MP3</a>
<a href="http://archiv.radiotux.de/sendungen/radiotux/2012-02-29.RadioTux.Magazin.Februar2012.ogg">Februar-Sendung Ogg</a>
Dirk
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: [podcasting] invalid token

Post by Timbalu »

Try to disable the nl2p for audio tags or for the full entry (or use the extended instead).
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Lux
Regular
Posts: 764
Joined: Fri Aug 12, 2005 4:36 pm
Location: Grüt, Zürich, Switzerland
Contact:

Re: [podcasting] invalid token

Post by Lux »

Timbalu wrote:Try to disable the nl2p for audio tags or for the full entry (or use the extended instead).
Does not work either.

Audio can not be moved to extended, because the files have to appear in the feed.

Cheers

Dirk
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: [podcasting] invalid token

Post by Timbalu »

Not the extended entry part, the extended nl2br plugin...2.x

Did you really disable the nl2p plugin for this entry?

I think you need to get rid of the p class=break things here, to validate, e.g.

Code: Select all

<audio controls="controls" preload="none">
  <source src="/archiv.radiotux.de/sendungen/radiotux/2012-02-29.RadioTux.Magazin.Februar2012.ogg" type="audio/ogg" />
  <source src="/archiv.radiotux.de/sendungen/radiotux/2012-02-29.RadioTux.Magazin.Februar2012.mp3" type="audio/mpeg" />
  Your browser does not support the audio element.
</audio>
    <a href="http://archiv.radiotux.de/sendungen/radiotux/2012-02-29.RadioTux.Magazin.Februar2012.mp3">Februar-Sendung MP3</a><br />
    <a href="http://archiv.radiotux.de/sendungen/radiotux/2012-02-29.RadioTux.Magazin.Februar2012.ogg">Februar-Sendung Ogg</a>
 
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Lux
Regular
Posts: 764
Joined: Fri Aug 12, 2005 4:36 pm
Location: Grüt, Zürich, Switzerland
Contact:

Re: [podcasting] invalid token

Post by Lux »

Timbalu wrote:Not the extended entry part, the extended nl2br plugin...2.x
I can not find it on Spartacus.
Timbalu wrote:Did you really disable the nl2p plugin for this entry?
No, only for audio and source tags. There are around 2000 articles that use the plugin, I can not disable it completely.

Cheers

Dirk
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: [podcasting] invalid token

Post by Timbalu »

Lux wrote:I can not find it on Spartacus.
Well its not there, as delivered by core. You will find it in 1.7, but you have way to much entries to allow a change...
Lux wrote:
Timbalu wrote:Did you really disable the nl2p plugin for this entry?
No, only for audio and source tags. There are around 2000 articles that use the plugin, I can not disable it completely.
But if you use the entryproperties plugin you will become the ability to disable certain markup plugins by entry. Try that.

Your entry still seems to have <source> <a href> <source> <a href> maybe this has to be written like in my example...
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Lux
Regular
Posts: 764
Joined: Fri Aug 12, 2005 4:36 pm
Location: Grüt, Zürich, Switzerland
Contact:

Re: [podcasting] invalid token

Post by Lux »

Timbalu wrote:Well its not there, as delivered by core. You will find it in 1.7, but you have way to much entries to allow a change...
Ok.
Timbalu wrote:But if you use the entryproperties plugin you will become the ability to disable certain markup plugins by entry. Try that.
Done and no change ...
Timbalu wrote:Your entry still seems to have <source> <a href> <source> <a href> maybe this has to be written like in my example...
This is done by the Podcasting Plugin.

Cheers

Dirk
onli
Regular
Posts: 3044
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: [podcasting] invalid token

Post by onli »

Agreed, but the guy writing Instacast for iOS mentioned that there are erros in the feed.
Prevent they anything?

The invalid-token error points not to nl2p/nl2br, but to preload="none". If that is a valid token, there is no error and the validator is wrong (probably don't know that one). Or he chokes at the controls.

For testing, you could disable nl2br only for that entry via the extended property plugin, with the controls under the entry-editor.
Last edited by onli on Mon Mar 26, 2012 2:01 pm, edited 1 time in total.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: [podcasting] invalid token

Post by garvinhicking »

Hi!

Quite interesting, the "p" of "preload" seems differently colored in my editor. It seems that some hidden, invalid character appears there...

Check your podcastplayer configuration, there edit the "preload='none'" and re-type it again from scratch with a keyboard, no copy+paste.

After that, you first need to publish a new entry to make sure that your browser displays the most recent atom.xml, and nothing cached from the server.

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/
Lux
Regular
Posts: 764
Joined: Fri Aug 12, 2005 4:36 pm
Location: Grüt, Zürich, Switzerland
Contact:

Re: [podcasting] invalid token

Post by Lux »

onli wrote:Prevent they anything?
We already removed some errors, which prevented Instacast from downloading.
onli wrote:For testing, you could disable nl2br only for that entry via the extended property plugin, with the controls under the entry-editor.
Did that.

Cheers

Dirk
Lux
Regular
Posts: 764
Joined: Fri Aug 12, 2005 4:36 pm
Location: Grüt, Zürich, Switzerland
Contact:

Re: [podcasting] invalid token

Post by Lux »

garvinhicking wrote:Check your podcastplayer configuration, there edit the "preload='none'" and re-type it again from scratch with a keyboard, no copy+paste.
Did it, no change.
garvinhicking wrote:After that, you first need to publish a new entry to make sure that your browser displays the most recent atom.xml, and nothing cached from the server.
Even removing all tags did not solve the problem.

Cheers

Dirk
Post Reply