Tried to run populateFuzzy.php on twn and got:
/www/w/extensions/Translate/scripts$ b php populateFuzzy.php
0/2734323
Error in fetchObject(): Table 'mediawiki.bw_revtag_type' doesn't exist (localhost)
Version: 1.20.x
Severity: normal
Tried to run populateFuzzy.php on twn and got:
/www/w/extensions/Translate/scripts$ b php populateFuzzy.php
0/2734323
Error in fetchObject(): Table 'mediawiki.bw_revtag_type' doesn't exist (localhost)
Version: 1.20.x
Severity: normal
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | Nikerabbit | T44430 Exception Caught: Error in numRows(): Table 'metawiki.revtag_type' doesn't exist (10.0.6.36) | |||
Resolved | None | T41287 calling tableExists breaks fetchObject |
Minimal test case:
$dbr = wfGetDB( DB_SLAVE );
$res = $dbr->select( 'page', '*', array(), array( 'LIMIT' => 2 ) );
foreach ( $res as $row ) { $dbr->tableExists( 'foo' ); }
Error in fetchObject(): Table 'sandwiki.bw_foo' doesn't exist (localhost)
PS: Could the error message also include class name?
(In reply to comment #1)
Why are you trying to run that script?
To fuzzy some messages in Freecol that hadn't been fuzzier when they should have been, so I sometimes run this script to have checks done on all translations.
The reason for this is because mysql_fetch_object() does not reset the error number when it is successful (blame MySQL, not PHP). Added a patch that only checks for certain errors that are expected from mysql_fetch_*