Page MenuHomePhabricator

opensearch_desc.php response contains error message "Uncommitted DB writes"
Closed, DeclinedPublic

Description

I try to add my local MediaWiki installation into Firefox as search engine. Firefox does not accept the opensearch response because there is an error message in the response:

$ curl http://localhost/mediawiki/opensearch_desc.php
<?xml version="1.0"?><OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/"><ShortName>Trunk (de-formal)</ShortName><Description>Trunk (de-formal)</Description><Image height="16" width="16" type="image/x-icon">http://localhost/favicon.ico</Image><Url type="text/html" method="get" template="http://localhost/mediawiki/index.php?title=Spezial:Suche&amp;search={searchTerms}" /><Url type="application/x-suggestions+json" method="get" template="http://localhost/mediawiki/api.php?action=opensearch&amp;search={searchTerms}&amp;namespace=0" /><Url type="application/x-suggestions+xml" method="get" template="http://localhost/mediawiki/api.php?action=opensearch&amp;format=xml&amp;search={searchTerms}&amp;namespace=0" /><moz:SearchForm>http://localhost/mediawiki/index.php?title=Spezial:Suche</moz:SearchForm></OpenSearchDescription><br />
<b>Notice</b>:  Uncommitted DB writes (transaction from DatabaseBase::query (DatabaseBase::query)). in <b>/srv/www/htdocs/mediawiki/includes/db/Database.php</b> on line <b>4366</b><br />

Event Timeline

Fomafix raised the priority of this task from to Needs Triage.
Fomafix updated the task description. (Show Details)
Fomafix added a project: MediaWiki-Search.
Fomafix added a subscriber: Fomafix.
Fomafix set Security to None.
Fomafix changed the task status from Open to Stalled.Feb 6 2016, 12:26 PM

The problem does not exist anymore.

I'm not sure if it can come again. opensearch_desc.php should never answer with an invalid XML.

The problem does not exist anymore.

Hence closing task.