Hi SSadmin,
The following error message appears:
ERROR [Warning]: rename(/home/httpd/vhosts/website.nl/httpdocs/silverstripe/assets/image-gallery/New-ImageGalleryPage/,/home/httpd/vhosts/website.nl/httpdocs/silverstripe/assets/image-gallery/Gallery-4/) [<a href='function.rename'>function.rename</a>]: No such file or directory
IN POST /silverstripe/admin/EditForm
Line 421 in /home/httpd/vhosts/website.nl/httpdocs/silverstripe/sapphire/filesystem/File.php
Source
======
412: // Only throw a fatal error if *both* before and after paths don't exist.
413: if(!file_exists($pathBeforeAbs)) throw new Exception("Cannot move $pathBefore to $pathAfter -
$pathBefore doesn't exist");
414:
415: // Check that target directory (not the file itself) exists.
416: // Only check if we're dealing with a file, otherwise the folder will need to be created
417: if(!file_exists(dirname($pathAfterAbs))) throw new Exception("Cannot move $pathBefore to
$pathAfter - Directory " . dirname($pathAfter) . " doesn't exist");
418: }
419:
420: // Rename file or folder
* 421: $success = rename($pathBeforeAbs, $pathAfterAbs);
422: if(!$success) throw new Exception("Cannot move $pathBeforeAbs to $pathAfterAbs");
423: }
424:
425:
426: // Update any database references
427: $this->updateLinks($pathBefore, $pathAfter);
Trace
=====
<ul>rename(/home/httpd/vhosts/website.nl/httpdocs/silverstripe/assets/image-gallery/New-ImageGalleryPage/,/home/httpd/vhosts/website.nl/httpdocs/silverstripe/assets/image-gallery/Gallery-4/)
line 421 of File.php
File->updateFilesystem()
line 339 of Folder.php
Folder->updateFilesystem()
line 368 of File.php
File->onAfterWrite()
line 1056 of DataObject.php
DataObject->write()
line 91 of ImageGalleryPage.php
ImageGalleryPage->checkFolder()
line 63 of ImageGalleryPage.php
ImageGalleryPage->onAfterWrite()
line 1056 of DataObject.php
DataObject->write()
line 749 of LeftAndMain.php
LeftAndMain->save(Array,Form,SS_HTTPRequest)
line 329 of Form.php
Form->httpSubmission(SS_HTTPRequest)
line 143 of RequestHandler.php
RequestHandler->handleRequest(SS_HTTPRequest)
line 161 of RequestHandler.php
RequestHandler->handleRequest(SS_HTTPRequest)
line 147 of Controller.php
Controller->handleRequest(SS_HTTPRequest)
line 282 of Director.php
Director::handleRequest(SS_HTTPRequest,Session)
line 125 of Director.php
Director::direct(/admin/EditForm)
line 127 of main.php
</ul>