PDA

View Full Version : Undefined variable: user_agent


noel
10-27-2005, 08:10 AM
And now that :tired:

SITE : http://www.adumbratu.com/
Chemins exclus :
- @NONE@
Pas de liens dans la table temporaire
liens trouvés : 92

-----------------------------
SITE : http://www.ada-en-corse.com/
Chemins exclus :
- @NONE@
Pas de liens dans la table temporaire
liens trouvés : 92
<br />
<b>Notice</b>: Undefined variable: user_agent in <b>/home/httpd/vhosts/mysite.com/httpdocs/google/admin/robot_functions.php</b> on line <b>906</b><br />
<br />
<b>Notice</b>: Undefined variable: user_agent in <b>/home/httpd/vhosts/mysite.com/httpdocs/google/admin/robot_functions.php</b> on line <b>898</b><br />
<br />
<b>Notice</b>: Undefined variable: user_agent in <b>/home/httpd/vhosts/mysite.com/httpdocs/google/admin/robot_functions.php</b> on line <b>903</b><br />
<br />
<b>Notice</b>: Undefined variable: user_agent in <b>/home/httpd/vhosts/mysite.com/httpdocs/google/admin/robot_functions.php</b> on line <b>898</b><br />
<br />
<b>Notice</b>: Undefined variable: user_agent in <b>/home/httpd/vhosts/mysite.com/httpdocs/google/admin/robot_functions.php</b> on line <b>903</b><br />

-----------------------------
SITE : http://www.acupulatta.com/
Chemins exclus :
-
- @NONE@
Pas de liens dans la table temporaire
liens trouvés : 92

Charter
10-27-2005, 09:46 AM
In the robot_functions.php file of PhpDig 1.8.8 RC1 find the phpdigReadRobotsTxt function and replace it with the attached.

EDIT: attachment below.

noel
10-27-2005, 02:22 PM
Hello CHARTER, and thank you for your answer.
With you file, I have this error :

[root@wpc1460 admin]# php -f spider.php forceall
Failed loading /usr/lib/ioncube/Ioncube_loader_lin_4.4.so: /usr/lib/ioncube/Ioncube_loader_lin_4.4.so: cannot open shared object file: No such file or directory
3831: old priority 0, new priority 18
PHP Parse error: parse error, unexpected '{' in /home/httpd/vhosts/corsica-produits.com/httpdocs/google/admin/robot_functions.php on line 894
<br />
<b>Parse error</b>: parse error, unexpected '{' in <b>/home/httpd/vhosts/corsica-produits.com/httpdocs/google/admin/robot_functions.php</b> on line <b>894</b><br />


Thank you

Noël

noel
10-27-2005, 02:39 PM
If I use web interface with 20 nivel and 20 link he work well and find a lot of link but with shell command he alway say @NONE@
ex: http://www.corse-piscines.com/

Charter
10-27-2005, 06:49 PM
Oops, a typo. Use the attached instead.

noel
10-29-2005, 10:20 AM
Hi CHARTER , thank you for your answer, but as I had a lot problems with the version PHPDIG 1.8.8 RC1 , I come back to the version 1.8.7.
With 1.8.7 I have the same error message of the "user agent" what would be the robot.txt for the 1.8.7 version. I tried the robot.txt file upon here is the error message :

[root@wpc1460 admin]# php -f spider.php README.txt >> spider.log
PHP Fatal error: Call to undefined function: mb_ereg_replace() in /home/httpd/vhosts/mysite.com/httpdocs/google/admin/robot_functions.php on line 903
[root@wpc1460 admin]#

Thank you

Noël

noel
10-30-2005, 04:32 PM
Hello CHARTER,

Finally I tried your fix on the last version 1.8.8 RC1 itworks fine.

Thank You !

Noël