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 wanted to try out the latest and greatest so am trying to install the Drupal module Beta1 along with the 3.1 beta of the editor. I'm getting the following:
Fatal error: Call to undefined function _ckeditor_script_path() in /home/....../sites/all/modules/ckeditor/ckeditor.install on line 56
I'm using Drupal 6 with the Acquia Marina theme. Any suggestions?
Comments
Comment #1
mephir CreditAttribution: mephir commentedHave you got ckeditor.lib.inc in includes directory ? I cannot confirm this bug.
Comment #2
carlwohlforth CreditAttribution: carlwohlforth commentedThanks for the support, I appreciate it!
Turns out some files were left out when I uploaded the module. When I double checked and copied the missing files everything seems to work. Thanks!
Now I need to find a more accurate way to upload files... Good thing I just said I was having a problem with my installation rather than blame something else. :)
Comment #4
benlotter CreditAttribution: benlotter commentedFatal error: Call to undefined function _ckeditor_script_path() in /hermes/bosweb/web220/b2203//public_html/sites//modules/ckeditor.install on line 56
In case this helps someone else, contrary to the ckeditor site (http://docs.cksource.com/CKEditor_3.x/Developers_Guide/Installation), you have to install those not in your root directory but in the module directory (..modules/ckeditor/ckeditor/).
I followed the link from the Drupal / ckeditor project page to the other site. Perhaps right near that link, you could put instructions where to unzip the files. It would have saved me 75 minutes of upload, test, fail, research (found this page), browsing the module directories, stumble upon answer, delete, upload again, re-attempt module install, error, phpMyAdmin, drop tables, re-install module,
.
Say, during install, why don't you check the directory thing first before creating the table in the db. Also, an error message that said where to place cdeditor files would have been helpful. This would make for a more user-friendly installation.
Comment #5
benlotter CreditAttribution: benlotter commentedFatal error: Cannot redeclare ckeditor_install() (previously declared in /hermes/bosweb/web220/b2203//public_html/sites//modules/ckeditor/ckeditor.install:44) in /hermes/bosweb/web220/b2203//public_html/sites//modules/ckeditor.install on line 211
2.5 hours later and still stuck trying to get a clean install. ~sigh~
Comment #6
wwalc CreditAttribution: wwalc commentedThe last eror message looks reallly strange. If you're sending files via FTP, please use another client. It looks like ckeditor.install file is broken (and possibly other files as well).
Comment #7
flossaway CreditAttribution: flossaway commentedWanted to add my experience, in case it helps someone else and also ask for help with my new problem:
Old problem - fixed:
I also got the same error - Fatal error: Call to undefined function _ckeditor_script_path() in /home/....../sites/all/modules/ckeditor/ckeditor.install on line 56.
After reading this post I realised that Godaddy File Manager didn't upload any of the directories (ckeditor; includes; plugins; translations). Only the files in the main directory were uploaded. I could not get the File Manager to upload entire directories, not sure if its because of Godaddy or because of the CKEditor..
I created all the directories and uploaded their files manually, one by one, and the error did disappear but then I got an error message that file CKEditor.js is not installed at all.
This version of CKEditor was downloaded from http://drupal.org/project/ckeditor and unzipped using 7-Zip.
According to the README text, the package was missing many components including - ckeditor.js, config.js, contents.css and the directories: "skins", "themes", "lang", "images". Again, not sure if the package is the problem or that 7-Zip didnt extract the files correctly.
New and active problem:
I went ahead and downloaded the latest version from the website http://ckeditor.com/download, and again File Manager failed to upload the directories so I had to create them manually.
After reading the comment that benlotter posted I installed it in sites/all/modules/ckeditor/ckeditor (also the location recommended in the README text of the previous package) and not in the root directory, but now CKEditor doesn't appear in:
administer > site building > module > list.
I double-checked the correct directory structure found on README in the previous installation package and I seem to have all the necessary files.
I also cleared cashed data.
Drupal version: 6.19, front-end theme: Framework, administrator: theme Minnelli.
Does anybody have an idea how to fix this?
Comment #8
flossaway CreditAttribution: flossaway commentedComment #9
flossaway CreditAttribution: flossaway commentedOk, in the interest of saving face and maybe helping other people who forgot the basics of website building, Im sharing my findings:
1. Silly me, I totally forgot about FTP upload. Using my FileZilla I managed to upload all the files and everything works perfectly.
I now know that whenever I get this error message - Fatal error: Call to undefined function - the first thing to do is to double-check that all the files were uploaded.
2. Also figured out that the download packages are not either or, but they needed to be combined in order to have CKEditor working properly.
In the package downloaded from http://drupal.org/project/ckeditor there are 4 directories: ckeditor, includes, plugins and translations.
In the directory ckeditor there is a text file called COPY_HERE. Following the instructions, I downloaded the latest version from http://ckeditor.com/download and unzipped it into the directory ckeditor in the other package.
I then uploaded the entire directory (using FileZilla) to sites/all/modules/ckeditor (and not to the root directory as explained in http://ckeditor.com/download),
enabled it under administer > site building > module > list and all is well.
Comment #10
clayhaus CreditAttribution: clayhaus commentedHaving similar problem w/ both the ckeditor and the fckeditor (if I try to enable that). I am configuring a local drupal instance (via xampp) and so far no problems installing any other modules except the above. Whether I put the unpacked ckeditor directory in any of the below paths I continued to get messages such as <>
Paths tried:
C:\xampp\htdocs\drupal\sites\all\Modules\ckeditor
C:\xampp\htdocs\drupal\sites\all\Modules\ckeditor\ckeditor
C:\xampp\htdocs\drupal\modules\ckeditor
C:\xampp\htdocs\drupal\modules\ckeditor\ckeditor
I've also tried both the installer on the ckeditor site (ckeditor_3.4.1.tar) as well as the one on the drupal site (ckeditor-6.x-1.2.tar).
Frustrating. Any suggestions?
Comment #11
flossaway CreditAttribution: flossaway commentedDefinitely shouldn't be in the last two:
C:\xampp\htdocs\drupal\modules\ckeditor
C:\xampp\htdocs\drupal\modules\ckeditor\ckeditor
Did you tried EITHER ckeditor_3.4.1.tar OR ckeditor-6.x-1.2.tar, or did you combine them?
Comment #12
clayhaus CreditAttribution: clayhaus commentedeither...did not try combined
Comment #13
flossaway CreditAttribution: flossaway commentedI totally missed that too at first, extract the ckeditor_3.4.1.tar into the directory ckeditor in ckeditor-6.x-1.2.tar and then upload the entire directory to sites/all/modules/ckeditor..
Comment #14
clayhaus CreditAttribution: clayhaus commentedWell, that was rather arcane but it worked! Thanks much @flossaway!