The update today breaks the integration with media module
i was using ckeditor_media and they was working fine and today after update i notice the ckeditor local folder is empty again and after downloading it + enabling the plugins needed by ckeditor_media the editor give an error
Only local images are allowed.

CommentFileSizeAuthor
#2 333.png840.5 KBB Boy Breaker

Comments

B Boy Breaker created an issue. See original summary.

B Boy Breaker’s picture

StatusFileSize
new840.5 KB
B Boy Breaker’s picture

Status: Active » Closed (fixed)

ok after enabling the errors in settings.php i see the error message was :
Fatal error: Call to undefined function media_browser_js() ....../ckeditor/includes/ckeditor.lib.inc on line 893
i fixed it by going to /ckeditor/includes/ckeditor.lib.inc at the line 888 there is this code :

module_load_include('inc', 'media', 'includes/media.browser');
$javascript = media_browser_js();
foreach ($javascript as $key => $definitions) {
foreach ($definitions as $definition) {
$function = 'drupal_add_' . $key;
call_user_func_array($function, $definition);
}
}

remove it and add this :
drupal_add_library('media', 'media_browser');
drupal_add_library('media', 'media_browser_settings');

hope this help someone

garbo’s picture

Status: Closed (fixed) » Needs review

Thanks, B Boy Breaker! I experienced the same problem and your solution solved it.

I set the status to "need review" so the module maintainers can check this.

valthebald’s picture

Status: Needs review » Closed (duplicate)