Skip Navigation

[Resolved] Unable to import Views zip/XML file

This thread is resolved. Here is a description of the problem and solution.

Problem: I am trying to import a Views export file into another site, but I get an error message that says "The XML file could not be read".

Solution: This particular case includes some custom image sizes attached to a test template. The custom image sizes produce invalid XML structure. Deleting the test template solves this issue.

This support ticket is created 4 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 5 replies, has 2 voices.

Last updated by wimD-2 4 years, 1 month ago.

Assisted by: Christian Cox.

Author
Posts
#1873849

I am trying to: Import Views

Link to a page where the issue can be seen: admin.php?page=toolset-export-import&tab=wpv-views

I expected to see:

Instead, I got: The XML file could not be read.

#1874779

Hi, can you provide a link where I can download this importable file and run some additional tests? You can upload the file to Drive or Dropbox and provide a download link here in your next reply. Any URL you share here in the forum will be hidden from public view for your privacy.

#1874853

Hi Christian

Thank you for your reply. You may download the file here: hidden link

Thank you for your help!
Best regards,
Wim

#1874925

Okay thank you, I have extracted the XML file from that archive and I see a problem here:

<on_post_content_sizes>
                        <1536x1536><em><u>hidden link</u></em>;
                        <2048x2048><em><u>hidden link</u></em>;

This export information seems to be related to a Loop Content Template called "Loop item in Test-2". It seems that there are two custom image sizes "1536x1536" and "2048x2048" for its attachments. Those two custom sizes are producing invalid XML markup, since an XML tagname cannot begin with a number. Is this loop template necessary to export and import? I see it seems to be related to something called "Test-2", so that leads me to believe it might just be test data. If so, you can delete the Content Template (ID 216), and the problem should no longer occur. On the other hand, if this template is necessary, we might need to investigate these two custom image sizes to see if they can be adjusted to create more valid XML structure here. Can you tell me more about these two custom image sizes? Do you know how they were created?

#1876623

Hi Christian

Thank you for your insights. I'm not sure how those two custom image sizes were created. Those content templates were indeed a test. After that, the same problem did not occur in any other template. I've chosen for the option to delete the template causing the issue and the problem has gone along with it.

Thank you for your help!
Best regards
Wim

#1876625

My issue is resolved now. Thank you!