Support Forum Project Downloads FAQ Documentation About Demo Tutorials Blog Plugins
November 21, 2009, 10:21:44 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: cpg1.5.2 beta released
The brand new cpg1.5.x series that comes with a lot of new features finally has reached the release stage: a first public beta release cpg1.5.2 has been released that is mainly aimed at translators, testers and community members that have contributed in the past. The beta release is not meant to be used in a production environment, but only on testbeds and for evaluation purposes. There is currently no support for cpg1.5.x yet!
[more]
   Home   Help Search Board rules Login Register  
Pages: [1]   Go Down
  Send this topic  |  Print  
Author Topic: Too many folders... searchnew.php crashes  (Read 1976 times)
0 Members and 1 Guest are viewing this topic.
FM86 Topic starter
Coppermine novice
*
Posts: 23


« on: September 24, 2008, 07: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
Administrator
*****
Gender: Male
Germany Germany

Posts: 45051


aka "GauGau"


WWW
« Reply #1 on: September 24, 2008, 09:14:02 pm »

If you're not running on a Windows-driven webserver I recommend enabling the browsable batch-add interface.
Logged
FM86 Topic starter
Coppermine novice
*
Posts: 23


« Reply #2 on: September 25, 2008, 08: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 Topic starter
Coppermine novice
*
Posts: 23


« Reply #3 on: September 25, 2008, 11:03:20 am »

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 Topic starter
Coppermine novice
*
Posts: 23


« Reply #4 on: October 07, 2008, 12: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
Administrator
*****
Gender: Male
Germany Germany

Posts: 45051


aka "GauGau"


WWW
« Reply #5 on: October 08, 2008, 08:56:46 am »

Try the MassImport plugin
Logged
FM86 Topic starter
Coppermine novice
*
Posts: 23


« Reply #6 on: October 08, 2008, 09: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
Administrator
*****
Gender: Male
Germany Germany

Posts: 45051


aka "GauGau"


WWW
« Reply #7 on: October 08, 2008, 10: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 Topic starter
Coppermine novice
*
Posts: 23


« Reply #8 on: October 08, 2008, 11:05:54 am »

Ok, thank you again and sorry Smiley
Logged
Pages: [1]   Go Up
  Send this topic  |  Print  
 
Jump to:  

Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC
Page created in 0.036 seconds with 17 queries.