Last modified: 2010-05-15 15:33:39 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 T3027, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 1027 - Moving page fails with DB table prefix (wiki_)
Moving page fails with DB table prefix (wiki_)
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Categories (Other open bugs)
1.4.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-12-07 05:28 UTC by John Miller
Modified: 2010-05-15 15:33 UTC (History)
0 users

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


Attachments

Description John Miller 2004-12-07 05:28:15 UTC
A database query syntax error has occurred. This may 
indicate a bug in the software. The last attempted 
database query was: 
UPDATE categorylinks SET cl_sortkey='CWiki:Sandbox2' 
WHERE cl_from='919' AND cl_sortkey='CWiki:Sandbox'
from within function "SpecialMovepage::doSubmit". 
MySQL returned error "1146: 
Table 'creature.categorylinks' doesn't exist".
Retrieved 
from "http://www.creatureworld.net/wiki/Special:Movepag
e"


Fixed by changing instances of 'categorylinks' to 
$categorylinks in includes/LinksUpdate.php.
Comment 1 John Miller 2004-12-07 05:43:10 UTC
Oops... also had to go into includes/Title.php and add a line 
($categorylinks = $dbw->tableName("categorylinks");) before the 
query, and then change categorylinks to $categorylinks
Comment 2 John Miller 2004-12-07 05:49:25 UTC
And... the original 'fix' wasn't the problem, and actually breaks 
other things.
Comment 3 Brion Vibber 2004-12-07 08:04:06 UTC
Comment #1 sounds like the correct fix, which I've checked in to 1.5 and 1.4 branches. Don't touch LinksUpdate, which 
looks right already.

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


Navigation
Links