Hi, I have the following Problem with ImageGalary Rev. 129 (downloaded it yesterday).
I have a clean blackcandy installation of Silverstripe for a client for testing. I installed DataObjectManager and swfuploader (all revisions from yesterday) and ImageGalary. The Backend is working fine (added a second Album and added a few pictures to both Albums).
When I visit my Galary Page I see both Albums (without a previewpic) but when I click on an Album I get the following Error:
[Notice] Undefined index:
GET /bilder/album/Default-Album
Line 382 in /usr/www/users/joh/image_gallery/code/ImageGalleryPage.php
Source
373 $files = DataObject::get(
374 singleton(str_replace("_Controller","",$this->class))->itemClass,
375 "AlbumID = {$current_album->ID} AND ImageGalleryPageID = {$this->ID}",
376 null,
377 "",
378 $limit
379 );
380 if($files) {
381 foreach($files as $file) {
382 $file->RelAttr = ImageGalleryPage::$attrs[$this->GalleryUI]['rel'];
383 $file->ClassAttr = ImageGalleryPage::$attrs[$this->GalleryUI]['class'];
384 }
385 }
386 return $files;
387 }
388 else
Trace
* ImageGalleryPage_Controller->Items()
Line 395 of ImageGalleryPage.php
* ImageGalleryPage_Controller->GalleryItems()
* call_user_func_array(Array,Array)
Line 319 of ViewableData.php
* ViewableData->obj(GalleryItems,,1)
Line 70 of .cache.usr.www.users.joh.image_gallery.templates.Layout.ImageGalleryPage_album.ss
* include(/usr/www/users/joh/silverstripe-cache/.cache.usr.www.users.joh.image_gallery.templates.Layout.ImageGalleryPage_album.ss)
Line 354 of SSViewer.php
* SSViewer->process(ImageGalleryPage_Controller)
Line 346 of SSViewer.php
* SSViewer->process(ImageGalleryPage_Controller)
Line 175 of Controller.php
* Controller->handleAction(HTTPRequest)
Line 107 of RequestHandler.php
* RequestHandler->handleRequest(HTTPRequest)
Line 122 of Controller.php
* Controller->handleRequest(HTTPRequest)
Line 28 of ModelAsController.php
* ModelAsController->handleRequest(HTTPRequest)
Line 277 of Director.php
* Director::handleRequest(HTTPRequest,Session)
Line 121 of Director.php
* Director::direct(bilder/album/Default-Album)
Line 115 of main.php