Last modified: 2014-02-11 16:25:06 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 T62512, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 60512 - Activating FlaggedRevs in the MediaWiki installer causes database error
Activating FlaggedRevs in the MediaWiki installer causes database error
Status: NEW
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
1.23.0
All All
: High major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-28 00:18 UTC by Jackmcbarn
Modified: 2014-02-11 16:25 UTC (History)
3 users (show)

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


Attachments

Description Jackmcbarn 2014-01-28 00:18:02 UTC
If FlaggedRevs is selected in the MediaWiki installer, the wiki will be unusable due to database errors. Running maintenance/update.php fixes this, but a new user setting up MediaWiki wouldn't necessarily know to do this right after a fresh install.
Comment 1 Bawolff (Brian Wolff) 2014-01-28 03:50:54 UTC
(In reply to comment #0)
> If FlaggedRevs is selected in the MediaWiki installer, the wiki will be
> unusable due to database errors. Running maintenance/update.php fixes this,
> but
> a new user setting up MediaWiki wouldn't necessarily know to do this right
> after a fresh install.

Sounds more like an installer problem than a flagged revs problem. Changing component
Comment 2 Andre Klapper 2014-01-28 10:14:37 UTC
(In reply to comment #0)
> If FlaggedRevs is selected in the MediaWiki installer, the wiki will be
> unusable due to database errors.

What kind of errors? Any examples? Which MediaWiki version (1.22.1?)?
Comment 3 Jackmcbarn 2014-01-28 13:29:46 UTC
Git master of both core and FlaggedRevs, and the errors were that (some of?) the tables didn't get created.
Comment 4 Jackmcbarn 2014-01-28 23:27:04 UTC
(In reply to comment #1)
> (In reply to comment #0)
> > If FlaggedRevs is selected in the MediaWiki installer, the wiki will be
> > unusable due to database errors. Running maintenance/update.php fixes this,
> > but
> > a new user setting up MediaWiki wouldn't necessarily know to do this right
> > after a fresh install.
> 
> Sounds more like an installer problem than a flagged revs problem. Changing
> component

The installer sets up the tables for AbuseFilter fine, so I'm pretty sure it's an issue with FlaggedRevs not hooking something it's supposed to hook.
Comment 5 Andre Klapper 2014-02-11 13:45:43 UTC
Jackmcbarn: Exact errors still very welcome as it would help investigating.
Comment 6 Jackmcbarn 2014-02-11 16:25:06 UTC
During the install, in the text box under "Creating tables for enabled extensions...", nothing appears for FlaggedRevs. When the wiki is entered, the following appears:
A database query error has occurred. This may indicate a bug in the software.

    Query:
    SELECT page_id,page_namespace,page_title,page_restrictions,page_counter,page_is_redirect,page_is_new,page_random,page_touched,page_links_updated,page_latest,page_len,page_content_model,fpc_override,fpc_level,fpc_expiry,fp_pending_since,fp_stable,fp_reviewed FROM `page` LEFT JOIN `flaggedpages` ON ((fp_page_id = page_id)) LEFT JOIN `flaggedpage_config` ON ((fpc_page_id = page_id)) WHERE page_namespace = '0' AND page_title = 'Main_Page' LIMIT 1
    Function: FlaggableWikiPage::pageData
    Error: 1146 Table 'my_wiki.flaggedpages' doesn't exist (localhost)

Backtrace:

#0 C:\xampp\htdocs\core\includes\db\Database.php(1091): DatabaseBase->reportQueryError('Table 'my_wiki....', 1146, 'SELECT  page_id...', 'FlaggableWikiPa...', false)
#1 C:\xampp\htdocs\core\includes\db\Database.php(1558): DatabaseBase->query('SELECT  page_id...', 'FlaggableWikiPa...')
#2 C:\xampp\htdocs\core\includes\db\Database.php(1647): DatabaseBase->select(Array, Array, Array, 'FlaggableWikiPa...', Array, Array)
#3 C:\xampp\htdocs\core\extensions\FlaggedRevs\backend\FlaggableWikiPage.php(366): DatabaseBase->selectRow(Array, Array, Array, 'FlaggableWikiPa...', Array, Array)
#4 C:\xampp\htdocs\core\includes\WikiPage.php(330): FlaggableWikiPage->pageData(Object(DatabaseMysqli), Array, Array)
#5 C:\xampp\htdocs\core\extensions\FlaggedRevs\backend\FlaggableWikiPage.php(382): WikiPage->pageDataFromTitle(Object(DatabaseMysqli), Object(Title))
#6 C:\xampp\htdocs\core\extensions\FlaggedRevs\backend\FlaggableWikiPage.php(272): FlaggableWikiPage->loadPageData()
#7 C:\xampp\htdocs\core\extensions\FlaggedRevs\frontend\FlaggedRevsUI.hooks.php(211): FlaggableWikiPage->getStableRev()
#8 [internal function]: FlaggedRevsUIHooks::overrideRedirect(Object(Title), Object(WebRequest), false, false, Object(Article))
#9 C:\xampp\htdocs\core\includes\Hooks.php(206): call_user_func_array('FlaggedRevsUIHo...', Array)
#10 C:\xampp\htdocs\core\includes\GlobalFunctions.php(4008): Hooks::run('InitializeArtic...', Array, NULL)
#11 C:\xampp\htdocs\core\includes\Wiki.php(358): wfRunHooks('InitializeArtic...', Array)
#12 C:\xampp\htdocs\core\includes\Wiki.php(289): MediaWiki->initializeArticle()
#13 C:\xampp\htdocs\core\includes\Wiki.php(586): MediaWiki->performRequest()
#14 C:\xampp\htdocs\core\includes\Wiki.php(447): MediaWiki->main()
#15 C:\xampp\htdocs\core\index.php(49): MediaWiki->run()
#16 {main}

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


Navigation
Links