I'm having an intermittent problem with FCK editor on my hosted site, running Drupal 5.5 and the latest version of the FCK editor (2.5.1) with FCK editor module 5.x-2.0-beta. It's very puzzling, and I cannot figure out the cause or the resolve (as the problem comes and goes). Perhaps someone has had the same issue.

The fields (most larger text areas on my site) enabled for FCK editor disappear - in that - the title of the field appears, e.g. "body" but no entry block appears below. I keep having to disable the editor module in order to enter information in any of those fields. When it occurs, it occurs for both roles (Default running DrupalBasic and Administrator running DrupalFull)

The include fields / and force simplified toolbar options are both set to the default values - so that isn't the problem. I notice this problem not while in the middle of making updates and changes, but upon logging in as site admin after a period of time where it appears to be working fine. Some activity on the site seems to trigger it.

My local dev site running the same configuration works fine...

Any insight? I cannot duplicate the problem and it occasionally resolves on it's own for a period of time, only to fritz out again when I least expect it.

Comments

Petuschki’s picture

did you test with different browsers?

It could be a memory problem of the browser...

mcri’s picture

I checked the site with Safari and it does appear to be working in that browser - I'm also having problems with Firefox dropping input format and other post settings since the upgrade to 5.6 (yesterday). So..there may be something to this. I'll keep checking the forums to see what is happening w/Firefox. I do have the latest version.

Thanks for the tip.
mcri

wwalc’s picture

Does the problem described here happen in Firefox or Mozilla?
Firefox has a very nice Firebug extension, Opera has Error Console, did any errors show up there?

nishitdas’s picture

I am facing the same problem for the 5.x-2.1-beta release.
The problem is appears only in FireFox . it works perfectly in IE

wwalc’s picture

nishit: could you open Firebug and paste here any errors that you have found there?

nishitdas’s picture

The error messages found in "Firefox Error Console" are

Error: uncaught exception: Permission denied to call method Location.toString

Error: illegal character
Source File: http://www.site.com/modules/fckeditor/fckeditor/fckconfig.js
Line: 201, Column: 5
Source Code:
FCKCo

Error: FCKConfig.ContextMenu has no properties
Source File: http://www.site.com/modules/fckeditor/fckeditor/editor/js/fckeditorcode_...
Line: 96

Error: C has no properties
Source File: http://www.site.com/modules/fckeditor/fckeditor/editor/js/fckeditorcode_...
Line: 89

Error: uncaught exception: Permission denied to call method Location.toString

=====================================
I have not done any changes in any of the file 5.x-2.0-beta

Though its working in IE, I m also getting a JS error : FCKconfig is undefined.

wwalc’s picture

Do any other errors appear in Firebug?
This doesn't look to me like a bug in a FCKeditor module.
It may be some other module that causes FCKeditor to fail to load.
Did you try to re-upload the FCKeditor to the modules/fckeditor/fckeditor directory?
Perhaps some files are broken?

Deviation’s picture

Component: User interface » Code
Category: support » bug

It appears to be related to the fckeditor\editor\js\fckeditorcode_gecko.js file. I was able to get the editor to display by changing the layout of line 86.

Changed From:
var FCKIcon=function(A){var B=A?typeof(A):'undefined';switch (B){case 'number':this.Path=FCKConfig.SkinPath+'fck_strip.gif';this.Size=16;this.Position=A;break;case 'undefined':this.Path=FCK_SPACER_PATH;break;case 'string':this.Path=A;break;default:this.Path=A[0];this.Size=A[1];this.Position=A[2];}};FCKIcon.prototype.CreateIconElement=function(A){var B,eIconImage;if (this.Position){var C='-'+((this.Position-1)*this.Size)+'px';if (FCKBrowserInfo.IsIE){B=A.createElement('DIV');eIconImage=B.appendChild(A.createElement('IMG'));eIconImage.src=this.Path;eIconImage.style.top=C;}else{B=A.createElement('IMG');B.src=FCK_SPACER_PATH;B.style.backgroundPosition='0px '+C;B.style.backgroundImage='url("'+this.Path+'")';}}else{if (FCKBrowserInfo.IsIE){B=A.createElement('DIV');eIconImage=B.appendChild(A.createElement('IMG'));eIconImage.src=this.Path?this.Path:FCK_SPACER_PATH;}else{B=A.createElement('IMG');B.src=this.Path?this.Path:FCK_SPACER_PATH;}};B.className='TB_Button_Image';return B;}

To This:

var FCKIcon=function(A){
  var B=A?typeof(A):'undefined';
  switch (B){
    case 'number':
    this.Path=FCKConfig.SkinPath+'fck_strip.gif';
    this.Size=16;
    this.Position=A;
    break;
    case 'undefined':
    this.Path=FCK_SPACER_PATH;
    break;
    case 'string':
    this.Path=A;
    break;
    default:
    this.Path=A[0];
    this.Size=A[1];
    this.Position=A[2];
  }
};
FCKIcon.prototype.CreateIconElement=function(A){
  var B,eIconImage;
  if (this.Position){
    var C='-'+((this.Position-1)*this.Size)+'px';
    if (FCKBrowserInfo.IsIE){
      B=A.createElement('DIV');
      eIconImage=B.appendChild(A.createElement('IMG'));
      eIconImage.src=this.Path;
      eIconImage.style.top=C;
    }else{
      B=A.createElement('IMG');
      B.src=FCK_SPACER_PATH;
      B.style.backgroundPosition='0px '+C;
      B.style.backgroundImage='url("'+this.Path+'")';
    }
  }else{
    if (FCKBrowserInfo.IsIE){
      B=A.createElement('DIV');
      eIconImage=B.appendChild(A.createElement('IMG'));
      eIconImage.src=this.Path?this.Path:FCK_SPACER_PATH;
    }else{
      B=A.createElement('IMG');
      B.src=this.Path?this.Path:FCK_SPACER_PATH;
    }
  };
  B.className='TB_Button_Image';
  return B;
}

