silverstripe-gallery icon indicating copy to clipboard operation
silverstripe-gallery copied to clipboard

[Notice] Trying to get property of non-object

Open macka601 opened this issue 10 years ago • 2 comments

I have Version 3.1.5 of SS installed, and the 1.1 version of the gallery.

I get this error when i add an image and try to edit the caption.

I think that there's no data being returned from the caption query. Original problem line seems to be 369 of GalleryUploadField.php

Any thoughts to what i can do?

macka601 avatar Aug 19 '14 05:08 macka601

I have exactly this issue.. detailed here: http://stackoverflow.com/questions/33066305/silverstripe-3-gallery-module-1-1-editform-error-trying-to-get-property-of-a Do we know why this happens? Or how to resolve it?

pinkp avatar Oct 11 '15 20:10 pinkp

I have same problem, I was able to hide that notice on GalleryUploadField.php i just added if (isset($joinObj)) on line 372 and end } line 384, but still it would be nice if captions can be added before save, or at least if we can disable edit button before its functional ...

friizu avatar Nov 03 '15 08:11 friizu