Last modified: 2012-08-04 20:49:12 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
Last working in: r32683 Internal error appeared: r32684 CC'ing Aaron as he's the offending commiter.
Done in r33152.