I still have an error in /fckeditor/fckeditor.utils.js though.
document.getElementById("switch_" + editorInstance.Name) has no properties

I'm not a javascript guru so I'll leave that up to someone else....

Jorrit’s picture

Does the problem still exist for current versions of the module and FCKeditor?

Jorrit’s picture

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

Version: 5.x-2.0-beta » master
Priority: Normal » Critical

Yeah, I am having this problem too.

Currently using Drupal 6.10 + Wysiwyg API 6.x-1.0 + FCKeditor 2.6.4 + IMCE 6.x-1.2

The editor is not show off as the text area blank.

Please, help me with this. Hopefully to hear from you. Thank you.

wwalc’s picture

Version: master » 5.x-2.0-beta
Priority: Critical » Normal

@cloxzime - you're using the WYSIWYG API module, not the FCKeditor module (a dedicated module just for FCKEditor).
Please open an issue in the WYSIWYG issue tracker: http://drupal.org/project/wysiwyg and I'll take a look at it there, also make sure that you have followed the instructions.

pacome’s picture

Hi all,

I'm having the same issue... No error message, but a blank field (covering the real area of the field + filed-title).
I'm working on drupal 5.10, with the official release of FCKeditor module 5x 2.2 and FCKeditor 2.6.4

I tried on Firefox3, Opera 9.62 and Safari 3.2.1 under Mac OS X environnement, with no success...
It doesn't work on my custom theme, and neither on basic Bluemarine Theme.

Any idea and/or news about that ?

Best
-P-

pacome’s picture

Version: 5.x-2.0-beta » 5.x-2.2
Priority: Normal » Critical
Status: Postponed (maintainer needs more info) » Active

I forgot to change the version of the issue from 5.x-2.0 beta to 5.x-2.2

Now it's done ;)

-p-

pacome’s picture

Version: 5.x-2.2 » 5.x-2.0-beta
Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

Oooops !!

it was just a stupid question of permissions on some files.... It's often like that !
I turn the issue back to it's previous status..

-p-

sgdev’s picture

Version: 5.x-2.0-beta » 5.x-2.2

The text entry field is not disappearing for us, but we are seeing the error message "Permission denied to call method Location.toString" in Firebug (with Firefox 3.0.10) on every page where an FCKeditor text area is located. We are using Drupal 5.18, jQuery 1.2.6 (with the jQuery Update module), FCKeditor WYSIWYG 5.x-2.2, and FCKeditor 2.6.4.

The Firebug Console gives us the following information:

Permission denied to call method Location.toString
POST http://www.oursite.com/index.php?q=fckeditor/xss   200 OK   219ms  (misc/jquery.js - line 13)

Line 13 of jquery.js is the eval(function(p,a,c,k,e,r) line. Also worth noting, we are using the JavaScript Aggregator module to combine jQuery with other JavaScript files, to create a single JS file loaded by Drupal.

GET http://www.oursite.com/sites/all/modules/fckeditor/fckeditor/fckstyles.xml   200 OK   73ms  (sites/all/modules/fckeditor/fckeditor/editor/js/fckeditorcode_gecko.js - line 67)

Line 67 of fckeditorcode_gecko.js is the following:

FCKXml.prototype={LoadUrl:function(A){this.Error=false;var B;var C=FCKTools.CreateXmlObject('XmlHttp');C.open('GET',A,false);C.send(null);if (C.status==200||C.status==304||(C.status==0&&C.readyState==4)){B=C.responseXML;if (!B) B=(new DOMParser()).parseFromString(C.responseText,'text/xml');}else B=null;if (B){try{var D=B.firstChild;}catch (e){B=(new DOMParser()).parseFromString(C.responseText,'text/xml');}};if (!B||!B.firstChild){this.Error=true;if (window.confirm('Error loading "'+A+'" (HTTP Status: '+C.status+').\r\nDo you want to see the server response dump?')) alert(C.responseText);};this.DOMDocument=B;},SelectNodes:function(A,B){if (this.Error) return [];var C=[];var D=this.DOMDocument.evaluate(A,B?B:this.DOMDocument,this.DOMDocument.createNSResolver(this.DOMDocument.documentElement),XPathResult.ORDERED_NODE_ITERATOR_TYPE,null);if (D){var E=D.iterateNext();while(E){C[C.length]=E;E=D.iterateNext();}};return C;},SelectSingleNode:function(A,B){if (this.Error) return null;var C=this.DOMDocument.evaluate(A,B?B:this.DOMDocument,this.DOMDocument.createNSResolver(this.DOMDocument.documentElement),9,null);if (C&&C.singleNodeValue) return C.singleNodeValue;else return null;}};
Jorrit’s picture

Category: bug » support

Please try to make a test account that has this problem and send me the details using the contact form.

Jorrit’s picture

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

Closed because of lack of response.