I searched and read the faqs. I have downloaded the zip.exe file from Info-Zip and cannot get gallery to accept it. I continue to get the following message:
Unable to create a zip file from this binary
Thanks for your help.
<Please check the G2 FAQ (sticky topic in this forum) before posting!>
----
Gallery URL (optional):
Gallery version:Gallery2 Dark Fibre
Webserver (with version):Apache
Datatabase (with version):MYSQL
PHP version (eg 4.2.1):
phpinfo URL (optional):
Graphics Toolkit(s):
Operating system:W2K
Web browser/version:IE
G1 version (for migration bugs):
Posts: 8601
open a command prompt and run zip.exe
does it seem to work correctly?
try: zip.exe test.zip somefile
but replace "somefile" with an actual filename that exists. that is basically what the module does to check if the binary is valid.. it runs that and makes sure test.zip exists afterward.
Posts: 61
Thanks for the reply. Did what you suggested and got the following:
C:\Info-Zip>zip.exe test.zip todo.txt
zip warning: TZ environment variable not found, cannot use UTC times!!
adding: todo.txt (deflated 6%)
The zip file was created and it's valid and contains the correct file and information.
Also, if it matters, it's zip 2.3 from Nov of 99.
Thanks again!
Posts: 8601
sorry, forgot to mention it checks if the test.zip is created and that the zip program did not return an error code. i think that TZ warning is causing zip to return an error code, so you should resolve that problem.
Posts: 61
So, could it be that I have an AMD processor and these are all compiled for Intel?
Posts: 32509
google for the TZ issue.
a AMD vs. intel issue is very very unlikely.
Posts: 61
Thanks. I've been googling like crazy with no luck. Most of the posts say just to ignore the error and no one that I've found comes up with a solution. I'm giving it a break for now. If I figure something out, I'll post back.
Thanks again.
Posts: 61
Got it. For some reason, I needed to set the TZ variable in Windows:
http://science.ksc.nasa.gov/software/winvn/userguide/3_1_4.htm
Just added a line to my autoexec.bat file and rebooted.
Thanks for helping me brainstorm.
Posts: 1023
Have you tried
Just an idea from an old project I was involved (PGP)
Lutz
Posts: 61
Thanks. That same solution is what I mentioned above.
Posts: 1023
hehe, cool ... the timestamp showed I was typing my message at the same time as you did type yours ;)
Posts: 1
Although this thread has been dormant for a while, I thought I'd add a brief comment.
Not all PCs have the autoexec.bat file anymore. You can add it, but this solution is a bit out of date now. In order to set this environment variable on Windows XP or some other similar OS...
1. Right-click on my computer and choose Properties
2. On the Advanced tab, click the Environment Variables button.
3. Create a new System Variable called TZ and enter your value from LFrank's post above.
4. Click OK to close out all dialogs.
Your environment variable is active immediately, no need to reboot.