Author: 25albert+mw
Description:
Trying to delete a page leads to the following message:
Warning: pg_query() [function.pg-query]: Query failed: ERROR: update or delete on "page" violates foreign key constraint "recentchanges_rc_cur_id_fkey" on "recentchanges" DETAIL: Key (page_id)=(24) is still referenced from table "recentchanges". in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 580
Warning: pg_query() [function.pg-query]: Query failed: ERROR: current transaction is aborted, commands ignored until end of transaction block in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 580
I indeed have a constraint in the recentchanges table, which probably need to be corrected:
ALTER TABLE mediawiki.recentchanges
ADD CONSTRAINT recentchanges_rc_cur_id_fkey FOREIGN KEY (rc_cur_id) REFERENCES mediawiki.page (page_id) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE NO ACTION;
Version: 1.15.x
Severity: normal