Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » FlickerService error

Our old forums are still available as a read-only archive.

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

Page: 1 2 3
Go to End
Author Topic: 6475 Views
  • Apophenian
    Avatar
    Community Member
    46 Posts

    Re: FlickerService error Link to this post

    Yes there is... Strange

  • Willr
    Avatar
    Forum Moderator
    5497 Posts

    Re: FlickerService error Link to this post

    Ok I think I know the issue - I looked back through the old commits and I have one which fixed a controller issue - http://open.silverstripe.com/changeset?new=55610%40modules%2Fflickrservice%2Fbranches&old=55553%40modules%2Fflickrservice%2Fbranches

    Thats on a custom branch so try that fix. Basically add a parent::init() to your FlickrPage_Controller->init() method just like listed above and try that

  • Apophenian
    Avatar
    Community Member
    46 Posts

    Re: FlickerService error Link to this post

    Thanks for the tip, though my flickrgallery_controller has the following:

    function init() {
    if(Director::fileExists(project() . "/css/FlickrGallery.css")) {
    Requirements::css(project() . "/css/FlickrGallery.css");
    }else{
    Requirements::css("flickrservice/css/FlickrGallery.css");
    }
    Requirements::javascript( "flickrservice/javascript/prototype.js" );
        Requirements::javascript( "flickrservice/javascript/effects.js" );
        Requirements::javascript( "flickrservice/javascript/lightwindow.js" );
       
    Requirements::css("flickrservice/css/lightwindow.css");

    if( $pos = strpos( $_SERVER[ 'HTTP_USER_AGENT' ], 'MSIE' ) ) {
          $version = substr( $_SERVER[ 'HTTP_USER_AGENT' ], $pos + 5, 3 );
          if( $version < 7 ) {
                   Requirements::css( "flickrservice/css/lightwindowIE6.css" );
          }
       }

    parent::init();   
    }

    I am pretty sure I am using the latest version on the silverstripe site... Should I change it so it's the same as the one in svn?

    Cheers again

  • Willr
    Avatar
    Forum Moderator
    5497 Posts

    Re: FlickerService error Link to this post

    try moving

    parent::init()

    so its the first thing in the function init method

  • Apophenian
    Avatar
    Community Member
    46 Posts

    Re: FlickerService error Link to this post

    Hmmm no joy, still the same error...

  • Apophenian
    Avatar
    Community Member
    46 Posts

    Re: FlickerService error Link to this post

    Hi!

    I tried installing the latest version of flickrgallery from svn, which has this line in the controller's init method for flickrgallery.php:

    return Director::redirect(Director::baseURL().'photo-gallery/gallery/'.$this->ID);

    does this mean it has a dependancy on the gallery module?

  • Willr
    Avatar
    Forum Moderator
    5497 Posts

    Re: FlickerService error Link to this post

    I tried installing the latest version of flickrgallery from svn

    The trunk version? That code shouldnt be there - it was custom code from a recent project so it was in the 2.2.2-assets branch rather then the trunk version of the code.

  • Apophenian
    Avatar
    Community Member
    46 Posts

    Re: FlickerService error Link to this post

    Ah right, my bad...

    Will keep trying with the trunk version...

    6475 Views
Page: 1 2 3
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.