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 ?
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
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
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
see http://62.238.239.228:88/copper
please contact me over email for login details
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
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 !!!
Repeat:
Quote from: GauGau on August 19, 2004, 07:30:38 AMThis is imo a matter of improper server setup.
GauGau
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