Topic on Project:Support desk

Got error when I try to edit

3
37.209.65.246 (talkcontribs)

Hi!

I use the docker installation of MediaWiki 1.34 with MariaDB:latest. When I try to edit Pages I got the following Error Message:

[7d5eb5390247cf7c07dfa756] /index.php?title=Startseite&action=edit Wikimedia\Rdbms\DBReadOnlyRoleError from line 1195 of /var/www/html/includes/libs/rdbms/database/Database.php: Cannot write; target role is DB_REPLICA

Backtrace:

#0 /var/www/html/includes/libs/rdbms/database/Database.php(1148): Wikimedia\Rdbms\Database->executeQuery(string, string, integer)
#1 /var/www/html/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->query(string, string, integer)
#2 /var/www/html/includes/libs/rdbms/database/DBConnRef.php(292): Wikimedia\Rdbms\DBConnRef->__call(string, array)
#3 /var/www/html/extensions/SelectCategory/SelectCategory_body.php(190): Wikimedia\Rdbms\DBConnRef->query(string, string)
#4 /var/www/html/extensions/SelectCategory/SelectCategory_body.php(31): SelectCategory::getAllCategories(integer)
#5 /var/www/html/includes/Hooks.php(174): SelectCategory::showHook(boolean, EditPage, OutputPage)
#6 /var/www/html/includes/Hooks.php(202): Hooks::callHook(string, array, array, NULL)
#7 /var/www/html/includes/EditPage.php(2818): Hooks::run(string, array)
#8 /var/www/html/includes/EditPage.php(703): EditPage->showEditForm()
#9 /var/www/html/includes/actions/EditAction.php(55): EditPage->edit()
#10 /var/www/html/includes/MediaWiki.php(511): EditAction->show()
#11 /var/www/html/includes/MediaWiki.php(302): MediaWiki->performAction(Article, Title)
#12 /var/www/html/includes/MediaWiki.php(900): MediaWiki->performRequest()
#13 /var/www/html/includes/MediaWiki.php(527): MediaWiki->main()
#14 /var/www/html/index.php(44): MediaWiki->run()
#15 {main}

I can also use the Visual Editor which works fine. The MobileEditor of MinervaNeue works, too. Only the WikiEditor did not work.

Couldn't find anything about that error in the web, so hopefully someone could tell me what's wrong. I don't have a Master Slave MariaDB running, it's just a single instance.


Please help me :-)


cheers,

Andreas

Bawolff (talkcontribs)

SelectCategory extension is broken (making write queries to a read only db handle,)

37.209.65.246 (talkcontribs)

Thank you for the hint! Yes, the extension SelectCategory in Branch Version 1_34 does not work. I now use the master branch and everything ist fine :-)


THANK you so much!

regards,

Andreas

Reply to "Got error when I try to edit"