Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive

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

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

FlickerService error


Reply

17 Posts   6517 Views

Avatar
Apophenian

27 June 2008 at 2:07pm Community Member, 46 Posts

Yes there is... Strange

Avatar
Willr

27 June 2008 at 2:18pm Forum Moderator, 5511 Posts

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

Avatar
Apophenian

27 June 2008 at 2:33pm Community Member, 46 Posts

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

Avatar
Willr

27 June 2008 at 2:47pm Forum Moderator, 5511 Posts

try moving

parent::init()

so its the first thing in the function init method

Avatar
Apophenian

27 June 2008 at 3:27pm Community Member, 46 Posts

Hmmm no joy, still the same error...

Avatar
Apophenian

30 June 2008 at 3:39pm Community Member, 46 Posts

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?

Avatar
Willr

30 June 2008 at 4:01pm Forum Moderator, 5511 Posts

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.

Avatar
Apophenian

30 June 2008 at 4:04pm Community Member, 46 Posts

Ah right, my bad...

Will keep trying with the trunk version...