Hello,

I went to edit a page and am now receiving an error message:

Toolbar set "DrupalFiltered" doesn't exist.

It doesn't matter which toolbar set I select to use, I still receive this error.

I have made no changes to fckeditor.config.js, and this all happened without any recent tinkering to the module or anything obviously related to it. The problem started with rc5, and after upgrading to rc6 I still receive the error.

I have tried disabling modules, flushing the cache, changing js optimization, swearing, and uninstalling/reinstalling fckeditor. All to no avail.

I don't know if this is helpful, but I took a gander at the fckeditor error_log, and there are a few of these:

PHP Parse error: syntax error, unexpected '.' in [...]/sites/all/modules/fckeditor/fckeditor.config.js on line 107

In one case, the error was line 94.

It may also be useful to know that when I open the page source, this line appears:
oFCK_1.Config['CustomConfigurationsPath'] = "/sites/all/modules/fckeditor/fckeditor.config.js?1229533289";

I don't know what the "?#######" means, but perhaps it's a clue.

Like I said, the problem appears to have come out of the blue, and I don't recall having installed any new modules or run any updates since last using the editor. Goblins perhaps?

Any help would be appreciated!

Comments

wwalc’s picture

"?1229533289" is a timestamp that prevents your browser from invalid caching of fckeditor.config.js, it shouldn't be a problem.

The real problem is here:
PHP Parse error: syntax error, unexpected '.' in [...]/sites/all/modules/fckeditor/fckeditor.config.js on line 107
- PHP parser should not touch fckeditor.config.js because it's not a PHP file.

If you open this file in your browser, it should look exactly the same like the file that exists in the downloaded package. I believe that you will see a blank page or an information about a fatal error instead.

bgibson-glu’s picture

Thanks for the reply. Yes, you're right, when I enter the url to fckeditor.config.js, I receive the same parse error.

Any sense of what's happening here? Does this look like a problem within Drupal, my web host, or perhaps browser? (Though, I've tried this on multiple browsers and multiple computers with the same error.)

I'm pretty new to Drupal and learning as I go along and as I need to do new things. Unfortunately, this problem seems to be falling outside my orbit.

wwalc’s picture

Well... all you need to do is to disable PHP engine for javascript files (or ask server administrator to do this).
Are you sure it is the default setting in the web server? Perhaps there is a setting in the .htaccess that's causing this?
In any case, creating a .htaccess file in modules/fckeditor with the following content:

AddType text/javascript .js

will probably help.

ar-jan’s picture

Confirming! For me this also happened out-of-the-blue. I upgraded from rc4 to rc6. I didn't notice this at first, since I use Firefox. But in IE (7) this happens to me too.

The .htaccess tip didn't work.

bgibson-glu’s picture

Well, after taking a couple of weeks off to enjoy the holidays, it seems the problem has corrected itself (at least for me). I've no idea how or why, but at this point I'm not complaining. Thanks for the help wwalc.

wwalc’s picture

Status: Active » Fixed

It was definitely a server misconfiguration. Anyway, I'm glad that it's working now, marking as fixed.

Status: Fixed » Closed (fixed)

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

killua99’s picture

This problem is cause the .htaccess "AddHandler application/x-httpd-php .js" To solve this you need to edit this line

// Protect PHP code tags (<?...?>) so FCKeditor will not break them when
// switching from Source to WYSIWYG.

to:

// Protect PHP code tags (< ?...? >) so FCKeditor will not break them when
// switching from Source to WYSIWYG.

Add some space between <[:space:]? and ?[:space:]>

And thats it.