![]() |
error on phpdig_functions.php
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 :) |
What is your $phpdig_string_subst variable set like in the config file?
|
i use default one
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 |
Are you using iso-8859-1 or another encoding?
|
acctually i dont know what's iso ? so i just use the default,what should i do ?
thx |
Found it: it's just a typo.
Find $phpdig_string_subst['iso-8859-7'] = 'á:Á¶Ü,â:Â,ã:Ã,ä:Ä,å:ŸÝ,æ:Æ,,ç:Þǹ,è:è,é:ßúɺ,ê:Ê,ë:Ë,ì:Ì,*:Í,î:Î,ï:ü¼Ï,ð:Ð, :Ñ,ó:Óò,ô:Ô,õ:ýûÕ¾,ö:Ö,÷:×,ø:Ø,ù:þÙ¿'; in the config file, and remove the duplicate comma. |
a really really BIG THX, u solve my problem :)
|
All times are GMT -8. The time now is 02:42 AM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.