Last modified: 2014-09-25 12:17:03 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 T50771, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 48771 - update.php fails on a new install with 'wikidatawiki.wb_terms doesn't exist'
update.php fails on a new install with 'wikidatawiki.wb_terms doesn't exist'
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
master
All All
: Low normal (vote)
: ---
Assigned To: Wikidata bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-24 10:41 UTC by Ariel T. Glenn
Modified: 2014-09-25 12:17 UTC (History)
3 users (show)

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


Attachments

Description Ariel T. Glenn 2013-05-24 10:41:23 UTC
Did a fresh install from master on my laptop, set up the various wikibase config values to match what we have in production except with an empty clientdb list, imported some pages and properties, and then realized I oughta run update.php.  However...

update.php tries to retrieve something from wb_terms before it is created; a workaround for me was to comment out in extensions/Wikibase/repo/includes/store/sql/SqlStore.php the line

$this->rebuild();

at line 130 and then update.php ran to completion.  Page views looked ok too.

--------

output from update.php:

MediaWiki 1.22alpha Updater

Going to run database updates for wikidatawiki
Depending on the size of your database this may take a while!
Abort with control-c in the next five seconds (skip this countdown with --quick)
 ... 0
...wb_items_per_site doesn't exist.
...wb_items doesn't exist.
...wb_aliases doesn't exist.
...wb_texts_per_lang doesn't exist.

A database query syntax error has occurred.
The last attempted database query was:
"SELECT  term_language,term_type,term_text  FROM `wb_terms`  WHERE term_entity_i
d = '15' AND term_entity_type = 'item'  "
from within function "Wikibase\TermSqlIndex::getTermsOfEntity".
Database returned error "1146: Table 'wikidatawiki.wb_terms' doesn't exist (loca
lhost)"
Comment 1 Lydia Pintscher 2014-09-25 12:17:03 UTC
Should be fixed by now... Please reopen if not.

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


Navigation
Links