[dokuwiki] Re: Trying to test the Spellchecker (Win32)

  • From: "Christopher Mc Carthy" <christopher.mccarthy@xxxxxxxxxxx>
  • To: <dokuwiki@xxxxxxxxxxxxx>
  • Date: Thu, 9 Jun 2005 15:54:41 +0200

Got a few minutes so I'm trying with the latest devel version
(dokuwiki-2005-06-09).  I just copied over my current local.php file, so
spell check is activated.  If I do not include
<define('ASPELL_BIN','"C:\Program Files\Aspell\bin\aspell.exe"');> and I
enter some text and click 'Check Spelling', the command line box briefly
flashed, the link turned to a blue 'Please wait...' and then an error
dialog box appeared:

[JavaScript Application]
An error occurred while trying to run the spellchecker:
Aspell returned an error: 'aspell' is not recognized as an internal or
external command, operable program or batch file.

I click 'OK' and see 'No Mistakes Found'.  If I do include <define
('ASPELL_BIN','"C:\Program Files\Aspell\bin\aspell.exe"');> the error
dialog is different:

[JavaScript Application]
An error occurred while trying to run the spellchecker:
Aspell returned an error: 'C:\Program' is not recognized as an internal
or external command, operable program or batch file.

So DokuWiki is not finding the aspell binary?  Could I move/install the
whole Aspell directory to a folder under DokuWiki and then give a
relative path so that DokuWiki will find it?

