• Ever since I upgraded from 1.5 > 2.0 > 2.0.1 > 2.0.2 pingbacks and trackbacks have stopped working. I have no idea what to do about this. Am I the only one with this problem in version 2.0.2?

Viewing 15 replies - 16 through 30 (of 30 total)
  • It could be a problem with the execute-pings. I have found that WordPress always gives pingbacks precedence over trackbacks, which is backwards in my estimation; especially since most people link to articles (causing the pingback) and add a trackback to have their articles show up in the trackback section of the linked article.

    The trackback in this case might never take hold because it would appear as a double ping to some sites and they suppress the second ping which is a trackback in this case (this is done to prevent comment spam).

    You can simply replace the wp-admin\execute-pings.php file with the text below. Please back up the old file just in case you want to revert back. I encourage you to look at the structure of the replacement as it is a very simple mechanism. Once you do this both trackbacks and pingbacks SHOULD show up as expected.

    THIS IS A WP 2.01 REPLACEMENT Please check the exact structure of your version before making any changes to this file. It works fine for me on 2.01. And as always BACKUP the original.

    Bsically just change the order of Trackbacks to take precedence over pingbacks as demonstrated below.

    <?php

    require_once(‘../wp-config.php’);

    // Do Trackbacks – TMT Moved Up to force Trackbacks ahead of pingbacks
    $trackbacks = $wpdb->get_results(“SELECT ID FROM $wpdb->posts WHERE CHAR_LENGTH(TRIM(to_ping)) > 7 AND post_status != ‘draft'”);
    if ( is_array($trackbacks) ) {
    foreach ( $trackbacks as $trackback ) {
    do_trackbacks($trackback->ID);
    }
    }

    // Do pingbacks
    while ($ping = $wpdb->get_row(“SELECT * FROM {$wpdb->posts}, {$wpdb->postmeta} WHERE {$wpdb->posts}.ID = {$wpdb->postmeta}.post_id AND {$wpdb->postmeta}.meta_key = ‘_pingme’ LIMIT 1”)) {
    $wpdb->query(“DELETE FROM {$wpdb->postmeta} WHERE post_id = {$ping->ID} AND meta_key = ‘_pingme’;”);
    pingback($ping->post_content, $ping->ID);
    }

    // Do Enclosures
    while ($enclosure = $wpdb->get_row(“SELECT * FROM {$wpdb->posts}, {$wpdb->postmeta} WHERE {$wpdb->posts}.ID = {$wpdb->postmeta}.post_id AND {$wpdb->postmeta}.meta_key = ‘_encloseme’ LIMIT 1”)) {
    $wpdb->query(“DELETE FROM {$wpdb->postmeta} WHERE post_id = {$enclosure->ID} AND meta_key = ‘_encloseme’;”);
    do_enclose($enclosure->post_content, $enclosure->ID);
    }

    ?>
    `

    Thread Starter dewall

    (@dewall)

    Anyone tried the above on WP 2.0.2? Would really like trackbacks and pingbacks to work

    Hmm, this is all too weird lol. I was just having problems with this the other day, did a test of one and my own trackback ended up in the “Comments For Moderation”. LoL!

    Have the latest Spam Karma 2 and Akismet going. But, I could try that above code instead once..see what happens. =)

    spencerp

    I just took a look and you can apply the same change to 2.02.

    Back up the original file and just move the pingback block below the trackback block.

    For me this works and was necessary due to the sites I linked up against. It would be nice to find out if the WordPress developers had a reason for giving pingbacks precedence over trackbacks. It could just be luck of the draw.

    If in fact there is no reason perhaps an option on the write post page would make sense.

    did a test of one and my own trackback ended up in the “Comments For Moderation”

    Unfortunately this change doesn’t address that issue. I have tried to suppress these to no avail although I only use akismet.

    Hmmm.. =( I’m not sure of this or not, but like Viper says from here/down

    About how the Spam Karma 2 and Akismet not playing well together, and he had to use that little plugin for it to work properly.. which I should [kickself] because I haven’t tried that yet..

    I’ll have to here soon. Hopefully some time soon, we’ll get this whole thing squashed. πŸ˜‰

    spencerp

    EDITED* Ok, I have now done that little plugin had mentioned. =D And disabled the normal Akismet one…

    Thread Starter dewall

    (@dewall)

    As I understand it the above solution is aimed at sending trackbacks. Is there anyone that has problems receiving trackbacks as well?

    I have tried the solution above, but can still not either send or receive trackbacks.

    Uppdate: I turned of the author highligt plugin and suddenly I can recieve trackbacks, but I can still not send TB.

    Thread Starter dewall

    (@dewall)

    I have now deactivated Inline Ajax Comments. I can now recieve trackbacks.

    Thread Starter dewall

    (@dewall)

    …or not. Sometimes I can receive, sometimes I can’t.
    I can’t figure out the logic of this error

    gaiusarbo

    (@gaiusarbo)

    I’m new to WordPress, so bear with me.

    I first activated WordPress (automatic installation from Blue Host) on March 17th.
    From the start, I have never received anything from another site when they linked me. I could originally let them know I had linked them by entering the trackback URL in the post entry form. But that has completely stopped working now. I only know about links to me from TTLB, Technorati is NOT updating, either. It would seem there is some sort of bug at work here.

    ptp

    (@ptp)

    Using WordPress 2.0.2 here. Both Trackbacks and Pingbacks to the test site above worked just fine for me. Both Trackbacks and Pingbacks to my own site from the test site above also worked just fine for me. Pingbacks and Trackbacks to my own site also got through just fine.

    mlanger

    (@mlanger)

    There has to be something that’s causing some of us not to be able to send trackbacks or pingbacks and others to have no problems. I can receive both pingbacks and trackbacks but can’t send either one. I’ve tried to numerous blogs with admins who were looking for the comment. I’ve even tried to the test site above. Nothing.

    atheneaquinas

    (@atheneaquinas)

    I need help with this…

    I have 2.02 and Ive reset on mysql that worked but trackbacks dont nor do pingbacks. For example. I have to manually ping pongomatic for it to ever show up at technorati…

    Then I downloaded the patch, did as intruct5ed and all I got to happen was that same funky code above my header but nothing else happened so I went back to old versions of execute php and functions php so the funky code wouldnt be there. How do I get this happening?

    Help…….

    Thanks in advance

Viewing 15 replies - 16 through 30 (of 30 total)
  • The topic ‘Trackback and pingback not working’ is closed to new replies.