Edit more that 25 Pics Edit more that 25 Pics
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Edit more that 25 Pics

Started by phatbloke, August 27, 2005, 02:32:55 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

phatbloke

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.

Nibbler

Works fine for me. Is this with the Xoops bridge ?

phatbloke

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

Nibbler

If you are happy to let me play with your server you can PM me FTP details.

Nibbler

Bug confirmed. Assigning to me.

Nibbler

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 ?

phatbloke

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.