Latest Register Log In

+ Advanced Search

Pageranks are all 1

Pageranks are all 1
By
02/07/07 (Edited 02/01/14)

First, check if fopen URL wrappers are enabled on your server. The pagerank utility uses fsockopen and at present cannot fall back to cURL when fopen URL wrappers are disabled. Once you enable fopen url wrappers, the pageranks will start to update correctly again.

Using automated queries from a script to calculate a google pagerank breaks google's terms of service, thus they're known to ban servers for it if the rate of requests is too high. You can test whether this is what's happening to you by creating this little test script (name it test.php if you like) in your main WSN directory and visit it in your web browser:
<?php require 'classes/pagerank.php';
$gpr = new pagerank();
$gpr->userAgent = $_SERVER["HTTP_USER_AGENT"];
$gpr->useCache = false;
$gpr->debug = true;
$rank = $gpr->GetPR("http://www.yahoo.com");
echo "The pagerank is $rank. Full raw data: {$gpr->rawdata}";
?>


If you see a message from google, you can appeal to google if you wish. If you've regenerated pageranks before, be sure not to do that again (let the system update them more slowly to avoid angering google).

If you see some other message, contact WSN support.




Description When you have pagerank switched on, yet it doesn't work.
Rating
Views 616 views. Averaging 0 views per day.