We realised the problem was caused by a space in the aspell path
C:\program files\aspell\bin\aspell.exe
We fixed the problem by changing the path to
C:\progra~1\aspell\bin\aspell.exe
(An alternative fix is detailed in bug 3903. )
C:\program files\aspell\bin\aspell.exe
C:\progra~1\aspell\bin\aspell.exe
Thanks for the tip! It saved me some headaches on localhost. Now I need to find what's required to set aspell up on the production site (shared linux server).
Jim.
Has anyone figured this out? I had managed to get aspell set up and running on 1.45 but when I upgraded to 1.52 it failed. I no longer see the spell check button. I have tried a variety of options including moving aspell to the moodle root (this worked with the path problem with clamscan) but have not had any success. I have also run into a strange behaviour using the Editor Settings page. I can not alter the aspell path on this page but I am able to alter all the other settings. I have had to make my changes directly to the config.php file. I thought that it might have been a permissions problem with config.php but even with it set to 0777 no luck. I am using aspell 0.60.2 linux box (shared)
KS
Ok, I got my Spell Checker working. My problem was that open_basedir was blocking me from from opening files outside of my home directory with php. The test file_exists() wasn't returning any error, only saying that aspell didn't exist in the specified path. When I replaced it with filesize() I got the open_basedir error. Since the return for file_exists was negative the code in HTMLArea.php that displays the spell icon didn't display the spell icon. What I don't get is why I was still getting a file_exists error when I had copied aspell into my moodle root. Since the file was within the home directory it should have worked properly or at least displayed the spell button.
KS
Solved my problem of not being able to update the aspell path via the Editor Settings page.
The issue was caused because in my previous version (1.45) I had a problem finding aspell and I corrected this by adding the path to the config.php file manually. When I upgraded (1.5.2) and again had a problem with aspell I mistakenly assumed that the config.php file was the only place where the path info was stored. This is obviously not correct (although it does appear to be from where it loads its initial info) because after removing the aspell path line from the config.php file the Editor Settings (aspell path) is now working as expected.
I also noted that in the en lang file (editor.php) "spellcheck" is not included and therfore the button hint in the Editor Settings page displays as spellcheck
KS