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.
After upgrading to 7.1.11 - ckeditor no longer shows up and there are 2 uncaught exceptions. The above is the first one - the other is:
uncaught exception: [CKEDITOR.editor] The instance "edit-body-und-0-value" already exists. This error seems to be resolved by dis-abling the wysiwyg module - though they worked well together in 7.1.9
I use thelibaraies module and the ckeditor itself is installed in the libraries directory.
This was working fine in 7.1.9
Comments
Comment #1
mkesicki CreditAttribution: mkesicki commentedCKEditor module and WYSIWYG module are not compatible. They can not work well together.
You should disable Wysiwyg module if you wish to use CKEditor module.
Wysiwyg module turns off our module automatically...
Which version of CKEditor library do you use ?
Please clear drupal and browser cache.
Comment #2
letapjar CreditAttribution: letapjar commentedDid allof those things - thanks.
The drupalbreaks issue has nothing to do with wysiwyg module. As I mentioned - I turned off wysiwyg and still had the drupalbreak issue (after clearing caches etc.) the double slash in front of "sites" may be causing the error? I have no idea where in the code this is being called.
I'm using the same version of CK editor that worked with version 7.1.9 of this module: 3.6.5
for now I've reverted back to 7.1.9 as this was working fine for me.
Comment #3
mkesicki CreditAttribution: mkesicki commentedIf you can, please check with latest version, if you have any errors reported in admin status report page.
You can also try disable teaser plugin in CKEditor module configuration. Of course , I write about latest version of CKEditor module.
Comment #4
derikson CreditAttribution: derikson commentedI'm experiencing this problem as well, using the ckeditor 4 git checkout. I've narrowed the problem down to commit 54ce0f9c186055af48e729ccf682e70f47db3b13 . It looks like the extra slash at the start of the path is breaking it.
Comment #5
caktux CreditAttribution: caktux commentedHaving the same issue, not using wysiwyg module at all. derikson's solution worked for me.
Comment #6
Marshall_Kennard CreditAttribution: Marshall_Kennard commentedHere are the errors from Chrome, all pointing to a broken URL:
Failed to load resource http://sites/all/modules/ckeditor/plugins/drupalbreaks/plugin.js?t=C3HA5RM
Failed to load resource http://sites/all/modules/ckeditor/ckeditor/plugins/tableresize/plugin.js...
Uncaught [CKEDITOR.resourceManager.load] Resource name "drupalbreaks,drupalbreaks" was not found at "//sites/all/modules/ckeditor/plugins/drupalbreaks/plugin.js?t=C3HA5RM". /sites/all/modules/ckeditor/ckeditor/ckeditor.js?mez74k:24
Failed to load resource http://sites/all/modules/ckeditor/plugins/drupalbreaks/plugin.js?t=C3HA5RM
Failed to load resource http://sites/all/modules/ckeditor/ckeditor/plugins/tableresize/plugin.js...
Uncaught [CKEDITOR.resourceManager.load] Resource name "drupalbreaks,drupalbreaks,drupalbreaks,drupalbreaks,drupalbreaks,drupalbreaks,drupalbreaks" was not found at "//sites/all/modules/ckeditor/plugins/drupalbreaks/plugin.js?t=C3HA5RM". /sites/all/modules/ckeditor/ckeditor/ckeditor.js?mez74k:24
Failed to load resource http://sites/all/modules/ckeditor/plugins/drupalbreaks/plugin.js?t=C3HA5RM
Failed to load resource http://sites/all/modules/ckeditor/ckeditor/plugins/tableresize/plugin.js...
Uncaught [CKEDITOR.resourceManager.load] Resource name "drupalbreaks,drupalbreaks,drupalbreaks,drupalbreaks,drupalbreaks,drupalbreaks,drupalbreaks" was not found at "//sites/all/modules/ckeditor/plugins/drupalbreaks/plugin.js?t=C3HA5RM". ckeditor.js:24
Comment #7
dczepierga CreditAttribution: dczepierga commented@Marshall_Kennard, which version of CKEditor do u use? GIT version?
Comment #8
indaloweb CreditAttribution: indaloweb commentedin ckeditor 7.x-1.11 same problem
Comment #9
dczepierga CreditAttribution: dczepierga commentedbut which package of CKEditor v4 library do u use? one from website or from GIT repo?
Comment #10
indaloweb CreditAttribution: indaloweb commentedI have trid with :
CKEditor 3.6.5 (10 Oct 2012)
CKEditor 3.6.4 (17 Jul 2012)
Comment #11
wodzik CreditAttribution: wodzik commentedHaving the same issue. CKEditor 3.6.5 and 4.0
Comment #12
caktux CreditAttribution: caktux commentedPlease revert commit 54ce0f9c186055af48e729ccf682e70f47db3b13 from #1850626: [D7] Wrong path to external plugins loaded by hook
Comment #13
wwalc CreditAttribution: wwalc commentedOkay, I tried to reproduce it, to no avail. That slash was in fact causing a problem in a different case, so we need to be able to reproduce the error you have instead of just reverting that change.
Can you provide the following details?
1. CKEditor 3.6.5 or CKEditor 4.0? (standard package?)
2. From CKEditor global profile (
admin/config/content/ckeditor/editg
) the following details:Please write both: the thing you have in text field and the value of "Current path:" written below each field.
3. The URL where Drupal is installed. You may use example.com instead of real domain. (e.g. the site is http://mysite.com you may just write it is http://example.com If Drupal is installed in a subfolder instead: http://mysite.com/blog/ then you may write: http://example.com/blog/)
4. Disable JavaScript aggregation and caching just to see if it helpded. Clear cache (in Drupal and in browser)
Comment #14
Marshall_Kennard CreditAttribution: Marshall_Kennard commentedI tried different versions of CKEditor 3.6.x. The above post was using CKEditor 3.6.3.
The following errors are from CKeditor 3.6.5 standard release
GET http://sites/all/modules/ckeditor/plugins/drupalbreaks/plugin.js?t=C3HA5RM ckeditor.js:16
GET http://sites/all/modules/ckeditor/ckeditor/plugins/tableresize/plugin.js... ckeditor.js:16
Uncaught [CKEDITOR.resourceManager.load] Resource name "drupalbreaks,drupalbreaks,drupalbreaks,drupalbreaks,drupalbreaks,drupalbreaks,drupalbreaks" was not found at "//sites/all/modules/ckeditor/plugins/drupalbreaks/plugin.js?t=C3HA5RM". ckeditor.js:24
Here are the module config settings:
Path to CKEditor: %m/ckeditor
Current path: /sites/all/modules/ckeditor/ckeditor
Local path to CKEDitor: empty
Current path: ./sites/all/modules/ckeditor/ckeditor
Path to CKEditor plugins directory: %m/plugins
Current path: /sites/all/modules/ckeditor/plugins
Local path to CKEditor plugins directory: empty
Current path: ./sites/all/modules/ckeditor/plugins
Drupal is installed at the document root. http://example.com/
JavaScript aggregation and caching is not set. Tested on virgin Chrome browser.
Comment #15
derikson CreditAttribution: derikson commentedI'm using CKEditor 4.0 from the git repository.
I get two errors:
"NetworkError: 500 Internal Server Error - http://localhost/all/modules/contrib/ckeditor/plugins/drupalbreaks/plugi..."
uncaught exception: [CKEDITOR.resourceManager.load] Resource name "drupalbreaks" was not found at "//sites/all/modules/contrib/ckeditor/plugins/drupalbreaks/plugin.js?t=CAPD".
Note, for the first error, I am not running Drupal from localhost, yet it's trying to load the plugin from localhost.
Path to CKEditor:
%l/ckeditor
Current path: /sites/all/libraries/ckeditor
Local path to CKEditor:
blank
Current path: ./sites/all/libraries/ckeditor
Path to the CKEditor plugins directory:
%m/plugins
Current path: /sites/all/modules/contrib/ckeditor/plugins
Local path to the CKEditor plugins directory:
blank
Current path: ./sites/all/modules/contrib/ckeditor/plugins
Drupal is installed at http://example.com
JavaScript aggregation is disabled, and clearing the cache didn't do anything.
In javascript, Drupal.settings.ckeditor.input_formats[1].loadPlugins.drupalbreaks.path is "//sites/all/modules/contrib/ckeditor/plugins/drupalbreaks/". I believe that extra slash at the beginning is causing ckeditor to try to load the plugin from localhost.
Comment #16
Marshall_Kennard CreditAttribution: Marshall_Kennard commentedThe problem appears to be an extra slash added to the path in includes/ckeditor.lib.inc line 538.
The slash is only needed if the ckeditor_base_path('relative') is not empty.
The following patch fixes it:
Comment #17
jennypanighetti CreditAttribution: jennypanighetti commented#16 fixed it for me, THANKS!
Comment #18
janka CreditAttribution: janka commented#16 didn't work for me (using CKEditor 3.6.3)
$render["%plugin_dir%"] containes the base path and then the pluggin is loaded from %base_path%%plugin_dir% making the base path appear twice in the URL.
Replacing
$render["%base_path%"] = ckeditor_base_path('relative') . '/';
with
$render["%base_path%"] = '';
in function ckeditor_plugins_render($plugins) in ckeditor/includes/ckeditor.lib.inc fixed the problem.
I'm no drupal expert and don't know if it will work with other editor versions.
Comment #19
BOGUƎ CreditAttribution: BOGUƎ commented#16 did the trick here too, thanks!
Comment #20
moreorless CreditAttribution: moreorless commentedSimilar issue here. I'm using CKEditor 3.6.5, located in sites/all/libraries. After upgrading from module version 7.1.9 to 7.1.11 the editor vanishes. None of the span containers are loaded. Global settings for the module are:
Path to CKEditor - %l/ckeditor
Local path to CKEditor - blank
Path to the CKEditor plugins directory - %m/plugins
Local path to the CKEditor plugins directory - blank
Path to CKFinder - %m/ckfinder
Use toolbar Drag&Drop feature - enabled
Under Performance, caching and bandwidth optimization are all switched off.
Neither of the fixes at #16 and #18 resolve the problem.
I'm getting no discernible error notices.
Tried disabling a bunch of other modules (ckeditor link, diff, revisioning, cck, imce, fields, css injector) but with no effect.
Rolling back to 7.1.9 returns the editor.
Comment #21
Awesome_ian CreditAttribution: Awesome_ian commentedSame problem.
Solved by changing skin editor and re-save ckeditor profil.
Editor came back !
Comment #22
dczepierga CreditAttribution: dczepierga commentedReally thx all for help and feedback to fix this problem!
But i still cannot reproduce this... i don't understand one thing - how this patch
$render["%base_path%"] = ckeditor_base_path('relative') . (ckeditor_base_path('relative') ? '/' : '');
can fix problem with e.g. drupalbreak plugin?Drupalbreak plugin has path:
%plugin_dir%drupalbreaks/
, so it's not related with%base_path%
flag, so how can fix problem with it? Or i don't understand something?Double slash in the beggining is for me only when we have path like
%base_path%%plugin_dir%
then of course it could be problem somewhere, but there is only%plugin_dir%
...If u can pls update to last DEV to check that and in
ckeditor.lib.inc
around line 554 it's var$plugins
(in functionckeditor_plugins_render
) check this variable before flags replacing... if it possible pls paste here what u get there and paths which u get after render...Probably i don't see sth really easy or i do sth wrong...
Maybe someone with this bug can give me access to webserver to fix it asap - if yes pls PM me access data to your webserver...
Again really thx for help, i really appreciate this.
Comment #23
vinmassaro CreditAttribution: vinmassaro commentedRan into this error as well with the editor not loading. Saving my 'Advanced' CKEditor profile makes this error go away immediately.
Comment #24
Marshall_Kennard CreditAttribution: Marshall_Kennard commentedHere is some debugging results from ckeditor.lib.inc
After $render is populated on line 543...
Then each plugin is processed...
My global config settings are shown on #14,
I am not sure why %base_path% is added, as it already appears to be included in %plugin_dir% and %editor_path%.
Of course, setting a profile that does not use one of these plugins will work just fine.
Comment #25
Marshall_Kennard CreditAttribution: Marshall_Kennard commentedI just loaded the latest dev version: version = "7.x-1.11+4-dev" and found no change.
Here are the two plugin paths before translation:
DEV PLUGINS PATH: %base_path%%plugin_dir%drupalbreaks/
DEV PLUGINS PATH: %base_path%%editor_path%plugins/tableresize/
The $render array is the same as above.
Where is the %base_path% token coming from?
Comment #26
Marshall_Kennard CreditAttribution: Marshall_Kennard commentedRecompiling the profiles (with no changes) fixed the problem. The %base_path% token is gone. Apparently, this mush have been left over from the previous version.
Here is how the plugin paths look now:
DEV PLUGINS PATH: %plugin_dir%drupalbreaks/
DEV PLUGINS PATH: %editor_path%plugins/tableresize/
I just confirmed that the %base_path% tokens were present in the loadPlugins array in original ckeditor_settings table prior to the upgrade from 7.x-1.9 to 7.x-1.11.
Comment #27
moreorless CreditAttribution: moreorless commentedCan confirm that resaving the CKEditor module Profiles (with no changes) as described by Marshall in #26 returns the editor following upgrade from 7.1.9 to 7.1.11. Thanks very much.
Comment #28
dczepierga CreditAttribution: dczepierga commentedAgain really thx for help.
I write update for CKEditor module to fix paths in the database during update.php... following paths are replaced:
All changes are commited to GIT (diff).
After update to last DEV, pls run update.php to fix paths in database.
Pls review this fix and write does it help or not.
Really thx for all your work to help fix this bug.
Greetings
Comment #29
vinmassaro CreditAttribution: vinmassaro commentedThe updated dev release appears to fix this problem. One thing to note is that plugins like TableResize are not a part of CKEditor 4, so you will get JS errors until you add the plugin back in. It can be downloaded from http://ckeditor.com/addon/tableresize.
Comment #30
vinmassaro CreditAttribution: vinmassaro commentedAs a followup, any CKEditor plugins that do not exist try to load and prevent the editor from loading. In my case, I was missing the Tableresize plugin, and the syntaxhighlighter plugin. After adding the Tableresize plugin, that error went away. The problem I have now is that the syntaxhighlighter plugin is not for CKEditor 4, and it is enabled on 20+ sites of mine. I can't upgrade to CKEditor 4 cleanly without somehow first disabling this plugin programmatically. Can you account for this in the schema update - disable any plugins that were enabled but are no longer found - or provide code I can add to programmatically disable plugins inside the update hook? Thanks!
Comment #31
rroche CreditAttribution: rroche commentedFix #16 worked for me, we just updated to latest and edited those lines it worked great
Comment #32
dczepierga CreditAttribution: dczepierga commented@vinmassaro, i'm really happy does it work... but what to do when someone first update CKEditor module with old CKEditor library, and after that update CKEditor library to v4?
After this he would have this same situation like u have with plugins...
Comment #33
dczepierga CreditAttribution: dczepierga commented@vinmassaro, i've add check of available plugins in profiles: #1870270: [D7] Disable plugins which not exists and are stored in ckeditor profiles.
It is checked when you enter CKEditor configuration page.
Comment #34
CatDrup CreditAttribution: CatDrup commentedThank you also ! This worked for me as well. Just resaving the module Profiles.
Comment #35
vinmassaro CreditAttribution: vinmassaro commented@dczpierga - can you clarify how we should be building the CKEditor library?
When I use the standard package, it seems I have to add plugins into the module plugin directory, sites/all/modules/contrib/ckeditor/plugins.
If I use CKBuilder and choose the plugins I want, these get bundled and seem to load automatically without needing to configure them in the CKEditor profile (other than button placement). Thanks.
Comment #36
dczepierga CreditAttribution: dczepierga commented@vinmassaro, it's hard to say how build CKEditor library or which package use, because it depends what u need exactly.
If u want to have full functionality of CKEditor v3 u can do this in 2 ways:
1) U can download Full package and add following plugins from addons repo:
- Autogrow
- Table Resize
- Styles parser
- SCAYT or WebSpellChecker
All this downloaded plugins u can add to "sites/all/modules/ckeditor/plugins" and then it should be available in CKEditor profile in Plugins - u can enable there all and they should work.
2) U can use builder, where u choose Full preset and add: autogrow, table resize, styles parser plugins and after this u build package and upload to your Drupal. If u want to use SCAYT or WebSpellChecker download it from addons and upload it to "sites/all/modules/ckeditor/plugins". After this all this plugins u should see in CKEditor profile where u can manage it.
All preset package has Moono theme by default, but if u use CKBuilder u can choose old Kama skin. Moono i think is better because it's load much faster and u can use any color of interface (u can configure it in CKEditor profile).
U can also download Kama skin from addon repository, then u can add it to "skin" directory in CKEditor library dir.
Link to the standard package which u give here it is Basic package, where u have only basic editing option - so if u need sth more try to download Full package and then u will see what u have there and what'd u need.
If u have more questions pls write, i will try to answer asap.
Greetings
Comment #37
f1mishutka CreditAttribution: f1mishutka commentedAfter upgrading CKEditor module I had the issue with "Uncaught [CKEDITOR.resourceManager.load] Resource name "drupalbreaks,drupalbreaks" was not found at "//sites/all/modules/ckeditor/plugins/drupalbreaks/plugin.js?t=C3HA5RM" message.
Solved it by disabling and then re-enabling "Drupal teaser" plugin in every CKEditor profile.
Comment #38
dczepierga CreditAttribution: dczepierga commented@f1mishutka, it was fixed here (comment #28) and should work without problem in last DEV version - u must run update.php to fix this problem.
Greetings
Comment #39
dczepierga CreditAttribution: dczepierga commentedComment #40
mkesicki CreditAttribution: mkesicki commentedComment #41
rowanprice CreditAttribution: rowanprice commentedThanks Ian -- #21 worked great for us :)
Comment #42
iloveyoutxtvbs CreditAttribution: iloveyoutxtvbs commentedSimilar problem. Upgraded to a new build and immediately discovered that CKEditor was no longer loading on page load.
#21 worked like a charm.
Thank you!
Comment #43
Mina.Habashy CreditAttribution: Mina.Habashy commentedPERFECT :))))
SOLVED
Thanks Ian -- #21
Comment #44
kjala CreditAttribution: kjala commentedAs mentioned by many users the problem is with the %base_path% token. I went to /admin/config/content/ckeditor and resaved all the CKEditor profiles. That helped resolve the problem
Comment #45
stewart.adam CreditAttribution: stewart.adam commentedSame issue here, suggestion in #44 solved it. I think either %base_path% needs to be portable or official documentation should be updated to reflect the procedure for refreshing %base_path% (i.e. resaving profiles).
Comment #46
joshtaylor CreditAttribution: joshtaylor commented#44 solved it for me, for:
stat failed for /sites/all/modules/ckeditor/ckeditor.config.js
edit: It's back, what the.
Comment #47
attheshow CreditAttribution: attheshow commented#44 worked for me.
Comment #48
harshadananjaya CreditAttribution: harshadananjaya commented#21 is working for me ....
thanks....
Comment #49
cthshabel CreditAttribution: cthshabel commentedWhew! #44 solved it for me. Simple fix. Thanks everyone for confirming this worked.
Comment #50
marcoka CreditAttribution: marcoka commentedthank you, also had this problem. #44 worked
Comment #51
AlexHolsgrove CreditAttribution: AlexHolsgrove commentedI ran into this same issue - remember to check to see if there are any database updates to run as this resolved the broken paths ifor me.