PDA

View Full Version : error on phpdig_functions.php


kotaksurat99
09-26-2004, 09:22 PM
when i'm running the search.php, this two errors always happen :

Notice: Undefined offset: 1 in c:\inetpub\wwwroot\bb\libs\phpdig_functions.php on line 191 Notice: Undefined offset: 1 in c:\inetpub\wwwroot\bb\libs\phpdig_functions.php on line 192

but, i still can search for a keyword, i got no idea how to fix it, anyone can help me pls ? thx a lot :)

Charter
09-26-2004, 09:32 PM
What is your $phpdig_string_subst variable set like in the config file?

kotaksurat99
09-26-2004, 10:41 PM
i didn't change anything for the $phpdig_string_subst variable , i use the default one, and its looks like this :

$phpdig_string_subst['iso-8859-1'] = 'A:ÀÁÂÃÄÅ,a:*áâãäå,O:ÒÓÔÕÖØ,o:òóôõöø,E:ÈÉÊË,e: éêë,C:Ç,c:ç,I:ÌÍÎÏ,i:ì*îï,U:ÙÚÛÜ,u:ùúûü,Y:Ý,y:ÿý,N :Ñ,n:ñ';
$phpdig_string_subst['iso-8859-2'] = 'A:ÁÂÄá,C:ÇÆÈ,D:ÏÐ,E:ÉËÊÌ,I:ÍÎ,L:Å¥£,N:ÑÒ,O:ÓÔÖÕ, R:ÀØ,S:¦ª©,T:Þ«,U:ÚÜÙÛ,Y:Ý,Z:¬¯®,a:áâäã±,c:çæè,d:ï ,e:éëêì,i:*î,l:åµ³,n:ñò,o:óôöõ,r:*ø,s:¶º¹,t:þ»,u:ú ùû,y:ý,z:¼¿¾';
$phpdig_string_subst['iso-8859-6'] = 'Q:Q,q:q';
//$phpdig_string_subst['iso-8859-7'] = 'é:ßú,á:Ü,å:Ý,ç:Þ,ï:ü,õ:ýû,ù:þ';
$phpdig_string_subst['iso-8859-7'] = 'á:Á¶Ü,â:Â,ã:Ã,ä:Ä,å:ŸÝ,æ:Æ,,ç:Þǹ,è:è,é:ßúɺ, :Ê,ë:Ë,ì:Ì,*:Í,î:Î,ï:ü¼Ï,ð:Ð,ñ:Ñ,ó:Óò,ô:Ô,õ:ýûÕ ,ö:Ö,÷:×,ø:Ø,ù:þÙ¿';
$phpdig_string_subst['tis-620'] = 'Q:Q,q:q';
$phpdig_string_subst['windows-1251'] = 'À:*,Á:á,Â:â,Ã:ã,Ä:ä,Å:å,Æ:æ,Ç:ç,È:è,É:é,Ê:ê,Ë:ë,Ì :ì,Í:*,Î:î,Ï:ï,Ð:ð,Ñ:ñ,Ò:ò,Ó:ó,Ô:ô,Õ:õ,Ö:ö,×:÷,Ø:ø ,Ù:ù,Ú:ú,Û:û,Ü:ü,Ý:ý,Þ:þ,ß:ÿ';

$phpdig_words_chars['iso-8859-1'] = '[:alnum:]ðþßµ';
$phpdig_words_chars['iso-8859-2'] = '[:alnum:]ðþßµ';
$phpdig_words_chars['iso-8859-6'] = '[:alnum:]¤¬»¿ÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚ*áâãäåæ èéêëì*îïðñò';
$phpdig_words_chars['iso-8859-7'] = '[:alnum:]ÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÓÔÕÖ×ØÙ¢¸¹º¼¾¿ÚÛáâãä æçèéêëì*îïðñóôõö÷øùÜÝÞßüýþúûÀ*';
$phpdig_words_chars['tis-620'] = '[:alnum:]¡¢£¤¥¦§¨©ª«¬_®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆ ÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÜß*áâãäåæçèéêëì*î ðñòóôõö÷øùúû';
$phpdig_words_chars['windows-1251'] = '[:alnum:]ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞß*áâãä æçèéêëì*îïðñòóôõö÷øùúûüýþÿ';

thx

Charter
09-26-2004, 10:45 PM
Are you using iso-8859-1 or another encoding?

kotaksurat99
09-27-2004, 03:47 AM
acctually i dont know what's iso ? so i just use the default,what should i do ?
thx

Charter
09-27-2004, 08:04 PM
Found it: it's just a typo.

Find $phpdig_string_subst['iso-8859-7'] = 'á:Á¶Ü,â:Â,ã:Ã,ä:Ä,å:ŸÝ,æ:Æ,,ç:Þǹ,è:è,é:ßúɺ, :Ê,ë:Ë,ì:Ì,*:Í,î:Î,ï:ü¼Ï,ð:Ð,ñ:Ñ,ó:Óò,ô:Ô,õ:ýûÕ ,ö:Ö,÷:×,ø:Ø,ù:þÙ¿'; in the config file, and remove the duplicate comma.

kotaksurat99
09-28-2004, 10:04 AM
a really really BIG THX, u solve my problem :)