PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Troubleshooting

Reply
 
Thread Tools
Old 12-14-2004, 08:07 AM   #1
blackcorvidae
Green Mole
 
Join Date: Dec 2004
Posts: 6
No Results... No clue why

I installed phpdig 1.8.5 on Apache 2 with Php 4.3.1 and Mysql 4.0.11.
So, everything is great, the DB is cool, the spider indexes a ton of pages and there's plenty of info to search, thousands of keywords and stuff to see in Mysql.

But...
any and all search strings from the search.php page come up with no results.

I had a previous version of phpdig (1.6.2) working fine before.

I dropped everything and started from scratch, only dealing with one site.

Anyways,
take a look, any ideas?
http://eclipse.hsclib.temple.edu/sea...8.5/search.php

Oh, when I submit a search, I get the "did you mean" thing and it's always exactly the same word I just searched.

What does that mean?

I'm confused.
blackcorvidae is offline   Reply With Quote
Old 12-14-2004, 01:13 PM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Did you change any config file settings?
__________________
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 12-15-2004, 10:40 AM   #3
blackcorvidae
Green Mole
 
Join Date: Dec 2004
Posts: 6
I didn't change anything...I would have if everything was working for templates and all, but no.
blackcorvidae is offline   Reply With Quote
Old 12-15-2004, 11:19 AM   #4
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Check to see whether there is a conflict between the old version and new version (maybe re-FTP the PHP files) and whether the seach is making queries to the correct tables (compare connect.php files). Also, try running the "clean" options from the admin panel.
__________________
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 12-15-2004, 11:25 AM   #5
blackcorvidae
Green Mole
 
Join Date: Dec 2004
Posts: 6
This was a clean install.
I dropped tables from the get-go and even did away with the old distro files all together.

I can query the tables with the mysql command-line client and see whatever I like, but I'll check again to see if the right tables are being queried.

I ran all the clean commands from admin, but it didn't help.
blackcorvidae is offline   Reply With Quote
Old 12-15-2004, 11:47 AM   #6
blackcorvidae
Green Mole
 
Join Date: Dec 2004
Posts: 6
Ok, I went into my php.ini file and turned on all error messages (usually suppress warnings), and I'm getting this error on the search.php page:

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /var/www/html/search/phpdig-1.8.5/libs/search_function.php on line 273
blackcorvidae is offline   Reply With Quote
Old 12-15-2004, 11:55 AM   #7
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Okay, in search_function.php find:
PHP Code:
$num_res_temp mysql_num_rows($result); 
And right beforehand add:
PHP Code:
if (!$num_res_temp) {
    echo 
"The error is: ".mysql_error();

And try another search and see what it shows onscreen.
__________________
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 12-15-2004, 11:59 AM   #8
blackcorvidae
Green Mole
 
Join Date: Dec 2004
Posts: 6
Ok, now here's the message:

Notice: Undefined variable: num_res_temp in /var/www/html/search/phpdig-1.8.5/libs/search_function.php on line 273
The error is: Can't create/write to file '/root/tmp/#sql_76b9_0.MYI' (Errcode: 13)
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /var/www/html/search/phpdig-1.8.5/libs/search_function.php on line 276


A permission problem?
blackcorvidae is offline   Reply With Quote
Old 12-15-2004, 12:05 PM   #9
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
The undefined variable is just because the query barfed. The query barfed because it looks like the /tmp directory is not set to writable permission.
__________________
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 12-15-2004, 12:22 PM   #10
blackcorvidae
Green Mole
 
Join Date: Dec 2004
Posts: 6
for some reason Mandrake is using /root/tmp instead of /tmp

I'll change that, fiddle with it and see....

thanks
blackcorvidae 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
No most searched terms, biggest results, most 0 results, last search queries, etc. jongag1 How-to Forum 6 04-22-2005 11:43 AM
Searchfeed results displayed with phpdig results Nosmada How-to Forum 1 01-04-2004 12:39 PM


All times are GMT -8. The time now is 07:21 PM.


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