Despite following the installation instructions in the README.txt file, CKEditor would not invoke.

Opening Chrome's inspector showed me a 404 error:

Uncaught [CKEDITOR.resourceManager.load] Resource name "drupalbreaks" was not found at "/sites/all/libraries/ckeditor/plugins/drupalbreaks/plugin.js".

Disabling drupalbreak in the configuration for the text input filter stops this problem. Why isn't ckeditor finding the correct plugins directory?

CommentFileSizeAuthor
#17 ckeditor.jpeg63.52 KBhaggins
#14 drupal_screen.png157.86 KBmkesicki

Comments

dczepierga’s picture

Hi,

Do u have DEV version from 2011-Aug-25?

Greetings

dczepierga’s picture

Status: Active » Postponed (maintainer needs more info)
mkesicki’s picture

Title: drupalbreak plugin and CKEditor 3.6.2 » drupalbreak plugin and CKEditor 3.6.1

One thing , for now the latest version of CKEditor is 3.6.1 and there is no version CKEditor 3.6.2 at this moment.
I changed ticket title.
@Kyle Skrinak If the version of CKEditor is wrong now please correct it.

dczepierga’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

In last DEV version we fix it, i found bug so pls update last DEV and check it.
If it doesn't help pls reopen it.

Greetings

Screenack’s picture

Status: Closed (fixed) » Active

I'm using:

; Information added by drupal.org packaging script on 2011-08-25
version = "7.x-1.x-dev"
core = "7.x"
project = "ckeditor"
datestamp = "1314273904"

and, to be clear, when I enable:
Plugin for inserting Drupal teaser and page breaks. (buttons: DrupalBreak, DrupalPageBreak)
at
/admin/config/content/ckeditor/edit/CKEditor -> Editor Appearance
The ckeditor field will not load with the 404 error that I describe.

ps: @michal_cksource; thanks for correcting my typo. I am using 3.6.1

dczepierga’s picture

Status: Active » Closed (fixed)

@Kyle Skrinak, it's fixed in DEV version from 2011-Aug-29. I commit fix for it today :)

Greetings

Screenack’s picture

Sorry, got to re-open the ticket.

Still not fixed, identical error.

219Uncaught [CKEDITOR.resourceManager.load] Resource name "drupalbreaks" was not found at "/sites/all/libraries/ckeditor/plugins/drupalbreaks/plugin.js".

There is a difference, however, I now have 58 plugins.js loading (didn't yesterday) but all from libraries/ckeditor/plugins. That is the same directory the module is using for the drupalbreak plugin, but that one remains in the modules/ckeditor/plugins/drupalbreaks

I appreciate your quick attention!

Screenack’s picture

Status: Closed (fixed) » Active
dczepierga’s picture

Status: Active » Postponed (maintainer needs more info)

Could u try to go to CKEditor profile which u use there and try to resave it?

Greetings

mkesicki’s picture

Have you run update.php (Drupal script) after upgrade CKEditor module ?
Remember to clear all drupal cache after this.
Re-saving profile is also good idea as @dczepierga wrote.

If this doesn't help please check if you have correct settings in "Path to CKEditor plugins dir ", "Local path to CKEditor plugins dir: " field in CKEditor Global profile configuration in "Advanced settings" tab.

Screenack’s picture

Status: Postponed (maintainer needs more info) » Active
Issue tags: +configuration, +ckeditor

Yes, I tried those things initially. drush updb rendered "No database updates required." Nevertheless, I've tried those suggestions again. Nope, still same error

So, my current directory structure for ckeditor:

sites/all/libraries/ckeditor/ckeditor.php: PHP script text
sites/all/modules/ckeditor/ckeditor.info: ASCII English text

admin/config/content/ckeditor/editg settings:

Path to CKEditor * "%m/ckeditor" (which reports current site as: sites/all/modules/ckeditor/ckeditor)
Local path to CKEditor: "" (which reports current site as: Current path: sites/all/libraries/ckeditor)

Note: If I set this field to "sites/all/libraries/ckeditor" OR "sites/all/modules/ckeditor"
I also get the 404 error for the plugin. Interestingly, the "Status Report" page only reports ckeditor version when I leave that field blank. It is as if the "Local path to CKEditor" is munging input?

For kicks, I copied the ckeditor (editor, not module files) directory into sites/all/modules/ckeditor, i.e., sites/all/modules/ckeditor/ckeditor but that made no difference.

Here the process I am using per change attempt:

  1. Changed above settings, submit via [ Update Global Profile ]
  2. At admin/config/content/ckeditor/edit/CKEditor, enabled "Plugin for inserting Drupal teaser and page breaks. (buttons: DrupalBreak, DrupalPageBreak)"
  3. Clear all caches (using drush cc)
  4. Create new content at node/add/page
  5. Error when trying to render the body ckeditor-enabled field: 219Uncaught [CKEDITOR.resourceManager.load] Resource name "drupalbreaks" was not found at "/sites/all/modules/ckeditor/ckeditor/plugins/drupalbreaks/plugin.js".
mkesicki’s picture

Status: Active » Postponed (maintainer needs more info)

What settings do you have for these fields

"Path to CKEditor plugins dir " and 
"Local path to CKEditor plugins dir"

You wrote about

"Path to CKEditor" and 
"Local path to CKEditor"

settings

Screenack’s picture

Huh. My "CKEditor Global Profile" which is at admin/config/content/ckeditor/editg, only shows three fields.

I'm using the labels as presented by that page.

Reading from top to bottom:

  1. the first field, with the label "Path to CKEditor *" has the value "%m/ckeditor"
  2. the second field, with the label "Local path to CKEditor" has no value assigned
  3. the third field, with the label "Location of files uploaded with CKEditor in the private folder" is empty

Is there another screen, or is there a file where I should be inputing the path values to plugin directories?

mkesicki’s picture

StatusFileSize
new157.86 KB

Please look on attached screen how "Global Profile" should looks in latest release or DEV version.

Screenack’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Michal,

I see there's another dev update, 8/30. "drush up" failed to update my ckeditor module directory, so I had to erase that directory and reinstall, clear my server and browser caches, and now I see the new global configuration page.

I can now successfully enable the "drupalbreak" plugin, no more 404 errors related to the modules/ckeditor/plugins directory.

Much thanks!

haggins’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev
Status: Closed (fixed) » Active

I updated to 6.x-dev (2011-Sep-24), too. But it doesn't work. The paths shown at the configuration page are all correct.

My site is at localhost in a subdirectory "localhost/tickets". As you can see at the screenshot the path is configured to "/tickets/sites/all/modules/ckeditor/plugins" which seems to be correct. However, ckeditor tries to load "/sites/all/modules/ckeditor/plugins/drupalbreaks/plugin.js?t=A39E".
Am I doing something wrong? Is it necessary to update ckeditor? Currently using 3.2.1

edit: updated to 3.6.2 and still no luck

haggins’s picture

StatusFileSize
new63.52 KB

here's the screenshot

mkesicki’s picture

Status: Active » Postponed (maintainer needs more info)

@haggins do you see any errors in Firebug console (Firefox add-on) ? Please check in Firebug's Net tab if all request are correct. It looks that CKEditor search 'drupalBreaks' plugin in good place. Please check in "Editor appearance" tab of your CKEditor profile if you have drupal break plugin enabled in plugins section.
Please also try run update.php (drupal script) and clear all drupal cache. Please write if that helps or not.

haggins’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

thanks Michal! DrupalBreak plugin was enabled. However, after disabling, saving and enabling it again everything seems to work.