Hi Guys - does anyone else get an empty Zip when they try to download big pictures from their site - if anyone had a fix for it i'd be soooooo grateful!!
I can't get my zip to work at all... everything else works fine though it's odd. I'm using the Version 3.0 Beta... Is anyone else having the same issue?
Hi Bilel - please can you give me more information as i'm pretty naive when it comes to scripting etc - if you could spell it out to me that'd be great!
You need to create a file in a plain text editor with the following code in it: <?php phpinfo(); ?>
Save it as phpinfo.php, upload it to the root directory of domain where your gallery is installed, then display it in your browser (http://www.yourdomain.tld/phpinfo.php). It will give you the php configuration of your server.
Scroll down to the section called zip and see if the first line says that it is enabled on your server. If it is enabled, also get the Zip version and Libzip version, and post those results here.
Thanks dhdesign for your help - zip is enabled but gives no details of its version. It does, however, list a BZip2 version of 1.0.3, 15-Feb-2005. Also it lists no Libzip version but does give a ZLib support version of 1.2.3. Zlib.output_compression is off, zlib.output_compression_level is -1 and zlib.output_handler has no value. Is this any help....?
My host is 1and1 developer with no section for zip other than these (it's linux)
bz2 BZip2 Support Enabled BZip2 Version 1.0.2, 30-Dec-2001
zlib ZLib Support enabled Compiled Version 1.2.1 Linked Version 1.2.1
Any ideas as to why downloads might not work even though I have it enabled in the administration panel? I don't get a pop up for zip files or anything like I do on http://plogger.org/demo/?level=album&id=7
I discovered the issue is with the native themes that come with plogger3 beta (they didn't allow for pic downloads from the webpage even when downloads is selected in the administrative panel). I tried some of ardamis's themes and plogger compiled selected pics into zip format no problem. Thanks Ardamis
Would really suggest to the admins taking a lot of the FAQ's on here into one section so the problems aren't asked a million times in the forums as I see they are. I'm sure some people on here probably get tired of answering the same old questions but over time people wonder if those answers still apply currently.
Did you try his newest one's? The old ones didn't work for me until I tried the newer beta versions including air beta and broadway beta... nothing else worked
Amanda - have you been successful with a smaller zip download with just a few small images, with a total download size under 2mb? It's possible that your webhost has set resource limits, and the script is exceeding those limits, and times out while trying to create the large zip download.
If that is the case, that isn't a problem with Plogger but with your host. You may have to talk with them about what is happening and see what limitations they have in effect for your server.
Whoops neglected to see the filesize situation there. It has to definitely be your host on that because unless you changed the file size there's no way it's going to stop larger files. I'm using 1&1 which isn't the best but they're seriously cheap to use
Thanks again guys for your help - small images download fine so I upgraded my hosting package to one that gives me shed loads of available memory and space, but still no joy. I'll speak to them again about it (Webfusion), but frankly they are very very unhelpful!
seriously the broadway beta was the only thing that worked for me. It has to be the BETA version of broadway and Air or it won't work. The Air theme for previous ploggers does not allow for downloads at all (not sure what it is).
Oddly I have found that I can download if I am using Firefox but not if I am using IE. I'm just about to try Adam's theory and install the Beta version of Broadway. Anyone else found this as a browser specific problem?
**update** The download facility does indeed work in the beta version of Broadway when using IE. I will have a look at the basic template when I get a chance and see if I can spot the difference. However, am out of the office next week.
I've just had a go downloading through Firefox - still no joy for files over about 15mb - it keeps coming up as an error in plog-download.php on line 148....
I've done some digging on the web regarding this too and it doesn't seem to be a problem with Plogger, but happens with the zip download class that Plogger uses (ziplib by Eric Mueller). There are plenty of people out there experiencing the same thing when using the zip class for direct downloading (i.e. creating a zip file that is being output directly for download and not stored physically on the drive). Unfortunately, there also doesn't seem to be anyone that has found a way around it (or necessarily a better one either) besides upping your php memory_limit (sometimes up to 500MB!). There is a php class that I found that looks to work in a different manner that I am going to try messing with, but it may have just the same problems as previous ones.
Also, I haven't been able to duplicate the error on my server (even setting my memory_limit to 2M), but I don't have that many pictures. If I come up with something, I'll let you know. If anyone else comes up with something, let me know too.
Well done for highlighting the 'Eric Mueller' problem - it's saves us all assuming the problem is within the plogger code or a hosting problem. I'll keep digging away...
Well, I played around with the existing Eric Mueller class a little, but I didn't come up with anything extremely insightful. However, I do have a few test edits that may try to solve some problems. I've uploaded the tests here. I have tested them on my server and they all work (although it worked on my server before anyway, so it doesn't really mean anything :P ). Since I cannot duplicate the error on my server (yet), feel free to try them out (but make sure to make a backup copy of the original plog-download.php file first!). Let me know if anything works (or at least works *better*).
I'll keep looking around too, but the other zip classes I've found don't seem to work well across all OS's (some have separate files for Windows vs. Linux vs. Mac) and none of them are guaranteed to work any better than the Eric Mueller class (they use this for the Zend library for goodness sakes! :p ).
Anyway, good luck and let me know if any of them work! :)
Sid, you're a genius! Version 5 of your tests works extremely well - I can zip a file upto 42mb, beyond that it comes up error, but maybe that's down to my php memory limit (it's set at 'use everything available' but I can't remember what my package allows) - any road up, not many picture files or collections of images go beyond 42mb, so i'd imagine it will solve the majority of most peoples problems. Well done and thanks,
All #5 does is up your php memory_limit! :) I think you have it set to the max in your php.ini file, but then the plog-globals.php functions neck it back down to 64MB with it's own ini_set function. All I did was up it back to 500MB in the plog-download.php file.
As to anything over 42MB, can you tell me what the error is that you get? I'm wondering if the max_execution_time needs to be upped as well since the larger the file is, the longer the script will run too. If you can narrow down what the error is, I can take a look at altering the ini settings for the plog-download.php script only (the rest of your site and scripts will be what they normally are).
Hi Sid - unfortunately the error is difficult to quantify as one just gets the standard "The page cannot be displayed The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings" etc etc. ie. no information or error code is generated. Incidentally, in Safari you get "Safari can’t open the page because the server unexpectedly dropped the connection, which sometimes occurs when the server is busy. You might be able to open the page later". Sorry to be so vague....