Advanced search  

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]

Pages: [1]   Go Down

Author Topic: [Solved]: Batch-add goes back to searchnew.php instead of adding files?  (Read 3118 times)

0 Members and 1 Guest are viewing this topic.

queequeg

  • Coppermine newbie
  • Offline Offline
  • Posts: 6

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.
« Last Edit: March 29, 2009, 06:53:38 pm by Joachim Müller »
Logged

queequeg

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Batch-add goes back to searchnew.php instead of adding files?
« Reply #1 on: March 29, 2009, 07:55:01 am »

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

Thank you.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Batch-add goes back to searchnew.php instead of adding files?
« Reply #2 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:
Quote
We 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.
Logged

queequeg

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Batch-add goes back to searchnew.php instead of adding files?
« Reply #3 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.
Logged

Nibbler

  • Guest
Re: Batch-add goes back to searchnew.php instead of adding files?
« Reply #4 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.
Logged

queequeg

  • Coppermine newbie
  • Offline Offline
  • Posts: 6

suhosin.

Will do!

Thank you for the assistance.
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.