Hi there, I was sure I had already submitted this issue, but I can' t seem to find it in the forums anymore and therefore am posting this again. I've been using types and views for a while now and love it. However, I am currently moving my site and would therefore like to take advantage of the export and import feature.
When I run the export in either views or types, all I get is an empty, 0kb zip file. I am sure there is some kind of server setting that might be causing that but I have no clue where to start looking, as there is no entry in the error_log...
I use the latest version of WP, Views and Types, with PHP Version 5.3.18, maybe it's noteworthy I have Suhosin v0.9.33 installed, but it usually doesn't create any errors around downloading ZIP files etc...
Anyway, appreciate any pointing into the right direction!!
Just a note, I read this article hear speaking about "ZIPARCHIVE".
https://toolset.com/forums/topic/embedded-types-and-views-export-zip/
I checked in my PHPInfo and ziparchive is not available. Coudl that be the issue? Why do views and types not use more common compression tools, like zip, bz2 or gzip?
Dear Sanny,
This library should be enabled by default on new PHP installations. Can you talk to your hosting provider about enabling this extension for you?
Please let me know if you are satisfied with my answer and if I can help you with any other questions you might have.
Regards,
Caridad
So far my ISP hasn't answered ont he query yet.
My apologies for cross-posting, as I posted this here:
https://toolset.com/forums/topic/export-types-data-downloads-empty-zip-file/
Dear Sanny,
This means that you have safe_mode enabled in PHP and you can only access files in certain directories. To resolved this you need to add the path /tmp to the list of allowed paths in php.ini. Maybe your hosting provider need to do this, it depends on your type of hosting:
hidden link
Please let me know if you are satisfied with my answer and if I can help you with any other questions you might have.
Regards,
Caridad
Thanks, I resolved it by changing the tmp path in your PHP files.