Can't add items to the Gallery

ronbluesphere's picture
ronbluesphere
Mon, 11/09/2015 - 03:58
#1
Can't add items to the Gallery

Regarding the following page: admin/appearance/settings/md_springspray -> Display -> Photogallery

When I click the "Choose Image" button on any gallery-entry, nothing happens and the console reads:

TypeError: Drupal.media is undefined - script.js:387:21

The code which generates the exception is:

function selectMedia() {
                $(document).on('click', ".select-media",function(event){
                    clickMedia = $(this);
                    Drupal.media.popups.mediaBrowser(chooseBackground);  <------------------------ THIS LINE
                    event.preventDefault();
                })
            }

This problem was first encountered after updating Drupal and it's modules.

How can I fix this?

phuonght's picture
phuonght
Mon, 11/09/2015 - 04:04

Hi,

Which module did you update? Please help us check version of module Media. 

ronbluesphere's picture
ronbluesphere
Mon, 12/07/2015 - 07:25

Hi, I updates all modules to the latest versions (and they still are the latest versions after checking now). The Media module-group has the following versioning:

File Entity 7.x-2.0-beta2
IMCE 7.x-1.9
Media 7.x-2.0-beta1
Media Bulk Upload 7.x-2.0-beta1
Media Field 7.x-2.0-beta1
Media Internet Sources 7.x-2.0-beta1
Media WYSIWYG 7.x-2.0-beta1
Media WYSIWYG View Mode 7.x-2.0-beta1
Media: SoundCloud 7.x-2.1
Media: Vimeo 7.x-2.1
Media: YouTube 7.x-3.0
cindy's picture
cindy
Tue, 12/08/2015 - 02:33

Hi,

Please check your email, download the attached module and install it into your site

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.