Last modified: 2013-02-16 17:56:32 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 T46941, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 44941 - Error while deleting a page
Error while deleting a page
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Database (Other open bugs)
1.12.x
Other Linux
: Unprioritized critical (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-13 10:20 UTC by cs.saraswathi
Modified: 2013-02-16 17:56 UTC (History)
3 users (show)

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


Attachments
Page Deletion error (2.13 MB, image/bmp)
2013-02-13 10:20 UTC, cs.saraswathi
Details

Description cs.saraswathi 2013-02-13 10:20:30 UTC
Created attachment 11776 [details]
Page Deletion error

We recently migrated from Postgres 8.2 version to Postgres9.2 version.   Post which we find we are unable to delete the page and giving a Database Error
A database error has occurred Query: INSERT INTO archive 

(ar_namespace,ar_title,ar_comment,ar_user,ar_user_text,ar_timestamp,ar_minor_edit,ar_rev_id,ar_text_id,ar_text,ar_fl

ags,ar_len,ar_page_id) SELECT 

page_namespace,page_title,rev_comment,rev_user,rev_user_text,rev_timestamp,rev_minor_edit,rev_id,rev_text_id,'','',r

ev_len,page_id FROM page,revision WHERE page_id = '71036' AND (page_id = rev_page) Function: 

Article::doDeleteArticle Error: 1 ERROR: cannot insert into view "archive" HINT: You need an unconditional ON INSERT 

DO INSTEAD rule or an INSTEAD OF INSERT trigger. 


We ran update.php as well.  Please let me know if there is a solution for the same.
Comment 1 Andre Klapper 2013-02-13 10:50:12 UTC
Hi cs.saraswathi,
which MediaWiki version is this problem about?
Comment 2 cs.saraswathi 2013-02-14 10:13:47 UTC
It is Mediawiki 1.12
Comment 3 cs.saraswathi 2013-02-14 10:14:42 UTC
Basically I feel some mismatch in timestamp format
Comment 4 cs.saraswathi 2013-02-14 12:16:53 UTC
We found that date format (YYYYMMDDHH24MISS) in Archive view  was the issue.  We updated the date format in schema and recreated the DB in 9.2 post which we were able to delete.

But the challenge we see there are couple of tables for which data is not getting imported

archive
archive2
image
imagelinks
categorylinks
externallinks
filearchive
logging
oldimage

Need some guidance on the same.
Comment 5 Andre Klapper 2013-02-16 17:56:32 UTC
1.12 was released five years ago and is not supported anymore.
Feel free to ask on https://www.mediawiki.org/wiki/Project:Support_desk and reopen this bug report if the problem still happens in a supported stable version (1.19 or 1.20). Thanks!

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


Navigation
Links