OrchardCMS / Orchard

Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform.
https://orchardproject.net
BSD 3-Clause "New" or "Revised" License
2.38k stars 1.12k forks source link

MediaPicker "Browse" button not working #2316

Closed orchardbot closed 9 years ago

orchardbot commented 12 years ago

TheMonarch created: https://orchard.codeplex.com/workitem/18489

UPDATE: Please close this bug. Turns out i had disabled the Orchard.MediaPicker module, thinking that Orchard.Fields was replacing that in addition to Contrib.MediaPickerField. I enabled Orchard.MediaPicker and the problem went away.

I have 4 mediaPickerFields attached to a part. When I click the "Browse" button from the editor page of this content part nothing happens. This used to work before migrating to autoroute this week.

The same problem is also present on any editor page with a TinyMce WYSIWYG editor -- clicking the "Insert Update Media" button no longer brings a popup window to browse media. This used to work as well.

(It is possible I messed something up while migrating to autoroute though)

orchardbot commented 12 years ago

TheMonarch commented:

Should Orchard.MediaPicker automatically be enabled when I enable Orchard.Fields? It seems that isn't happening.

orchardbot commented 12 years ago

@sebastienros commented:

There is no such thing as Orchard.MEdiaPIcker. There is a mediapickerfield in the Orchard.Fields module though.

orchardbot commented 12 years ago

@petehurst commented:

You mean, apart from the module called "Orchard.MediaPicker" which has been in Orchard for several versions now?

orchardbot commented 12 years ago

TheMonarch commented:

Orchard.MediaPicker exists. I swear. I think Orchard.Fields should declare a dependency on it, for the "Media Picker" feature.

orchardbot commented 12 years ago

@sebastienros commented:

Oh I see. I made personnaly a Contrib.MediaPickerField. You must be using another one which doesn't work the same way. We won't support migration from this one.

orchardbot commented 12 years ago

TheMonarch commented:

No, I believe Orchard.MediaPicker is part of Orchard core. It seems to be what is driving the popup window that MediaPicker uses (both the MediaPickerField, and the "Insert/Update Media" button in TinyMce editor).

I migrated from using your Contrib.MediaPicker module to Orchard.Fields.

orchardbot commented 12 years ago

TheMonarch commented:

Here's the module in the Orchard source: http://orchard.codeplex.com/SourceControl/changeset/view/dbec3d05e6d1#src%2fOrchard.Web%2fModules%2fOrchard.MediaPicker%2fModule.txt

orchardbot commented 12 years ago

@sebastienros commented:

I see, yes, Fields should have a dependency on MediaPicker, let me fix it