Last modified: 2012-08-04 20:49:12 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 13679 - Deleting images and RecentChanges broken
Deleting images and RecentChanges broken
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-04-10 03:23 UTC by OverlordQ
Modified: 2012-08-04 20:49 UTC (History)
1 user (show)

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


Attachments

Description OverlordQ 2008-04-10 03:23:34 UTC
When deleting an image after giving a reason and clicking Delete you get this:

====
A database error has occurred Query: INSERT INTO recentchanges (rc_timestamp,rc_cur_time,rc_namespace,rc_title,rc_type,rc_minor,rc_cur_id,rc_user,rc_user_text,rc_comment,rc_this_oldid,rc_last_oldid,rc_bot,rc_moved_to_ns,rc_moved_to_title,rc_ip,rc_patrolled,rc_new,rc_old_len,rc_new_len,rc_deleted,rc_logid,rc_log_type,rc_log_action,rc_params,rc_id) VALUES ('2008-04-10 03:19:17 GMT','2008-04-10 03:19:17 GMT','6','Test.png','3','0','68','1','OverlordQ','test image','0','0','0','0','','72.204.127.99','1','0',NULL,NULL,'0','94','delete','delete','','250') Function: RecentChange::save Error: 1 ERROR: insert or update on table "recentchanges" violates foreign key constraint "recentchanges_rc_cur_id_fkey" DETAIL: Key (rc_cur_id)=(68) is not present in table "page".

Backtrace:

#0 /home/wiki/includes/Database.php(533): DatabasePostgres->reportQueryError('ERROR: insert ...', 1, 'INSERT INTO rec...', 'RecentChange::s...', 0)
#1 /home/wiki/includes/DatabasePostgres.php(775): Database->query('INSERT INTO rec...', 'RecentChange::s...', 0)
#2 /home/wiki/includes/RecentChange.php(175): DatabasePostgres->insert('recentchanges', Array, 'RecentChange::s...')
#3 /home/wiki/includes/RecentChange.php(478): RecentChange->save()
#4 /home/wiki/includes/LogPage.php(85): RecentChange::notifyLog('20080410031917', Object(Title), Object(User), 'deleted "[[Imag...', '', 'delete', 'delete', Object(Title), 'test image', '', '94')
#5 /home/wiki/includes/LogPage.php(253): LogPage->saveContent()
#6 /home/wiki/includes/Article.php(2301): LogPage->addEntry('delete', Object(Title), 'test image')
#7 /home/wiki/includes/FileDeleteForm.php(111): Article->doDeleteArticle('test image', false)
#8 /home/wiki/includes/FileDeleteForm.php(75): FileDeleteForm::doDelete(Object(Title), Object(LocalFile), '', 'test image', false)
#9 /home/wiki/includes/ImagePage.php(494): FileDeleteForm->execute()
#10 /home/wiki/includes/Wiki.php(444): ImagePage->delete()
#11 /home/wiki/includes/Wiki.php(59): MediaWiki->performAction(Object(OutputPage), Object(ImagePage), Object(Title), Object(User), Object(WebRequest))
#12 /home/wiki/index.php(92): MediaWiki->initialize(Object(Title), Object(ImagePage), Object(OutputPage), Object(User), Object(WebRequest))
#13 {main}
====

Go back to the image page and the image *was* deleted however the entry in recentchanges was not made, but does show up in the deletion log
Comment 1 OverlordQ 2008-04-10 05:07:10 UTC
Last working in: r32683
Internal error appeared: r32684

CC'ing Aaron as he's the offending commiter.
Comment 2 Aaron Schulz 2008-04-11 23:54:34 UTC
Done in r33152.

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


Navigation
Links