forum.coppermine-gallery.net

Dev Board => cpg1.4 Testing/Bugs => cpg1.4 Testing/Bugs: FIXED/CLOSED => Topic started by: phatbloke on August 27, 2005, 02:32:55 am

Title: Edit more that 25 Pics
Post by: phatbloke on August 27, 2005, 02:32:55 am
Hi

I have come accross this bug which I can replicate on my server and hopefully someone else can verify it happens to them as well.

I have applied the fix from http://forum.coppermine-gallery.net/index.php?topic=17802.0 sucessfully.

Basically I can edit captions in albums as long as there are 25 or less pictures in that album as soon as there are more creating effectivly 2 pages i get the "Permission denied" error and I get completely logged out of the system and have to log in again. Any less and editing works perfectly. I have tried allowing all the images to be displayed (ie setting option to display 50 images per page) but with no luck.

Can someone else verify if this happens to them or it is an isolated case.
Title: Re: Edit more that 25 Pics
Post by: Nibbler on August 27, 2005, 02:43:18 am
Works fine for me. Is this with the Xoops bridge ?
Title: Re: Edit more that 25 Pics
Post by: phatbloke on August 27, 2005, 03:10:26 am
Yes it is but I have tried it with it both it enabled and disabled. I have also done a new install for testing and it came up with the same erorr. Must be something with my server. Thanks
Title: Re: Edit more that 25 Pics
Post by: Nibbler on August 27, 2005, 03:12:52 am
If you are happy to let me play with your server you can PM me FTP details.
Title: Re: Edit more that 25 Pics
Post by: Nibbler on August 27, 2005, 04:46:48 am
Bug confirmed. Assigning to me.
Title: Re: Edit more that 25 Pics
Post by: Nibbler on August 30, 2005, 07:38:01 pm
I found the explanation for this. The server is running "Hardened PHP" and is configured with a "varfilter.max_request_variables" setting of 200. If you send the server more than 200 request variables in one go it silently drops any data over this limit. With Coppermine, the editpics form is sending 9+ variables per pic so you encounter this limit at just over 20 pics (depending on how many boxes you tick). When this happens, the cookie data is silently dropped, logging you out.

The solution of course is to increase this limit where possible.

We could however add a lower option (10 perhaps)  to the editpics 'Number of files to display' dropdown (currently 25/50/75/100). Is this worth doing ?
Title: Re: Edit more that 25 Pics
Post by: phatbloke on August 31, 2005, 04:15:03 am
Thankyou heaps for finding this nibbler
I wouldn't have known where to start myself.
I have now upped the setting to 300 and works fine for editing the default 25 pictures which is all i require although the 10 picture setting might be a good idea incase other people use the hardend php even though it is easy to adjust if the user has rights to the server.