#37307 [NEW]: !!PHP Warning: PSPELL couldn't open the dictionary. reason: No word lists can b
| From: | ushastry at techbooks dot com | Date: | Thu, 04 May 2006 12:59:34 +0000 |
| Subject: | #37307 [NEW]: !!PHP Warning: PSPELL couldn't open the dictionary. reason: No word lists can b | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-96588@lists.php.net to get a copy of this message | ||
From: ushastry at techbooks dot com
Operating system: Windows 2k Professional
PHP version: 4.4.2
PHP Bug Type: Pspell related
Bug description: !!PHP Warning: PSPELL couldn't open the dictionary. reason: No word lists can
b
Description:
------------
Hi!,
Platform Details
PHP: PHP-4.4.2 (Downloaded zip file from us2.php.net)
OS:Win2k
WebServer: IIS5
Also installed these..downloaded from aspell.net/win32(C:/Aspell)
Aspell-0-50-3-3-Setup.exe
Aspell-en-0.50-2-3.exe
my phpinfo() shows
pspell
PSpell Support enabled
When I try to run PHP script contaning below code(partial)
$path_to_personal_dictionary = dirname(__FILE__) .
"/personal_dictionary/MPWordS.txt";
//If pspell doesn't exist, then include the pspell wrapper for aspell.
if(!function_exists('pspell_suggest'))
{
// Set the path to aspell if you need to use it.
define('ASPELL_BIN','/usr/bin/aspell');
require_once ("pspell_comp.php");
}
// Create and configure a link to the pspell module.
$pspell_config = pspell_config_create("en");
pspell_config_mode($pspell_config, PSPELL_FAST);
if($usePersonalDict)
{
// Allows the use of a custom dictionary (Thanks to Dylan Thurston for
this addition).
pspell_config_personal($pspell_config, $path_to_personal_dictionary);
}
$pspell_link = pspell_new_config($pspell_config); //Here comes the
error...
Getting below error..
!!PHP Warning: PSPELL couldn't open the dictionary. reason: No word lists
can be found for the language "en". in
c:\inetpub\wwwroot\spell_checker\spell_checker.php on line 76
Pls suggest the possible fix here..
Thanks,
Umesh Shastry
Reproduce code:
---------------
!!PHP Warning: PSPELL couldn't open the dictionary. reason: No word lists
can be found for the language "en". in
c:\inetpub\wwwroot\spell_checker\spell_checker.php on line 76
Expected result:
----------------
!!PHP Warning: PSPELL couldn't open the dictionary. reason: No word lists
can be found for the language "en". in
c:\inetpub\wwwroot\spell_checker\spell_checker.php on line 76
Actual result:
--------------
!!PHP Warning: PSPELL couldn't open the dictionary. reason: No word lists
can be found for the language "en". in
c:\inetpub\wwwroot\spell_checker\spell_checker.php on line 76
--
Edit bug report at http://bugs.php.net/?id=37307&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37307&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=37307&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37307&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=37307&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=37307&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=37307&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=37307&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=37307&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=37307&r=support
Expected behavior: http://bugs.php.net/fix.php?id=37307&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=37307&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=37307&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=37307&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37307&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=37307&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=37307&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=37307&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=37307&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=37307&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=37307&r=mysqlcfg