Last modified: 2007-07-18 21:48:36 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 10634 - logevents query failing
logevents query failing
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2007-07-18 21:41 UTC by JLaTondre
Modified: 2007-07-18 21:48 UTC (History)
1 user (show)

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


Description JLaTondre 2007-07-18 21:41:26 UTC
Querying the API for logevents fails with the following error:

<?xml version="1.0" encoding="utf-8"?>
  <error code="internal_api_error" info="Exception Caught: A database error has occurred
Query:  SELECT  /*! STRAIGHT_JOIN */ log_type,log_action,log_timestamp,log_id,page_id,log_user,user_name,log_namespace,log_title,log_comment,log_params  FROM `logging` LEFT OUTER JOIN `page` ON log_namespace=page_namespace AND log_title=page_title INNER JOIN `user` ON user_id=log_user   ORDER BY log_timestamp DESC LIMIT 11  
Function: ApiQueryLogEvents::execute
Error: 1054 Unknown column 'log_id' in 'field list' (

#0 /usr/local/apache/common-local/php-1.5/includes/Database.php(765): Database->reportQueryError('Unknown column ...', 1054, ' SELECT  /*! ST...', 'ApiQueryLogEven...', false)
#1 /usr/local/apache/common-local/php-1.5/includes/Database.php(1210): Database->query(' SELECT  /*! ST...', 'ApiQueryLogEven...')
#2 /usr/local/apache/common-local/php-1.5/includes/api/ApiQueryBase.php(125): Database->select(Array, Array, Array, 'ApiQueryLogEven...', Array)
#3 /usr/local/apache/common-local/php-1.5/includes/api/ApiQueryLogEvents.php(109): ApiQueryBase->select('ApiQueryLogEven...')
#4 /usr/local/apache/common-local/php-1.5/includes/api/ApiQuery.php(195): ApiQueryLogEvents->execute()
#5 /usr/local/apache/common-local/php-1.5/includes/api/ApiMain.php(304): ApiQuery->execute()
#6 /usr/local/apache/common-local/php-1.5/includes/api/ApiMain.php(190): ApiMain->executeAction()
#7 /usr/local/apache/common-local/php-1.5/includes/api/ApiMain.php(175): ApiMain->executeActionWithErrorHandling()
#8 /usr/local/apache/common-local/php-1.5/api.php(54): ApiMain->execute()
#9 /usr/local/apache/common-local/live-1.5/api.php(3): require('/usr/local/apac...')
#10 {main}

Comment 1 Rob Church 2007-07-18 21:48:36 UTC
Fixed (well, worked around) in r24256. The API was SELECTing the `log_id` column from `logging`, which isn't live on Wikimedia at the moment.

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