https://bugzilla.wikimedia.org/show_bug.cgi?id=30571
--- Comment #3 from Bryan Tong Minh <[email protected]> 2011-08-31 13:48:34 UTC --- (In reply to comment #2) > Note: I assumed that all wikis would write their own images into a single > global usage table. However, although > > cd /var/www/v-species/o; sudo php ./maintenance/sql.php > ./extensions/GlobalUsage/GlobalUsage.sql --conf ./LocalSettings.php > That is correct. > was executed only on the shared repository, all wiki checked seem to contain > a > globalimagelinks table, and this table is filled with the records for the > local > images of each wiki. > > Since GlobalUsage.sql was definitely not executed for all wikis, either > refresh > does this, or a general update.php script (which was executed, due to version > changes) may do this? > > ----- This is indeed due to update.php and probably because of an incomplete configuration. > > The config for all wikis is: > require_once( "$IP/extensions/GlobalUsage/GlobalUsage.php" ); > $wgGlobalUsageDatabase = "openmedia"; > > > The documentation on mediawiki says: "In LocalSettings, set > $wgGlobalUsageDatabase to the identifier of the wiki where the GlobalUsage > data > is located (usually the database name). It should be something understandable > to wfGetDB. Example: $wgGlobalUsageDatabase = 'commonswiki';" > > I interpret this that this should be the sql database name, i.e. the name in > $wgDBname. Is this perhaps incorrect? That is indeed incorrect. It should be the name given in a load balancer configuration [1]. I don't know myself how the load balancer works exactly or how to configure it, but perhaps GlobalUsage should be fixed to also work with a given database name. [1] http://www.mediawiki.org/wiki/Manual:$wgLBFactoryConf -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
