Search

Hey Guys! Been trying to run an import using this feed: http://decoderring.libsyn.com/rss with no success, although I have been able to import from an XML file made from a MySql export. The feed is for a podcast if that matters. Below is a shot of the setup and error. Let me know if there is anything I can add to help explain this better. Thanks!

Setup

Error

The error states:

Namespace prefix media on element thumbnail is not defined

You seem to have the media namespace prefix defined, so perhaps this is an XML Importer bug.

This is the first match of invalid namespaces <media:thumbnail url="http://assets.libsyn.com/item/1977334" />

The namespace is declared as media when in fact it should be thumbnail, so the RSS document is actually invalid from a namespace perspective.

Try changing this namespace to thumbnail in your importer and see if it works. Failing that, get in touch with where the RSS came from and point it out to them.

I should not try and help when still half asleep in the morning.

Ok, well thanks for taking a look guys, I'm not equipped to fix this myself so I take it I'm stuck until the bug is fixed?

Hm the screenshot shows some weird stuff on the far right side. Maybe the backend accidentally shows two different forms that are interfering with each other.

Can you take a look at the PHP component (workspace/xml-importer/*) to see if the namespaces are actually there?

Ah, scratch that, seems to be a simple glitch in your screenshot.

@adamspruijt - The key is cleaning up the RSS feed before trying to import it in.

Here's some XSLT that I used to clean up the feed for you.

  • XSLT
  • Result XML (which should be very Symphony XML Importer friendly)

Steps to clean up your RSS feed and use it with XML Importer.

  1. Setup a Dynamic Datasource pointing to http://decoderring.libsyn.com/rss
  2. Create a new Symphony page (as type XML). Copy and paste the XSLT (linked to this post) and append the Dynamic Datasource to your newly created page.
  3. In the XML Importer, use your newly created page url as your XML Importer Source URL. Then select your destination section and map your fields accordingly.

@bzerangue

Thanks for the tips !

@bzerangue

Wow, buddy! Thank you. So clever, I LOVE the idea that Symphony can act as a sort of RSS "sanitizer", so awesome, and now looking at it, it seems so clear. Tops my friend, just another of the many eureka moments since jumping into Symphony!

@vladG and @adamspruijt

Glad it was helpful.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details