Last modified: 2010-01-16 12:28:55 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 T21553, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 19553 - PrefStatsHooks require a DB that doesnot exist.
PrefStatsHooks require a DB that doesnot exist.
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
UsabilityInitiative (Other open bugs)
unspecified
All All
: Normal major (vote)
: ---
Assigned To: Trevor Parscal
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-07-06 16:46 UTC by Al Maghi
Modified: 2010-01-16 12:28 UTC (History)
3 users (show)

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


Attachments

Description Al Maghi 2009-07-06 16:46:00 UTC
When I had the following in localsettings:

$wgDBname           = "wiki_gerard";
 [...]
require_once("$IP/extensions/UsabilityInitiative/PrefStats/PrefStats.php");
$wgPrefStatsTrackPrefs = array( 'skin' => 'vector', 'usebetatoolbar' => 1 );
$wgGroupPermissions['sysop']['prefstats'] = true;
$wgPrefStatsTimeUnit = 60*60*24;

I had a mysql error:

« PrefStatsHooks::save ». MySQL send error « 1146 : Table 'wiki_gerard.gerardprefstats' doesn't exist (localhost) ».

and with commented the following:

//require_once("$IP/extensions/UsabilityInitiative/PrefStats/PrefStats.php");
//$wgPrefStatsTrackPrefs = array( 'skin' => 'vector', 'usebetatoolbar' => 1 );
//$wgGroupPermissions['sysop']['prefstats'] = true;
//$wgPrefStatsTimeUnit = 60*60*24;

it works well.


So README should be fixed, as it doesn't state anything on the following bug. http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/UsabilityInitiative/README
Comment 1 Al Maghi 2009-07-06 16:47:50 UTC
(In reply to comment #0)

> I had a mysql error:

... on creation of user account.

Comment 2 Roan Kattouw 2009-07-06 19:18:29 UTC
Run the update.php script, it'll create the table.
Comment 3 Dmitriy Sintsov 2010-01-16 12:28:55 UTC
I am trying to use MediaWiki js2-work r61085 and UsabilityInitiative r61086 together, installed "cleanly from scratch". In the file 'extensions/UsabilityInitiative/README' there's no instruction to run the update.php. I've installed js2-work r61085 via the web /config installer.
I confirm that after using update.php the table was succesfully created.
However, I think it's unusual approach to use update.php for such wikis, installed from scratch. Either a web installer or an extension itself should have created the table. I hope this will be fixed in the release.

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


Navigation
Links