When updated from ckeditor 1.4? to 6.x.1.6 I get the following:

An error occurred. http://mysite.com/update.php?id=15&op=do
Fatal error: Call to undefined function ckeditor_plugins_path() in /mylocation/public/sites/all/modules/ckeditor/ckeditor.install on line 484

Commenting out line 484 has no effect... so I'm not certain how valid the error is...

Comments

mkesicki’s picture

Priority: Major » Normal
Status: Active » Postponed (maintainer needs more info)

Have you run update.php (drupal script) after update ? Clear all drupal cache after update is also good idea.
If this doesn't help please save all 3 CKEditor profiles (but this should be not necessary).

Chad_Dupuis’s picture

This -is- when I run update... by "cannot update" I mean update.php fails with the listed error.... sorry if that wasn't clear...

I tried again after saving all three profiles, same error:

An unrecoverable error has occurred. You can find the error message below. It is advised to copy it to the clipboard for reference.
Please continue to the error page
An error occurred. http://mysite/update.php?id=16&op=do
Fatal error: Call to undefined function ckeditor_plugins_path() in /srv/mysite/public/sites/all/modules/ckeditor/ckeditor.install on line 484

mkesicki’s picture

Status: Postponed (maintainer needs more info) » Needs work
dczepierga’s picture

Status: Needs work » Fixed

Ok i found where is problem... u trying to update ckeditor module when it is disabled.
I fix it and commit to GIT, so pls update to last DEV version and try to update or enable CKEditor module and then try to launch update :)

Greetings

Chad_Dupuis’s picture

Status: Fixed » Needs work

I'll try the dev if you think it will work - but ckeditor -is- enabled when I am updating it...

Chad_Dupuis’s picture

tried the dev and I get the same error:

An unrecoverable error has occurred. You can find the error message below. It is advised to copy it to the clipboard for reference.
Please continue to the error page
An error occurred. http://mysite.com/update.php?id=17&op=do
Fatal error: Call to undefined function ckeditor_plugins_path() in /mysite/public/sites/all/modules/ckeditor/ckeditor.install on line 484

dczepierga’s picture

@Chad_Dupuis, could u check that u have in "ckeditor.install" file on lines 477-478 (inside ckeditor_update_6101 function) following lines:

  module_load_include('module', 'ckeditor');
  module_load_include('inc', 'ckeditor', 'includes/ckeditor.lib');

Greetings

Chad_Dupuis’s picture

Yes, here's the lines:

function ckeditor_update_6101() {
module_load_include('module', 'ckeditor');
module_load_include('inc', 'ckeditor', 'includes/ckeditor.lib');

What I don't have anywhere, however, is a ckeditor.lib file?? am I missing a directory somehow? This has been working for a long time and I've never had any problems updating or using ckeditor before though...

dczepierga’s picture

U should have ckeditor.lib.inc file in sites/all/modules/ckeditor/includes. Do u don't see this file there?

Greetings

Chad_Dupuis’s picture

Yes, I have that, I had searched for ckeditor.lib (not .lib.inc)

bscsi’s picture

Also seeing the same error when trying to run update.php after installing 6.x-1.6 CKEditor Module.

Here is the entry from my httpd/error_log file... same as noted above.

[Fri Sep 16 13:03:59 2011] [error] [client 204.227.125.17] PHP Fatal error: Call to undefined function ckeditor_path() in /var/www/html/sites/all/modules/ckeditor/ckeditor.install on line 481, referer: http://xxx.xxx.xxx.xxx/update.php?op=start&id=141

dczepierga’s picture

Status: Needs work » Postponed (maintainer needs more info)

Could u tell me which version of Drupal do u use? Because i cannot reproduce this on windows and linux webserver with last Drupal version.

Greetings

Chad_Dupuis’s picture

I have 6.22 on a linux server (there's a chance it's pressflow, but I don't think this site is - either way I cannot imagine that would matter)...

joeebel’s picture

Same issue here... SUB

bscsi’s picture

Drupal 6.22
MySQL 5.1.52
PHP 5.3.3
Red Hat Enterprise Linux Workstation release 6.1 x64
Apache 2.2.15-9.el6_1.2.x86_64

dczepierga’s picture

@joeebel, u are using linux server too?

Do u have any specific options enabled, like open_basedir, safemode or sth like that?

Greetings

Chad_Dupuis’s picture

on mine, all the settings are default as far as I know...

j0nathan’s picture

Same issue from 6.x-1.5 to 6.x-1.6 in Aegir.

Drush command terminated abnormally due to an unrecoverable error. Error: Call to undefined function ckeditor_path() in /srv/aegir/platforms/XXXXX/sites/all/modules/contrib/ckeditor/ckeditor.install, line 481

Output from failed command : Fatal error: Call to undefined function ckeditor_path() in /srv/aegir/platforms/XXXXX/sites/all/modules/contrib/ckeditor/ckeditor.install on line 481 
j0nathan’s picture

Status: Postponed (maintainer needs more info) » Active

@dczepierga (#12)
I use Pressflow 6.22.104.

j0nathan’s picture

All the sites where I got the error were having the module ckeditor disabled and not uninstalled.

An error like this in Aegir causes migration failure between platforms. So this was not possible to update the module ckeditor normally and it has to be done manually site by site. In fact, I just copied the old version of the module into the site's folder instead of sites/all and I was able to migrate them to the new platform.

Anonymous’s picture

Component: Code » Documentation

I have the same Problem:

Drupal: 6.22
OS: SuSE Enterprise Server 11
PHP: 5.2.6
MySQL: 5.0.67

Greetings

Chad_Dupuis’s picture

I recently added two other updates to my site, ran update.php and then they all went through, including ckeditor.... no more errors on update...

mkesicki’s picture

Title: Cannot Update Ckeditor Undefined Call to ckeditor_plugins_path() » [D6] Call to undefined function ckeditor_plugins_path() when try to update module
Status: Active » Closed (fixed)