Skip Navigation

[Resolved] The user form zip is malformed

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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by steffenM 2 years ago.

Assisted by: Luo Yang.

Author
Posts
#2532815
Bildschirm­foto 2023-01-12 um 11.23.23.png
Bildschirm­foto 2023-01-12 um 11.24.45.png

I am trying to:

I have a local development environment and a remote dev/staging environment. I want to export locally created user forms and import them on the staging system.

The export works ok. I get a .xml.zip file. But I can not import this file on the staging system.
I get a "Fatal error: Uncaught Error: Invalid or uninitialized Zip object" error.

I tried to open the downloaded zip file from the dev system locally and receive the following error:

$Downloads unzip mallorca-reisefhrer-all-user-forms-2023-01-12.xml.zip
Archive: mallorca-reisefhrer-all-user-forms-2023-01-12.xml.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of mallorca-reisefhrer-all-user-forms-2023-01-12.xml.zip or
mallorca-reisefhrer-all-user-forms-2023-01-12.xml.zip.zip, and cannot find mallorca-reisefhrer-all-user-forms-2023-01-12.xml.zip.ZIP, period.

I run on WP 6.1.1. and have all Toolset plugins updated.

#2533497
export-user-form.jpg

Hello,

I have tried it in a fresh WP installation + the latest version of Toolset plugins, I can export/import the user forms without any problem, see my screenshot.

Test site Login URL:
hidden link

There might be some compatibility issue in your local development website, please try these:
Deactivate all other plugins, and switch to WordPress default theme 2022,and export the user form and test again

#2535295

Ok, to be honest: I should have made this checks before opening the ticket.

So I now figured out, that it has something to do with the child theme I created. Once I deactivate the child-theme, the export works fine.
So far I cold not figure out, why the zip is malformed... but it is definitively related to my code.

Nevertheless,
thank you for your support 🙂