advanced-nova-media-library icon indicating copy to clipboard operation
advanced-nova-media-library copied to clipboard

Call to a member function getMedia() on array

Open iventru opened this issue 5 years ago • 8 comments

iventru avatar Jul 03 '19 06:07 iventru

I use "nova-flexible-content" for images gallery and got error: Call to a member function getMedia() on array

Code:

Flexible::make('Gallery') ->addLayout('Simple content section', 'wysiwyg', [ Images::make('Computer case', 'computer-image-case') ->conversionOnIndexView('thumb') ]

Flexible without Images::make work fine. Images::make without Flexible work fine.

iventru avatar Jul 03 '19 06:07 iventru

I'm experiencing the same issue. This is something that has been raised with Nova Flexible Content too. Would be great if a fix could be implemented between eachother.

chrispage1 avatar Aug 20 '19 11:08 chrispage1

Hi @iventru @chrispage1 I've take a look at the problem. This media package does not follow the nova-field idea perfectly. That's why is is not that easy to fix this issue. For flexible content this package needs to handle the resolution of field values better.

ebess avatar Aug 29 '19 09:08 ebess

Hi @ebess - agreed. I've actually downloaded optix/media which I feel conforms much more nicely. I'm in the progress of writing a field plugin for this package, taking inspiration off of this one (at the moment much lighter)

Optix media works because its optional as to whether a media item is bound to a model or not.

chrispage1 avatar Aug 29 '19 14:08 chrispage1

This is happening also with Nova 2.7 without flexible content

Krato avatar Nov 19 '19 08:11 Krato

I am also experiencing this conflict with Nova-Flexible. bump 😄

cgarofalo avatar Nov 20 '19 20:11 cgarofalo

Any news?

buttjer avatar Jan 31 '20 16:01 buttjer

Any news?

https://whitecube.github.io/nova-flexible-content/#/?id=usage-with-ebessadvanced-nova-media-library

keizah7 avatar Feb 22 '22 15:02 keizah7