Page MenuHomeMiraheze

Special:CreateWiki broken with an internal error displayed
Closed, ResolvedPublic

Description

Hi, I found out that Special:CreateWiki is now broken, with the following error displayed. Could you fix it? Thanks in advance :)

MediaWiki internal error.

Original exception: [9cdfadc7e2f6ed6060d19ce2] 2019-01-12 08:59:34: Fatal exception of type "UnexpectedValueException"

Exception caught inside exception handler.

Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information.

The wiki does get created but the permissions are messed up, and the main page doesnt get created.

Related Objects

Event Timeline

The_Pioneer triaged this task as High priority.Jan 12 2019, 09:08
The_Pioneer created this task.
MacFan4000 updated the task description. (Show Details)Jan 12 2019, 13:08
MacFan4000 added projects: ManageWiki, CreateWiki.
MacFan4000 added subscribers: MacFan4000, John, Paladox.
MacFan4000 raised the priority of this task from High to Unbreak Now!.Jan 12 2019, 13:09
The_Pioneer added a comment.EditedJan 12 2019, 14:07

And the log, too, is not working properly, because we can see that wikis are created according to the farmer log but they won't be displayed on RecentChanges.

Southparkfan closed this task as Resolved.Jan 12 2019, 17:40
Southparkfan claimed this task.

The error was caused by the MediaWiki 1.32 upgrade:

2019-01-12 08:59:34 mw1 metawiki: [9cdfadc7e2f6ed6060d19ce2] /wiki/Special:CreateWiki   UnexpectedValueException from line 961 of /srv/mediawiki/w/includes/libs/rdbms/loadbalancer/LoadBalancer.php: Got connection to 'uas5wiki', but expected local domain ('metawiki').
#0 /srv/mediawiki/w/includes/libs/rdbms/loadbalancer/LoadBalancer.php(890): Wikimedia\Rdbms\LoadBalancer->openLocalConnection(integer, integer)
#1 /srv/mediawiki/w/includes/libs/rdbms/loadbalancer/LoadBalancer.php(766): Wikimedia\Rdbms\LoadBalancer->openConnection(integer, boolean, integer)
#2 /srv/mediawiki/w/includes/GlobalFunctions.php(2694): Wikimedia\Rdbms\LoadBalancer->getConnection(integer, array, boolean)
#3 /srv/mediawiki/w/includes/user/User.php(923): wfGetDB(integer)
#4 /srv/mediawiki/w/includes/user/User.php(399): User::idFromName(string, integer)
#5 /srv/mediawiki/w/includes/user/User.php(3592): User->load()
#6 /srv/mediawiki/w/includes/user/User.php(3620): User->getGroups()
#7 /srv/mediawiki/w/includes/user/User.php(3551): User->getEffectiveGroups()
#8 /srv/mediawiki/w/includes/user/User.php(3863): User->getRights()
#9 /srv/mediawiki/w/includes/Title.php(2288): User->isAllowed(string)
#10 /srv/mediawiki/w/includes/Title.php(2864): Title->checkQuickPermissions(string, User, array, string, boolean)
#11 /srv/mediawiki/w/includes/Title.php(2184): Title->getUserPermissionsErrorsInternal(string, User, string, boolean)
#12 /srv/mediawiki/w/includes/page/WikiPage.php(1879): Title->userCan(string, User)
#13 /srv/mediawiki/w/extensions/CreateWiki/includes/CreateWiki/SpecialCreateWiki.php(276): WikiPage->doEditContent(WikitextContent, CommentStoreComment, integer, boolean, User)
#14 /srv/mediawiki/w/extensions/CreateWiki/includes/CreateWiki/SpecialCreateWiki.php(140): SpecialCreateWiki->createMainPage(string)
#15 /srv/mediawiki/w/includes/htmlform/HTMLForm.php(665): SpecialCreateWiki->onSubmit(array, OOUIHTMLForm)
#16 /srv/mediawiki/w/includes/htmlform/HTMLForm.php(557): HTMLForm->trySubmit()
#17 /srv/mediawiki/w/includes/htmlform/HTMLForm.php(572): HTMLForm->tryAuthorizedSubmit()
#18 /srv/mediawiki/w/includes/specialpage/FormSpecialPage.php(184): HTMLForm->show()
#19 /srv/mediawiki/w/includes/specialpage/SpecialPage.php(569): FormSpecialPage->execute(NULL)
#20 /srv/mediawiki/w/includes/specialpage/SpecialPageFactory.php(568): SpecialPage->run(NULL)
#21 /srv/mediawiki/w/includes/MediaWiki.php(288): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)
#22 /srv/mediawiki/w/includes/MediaWiki.php(860): MediaWiki->performRequest()
#23 /srv/mediawiki/w/includes/MediaWiki.php(517): MediaWiki->main()
#24 /srv/mediawiki/w/index.php(42): MediaWiki->run()
#25 {main}

Executing PHP code inside the extension on other database has caused issues in the past (T1104), but now we really had to move the code to maintenance scripts; https://github.com/miraheze/CreateWiki/commit/afc7c09c3b10fa4616df00d7de580b80d042d707

All wikis created after the MediaWiki 1.32 may lack Main Pages and permissions and thus should be recreated (if possible).