• Hi everyone!
    I just installed the latest version of WordPress (3.6.1) and I want to import the theme unit test data. So I create a new XML document that I named “theme-unit-test-data.xml”, copy/paste the code into it from there, activate the wordpress importer plugin and finally select my XML file and click on import. Unfortunatelly it didn’t work at all. Here is the issue I got:

    Notice: Undefined offset: 1 in C:\wamp\www\wordpress\wp-content\plugins\wordpress-importer\parsers.php on line 430
    Call Stack
    #	Time	Memory	Function	Location
    1	0.0011	461224	{main}( )	..\admin.php:0
    2	1.3959	26700464	call_user_func ( )	..\admin.php:204
    3	1.3959	26700464	WP_Import->dispatch( )	..\admin.php:204
    4	1.4084	26706232	WP_Import->handle_upload( )	..\wordpress-importer.php:83
    5	1.4617	26716736	WP_Import->parse( )	..\wordpress-importer.php:205
    6	1.4617	26716880	WXR_Parser->parse( )	..\wordpress-importer.php:1026
    7	1.4723	26719632	WXR_Parser_Regex->parse( )	..\parsers.php:48

    and so on, the page is full of these tables.

    It really bothers me because I need these datas to run my tests.

    Does anyone have an idea of the issue? I have no idea if I’m doing something wrong.
    Thanks in advance

Viewing 14 replies - 1 through 14 (of 14 total)
  • So I create a new XML document that I named “theme-unit-test-data.xml”, copy/paste the code into it from there,

    Why? You just need to upload the theme-unit-test-data file itself.

    Thread Starter idvisionstudio

    (@idvisionstudio)

    I don’t have a file, when I click on the link from WordPress to get the file, it opens a new tab with the code in plain text:
    https://codex.www.ads-software.com/Theme_Unit_Test

    Try right-click and “Save link as…”.

    Thread Starter idvisionstudio

    (@idvisionstudio)

    It’s very odd but it worked! Thanks a lot esmi ??

    I just got a long list of failure, is that normal?

    Failed to import Media “spectacles”
    Failed to import Media “canola2”
    Failed to import Media “dsc20050315_145007_132”
    Failed to import Media “dsc20050727_091048_222”
    Failed to import Media “dsc20050813_115856_52”
    Failed to import Media “Bell on Wharf”
    Failed to import Media “Golden Gate Bridge”
    Failed to import Media “Sunburst Over River”
    Failed to import Media “Boardwalk”
    Failed to import Media “Yachtsody in Blue”
    Failed to import Media “Rain Ripples”
    Failed to import Media “Sydney Harbor Bridge”
    Failed to import Media “Wind Farm”
    Failed to import Media “Antique Farm Machinery”
    Failed to import Media “Orange Iris”
    Failed to import Media “Rusty Rail”
    Failed to import Media “Sea and Rocks”
    Failed to import Media “Big Sur”
    Failed to import Media “Windmill”
    Failed to import Media “Huatulco Coastline”
    Failed to import Media “Brazil Beach”
    Failed to import Media “Huatulco Coastline”
    Failed to import Media “Boat Barco Texture”
    Failed to import Media “dsc20040724_152504_532”
    Failed to import Media “dsc20050604_133440_3421”
    Failed to import Media “St. Louis Blues”
    Failed to import Media “OLYMPUS DIGITAL CAMERA”
    Failed to import Media “Image Alignment 580x300”
    Failed to import Media “Image Alignment 150x150”
    Failed to import Media “Horizontal Featured Image”
    Failed to import Media “I Am Worth Loving Wallpaper”
    Failed to import Media “Image Alignment 300x200”
    Failed to import Media “Vertical Featured Image”
    Failed to import Media “Image Alignment 1200x4002”
    Failed to import Media “Unicorn Wallpaper”
    Failed to import Media “triforce-wallpaper”
    Failed to import Media “dsc20040724_152504_532”
    Failed to import Media “dsc20050604_133440_34211”

    No – it’s not. Looks like your install in not importing any images. I’ve just re-checked some of the image urls in the file and they are all fine. Are you sure your install has full web access?

    Thread Starter idvisionstudio

    (@idvisionstudio)

    Sorry I’m a newbie in WordPress, how can I check this? I also need to add I’m working locally if it matters.

    [Moved to Localhost Installs]

    You need to ensure that your local server can access other sites outside of your local network.

    Thread Starter idvisionstudio

    (@idvisionstudio)

    Oh I see, I’m working on windows with Wamp, so I should put Wamp online, is that what you mean?

    No – you cannot put WAMP online but you need to check that it is configured so that Apache/PHP can access external sites.

    Thread Starter idvisionstudio

    (@idvisionstudio)

    Could you show me how to do please? If it’s too much complicated to explain I will check by myself another time

    Your best bet is try asking on a forum dedicated to your server software.

    Thread Starter idvisionstudio

    (@idvisionstudio)

    ok thank you for your help esmi

    I have the same problem,

    I am using XAMPP on windows, wordpress is 4.0 but I face this problem on 3.9 and 3.8.

    I downloaded the xml file by right click and save as. it is xml file with xml file icon.

    I used wordpress imported all the pages, categories, users, comments (pages only) are imported. there are all the attached files but only posts are missing.

    i did this many time by reseting the database and did it again and again all the time posts are not imported.

    I also increased the file upload limit to 100mbs

    I also tried this on mamp beta on windows, and I also tried windows 7 and 8 the problem is not solved.

    Please help.

    Hello @aamer,
    theme-unit-data-text.xml file is core of all theme testing. I have a repository on github.com. You need to download zip archive and have to follow HOW-TO complete description.
    All you need to follow those steps, and your are good to go in no time.
    Remember, you need a fresh installation for importing xml.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Issue importing theme unit test data’ is closed to new replies.