PHP Fatal error with dexp_layerslider

mulderjoe's picture
mulderjoe
Customer

Hello,

I'm getting an error when attempting to Edit my layerslider slide:

PHP Fatal error: Call to undefined function media_include_browser_js() in modules/drupalexp/dexp_layerslider/dexp_layerslider.module on line 291

Currently using Version: 7.x-1.0-beta of Dexp LayerSlider 

Media module 7.x-2.1

Any ideas?

Thanks!

 

mulderjoe's picture
joe doherty
Customer

Actually, I found a solution on a different post:

Comment:

include_once drupal_get_path('module', 'media') . '/wysiwyg_plugins/media.inc';

Add:

include_once drupal_get_path('module', 'media''/modules/media_wysiwyg/wysiwyg_plugins/media.inc';

Comment:

media_include_browser_js();

Add:

drupal_add_library('media', 'media_browser');

drupal_add_library('media', 'media_browser_settings');