[Solved]: Batch-add goes back to searchnew.php instead of adding files? [Solved]: Batch-add goes back to searchnew.php instead of adding files?
 

News:

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

Main Menu

[Solved]: Batch-add goes back to searchnew.php instead of adding files?

Started by queequeg, March 29, 2009, 07:53:04 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

queequeg

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

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.

queequeg

Sorry, forgot to say that all the folder permissions are verified as 755.

Thank you.

Joachim Müller

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:
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.

queequeg

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.

Nibbler

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.

queequeg