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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

FlickerService error


Go to End


17 Posts   8193 Views

Avatar
Apophenian

Community Member, 46 Posts

27 June 2008 at 2:07pm

Yes there is... Strange

Avatar
Willr

Forum Moderator, 5523 Posts

27 June 2008 at 2:18pm

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

Community Member, 46 Posts

27 June 2008 at 2:33pm

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

Forum Moderator, 5523 Posts

27 June 2008 at 2:47pm

try moving

parent::init()

so its the first thing in the function init method

Avatar
Apophenian

Community Member, 46 Posts

27 June 2008 at 3:27pm

Hmmm no joy, still the same error...

Avatar
Apophenian

Community Member, 46 Posts

30 June 2008 at 3:39pm

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

Forum Moderator, 5523 Posts

30 June 2008 at 4:01pm

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

Community Member, 46 Posts

30 June 2008 at 4:04pm

Ah right, my bad...

Will keep trying with the trunk version...