Last modified: 2008-03-22 00:02:08 UTC
trackback.php is not saving pings into the trackbacks table... or, it looks like it's inserting them and then deleting them, which doesn't make sense from my very limited understanding of the code. When I ping, I get a success XML message, but nothing is added to the database. To debug, I made a copy of trackbacks.php and echoed the sql. Manually running this in mysql inserts just fine, but the tb_id is incremented every time I run trackbacks.php and get XMLsuccess() print_r ($dbw) reports that the insert statement is the last statement before XMLsuccess() is called. I also get no error messages in either the httpd log or in /var/mysql/hostname.err. However, print_r ($dbw) reports [mFailFunction] => 1 I don't know what that means.
Trackbacks are disabled by default. Please ensure that you have enabled them.
I already have $wgUseTrackbacks = true; in LocalSettings.php. Is there something else I need to set?
Forget to commit a transaction? I insert "$dbw->commit();" after $dbw->insert in trackback.php, it works fine.
As far as I can tell, the code doesn't begin a transaction, so one doesn't need to be committed. Oh, and trackback.php is a lesson on how not to write PHP.
Fixed in r32314. Removed bogus dependency on bug 7147.