Last modified: 2009-07-25 20:33:12 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 T20657, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 18657 - Special:Log can give database error
Special:Log can give database error
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-05-02 20:16 UTC by Gurch
Modified: 2009-07-25 20:33 UTC (History)
5 users (show)

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


Attachments

Description Gurch 2009-05-02 20:16:19 UTC
http://en.wikipedia.org/wiki/Special:Log


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 "IndexPager::reallyDoQuery (LogPager)". MySQL returned error "1104: The SELECT would examine more rows than MAX_JOIN_SIZE. Check your WHERE and use SET SQL_BIG_SELECTS=1 or SET SQL_MAX_JOIN_SIZE=# if the SELECT is ok (10.0.6.24)".
Comment 1 Domas Mituzas 2009-05-03 08:28:05 UTC
For now I've synced in livehack, to get it to FIXED we probably have to think how to fix it for everyone within MediaWiki:

===================================================================
--- includes/specials/SpecialLog.php	(revision 48811)
+++ includes/specials/SpecialLog.php	(working copy)
@@ -55,6 +55,10 @@
 	# Create a LogPager item to get the results and a LogEventsList item to format them...
 	$loglist = new LogEventsList( $wgUser->getSkin(), $wgOut, 0 );
 	$pager = new LogPager( $loglist, $type, $user, $title, $pattern, array(), $y, $m, $tagFilter );
+	// Live hack - if no (or few) log entries have change tags, 
+	// optimizer returns low index cardinality, so MySQL thinks the join will go over MAX_JOIN_SIZE
+	// Domas, May 3, 2009
+	$pager->mDb->query("SET SQL_BIG_SELECTS=1",$fname,true);
 	# Set title and add header
 	$loglist->showHeader( $pager->getType() );
 	# Show form options
Comment 2 mgage 2009-06-10 16:24:03 UTC
I encountered a similar bug on my mediawiki-installation after updating from v14 to v15: http://www.wikifications.de/index.php5?title=Test whenever I try to open a non existing page: <code> 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 "IndexPager::reallyDoQuery (LogPager)". MySQL returned error "1146: Table '42023m32101_1.mw_tag_summary' doesn't exist (mysql.goneo.de)".</code>
Comment 3 Emufarmers 2009-06-10 16:27:43 UTC
(In reply to comment #2)
> from within function "IndexPager::reallyDoQuery (LogPager)". MySQL returned
> error "1146: Table '42023m32101_1.mw_tag_summary' doesn't exist
> (mysql.goneo.de)".</code>
> 

That just means you haven't run the update script.

http://www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script
Comment 4 Gurch 2009-07-06 09:01:23 UTC
Changed title and lowered priority as the urgent part of the issue -- failure on en.wikipedia -- was resolved.
Comment 5 Alexandre Emsenhuber [IAlex] 2009-07-25 20:33:12 UTC
was applied in MediaWiki core in r50168.

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


Navigation
Links