I've installed a fresh copy of SMF. I have enabled spell checking, yet when I post, the button for spell check is not present. Did I miss something?
I've got 2 copies of SMF set up with spell check enabled and am having the same problem, so I think it's a bug.
It's not installed on the server ?
PSpell needs to be installed on your server before you can use the Spellcheck.
You'll need root access to do this, if you haven't got it just pester your host!
spell check works off a built-in php function, and not an SMF script. so if your server doesn't have the spell check option enabled, it won't work in SMF.
Someone please explain how this works. I have two versions of SMF installed with the spell check enabled, and don't see a spell-check button. Someone said I need a "pspell" library for php or it won't show the spell-check button. I see a spellcheck.js file in the Themes folders (default and classic). What's the point of having spellcheck if you need a special php addon before it will work?
spell check is a mod. if you don't click to enable it, it won't show up. you can only use it if your server has the spell-check enabled for php. the js script is just to enable it to utilize the built-in php spell check function, but doesn't actually contain the dictionary, etc.
Click the question mark in the admin center next to the spellcheck option. It will tell you if your host has it enabled.
I have it installed, both phpinfo & the admin center say that it should work, but it doesnt.
BTW, this is on windows. and i followed the info from php.net.
Quote from: MrCue on March 15, 2004, 11:57:49 AM
I have it installed, both phpinfo & the admin center say that it should work, but it doesnt.
BTW, this is on windows. and i followed the info from php.net.
and you checked the enable spell check option in the admin features?
yeh, when i do that, if you click on spell check you get a 500 error.
The error log contains this
Quote
[Mon Mar 15 17:01:36 2004] [error] [client 127.0.0.1] Premature end of script headers: /apache/php/php.exe
[Mon Mar 15 17:01:36 2004] [error] [client 127.0.0.1]
[Mon Mar 15 17:01:36 2004] [error] [client 127.0.0.1] This application has requested the Runtime to terminate it in an unusual way.
[Mon Mar 15 17:01:36 2004] [error] [client 127.0.0.1] Please contact the application's support team for more information.
[Mon Mar 15 17:01:36 2004] [error] [client 127.0.0.1] Unhandled Error: f:\Program Files\Aspell\dict/en-only.rws: The file "f:\Program Files\Aspell\data/iso8859-1.dat" is not in the proper format.
Thats on my testing server, my live server does pretty much the same thing.
man, that sounds like a problem with the server.
Yeh, but how do i fix it?
Pspell is installed and phpinfo reports its avalialble.
I think aspell also needs to be installed if it is not.
http://uk.php.net/manual/en/ref.pspell.php
I followed the instructions there, and after a little playing got apache to start and pspell installed
PHP info says.
Quote
pspell
PSpell Support enabled
thanks for the tip.
To get it to work with windows, you must change the line ending of the files that show in your error.log to be unix style instead of windows.
Okay, thanks for the information. I still can't get the dictionaries to load. Where do I need to put them?
1.) Follow instructions for installing the whole thing here http://uk.php.net/manual/en/ref.pspell.php
2.) Copy the aspell & pspell dll's to the php folder
3.) Locate and download "php_pspell.dll" for your version of PHP. Put it in your extensions dir
4.) Open php.ini and add this line "extension=php_pspell.dll" without the quotes.
5.) Restart your webserver. If it doesnt start you did something wrong.
6.) make or call a phpinfo file and check that pspell is installed.
7.) try using the spell check function in SMF. If you get a "500 internal server error" you need to change the line exdings of "iso8859-1.dat" & "standard.kbd". Try crismon editor to do this.
This is what i figured out over the last 2 days. I hope it helps others in future.
On clicking the Spell check button I get:
Quote2: PSPELL couldn't open the dictionary. reason: I'm sorry I can't find any suitable word lists for the language-tag "en".
File: /var/www/home/norwic/htdocs/YaBBSE/Sources/Subs-Post.php
Line: 703
Any ideas?
Cheers,
Teeps
Check that you have the english dictionary installed.
Forgive my denseness, but where would I find that?
Teeps.
Your host needs to install it.
-[Unknown]
This is the error message I'm getting:
Quote
Warning: PSPELL couldn't open the dictionary. reason: No word lists can be found for the language "en". in c:\inetpub\wwwroot\smf\Sources\Subs-Post.php on line 703
I've done all the above and I've installed the dictionaries (they defaulted under aspell\dict) I'm sure I'm missing something else.
Spell check does not at all!
http://www.clanrogue.com/yabbse/index.php
You need to get you host to install pspell.
Where can I get pspell so he can install it?
um ... I don't even SEE a spell check button on my install ... is there a setting that I missed somewhere?
Quote from: hebxi1 on March 15, 2004, 05:06:20 PM
um ... I don't even SEE a spell check button on my install ... is there a setting that I missed somewhere?
You need to install pspell.
Mike you dork.
Quote from: ROGUE-Master on March 15, 2004, 04:49:53 PM
Where can I get pspell so he can install it?
Try
http://www.redhat.com/swr/i386/pspell-0.12.2-16.i386.html
Search, there is a nice long thread on this.
There is already a thread about this, search a little please.
No need for searching... merging threads together.
Okay, I have installed pspell and phpinfo and admin states that spelling is enabled. Good. Now all I need is to know a. What is the dictionary file name(s) for english and b. where to put them. I had to put the *.dll files for pspell in my windows\system32 directory as well as my php4 directory and the extensions directory. I've searched all over the internet trying to figure this out, and I haven't had any luck with this last part yet. So please, if you have this working, please tell us how. I know there was a step by step earlier, I followed it and that enabled the spell check, unction doesn't work becuase it doesn't know where the dictionaries are. Thank you very much!
ensure that aspell is installed. Then download and install a dictionary. It should work that way.
I double checked. Everything looks fine. I even reinstalled aspell and it's dictionaries to my c:\ Still it does not work. I don't get it. :'(
Does anybody know where I can find a dictionary that works? The few that I have must either be incomplete or completely wrong. Thank you! :)
I've managed to test aspell/pspell by itself (using a right-click (send to) option on a file. That works. But I still get the same error message when trying to spell check with SMF:
"Warning: PSPELL couldn't open the dictionary. reason: No word lists can be found for the language "en". in c:\inetpub\wwwroot\smf\Sources\Subs-Post.php on line 703".
Any other suggestions?
Try editing the Subs-Post.php and change "en" to "".
-[Unknown]
Nope, now it can't find the dictionary for ''. I also tried en_US and en-only. Those didn't work either. I've gotta be missing something. What is the filename for the dictionary? Is it like 'en.rws'? Thanks!
I've no idea. I didn't realize anyone ever got it working on windows at all.
-[Unknown]
I have it working on server 2k3 and XP pro but i was getting different errors and changing the line endings of two files fixed it.
Ok, what tells PHP where the pspell files are located then? Is there maybe an additional INI option, or do I have to do something special with apache?
I gave a step by step of how i did it. That unfortunatly is the best i can do.
What do you mean exactly by 'change the line endings'?
The line endings for windows are CRLF, Unix is LF, You need to use the linux style on windows to make them work.
Crimson Editor has this feature "Document -> File Format -> Linux"
Other editors may also do it but i dont know.
Hmm, tried that, it doesn't work. Could you tell me where you installed Aspell?
Thanks!
on my machine its f:\program files\aspell
Is that also where your version of PHP is installed? (F:\Program Files)? Also, I assume that you are running PHP 4.3.4?
4.3.4
PHP is installed in
e:\apache\php
Ok, well I reinstalled aspell to my program files directory, that didnt' work. Could I ask where you found your version of Aspell/Pspell, with dictionaries? I'll try that if it's not the same as mine. Thanks!
http://aspell.net/win32/
Did you compile your own files or use the precompiled ones?
I forgot to ask, what version of Apache are you using? I'm using 1.3
both
1.3 on the XP pro machine (my comp)
2 on the 2k3 server
Just to be sure, you used the following files?
Aspell-0-50-3-3-Setup.exe (This should be the main program)
Aspell-en-0.50-2-3.exe (This should be the English Dichtionaries)
yup
Hmm, this is very distrubing. Everything is almost identical, yet mine setup does not work correctly!
Let me review to make sure:
1) Installed c:\php4
2) Installed c:\apache\apache
3) Configured c:\windows\php.ini (extension=php_pspell.dll) (does it matter what order this is in the list?)
4) Installed Aspell and Aspell-en to c:\aspell
5) Copied aspell-15.dll and pspell-15.dll to c:\windows\system32 and c:\php4\extensions
6) Tested Aspell by right clicking on a text file. (it works)
7) Enabled Spell checking in SMF
8) Tested with phpinfo() and admin center (it states it's enabled)
9) Changed encodes to Linix format (0d 0a -> 0a) in ISO*-1.dat and standard
I do think that's it. Perhaps I missed something?
phpmyadmin where to put it or is that simply the interface for the php?
Quoteaspell-15.dll and pspell-15.dll to c:\windows\system32 and c:\php4\extensions
Hmm, mine are in the same folder as my PHP.exe file.
and php_pspell.dll is in my extensions dir.
I copied aspell and pspell.dll to my php4 dir, and php_pspell.dll to my extensions dir. Still no luck.
Step 1: install Aspell. (http://aspell.net/win32/files/Aspell-0-50-3-3-Setup.exe)
Step 2: insall English. (http://aspell.net/win32/files/Aspell-en-0.50-2-3.exe)
Step 3: copy aspell-15.dll and pspell-15.dll into WINDOWS.
Step 4: (I already had php_pspell.dll, you can get it from the zip distribution.)
Step 5: php.ini, find: ;extension=php_pspell.dll replace: extension=php_pspell.dll
Step 6: net stop w3svc & net start w3svc (or apache if you aren't using IIS.)
Step 7: got the error, changed line endings...
I am also getting the same error, Windows 2003 Server. In ISAPI mode. Are you still using CGI? Does it work in SAPI?
-[Unknown]
This might be a dumb question, but how can I tell which version of PHP I'm running? (CGI or SAPI?)
<?php
echo php_sapi_name();
?>
-[Unknown]
Yes it works in sapi mode.
If you need to see something let me know. Im not sure why it works myself.
[Unknown], If that script responds "apache", then does that mean that I'm running sapi mode?
Quote from: Ayeka on March 21, 2004, 08:37:53 PM
[Unknown], If that script responds "apache", then does that mean that I'm running sapi mode?
Yes, otherwise it would say "cgi"....
I'm not sure what's wrong, but at least we know *we* aren't crazy. Not so sure about MrCue over there... :P.
-[Unknown]
Is there anything i can show you that will help you work out what im doing differently?
Did you do anything to configure aspell? aspell config or something?
-[Unknown]
Nope.
Oh, and its not just random good luck either. Ive had two computer failures in the past 3 or 4 days resulting in complete re-installs.
Apell installed in
F:\Program Files\Aspell
PHP.ini
extension_dir = e:/Apache2/php/extensions
...
extension=php_pspell.dll
httpd.conf
LoadModule php4_module "E:/Apache2/php/sapi/php4apache2.dll"
PHP dir
aspell-15.dll
pspell-15.dll
Extensions Dir
php_pspell.dll
System32 Dir
aspell-15.dll
php4apache2.dll
pspell-15.dll
Don't worry, I don't really think you're insane. Rather, I know I'm insane.
Maybe it doesn't work with IIS? It just can't find the dictionaries...
-[Unknown]
Tested with IIS 5.1 on XP Pro SP1 ISAPI version of PHP 4.3.4, Pspell Works. Exact same config as with Apache.
Oh, and Short URL's work too.
Quote from: MrCue on March 21, 2004, 09:46:13 PM
Oh, and Short URL's work too.
Unless I'm understanding you wrong, why wouldn't they? You don't mean "Queryless URLs", right? Short URLs are just not full absolute links.
Hmm... well, I'm using IIS 6. Perhaps I need to add the pspell dlls as allowed, or something? Except I shouldn't have to.
-[Unknown]
Sorry, i was tired last night, queryless urls dont work with IIS.
I assumed since i didnt turn them off they were working.
I dont know how that IIS thingy works so i couldnt tell you what to do.
MrCue,
I wonder if ServerRoot may have anything to do with this. I noticed that your PHP directory was under your Apache directory. Is your ServerRoot=E:/apache?
My configuration states that ServerRoot=C:/Inetpub/wwwroot
Apache is installed at C:/apache/apache, and PHP4 is installed at C:/php4.
Also, does it matter what order the extensions are placed in the INI file? (Mine is in alphabetical order).
Also I did notice that you have php4apache.dll in you windows/system32 directory. I did not. I tried this, but still no luck.
I wouldnt think that the location of PHP mattered nor the server root.
php4apache2.dll is in my system32 dir so that i can run PHP in ISAPI mode under apache2.
What do you have HOME set to?
-[Unknown]
local path under home?
E:\apache\wwwroot
No, I mean the HOME variable. I noticed that I only have a per-user one set to me, perhaps it's a permissions issue. (personal dictionaries, etc.)
Example, I have mine set to %USERPROFILE%.
-[Unknown]
how do i find it? I dont know how to use this toy.
Open a command prompt, and type "set HOME" or just type "echo %HOME%" - either should display the value.
Or do you have none? I have to have one for ssh to work properly.
-[Unknown]
HOMEDRIVE=G:
HOMEPATH=\Documents and Settings\Cueball
So no HOME. Interesting.... where is your en.pws and en.prepl?
-[Unknown]
did a search, couldnt find either file.
When I tested aspell by itself, it created en.pws and en.prepl in the c:\aspell directory (where I installed aspell).
Well, so far I still have YSE 155 with some mods installed including a good working SPELL CHECKER, which I really like having and use alot. I like my host (Linux based), and i like YSE, but I am loving SMF and want to upgrade desperately, but I have a problem :( My host says they had to remove aspell due to "heavy load on the server", so apparently I can't have all the new features SMF has to offer.
What does this mean? The only way for me to get spell check working is to move to a different host? Are there any alternatives other than moving or changing the BBS softwae completely?
Sounds like your host is talking bs to me, cant see why aspell would put any load on the server.
I don't really know much about what takes how much processing power, but that was their answer.
IF you know of a good technical note or question that I can suggest to them, would be great.
Hi newbieyabbie, my host refuses to install anything new, so I am curious what your mod is using instead of aspell?
Maybe you two should move to a different host... All I had to do was ask and my host installed it. I don't think that aspell would create that much load on the server - sounds more like "we don't want to install it but can't give you a good reason as to why we shouldn't install it". Most hosts are interested in keeping their customers happy, so maybe you should threaten to move to a different host who actually cares about their customers.
Quote from: Oldiesmann on March 23, 2004, 01:49:19 PM
Maybe you two should move to a different host... All I had to do was ask and my host installed it. I don't think that aspell would create that much load on the server - sounds more like "we don't want to install it but can't give you a good reason as to why we shouldn't install it".
Well, my host was upfront and said they install additional stuff only as exceptions. (So I need to make one, maybe.) Guess that is the downside of only 5 Euros a month (good speed and reasonable support included).
What's worse than aspell is they don't have zlib (package manager!)
QuoteMost hosts are interested in keeping their customers happy, so maybe you should threaten to move to a different host who actually cares about their customers.
This is a mass hoster (5 Euro), although rated quite well at what could be called the German equivalent of webhostingtalk.
Anyway, apart from the money I sort of dread moving servers again. Instead of threatening them, I think it might be a more promising approach to convince them that their customers will profit from these modules PLUS I am a member of webhost forums where I could post favorable reviews, if I feel they deserve it.
Anyway, newbieyabbe's mod might be a solution for those who can't use pspell, is what I thought.
That's rediculous. The bandwidth savings of having zlib installed make it more than worth it.
-[Unknown]
Good news.
* Added a "Spell Check" button to the signature in the Profile template.
! Aspell now works on windows platforms. (using a workaround, though!)
! Re-enabled language-specific spell checking. Should work out, needs more testing.
-[Unknown]
Could you let me know what the work around is, please. Thank you greatly! :)
OK, I must have written a very convincing second note to them because they installed pspell (not without mentioning the huge amount of time and effort it took) -- so if anybody wants to know my the argument I used feel free to pm me! No guarantees though...
Btw., I was misinformed, zlib is installed.
Quote from: Winters on March 23, 2004, 01:00:24 PM
Hi newbieyabbie, my host refuses to install anything new, so I am curious what your mod is using instead of aspell?
Hi Winters. Sorry for the late response. I guess by now you have your spell check going. since your host installes Aspell for you. But to answer your question about my spell checker, it was a concoction from an older idea went back by a couple of madders from Yabbse, it uses a compination of php, and cgi scripts to call an external URL, I think its spellcheck.com, which in turn opens up your form, checks the spelling and corrects the mistakes, much like this checker, but much simpler. It did the job for me tho. It is working with YabbSE 1.5.5, I can't recall the exact steps that made it work.
Anyways, my host still insist that people take advantage of Aspell/Pspell and cause heavy load on server, their exact words were"This is not offered due to misuse and abuse by clients, if we reinstall it it will simply overload the server
23-Mar-2004 19:00:27". It is not easy for me to find another host that will be willing to host my site, due to the contraversal political nature of it, so It is probably better for me not to threaten to move, for now, and since I just renewed with them for one more year, in January, it'll be that much more loss for me.
Is it possible for a host to install Aspell and activate it per wevsite/client, rather than server wide? I'll try with them one more time for the third time, but not sure what argument I should take on. Ant tips? Thanks
How do you mis-use/abuse something like that???
As for your question about enabling it on a user-by-user basis, I'm pretty sure that's not possible because it's an add-on for PHP, and unless each user is on their own server, there's no way you could do this.
Quote from: Oldiesmann on March 28, 2004, 09:43:00 PM
How do you mis-use/abuse something like that???
I am not sure, but I have no argument to bring for them.
QuoteAs for your question about enabling it on a user-by-user basis, I'm pretty sure that's not possible because it's an add-on for PHP, and unless each user is on their own server, there's no way you could do this.
Thanks, that means I am out of luck for now.
Yeah... I guess you are, unless you can convince your host that it will be beneficial to them to install it...
I couldn't get spell check to work so I had a chat with my server host, they advise that ASpell is installed but that PSpell isn't.
Is it possible to run Spell Check without PSpell ?
My host does have Pspell, but I still get this error with the spellchecker:
Warning: PSPELL couldn't open the dictionary. reason: I'm sorry I can't find any suitable word lists for the language-tag "en". in /var/www/html/test/Sources/Subs-Post.php on line 778
When I asked the host, they said: PHP is compiled with PSpell on our US platform, however it would appear that the language you have specified is not entirely correct. We would suggest changing your script to set the language as en_us or en_gb for either american or british dictionaries
Where would I need to make this change? ??? :)
It's under the language files - except, they are totally wrong. You should use en, actually, if it's installed properly :P.
Aspell is just the new version of Pspell. You should probably use Aspell instead.
-[Unknown]
Quote from: [Unknown] on April 01, 2004, 12:03:57 AM
Aspell is just the new version of Pspell. You should probably use Aspell instead.
-[Unknown]
Thanks Unknown, sorry to be dense but can you tell me which language file would contain the path for pointing to Aspell?
For example, I have a file named "en.multi" in my dict directory:
# Generated with Aspell Dicts "proc" script version 0.50.1
strip-accents true
add en-only.rws
add en_US-only.rws
add en_GB-only.rws
It is so you can use en, not en_us, etc.
-[Unknown]
Sorry about this but I'm getting a bit confused here.
I have been given the path for Aspell from my server host (but I don't have access through FTP to it)
When I check to see if Spell Check will work from the admin panel in SMF it says
Quote
Enable spell checking. You MUST have the pspell library installed on your server and your PHP configuration set up to use the pspell library.
Your server DOES NOT appear to have this set up.
So, I'm guessing that I need to tell SMF that instead of looking for PSpell it needs to look for ASpell and to provide it with the path to find ASpell, but I don't know which file I would have to change to correct the path to Aspell.
Not at all. It has nothing to do with SMF, it has to do with PHP.
PHP has to be *compiled with support for Aspell/Pspell*. It doesn't know the difference between the two, but it does need to be recompiled to make it work.
After it is recompiled, a new function - pspell_new - among others will exist. SMF uses this function, provided by PHP.
-[Unknown]
I see, I don't need to define the path at all.
So when I run phpinfo I should see either PSpell or ASpell in the list .... but I don't. So presumably I need to go back to the server host and give them an "Oi ! turn it on please".
Thanks Unknown
Well I asked the question ...... but the answer was basically "No" :'(
Apparently Aspell is available as a "standalone feature" what ever that means ??? , but they are not prepared to install PSpell and I can't get SMF spell check working without PSpell. So no spell checking for me i'm afraid.
It looks like my crappy typing will have to stay uncorrected, unless there are any geniuses out there that can offer any suggestions :)
Beg someone to write a mod that pipes aspell. Here's some information on how:
http://www.php.net/pspell (see earliest comment... all the way at the bottom.)
Not promising it's totally doable, but it looks like it might be possible. Regardless, I'm busy i18n'ing the installer and making it look purdier... or I'd offer to try my hand at it.
-[Unknown]
Heading to feature requests now.
I've read through the posts and I'm still none the wiser on:
Warning: PSPELL couldn't open the dictionary. reason: I'm sorry I can't find any suitable word lists for the language-tag "en".
I'm running on a root server... which files do I modify?
Thanks!
Trystan
Have you tried upgrading to Beta 4.1?
If that doesn't solve the problem, does aspell work outside of SMF/PHP?
-[Unknown]
Hi y'all. Here I go again.
Well I am in the middle of moving my site to a new host, so I can get my spell checking on the way(among other things), pspell is installed, the admin center and phpinfo says so, I get a "spell check" button, but when I hit it, a clean white window opens up, and after about a minute or two, it comes back saying "page can not be displayed".
Is this mean I messed up something while transferring files, or the server is maybe needs more configuration?
Aspell .50 should be installed, with the english dictionaries.
I have verified this by setting up a debian distribution and building everything there. I only ran into problems following publicized information on the subject, and it finally worked when I used the latest Aspell and its dictionary, and recompiled PHP with those.
-[Unknown]
Hey what happened, spell check is gone on SMF.
FINALLY, spell checking is working(new host). But this shows in the error log every time a spell check is done:
2: PSPELL couldn't open the dictionary. reason: The encoding "iso-8859-1" is not known.
This could also mean that the file "/usr/share/pspell/iso-8859-1.map" could not be opened for reading or does not exist.
File: /home/landless/public_html/yabbse/Sources/Subs-Post.php
Line: 771
What need I, or my host do to correct this?
Ignore the message, it doesnt mean much and wont be showin in the next release.
This is just unbelievable, I am just not having a good luck with this spell check no matter
what. First my host tells me it risky and poses a security issue if they install pspell. So I moved to a new host, who installed pspell and got my spell checking going well on they
most part. Now, this host moves my site to a new server with pspell installed, but now I get this error
Warning: PSPELL couldn't open the dictionary. reason: I'm sorry I can't find any suitable word lists for the language-tag "en". in /home/landless/public_html/yabbse/Sources/Subs-Post.php on line 776
So I get back here and I see no real answer to this error, and I even tried changing the 'en' to 'en_US' in the "index.language.php" file. So I ask the host and I get this reply
Quote
Well, I tried a lot but none came up with a solution as it seems as a cPanel bug. Lots of cPanel gurus around the world are also having the same problem under the upgraded verion of cPanel + pspell and it is recommended to update the server without the pspell as this a compatibility issue. So, I'm extremely sorry untill the cPanel release the bug fix we can't do anything in it.
Does this make any sense?
What is the solution? Is there one besides disabling spell checking all together?
Ah, that lovely issue. Make sure you/they've installed the LATEST Aspell, with the english dictionary.
-[Unknown]
So I take it it's really no issue if you have the latest Aspell with the english dictionary. OK, I will ask them if they can install Aspell.
Thank you.
I contacted my host, I think they need help installing/configuring Aspell. This is what they asked me to do
QuoteAlso, the aspell is installed and working. I also contacted the webmaster of pspell/aspell but no replies from their too. Well, I suggest you to ask your forum members again and ask them if anyone tells you that what procedure they abopt to make it working perfectly alright as their is no such helpful documentation available for it.
Don't worry our whole team is with you and I'm still ready to try it again for you if you can fetch some helpful notes for pspell in your forum. Why I'm asking this because through cPanel it is not possible to install it, I have to go through the manual route(which I also tried once)
Unknown, can you or anyone here suggest a link or some kind of dicumentation on the matter? Or can you offer them your help through my account?
Actually, it is possible to install it through Cpanel... or rather, WHM.
The mistake everyone makes is trying to install *pspell*. Do not install pspell. That is bad - it will not work, it will give the EXACT ERROR you are getting. Instead, Aspell .50 is the one you want... the latest release of *Aspell*. The RPM is available with WHM.
-[Unknown]
I'm beginning to suspect the capabilities of my host, cause I know this thing works almost everyewhere else, and it did work woth Pspell before they moved to new server. But for $4/month... This is what they say
QuoteThis is not fully true as on our previous server pspell was installed via cPanel/WHM and you know that it was working fine. I also gave a try to Aspell .50 but still it not working.
Also, can the langauge tag 'en' be changed to something else recognizable? Cause Pspell is installed but gets this 'en' error like this
QuoteWarning: PSPELL couldn't open the dictionary. reason: I'm sorry I can't find any suitable word lists for the language-tag "en". in /home/landless/public_html/yabbse/Sources/Subs-Post.php on line 776
. I read earlier it can be changed to 'en_us', where should that be.
No, changing it shouldn't be necessary. If they are getting this error, it is likely they don't have the english dictionaries installed.....
I have gotten it working on both Windows and Linux. (Debian) Don't follow a single thing any online tutorial says, you will get that exact error - which is the "you are using pspell not aspell" error. Even if they have installed Aspell, they need Aspell-devel, and they need to recompile PHP.
-[Unknown]
What was the method you had to get Aspell working properly with PHP on IIS, Unknown?
I have Aspell .50 and the english dictionary installed, but just don't know what to do from here to get it to work with PHP
Well, have you edited php.ini to make it use php_pspell.dll? You'll need to fix the extensions_dir too....
What version of PHP?
-[Unknown]
Hi,
I've been pulling out my hair trying to get the Spell Check feature to work for the board.
Spell check is activated in the admin section.
The question mark icon next to the activation says:
Enable spell checking. You MUST have the pspell library installed on your server and your PHP configuration set up to use the pspell library. Your server DOES appear to have this set up.
My PHPinfo reveals this:
'./configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-xmlrpc' '--with-ldap' '--with-iconv' '--with-kerberos' --with-pspell' '--with-imap' '--with-imap-ssl' '--with-gettext' '--with-xml' '--with-dom' '--with-dom-xslt' '--with-dom-exslt=/usr/lib/exslt' '--with-fdftk' '--enable-bcmath' '--enable-calendar' '--with-curl' '--with-swf=/usr/local/flash' '--enable-ftp' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-ttf' '--with-freetype-dir' '--with-gd' '--enable-gd-native-ttf' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mcrypt' '--with-ming=../ming-0.2a' '--enable-magic-quotes' '--with-mysql=/usr' '--with-pear' '--enable-xslt' '--with-xslt-sablot=/usr' '--enable-sockets' '--enable-track-vars' '--enable-versioning' '--with-zlib' '--with-openssl' '--with-bz2' '--enable-dba' '--with-flatfile' '--with-db4' '--enable-dbase' '--enable-exif' '--enable-wddx' '--enable-trans-sid' '--enable-dio' '--enable-sysvsem' '--with-zip' '--with-mhash'
PHPinfo also reveals:
PSpell Support : Enabled
PHP Version is: 4.38
OS: Linux Server:Apache 1.3.31
My SMF board version: SMF 1.0 RC1. Using a untouched Default Theme
No root access for me.
What happen's when I attempt to use
Nothing. When I do a test post and attempt to use spell check, a smaller pop-up appears that is completely blank. I receive no error messages of any kind, and no error messages are logged in the admin section. I don't have access to the phperror log on the server to see if anything has happened.
I thought maybe I should view source on the pop-up window just in case the text is there, but written in the same color as background color. All I see is a few html tags with nothing in the "body" tags.
I used a "PSP Shell" to do a whereis on both aspell and pspell:
aspell: /usr/bin/aspell /usr/lib/aspell /usr/share/aspell
pspell: /usr/include/pspell /usr/share/pspell
I've read all the posts I can find pertaining to spell check. So far I can't anything that pertains to me. I hope I am not asking about a problem that has been solved on this board before.
Thank you in advance for your help!!!
Lee
Edited to add: Tests were done in Firefox and Konqueror browsers. IE's pop-up just showed a "unable to find" page.
You do not need pspell, you need Aspell .50. It is possible to install older versions, but they will not work.
What version of Aspell are you using?
-[Unknown]
Quote from: [Unknown] on August 12, 2004, 01:49:18 PM
You do not need pspell, you need Aspell .50. It is possible to install older versions, but they will not work.
What version of Aspell are you using?
-[Unknown]
I just found out that they have Aspell .33.7.1 alpha installed.
Looks like I'm screwed unless they update?
Lee
P.S. Thanks for the response
Quote from: LeeH on August 12, 2004, 05:33:57 PM
I just found out that they have Aspell .33.7.1 alpha installed.
Looks like I'm screwed unless they update?
Lee
P.S. Thanks for the response
If you ask them, and they are a decent host, they should be willing to upgrade it for you. Aspell is actually seldom used, and if it isn't even working I can't imagine why they'd keep it at an older version - although they would have to recompile PHP to upgrade it.
However, I have tested Aspell .50 on Debian and Windows - it has worked in both places.
Good luck.
-[Unknown]
Once again Thanks for the response, and of course following up.
I'm in the process of writing a diplomatic email to the hosting outfit now in hopes they will upgrade.
Hopefully since they are using Red Hat, it will be a simple matter of updating a RPM or two. If they have to do any compiling.... I would be amazed if they helped little ol me on their shared server.
At any rate.... spell checking or not. This BBS is incredible!
After emailing my host and spending the day exchanging emails, my aspell problem is still a problem.
Here's what was talked about, maybe someone has some input? Some infor I'd rather keep off of the WWW has X's.
Me:
Hi there!
Would it be possible to upgrade Aspell on my server?
Currently my server is using Aspell .33.7.1 alpha. It is very outdated. I
need at least. Aspell 0.50 for the spell checking on my message board to run.
You can find it at http://aspell.sourceforge.net/
Or hopefully a later RPM to save ya from compiling.
I'm not clear exactly what server I am on. According to PHP info I am on:
xxxx.xxxxx.net??
This confuses me since there is a xxxx and a xxxxxx server.
Thank you very much in advance,
Lee
Them:Hello,
We have upgraded the Pspell version on the server. Please check this from your end.
Me: Thank you for attempting to help.... But I needed Aspell updated.
Type: aspell --help (command line), and you will see that Aspell is:
Aspell .33.7.1 alpha.
My spellchecker on my message board requires Aspell .50.
Aspell .50 is the current version. Aspell .33.7.1 is rarely used and is no
longer supported.
Thank you,
Lee
Them: Hello,
As we mentioned earlier the aspell version on the server is the latest version. The details are as follows
==========
root@jose [~]# aspell -v
@(#) International Ispell Version 3.1.20 (but really Aspell 0.50)
========
Me: Hi Ranish,
We must not be working on the same server!
When I type: aspell -v I get:
===============================================
International Ispell Version 3.1.20 (but really Aspell .33.7.1 alpha)
===============================================
As mentioned in my first post that phpinfo() tells me that I am on xxxx.xxxxxxx.net, the IP address is xx.xxx.xx.189 if that is helpful.
I see by your pasted info that you were logged in as root@jose so I'm assuming since we used the same commands and got different outputs that I must be on xxxxxx. I wish I knew how to verify that. I'm sure it would of eliminated the confusion.
Lee
Them: Hello,
We are working on the same server. The details are as follows
--------
root@jose [~]# ifconfig | grep xx.xxx.xx.189
inet addr:xx.xxx.xx.189 Bcast:xx.xxx.xx.255 Mask:255.255.254.0
root@jose [~]# aspell -v
@(#) International Ispell Version 3.1.20 (but really Aspell 0.50)
root@jose [~]# hostname
xxxx.xxxxxxxt.net
-----------
Please try from your end.
He was posting info proving we were working on the correct server.
Me: I sure feel like a pain in the butt!
I really appreciate you including the details. But I really am puzzled how we see different versions of aspell when we use the same commands.
What I see:
================================================
$ ifconfig | grep xx.xxx.xx.189
inet addr:xx.xxx.xx.189 Bcast:xx.xxx.xx.255 Mask:255.255.254.0
Warning: cannot open /proc/net/dev (Permission denied). Limited output.
Warning: cannot open /proc/net/dev (Permission denied). Limited output.
Warning: cannot open /proc/net/dev (Permission denied). Limited output.
Warning: cannot open /proc/net/dev (Permission denied). Limited output.
Warning: cannot open /proc/net/dev (Permission denied). Limited output.
$ aspell -v
@(#) International Ispell Version 3.1.20 (but really Aspell .33.7.1 alpha)
$ hostname
xxxx.xxxxxxx.net
=====================================================
I just don't get it. At anyrate, it is not working for me.
Thanks,
Lee
Them: Hello,
Please provide us with your domain name and tell us how you are getting the details ( is it from the shell and using scripts ).
Me: Ranish,
No problem, but if the public can access this help ticket PLEASE edit the information I am about to give you!
My domain: www.xxxxxxxx.com
I do not have SSH access but am using a php script that let's me do some very basic shell commands. Of course I can't do much because of permissions. I have no intentions of using it for anything other than finding out version information.
The script is called phpshell 2.0.
you can access it by: http://www.xxxxxxxx.com/SHELL/phpshell.php
user: xxxxxxxx
pass: xxxxxxxx
IF this script is something you would rather me not use... I will happily remove.
Just so you know.... I am very grateful for the time you are spending on helping me resolve this. I'm sure it's not easy being on your side of the help desk.
Thank,
Lee
Of course I know he will have me delete the script... but I had to prove my case of why I'm not convinced the aspell isn't a current version
Them: Hello,
You are getting the old version because you are using phpshell script. As we mentioned earlier the aspell has already updated.
Also please remove the phpshell script from the domain.
Me: No problem removing the script, was used to untar a file rather than ftp'ing up hundreds of the teeny files it contained.
As far as the current version of aspell is concerned... I guess you've done all you can for me. At any rate... the spell check does not work and it requires that version.
Only thing I can think of that could be causing this problem is that. PHP was not recompiled at the time of Aspell being updated so PHP picks up the older version info that was available when compiled.
That could be why the phpshell picks up the older version rather then the newer updated version?
You are correct, you being logged in as root is much more better than me using a php script to do commands. There is no way I could argue with someone with root access. That's why it was helpful to me when you showed me what you saw at the shell.
Once again..... I am grateful for your attention to my little crises!
LOL
Take Care,
Lee
Them: Lee ,
Php was already recompiled after the aspell update .
====================
root@jose [~]# php -v
PHP 4.3.8 (cli) (built: Aug 13 2004 12:09:44)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
with Zend Extension Manager v1.0.0, Copyright (c) 2003, by Zend Technologies
with Zend Optimizer v2.1.0, Copyright (c) 1998-2003, by Zend Technologies
=============================
End of thier help, I think they've had enough of me.
So I don't know, they claim to have aspell updated and PHP recompiled after update, but my spellchecking on SMF board won't work.
And it really bothers me that the PHP script I used to "telnet" gave me a older version of aspell. Why would it lie to me???
Is there some other way that "I" can check the version? And if they are correct that it is updated, and for some crazy reason the servers PHP is "bunged up" and doesn't know what the heck version it is looking at. Is there a work-around?
I'm just dying to get this cool feature working!!!
Thanks in advance,
Lee
My spell check which had been working with no problems just suddenly didn't any more, with this error again
Quote2: PSPELL couldn't open the dictionary. reason: I'm sorry I can't find any suitable word lists for the language-tag "en".
File: /var/www/html/forum/Sources/Subs-Post.php
Line: 838
Any ideas as to why it just stopped working? Could it be some change my host made?
Quote from: Random on January 16, 2005, 03:39:52 PM
My spell check which had been working with no problems just suddenly didn't any more, with this error again
Quote2: PSPELL couldn't open the dictionary. reason: I'm sorry I can't find any suitable word lists for the language-tag "en".
File: /var/www/html/forum/Sources/Subs-Post.php
Line: 838
Any ideas as to why it just stopped working? Could it be some change my host made?
Looks like your dictionarys missing, Your host may have to reset it up. For it to work again.
I asked my host if they had made any changes and got this reply:
QuoteThere was a Redhat (operating system) up2date within the last 2 weeks for
aspell - this may have affected your forum if Redhat have made any changes
to the application or the way it is packaged.
Could this be the problem?
Could be. Tell them to look at http://aspell.sf.net/.
-[Unknown]
Does spell check not work properly in Personal Messages? I have tried a few times to spell check things, and the only thing that loads is a blank javascript window. Spell check loads just fine when posting a message, however.
I tried to get spell check to work but found that my server did not have pspell installed. They offered, however, to install it, for a reasonable fee. To make sure this was worthwhile, I tried to test the spell check feature of SMF on the test section of the forum and found out that it didn't work at all. Is this just temporary, or is spell check buggy?
Thanks.
What didn't it work on, and most decent hosts will install it for free.
OK... so I need to get my host to install pspell?? Or is it aspell? Sorry, I'm new to all of this. I have the "spell check" buttons, but they end up with a file not found error.
SO... I just need a) clarification on what to tell my host, or b) how to take off that function.
NEvermind... I figured out how to disable spell check. It's not really worthwhile for me to spend time trying to get my host to install a program for me (Hostrocket)
Thanks,
Dan
I asked my host to install it, and they agreed that they would do so at no charge. Of course, they install it for everyone, not just you. They did state they want to run a few tests before putting it on live which I can not argue with. So I should have it up very soon.
If anyone here is interested, my host is Sitelutions. I started using their free dns service as I ran all my own servers locally. Then I found that they were so reasonable price wise that I had to start using them. Speed and guaranteed up time for almost nothing. I have screwed things up many times on my servers, or had problems where something didn't work. Their tech support is 24/7 and they usually answer and fix a problem within 5 minutes of your sending in a request. They will even call you to fix something. Incredible people and incredible service/pricing. I get nothing for saying all this, but seemed like the right place and time with this topic and last recent posts. Check them out: http://www.sitelutions.com You probably won't find anything even close to their pricing or service.
I have had close to 10 different hosts, and NONE come even close to these guys support wise.
so do you have to have Aspell & Dictionary for Unix servers?
I have pspell installed but I am getting the same error:
2: PSPELL couldn't open the dictionary. reason: No word lists can be found for the language "en".
File: /home/www/mydomain/forums/Sources/Subs-Post.php
Line: 844
thanks,
†B†V†
Yes you do. As well, you have to have the dictionaries for your version of Aspell installed.
-[Unknown]
I've still not got my spellcheck running again. Has anyone else lost theirs recently? It was functioning perfectly until a couple of weeks before the 1.01 upgrade, when it just stopped working overnight and now shows the cannot find dictionary error. My host admitted they had done an upgrade to Redhat, but surely if this upgrade had affected the way the forum works, everyone would be complaining that their spellcheck had gone? So far they have completed a maintenance cycle' to update the filesystem, or they said they did anyway, which made no difference. Other than that, they just keep muttering about 'looking into it' in a non-specific fashion. Would you say it is probably a host error, and I should nag them more?
Anyone? Maybe I'll just email them a few more times ;D
I would nag them some more... and try the test (spell_test.php) I attached... I think it was in this topic, maybe not...
-[Unknown]
I've had a look through this topic, I can't see the attachment anywhere??
I emailed them again last night, they said they'd pass it on to the day staff, but: "This isn't actually a package that is provided as such with hosting accounts though and so they may not be able to rectify the matter for you if it has changed due to a server package update"
Very helpful of them, especially considering my hosting is up for renewal next month. I may have to point this out when I email again ;D
Ok, I found the test thing in another thread, I uploaded it and then went to the page, was that what I was meant to do?
The page says: Warning: PSPELL couldn't open the dictionary. reason: I'm sorry I can't find any suitable word lists for the language-tag "en". in /var/www/html/forum/pspell_test.php on line 5
Warning: PSPELL couldn't open the dictionary. reason: I'm sorry I can't find any suitable word lists for the language-tag "en". in /var/www/html/forum/pspell_test.php on line 6
Warning: 0 is not a PSPELL result index in /var/www/html/forum/pspell_test.php on line 8
bool(false)
I assume this means my SMF is definitely fine?
Quote from: Random on February 13, 2005, 12:53:02 PM
Ok, I found the test thing in another thread, I uploaded it and then went to the page, was that what I was meant to do?
Yes.
Quote
The page says: Warning: PSPELL couldn't open the dictionary. reason: I'm sorry I can't find any suitable word lists for the language-tag "en". in /var/www/html/forum/pspell_test.php on line 5
Warning: PSPELL couldn't open the dictionary. reason: I'm sorry I can't find any suitable word lists for the language-tag "en". in /var/www/html/forum/pspell_test.php on line 6
Warning: 0 is not a PSPELL result index in /var/www/html/forum/pspell_test.php on line 8
bool(false)
I assume this means my SMF is definitely fine?
Yes. This is a basic example that looks very much like similar examples in the PHP manual. Give your host the script and tell them if it doesn't work pspell doesn't work :P.
-[Unknown]
Thanks for that test thing, I think it finally convinced them they couldn't keep fobbing me off blaming the forum. They just emailed me and said they'd done something, and now the spellcheck works. I think they actually added the dictionary finally ;D ;D
Hello, I ran a phpinfo and pspell is installed and enabled, but I am getting this error.
2: PSPELL couldn't open the dictionary. reason: I'm sorry I can't find any suitable word lists for the language-tag "en".
File: /home/httpd/vhosts/jedidefender.com/httpdocs/yabbse/Sources/Subs-Post.php
Line: 838
I tried downloading some 'en' tar.bz2 for aspell, but when I tried to compile it, it errored out saying that the aspell command could not be found.
Thanks
Are you entirely sure you installed Aspell .50 or higher and the corresponding version of the English dictionary?
-[Unknown]
My host only has ASPELL which is located in usr/bin/
SMF 1.0.4.
Spell Check enabled in Features and options:
Enable spell checking
(this does not work on all servers!) - X
Is it possible to make it work? I read through most pages here but they refer to PSPELL
Does a phpinfo page show it as compiled into PHP as well? What is phpinfo.php? (http://www.simplemachines.org/community/index.php?topic=18250.0)
-[Unknown]
My host has just installed Aspell .51 but i'm getting the following error message when using ?action=spellcheck
Quote
2: PSPELL couldn't open the dictionary. reason: The file "/usr/lib/aspell/en-only.rws" is not in the proper format.
File: /home/domain/public_html/forum/Sources/Subs-Post.php
Line: 838
Do I need to add "en-only" in to Subs-Post.php ?
This means that "en-only.rws" has \r's in it, probably... or was improperly uploaded.
-[Unknown]
Thanks [Unknown]
I'll bounce this back to the server host.
This seems to get more frustrating by the day :(
I haven't managed to make any progress with this problem.
I uploaded a copy of spellcheck.php and that works absolutely fine but none of my SMF installations will allow spell checks, I just keep getting the traditional blank pop-up window with nothing in.
Is it possible that the dev team may be able to consider writing in a version of spellcheck.php by Chris Snyder (or making an admin option to use similar code) as a fall back spell checker?
I'm convinced of two things. One, my host support sucks like a Hover and spell check support is like nailing Jello to a tree. Maybe when I get off of Ipowerweb.com, I'll try again but for now, I'm through begging for help to get lipstick on this pig.
-Jazhawk
Quote from: Jazhawk on August 30, 2005, 11:41:26 PM
I'm convinced of two things. One, my host support sucks like a Hover and spell check support is like nailing Jello to a tree. Maybe when I get off of Ipowerweb.com, I'll try again but for now, I'm through begging for help to get lipstick on this pig.
-Jazhawk
LOL ... I love the analogies :D
Quote from: Fizzy on July 19, 2005, 02:32:35 AM
My host has just installed Aspell .51 but i'm getting the following error message when using ?action=spellcheck
Quote
2: PSPELL couldn't open the dictionary. reason: The file "/usr/lib/aspell/en-only.rws" is not in the proper format.
File: /home/domain/public_html/forum/Sources/Subs-Post.php
Line: 838
Do I need to add "en-only" in to Subs-Post.php ?
I installed and un-installed a mod and now have this problem. Any resolution that any of you can remember?
I have pspell compiled to php and English spell check works fine. However, I would like to have spell checking for other languages as well as I run a multilingual site. Is this possible? How can it be done?
Simply install the required dictionaries, SMF should ask pspell to use the relevant dictionary for the language pack thats being used.
Yes, but what happens if the language pack is English and the actual text is in Greek for example? Is it not possible for the user to select which language is going to be spell checked? As far as I know aspell supports Greek but there is no Greek file for pspell.
If the language pack is English and the text is in Greek, unless you modify index.english.php to tell it to use the Greek dictionary instead, SMF will use the english dictionary for spell-checking.
All the dictionaries are available at ftp://ftp.gnu.org/gnu/aspell/dict/ (Linux/Unix) or ftp://ftp.gnu.org/gnu/aspell/w32/ (Windows). There is a greek dictionary available, but it's for aSpell 0.50 so it may not work with the latest version.
i got our host to move us to a server with pspell and the spell check feature does appear in posts.
but when i click on it nothing happens. nothing at all. Error logs (SMF and Site) show no errors.
manually opening a page http://www.mysite.com/forums/index.php?action=spellcheck is bringing up a blank page.
the Configure Command in phpinfo shows it installed
Quote
'./configure' '--prefix=/usr' '--with-xml' '--enable-bcmath' '--enable-calendar' '--with-curl' '--enable-exif' '--with-swf=/usr/local/flash' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-gettext' '--with-imap' '--with-imap-ssl' '--with-kerberos' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mcrypt' '--with-mhash' '--enable-magic-quotes' '--with-mysql=/usr' '--with-openssl' '--enable-discard-path' '--with-pear' '--with-pgsql=/usr' '--with-pspell' '--enable-sockets' '--enable-track-vars' '--with-ttf' '--with-freetype-dir=/usr' '--enable-gd-native-ttf' '--enable-versioning' '--with-zlib'
what is wrong?
What does this do?
<?php
error_reporting(E_ALL);
$pspell_link = pspell_config_create("en");
$badwords = array("theez", "wurdz", "arn\'t", "spelt", "ritely");
echo '<pre>';
foreach($badwords as $key => $mistake)
{
echo 'Suggestions for <b>' . $mistake . '</b>:<br />';
print_r(array_values(pspell_suggest($pspell_link, $mistake)));
echo '<br />';
}
echo '</pre>';
?>
That should generate a bunch of suggested replacements for the horribly misspelled words. The error_reporting(E_ALL); flag should force PHP to generate any errors that occur, even minor warnings.
http://lordsofclantribe.com/SleePys/pspell.php
Quote
Suggestions for theez:
Warning: pspell_suggest(): 1 is not a PSPELL result index in /home/mdccla2/public_html/SleePys/pspell.php on line 9
Warning: array_values(): The argument should be an array in /home/mdccla2/public_html/SleePys/pspell.php on line 9
Suggestions for wurdz:
Warning: pspell_suggest(): 1 is not a PSPELL result index in /home/mdccla2/public_html/SleePys/pspell.php on line 9
Warning: array_values(): The argument should be an array in /home/mdccla2/public_html/SleePys/pspell.php on line 9
Suggestions for arn\'t:
Warning: pspell_suggest(): 1 is not a PSPELL result index in /home/mdccla2/public_html/SleePys/pspell.php on line 9
Warning: array_values(): The argument should be an array in /home/mdccla2/public_html/SleePys/pspell.php on line 9
Suggestions for spelt:
Warning: pspell_suggest(): 1 is not a PSPELL result index in /home/mdccla2/public_html/SleePys/pspell.php on line 9
Warning: array_values(): The argument should be an array in /home/mdccla2/public_html/SleePys/pspell.php on line 9
Suggestions for ritely:
Warning: pspell_suggest(): 1 is not a PSPELL result index in /home/mdccla2/public_html/SleePys/pspell.php on line 9
Warning: array_values(): The argument should be an array in /home/mdccla2/public_html/SleePys/pspell.php on line 9
*Bump*
i found another thread here on a blank spell check page and ran that
it says:
The en dictionary is installed
so i do got the dictionary installed
any other suggestions or things i should run to see why?
Quote from: SleePy on December 22, 2005, 04:18:00 AM
manually opening a page http://www.mysite.com/forums/index.php?action=spellcheck is bringing up a blank page.
what do you think should here appear? i blank page with index.php?action=spellcheck is okay!
please check instead
http://www.mysite.com/forums/index.php?action=helpadmin;help=enableSpellChecking
and tell me the result
cheers
mediman
Quote from: SleePy on December 22, 2005, 02:16:02 PM
http://lordsofclantribe.com/SleePys/pspell.php
Quote
Suggestions for theez:
Warning: pspell_suggest(): 1 is not a PSPELL result index in /home/mdccla2/public_html/SleePys/pspell.php on line 9
Warning: array_values(): The argument should be an array in /home/mdccla2/public_html/SleePys/pspell.php on line 9
Suggestions for wurdz:
Warning: pspell_suggest(): 1 is not a PSPELL result index in /home/mdccla2/public_html/SleePys/pspell.php on line 9
Warning: array_values(): The argument should be an array in /home/mdccla2/public_html/SleePys/pspell.php on line 9
Suggestions for arn\'t:
Warning: pspell_suggest(): 1 is not a PSPELL result index in /home/mdccla2/public_html/SleePys/pspell.php on line 9
Warning: array_values(): The argument should be an array in /home/mdccla2/public_html/SleePys/pspell.php on line 9
Suggestions for spelt:
Warning: pspell_suggest(): 1 is not a PSPELL result index in /home/mdccla2/public_html/SleePys/pspell.php on line 9
Warning: array_values(): The argument should be an array in /home/mdccla2/public_html/SleePys/pspell.php on line 9
Suggestions for ritely:
Warning: pspell_suggest(): 1 is not a PSPELL result index in /home/mdccla2/public_html/SleePys/pspell.php on line 9
Warning: array_values(): The argument should be an array in /home/mdccla2/public_html/SleePys/pspell.php on line 9
this is normal coz the code from oldiesman has errors ...
try instead this
<?php
error_reporting(E_ALL);
$pspell_link = pspell_new("en");
if (!pspell_check($pspell_link, "wurdz")) {
$suggests = pspell_suggest($pspell_link, "wurdz");
foreach ($suggests as $suggest) {
echo "Suggestions for <b>wurds</b>: $suggest<br />";
}
}
?>
using that i get
QuoteEnable spell checking. You MUST have the pspell library installed on your server and your PHP configuration set up to use the pspell library. Your server DOES appear to have this set up.
running that php file i get
Quote
Suggestions for wurds: wards
Suggestions for wurds: words
Suggestions for wurds: weirds
Suggestions for wurds: weds
Suggestions for wurds: wurst
Suggestions for wurds: Ward
Suggestions for wurds: Ward's
Suggestions for wurds: ward
Suggestions for wurds: ward's
Suggestions for wurds: weeds
Suggestions for wurds: word
Suggestions for wurds: word's
Suggestions for wurds: wits
Suggestions for wurds: wads
Suggestions for wurds: wides
Suggestions for wurds: Warde
Suggestions for wurds: wordy
Suggestions for wurds: Kurds
Suggestions for wurds: curds
Suggestions for wurds: turds
Suggestions for wurds: warez
Suggestions for wurds: weird
Suggestions for wurds: weirdos
Suggestions for wurds: Woods
Suggestions for wurds: warts
Suggestions for wurds: woods
Suggestions for wurds: WATS
Suggestions for wurds: Wed
Suggestions for wurds: Wed's
Suggestions for wurds: wed
Suggestions for wurds: wets
Suggestions for wurds: weirdo
Suggestions for wurds: wireds
Suggestions for wurds: wursts
Suggestions for wurds: dz
Suggestions for wurds: quartz
Suggestions for wurds: wades
For further support i have to ask you for a link to the board ...
click my signature to further support me ;D
just replying back to say i finally got spell check working...
how...
well i had rc2 on my site and spell check was working so i was running around finding out why. i then saw the spellchecker.js in the default themes folder and copied its contents to the spellchecker.js on my other site. and it fixed it... i have no clue as to why and the other site is still rc1... ???
Quote from: SleePy on December 29, 2005, 08:24:33 PM
click my signature to further support me ;D
OT: Not everybody have signatures enabled. So please post it in the post instead. Not keen on change the view only to see your link in the signature :P
Well after doing that Linux line change thing suggested on what page 3 worked. Didn't think it was going to do anything but it did. Installed the files right off the web site, added the line to php.ini and then edit those 2 files and it loaded right up.
www.casblog.net
Windows Server 2003
IIS 6
PHP 4.4.2
SMF 1.1RC2
So it can be done, just have to change the two files to Linux.
My turn to complain about the Spell Checking not working on my forums!
I have read this thread about 12 times now, and sent back and forth with my web host (they are SO great to put up with me this long.
Here are the out puts from their responses:
Quote from: web host
It is installed on the node, the direct path to it here is:
/usr/bin/aspell
Where do I look to make sure the forum is looking here?
then as far as Pspell and the libraries and Aspell version:
Quote from: web host
Its already set:
root@ophira [~]# php -i|grep -i spell Configure Command => './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--prefix=/usr/local' '--with-xml' '--enable-bcmath' '--enable-calendar' '--with-curl' '--with-dom' '--with-dom-xslt' '--with-dom-exslt' '--enable-exif' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-gettext' '--with-imap' '--with-imap-ssl' '--with-kerberos' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mcrypt' '--with-mhash' '--enable-magic-quotes' '--with-mysqli' '--with-mysql=/usr' '--with-openssl' '--enable-discard-path' '--with-pear' '--with-pspell' '--enable-xslt' '--with-xslt-sablot' '--enable-sockets' '--enable-track-vars' '--with-ttf' '--with-freetype-dir=/usr' '--enable-gd-native-ttf' '--enable-versioning' '--enable-wddx' '--with-xmlrpc' '--with-zip' '--with-zlib' pspell PSpell Support => enabled
If you need the english aspell dictionary, it's already installed and has been present for a while:
root@ophira [~]# rpm -qa | grep aspell aspell-en-0.51-11 aspell-0.50.5-3.fc3
I think the library is being picked up correctly.
I have double and triple checked that spell check is enabled and it is, but I still get this error:
Quote from: error message
Enable spell checking. You MUST have the pspell library installed on your server and your PHP configuration set up to use the pspell library. Your server DOES NOT appear to havethis set up.
So what do I do now?
Thanks for any help
I am running 1.1 RC2 btw
ASk them to install a dictionary.
There is one already there:
Quote
If you need the english aspell dictionary, it's already installed and has been present for a while:
root@ophira [~]# rpm -qa | grep aspell aspell-en-0.51-11 aspell-0.50.5-3.fc3
That's why I am so confused here. :o
SMF figures this out by checking to see if the function pspell_new() exists - if it does, then SMF assumes it will work on the server, otherwise SMF says it won't.
What does this give you?
<?php
// Show ALL errors, regardless of how minor they might be
error_reporting(E_ALL);
// Open english dictionary
pspell_new('en');
// A bad spelling of "spelled"... This should generate a lot of suggestions
$suggestions = pspell_suggest('spelt');
echo 'Suggestions for "spelt":<br />';
foreach($suggestions AS $a_word)
{
echo $suggestion . '<br />';
}
?>
That should give you an error message, since SMF doesn't think that pspell_new exists...
Okay - Here's a fun one for ya ;)
I have a 2 SMF installations on one server - one site is novahomebrew.com and the other is homebrewclubs.com. For some reason novahomebrew.com spell checker work without any issues all is happy, however homebrewclubs.com (which is a fresh install) does not have the spell check button. I have red thru the thread and tried a few different items (copying spellcheck.js file) and it had no impact.
Anyone have any ideas :)
Now the bloody thing is working - no idea why! Is there a lag on a system check it does or something?!
Quote from: spiros on December 20, 2005, 11:09:47 AM
I have pspell compiled to php and English spell check works fine.
How did you fix this?? I got the same problem
QuoteThe specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
abnormal program termination
Unhandled Error: E:\Program Files\Aspell\dict/en-only.rws: The file "E:\Program Files\Aspell\data/iso8859-1.dat" is not in the proper format.
I was told the problem is the dictionary files are windows-formatted (but need to be unix-formatted).