Download & Extend

CKeditor doesn't work on production server

Project:CKEditor - WYSIWYG HTML editor
Version:7.x-1.9
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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

Comments

#1

Title:CKeditor doensn't work on production server» CKeditor doesn't work on production server

#2

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 ?

#3

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

#4

Priority:critical» normal

#5

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).

#6

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

Is this the only way?

#7

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

#8

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

#9

Same problem...

#10

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?

#11

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.

#12

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

#13

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)

#14

Status:postponed (maintainer needs more info)» closed (fixed)

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

Greetings

nobody click here