Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
mkesicki CreditAttribution: mkesicki commentedPlease 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.
Comment #2
Diogenes CreditAttribution: Diogenes commentedThank 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
Comment #3
zwik CreditAttribution: zwik commentedI 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
Comment #4
hotbizindo CreditAttribution: hotbizindo commentedFatal error: Call to undefined function media_browser_js() in /home/forexjus/public_html/sites/all/modules/ckeditor/includes/ckeditor.lib.inc on line 759
Comment #5
mkesicki CreditAttribution: mkesicki commentedPlease test DEV version. This issue is resolved there.
Comment #6
thehong CreditAttribution: thehong commentedWow, I have this issue today :/
Comment #7
jcisio CreditAttribution: jcisio commented4 years ago? There is another issue for that ;)
Comment #8
thehong CreditAttribution: thehong commentedYeah, I didn't enable wysiwyg_media module. Bad me :D
Comment #9
Diogenes CreditAttribution: Diogenes commentedFour 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!
Comment #10
St_Dekker CreditAttribution: St_Dekker as a volunteer commentedTested 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)
Comment #11
St_Dekker CreditAttribution: St_Dekker as a volunteer commentedDidn't know I could change the status. So I hope I did this right. :)
Comment #12
jcisio CreditAttribution: jcisio commentedComment #13
St_Dekker CreditAttribution: St_Dekker as a volunteer commented