Last modified: 2008-03-22 00:02:08 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T8447, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 6447 - trackback.php not saving pings
trackback.php not saving pings
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Database (Other open bugs)
1.8.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://ecoliwiki.org
: patch-need-review
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-06-26 14:09 UTC by Jim Hu
Modified: 2008-03-22 00:02 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Jim Hu 2006-06-26 14:09:38 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.
Comment 1 Brion Vibber 2006-06-26 15:56:48 UTC
Trackbacks are disabled by default. Please ensure that you 
have enabled them.
Comment 2 Jim Hu 2006-06-26 16:08:06 UTC
I already have

$wgUseTrackbacks = true;

in LocalSettings.php.  Is there something else I need to set?
Comment 3 Kkkdc @jawiki 2006-08-28 12:26:58 UTC
Forget to commit a transaction?

I insert "$dbw->commit();" after $dbw->insert in trackback.php,
it works fine.
Comment 4 Rob Church 2006-08-28 14:29:07 UTC
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.
Comment 5 Brion Vibber 2008-03-22 00:02:08 UTC
Fixed in r32314.

Removed bogus dependency on bug 7147.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links