Support » Themes and Templates » Theme Unit Test Failing

  • Someone may want to check the theme unit test xml and associated media…twice I’ve tried to import it and I am getting tons of failed items. I’ve used this before for my theme testing, although there are “always” some failed imported elements”, this time after updating to the latest import plugin, I now get this:

    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import post tag
    Failed to import
    Failed to import
    Failed to import Media “dsc20040724_152504_532”
    Failed to import Media “dsc20050604_133440_3421”
    Menu item skipped due to invalid menu slug: short
    Menu item skipped due to invalid menu slug: short
    Menu item skipped due to invalid menu slug: short
    Menu item skipped due to invalid menu slug: short
    Menu item skipped due to invalid menu slug: short
    Menu item skipped due to invalid menu slug: short
    Menu item skipped due to invalid menu slug: short
    Menu item skipped due to invalid menu slug: all-pages
    Menu item skipped due to invalid menu slug: all-pages
    Menu item skipped due to invalid menu slug: all-pages
    Menu item skipped due to invalid menu slug: all-pages
    Menu item skipped due to invalid menu slug: all-pages
    Menu item skipped due to invalid menu slug: all-pages
    Menu item skipped due to invalid menu slug: all-pages
    Menu item skipped due to invalid menu slug: all-pages
    Menu item skipped due to invalid menu slug: all-pages
    Menu item skipped due to invalid menu slug: all-pages
    Menu item skipped due to invalid menu slug: all-pages
    Menu item skipped due to invalid menu slug: all-pages
    Menu item skipped due to invalid menu slug: all-pages
    Menu item skipped due to invalid menu slug: all-pages
    Menu item skipped due to invalid menu slug: all-pages
    Menu item skipped due to invalid menu slug: all-pages
    Menu item skipped due to invalid menu slug: all-pages
    Menu item skipped due to invalid menu slug: all-pages
    Menu item skipped due to invalid menu slug: all-pages

    Anyway, I will have to wing it and hope my new theme Encounters will pass because I am unable to test themes now. Cross fingers!

Viewing 15 replies - 1 through 15 (of 19 total)
  • Confirmed. I’ll report this to the relevant people.

    Thread Starter Styled Themes

    (@gejay)

    Awesome…thanks esmi.

    OK – someone is on it. Seems that the current XML export is out of sync with the current data. I’d suggest trying again in a day or so.

    Thread Starter Styled Themes

    (@gejay)

    Great…I will try again in a couple days. Thanks 🙂

    If you need it in the meantime, I have a copy of the previous theme unit test data file. Jut drop me a line and I’ll send it to you (click on my name for contact details).

    Thread Starter Styled Themes

    (@gejay)

    now that would be cool, thanks. I just emailed your black widow contact email 🙂

    Check your mail. 🙂

    Thread Starter Styled Themes

    (@gejay)

    Got it! You’re the best! thanks…now I can test my next new theme for submission 🙂

    I’ve also been unable to do an import. The images aren’t importing in addition to the post tags.

    There are two problems occurring. Firstly there are parse errors in the XML:

    640:32 Namespace prefix atom on link is not defined

    641:21 Namespace prefix atom on link is not defined

    3513:8 Opening and ending tag mismatch: postmeta line 3508 and item

    5646:13 Opening and ending tag mismatch: item line 3487 and channel

    5647:7 Opening and ending tag mismatch: channel line 22 and rss

    5648:1 Premature end of data in tag rss line 21

    This causes the proper XML parsers to fail and fallback to the regex parser.

    This fails to import tags because the export has more nicely formatted tags, categories, authors, etc. which the regex parser cannot handle since they’re not just one line.

    This appears to all be WP.com specific behaviour so they might have to fix some stuff on their end. (There is a bug in the importer which means that tags only fail to report as failed and not authors + categories).

    @jon Cave What is the second issue (if first is malformed XML file)?

    I’m looking at the XML file today, will update it with a correctly formed version.

    New version of XML file uploaded: http://codex.wordpress.org/Theme_Unit_Test

    Thread Starter Styled Themes

    (@gejay)

    Awesome… I will try this new theme unit test out. Too late for my Encounters Lite theme as I had to take my best shot at it to submit it, lol 🙂

    But I will try this new unit test on my local xampp setup.

    By the way, who decides on what goes into and how the unit test consists of and how it looks? Any chance I can submit my own interpretation of one (if I made one)?

    This set is authored by the Theme Review Team: http://make.wordpress.org/themes/

    I’d suggest making your own set anyway (which is what most of us do). Start with this as the beginning, then add all your own test data as you see fit. The more the better. 🙂

    Thread Starter Styled Themes

    (@gejay)

    Thanks Lance…I think I will do that then.

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Theme Unit Test Failing’ is closed to new replies.