17488 Posts in 4473 Topics by 1978 members
| Go to End | Next > | |
| Author | Topic: | 6026 Views |
-
Re: FlickerService error

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
-
Re: FlickerService error

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
-
Re: FlickerService error

27 June 2008 at 2:47pm
try moving
parent::init()
so its the first thing in the function init method
-
Re: FlickerService error

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?
-
Re: FlickerService error

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.
-
Re: FlickerService error

30 June 2008 at 4:04pm
Ah right, my bad...
Will keep trying with the trunk version...
| 6026 Views | ||
| Go to Top | Next > |


