I'm trying to get the Zip Download Module going on my Gallery2 server.
As a zip binary i've installed the 7-Zip in "C:\Program Files\7-Zip\7z.exe".
By entering this path in the Zip Path its recognized but gives an error:
"Unable to create a zip file from this binary".
The following is a debug output that might help:
copy(C:\Inetpub\wwwroot\gallery2\modules\zipcart\ZipCartAdmin.inc,
D:\Websites\Gallery\g2Data\tmp\zip147B.tmp)
getParameter permissions.file for core plugin
getParameter permissions.directory for core plugin
Executing: cmd /c " "C:\Program Files\7-Zip\7z.exe"
"D:\Websites\Gallery\g2Data\tmp\zip147B.tmp.zip"
"D:\Websites\Gallery\g2Data\tmp\zip147B.tmp" 2>
"D:\Websites\Gallery\g2Data\tmp\g2d147C.tmp" "
getParameter exec.expectedStatus for core plugin
file_exists(D:\Websites\Gallery\g2Data\tmp\g2d147C.tmp)
filesize(D:\Websites\Gallery\g2Data\tmp\g2d147C.tmp)
unlink(D:\Websites\Gallery\g2Data\tmp\g2d147C.tmp)
Regular Output:
Error Output:
Status: -1 (expected 0)
Anyone who can explain whats is wrong here?
Regards
Jastro
Posts: 16504
Windows, IIS, take your pick
Try these zip binaries:
http://codex.gallery2.org/Gallery2:Installing_Modules_With_External_Dependencies
Ah, looks like some of those links on the info-zip.org page don't work anymore, try this link, looks like there are some Win32 binaries for the zip program in there:
ftp://ftp.info-zip.org/pub/infozip/win32/
____________________________________________
Like Gallery? Like the support? Donate now!
Posts: 5
Thx for your links, got the binaries but still no success.
No matter what binary I try it comes ut with the same error.
Like this:
As a zip binary in "C:\Program Files\Zip\zip.exe".
By entering this path in the Zip Path on the IIS server its recognized but gives an error:
"Unable to create a zip file from this binary".
The following is a debug output that might help:
copy(C:\Inetpub\wwwroot\gallery2\modules\zipcart\ZipCartAdmin.inc,
D:\Websites\Gallery\g2Data\tmp\zip690.tmp)
getParameter permissions.file for core plugin
getParameter permissions.directory for core plugin
Executing: cmd /c " "c:\program files\zip\zip.exe"
"D:\Websites\Gallery\g2Data\tmp\zip690.tmp.zip"
"D:\Websites\Gallery\g2Data\tmp\zip690.tmp" 2>
"D:\Websites\Gallery\g2Data\tmp\g2d691.tmp" "
getParameter exec.expectedStatus for core plugin
file_exists(D:\Websites\Gallery\g2Data\tmp\g2d691.tmp)
filesize(D:\Websites\Gallery\g2Data\tmp\g2d691.tmp)
unlink(D:\Websites\Gallery\g2Data\tmp\g2d691.tmp)
Regular Output:
Error Output:
Status: -1 (expected 0)
Does this tell you or anyone something?
What does "Status: -1" tell me other than its an error..?
Regards Jastro
Posts: 16504
Try putting the zip binaries in a path with no spaces: c:\zip\zip.exe
Then add that path to the system's PATH environment variable
Also make sure that the IIS user has access to that location and execute permissions on the binaries.
If that still doesn't work, you'll need to sit on the command line and try seeing if you can recreate the issue and debug and trouble shoot. This is one of the huge reasons we don't support Windows for Gallery 3. Getting stuff like this working never works "out of the box" and is always a PITA.
____________________________________________
Like Gallery? Like the support? Donate now!
Posts: 5
Thanks for your advice, but again no success..
I'll try debugging a bit more, but it seems that i'm running in to lots of similar issues with gallery2.
I guess its because you didn't care too much about making it run on windows box'es in the first place.
Its a pitty, because Gally is a great program with lots of options and tweeks.
Thnks for trying to help anyway.
Regards
Jastro