Last modified: 2007-07-18 21:48:36 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 T12634, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 10634 - logevents query failing
logevents query failing
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikipedia.org/w/api.php?act...
:
Depends on:
Blocks:
  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: ---


Attachments

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"?>
<api>
  <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' (10.0.0.237)
">

#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}

</error>
</api>
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.


Navigation
Links