forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: pznet on May 26, 2009, 05:56:31 am

Title: Can't upload batch pictures in a server with suPHP
Post by: pznet on May 26, 2009, 05:56:31 am
Hi.

Our server was recently changed to use suPHP and it was working fine before, but not anymore and I believe it is related to the suPHP change.

Before I uploaded pictures to a gallery like this:

- upload files to a folder within "domain.com/galerias/albums/album-name"
- create an album as admin
- upload pictures to the album using the batch feature

Also, as recommended, I moved from  <!--Coppermine Photo Gallery 1.4.16 (stable)--> to 1.4.23.

This is what I usually do when uploading pictures:

Login here

http://www.perezzeledon.net/galerias/login.php?referer=index.php

then I go to the batch process to upload many pictures at once and search the folder I need and get this URL

http://www.perezzeledon.net/galerias/searchnew.php?startdir=15-mayo-2009

Then in the next step I have to select a folder, so I do, and when going to the last step where I usually see just blue "OK" images, now I get just the list of folders again, at this URL: http://www.perezzeledon.net/galerias/searchnew.php?insert=1

Before, if I upload just one single picture it worked just fine.  But now, after the upgrade, it says the PB message, that "thumbnails can't be created" but I checked the folder and it has 755 permissions, tryied also with 777 but didn't worked neither.

All the folders are already 755 and I don't see any message regarding the folder being unable to write, like it usually happened before when the folders didn't have the correct permissions.

Thank you a lot for any help.
Title: Re: Can't upload batch pictures in a server with suPHP
Post by: pznet on May 26, 2009, 08:17:05 am
Quote
Before, if I upload just one single picture it worked just fine.  But now, after the upgrade, it says the PB message, that "thumbnails can't be created" but I checked the folder and it has 755 permissions, tryied also with 777 but didn't worked neither.

This part is fixed, I found that support backed up all the albums so we ran out of space, now this is fixed and I'm able to upload one single picture, but still can't upload several at a time.  I try with groups of 3, 5 and 10 pictures and worked fine, but when I try to upload many, many pictures at a time it just shows the whole list of albums again, no message or anything.
Title: Re: Can't upload batch pictures in a server with suPHP
Post by: Nibbler on May 26, 2009, 11:32:12 am
Search the board for previous discussions about suhosin.
Title: Re: Can't upload batch pictures in a server with suPHP
Post by: pznet on May 26, 2009, 03:05:10 pm
Ok, I'm on it now.

Thanks.
Title: Re: Can't upload batch pictures in a server with suPHP
Post by: pznet on May 27, 2009, 06:35:56 am
Hi.  We did already and the value for suhostin was increased up to 500 but the problem still persists.

Yesterday I was able to upload the pictures to the folder I was having problems but 15 pictures at a time...

Any other suggestions?

Any extra information you may need?

Thank you.
Title: Re: Can't upload batch pictures in a server with suPHP
Post by: Nibbler on May 27, 2009, 11:38:45 am
Post the suhosin settings you have currently.
Title: Re: Can't upload batch pictures in a server with suPHP
Post by: pznet on May 27, 2009, 10:59:19 pm
Hi.

Here's the info:

