When renaming a file or folder, I receive an Error: Unable to rename "filename/ foldername". This happens even though the renaming was successful.
Using latest dev (2013-Mar-24) and elfinder lib.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | elfinder-renaming-files-folders-1965012-6.patch | 2.08 KB | bwaindwain |
Comments
Comment #1
jaspher commentedComment #2
borovinskiy commentedfor rename files (not folders) I add method rename in class elFinderVolumeDrupal
file is: elfinder/inc/elfinder.drupalfs.driver.inc
it method have drupal_json_output, what not usage in original rename method into library/elfinder/php/elFinderVolumeDriver.class.php
Comment #2.0
borovinskiy commentedEdited to include folders.
Comment #3
ph0enix commentedComment #4
gabriel.achille commentedHi
I bundled the patch proposed by borovinskiy in a file (see attached). This is just to get rid of the error message, but for me it does not solve completely the problem as i need to refresh the page afterwards to have the new name taken in account by elfinder.
It is the return value of this operation that seems to be the problem for me...
need works.
Comment #5
HugoJ commentedHi,
I tried this (in file elfinder/inc/elfinder.drupalfs.driver.inc function "function rename($hash, $name)"):
change this :
to
Comment #6
bwaindwain commentedhere's a patch that returns some better values and doesn't trigger php notices in the log. I'm able to rename a file and then delete it without any problems. thx @gabriel.achille
Comment #7
bwaindwain commentedComment #8
nwom commentedThe latest patch seems to not work quite yet. It appears it reduces how often the error is shown, however it is still reproducible when renaming a folder twice in a row in a short period of time.
Comment #9
ph0enix commentedMoved #26