batch upload problem batch upload problem
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

batch upload problem

Started by trebor, August 18, 2004, 09:40:00 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

trebor

hI there,

Batch uploading goes well until i choos "insert selected files" (I choose a album).
"Adding new files to the gallery" - screen appears.  Files are beeing deleted from source ftp path.
When  I click any of the result icons (no icon is displayed) this error apears :

Warning: rename() failed (No such file or directory) in SYS:/Apache2/htdocs/copper/addpic.php on line 39

Warning: getimagesize: Unable to open 'albums/platen/picture18.JPG' for reading. in SYS:/Apache2/htdocs/copper/include/picmgmt.inc.php on line 118

Any Ideas ?

Joachim Müller

coppermine doesn't delete the files in the ftp path. Did you make sure you have CHMODed the albums folder and everything within it as suggested in the docs, so that the script has write permissions there (usually 777 or 755, depending on your server setup)?

GauGau

trebor



Sorry cannot chmod, I do not (yet) run linux.

FYI  the manual upload does work, I assume rights are ok. I've set rights to upload folder as with album & edit.

uploaded files are really gone after clicking "insert selected files" !!

I think the errror(s) are a due to the fact that files are gone at some point.

Any point in the source where I can begin to look ?

Thankx

Robert

Joachim Müller

If you're on Windows, you don't have CHMOD, but you do have file permissions. Set them accordingly.
Coppermine does not move files around, once you uploaded them, they stay where they are. Please provide a link to your page.

GauGau

trebor


see http://62.238.239.228:88/copper

please contact me over email for login details

Joachim Müller

Quote from: trebor on August 18, 2004, 01:44:18 PMsee http://62.238.239.228:88/copper
Certainly not, I won't beg you to let me support you :o
This is imo a matter of improper server setup.

GauGau

trebor

Making the uploaded files readonly after uploading solves the problem ....  it all works ...
All I have to do is flag files readonly every time someone uploads some   :(    nice one !!!

Joachim Müller


hetorakel

#8
Hi All,

i'm a brand new copperminer. I did about 6 or 7 installs last couple of weeks. The last one was one a FREESCO box. On this particular one i was facing the exact same problem as mentioned above.

After som hacking and debugging i found the following:
- all settings are OK including rights
- the file GETS realy deleted
- this happens when renaming the file

Explanation:
In addpic.php there is a part that rename's the file so there are no "illegal" characters in the file's name. This works perfectly fine. But on this setup, when the $sane_name is equal to the $source name so the file rename source and dest filename are the same. In this "special" case the file gets deleted....... I don't know if that's an error in the php-version or the operating-system's file-system. But here's the hack to solve the problem:

In addpic.php add this line:
if ($source!="./".$CONFIG['fullpath'] . $dir_name . $sane_name)

before the line:
 rename($source,  $CONFIG['fullpath'] . $dir_name . $sane_name);



I hope this'll help