Last modified: 2007-12-22 19:33:09 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 12314 - Bug in includes/Title.php
Bug in includes/Title.php
Product: MediaWiki
Classification: Unclassified
Database (Other open bugs)
All All
: High major (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-need-review
Depends on:
  Show dependency treegraph
Reported: 2007-12-15 11:58 UTC by Bertrand GRONDIN
Modified: 2007-12-22 19:33 UTC (History)
1 user (show)

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

Correcting bug in MySql database (1.01 KB, patch)
2007-12-15 12:04 UTC, Bertrand GRONDIN

Description Bertrand GRONDIN 2007-12-15 11:58:15 UTC
Comment 1 Bertrand GRONDIN 2007-12-15 12:03:02 UTC
When you protect a Title (new functionnality) which is not created, we read the following error message

depuis la fonction « Title::updateTitleProtection ». MySQL a renvoyé l’erreur « 1054 : Unknown column 'pt_user' in 'field list' (sql:3306) ».

The problem is due to a bug in Title.php lines 1209 and 1298. The `protected_titles` TABLE in MySql database has no column intituled `tp_user` but has `pt_by` column

I join a patch file correcting this mistake.
Comment 2 Bertrand GRONDIN 2007-12-15 12:04:44 UTC
Created attachment 4440 [details]
Correcting bug in MySql database

This is the patch file which corrects the problem.
Comment 3 Bertrand GRONDIN 2007-12-15 12:05:29 UTC
This problem is severe
Comment 4 Bertrand GRONDIN 2007-12-16 16:03:32 UTC
The problem is due from the revision #28417 which modify `pt_by` to `pt_user` without changing the name of the column to the `protected_titles` TABLE.

The revision must be reverted or the column 'pt_by' `protected_titles` TABLE to be modified in 'pt_user'. 

I thing that a simple reverted will be better.
Comment 5 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-12-16 21:28:47 UTC
Changed tables.sql in r28570 for MySQL.  I expect Greg will fix pgsql shortly.

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