Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2005-04-05 00:35:33

KaplanDigital
Xinha Community Member
Registered: 2005-04-04
Posts: 22

Aspell not functional in nightly build demo or download

Aspell does not seem to function in the nightly demo or download.
Please advise as to how to configure aspell on a shared server.

Offline

#2 2005-04-05 00:39:23

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: Aspell not functional in nightly build demo or download

I'll look at the demo.

For configuring on a shared server, do you have aspell installed and is PHP capable of calling it?

See http://xinha.python-hosting.com/wiki/SpellChecker


James Sleeman

Offline

#3 2005-04-05 12:29:53

KaplanDigital
Xinha Community Member
Registered: 2005-04-04
Posts: 22

Re: Aspell not functional in nightly build demo or download

gogo wrote:

I'll look at the demo.

For configuring on a shared server, do you have aspell installed and is PHP capable of calling it?

See http://xinha.python-hosting.com/wiki/SpellChecker

My hosting company DOES NOT have aspell installed as a default. I followed the instructions on the wiki to download and extract the file to the SpellChecker/aspell directory. Now, if I run the example file from the nightly build on my server, the spell checker loads but gives me an alert that no words are mispelled even if the document contains obvious errors. Additionally, no dictionaries appear in the list. Also, my host requires that all cgi scripts be placed in a special directory.

-MK

P.S. My host is globat.com

Offline

#4 2005-04-06 00:51:35

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: Aspell not functional in nightly build demo or download

You must use the PHP backend with the downloaded copy of aspell, aditionally, you'll probably have to adjust stuff to your host.  I don't much like your chances getting it running with Globat though, I don't know if they allow calling custom executables from PHP.


James Sleeman

Offline

#5 2005-04-06 11:24:59

KaplanDigital
Xinha Community Member
Registered: 2005-04-04
Posts: 22

Re: Aspell not functional in nightly build demo or download

gogo wrote:

You must use the PHP backend with the downloaded copy of aspell, aditionally, you'll probably have to adjust stuff to your host.  I don't much like your chances getting it running with Globat though, I don't know if they allow calling custom executables from PHP.

How do I set up SpellChecker for the PHP backend? I have (or can easily get [24/7 support]) config information for my server. I checked, and they do allow calling custom executables from PHP.

Offline

#6 2005-04-07 00:04:20

KaplanDigital
Xinha Community Member
Registered: 2005-04-04
Posts: 22

Re: Aspell not functional in nightly build demo or download

KaplanDigital wrote:
gogo wrote:

You must use the PHP backend with the downloaded copy of aspell, aditionally, you'll probably have to adjust stuff to your host.  I don't much like your chances getting it running with Globat though, I don't know if they allow calling custom executables from PHP.

How do I set up SpellChecker for the PHP backend? I have (or can easily get [24/7 support]) config information for my server. I checked, and they do allow calling custom executables from PHP.

My host DOES have aspell installed (The support person apparently was mistaken). I discovered that, with a few chmods, I could get spellchecker to run in the example; but not in any other instance of Xinha. Help!!!

Offline

#7 2005-04-07 03:05:51

niko
Xinha Authority
From: Salzburg/Austria
Registered: 2005-02-14
Posts: 338

Re: Aspell not functional in nightly build demo or download

why in the example but not in any other instace?
what errors do you get?


Niko

Offline

#8 2005-04-07 06:55:05

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: Aspell not functional in nightly build demo or download

Are you setting _editor_url correctly?


James Sleeman

Offline

#9 2005-04-07 08:15:55

niko
Xinha Authority
From: Salzburg/Austria
Registered: 2005-02-14
Posts: 338

Re: Aspell not functional in nightly build demo or download

...try setting _editor_url absolute, not relative


Niko

Offline

#10 2005-04-07 14:01:12

KaplanDigital
Xinha Community Member
Registered: 2005-04-04
Posts: 22

Re: Aspell not functional in nightly build demo or download

niko wrote:

...try setting _editor_url absolute, not relative

That fixed it. Thanks. One other problem though, when spellchecker comes across an image, it spellchecks the tag as text.

Offline

#11 2005-04-08 02:51:27

niko
Xinha Authority
From: Salzburg/Austria
Registered: 2005-02-14
Posts: 338

Re: Aspell not functional in nightly build demo or download

One other problem though, when spellchecker comes across an image, it spellchecks the tag as text.

please submit a ticket big_smile


Niko

Offline

#12 2005-04-11 22:47:23

mharrisonline
Xinha Administrator
From: Denver, Colorado
Registered: 2005-04-11
Posts: 110
Website

Re: Aspell not functional in nightly build demo or download

I am having the same trouble, nothing is being shown as mispelled. Also, there are no dictionaries populating the dropdown list, it is long and empty. I made my editor path absolute, and nothing changed. I cleared my cache, etc. no good.

Then, I looked at the example on this site, and it does the same thing!

Offline

#13 2005-05-02 01:11:21

willeffects
Xinha Authority
Registered: 2005-03-19
Posts: 130

Re: Aspell not functional in nightly build demo or download

niko wrote:

...try setting _editor_url absolute, not relative

In what file do you set this?

Offline

#14 2005-05-02 02:35:55

niko
Xinha Authority
From: Salzburg/Austria
Registered: 2005-02-14
Posts: 338

Re: Aspell not functional in nightly build demo or download

