PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Troubleshooting

Reply
 
Thread Tools
Old 01-05-2004, 04:56 PM   #1
MonoNexo
Green Mole
 
Join Date: Jan 2004
Posts: 15
Blank results are being returned

Howdy. I may have caused this, because I can't find a record of this occuring in any other post.

Anyway, I'm getting search results that are blank. Example:

http://search.aodojo.com/search.php?...t&lim_start=10

You will see a few times on the search results "- 0.0 k"


How I may of caused this: The search engine is going to be independently linked, and also linked through a 404 error, reading the attempted url and parsing it through the engine to find a good match. If it finds a "Direct Hit" verbatim, it will redirect there, if it doesn't find it verbatim, it will suggest the page, then display the rest of the search results. An example of this can be found by going to http://search.aodojo.com/ and searching "ships" That is a non-verbatim return. If you search "ship" it will redirect you instantly to the ships page.

Why I don't think I caused this: I didn't touch anything mySql, and I didn't mess that much around in the files... I had 5 sites on index, and deleted 4 and left the big one, the root aodojo.com. Deleting these sites did nothing in removign the odd results.
MonoNexo is offline   Reply With Quote
Old 01-06-2004, 12:21 AM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. Are there any files in the text_content directory that have zero filesize? If you can run grep -ci saga * from shell, how many files in the text_content directory have at least one instance of saga?
__________________
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 01-06-2004, 02:56 AM   #3
MonoNexo
Green Mole
 
Join Date: Jan 2004
Posts: 15
No, the smallest is 274 b though. I have shell access, never used it on this account though so I'll need to wait a day or so for them to enable it. I'll get back to you then.
MonoNexo is offline   Reply With Quote
Old 01-07-2004, 01:31 PM   #4
MonoNexo
Green Mole
 
Join Date: Jan 2004
Posts: 15
Apperently 67.
MonoNexo is offline   Reply With Quote
Old 01-09-2004, 03:32 AM   #5
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
>> You will see a few times on the search results "- 0.0 k"
>> No, the smallest is 274 b though.

Hi. Try running the following query:
Code:
select count(*) from spider where filesize = 0;
What is the output?
__________________
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 01-09-2004, 07:47 PM   #6
MonoNexo
Green Mole
 
Join Date: Jan 2004
Posts: 15
SQL result
Host: localhost
Database : mononex_phpdig
Generation Time: Jan 09, 2004 at 11:47 PM
Generated by: phpMyAdmin 2.5.2
SQL-query: SELECT count( * ) FROM spider WHERE filesize = 0;

count( * )
0
MonoNexo is offline   Reply With Quote
Old 01-11-2004, 06:01 PM   #7
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. It seems that the results that are getting unset somehow might wind up back in the search results. What text output do you get if you do the following in search.php and then search on saga?
PHP Code:
$my_test_array phpdigSearch($id_connect$query_string$option$refine,
              
$refine_url$lim_start$limite$browse,
              
$site$path$relative_script_path'array');

print_r($my_test_array); 
__________________
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 01-12-2004, 02:45 AM   #8
MonoNexo
Green Mole
 
Join Date: Jan 2004
Posts: 15
Nothing out of the ordinary. Perhaps I inserted it wrong into search.php?

PHP Code:
<?php
/*
--------------------------------------------------------------------------------
PhpDig Version 1.6.x
This program is provided under the GNU/GPL license.
See the LICENSE file for more information.
All contributors are listed in the CREDITS file provided with this package.
PhpDig Website : [url]http://www.phpdig.net/[/url]
--------------------------------------------------------------------------------
*/
$relative_script_path '.';

include 
"$relative_script_path/includes/config.php";
include 
"$relative_script_path/admin/debug_functions.php";
include 
"$relative_script_path/libs/search_function.php";

// extract vars
extract(phpdigHttpVars(
     array(
'query_string'=>'string',
           
'template_demo'=>'string',
           
'refine'=>'integer',
           
'refine_url'=>'string',
           
'site'=>'integer',
           
'limite'=>'integer',
           
'option'=>'string',
           
'search'=>'string',
           
'lim_start'=>'integer',
           
'browse'=>'integer',
           
'path'=>'string'
           
)
     ));
phpdigSearch($id_connect$query_string$option$refine,
              
$refine_url$lim_start$limite$browse,
              
$site$path$relative_script_path$template);
$my_test_array phpdigSearch($id_connect$query_string$option$refine
$refine_url$lim_start$limite$browse
$site$path$relative_script_path'array'); 
print_r($my_test_array);
?>
MonoNexo is offline   Reply With Quote
Old 01-12-2004, 02:59 AM   #9
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. That looks fine. It didn't return any blank results? What template are you using?
__________________
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 01-12-2004, 03:34 AM   #10
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. I tried dojo.php as my template. Of course, I can't get the actual PHP but the HTML output from dojo.php seems to work okay. Can you set your search up so dojo.php is just the HTML from http://search.aodojo.com/templates/dojo.php and then search on saga? Does it still return blank results?
__________________
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 01-12-2004, 11:42 AM   #11
MonoNexo
Green Mole
 
Join Date: Jan 2004
Posts: 15
I changed it to dojo.html. I hadn't added any php to the layout yet, but it is changed to .html now.

Blank results are still being returned.

Matt
MonoNexo is offline   Reply With Quote
Old 01-12-2004, 11:44 AM   #12
MonoNexo
Green Mole
 
Join Date: Jan 2004
Posts: 15
Should I just try reinstalling phpdig?
MonoNexo is offline   Reply With Quote
Old 01-13-2004, 02:25 PM   #13
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. Where any blank results returned when you used print_r($my_test_array); in the search.php file?

Also, what happens if you use the below template?
Code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>
.phpdigHighlight {font-weight:bold;}
</style>
</head>

<body bgcolor="white">
<font face='arial,helvetica'>

<phpdig:form_head/>
<phpdig:form_field/>
<phpdig:form_button/>
<phpdig:form_foot/>
<br />
<font size="2">
<b><phpdig:result_message/></b>
<br /><i><phpdig:ignore_message/></i>
<br /><i><phpdig:ignore_commess/></i>
</font>

<phpdig:results>
<p>
<phpdig:page_link/><br />
<font size='2'>
<phpdig:text/>
</font>
<br />
<font size='2' color='green'><phpdig:complete_path/> <phpdig:filesize/> k</font>
</p>
</phpdig:results>

<p align='center'>
<font size="2"><phpdig:nav_bar/></font>
</p>

</font>
</body>
</html>
__________________
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 01-13-2004, 04:42 PM   #14
MonoNexo
Green Mole
 
Join Date: Jan 2004
Posts: 15
The print_r thing did not remove the blank results.

The updated template did not remove the blank results, although it did as some interesting things at the bottom of the page. Your template is still in use if you wish to look.
MonoNexo is offline   Reply With Quote
Old 01-13-2004, 05:26 PM   #15
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. Thanks, feel free to put your template back in place. Did you make any mods to the search_function.php file? If so, can you attach the file in a post?
__________________
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
Reply

Thread Tools

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
Blank results & Speed Dave A Troubleshooting 0 06-30-2007 02:05 AM
config of search tool/blank results page jag7720 Troubleshooting 1 06-26-2006 09:22 AM
Search results returns blank page Anton Troubleshooting 1 02-11-2006 10:20 PM
Search results returns blank page Anton Troubleshooting 0 01-05-2006 08:56 PM
First 5 results are blank? huge_nerd Troubleshooting 8 01-04-2005 10:18 AM


All times are GMT -8. The time now is 12:59 PM.


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