PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Troubleshooting

Reply
 
Thread Tools
Old 02-08-2004, 07:09 PM   #1
vinyl-junkie
Purple Mole
 
Join Date: Jan 2004
Posts: 694
Spidering Problems on a Windows Server Website

I haven't forgotten about the fact that I said I would try and solve that authentication problem for a site on a Windows server. Instead, I wanted to bypass the authentication process for now and just see if I could spider this website at all. Sure enough, I ran into a problem. Here's the error I'm getting.
Quote:
Fatal error: Call to undefined function: is_executable() in c:\hosting\webhost4life\member\vinyljunkie2\search\admin\robot_functions.ph p on line 665
The line number that references is here, in bold:
Quote:
if (USE_IS_EXECUTABLE_COMMAND == 1) {
$is_exec_command_msword = is_executable(PHPDIG_PARSE_MSWORD);
I found the code in config.php which references USE_IS_EXECUTABLE_COMMAND and changed the value for that variable to zero, but all I got was a bunch more errors after refreshing my phpdig database and trying to start over again.

Any ideas what the problem could be?
vinyl-junkie is offline   Reply With Quote
Old 02-09-2004, 02:07 AM   #2
mbruere
Green Mole
 
Join Date: Feb 2004
Posts: 3
Hi. PhpDig 1.6.4+ has an option in the config file to bypass is_executable. Change define('USE_IS_EXECUTABLE_COMMAND','1'); to define('USE_IS_EXECUTABLE_COMMAND','0'); in the config file.

Regards,

Mathieu
mbruere is offline   Reply With Quote
Old 02-09-2004, 06:25 AM   #3
vinyl-junkie
Purple Mole
 
Join Date: Jan 2004
Posts: 694
Yes, I know. As I stated in my first post, I changed that to zero and just got a bunch of different errors. I have no idea why. Would it be helpful if I posted those error messages too?
vinyl-junkie is offline   Reply With Quote
Old 02-09-2004, 07:21 AM   #4
vinyl-junkie
Purple Mole
 
Join Date: Jan 2004
Posts: 694
I'm replying to myself here. After posting earlier, I went on reading some other posts in the forum and came across a couple of others with problems similar to mine with that is_executable variable. OK, I thought. I'll just double-check what I've done and attempt to spider my site one more time.

I refreshed all the phpdig database tables, then attempted to spider my site again. This time, the spidering page showed up like this:
Quote:
SITE : http://www.techtipscentral.net/
Exclude paths :
- test/
- 1ClickDBFree/
Unable to create temp directory
For what it's worth, I ended up having to drop that table and then re-create it to get the phpdig database refreshed so I could try spidering again.

Now I'm sure that I have that is_executable variable being set properly, so what is the problem this time?
vinyl-junkie is offline   Reply With Quote
Old 02-09-2004, 07:54 AM   #5
vinyl-junkie
Purple Mole
 
Join Date: Jan 2004
Posts: 694
Sorry for so many posts, but I'm replying to myself again. I found this thread in the forums, which describes the exact same problem I'm having, including the error messages.

I tried what they said they did, creating an admin/temp directory, and also Charter's suggestion about commenting out that section of code. I'm still getting that long list of errors given in that prior post. Worse yet, it seems to only be spidering the root directory and then stopping. I have *way* more content than just one page. Help!
vinyl-junkie is offline   Reply With Quote
Old 02-09-2004, 09:47 AM   #6
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. Is safe mode on? What errors do you receive?
__________________
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-09-2004, 10:02 AM   #7
vinyl-junkie
Purple Mole
 
Join Date: Jan 2004
Posts: 694
Re: safe mode. I have no idea. Is that something I would have to ask my web host? I didn't find anything about that in their knowledge base. If safe mode is on, is there no way around it?

Here are the errors I'm getting (full directory extension is replaced by "pathname" here):
Quote:
Warning: fopen(../admin/temp/27583251.tmp): failed to open stream: Permission denied in c:\pathname\search\admin\robot_functions.php on line 705

Warning: fwrite(): supplied argument is not a valid stream resource in c:\pathname\search\admin\robot_functions.php on line 707

Warning: fclose(): supplied argument is not a valid stream resource in c:\pathname\search\admin\robot_functions.php on line 709

Warning: filesize(): Stat failed for ../admin/temp/27583251.tmp (errno=2 - No such file or directory) in c:\pathname\search\admin\robot_functions.php on line 710

Notice: Undefined variable: revisit_after in c:\pathname\search\admin\spider.php on line 374
1:http://www.techtipscentral.net/
(time : 00:00:06)
No link in temporary table
vinyl-junkie is offline   Reply With Quote
Old 02-09-2004, 10:57 AM   #8
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. Check your phpinfo for safe_mode to see if it's on or off. Also check that the following directories have 777 permission:

[PHPDIG_DIR]/text_content
[PHPDIG_DIR]/include
[PHPDIG_DIR]/admin/temp
__________________
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-09-2004, 12:18 PM   #9
vinyl-junkie
Purple Mole
 
Join Date: Jan 2004
Posts: 694
safe_mode is off for both local and master value.
safe_mode_exec_dir is off for both.
safe_mode_gid is off for both.
safe_mode_include_dir has "no value" for both.
open_basedir has "no value" for both.
disable_functions has "no value" for both.
disable_classes has "no value for both.

All three of those directories you had me check have permission level 777.

I was reading some of the stuff from the link you posted. Is it possible that the reason I'm unable to execute these commands is that I created the PHPDIG directories with the username/password that I was given for my web host account, but the database username/password are different? When it comes to this sort of thing, I'm way out of my element.
vinyl-junkie is offline   Reply With Quote
Old 02-11-2004, 12:14 PM   #10
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. What is allow_url_fopen set to in the phpinfo?
__________________
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-11-2004, 06:48 PM   #11
vinyl-junkie
Purple Mole
 
Join Date: Jan 2004
Posts: 694
That is set to On for both local and master values.
vinyl-junkie is offline   Reply With Quote
Old 02-11-2004, 09:18 PM   #12
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
>> ...I created the PHPDIG directories with the username/password that I was given for my web host account...

Hi. Do you mean that you logged into your account and then created the directories? Who's the owner of the directories? Perhaps send an email to your host. For some reason it seems that the directories are not accessible to the script.
__________________
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-13-2004, 11:27 PM   #13
vinyl-junkie
Purple Mole
 
Join Date: Jan 2004
Posts: 694
I contacted my Web host, and they changed the permissions for my account. That did the trick, and now I have spidered my site!

I just have to add that I have one of the best Web hosts around. I turned in the support ticket about 10:15 p.m. tonight, and received a response about 45 minutes later. This isn't the first time either that I have received fast service like that. Pretty cool, huh?

Now, to look at that authentication screen issue with IIS that I said I would work on....
vinyl-junkie is offline   Reply With Quote
Old 02-14-2004, 12:03 AM   #14
vinyl-junkie
Purple Mole
 
Join Date: Jan 2004
Posts: 694
But...

And here is where Windows is so darn picky, I'm testing the actual search page now and getting the following error:
Quote:
Undefined offset: 1 in pathname\search\libs\search_function.php on line 468
Line 468 in search_function.php looks like this:
Quote:
list($title,$text) = explode("\n",$first_words);
I've discovered already with PHP scripts that Windows is very fussy about making sure variables are initialized before calling a function. However, I initialized $title and $text to nulls at the start of the function, but that didn't help. Any ideas on how to fix this?
vinyl-junkie is offline   Reply With Quote
Old 02-14-2004, 01:03 PM   #15
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. What do you get when you call the following from the browser using your Windows account?
PHP Code:
<?php
$test 
"This is\na test.";
list(
$first,$second) = explode("\n",$test);
echo 
$first "<br>" $second;
?>
__________________
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


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
Moved Website to new Server - Dig no longer working mpilon Troubleshooting 0 03-12-2008 07:44 AM
Help!!! Windows....Linux problems? NewDigger Troubleshooting 3 11-20-2004 09:32 AM
Hello, I use a Windows Server ClausBrell The Mole Hole 2 09-30-2004 05:35 AM
Server Resources problems sid Troubleshooting 4 02-28-2004 05:23 PM
Installation Problems On A Second Website vinyl-junkie Script Installation 6 02-03-2004 09:17 PM


All times are GMT -8. The time now is 08:41 AM.


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