Download complete album als ZIP - Page 3 Download complete album als ZIP - Page 3
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Download complete album als ZIP

Started by Finswimmer, January 18, 2012, 09:33:00 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

fersauce

Yesterday I upgrade to the last Coppermine version and now this pluging doesn´t works. Can you help me?

Tatome


fersauce

I get this message from the firefox

Not Found
The requested document was not found on this server.

Web Server at h1989637.stratoserver.net

Do you need something else?

Tatome

Hmm...  That doesn't ring a bell.

Is this an apache server?

When you try to download a zip file for an album with a lot of pictures, do you get the message immediately, or does it take some time?

Does the plugin for downloading favorite pictures as zip file work?

fersauce

Yes it´s an apache server.

The pluging worked perfectil until the upgrade.

Yes. The favourites zip works perfectly.

????



Tatome

Do you have access to the server logs?

Could you post the last 30 lines in the logs after trying to download an album?

Tatome

Again: does the browser redirect you to the 404 page immediately, or does sit there for a while, waiting for the server to respond?

fersauce

The browser redirect me inmediatly to the 404 error page.
And .... I dont know why, but... I have no logs! The log page it's empty  :(

Tatome

Sounds a bit like an installation problem.  Can you check if there is a file named albumZIP.php in the same directory as codebase.php and initialize.inc.php?  (I think it should be in the directory plugins/albumdownload/ below the main coppermine directory).

fersauce


Tatome

And I suppose uninstalling and re-installing didn't help?

Can you tell me what's the precise URL that the album download link points to minus your domain name?
Same for the the URL after login minus your domain name?

sebbo_

Hello,

first of all thanks for the great work. I set up coppermine gallery three days ago and am still impressed about the smooth and easy handling!

Now i tried to install the albumdownload plugin. I dont get any errors and can start the download as zip. But unfortunately it doesnt work. The resulting zipfile is always empty and the name doesnt contain the name of the album, its always something like pictures-4fc1609ee78b7.zip. Uninstalling and reinstalling the plugin doesnt help either.

Environment:
Debian Squeeze
Apache 2.2.16-6
PHP 5.3.3-7
cpg1.5.20

Any ideas?
Thanks and regards
Sebastian

Tatome

Hi,

is that for all albums or is it only for albums which don't have pictures on their own (only via album tags or whatever they're called)?

I suspect I broke something just before uploading the plugin zip; I'll post an update later.

Cheers,
Johannes

Tatome

Hi,

seems like I did break the plugin just before updating it.  Pictures that are not included via album tags should still get into the zip file, but zips for albums which only include pictures would be empty.

I'm attaching a patch (administrators --- could you apply this, please?).

Cheers,
Johannes

sebbo_

Hi Johannes,

thanks i will try the patch and keep you informed.
Concerning your question: I only have albums which contain images, no album tags (to be honest i dont know all features yet, for example album tags  ;) )

Regards
Sebastian

sebbo_

Hi Johannes,

i replaced $query of albumZip.php with the one of your patch, but nothing changed, its still an empty zipfile. I uninstalled and reinstalled the plugin, restarted the apache httpd, still no change.

Regards
Sebastian

Tatome

Hey Sebastian,

could you change the script so it prints out all the file names instead of creating a zip file?

I don't suppose there are any error messages in the logs...

Cheers,
Johannes

sebbo_

Hi Johannes,

no there are no errormessages.
I'm not a php-pro, so i tried my best with the help of Mr. Google  ;)
I dumped the content of $filelist to a logfile (with var_dump), and the result was

array(0) {
}

Regards
Sebastian

Tatome

Hi Sebastian,

Quote from: sebbo_ on May 27, 2012, 08:22:58 PM
I'm not a php-pro, so i tried my best with the help of Mr. Google  ;)
Best way to learn it.  To be honest, I'm only messing around, too.

Quote from: sebbo_ on May 27, 2012, 08:22:58 PM
I dumped the content of $filelist to a logfile (with var_dump), and the result was
array(0) {
}
So, nothing found.  The thing is, that same code works fine on my side, but I haven't updated Coppermine.

Come to think of it: one thing you could also check is whether the variable $aid is set correctly.  What does it say if you dump that one?

You could also dump the SQL statement and debug directly on the database.

Cheers,
Johannes

sebbo_

Hi Johannes,

i checked $aid and whatever album i try, its value is always 1. I also checked the content of cpg15x_albums and there is no album with aid = 1. So i suppose $aid = $superCage->get->getInt('aid'); doesnt work anymore the way it used to.

Regards
Sebastian