like described in the newbie guide!
the file where the textarea is...


Niko

Offline

#15 2005-05-02 02:44:14

willeffects
Xinha Authority
Registered: 2005-03-19
Posts: 130

Re: Aspell not functional in nightly build demo or download

ah I tried that with no luck.  Would the compiled download not work with Gentoo?  That is what im running.

Offline

#16 2005-05-02 07:55:45

kimss
Xinha Pro
From: Sweden
Registered: 2005-04-05
Posts: 99
Website

Re: Aspell not functional in nightly build demo or download

The SpellChecker PHP logic comes pretty out of the box, but you need to verify the config file, aspell_setup.php.
Different hosts install in different places, even if the default should be the one already in the config file.

If the path is correct, you need to verify if your host allow the shell_exec() command, which the spell-check-logic.php is relying on. Of this is not the case you will need to find out what commands are open, maby exec(), and rewrite the logic to work with this one.

As a final note, if you are on a system with safe_mode activated you are in for big problems, since the SAFE_MODE_EXEC_DIR value probably isnt configured, and if so not in your favour and without Aspell. You would also need a OPEN_BASEDIR defined for your purposes if you want Aspell to work with safe_mode.

And finally, if your on a system with safe_mode not active, and the open_basedir value is set, you would need this value to include the paths on the server to the different folders you need access to, typically /tmp and /usr/bin/ (If Aspell is installed here).

Hope this clarifies

Offline

#17 2005-05-02 11:48:00

willeffects
Xinha Authority
Registered: 2005-03-19
Posts: 130

Re: Aspell not functional in nightly build demo or download

Im on a dedicated server so unless shell_exec() is off by default I should be ok, how can I check this?  Is there a simple way to test aspell outside xinha to see if the compiled version is even working correctly?

I dont receive any specific errors so I believe the path is correct.

Thanks for your help!
Will

Offline

#18 2005-05-02 15:26:42

kimss
Xinha Pro
From: Sweden
Registered: 2005-04-05
Posts: 99
Website

Re: Aspell not functional in nightly build demo or download

One simple way to check this would be to write your own simple PHP script which utilizes the shell_exec() command and check it in your browser for PHP warnings or errors. If your dont get this yoyu can safely rule out that one.

A simple way to check, just grabbed it from php.net

<?php
$output = shell_exec('ls -lart');
echo "<pre>$output</pre>";
?>

Your could also add this to check for safe_mode

<php
echo '"' . ini_get('safe_mode') . '"';
?>

From the last example your would want no positive boolean value in between the ". That would mean safe_mode is active, and that shell_exec is disabled.

Offline

#19 2005-05-03 00:01:56

willeffects
Xinha Authority
Registered: 2005-03-19
Posts: 130

Re: Aspell not functional in nightly build demo or download

inside spell-checker.js there are these variables:

HTMLArea.Config.prototype.SpellChecker = { 'backend': 'php', 'personalFilesDir' : '', 'defaultDictionary' : 'en_GB' };

do any of those need to be changed?

Offline

#20 2005-05-03 00:05:30

willeffects
Xinha Authority
Registered: 2005-03-19
Posts: 130

Re: Aspell not functional in nightly build demo or download

kimss wrote:

One simple way to check this would be to write your own simple PHP script which utilizes the shell_exec() command and check it in your browser for PHP warnings or errors. If your dont get this yoyu can safely rule out that one.

A simple way to check, just grabbed it from php.net

<?php
$output = shell_exec('ls -lart');
echo "<pre>$output</pre>";
?>

Your could also add this to check for safe_mode

<php
echo '"' . ini_get('safe_mode') . '"';
?>

From the last example your would want no positive boolean value in between the ". That would mean safe_mode is active, and that shell_exec is disabled.

The $output worked for me.

The safemode test produced

""

Offline

#21 2005-05-03 01:26:09

willeffects
Xinha Authority
Registered: 2005-03-19
Posts: 130

Re: Aspell not functional in nightly build demo or download

I have aspell working command line but not from xinha.  Here is a test from my command line execution:


aspell -a --lang=en_GB --dict-dir=/usr/lib/aspell/ --mode=none --add-filter=sgml --home-dir=/var/www/site/editortest/may01/plugins/SpellChecker/personal_dicts/dict4276f21b6006d < /tmp/spell_fm97F4  
 @(#) International Ispell Version 3.1.20 (but really Aspell 0.50.5) 
  
 # tefdsafdsafsdafsdast 1 
  
  
 & teh 13 0: the, Te, tech, Th, eh, th, tea, tee, Ted, tel, ten, TeX, Tex

Offline

#22 2005-05-03 04:32:15

kimss
Xinha Pro
From: Sweden
Registered: 2005-04-05
Posts: 99
Website

Re: Aspell not functional in nightly build demo or download

Have you done a "whereis aspell" and assured youre using the correct path, since its obviously working and shell_exec also is working you should not have theese problems. Hovwever you could also check that the en_GB dictionary is installed, as this is the default dictionary. This you can change, you mentioned the config file earlier up in this thread.

Offline

#23 2005-05-03 13:08:03

willeffects
Xinha Authority
Registered: 2005-03-19
Posts: 130

Re: Aspell not functional in nightly build demo or download

well I believe im using the correct paths.  What page can i put an echo on to see it output what paths its building?

Offline

Board footer

Powered by FluxBB