Hi all,
I've been using ImageGallery to display a slideshow. Last night I went to add more images to the slideshow using Admin --> Files & Images --> Upload - This is something I've done before successfully, last night when I then went to the slideshow page to link the uploads in the photos tab the images came up as broken (ie they didn't show thumbnails of the images) so I unlinked them. When I then tried to refresh the webpage in my browser I cam up with the following warning:
[Notice] Trying to get property of non-object
GET /costumes/album/
Line 351 in /home/kidscost/public_html/image_gallery/code/ImageGalleryPage.php
Source
342 }
343
344 public function PrevAlbum()
345 {
346 return $this->adjacentAlbum("prev");
347 }
348
349 public function AlbumTitle()
350 {
351 return $this->CurrentAlbum()->AlbumName;
352 }
353
354 public function SingleAlbumView()
355 {
356 if($this->Albums()->Count() == 1) {
357 $this->current_album = $this->Albums()->First();
Trace
* ImageGalleryPage_Controller->AlbumTitle()
* call_user_func_array(Array,Array)
Line 409 of ViewableData.php
* ViewableData->XML_val(AlbumTitle,,1)
Line 63 of .cache.home.kidscost.public_html.image_gallery.templates.Layout.ImageGalleryPage_album.ss
* include(/home/kidscost/public_html/silverstripe-cache/.cache.home.kidscost.public_html.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(costumes/album/)
Line 115 of main.php
I'm using SS 2.3.1 and am assuming I'm using the latest builds of the DOM and ImageGallery modules (I downloaded them about 2 weeks ago). I did have a search on the SS forums and elsewhere and did come across other people having similar issues with galleries but I couldn't find any fixes.