• So, I have shelved blogrolling for the time being and I’m trying to use the link manager for my blog reads again.
    I have the links showing as updated in January. Any clues? Yes, I have CHMODed the weblogs.com.changes.cache file to 666 and I don’t have anything in my index.php header as I’m running 1.0, it wasn’t in the header anywhere. When I try to add it in, it throws an error with the links-update-xml.php on line 49.
    I have this in my index.php
    <?php get_links(-1, ”, ”, ”, 0, ‘name’, 0, 0, -1, 1) ?>
    Basically, is there an actual reason my links are showing updated in December 2003 and January 2004 time frame, or is it just one of those things?
    Oh, here’s the URL, it’s on the sidebar.
    Thanks in advance! šŸ™‚

Viewing 15 replies - 1 through 15 (of 21 total)
  • How often do you have the option set to check weblogs.com? If it hasn’t updated yet, it may be using dates from a previous time you had it turned on.

    Thread Starter southerngal

    (@southerngal)

    Nick, thanks for answering me! šŸ™‚ I have it as 120 for the minutes. Is that what you are talking about? I’m in the links manager screen. The cache is at 10 minutes.

    Someone once posted here that if you update the cache file from weblogs.com more than 3 times an hour you get blocked. Not sure if it’s true…but I have mine set to 21 just in case.
    When I look at your cache file, it was updated at 04 Mar 2004 20:56:31 GMT, and it is now roughly 05 Mar 2004 00:05:00 GMT, so your file hasn’t upated in over 3 hours!
    FYI…the times have never been correct when I’ve been using this feature…even now that GMT is used for everything else, it isn’t being used properly for links updated in the nightly builds. But they are only off by a few hours, not months like yours.

    Thread Starter southerngal

    (@southerngal)

    Thanks Nick, I changed the cache to 60 just in case. So that’s once an hour. I don’t know if it will change when I upgrade to the next full release or not. I just wonder if I should have the tag in the top for the
    links-update-xml.php even though it didn’t matter in the least for the times. I did try it even with the parse error it was throwing. I may just keep blogrolling on it until I upgrade then try again. šŸ™

    Whoops…I totally missed the part about it throwing an error! That file needs to be working, because it does all the work for the updating of times.

    Thread Starter southerngal

    (@southerngal)

    Ok, does it have to be CHMODed or anything?

    Shouldn’t need any special CHMOD. What kind of error does it give?

    Thread Starter southerngal

    (@southerngal)

    Haha, I owe you a coke.

    Thread Starter southerngal

    (@southerngal)

    Nope, have not changed a thing. Should I upload a newer version?

    Do you have a line like this:
    $file = ABSPATH . get_settings(‘weblogs_cache_file’);
    in function get_weblogs_updatedfile of wp-includes/links-update-xml.php?
    I’m guessing this line is where it is getting messed up.

    Thread Starter southerngal

    (@southerngal)

    No, no line like that.
    /**
    ** get_weblogs_updatedfile()
    ** Retrieves and caches a copy of the weblogs.com changed blogs xml file.
    ** If the file exists check it’s age, get new copy if old.
    ** If a new or updated file has been written return true (needs processing)
    ** otherwise return false (nothing to do)
    **/
    function get_weblogs_updatedfile() {
    global $ignore_weblogs_cache,$ABSPATH;
    $update = false;
    if ($ignore_weblogs_cache) {
    $update = true;
    } else {
    if (file_exists(get_settings(‘weblogs_cache_file’))) {
    // is it old?
    $modtime = filemtime(get_settings(‘weblogs_cache_file’));
    if ((time() – $modtime) > (get_settings(‘weblogs_cacheminutes’) * 60)) {
    $update = true;
    }
    } else { // doesn’t exist
    $update = true;
    }
    }
    if ($update) {
    // get a new copy
    $a = @file(get_settings(‘weblogs_xml_url’));
    if ($a != false && count($a) && $a[0]) {
    $contents = implode(”, $a);
    // Clean up the input, because weblogs.com doesn’t output clean XML
    $contents = preg_replace(“/’/”,’'’,$contents);
    $contents = preg_replace(‘|[^[:space:][:punct:][:alpha:][:digit:]]|’,”,$contents);
    $cachefp = fopen(get_settings(‘weblogs_cache_file’), “w”);
    fwrite($cachefp, $contents);
    fclose($cachefp);
    } else {
    return false; //don’t try to process
    }
    }
    return $update;
    }

    Under your Options->Link Manager Settings, what is weblogs_cache_file set to?
    Mine is simply “weblogs.com.changes.cache” (without the quotes) and I have the file at the root.

    Thread Starter southerngal

    (@southerngal)

    You don’t have /the/path/public_html/to it? Hm. I did as that’s what I have always had. I too have my weblogs.com.changes.cache in my root.
    I uploaded a new version of the links-update-xml.php to my wp-includes folder. I guess I will have to wait for a while to see if this works?

    I think that is why you are getting a duplicate…because WP adds $ABSPATH onto it.
    If that is the problem….we sure made this tougher than it needed to be! šŸ˜‰

    Thread Starter southerngal

    (@southerngal)

    *LOL* I guess I have to wait for someone to update? Maybe all the reads will update when the new cache is pulled from weblogs.com?

Viewing 15 replies - 1 through 15 (of 21 total)

The topic ‘Link manager date way off.’ is closed to new replies.