• Resolved WP-Spezialist

    (@wp-spezialist)


    Thanks to webaware for this fantastic Plugin, but when I try to download the choosen images I get the Error “Can′t create ZIP Archive”.

    I tried to figure out where this tmp-Folder should be, but nothing helped, not in the root, not in wp-content, not in the plugin-Folder…

    So please tell me where I should create this tmp-Folder to make the download work- or which folder must be writeable so that the plugin can create it

    Thanks a lot!

    https://www.ads-software.com/extend/plugins/nextgen-download-gallery/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author webaware

    (@webaware)

    G’day, the plugin uses the PHP function sys_get_temp_dir() to find where to put the temporary file. If you are getting this error, you probably need to configure PHP to use a folder it can write to.

    What is the full path to the temporary file that it says it can’t create? And are you on Windows, Linux, UNIX, …?

    cheers,
    Ross

    Thread Starter WP-Spezialist

    (@wp-spezialist)

    Thanks for your reply!

    It doesn′t tell me the full path. It′s just “Can’t create ZIP archive: /tmp/[some random letters]”

    I′m on a Linux-Server and it′s a V-Server, I think this is the problem, I have to configure things like this on my own (maybe a standard webhosting is preconfigured). phpinfo() told me a “not set”-value for the temp-folder, have to ask my hoster how to set this value.

    I tried to change sys_get_temp_dir() to get_temp_dir() in plugin-Code and defined a temp-folder in wp-config but without success.

    Plugin Author webaware

    (@webaware)

    G’day, looking at get_temp_dir() in the WordPress code, you can specify where you want temporary files to be written by defining the constant WP_TEMP_DIR in your wp-config.php file. I’ll release a new version in a few minutes that uses get_temp_dir() instead of the PHP system call, so use that and set that constant to where you want temporary files to be written.

    Edit: OK, so I’m pre-caffeinated and didn’t read that’s exactly what you did ?? but there’s a new version about to hit www.ads-software.com and it tells you more about the error too which might help.

    cheers,
    Ross

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: NextGEN Download Gallery] Can't create ZIP archive: /tmp/…’ is closed to new replies.