PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Troubleshooting

Reply
 
Thread Tools
Old 09-26-2004, 09:22 PM   #1
kotaksurat99
Green Mole
 
Join Date: Sep 2004
Posts: 5
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
kotaksurat99 is offline   Reply With Quote
Old 09-26-2004, 09:32 PM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
What is your $phpdig_string_subst variable set like in the config file?
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Old 09-26-2004, 10:41 PM   #3
kotaksurat99
Green Mole
 
Join Date: Sep 2004
Posts: 5
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
kotaksurat99 is offline   Reply With Quote
Old 09-26-2004, 10:45 PM   #4
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Are you using iso-8859-1 or another encoding?
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Old 09-27-2004, 03:47 AM   #5
kotaksurat99
Green Mole
 
Join Date: Sep 2004
Posts: 5
acctually i dont know what's iso ? so i just use the default,what should i do ?
thx
kotaksurat99 is offline   Reply With Quote
Old 09-27-2004, 08:04 PM   #6
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Found it: it's just a typo.

Find $phpdig_string_subst['iso-8859-7'] = 'á:Á¶Ü,â:Â,ã:Ã,ä:Ä,å:ŸÝ,æ:Æ,,ç:Þǹ,è:è,é:ßúɺ,ê:Ê,ë:Ë,ì:Ì,*:Í,î:Î,ï:ü¼Ï,ð:Ð, :Ñ,ó:Óò,ô:Ô,õ:ýûÕ¾,ö:Ö,÷:×,ø:Ø,ù:þÙ¿'; in the config file, and remove the duplicate comma.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Old 09-28-2004, 10:04 AM   #7
kotaksurat99
Green Mole
 
Join Date: Sep 2004
Posts: 5
a really really BIG THX, u solve my problem
kotaksurat99 is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
permission error launching search.php frichmout_fr Script Installation 1 10-03-2007 11:01 PM
Error in PhpDig_Functions - Line 194 BobH Bug Tracker 1 05-09-2006 08:12 PM
Undefined Offset in phpdig_functions.php clobdell Troubleshooting 2 12-17-2004 10:47 PM
offset errors from function phpdigCreateSubstArrays in phpdig_functions.php oblio Script Installation 1 09-27-2004 08:07 PM
XML error with spider.php... Grantome Troubleshooting 7 09-07-2004 04:03 PM


All times are GMT -8. The time now is 08:22 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.