Hi,
I'm using SS 2.3.7 and modules-image_gallery-r390.
The upload and display of images works perfectly, but when i view the "files and Images" tab in the admin section, and then go back to the gallery, the thumbnails icons of the images have turned into a blank file icons (in the photo tab) and when i view the published site the images are missing. When i click on the blank file icon in the gallery under the photo tab i get the following error:
[Notice] Trying to get property of non-object
GET /admin/EditForm/field/GalleryItems/item/15/edit?ctf[GalleryItems][start]=0&ctf[GalleryItems][per_page]=10&ctf[GalleryItems][showall]=0&ctf[GalleryItems][sort]=SortOrder&ctf[GalleryItems][sort_dir]=DESC&ctf[GalleryItems][search]=&ctf[GalleryItems][filter]=AlbumID_3&ctf[GalleryItems][view]=grid&ctf[GalleryItems][imagesize]=100
Line 124 in /home/chipdesi/subdomains/montrosecfa-local/image_gallery/code/ImageGalleryManager.php
Source
115 {
116 $childData = parent::getChildDataObj();
117 $childData->ImageGalleryPageID = $this->controllerID;
118 return $childData;
119 }
120
121 public function getPreviewFieldFor($fileObject, $size = 150)
122 {
123 if($fileObject instanceof Image) {
124 $URL = $fileObject->SetHeight($size)->URL;
125 return new LiteralField("icon",
126 "<div class='current-image'>
127 <div id='preview-image'>
128 <img src='$URL' alt='' class='preview' />
129 <div class='ajax-loader'><img src='dataobject_manager/images/ajax-loader.gif' />". _t('ImageGalleryManager.ROTATING','Rotating')."...</div>
130 </div>
Trace
* ImageGalleryManager->getPreviewFieldFor(ImageGalleryImage,200)
Line 109 of ImageDataObjectManager.php
* ImageDataObjectManager_ItemRequest->DetailForm()
* call_user_func_array(Array,Array)
Line 318 of ViewableData.php
* ViewableData->obj(DetailForm,,1)
Line 36 of .cache.home.chipdesi.subdomains.montrosecfa-local.dataobject_manager.templates.DataObjectManager_popup.ss
* include(/tmp/silverstripe-cache-home-chipdesi-subdomains-montrosecfa-local/.cache.home.chipdesi.subdomains.montrosecfa-local.dataobject_manager.templates.DataObjectManager_popup.ss)
Line 357 of SSViewer.php
* SSViewer->process(ImageDataObjectManager_ItemRequest)
Line 773 of ViewableData.php
* ViewableData->renderWith(DataObjectManager_popup)
Line 880 of DataObjectManager.php
* DataObjectManager_ItemRequest->edit(HTTPRequest)
Line 129 of RequestHandler.php
* RequestHandler->handleRequest(HTTPRequest)
Line 143 of RequestHandler.php
* RequestHandler->handleRequest(HTTPRequest)
Line 143 of RequestHandler.php
* RequestHandler->handleRequest(HTTPRequest)
Line 143 of RequestHandler.php
* RequestHandler->handleRequest(HTTPRequest)
Line 119 of Controller.php
* Controller->handleRequest(HTTPRequest)
Line 280 of Director.php
* Director::handleRequest(HTTPRequest,Session)
Line 121 of Director.php
* Director::direct(/admin/EditForm/field/GalleryItems/item/15/edit)
Line 118 of main.php
Anyone else experienced this? I tried downloading the newest version of image gallery and using the imageGalleryManager.php which did not help, so put the old version back in.
Cheers,
Rob