PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Troubleshooting

Reply
 
Thread Tools
Old 02-23-2005, 07:17 AM   #1
infoland
Green Mole
 
Join Date: Aug 2004
Posts: 6
Problem for short words

I've a "strange" problem.

All is indexing fine (html, php, pdf...not doc/xls ).

But when i make a search, if i type a single letter or a 2 letter word, i obtain a "superb" error message :

Quote:
Notice: Uninitialized string offset: 0 in D:\Apache2\htdocs\diggy\libs\search_function.php on line 590

Notice: Uninitialized string offset: 0 in
D:\Apache2\htdocs\diggy\libs\search_function.php on line 597
My parameters are correct :

Quote:
define('SMALL_WORDS_SIZE',2); //words to not index - must be 2 or more
define('MAX_WORDS_SIZE',30); //max word size
Why such an error ?

Does anyone has a solution ?

Thank you in advance.

PS : i'm using phpdig 1.8.7, apache2, php 4.3.10

Last edited by infoland; 02-23-2005 at 07:21 AM.
infoland is offline   Reply With Quote
Old 02-23-2005, 07:19 AM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
PhpDig version?
__________________
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 02-23-2005, 07:22 AM   #3
infoland
Green Mole
 
Join Date: Aug 2004
Posts: 6
I've edited my post...sorry
infoland is offline   Reply With Quote
Old 02-23-2005, 07:27 AM   #4
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
PhpDig v.1.8.7, are you sure? I thought I fixed this:

http://www.phpdig.net/forum/showthread.php?t=1666
__________________
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 02-23-2005, 07:31 AM   #5
infoland
Green Mole
 
Join Date: Aug 2004
Posts: 6
As sure as i'm writing to you

And my search_function.php contains the right code

Quote:
else {
if (is_array($strings)) {
$strings = array_values($strings);
$num_in_strings_arr = count($strings);
}
else { $num_in_strings_arr = 0; }
$leven_final = "";
$leven_sum = 0;
I'm a little bit disapointed

Last edited by infoland; 02-23-2005 at 07:35 AM.
infoland is offline   Reply With Quote
Old 02-23-2005, 07:54 AM   #6
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hmm, so in search_function.php right after:
Code:
    if (($num_in_strings_arr > 0) && (strlen($path) == 0)) {
Add the following:
Code:
    echo $num_in_strings_arr."<br>";
    print_r($strings);
And then do a search for a single letter and tell me what prints out.
__________________
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 02-23-2005, 08:17 AM   #7
infoland
Green Mole
 
Join Date: Aug 2004
Posts: 6
It tells (that's in french)

Quote:
"tv", sont des mots trop courts et ont été ignorés.
That's working...what was the problem ???
infoland is offline   Reply With Quote
Old 02-23-2005, 08:54 AM   #8
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
I turned error reporting on high but could not duplicate the problem in v.1.8.7 so I don't know.
__________________
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 02-23-2005, 09:10 AM   #9
infoland
Green Mole
 
Join Date: Aug 2004
Posts: 6
Perhaps a problem of upgrading on my server.

I'll see.

Thanks a lot for your help.

Have a nice day.
infoland 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
Remove PHP short tags (patch) blueyed Mod Submissions 0 11-22-2006 06:29 AM
Many words not indexed darrenm Troubleshooting 1 07-29-2005 09:54 AM
dig for certain words nmott How-to Forum 1 02-26-2005 09:02 PM
Dynamic Link Bug with Short Tags (and solution) Zee How-to Forum 0 12-10-2004 08:41 AM
No short description from .doc? Spider External Binaries 1 09-06-2004 03:25 AM


All times are GMT -8. The time now is 01:24 PM.


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