Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Media Manager - Form Field type 'mediafinder' #1211

Closed
hjfigueira opened this issue Jun 15, 2015 · 11 comments
Closed

Media Manager - Form Field type 'mediafinder' #1211

hjfigueira opened this issue Jun 15, 2015 · 11 comments

Comments

@hjfigueira
Copy link

Hello,

When using an form widget with type 'mediafinder' the system throws an exception.

throw new SystemException(Lang::get('backend::lang.partial.not_found_name', ['name' => $partialPath])); at line 61

Aparently the file 'widgets/form/partials/_field_mediafinder.htm' cant be found, so i searched for this file literaly everywhere, (even github), but nothing.

@Shahiem
Copy link

Shahiem commented Jun 15, 2015

Same bug.

@jonpxpx
Copy link

jonpxpx commented Jun 15, 2015

I can confirm the same.

@daftspunk
Copy link
Member

This feature is introduced in Build 269 make sure you have updated and are using edgeUpdates

@jonpxpx
Copy link

jonpxpx commented Jun 15, 2015

$value is pulled through as an array throwing this error:

substr() expects parameter 1 to be string, array given
/modules/cms/FormWidgets/mediafinder/partials/_image_single.htm line 19

Likely anything else after will throw the same error?

Sorry for re-opening.

@jonpxpx
Copy link

jonpxpx commented Jun 16, 2015

Just for the other guys, dont try adding this to an attachMany field... This was human error and my rookie mistake and is what causes the above problem :) 👍

@jonpxpx
Copy link

jonpxpx commented Jun 16, 2015

I did hit an issue in the end...

To replicate:
Set image, save and close.
Go back to image, it no longer shows the thumbnail with the delete icon.

Imgur

On a quick look through the console, it's not pulling in the source path.

Imgur

Also, I assumed there would be a way to potentially use the .thumb() helper on the front-end, I understand that it wouldn't work based on it being a string saved, but what options do we potentially have here as a user could select an image that is huge in size?

The path is also a relative path from the media directory and we have no way of determining whether that's in storage/uploads or storage/media (I have 2 folders for my app atm).

Would it be possible to {{ post.featured_image|storage }} or something similar?

Hopefully the above helps somewhat.

@hjfigueira
Copy link
Author

@jonpxpx guess you should open a new issue, the same problem is happening to me too.

@jonpxpx
Copy link

jonpxpx commented Jun 17, 2015

Yes, already did @hjfigueira it's here #1215

@hjfigueira
Copy link
Author

👍

@arbuuuud
Copy link

arbuuuud commented Apr 1, 2017

type: Cms\FormWidgets\MediaFinder
instead of
type: mediafinder

@octobercms octobercms locked and limited conversation to collaborators Apr 5, 2017
@daftspunk
Copy link
Member

Please open a new issue if this still exists for anyone.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

5 participants