Jump to:

7940 Posts in 1543 Topics by 946 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » rotate in image gallery

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 574 Views
  • servalman
    Avatar
    Community Member
    211 Posts

    rotate in image gallery Link to this post

    Hi

    I tried to search the forum but couldn't find a working solution to this problem :

    The rotate function int the popup seems not to be working this is the error I get.

    Uncaught Exception: Object->__call(): the method 'imagegallerymanager_controller' does not exist on 'ImageDataObjectManager_ItemRequest

    If anyone as a solution please help

    Thank you

  • UncleCheese
    Avatar
    4085 Posts

    Re: rotate in image gallery Link to this post

    There was a bug in ImageGalleryManager::RotateLink(). Just pushed in a fix.

    --------------------
    SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com

  • servalman
    Avatar
    Community Member
    211 Posts

    Re: rotate in image gallery Link to this post

    Thanks Oncle fromage

    Dois juste remplacer ImageGalleryManager.php dans image_gallery/code ? abd run dev/build

    Thanks

  • UncleCheese
    Avatar
    4085 Posts

    Re: rotate in image gallery Link to this post

    Si tu utilises le code sur Github, il ne faudrait que mettre à jour le module avec "git pull"

    --------------------
    SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com

  • servalman
    Avatar
    Community Member
    211 Posts

    Re: rotate in image gallery Link to this post

    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>

    574 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.