I should have mentioned it at the beginning, but yes I am using Aspell
0.5.x - I used the installer Aspell-0-50-3-3-Setup.exe and afterwards
installed two dictionaries. Aspell is in C:\Program Files\Aspell and the
dictionaries are in C:\Program Files\Aspell\dict. I've looked high and
low for 0.6.x win32 binaries, but none exist at the moment :(

Chris

P.s. from the access.log
127.0.0.1 - - [09/Jun/2005:15:24:09 +0200] "GET /dokuwiki_dev2 HTTP/1.1"
301 353
127.0.0.1 - - [09/Jun/2005:15:24:09 +0200] "GET /dokuwiki_dev2/
HTTP/1.1" 302 -
127.0.0.1 - - [09/Jun/2005:15:24:11 +0200] "GET
/dokuwiki_dev2/lib/styles/style.css HTTP/1.1" 200 1214
127.0.0.1 - - [09/Jun/2005:15:24:11 +0200] "GET
/dokuwiki_dev2/lib/scripts/script.js HTTP/1.1" 200 13681
127.0.0.1 - - [09/Jun/2005:15:24:11 +0200] "GET
/dokuwiki_dev2/lib/scripts/tw-sack.js HTTP/1.1" 200 3865
127.0.0.1 - - [09/Jun/2005:15:24:11 +0200] "GET
/dokuwiki_dev2/lib/scripts/ajax.js HTTP/1.1" 200 1647
127.0.0.1 - - [09/Jun/2005:15:24:11 +0200] "GET
/dokuwiki_dev2/lib/images/favicon.ico HTTP/1.1" 200 7406
127.0.0.1 - - [09/Jun/2005:15:24:11 +0200] "GET
/dokuwiki_dev2/lib/tpl/default/layout.css HTTP/1.1" 200 1646
127.0.0.1 - - [09/Jun/2005:15:24:11 +0200] "GET
/dokuwiki_dev2/lib/tpl/default/design.css HTTP/1.1" 200 11922
127.0.0.1 - - [09/Jun/2005:15:24:11 +0200] "GET
/dokuwiki_dev2/lib/tpl/default/print.css HTTP/1.1" 200 3501
127.0.0.1 - - [09/Jun/2005:15:24:09 +0200] "GET /dokuwiki_dev2/doku.php
HTTP/1.1" 200 9630
127.0.0.1 - - [09/Jun/2005:15:24:11 +0200] "GET
/dokuwiki_dev2/lib/tpl/default/images/button-cc.gif HTTP/1.1" 200 1231
127.0.0.1 - - [09/Jun/2005:15:24:11 +0200] "GET
/dokuwiki_dev2/lib/tpl/default/images/button-rss.png HTTP/1.1" 200 280
127.0.0.1 - - [09/Jun/2005:15:24:11 +0200] "GET
/dokuwiki_dev2/lib/tpl/default/images/button-php.gif HTTP/1.1" 200 269
127.0.0.1 - - [09/Jun/2005:15:24:11 +0200] "GET
/dokuwiki_dev2/lib/tpl/default/images/button-xhtml.png HTTP/1.1" 200 321
127.0.0.1 - - [09/Jun/2005:15:24:11 +0200] "GET
/dokuwiki_dev2/lib/tpl/default/images/button-css.png HTTP/1.1" 200 299
127.0.0.1 - - [09/Jun/2005:15:24:11 +0200] "GET
/dokuwiki_dev2/lib/tpl/default/images/button-dw.png HTTP/1.1" 200 427
127.0.0.1 - - [09/Jun/2005:15:24:11 +0200] "GET
/dokuwiki_dev2/lib/tpl/default/images/button-donate.gif HTTP/1.1" 200
200
127.0.0.1 - - [09/Jun/2005:15:24:15 +0200] "GET
/dokuwiki_dev2/lib/scripts/spellcheck.js HTTP/1.1" 200 10406
127.0.0.1 - - [09/Jun/2005:15:24:16 +0200] "GET
/dokuwiki_dev2/lib/images/toolbar/bold.png HTTP/1.1" 200 738
127.0.0.1 - - [09/Jun/2005:15:24:16 +0200] "GET
/dokuwiki_dev2/lib/images/toolbar/italic.png HTTP/1.1" 200 676
127.0.0.1 - - [09/Jun/2005:15:24:16 +0200] "GET
/dokuwiki_dev2/lib/images/toolbar/underline.png HTTP/1.1" 200 743
127.0.0.1 - - [09/Jun/2005:15:24:16 +0200] "GET
/dokuwiki_dev2/lib/images/toolbar/code.png HTTP/1.1" 200 573
127.0.0.1 - - [09/Jun/2005:15:24:16 +0200] "GET
/dokuwiki_dev2/lib/images/toolbar/strike.png HTTP/1.1" 200 739
127.0.0.1 - - [09/Jun/2005:15:24:16 +0200] "GET
/dokuwiki_dev2/lib/images/toolbar/fonth1.png HTTP/1.1" 200 592
127.0.0.1 - - [09/Jun/2005:15:24:16 +0200] "GET
/dokuwiki_dev2/lib/images/toolbar/fonth2.png HTTP/1.1" 200 708
127.0.0.1 - - [09/Jun/2005:15:24:16 +0200] "GET
/dokuwiki_dev2/lib/images/toolbar/fonth3.png HTTP/1.1" 200 681
127.0.0.1 - - [09/Jun/2005:15:24:16 +0200] "GET
/dokuwiki_dev2/lib/images/toolbar/fonth4.png HTTP/1.1" 200 687
127.0.0.1 - - [09/Jun/2005:15:24:16 +0200] "GET
/dokuwiki_dev2/lib/images/toolbar/fonth5.png HTTP/1.1" 200 674
127.0.0.1 - - [09/Jun/2005:15:24:16 +0200] "GET
/dokuwiki_dev2/lib/images/toolbar/link.png HTTP/1.1" 200 798
127.0.0.1 - - [09/Jun/2005:15:24:16 +0200] "GET
/dokuwiki_dev2/lib/images/toolbar/extlink.png HTTP/1.1" 200 849
127.0.0.1 - - [09/Jun/2005:15:24:16 +0200] "GET
/dokuwiki_dev2/lib/images/toolbar/list.png HTTP/1.1" 200 582
127.0.0.1 - - [09/Jun/2005:15:24:16 +0200] "GET
/dokuwiki_dev2/lib/images/toolbar/list_ul.png HTTP/1.1" 200 560
127.0.0.1 - - [09/Jun/2005:15:24:16 +0200] "GET
/dokuwiki_dev2/lib/images/toolbar/rule.png HTTP/1.1" 200 574
127.0.0.1 - - [09/Jun/2005:15:24:16 +0200] "GET
/dokuwiki_dev2/lib/images/toolbar/image.png HTTP/1.1" 200 996
127.0.0.1 - - [09/Jun/2005:15:24:15 +0200] "POST /dokuwiki_dev2/doku.php
HTTP/1.1" 200 13766
127.0.0.1 - - [09/Jun/2005:15:24:16 +0200] "GET
/dokuwiki_dev2/lib/images/larger.gif HTTP/1.1" 200 87
127.0.0.1 - - [09/Jun/2005:15:24:16 +0200] "GET
/dokuwiki_dev2/lib/images/smaller.gif HTTP/1.1" 200 86
127.0.0.1 - - [09/Jun/2005:15:24:51 +0200] "POST
/dokuwiki_dev2/lib/exe/spellcheck.php HTTP/1.1" 200 179
127.0.0.1 - - [09/Jun/2005:15:29:59 +0200] "POST
/dokuwiki_dev2/lib/exe/spellcheck.php HTTP/1.1" 200 179
127.0.0.1 - - [09/Jun/2005:15:31:31 +0200] "POST
/dokuwiki_dev2/lib/exe/spellcheck.php HTTP/1.1" 200 183
127.0.0.1 - - [09/Jun/2005:15:46:13 +0200] "POST
/dokuwiki_dev2/lib/exe/spellcheck.php HTTP/1.1" 200 183
127.0.0.1 - - [09/Jun/2005:15:46:34 +0200] "POST
/dokuwiki_dev2/lib/exe/spellcheck.php HTTP/1.1" 200 -
127.0.0.1 - - [09/Jun/2005:15:46:38 +0200] "POST
/dokuwiki_dev2/lib/exe/spellcheck.php HTTP/1.1" 200 -
127.0.0.1 - - [09/Jun/2005:15:46:45 +0200] "POST
/dokuwiki_dev2/lib/exe/spellcheck.php HTTP/1.1" 200 183

-----Original Message-----
From: dokuwiki-bounce@xxxxxxxxxxxxx
[mailto:dokuwiki-bounce@xxxxxxxxxxxxx] On Behalf Of Andreas Gohr
Sent: 08 June, 2005 22:06
To: dokuwiki@xxxxxxxxxxxxx
Subject: [dokuwiki] Re: Trying to test the Spellchecker (Win32)


On Wed, 08 Jun 2005 15:58:47 +0200
Andreas Gohr <andi@xxxxxxxxxxxxxx> wrote:

> 
> > From error.log:
> > =========
> > [Wed Jun 08 14:32:08 2005] [crit] (22)Invalid argument: unable to
> > replace stderr with error_log
> > [Wed Jun 08 14:32:08 2005] [crit] (2)No such file or directory:
> > unable to replace stderr with /dev/null
> <snip>
> 
> Hmm there is an error message but it doesn't look like it's produced
> by the spellchecker... I'm at currently so I can't hack on the code
> will try to add some more debug output this evening...

Okay I added some more error handling, you should now get an alert box
with some helpful error message.

BTW. I believe the available Win32 Version of aspell (0.50) is not
sufficient as it does not have UTF-8 support. But first things first :-)
Get your version running then try to contact the aspell author for an
updated binary or compile it your self ;-)

Andi
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: