I'm having this error in D6.28 (latest) and CKeditor 6.x-1.13 (latest), on the page by which you modify the settings for a certain editor-profile (e.g.: admin/settings/ckeditor/edit/Default):

Fatal error: Call to undefined function jquery_update_get_version() in /var/www/vhosts/domain.com.be/httpdocs/sites/all/modules/ckeditor/includes/ckeditor.admin.inc on line 639

(Cleared the cache, ran update.php)

When the jQuery Update (6.x-2.0-alpha1 - latest) module is switched off, the aforementionned page is accessible again.

I'm not really sure whether I should report this to the maintainer of jQuery Update or CKeditor, so feel free to move it if deemed appropriate.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

knalstaaf’s picture

Issue summary: View changes

closed opening tag code

knalstaaf’s picture

Issue summary: View changes

(link to ckeditor version)

knalstaaf’s picture

Issue summary: View changes

order sentences

knalstaaf’s picture

Project: jQuery Update » CKEditor 4 - WYSIWYG HTML editor
Version: 6.x-2.0-alpha1 » 6.x-1.13

When looking at the file where the error refers to, it seems to be better to move it to the issues of CKeditor first.

knalstaaf’s picture

Project: CKEditor 4 - WYSIWYG HTML editor » jQuery Update
Issue summary: View changes

remove

knalstaaf’s picture

Title: Issue with CKeditor profile settings » Issue with jQuery Update module
Project: jQuery Update » CKEditor 4 - WYSIWYG HTML editor
wwalc’s picture

This is really weird. jquery_update_get_version() is indeed called by CKEditor module but along with a check if that module is actually available:

      if (!module_exists('jquery_update') || jquery_update_get_version() <= 1.2 )
        drupal_add_js($module_drupal_path . '/includes/jqueryUI/jquery-1.4.4.min.js', 'core');

jquery_update_get_version is defined in jquery_update.module

The error is not happening on my local installation to make the debugging process easier :)

This can be easily solved by changing !module_exists('jquery_update') into !function_exists('jquery_update_get_version') though I'd love to understand what's happening here.

Can you verify whether jquery_update.module is not broken on your Drupal installation?

knalstaaf’s picture

Project: jQuery Update » CKEditor 4 - WYSIWYG HTML editor
Version: 6.x-2.0-alpha1 » 6.x-1.13

I'll report back...

wwalc’s picture

Is jquery_update enabled there? I see jQuery 1.2.6.

knalstaaf’s picture

Title: Conflict with CKeditor module » Issue with jQuery Update module

I had disabled the jQuery Update module because our client couldn't access the CKeditor to edit his content. When I enable it, it reads jQuery JavaScript Library v1.3.2, instead of 1.2.6 when it's disabled.

Replacing jQuery Update 6.x-2.0-alpha1 with 6.x-2.x-dev solves this issue though.

So the issue resides in the jQuery update-module after all. Thanks for the swift response, wwalc.

knalstaaf’s picture

Title: Issue with jQuery Update module » Conflict with CKeditor module
Project: CKEditor 4 - WYSIWYG HTML editor » jQuery Update
Version: 6.x-1.13 » 6.x-2.0-alpha1
erald’s picture

Title: Issue with jQuery Update module » Conflict with CKeditor module
Project: CKEditor 4 - WYSIWYG HTML editor » jQuery Update
Version: 6.x-1.13 » 6.x-2.0-alpha1

This is true if you only activate jquery update module (dev version) everything works perfectly but as soon I activate my superfish menu (needs jquery update) things do not work anymore. having then the same issue.

edit >>>

It is working when updating the superfish library to the latest version

NickLitten’s picture

I've had a similar problem and found this as a solution.

It seems that CKEDITOR 4.x needs JQuery 1.5 to work properly. But JQuery 1.5 gives me problems with some older browers that my client is using (IE7/8) so I switch to Jquery 1.8 and the site looks good in IE but suddenly CKEDITOR it not working. Hmmm...

luckily - downloading and installing 2013-May-02 http://ftp.drupal.org/files/projects/jquery_update-7.x-2.x-dev.tar.gz lets me specify a version for the main site and a older version when in ADMIN mode.

Version options
Default jQuery Version
Alternate jQuery version for administrative pages
Optionally select a different version of jQuery to use on administrative pages.

So, I set my theme to always use administration mode (and therefore jquery 1.5) when editing and using CKEDITOR:

/admin/appearance and check 'Use the administration theme when editing or creating content'

Now I view site using JQUERY 1.8 and it works great and edit using 1.5 and CKEDITOR is happy.

NickLitten’s picture

Issue summary: View changes

link to jquery update

markhalliwell’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Drupal 6 reached EOL (end-of-life) on February 24, 2016.