I have installed the ckeditor-wyisiwyg 7.x-1-3 module, enabled it, etc.

Now when I attempt to create a new page/blog etc. a message appears

Fatal error: Call to undefined function media_browser_js() in ...\sites\all\modules\ckeditor\includes\ckeditor.lib.inc on line 759 

A quick search for function media_browser_js() reveals it is part of the media module. Is this a dependency?

Comments

mkesicki’s picture

Status: Active » Postponed (maintainer needs more info)

Please try uncheck "Drupal media module " in "Editor appearance" tab of CKEditor profile installation. Another solution is to install and enable media module for Drupal.
Did you installed or updated CKEditor module ?
If you have updated module, have you run update.php (drupal script)?
Mentioned setting should be disabled on fresh install.

Diogenes’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

Thank you Michal, unchecking the Drupal media module option solved the problem.

I was hoping to use CKFinder, but it seems that the CKFinder library still needs to be in the modules/ckeditor/ckfinder directory. I submitted a patch many moons ago to allow both ckeditor and ckfinder to reside in the libraries dir and had this all working nicely in D6, but the new configuration seems missing in this D7 release.

I'm going to give the other WYSIWYG module a try. I find this module a little confusing.

Cheers
-Dio

zwik’s picture

I was also getting the same fatal error defined by Diogenes. The suggestion of michal_cksource was helpful. The first suggestion of uncheck "Drupal media module " in "Editor appearance" was not for me as i have not checked it.
The second suggestion to install and enable media module for Drupal.was helpful. I downloaded the latest media and file entity module
and installed it. It worked and the error was removed, ckeditor was loaded and appeared in the add content page.

Thanks million times michal_cksource

hotbizindo’s picture

Fatal error: Call to undefined function media_browser_js() in /home/forexjus/public_html/sites/all/modules/ckeditor/includes/ckeditor.lib.inc on line 759

mkesicki’s picture

Please test DEV version. This issue is resolved there.

thehong’s picture

Issue summary: View changes

Wow, I have this issue today :/

jcisio’s picture

4 years ago? There is another issue for that ;)

thehong’s picture

Yeah, I didn't enable wysiwyg_media module. Bad me :D

Diogenes’s picture

Four years ago? There is a module for that. And there is an issue for that.

Picard Face Palm: Picard face palm

Drupal - works as designed!

St_Dekker’s picture

Tested this on a minimal install of Drupal 7.
And the error is fixed in Ckeditor 7.x-1.x-dev

But the 'stable' release causes nearly the same error, as reported for a previous version,
but on line 893. So this does not really work as designed.

Patch: https://www.drupal.org/node/2454933#comment-9737591
works on the 'stable release' (7.x-1.16)

St_Dekker’s picture

Version: 7.x-1.3 » 7.x-1.16
Status: Closed (works as designed) » Needs work

Didn't know I could change the status. So I hope I did this right. :)

jcisio’s picture

Version: 7.x-1.16 » 7.x-1.x-dev
Status: Needs work » Closed (duplicate)
St_Dekker’s picture