Skip Navigation

[Resolved] I get an error importing an exported Types data file

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 7 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
- 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 -
- 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 7 replies, has 2 voices.

Last updated by Noman 7 years, 5 months ago.

Assisted by: Noman.

Author
Posts
#534495

I am trying to: Export Types data and import it on a different installation

I visited this URL:

I expected to see: data imported

Instead, I got: “It's not possible to open the zip file”

It seems the ZIP file created by my local install may be corrupted. I can't decompress it either.

#534706

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi Alvaro,

Thank you for contacting Toolset support. It could be a conflict between other 3rd party plugins and Toolset. As a test, temporarily disable all non-Toolset plugins and activate a default theme like Twenty Seventeen. Attempt the export and import process again.

1. Please use Toolset Module Manager to export and import toolset modules, you can download it here:
https://toolset.com/download/toolset-module-manager/
Doc: https://toolset.com/documentation/user-guides/using-toolset-module-manager/

OR To Import/Export Toolset data, we have a doc here: https://toolset.com/documentation/user-guides/how-to-importexport-types-structures/

2. We have another client who had the similar issue and was also able to solve it, this may help in your case, the known solutions mentioned here:
https://toolset.com/forums/topic/import-from-localhost-to-live-site-failed/
https://toolset.com/forums/topic/import-error-cannot-open-zip/

Thankyou

#534812

I had to disable all my other plugins and change to the default theme to be able to export a valid .ZIP file.

Nevertheless, I couldn't import it to the online site. I get these list of errors:

Erro ao analisar XML [Error analizing XML]
StartTag: invalid element name
expected '>'
Opening and ending tag mismatch: custom_fields line 1306 and unparseable
Opening and ending tag mismatch: type line 1279 and custom_fields
Opening and ending tag mismatch: types line 1278 and type
Extra content at the end of the document
Dados não são válidos [Data is not valid]

Thanks.

Álvaro

PS: If you want to take a look at the ZIP file, let me know. I posted the Dropbox link here but maybe that's not a good idea… 😉 so I deleted it.

#534839

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hello Alvaro,

On the online site where you are importing zip file, have you also tried to disable plugins and switch to default theme there as well? Might be some plugin or theme interrupting the import process.

The error seems telling that the xml code tags are not closed or they are mixed up some how. In the extracted ZIP file you should see an XML file. Copy the contents of the XML file and paste them into an XML validator like hidden link and verify that you have a properly formatted XML document, so please check this as well and then we can go ahead to debug further.

Thank you

#538738

Hi,

Sorry for the delay. I have been out of the office for WordCamp Europe, just resumed the project today.

I'm getting the same errors with default theme and all plugins disabled (except Types).

The hidden link validator finds the same errors as above (see screen: hidden link).

#539040

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hello Alvaro,

Looks like your exported file is corrupt, can you please again export the file and then try to import?

If still issue exists, then please send me exported file (using dropbox or google drive) and I will try to import the same file at my end.

Thank you

#539113

Hi Noman,

The problem persists. You can find the created ZIP file exported from the local site here: hidden link

Let me know your findings.

Thanks.

#539652

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hello Alvaro,

I have thoroughly checked the issue and found that the problem is only in this custom field tag:

<custom_fields> <1>wpcf-informacao</1> </custom_fields>

After removing above tag, I had successfully import the file and everything worked as expected. Below you will find the modified file that I used to import data successfully, so you can try that:
hidden link

The above custom field appears to be coming from some other plugin or theme because Toolset Types custom fields are stored within this tag <_wp_types_group_fields> </_wp_types_group_fields>

Thank you

The forum ‘Types Community Support’ is closed to new topics and replies.