Advanced search  

News:

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

Pages: 1 2 [3] 4 5 6 7   Go Down

Author Topic: Download complete album als ZIP  (Read 67356 times)

0 Members and 1 Guest are viewing this topic.

fersauce

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 42
Re: Download complete album als ZIP
« Reply #40 on: May 21, 2012, 03:35:53 pm »

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

Tatome

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: Download complete album als ZIP
« Reply #41 on: May 21, 2012, 03:37:04 pm »

Depends.  What's the problem?
Logged

fersauce

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 42
Re: Download complete album als ZIP
« Reply #42 on: May 21, 2012, 04:30:43 pm »

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?
Logged

Tatome

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: Download complete album als ZIP
« Reply #43 on: May 21, 2012, 04:37:46 pm »

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?
Logged

fersauce

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 42
Re: Download complete album als ZIP
« Reply #44 on: May 21, 2012, 04:44:34 pm »

Yes itīs an apache server.

The pluging worked perfectil until the upgrade.

Yes. The favourites zip works perfectly.

????


Logged

Tatome

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: Download complete album als ZIP
« Reply #45 on: May 21, 2012, 04:54:29 pm »

Do you have access to the server logs?

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

Tatome

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: Download complete album als ZIP
« Reply #46 on: May 21, 2012, 04:56:18 pm »

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

fersauce

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 42
Re: Download complete album als ZIP
« Reply #47 on: May 21, 2012, 06:54:37 pm »

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  :(
Logged

Tatome

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: Download complete album als ZIP
« Reply #48 on: May 21, 2012, 09:36:29 pm »

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).
Logged

fersauce

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 42
Re: Download complete album als ZIP
« Reply #49 on: May 21, 2012, 09:52:40 pm »

Yes.  All of them...
Logged

Tatome

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: Download complete album als ZIP
« Reply #50 on: May 21, 2012, 09:59:08 pm »

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?
Logged

sebbo_

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Download complete album als ZIP
« Reply #51 on: May 27, 2012, 05:07:31 pm »

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
Logged

Tatome

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: Download complete album als ZIP
« Reply #52 on: May 27, 2012, 05:57:16 pm »

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
Logged

Tatome

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: Download complete album als ZIP
« Reply #53 on: May 27, 2012, 06:20:16 pm »

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
Logged

sebbo_

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Download complete album als ZIP
« Reply #54 on: May 27, 2012, 07:12:53 pm »

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
Logged

sebbo_

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Download complete album als ZIP
« Reply #55 on: May 27, 2012, 07:40:11 pm »

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
Logged

Tatome

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: Download complete album als ZIP
« Reply #56 on: May 27, 2012, 07:44:02 pm »

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
Logged

sebbo_

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Download complete album als ZIP
« Reply #57 on: May 27, 2012, 08:22:58 pm »

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
Logged

Tatome

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: Download complete album als ZIP
« Reply #58 on: May 27, 2012, 09:40:35 pm »

Hi Sebastian,

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.

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
Logged

sebbo_

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Download complete album als ZIP
« Reply #59 on: May 28, 2012, 08:56:26 am »

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
Logged
Pages: 1 2 [3] 4 5 6 7   Go Up
 

Page created in 0.02 seconds with 22 queries.