Re bonjour
J'ai maintenant une nouvelle erreur qui semble liée à un chemin inexistant
ERROR [Warning]: copy(/var/www/vhosts/LAURENCEKIBERLAIN.NET/httpdocs/sitenew//sitenew/assets/image-gallery/paris/paris/_resampled/rotatecounterclockwise-pariggi2.jpg) [<a href='function.copy'>function.copy</a>]: failed to open stream: No such file or directory
IN GET /sitenew/ImageGalleryManager_Controller/rotateimage/397/ccw?flush=1
Line 226 in /var/www/vhosts/LAURENCEKIBERLAIN.NET/httpdocs/sitenew/image_gallery/code/ImageGalleryManager.php
Source
======
217:
218:
219: }
220:
221: public function rotateimage()
222: {
223: if($image = DataObject::get_by_id("ImageGalleryImage", $this->urlParams['ID'])) {
224: $url = $this->urlParams['OtherID'] == 'cw' ? $image->RotateClockwise()->URL :
$image->RotateCounterClockwise()->URL;
225: $original_file = $image->Filename;
* 226: if(copy(Director::baseFolder().'/'.$url, Director::baseFolder().'/'.$original_file)) {
227: $image->flushCache();
228: $image->clearResampledImages();
229: }
230: echo $image->SetHeight(200)->URL . "?t=".time();
231: }
232: }
Trace
=====
<ul>copy(/var/www/vhosts/LAURENCEKIBERLAIN.NET/httpdocs/sitenew//sitenew/assets/image-gallery/paris/paris/_resampled/rotatecounterclockwise-pariggi2.jpg,/var/www/vhosts/LAURENCEKIBERLAIN.NET/httpdocs/sitenew/assets/image-gallery/paris/paris/pariggi2.jpg)
line 226 of ImageGalleryManager.php
ImageGalleryManager_Controller->rotateimage(SS_HTTPRequest)
line 193 of Controller.php
Controller->handleAction(SS_HTTPRequest)
line 143 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(/ImageGalleryManager_Controller/rotateimage/397/ccw)
line 127 of main.php
</ul>