Trouble with batch add files Trouble with batch add files
 

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]

Main Menu

Trouble with batch add files

Started by sanderson, September 07, 2008, 08:22:09 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

sanderson

I have been using Coppermine for several years now and I love it.  I just upgraded to ver 1.4.19 but am still having trouble with batch add.  I am getting the error message "There are no folders inside the "albums" folder yet...."  I have tried everything listed in the documentation including turning off the browsing folder option, but since it is an admin issue and not a user issue, I have not included a link to a test account.  No errors occur when uploading using http, only when trying to batch add.

I noticed that the default directory that it is looking in is "/hsphere/local/home/sanderso/wsmoa.org/cpg1419/albums/"  I know that we are not suppose to use a period in a file name, but the period in this path is the file name on the server and I can not change that.  Is there a way to get around including the entire path name?  Or am I way off base with my diagnosis?


Joachim Müller

Turn the browsable batch-add interface off if it doesn't work for you. Known issue on Windows-driven servers.

sanderson

I tried that and it didn't work.  I will just use the html upload until I change servers.  Thank you for the response.

Joachim Müller

Post a deep link to one of the files you're having issues with when uploading.

sanderson

Here is a direct link to the photo 

http://wsmoa.org/cpg1419/albums/ftp_upload/cs06-62.jpg

I was able to upload it using html, but when I try a "batch add" it tells "There are no folders inside the "albums" folder yet...."  It's trying to look in the server directory of "/hsphere/local/home/sanderso/wsmoa.org/cpg1419/albums/" so I assume the 'period' in wsmoa.org is giving it trouble.  No big deal though.....Coppermine is still the best photo album available as far as I'm concerned.  Thanks again.

Joachim Müller

You're right - the period in the folder name is what is causing your issues. Edit searchnew.php, findif (substr($directory,0,1) != ".")and comment that line out by placing two forward slashes in front of it.

vici

I have the same problem, but placing two forward slashes in front of that code doesn't help. could you please take a look? thanks in advance!

http://fashion-allure.com/photos/albums/lorri/Caroline_Trentini/Caroline_Trentini.jpg

Joachim Müller

If you have the same issue, then the same answer applies to you as well:
Quote from: Joachim Müller on September 08, 2008, 07:24:49 AM
Post a deep link to one of the files you're having issues with when uploading.
Additionally, post the full local path.

vici

I've already switched the batch add interface off and placed two forward slashes but it didn't help either

"/hsphere/local/home/poshmadn/fashion-allure.com/photos/albums/"

http://fashion-allure.com/photos/albums/lorri/Caroline_Trentini/Caroline_Trentini.jpg

Joachim Müller

Are you sure that you have edited the proper file and that you have overwritten the copy on your server with the modified version on your local hard disk?

Nibbler

That code just checks for a leading dot (hidden folders). I don't see how it can be causing this problem.

bagpuss

I have just used cpg today for the first time and I also had problems with batch add as noted by a few folk here. I tried all the suggestions with no joy.

I did find something that worked for me though. I had uploaded folders of images, where the folders were named in the form name1&name2 or name1_name2. I took out the & or _ in my folder names and the batch add then immediately began to work again.

I am a very basic user so don't know if this is going to help anyone else but thought if it worked for me it might help someone else.

Sorry if this has been said already but I just got excited when I got it to work!

Joachim Müller

As suggested in the docs: avoid using special chars in folder or files names. The ampersand definitely falls into the category "special chars", particularly into the category "special char that has a special meaning in the www". So yes: don't use those characters. In fact, only use alpha-numerals. The underscore should be safe to use though.

vici

Quote from: vici on September 10, 2008, 12:47:57 PM
I've already switched the batch add interface off and placed two forward slashes but it didn't help either

"/hsphere/local/home/poshmadn/fashion-allure.com/photos/albums/"

http://fashion-allure.com/photos/albums/lorri/CarolineTrentini/Caroline_Trentini.jpg

please kindly check it again, I've changed that code for sure again

Joachim Müller