coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: ronh on July 02, 2009, 04:33:21 PM

Title: batch add files
Post by: ronh on July 02, 2009, 04:33:21 PM
Hi all,

probably stupidity on my part but I get this error report when batch adding files from my UPLOAD directory (lots of jpeg   images in there sent by ftp all resixed to 25% of original size about 872 x 654 pixels) When I try to batch add these to an album called "Hope Cove" I get errors as shown below

USER:
------------------
Array
(
   [ID] => 4d4b112e2efe81b356f25d9a9a52b793
   [am] => 1
   [lang] => english_gb
)

==========================
USER DATA:
------------------
Array
(
   [user_id] => 1
   [user_name] => admin
   [groups] => Array
       (
           
Title: Re: batch add files
Post by: phill104 on July 02, 2009, 04:56:06 PM
Firstly update - <!--Coppermine Photo Gallery 1.4.19 (stable)-->

You are running behind so install the latest version which is currently 1.4.25.

Why Upgrade?

http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upgrade_why

Once you have done that read the following section of the manual and do everything outlined therin taking special note of everything in red.

http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble

Please do not post debug output unless requested.

Title: Re: batch add files
Post by: ronh on July 03, 2009, 02:47:08 PM
OK and thanks for the guidance so far.

I have updated now to latest version, read docs as instructed and I believe I've done as instructed.
My problem still remains - I can upload by http fine into userpics directory which is in the albums directory ( I've checked and the image is there. It aslo appears in the album.) No problem.
However when I try to ftp the images into my "myftpuploads" directory (which is again in the albums folder and set to permissions 777) the images get uploaded OK. I can see them in the folder using my ftp client. However it seems to be impossible to add them to an album using "batch add files"
My website is at http://www.hagley.ismysite.co.uk/gallery/
there is a user account with the username test password guest debugging is enabled
I have created one album called seaside
Appreciate all help available.
Title: Re: batch add files
Post by: Joe Carver on July 03, 2009, 03:34:58 PM
Account did not appear to have upload privileges.

Follow the steps outlined: http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble
Title: Re: batch add files
Post by: phill104 on July 03, 2009, 11:38:08 PM
 [num_file_upload] => 5
    [num_URI_upload] => 3

You also have not set single file upload as per the docs.
Title: Re: batch add files
Post by: ronh on July 06, 2009, 11:47:56 AM
I think I have now applied the required settings - however I was a bit confused between the documentation settings which say File upload =1 URI =0 number of boxes fixed which differ from that stated in your posting.
Please note my problem relates to images uploaded via FTP not to images uploaded by HTTP. I can upload OK via HTTP but when I FTP a batch of files (successfully) when I try to use "batch add files" nothing happens.

Many thanks for the advise so far - I hope you can help me resolve this issue. If I need to make any other amendments to help you please advise - many thanks

Ron
Title: Re: batch add files
Post by: Joachim Müller on July 06, 2009, 12:06:41 PM
I get a "404 file not found" when trying to access the URL http://www.hagley.ismysite.co.uk/mypix from your original posting. Digging deeper in this thread I found http://www.hagley.ismysite.co.uk/gallery/. Trying there to upload with the test user account I get
QuoteYour file was uploaded successfully.

It will be visible after admin approval.
, which is just silly and shows that you haven't read the docs. From the section that you're supposed to have read:
QuoteAsking for support on upload issues

When asking for support on the coppermine forum, post a link to your site and a test user account (the test user mustn't be in the admin group!) with upload privileges, with the above mentioned settings in place - this way, supporters can see the error messages as well. Do not post debug_output unless requested. If you want fast results, you should disable admin approval for the group the test user is in, so supporters can tell instantly what is wrong without needing to double-check.

When people have issues with uploading and decide to post their question on the Coppermine support board, they usually are told to read this upload troubleshooting section. Many of them fail to do so properly, which results in frustration both for users as well as supporters. To make this absolutely clear: the above mentioned steps are absolutely mandatory, no matter what skill level you have, no matter what upload method you have troubles with. Failing to do exactly as suggested will result in your request for help being ignored. Yes, this applies to you. We mean it!
I'm not willing to play hide-and-seek with you. As there hasn't been an album where the test user account could upload to (I had to create one after logging in) I'm pretty sure that you haven't even bothered to test uploading using the test user account specified. Do you actually expect supporters to be keen to look into your issues if you're too lazy to test things first.


Quote from: ronh on July 06, 2009, 11:47:56 AM
however I was a bit confused between the documentation settings which say File upload =1 URI =0 number of boxes fixed which differ from that stated in your posting.
The docs are correct. Phill posted your current settings in an attempt to indicate that they are wrong and should be set according to docs.
Title: Re: batch add files
Post by: ronh on July 06, 2009, 01:58:04 PM
my humble apologies for the confusion I caused. After reading the documentation for the fouth time I note my error in not disbleing the APPROVAL box. I have now done so per the screendump (coppermine.jpg) attached. I have also created an album called "test album" where user test can upload using the password guest.

I have also "approved" the image you kindly uploaded and it appears in the abum - I've also tested uploading another of my images which also appears fine using the user "test" and the album created for that user. However I still have problems with images I've ftp uploaded to the folder called "myftpuploads" which I cannot add to an album using the batch add facility shown in the screendump called batchadd.jpg

I really do appreciate your efforts to help me and apologise for the trouble I've caused you by not fully understanding the user docs provided.

Ron
Title: Re: batch add files
Post by: Joachim Müller on July 06, 2009, 04:30:54 PM
The second screenshot doesn't show very much.

Anyway, when going to http://www.hagley.ismysite.co.uk/gallery/albums/myftpuploads/ I get a 403 forbidden, which is not bad in itself, as it just means that indexes probably are disabled on your machine (which is fine in terms of security).
Please post a deep link to one of the files that you're having issues with when batch-adding.
Title: Re: batch add files
Post by: ronh on July 06, 2009, 07:48:49 PM
I assume you mean something like this
http://www.hagley.ismysite.co.uk/gallery/albums/myftpuploads/DSCF1987.jpg

I hope I have understood your requirements properly.

Just a thought - When installed Coppermine to this site I created the folder "gallery" and then uploaded all the files and folders within cpg14x to it. Could my error be caused by not uploading the parent directory (cpg14x) as well. In other words I did not upload the parent directory AND its contents just the contents.?

Many thanks for your patience.
Title: Re: batch add files
Post by: ronh on July 06, 2009, 10:02:00 PM
Many thanks to all for their help and patience with a newbie - now got it working, I'm afraid I don't know what made it work for me but now problem solved. Thank-you again for all your advise. All I did was to make a new installation on another web-server got that to work first time and then reinstalled on my 34SP server using same method - this time all worked OK

Thanks again all of you.

Ron