I have checked the CKeditor path on my production site and it is correct. I can read the file ckeditor.js but the ckeditor interface doesn't appear. In my local development copy of my website ckeditor works well. Before the last updates of drupal and ckeditor it worked well also on the production site. The roles settings are correct because they are the same of the production copy. What can I do?

Thanks

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

stilllife00’s picture

Title: CKeditor doensn't work on production server » CKeditor doesn't work on production server
mkesicki’s picture

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

Do you see any errors in Firebug (Firefox addon) console ?
Please check admin status report page if there are any errors. What theme do you use ? Do you experience this issue on all browsers ? In which folder did you installed CKEditor library ?

dczepierga’s picture

Priority: Normal » Critical

Hi,
Pls try to check that u have any errors in Firebug (Firefox addon) and there check also NET tab - u should have errors there if something is wrong configured with paths.

Greetings

dczepierga’s picture

Priority: Critical » Normal
stilllife00’s picture

No errors either on firebug console or net tab. Same problem with firefox and chrome. The administration theme is "Seven 7.15" and the path of the file ckeditor.js is /sites/all/modules/ckeditor/ckeditor/

On the admin report page I see one error about the database update but when I try to update it I see another error after the update process:
"menu_attributes module
Update #7001
Failed: PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'module' cannot be null: INSERT INTO {role_permission} (rid, permission, module) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2); Array ( [:db_insert_placeholder_0] => 4 [:db_insert_placeholder_1] => administer menu attributes [:db_insert_placeholder_2] => ) in user_role_grant_permissions() "

could this be related with the CKEditor issue?

EDIT: and now I found another warning:
Warning: file_get_contents(/sites/all/modules/ckeditor/ckeditor/ckeditor.js) [function.file-get-contents]: failed to open stream: No such file or directory in _locale_parse_js_file() (line 1488 on .../public_html/includes/locale.inc).

stilllife00’s picture

Solved unticking the "Aggregate JavaScript files" under /admin/config/development/performance

Is this the only way?

dczepierga’s picture

@stillife00, do u try to reproduce this with last DEV version of CKEditor module?

stilllife00’s picture

Sorry I was really busy and I still am. I will try the dev version in the next days and let you know

monsoon’s picture

Same problem...

rbester’s picture

Same issue. CKeditor appears fine on my local development server but disappears on the production online server (hosted at WestHost). Both have the same latest versions of CKeditor, same Drupal installation (JS aggregation etc.)

One more thing I have noticed, when trying the "Edit summary" mode, the editor does show up on the production server. It also shows up when there is no content at all inside the editor field. So, the editor fails to show up only when content exists. Any ideas?

rbester’s picture

Problem solved!

Changing the Apache configuration file to the Drupal recommended did the trick:

<Directory "/var/www/html">
   RewriteEngine on
   RewriteBase /
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
</Directory>

Drupal was first installed on a sub-domain on this server, I forgot to change httpd.conf when it moved to production. Oooops.

dczepierga’s picture

All problems like this:

Warning: file_get_contents(/sites/all/modules/ckeditor/ckeditor/ckeditor.js) [function.file-get-contents]: failed to open stream: No such file or directory in _locale_parse_js_file() (line 1488 on .../public_html/includes/locale.inc).

was related with paths in CKEditor after enable cache/aggregation.
Try to download last DEV version (#1847662: [D7] Add support for CKEditor v4) where engine responsible for paths generation is rewritten.

Greetings

stilllife00’s picture

Solved using the last dev-module and using the CSS of Ckeditor instead of the ones of the theme (under the options of the profile of Ckeditor)

dczepierga’s picture

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

Problem is solved after last DEV version, so i closed this issue.

Greetings

jwilson3’s picture

Version: 7.x-1.9 » 6.x-1.x-dev
Category: Support request » Bug report
Issue summary: View changes
Status: Closed (fixed) » Needs review
FileSize
479 bytes

We're on 6.x-2.4+52-dev and still hitting this issue when CSS/JS aggregation enabled on Drupal 6, CKEditor (via wysiwyg module) doesnt load.

this was our fix (in patch format):

@@ -342,7 +342,7 @@ function wysiwyg_load_editor($profile) {
         $files = $editor['js files'];
       }
       foreach ($files as $file) {
-        drupal_add_js($editor['js path'] . '/' . $file);
+        drupal_add_js($editor['js path'] . '/' . $file, 'module', 'footer');
       }
       // Load CSS stylesheets for this editor.
       $files = array();

Status: Needs review » Needs work

The last submitted patch, 15: wysiwyg-js-aggregation-D6-1804828-15.patch, failed testing.

jwilson3’s picture

Title: CKeditor doesn't work on production server » JS Aggregation breaks wysiwyg editor on Drupal 6