Last modified: 2012-08-04 20:48:54 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 14708 - Page Deletions broken in r36961
Page Deletions broken in r36961
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Database (Other open bugs)
1.13.x
All All
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: postgres
  Show dependency treegraph
 
Reported: 2008-07-02 23:59 UTC by OverlordQ
Modified: 2012-08-04 20:48 UTC (History)
1 user (show)

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


Attachments

Description OverlordQ 2008-07-02 23:59:36 UTC
Error:

===

Warning: pg_query() [function.pg-query]: Query failed: ERROR: current transaction is aborted, commands ignored until end of transaction block in /home/wiki/includes/db/DatabasePostgres.php on line 557

Warning: pg_query() [function.pg-query]: Query failed: ERROR: current transaction is aborted, commands ignored until end of transaction block in /home/wiki/includes/db/DatabasePostgres.php on line 557
MediaWiki internal error.

Original exception: exception 'DBUnexpectedError' with message 'A database error has occurred
Query: UPDATE category SET cat_pages = cat_pages - 1 WHERE cat_title = 'Deities'
Function: Article::updateCategoryCounts
Error: 1 ERROR: current transaction is aborted, commands ignored until end of transaction block
' in /home/wiki/includes/db/DatabasePostgres.php:982
Stack trace:
#0 /home/wiki/includes/db/Database.php(562): DatabasePostgres->reportQueryError('ERROR: current...', 1, 'UPDATE categor...', 'Article::update...', false)
#1 /home/wiki/includes/db/Database.php(1318): Database->query('UPDATE categor...', 'Article::update...')
#2 /home/wiki/includes/Article.php(3495): Database->update('category', Array, Array, 'Article::update...')
#3 /home/wiki/includes/Article.php(2355): Article->updateCategoryCounts(Array, Array)
#4 /home/wiki/includes/Article.php(2257): Article->doDeleteArticle('content was: '=...', false)
#5 /home/wiki/includes/Article.php(2065): Article->doDelete('content was: '=...', false)
#6 /home/wiki/includes/Wiki.php(449): Article->delete()
#7 /home/wiki/includes/Wiki.php(59): MediaWiki->performAction(Object(OutputPage), Object(Article), Object(Title), Object(User), Object(WebRequest))
#8 /home/wiki/index.php(92): MediaWiki->initialize(Object(Title), Object(Article), Object(OutputPage), Object(User), Object(WebRequest))
#9 {main}

Exception caught inside exception handler: exception 'DBUnexpectedError' with message 'SQL error: ERROR: current transaction is aborted, commands ignored until end of transaction block' in /home/wiki/includes/db/DatabasePostgres.php:586
Stack trace:
#0 /home/wiki/includes/db/Database.php(2621): DatabasePostgres->fetchObject(false)
#1 /home/wiki/includes/LinkBatch.php(98): ResultWrapper->fetchObject()
#2 /home/wiki/includes/LinkBatch.php(78): LinkBatch->addResultToCache(Object(LinkCache), Object(ResultWrapper))
#3 /home/wiki/includes/LinkBatch.php(68): LinkBatch->executeInto(Object(LinkCache))
#4 /home/wiki/includes/Skin.php(208): LinkBatch->execute()
#5 /home/wiki/includes/Skin.php(184): Skin->preloadExistence()
#6 /home/wiki/includes/SkinTemplate.php(106): Skin->initPage(Object(OutputPage))
#7 /home/wiki/skins/MonoBook.php(24): SkinTemplate->initPage(Object(OutputPage))
#8 /home/wiki/includes/SkinTemplate.php(151): SkinMonoBook->initPage(Object(OutputPage))
#9 /home/wiki/includes/OutputPage.php(821): SkinTemplate->outputPage(Object(OutputPage))
#10 /home/wiki/includes/Exception.php(150): OutputPage->output()
#11 /home/wiki/includes/Exception.php(174): MWException->reportHTML()
#12 /home/wiki/includes/Exception.php(260): MWException->report()
#13 /home/wiki/includes/Exception.php(294): wfReportException(Object(DBUnexpectedError))
#14 [internal function]: wfExceptionHandler(Object(DBUnexpectedError))
#15 {main}
===

Problem is this line in Article.php:
==
 $dbw->insert( 'category', $insertRows, __METHOD__, 'IGNORE' );
==

I dont know if it's MySQL specific but I know INSERT IGNORE isn't supported in Postgres.

Related revisions: r32276 r32085 r32233
Comment 1 Greg Sabino Mullane 2008-07-04 15:58:53 UTC
It's definitely MySQL specific. I fixed this up in r37062, please reopen this bug if the problem still exists.

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


Navigation
Links