View Full Version : Indexing hangs, nothing in db

01-10-2004, 07:54 AM
I installed PHPdig quite a few months ago and it worked like a charm, indexing my site with hundreds of pages with ease. After a while, I noticed it now doesn't really get anywhere with my main site www.kevinfreitas.net (http://www.kevinfreitas.net/)
or any subdomains like lu.kevinfreitas.net (http://lu.kevinfreitas.net) or sister.kevinfreitas.net (http://sister.kevinfreitas.net)

Here's my phpinfo (http://www.kevinfreitas.net/phpinfo.php).

When I run indexing it doesn't show me the indexing in progress like it used to. Rather it just seems to hang on the admin homepage.

I've designed my site to conform to CSS and XHTML standards. This wasn't a problem in the past, like I mentioned, but it might help.

I've also just newly installed version 1.6.5 to start out clean. I haven't changed any settings.

Thanks in advance!

01-11-2004, 07:08 AM
Hmm, yes it hangs. I also can't index the main site www.kevinfreitas.net ??!


01-11-2004, 02:54 PM
What the heck. Well, that helps me know that my PHPdig is probably just fine. So it's either my server or my site. I have a redirect (header function) to move visitors from my root domain to a journal entry on the site. Could that have something to do with it?

I'll also set PHPdig loose on another site or two hosted on the same server to see how it performs. That'll give me a good idea whether the problem lies with my server or site.


01-11-2004, 03:10 PM
Hi. I did some testing to see where the hang occurs. The spider.php file calls phpdigGetSiteFromUrl which calls phpdigDetectDir which calls phpdigTestUrl and I think it is the phpdigTestUrl function that PhpDig hangs on because PhpDig is waiting to hear back from the server but it doesn't look like it gets a response.

01-11-2004, 03:38 PM
So, it indexed another site on my server just fine. I removed the "header" php function call and ZIP!!! phpDig started cruising through my site con mucho gusto.

So, how can I get this to work with the redirect? I do this because I have a comments feature for my journal and to pull the correct ones up, I use a date passed within the URL. If I allow my homepage to be a journal entry (at www.kevinfreitas.net rather than www.kevinfreitas.net/home.php?date=20040107 most comments would be associated with the base url rather than each individual entry.

Thanks for the advice all!

01-11-2004, 08:23 PM
Hi. Perhaps try a meta tag redirect like the below.

$today = date("Ymd");
echo <<<END
<meta http-equiv="refresh" content="0;url=http://www.kevinfreitas.net/home.php?date=$today">

02-25-2004, 10:36 AM
Hi. There is now a mod to follow header location redirects here (http://www.phpdig.net/showthread.php?threadid=573).