coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Installation & Setup => Topic started by: soulman on June 18, 2004, 01:32:27 PM

Title: [Solved]: Batch Add Files Not running properly
Post by: soulman on June 18, 2004, 01:32:27 PM
Hi there,

Just installed CPG1.3.
All installation went fine, only one problem

When I click on "Batch Add Files"

I get a bix which says "Select Directory....This function allows you to add a batch of file that your have uploaded to your server by FTP.

Select the directory where you have uploaded your files"

And thats it !!, I can select any directory and no directoy paths show up.

I can add files one at a time by using Upload File , but I need to you the Batch upload as I have over 100 photos to upload.

Any help please ???

Thanks

Soulman
;D ???
Title: Re: Batch Add Files Not running properly
Post by: Joachim Müller on June 18, 2004, 02:06:09 PM
did you actually upload files by ftp before going to the batch-add section? Make sure to create directories within "albums", not userpics. You mustn't use the userpics folder for batch-add, it is reserved for pics being uploaded by http upload. Also make sure your folders don't contain dots in their names. For details, refer to the documentation that comes with coppermine.

GauGau
Title: Re: Batch Add Files Not running properly
Post by: Peter HB on June 19, 2004, 07:30:05 PM
Your warning about not using 'userpics' was timely as I was having similar problems, however the problem is only partially solved and I would be grateful for more advice.

My 2 residual problems are:

1  The following error is generated on each image whilst trying to fill some of my albums.

Warning: getimagesize(): Read error! in /home/********/+++++++l/Gallery/include/picmgmt.inc.php on line 219
Unable to create thumbnail or reduced size image.

As the message is misleading I would appreciate some guidance. I have ftp 'd the files in question back to my computer and have no difficulty in opening them and Paint Shop Pro has no difficulty in creating its own thunbnails, so clearly they are not flawed on the server. Could there be a limit within Coppermine that I've reached without knowing it, perhaps in the number of albums? I have 14 albums in 4 categories presently (http://hbsys.co.uk/Gallery) and I cannot install files beyond the last 6 to succeed.

2 A minor problem: what about the directories that are already in 'userpics' from the original cpg 1.2.1 installation?. Is action required?

Many thanks for any help.

Peter HB
Title: Re: Batch Add Files Not running properly
Post by: Joachim Müller on June 20, 2004, 03:06:20 PM
1) CHMOD properly, as suggested in the docs
2) No

GauGau
Title: Re: Batch Add Files Not running properly
Post by: Peter HB on June 20, 2004, 06:46:38 PM
Thanks for your response: unfortunately it doesn't address my problem. ALL my upload directories are 755 and ALL the files in them are 644, including the pictures that have been successfully added.

I appreciate that I'm probably suffering from unfamiliarity with Coppermine, but permissions are not the problem and I would appreciate another suggestion if you have the time.

Regards

Peter HB
Title: Re: Batch Add Files Not running properly
Post by: Casper on June 20, 2004, 07:54:15 PM
On many servers the chmod has to be 777 and 666 for coppermine to work.  This is so on one of my sites.
Title: Re: Batch Add Files Not running properly
Post by: Peter HB on June 20, 2004, 10:06:13 PM
I hear what you say, but if that is the case why did I successfully upload the first 103 images? The failure occurred mid-session and all files have the same permissions, namely 644, and I find it unlikely that my server installation counted files and then stopped at this point as a result of invalid permissions. :)

Thanks for your interest.

Peter HB

Following this post (which I'm now modifying) I discovered that my problem is related to capacity somewhere. I deleted 1 file and discovered that I could then upload another 3.5 before hitting the stops! Unless anyone thinks this could be a Coppermine issue I'll push off and do some checking with my ISP.

Many thanks for all the help.

Peter HB
Title: Re: [Solved]: Batch Add Files Not running properly
Post by: Peter HB on June 21, 2004, 05:20:14 PM
Apologies for replying to my own post, but...

The problem is clearly one of resources becoming exhausted and the only question is, "Is this a Coppermine problem". The (singular) MySQL DB is only 70k and my ISP allocated web space is only 25% utilised so there is a probability that Coppermine is involved.

Further information on my previous post is that the ultimate file was only partially created by 'picmgmt.inc.php' - only the upper half of the image appeared in the album, although the thumbnail was intact. A cursory reading of the above script reveals that the failure is detected in the created image; not in the original uploaded one, further suggesting a Coppermine problem - if it was php I would have expected other failures in the previously successful 107 files that were added to my albums.

Any help or guidance would be gratefully received.

Peter HB

Problem solved!
Title: Re: [Solved]: Batch Add Files Not running properly
Post by: Sogeri on August 15, 2004, 12:09:37 PM
Hi,

Today I upgraded to version 1.3  

I have the same problem. All I get is this:

Select directory  

This function allows you to add a batch of file that your have uploaded to your server by FTP.

Select the directory where you have uploaded your files
 

No actual directory shows.

My paths to the images are:

The album directory *    albums/
The directory for user files *    userpics/

All worked fine in version 1.2

Below is the script that shows in debug mode.

I do appreciate your help.

Thank you.

Wolfgang




USER:
------------------
Array
(
   [ID] => 26a684577d6814330d208ed7e61190f3
   [am] => 1
   [theme] => eyeball
   [liv] => Array
       (
           
Title: Re: [Solved]: Batch Add Files Not running properly
Post by: Joachim Müller on August 15, 2004, 12:47:03 PM
You were never meant to ftp-upload to the userpics folder. Not in cpg1.1, not in cpg1.2.x, and not in cpg1.3.x
In cpg1.3.x, we just enforce this rule by not displaying the userpics folder at all when using batch-add (on the searchnew.php page) to avoid the issues that came up in the past when users were ftp-uploading to the userpics folder (for some it worked, for others it didn't). This is all well documented - reading the docs is higly recommended. Quote from the docs (http://coppermine.sourceforge.net/manual.php#batch_add_pics):
QuoteImportant: do not create folders or upload to the userpics- nor the edit-folder by ftp: these folders are used by coppermine internally and mustn't be used for any other purpose!
This has as well been asked a thousand times on this board, next time please search before posting.

GauGau