coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: queequeg on March 29, 2009, 07:53:04 AM

Title: [Solved]: Batch-add goes back to searchnew.php instead of adding files?
Post by: queequeg on March 29, 2009, 07:53:04 AM
When I try to batch-add files from certain directories, it takes me back to the searchnew.php page immediately when I hit "Insert Selected Files"

There is no error message, it just takes me back to the searchnew.php page without inserting the files.

Gallery: http://www.coolstucki.net (http://www.coolstucki.net)

Test account:
user: test1
pass: test1

The folders that don't work are in a subdirectory called "Gabriel".  I've tried changing folder and file names to get rid of special characters, but it doesn't help. 

Any ideas would be greatly appreciated.

Thank you.
Title: Re: Batch-add goes back to searchnew.php instead of adding files?
Post by: queequeg on March 29, 2009, 07:55:01 AM
Sorry, forgot to say that all the folder permissions are verified as 755.

Thank you.
Title: Re: Batch-add goes back to searchnew.php instead of adding files?
Post by: Joachim Müller on March 29, 2009, 12:52:32 PM
Regular http uploads work as expected (see http://coolstucki.net/photos/displayimage.php?pos=-3433).
You have indexes enabled on your server, so everybody currently can browse http://coolstucki.net/photos/albums/Gabriel/ - that's not a bright idea, but helped me figuring out what is wrong: you're using capitalization, which is not bad in itself, but very error-prone; you should avoid capitalization in file and folder names and only use lower-case. The show stopper is the fact that you're using spaces in folder names (e.g. http://coolstucki.net/photos/albums/Gabriel/Idaho%20Trip%202007/2007-09-15%20Idaho%20Trip%20001.jpg), which simply is a no-no on webservers. Stop using those spaces - use underscores if you must separate words. From the docs (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#batch_add_pics):
QuoteWe also highly recommend refraining from the use of any other special characters - use only a-z, numbers and - (dashes) or _ (underscores) to fill blank spaces

Apart from that it's mandatory that you upgrade to the most recent stable release (currently cpg1.4.21). You currently have cpg1.4.20. All versions prior to cpg1.4.21 contain a serious security flaw that is actively being exploited to hack the entire site.
Title: Re: Batch-add goes back to searchnew.php instead of adding files?
Post by: queequeg on March 29, 2009, 04:57:29 PM
Wow - thanks for a heads-up on the indexing.  I have no idea how that got changed.

After updating to the latest version of coppermine and trying out a "test" directory with naming as you suggested, the problem persisted. I noticed that the directories with a LOT of pictures (over 100+/-) were the ones not working.  I split them up, and they now work regardless of naming convention, so this thread can be marked SOLVED

Is there a limit to the number of files that can be batch-uploaded at one time, or is this due to a php memory limit?

Thanks for the help.
Title: Re: Batch-add goes back to searchnew.php instead of adding files?
Post by: Nibbler on March 29, 2009, 06:19:18 PM
It's likely due to the 'suhosin' PHP extension. It places arbitrary limits on a number of things in PHP. Search the board for more details, since this can affect other areas of Coppermine also.
Title: Re: [Solved]: Batch-add goes back to searchnew.php instead of adding files?
Post by: queequeg on March 29, 2009, 08:47:56 PM
suhosin.

Will do!

Thank you for the assistance.