Last modified: 2010-05-15 15:38:47 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 T3264, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 1264 - CVS 1.5 crashes when $wgMaxCredits=-1
CVS 1.5 crashes when $wgMaxCredits=-1
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.5.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-01-04 23:01 UTC by T. Gries
Modified: 2010-05-15 15:38 UTC (History)
0 users

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


Attachments

Description T. Gries 2005-01-04 23:01:49 UTC
If you set $wgMaxCredits=-1; (in DefaultSettings.php), the wiki crashes

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

    SELECT rev_user, rev_user_text, user_real_name, MAX(rev_timestamp) as
timestamp FROM revision LEFT JOIN user ON rev_user = user_id WHERE rev_page =
AND old_user != 0 GROUP BY rev_user, rev_user_text, user_real_name ORDER BY
timestamp DESC 

from within function "Article::getContributors". MySQL returned error "1064: You
have an error in your SQL syntax. Check the manual that corresponds to your
MySQL server version for the right syntax to use near 'AND old_user != 0 GROUP
BY rev_user, rev_user_text, user_rea".


See provisionally http://bugzilla.wikipedia.org/show_bug.cgi?id=508
Comment 1 T. Gries 2005-01-04 23:07:02 UTC
forgot to say this, the error is present on:

- existing installation (after having changed the variable $wgMaxCredits to -1)
- fresh installation, fresh database  (with the variable $wgMaxCredits = -1)
Comment 2 JeLuF 2005-01-04 23:50:39 UTC
Fixed in Article.php, revision 1.257

Please test.
Comment 3 T. Gries 2005-01-05 21:54:13 UTC
New error message is

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

    SELECT rev_user, rev_user_text, user_real_name, MAX(rev_timestamp) as
timestamp FROM revision LEFT JOIN user ON rev_user = user_id WHERE rev_page = 1
AND old_user != 0 GROUP BY rev_user, rev_user_text, user_real_name ORDER BY
timestamp DESC 

from within function "Article::getContributors". MySQL returned error "1054:
Unknown column 'old_user' in 'where clause'".
Comment 4 JeLuF 2005-01-05 22:32:07 UTC
replaced old_user by rev_user. Fixed.

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


Navigation
Links