CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Fatal error after disabling Drupal Wysiwyg module
Pages: [1]

Author Topic: Fatal error after disabling Drupal Wysiwyg module  (Read 1199 times)

Rick Cunningham

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 3
    • Landings Men's Golf Association
  • CiviCRM version: 4.5.7
  • CMS version: Drupal 7.34
Fatal error after disabling Drupal Wysiwyg module
April 04, 2013, 12:02:45 pm
I've been trying to find a better wysiwyg editor and have installed ckeditor module 7.x-1.12 along with ckeditor library 4.2
I had an old version 3.6.3 coeditor that worked with wysiwyg but when I updated the library, wysywyg wouldn't recognize it. So that's when I installed the ckeditor module. However, when I started to enable ckeditor module, it popped up a message saying it was incompatible with wysiwyg and that I should disable wysiwyg first. I unchecked the enabled box and hit the save configuration button and immediately was locked out of everything inside drupal and civi with the following error.

Fatal error: Call to undefined function wysiwyg_get_profile() in /home/cagtown/www/www/sites/all/modules/civicrm/drupal/civicrm.module on line 365

After a while my good friend and CiviSavant Hershel Robinson helped me by commenting out the offending line, but I can't re-enable it without going back to the crash state. I have read that installing with some of these editors the uninstallation process doesn't properly clean up the database. I would be very happy to uninstall ckeditor and it's library, then clean up the database manually (if I knew how to do so) and then start over looking for a decent editor for Drupal and Civi to share.

Does anyone have any idea how I can get this working again? Needless to say I'm very uncomfortable with a civicrm.module file with lines commented out!

If it's useful, here's the context of the line commented out - note that apparently civi needs to be aware of some drupal modules and this is where that happens.

{
      //we have to ensure that wysiwyg is loaded since
      //pages load only with ajax callbacks
      $formats = filter_formats();
      foreach ($formats as $id => $format) {
     // HAD TO COMMENT THIS LINE OUT!!  wysiwyg_get_profile($id);
      }
      $path = drupal_get_path('module', 'filter');
      drupal_add_js($path . '/filter.js');
      drupal_add_css($path . '/filter.css');
    }
« Last Edit: April 05, 2013, 06:34:08 am by Rick Cunningham »

awasson

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 7
  • Living in a world of Drupal / CiviCRM
    • My Company: Luna Design
  • CiviCRM version: Latest
  • CMS version: Drupal 6/7/8
  • MySQL version: 5.x
  • PHP version: 5.3.x
Re: Fatal error after disabling Drupal Wysiwyg module
April 04, 2013, 02:05:43 pm
Are you using "Drupal's" Rich Text Editor within CiviCRM?

I don't recall where I saw it, perhaps inside the mail settings section but I do remember playing around with a setting that allowed me to use WYSIWYG inside CiviCRM instead of the native CK or TinyMCE editors. My guess is that you have that enabled somewhere in CiviCRM settings and when you removed the Drupal module CiviCRM didn't know what to do.
My CiviCRM Extension Workshop: https://github.com/awasson

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Fatal error after disabling Drupal Wysiwyg module
April 04, 2013, 04:34:00 pm

Seems like a few people hit this issue at the same time, including me :)

We've patched this for 4.3, and if we the drupal function does not exist, we reset the wysiwyg editor setting to null within civicrm

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Fatal error after disabling Drupal Wysiwyg module

This forum was archived on 2017-11-26.