Uncaught TypeError: Cannot read property 'editor_path' of undefined js_51FlPasOwvoZYGA3_P6gE42gJ4acg1rEBRHnUTrjdgg.js:2057
(anonymous function)

Editor does not show up within my theme - a admin theme works fine like seven. Thought this had something to do with recaptcha conflict but after upgrading jquery_update that doesn't seem to be related...

Any help of why I would be getting this error would be very appreciated... I've tried just about everything I know of...

#7 build-config.js_.txt2.49 KBhass
Members fund testing for the Drupal project. Drupal Association Learn more


wwalc’s picture

Status: Active » Fixed

CKEditor Global Profile: "Aggregate ckeditor.js" should be set to Disabled. It should even increase the performance of your website.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

wwalc’s picture

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

Just managed to reproduce it on a site that prints Drupal.settings in a footer.

Adding weight to

drupal_add_js(ckeditor_module_path('url') . '/includes/ckeditor.utils.js', array('type' => 'file', 'scope' => 'footer', 'weight' => 10000));

did not help.

The error comes from includes/ckeditor.utils.js:
window.CKEDITOR_BASEPATH = Drupal.settings.ckeditor.editor_path;

hass’s picture

I also had this error on one site and Aggregate ckeditor.js was DISABLED. Just hit save in Global profile without changing anything and the editor reappeared. Before this I also tried clearing caches several times.

serg2’s picture

I am having this issue too:
Uncaught TypeError: Cannot read property 'editor_path' of undefined
I am not using ReCaptcha.
The error occurs whether Aggregated or not.
If using the CDN (//cdn.ckeditor.com/4.4.7/full-all) the error occurs. If downloading it to libraries (%l/ckeditor) the error does not occur.

hass’s picture

Category: Support request » Bug report
Priority: Normal » Major

Just installed 4.6.2 and it is back again and does not go away.

Found a pattern. 4.6.2 FULL works well, If you build your own by adding Enhanced Image plugin to FULL it stops working.

Uncaught TypeError: Cannot read property 'pathName' of undefined
    at Object.init (ckeditor.js?omt7yp:1235)
    at Object.<anonymous> (ckeditor.js?omt7yp:264)
    at f (ckeditor.js?omt7yp:244)
    at Object.load (ckeditor.js?omt7yp:244)
    at ckeditor.js?omt7yp:263
    at CKEDITOR.resourceManager.<anonymous> (ckeditor.js?omt7yp:251)
    at CKEDITOR.resourceManager.<anonymous> (ckeditor.js?omt7yp:249)
    at f (ckeditor.js?omt7yp:244)
    at Array.B (ckeditor.js?omt7yp:244)
    at u (ckeditor.js?omt7yp:244)
hass’s picture

2.49 KB

The issue seems to be in one or more of the lang JS files. If I only add English to a custom build, all is fine. If I add German it fails to load. But the pathName variable is defined in de.js.

I'm attaching the build js file to repro this.

Auto-detect language is enabled.

rahimian’s picture

I recently installed bartik_responsive theme on my site. Then the ckeditor is not showing in comment field. when I change the active theme to bartik, I have no problem. but when bartik_responsive theme is set as active theme, it not shows the ckeditor in comment field.