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: Too many folders... searchnew.php crashes  (Read 9581 times)

0 Members and 1 Guest are viewing this topic.

FM86

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Too many folders... searchnew.php crashes
« on: September 24, 2008, 08:51:22 pm »

Hello everybody!

I'm running my Image Gallery (updated to the latest stable version) since long time and I have lots of folder there. They're so many that when I executed the searchnew.php script the server goes on timeout. Did someone else have the same problem? How did you solve it?

I thought that the best solution would be to force searchnew.php to run only on a particular subfolder where I will put the new files.

searchnew.php returns the folders in albums/
I'd like to force it to search only in album/2008

Then I guess I should write in the pictures table that the directory is 2008/newDir/newImage.jpg because probably searchnew returns only the relative path starting from the table in which it's searching.

Do you think it's a good idea? How could I achieve this result?

Thank you for your attention!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Too many folders... searchnew.php crashes
« Reply #1 on: September 24, 2008, 10:14:02 pm »

If you're not running on a Windows-driven webserver I recommend enabling the browsable batch-add interface.
Logged

FM86

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Too many folders... searchnew.php crashes
« Reply #2 on: September 25, 2008, 09:36:41 am »

Hi and thank you for your reply!

I guess the browsable batch-add interface is enabled by default.
Anyway, thank to your suggestion, I found a better solution: I will just create a folder "before-2008" and modify every row in pictures table adding a "before-2008/" at the beginning of each filepath field. Then I will move everything in this folder and it should work.

Thank you again!
Logged

FM86

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Too many folders... searchnew.php crashes
« Reply #3 on: September 25, 2008, 12:03:20 pm »

I did my modification and it works. But still the execution of searchnew.php is very slow. I didn't understand how this script works but I guess it searchs also for subfolders because when I click on one of the root folters (the one directly in albums' root) they're opened immediatly.

And another question:
Can I add multiple folders to different albums with one operation (like in the old versions)?
I have a folder portugal with no files inside and 2 subfolders sintra and lisbona. I'd like to add all the files inside portugal but the "ok" button doesn't appear.
Is there a way to modify this behaviour?

Thank you a lot!
Logged

FM86

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Too many folders... searchnew.php crashes
« Reply #4 on: October 07, 2008, 01:34:41 pm »

I just added 2 more folders and the script is unexecutable (generates timeout). Probably modifying the timeout settings on the server I should solve the problem. Unfotunately I can't do that. Is there anyone else who had the same problem? How could I modify the script? if I could just insert the absolute path on pictures table instead of a local one I could move all the pictures present in the DB on a folder out of album dir. But then what will happen with all the other scripts?

If someone can help me it's great. I think this can be a serious problem for people who have a big image gallery.

Thank you!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Too many folders... searchnew.php crashes
« Reply #5 on: October 08, 2008, 09:56:46 am »

Try the MassImport plugin
Logged

FM86

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Too many folders... searchnew.php crashes
« Reply #6 on: October 08, 2008, 10:49:45 am »

Thank for the suggestion. How do I import it?
I copied it in the plugins directory. And then?

I've looked for a readme file but noone found.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Too many folders... searchnew.php crashes
« Reply #7 on: October 08, 2008, 11:10:07 am »

Take a look at the announcement thread for that plugin: it doesn't get supported here, but over at cpg-contrib.org. You mustn't ask questions how to use it here.
Logged

FM86

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Too many folders... searchnew.php crashes
« Reply #8 on: October 08, 2008, 12:05:54 pm »

Ok, thank you again and sorry :)
Logged

liquid-motion

  • Coppermine newbie
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 5
    • Liquid-Motion
Re: Too many folders... searchnew.php crashes
« Reply #9 on: December 21, 2009, 10:31:48 pm »

I just added 2 more folders and the script is unexecutable (generates timeout). Probably modifying the timeout settings on the server I should solve the problem. Unfotunately I can't do that. Is there anyone else who had the same problem? How could I modify the script?

You don't have to modify the script. I had the same problem and my host wouldn't let me change the timeout settings either.

So here's the trick. Instead of calling searchnew.php, you should call searchnew.php?startdir=[name of folder you would like to add].

This way the script is not trying to read the whole directory, but only the folder you would like to add!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Too many folders... searchnew.php crashes
« Reply #10 on: December 22, 2009, 01:28:06 pm »

Locking
Logged
Pages: [1]   Go Up
 

Page created in 0.064 seconds with 19 queries.