Last modified: 2010-05-15 15:59:52 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 T15086, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 13086 - trackback.php XML parse error?
trackback.php XML parse error?
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.11.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
unavailable (internal website)
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-02-21 01:22 UTC by Daniel
Modified: 2010-05-15 15:59 UTC (History)
0 users

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


Attachments

Description Daniel 2008-02-21 01:22:01 UTC
I've run the basic install on 1.11.1. The only trouble I've had so far is that after clicking on the trackback link, I get the following error

XML Parsing Error: xml declaration not at start of external entity
Location: http://url/trackback.php?article=Main_Page
Line Number 2, Column 1:<?xml version="1.0" encoding="utf-8"?>
^

Everything I've been able to gather about this error online states that this is the product of whitespace characters or blank lines before or after the xml declaration tags, however I've checked and confirmed that there aren't any. It's the stock trackback with the tarball. 

function XMLsuccess() {
header("Content-Type: application/xml; charset=utf-8");
echo "
<?xml version=\"1.0\" encoding=\"utf-8\"?>
<response>
<error>0</error>
</response>
        ";
        exit;
}
function XMLerror($err = "Invalid request.") {
        header("HTTP/1.0 400 Bad Request");
        header("Content-Type: application/xml; charset=utf-8");
        echo "
<?xml version=\"1.0\" encoding=\"utf-8\"?>
<response>
<error>1</error>
<message>Invalid request: $err</message>
</response>
";
                exit;
}
Comment 1 Brion Vibber 2008-02-26 22:50:26 UTC
Fixed on trunk in r31330

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


Navigation
Links