suhosin
suhosin.apc_bug_workaround => Off => Off
suhosin.cookie.checkraddr => 0 => 0
suhosin.cookie.cryptdocroot => On => On
suhosin.cookie.cryptkey => [ protected ] => [ protected ]
suhosin.cookie.cryptlist => no value => no value
suhosin.cookie.cryptraddr => 0 => 0
suhosin.cookie.cryptua => On => On
suhosin.cookie.disallow_nul => 1 => 1
suhosin.cookie.disallow_ws => 1 => 1
suhosin.cookie.encrypt => Off => Off
suhosin.cookie.max_array_depth => 50 => 50
suhosin.cookie.max_array_index_length => 64 => 64
suhosin.cookie.max_name_length => 64 => 64
suhosin.cookie.max_totalname_length => 256 => 256
suhosin.cookie.max_value_length => 10000 => 10000
suhosin.cookie.max_vars => 100 => 100
suhosin.cookie.plainlist => no value => no value
suhosin.coredump => Off => Off
suhosin.disable.display_errors => Off => Off
suhosin.executor.allow_symlink => Off => Off
suhosin.executor.disable_emodifier => Off => Off
suhosin.executor.disable_eval => Off => Off
suhosin.executor.eval.blacklist => no value => no value
suhosin.executor.eval.whitelist => no value => no value
suhosin.executor.func.blacklist => no value => no value
suhosin.executor.func.whitelist => no value => no value
suhosin.executor.include.blacklist => no value => no value
suhosin.executor.include.max_traversal => 0 => 0
suhosin.executor.include.whitelist => no value => no value
suhosin.executor.max_depth => 0 => 0
suhosin.filter.action => no value => no value
suhosin.get.disallow_nul => 1 => 1
suhosin.get.disallow_ws => 0 => 0
suhosin.get.max_array_depth => 50 => 50
suhosin.get.max_array_index_length => 64 => 64
suhosin.get.max_name_length => 64 => 64
suhosin.get.max_totalname_length => 256 => 256
suhosin.get.max_value_length => 512 => 512
suhosin.get.max_vars => 100 => 100
suhosin.log.file => 0 => 0
suhosin.log.file.name => no value => no value
suhosin.log.phpscript => 0 => 0
suhosin.log.phpscript.is_safe => Off => Off
suhosin.log.phpscript.name => no value => no value
suhosin.log.sapi => 0 => 0
suhosin.log.script => 0 => 0
suhosin.log.script.name => no value => no value
suhosin.log.syslog => no value => no value
suhosin.log.syslog.facility => no value => no value
suhosin.log.syslog.priority => no value => no value
suhosin.log.use-x-forwarded-for => Off => Off
suhosin.mail.protect => 0 => 0
suhosin.memory_limit => 0 => 0
suhosin.mt_srand.ignore => On => On
suhosin.multiheader => Off => Off
suhosin.perdir => 0 => 0
suhosin.post.disallow_nul => 1 => 1
suhosin.post.disallow_ws => 0 => 0
suhosin.post.max_array_depth => 50 => 50
suhosin.post.max_array_index_length => 64 => 64
suhosin.post.max_name_length => 64 => 64
suhosin.post.max_totalname_length => 256 => 256
suhosin.post.max_value_length => 65000 => 65000
suhosin.post.max_vars => 200 => 200
suhosin.protectkey => On => On
suhosin.request.disallow_nul => 1 => 1
suhosin.request.disallow_ws => 0 => 0
suhosin.request.max_array_depth => 50 => 50
suhosin.request.max_array_index_length => 64 => 64
suhosin.request.max_totalname_length => 256 => 256
suhosin.request.max_value_length => 65000 => 65000
suhosin.request.max_varname_length => 64 => 64
suhosin.request.max_vars => 200 => 200
suhosin.server.encode => On => On
suhosin.server.strip => On => On
suhosin.session.checkraddr => 0 => 0
suhosin.session.cryptdocroot => On => On
suhosin.session.cryptkey => [ protected ] => [ protected ]
suhosin.session.cryptraddr => 0 => 0
suhosin.session.cryptua => On => On
suhosin.session.encrypt => On => On
suhosin.session.max_id_length => 128 => 128
suhosin.simulation => Off => Off
suhosin.sql.bailout_on_error => Off => Off
suhosin.sql.comment => 0 => 0
suhosin.sql.multiselect => 0 => 0
suhosin.sql.opencomment => 0 => 0
suhosin.sql.union => 0 => 0
suhosin.sql.user_postfix => no value => no value
suhosin.sql.user_prefix => no value => no value
suhosin.srand.ignore => On => On
suhosin.stealth => On => On
suhosin.upload.disallow_binary => 0 => 0
suhosin.upload.disallow_elf => 1 => 1
suhosin.upload.max_uploads => 500 => 500
suhosin.upload.remove_binary => 0 => 0
suhosin.upload.verification_script => no value => no value
Title: Re: Can't upload batch pictures in a server with suPHP
Post by: Nibbler on May 27, 2009, 11:18:38 pm
The settings you need to increase are suhosin.post.max_vars and suhosin.request.max_vars. They are still at 200. You should set them to several thousand.
Title: Re: Can't upload batch pictures in a server with suPHP
Post by: pznet on May 28, 2009, 05:08:53 am
We did this change:

suhosin.post.max_vars => 9000 => 9000
suhosin.request.max_vars => 9000 => 9000

and now is working just fine as usual!!

www.perezzeledon.net/galerias (http://www.perezzeledon.net/galerias)

THANK YOU VERY MUCH!
Title: Re: Can't upload batch pictures in a server with suPHP
Post by: pznet on May 28, 2009, 05:10:14 am
How can I mark it as solved?  Or do you do that?
Title: Re: Can't upload batch pictures in a server with suPHP
Post by: Joachim Müller on May 29, 2009, 01:06:34 am
http://forum.coppermine-gallery.net/index.php/topic,55415.msg270631.html#msg270631