I'm having trouble getting fckeditor and aspell working correctly. I've installed fckeditor and it all works fine. Then I configured spell checking using Speller Pages & aspell following the instructions at these links.

http://drupal.fckeditor.net/tricks#2
http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/S...

I now see the Spell Check button and when I click it, it launches the Spell Check window and briefly announces "spell check in progress...". Then nothing. If I click on any of the buttons (except Cancel) I get a message box saying "Error: word frame not available". Same behaviour in both IE6 & FF. (Someone else seems to have hit the same problem: http://drupal.org/node/117374)

Any ideas?

Drupal 6.9, FCKeditor module 6.x-1.3, fckeditor 2.64, aspel 0.60.3 (The problem was also present using 6.x-1.3-rc7)

Thanks,
Kevin.

Comments

kgm’s picture

Component: User interface » Miscellaneous
Status: Active » Closed (fixed)

Turns out to have been a server-side issue. Although cPanel/PHP Configuration indicated that safe_mode was Off, it turns out my SP had disabled exec(). If you're here because you're encountering the symptoms reported in the base topic, create a page containing the code below, select the PHP Filter, and preview it. Either you'll see the version of aspell or an error message.

	<?php print(exec('aspell -v')); ?>

I'm closing this, though IMHO there's room for improved error handling either in this module, or FCKeditor itself.

nathanmcginty’s picture

I've got to jump in here.

Same 6.x drupal version and latest non-beta of FCK editor.
I've confirmed that my Hosting has aspell installed on the linux servers with the script...

print(exec('aspell -v'));

I get a nice little "how do you do" from the aspell installed on the servers.

So, I've edited the config files and have the spelling toolbar enabled for fck.

Here's the weird thing - this is the error I get when I fire up the speller in fck editor:

Error executing `"C:\Program Files\Aspell\bin\aspell.exe" -a --lang=en_US --encoding=utf-8 -H --rem-sgml-check=alt < /tmp/aspell_data_vXomTO 2>&1`\nsh: C:\Program Files\Aspell\bin\aspell.exe: command not found

Which, obviously, shows that the program is looking for the windows version. But I have no earthly idea where it's coming from. I totally deleted the windows line from the spellchecker.php file. I've cleared the browser & site cache numerous times.

It still pops up. Where the h*(*k is that call coming from?

nathanmcginty’s picture

Status: Closed (fixed) » Active
wwalc’s picture

Make sure that you have changed the right file:
modules\fckeditor\fckeditor\editor\dialog\fck_spellerpages\spellerpages\server-scripts\spellchecker.php

nathanmcginty’s picture

Status: Active » Closed (fixed)

(another sheepish grin).

Well, I did change the right file, but then i reuploaded everything
and started over last week. I went back in and changed it again.

Works great now. I didn't touch it for a few days. I kept flushing
the cache, but maybe it didn't take.

Anyway, works fine now. Closing again.

Thanks!

Tsegaye’s picture

Issue tags: +fckeditor, +spellchecker

I solved this error:

Error executing `"C:\Program Files\Aspell\bin\aspell.exe" -a --lang=en_US --encoding=utf-8 -H --rem-sgml-check=alt < /tmp/aspell_data_vXomTO 2>&1`\nsh: C:\Program Files\Aspell\bin\aspell.exe: command not found

by commenting the windows prog line (first line below)

//$aspell_prog = '"C:\program files\Aspell\bin\aspell.exe"'; // by FredCK (for Windows)
$aspell_prog = 'aspell'; // by FredCK (for Linux)

and enabled the linux version (second line).

I tested it on Windows Operating System (xp), firefox and IE browsers and works fine.

Tsegaye’s picture

Title: Problem using aspell with FCKeditor » Aspell interface not having 'add to dictionary' button in FCKeditor
Component: Miscellaneous » User interface
Status: Closed (fixed) » Active

Aspell is perfectly working on my Drupal installation. It has the following buttons:

- Ignore once
- Ignore all
- Replace once
- Replace all

What if I want to add a new word to the dictionary. It was good if there was a button:

- Add this to dictionary.

Is there any other way to add a word to the Aspell dictionary? I have succeeded by adding a custom rws file containing my words to the usr/bin/aspell directory. But this process is really painstaking and cumbersome.

Please advise.

Thank you

wwalc’s picture

Title: Aspell interface not having 'add to dictionary' button in FCKeditor » Problem using aspell with FCKeditor
Component: User interface » Miscellaneous
Status: Active » Closed (fixed)

Please next time create new issue instead of changing old thread, thanks ;)

I can help you much in implementing this feature, actually the only hint I can give you is that you will need to modify files from this directory:
sites\all\modules\fckeditor\fckeditor\editor\dialog\fck_spellerpages\spellerpages