Bug 1426529 - Attempting to change password produces: Exception encountered, of type "Error"
Summary: Attempting to change password produces: Exception encountered, of type "Error"
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: php-oojs-oojs-ui
Version: 25
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Michael Cronenworth
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-02-24 07:55 UTC by NickPGSmith@gmail.com
Modified: 2017-03-07 00:50 UTC (History)
2 users (show)

Fixed In Version: php-oojs-oojs-ui-0.17.10-1.fc25
Clone Of:
Environment:
Last Closed: 2017-03-07 00:50:21 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description NickPGSmith@gmail.com 2017-02-24 07:55:12 UTC
Description of problem:
Attempting to change password produces: Exception encountered, of type "Error"

Version-Release number of selected component (if applicable):
Latest (currently) mediawiki (mediawiki-1.27.1-2.fc25) for Fefora 25, with Postegress backend.

How reproducible:
Always

Steps to Reproduce:
1. Install media wiki
2. Go to change password feature of the Admin user created in setup
3. Observe error

Actual results:
Produces: Attempting to change password produces: Exception encountered, of type "Error"

Expected results:
Function should work

Additional info:
By adding:
$wgShowExceptionDetails = true;
in LocalSettings.php, I could see the full error which suggests a missing component:

Exception encountered, of type "Error"
[WK-mcF5y97Ay0nYm@Ktx9AAAAAU] /wiki/index.php/Special:ChangeCredentials/MediaWiki%5CAuth%5CPasswordAuthenticationRequest Error from line 151 of /usr/share/mediawiki/includes/htmlform/HTMLTextField.php: Call to undefined method OOUI\Element::configFromHtmlAttributes()
Backtrace:
#0 /usr/share/mediawiki/includes/htmlform/HTMLFormField.php(573): HTMLTextField->getInputOOUI(string)
#1 /usr/share/mediawiki/includes/htmlform/HTMLForm.php(1502): HTMLFormField->getOOUI(NULL)
#2 /usr/share/mediawiki/includes/htmlform/HTMLForm.php(1162): HTMLForm->displaySection(array, string)
#3 /usr/share/mediawiki/includes/htmlform/OOUIHTMLForm.php(220): HTMLForm->getBody()
#4 /usr/share/mediawiki/includes/htmlform/HTMLForm.php(977): OOUIHTMLForm->getBody()
#5 /usr/share/mediawiki/includes/htmlform/HTMLForm.php(958): HTMLForm->getHTML(boolean)
#6 /usr/share/mediawiki/includes/specialpage/AuthManagerSpecialPage.php(554): HTMLForm->displayForm(boolean)
#7 /usr/share/mediawiki/includes/specials/SpecialChangeCredentials.php(99): AuthManagerSpecialPage->displayForm(boolean)
#8 /usr/share/mediawiki/includes/specialpage/SpecialPage.php(479): SpecialChangeCredentials->execute(string)
#9 /usr/share/mediawiki/includes/specialpage/SpecialPageFactory.php(576): SpecialPage->run(string)
#10 /usr/share/mediawiki/includes/MediaWiki.php(282): SpecialPageFactory::executePath(Title, RequestContext)
#11 /usr/share/mediawiki/includes/MediaWiki.php(745): MediaWiki->performRequest()
#12 /usr/share/mediawiki/includes/MediaWiki.php(519): MediaWiki->main()
#13 /usr/share/mediawiki/index.php(43): MediaWiki->run()
#14 {main}

Comment 1 Michael Cronenworth 2017-02-25 03:40:31 UTC
Thanks for the debug output. The issue is that Fedora's OOUI library is not in sync with what Mediawiki 1.27 wants. I'll push an update.

Comment 2 Fedora Update System 2017-02-25 03:52:59 UTC
php-oojs-oojs-ui-0.17.10-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-1fc8246364

Comment 3 Fedora Update System 2017-02-26 05:26:17 UTC
php-oojs-oojs-ui-0.17.10-1.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-1fc8246364

Comment 4 Fedora Update System 2017-03-07 00:50:21 UTC
php-oojs-oojs-ui-0.17.10-1.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.


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