Yes there is... Strange
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.
- Previous 10 entries
- 1
- Page 22(current)
- 3
- Next 10 entries
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
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
try moving
parent::init()
so its the first thing in the function init method
Hmmm no joy, still the same error...
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?
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.
Ah right, my bad...
Will keep trying with the trunk version...
- Previous 10 entries
- 1
- Page 22(current)
- 3
- Next 10 entries