Last modified: 2014-05-05 16:22:00 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 T66779, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 64779 - refreshGlobalimagelinks.php dies with "No transaction to commit"
refreshGlobalimagelinks.php dies with "No transaction to commit"
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
GlobalUsage (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-05-03 02:07 UTC by Tisza Gergő
Modified: 2014-05-05 16:22 UTC (History)
6 users (show)

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


Attachments

Description Tisza Gergő 2014-05-03 02:07:57 UTC
Steps to reproduce:
1. check out Extension:GlobalUsage
2. add require call to LocalSettings.pgp
3. run update.php
4. run php extensions/GlobalUsage/refreshGlobalimagelinks.php

Querying links after (page_id, il_to) = (0, )
PHP Notice:  DatabaseBase::commit: No transaction to commit, something got out of sync! [Called from DatabaseBase::commit in /vagrant/mediawiki/includes/db/Database.php at line 3464] in /vagrant/mediawiki/includes/debug/Debug.php on line 303
PHP Stack trace:
PHP   1. {main}() /vagrant/mediawiki/extensions/GlobalUsage/refreshGlobalimagelinks.php:0
PHP   2. require_once() /vagrant/mediawiki/extensions/GlobalUsage/refreshGlobalimagelinks.php:107
PHP   3. RefreshGlobalImageLinks->execute() /vagrant/mediawiki/maintenance/doMaintenance.php:109
PHP   4. DatabaseBase->commit() /vagrant/mediawiki/extensions/GlobalUsage/refreshGlobalimagelinks.php:99
PHP   5. wfWarn() /vagrant/mediawiki/includes/db/Database.php:3464
PHP   6. MWDebug::warning() /vagrant/mediawiki/includes/GlobalFunctions.php:1144
PHP   7. MWDebug::sendMessage() /vagrant/mediawiki/includes/debug/Debug.php:157
PHP   8. trigger_error() /vagrant/mediawiki/includes/debug/Debug.php:303

The link refresh is successful though, as far as I can tell.
Comment 1 Tisza Gergő 2014-05-05 16:22:00 UTC
As long as this only happens in Vagrant and not a production environment (which is very different since the DB is accessed via a load balancer), I don't think this is a severe issue. The functionality of the extension does not seem to be impaired. Probably some transaction is committed twice, and the second is ineffective and raises this notice.

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


Navigation
Links