-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> Hi folks,
>
>
> courier-imap 4.0.3 PHP 4.4.0
> Apache 2.0.54
> squirrelmail 1.4.5 squirrelspell appears to be v0.3.7 (it came with 1.4.5)
> Aspell 0.60.2
>
>
> Using SQM with a fairly large userbase over 1K.
>
>
> squirrelspell works fine normally but getting this in Apache error logs
> from time to time:
>
> [Mon Aug 01 10:26:53 2005] [error] [client 82.15.X.X] PHP Warning: Wrong
> parameter count for _() in
> /path/to/sqmail/plugins/squirrelspell/modules/check_me.mod on line 102,
> referer:
> http://www.mydomain.com/wm/plugins/squirrelspell/sqspell_interface.php
> [Mon Aug 01 10:26:54 2005] [error] [client 82.15.X.X] PHP Fatal error:
> Call to undefined function: encodeheader() in
> /path/to/sqmail/class/deliver/Deliver.class.php on line 458, referer:
> http://www.mydomain.com/wm/plugins/squirrelspell/sqspell_interface.php
>
>
> grep -r encodeheader * in sqm directory doesn't reveal any functions of
> this name, neither does a function search on php.net
>
> I have php compiled with --enable-mbstring and this in php.ini
>
>
> mbstring.language = Neutral mbstring.internal_encoding =
> UTF-8
> mbstring.encoding_translation = On mbstring.http_input = pass
> mbstring.http_output = pass mbstring.detect_order = auto
> mbstring.substitute_character = none
>
> whether this is anything to do with it I don't know
1. Error in configuration file.
SQSPELL_APP_DEFAULT is not present in SQSPELL_APP array.
2. function names are case insensitive. encodeHeader() function is present
in SquirrelMail code. functions/mime.php file. But SquirrelSpell plugin
should not use SquirrelMail delivery class. Please provide list and order
of all enabled plugins and third party plugin versions.
I think you might be able to disable warning, if you add
"include_once(SM_PATH . 'functions/mime.php');" call to
sqspell_interface.php near line 35.
3. check_me.mod contains some invalid gettext and sprinf formating. See
attached patch. Should be fixed in 1.5.1cvs and 1.4.6cvs within next 10
hours.
4. error in check_me.mod (line 102) can be triggered only if you have
seriously broken spell checking command (for example missing -a option in
ispell or aspell call) or something is broken in php proc_open function.
If you get 'error writing to pipe' complains from users after applying
check_me.mod.diff and setting SQSPELL_APP_DEFAULT to 'English UK', find
line in check_me.mod with 'if( check_php_version ( 4, 3 ) ) {' check and
replace it with 'if( check_php_version ( 5, 0 ) ) {'. This will force use
of older pre php 4.3.0 spell checking code.
5. If you have large userbase, avoid making changes in SQSPELL_APP array
key names or check all .words files before removing some array key present
in older SquirrelMail installation. You might be unable to check some
personal dictionary files, if users encode them.
- --
Tomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iEYEARECAAYFAkLvJV8ACgkQ+cs+8aEMofDqVQCfWMVRaWH4lgMIRd/SgLEOYxJu
TSYAn28vSB0aL8mqrX/Jw14faLU5x4GZ
=l71y
-----END PGP SIGNATURE-----
ÚÚÚ§M{ï®øótÛO4çM6