I have downloaded the laster version : pLoader 2.0.7
I have created a upload folder in piwigo root, and then I cannot upload success with pLoader,the error is : Communication error with http://my URL :500 [add_file] error during file director
but I found there is a buffer folder in upload folder after this.
by the way, I found cannot show the Chinese category name in it.
the following capture are the error and category display screen:
Last edited by winson (2010-02-09 15:24:26)
Offline
Hi Winson,
Can you describe what you have in the "upload" directory on server side?
Do you have write access on "upload" directory?
Offline
Yes, it has full access rights, and there are 3 files in the upload/buffer folder after I uploaded fail:
a2dea1b640da68b9fd9ad80f3c458c00-file-00001.block
a2dea1b640da68b9fd9ad80f3c458c00-thumb-00001.block
index.htm
Offline
I don't understand the upload issue. I need more details.
1) in Localfiles Editor, add:
$conf['ws_enable_log'] = true; $conf['ws_log_filepath'] = 'upload/buffer/log.txt';
2) modify include/ws_functions.inc.php : approximately near to line 1036, in function add_file, after:
$upload_dir = dirname($file_path);
insert
ws_logfile('[add_file] file_path : '.$file_path); ws_logfile('[add_file] upload_dir : '.$upload_dir);
3) try another upload with pLoader
4) display the content of http://www.winsonalbums.com/upload/buffer/log.txt
My intuition leads me to think that the recursive parameter in mkdir does not work on your PHP installation (mkdir works because upload/buffer was created). Can you tell us what is your PHP version precisely?
Offline
Ok, I have finished the setting, now you can see the log file in the path
http://www.winsonalbums.com/upload/buffer/log.txt
my PHP version is 5.0
Offline
And I remind that you're running Windows for your server, right?
Offline
Yes, is that a problem ?
Offline
winson wrote:
Yes, is that a problem ?
Yes, I think this is the problem. Let's find a solution now :-)
Still in the add_file function in include/ws_functions.inc.php, after
$upload_dir = dirname($file_path);
insert
if (substr(PHP_OS, 0, 3) == 'WIN') { $upload_dir = str_replace('/', DIRECTORY_SEPARATOR, $upload_dir); }
And give another try :-)
Offline
Ok, it's works! That's great! Thanks :)
Offline
Offline
I've just fixed the 2 previously listed bugs. The fix is in Piwigo 2.0.9 (soon to be released).
Offline