Take the 2-minute tour ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

I am using WYSiWYG with CK editor. I am getting this error whenever i am trying to access a form with ckeditor.

file_get_contents(MYSITE/sites/default/files/js/wysiwyg/wysiwyg_ckeditor_lMF9rzHK588_LcHaW11FHc_RkSCpdKrS7MgWsyqXXEM.js)

[function.file-get-contents]: failed to open stream: HTTP request failed!

HTTP/1.1 404 Not Found in drupal_build_js_cache() (line 4846 of /var/www/html/dev3/wifh/includes/common.inc).

This file "wysiwyg_ckeditor_lMF9rzHK588_LcHaW11FHc_RkSCpdKrS7MgWsyqXXEM.js" exist with content

window.CKEDITOR_BASEPATH = '/MYSITE/sites/all/libraries/ckeditor/';
share|improve this question
add comment

2 Answers 2

This bug should be fixed in the latest dev snapshot of wysiwyg:

See also http://drupal.org/node/1802394 (which essentially provides a patch for the previous response above).

share|improve this answer
add comment
  1. Edit wysiwyg.module file

  2. Find this drupal_add_js(file_create_url($uri), $default_library_options);`

  3. Replace with this drupal_add_js($uri, $default_library_options);

share|improve this answer
    
Definitely the solution but more explanations are welcome. –  palindrome May 17 at 9:58
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.