Page MenuHomePhabricator

watchlist error - no table prefix
Closed, ResolvedPublic

Description

Author: thomas.burgstaller

Description:

Error:

A database query syntax error has occurred. This may indicate a bug in the software. The last
attempted database query was:

(SQL query hidden)

from within function "wfSpecialWatchlist". MySQL returned error "1146: Table 'wiki.watchlist'

doesn't exist (localhost)".

Reason: table has a prefix: mw_watchlist

Fix:
In SpecialWatchlist.php on line 156 and 164 change
-FROM watchlist,recentchanges
to
+FROM $watchlist,$recentchanges


Version: 1.4.x
Severity: normal

Details

Reference
bz2755

Event Timeline

bzimport raised the priority of this task from to High.Nov 21 2014, 8:40 PM
bzimport set Reference to bz2755.
bzimport added a subscriber: Unknown Object (MLST).

thomas.burgstaller wrote:

patch for SpecialPages.php in MediaWiki 1.4.6

attachment patch ignored as obsolete

zigger wrote:

REL1_4 patch for SpecialWatchlist.php from prev diff

(patch made from diff by Thomas Burgstaller)
The problem was introduced in MediaWiki 1.4.5.

Attached:

zigger wrote:

(In reply to comment #3)

The problem was introduced in MediaWiki 1.4.5.

The problem was introduced after MediaWiki 1.4.5 (released in 1.4.6).

zigger wrote:

Fixed in REL1_4 cvs by Domas as part of SpecialWatchlist.php 1.39.2.8 changes.

  • Bug 2873 has been marked as a duplicate of this bug. ***

zigger wrote:

*** Bug 2813 has been marked as a duplicate of this bug. ***

zigger wrote:

*** Bug 2869 has been marked as a duplicate of this bug. ***

zigger wrote:

*** Bug 2917 has been marked as a duplicate of this bug. ***