Last modified: 2010-05-15 15:33:53 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 T4747, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 2747 - selecting "my watchlist" results in sql error
selecting "my watchlist" results in sql error
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Database (Other open bugs)
1.4.x
All All
: Highest critical (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-07-07 18:01 UTC by William Nyden
Modified: 2010-05-15 15:33 UTC (History)
0 users

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


Attachments

Description William Nyden 2005-07-07 18:01:11 UTC
Error message:
Database error
From WikiPOBia
(for user "Billy Ruffian")
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 "1064: You have
an error in your SQL syntax near 'UNION SELECT rc_namespace cur_namespace,
rc_title cur_title, rc_comment cur_' at line 9 (localhost)".

Location of faulty code is probably in includes/SpecialWatchlist.php
Comment 1 Brion Vibber 2005-07-07 18:40:22 UTC
What's your MySQL version?
Comment 2 Brion Vibber 2005-07-16 06:45:00 UTC
1.4.7 reverts to prior version of SpecialWatchlist.php, which works on MySQL 3.23.x. Resolving as fixed.
Comment 3 Tine Benko 2005-08-12 13:49:07 UTC
I have very simmilar problem so I wont open new bug...

When I try to open MyWatchlist (just if it ist't empty), error 1064 occurs.

Here is c/p:
>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 "1064: You 
>have an error in your SQL syntax near 'INDEX (page_timestamp) WHERE wl_user=5 
>AND wl_namespace=page_namespace ' at line 4 (localhost)".
>Retrieved from "http://--path--/index.php?title=Special:Watchlist"

That error occurs also on some other pages e.g.: RandomPage, MyContributions, 
Special pages/AllPages.

That error came up after upgrading v.1.4.7. to 1.5beta4 and keeping the same 
db.

Comment 4 Brion Vibber 2005-08-12 23:01:34 UTC
That's bug 3056.

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


Navigation
Links