I have installed htmlarea.module and active the spelling checker. But when i editing a page and click in the spellingsbutton, i get a popup with in the javacode of the spelling checker. did i set something wrong?

Mad Maks

CommentFileSizeAuthor
spellcheck.png9.8 KBMad Maks

Comments

gordon’s picture

The Spell checker uses a perl backend to check the spelling, and your web server doesn't seem to be configured to run perl cgi scripts. Or in the SpellChecker plugin directory you need to copy the dot.htaccess to .htaccess so it will run perl cgi in that directory.

Mad Maks’s picture

After copy the dot.htacces to .htacces i get instead of the code this error:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, ####@###.nl and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
Apache 2.0 Server at www.ombakbagus.com Port 80

and the log said:

[Mon Jan 24 09:40:14 2005] [error] [client 80.60.192.40] Premature end of script headers: spell-check-logic.cgi, referer: http://www.ombakbagus.com/modules/htmlarea/HTMLArea-CVS/plugins/SpellChe...

what is going wrong?

Thanks

gordon’s picture

This could be a combination of things. check the path to perl, theis script is looking for it in /usr/bin/perl, or it could be a problem with you apache2 configuration

Mad Maks’s picture

i have in usr/bin a file called perl, so the path in script is not right isn't it. But when i look in spell-check-logic.cgi i can't find a path. where can i find it?

gordon’s picture

it is on the first line

#!/usr/bin/perl

I am really guessing here, but make sure the cgi script is executable. This what could be stopping it.

Mad Maks’s picture

the file usr/bin/perl has execute rights (755) so that is not the problem i think. Thanks for helping me!

p.s is a line not disabled (or a commend) as it starts with # in cgi scrips?

gordon’s picture

make sure that the .cgi file is executable.

as the for first line is a special like that tells the shell which shell interperator to use, because it has a "#!" as the start of the line.

Mad Maks’s picture

it is excutable (755) :-(

gordon’s picture

Have you checked you error.log. Their is most likely something in there.

Mad Maks’s picture

[Sat Jan 29 10:56:00 2005] [error] [client 80.60.192.40] Can't locate Text/Aspell.pm in @INC (@INC contains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .) at spell-check-logic.cgi line 16., referer: http://www.ombakbagus.com/modules/htmlarea/HTMLArea-CVS/plugins/SpellChe...
[Sat Jan 29 10:56:00 2005] [error] [client 80.60.192.40] BEGIN failed--compilation aborted at spell-check-logic.cgi line 16., referer: http://www.ombakbagus.com/modules/htmlarea/HTMLArea-CVS/plugins/SpellChe...
[Sat Jan 29 10:56:00 2005] [error] [client 80.60.192.40] Premature end of script headers: spell-check-logic.cgi, referer: http://www.ombakbagus.com/modules/htmlarea/HTMLArea-CVS/plugins/SpellChe...

gordon’s picture

if you have a look in the spellchecker plugin directory at the file readme-tech.html, it tells you exactly what perl packages you require to run spell checker.

The following Perl modules are required:
* [2]Text::Aspell
* [3]XML::DOM
* [4]CGI

Of these, only Text::Aspell might need to be installed manually. The
others are likely to be available by default in most Perl
distributions.
_________________________________________________________________

References

2. http://search.cpan.org/search?query=Text%3A%3AAspell&mode=all
3. http://search.cpan.org/search?query=XML%3A%3ADOM&mode=all
4. http://search.cpan.org/search?query=CGI&mode=all

gordon’s picture

Anonymous’s picture