Hi UC,
This may very well be an error in my installation, but I've installed image_gallery similar as in the past and when I try to import from existing FileStore images into an album, I get:
[Notice] Trying to get property of non-object
POST /admin/EditForm/field/GalleryItems/UploadifyForm?SecurityID=508831148&ctf[GalleryItems][start]=0&ctf[GalleryItems][per_page]=10&ctf[GalleryItems][showall]=0&ctf[GalleryItems][sort]=SortOrder&ctf[GalleryItems][sort_dir]=&ctf[GalleryItems][search]=&ctf[GalleryItems][filter]=AlbumID_1&ctf[GalleryItems][view]=grid&ctf[GalleryItems][imagesize]=100
Line 140 in .../image_gallery/code/ImageGalleryManager.php
Source
137 public function getPreviewFieldFor($fileObject, $size = 150)
138 {
139 if($fileObject instanceof Image) {
140 $URL = $fileObject->SetHeight($size)->URL;
Do I need to set a relationship in Page.php or Photo.php to fix this? Like, say:
public static $has_many = array (
'Album' => 'Photos'
);
As always, thanks!
Wilson