Upgrade 2.01 Causes Admin Problems with Autometa Plugin (3 posts)

  1. ColourDreamer
    Posted 10 years ago #

    I did an automatic upgrade with Dreamhost, then updated the DB by following clicking the links in admin.

    Now when I save a draft I get MYSQL errors, but they seem to be a little different each time. Here's one:

    Warning: uasort(): Invalid comparison function. in /location/wp-content/plugins/autometa.php on line 73

    Warning: Cannot modify header information - headers already sent by (output started at /location/wp-content/plugins/autometa.php:73) in /location/wp-admin/post.php on line 59

    It's the plugin Autometa. Which I really need for Technorati tags without overloading my blog with categories. I thought I'd upgrade to 2.01 because I figured it would take care of the utterly horrible way the new Word Press does images, with AND without the rich text editor. The image problem is exactly the same. Now I'm stuck, and my Autometa is screwy. :-(

    Here's the stuff around line 73:

    function getRank($terms, $story_id) {
    global $wpdb;
    $scores[] = array();
    foreach ($terms as $term) {
    $q = "SELECT MATCH(post_content, post_title) against ('".$term."') as score FROM ".$wpdb->posts." where id=".$story_id.";";
    $result = $wpdb->get_var($q);
    $scores[$i]['term'] = $term;
    $scores[$i]['score'] = $result;
    // sort the data before returning it
    uasort($scores, "compareScores");
    return $scores;

    Here IS 73: return $scores;

    What can I do? Is Autometa still working?

  2. ear1grey
    Posted 10 years ago #

    The first problem identiied here is one that has been fixed in AutoMeta 0.5b, you can download that immediately from http://boakes.org/autometa

    The second issue i've not been aware of until just now. I upgraded from 2.0 to 2.0.1 today, so a fix will follow when I work out what the problem is.


  3. ear1grey
    Posted 10 years ago #

    OK, version 0.6 released, which I've tested with WP2.0.1, so problem solved I hope. See http://boakes.org/autometa

Topic Closed

This topic has been closed to new replies.

About this Topic