frankmullenger / silverstripe-gallery

Image gallery for SilverStripe 3
23 stars 17 forks source link

[Notice] Trying to get property of non-object #21

Open macka601 opened 10 years ago

macka601 commented 10 years ago

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?

pinkp commented 8 years ago

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?

friizu commented 8 years ago

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 ...