Regarding that old WordPress trackbacks-not-going problem

Nov 29, 2006

Recently I’d written about my trackbacks problem. Apparently the reason is the PHP installation at my host — the company runs PHP as a CGI module and wherever this is the case the original trackback code of WordPress has some problem. After extensively sifting through the online forums I figured out a patch had been written, and it appears in /wp-admin/admin-footer.php like this:

<?php
if ( (substr(php_sapi_name(), 0, 3) == ‘cgi’) && spawn_pinger() ) {
echo ‘<iframe id=”pingcheck” src=”‘ . get_settings(’siteurl’) .’/wp-admin/execute-pings.php?time=’ . time() . ‘” style=”border:none;width:1px;height:1px;”></iframe>’;
}
?>

But still the trackbacks were not being sent. So I copied the code and pasted it straightaway in /wp-admin/post.php just above this code:

<?php if ( isset($_GET['posted']) ) : ?>
<div id=”message” class=”updated fade”><p><strong><?php _e(’Post saved.’); ?></strong> <a href=”<?php echo get_permalink( $_GET['posted'] ); ?>”><?php _e(’View post’); ?> &raquo;</a></p></div>
<?php endif; ?>

It started working! I’m no longer using Windows Live Writer to post and edit blog entries because the trackbacks still only work if I post from within the control panel (previously they weren’t even working like that).

AddThis Social Bookmark Button

Posted by Amrit | Tags: Blogging Tips
Add to: Digg | Del.icio.us | Yahoo! | Netvouz | BlinkList | Furl


You can leave a response, or trackback from your own site.

Leave a Reply