Hi!
I've got my hands on an external wiki. after updating it to 1.39 i can't edit the mainpage, also the preferences (user settings) of the admin account are all grey and not usable.
Greetings
Welcome to the MediaWiki Support desk, where you can ask MediaWiki questions!
(Read this message in a different language)
![]() |
---|
|
Hi!
I've got my hands on an external wiki. after updating it to 1.39 i can't edit the mainpage, also the preferences (user settings) of the admin account are all grey and not usable.
Greetings
There is no "edit" button. I only can see the source code. Other pages i can edit.
The mainpage must be locked, but i have no permission to unlock it.
As Admin, i'm within the sysop & bureaucrat group.
If you go to view source, is there a message on it explaining why you can only view source?
"You do not have permission to edit this page for the following reason:
This page has been protected to prevent editing and other actions."
If i try to unprotect the page, i've got the error:
"You do not have the permission."
But why? I'm User #1 with SysOP & Buraeaucrat permissions.
In the LocalSettings the permissions for both is okay.
Same goes for the settings.
LocalSettings permissions are all ok, but nothing can be edited.
All is outlined and non clickable.
i Upgade my wiki from 1.28 to 1.35. i update Cirrussearch and Elastica extensions
i got this error whene i tried to make search
"
[7ca837c2f55f23939b24a707] /index.php?title=Sp%C3%A9cial:Version Error from line 90 of /app/httpd/www/mediawiki-1.35.7/extensions/Elastica/includes/ElasticaConnection.php
Class 'Elastica\Client' not found
Backtrace:
#.....
"
i use 6.28.3 of elastic search and PHP 7.4.33 and MariaDB 10.6.11-
both Cirrussearch and Elastica are in 1.35 version
Any help please ?
I have two terms A and B (strings) and I want all Wikipedia pages that have both these terms A and B, with no constraint regarding the order in which they appear and any phrase query or anything like that. I just want all result pages to be containing both these terms.
What is the syntax of the MediaWiki query that I should be constructing for the srsearch parameter?
Should I use srsearch="A|B" or srsearch="A&B" or srsearch="A,B" or srsearch=A|B
From the results I am getting, I am unable to make this decision.
Any advise is highly appreciated.
(Answering an old question in case anyone comes looking for an answer.)
If you type the search "A B" or "B A" into the search field, you'll get the same results. So, use URI-encoding ("+" for " ") and you'll have what you want: https://www.mediawiki.org/w/api.php?action=query&list=search&srsearch=B+A&srbackend=LuceneSearch&format=jsonfm
Note that in doing this I got a strange error: bug 62608
Hi. I had an old 1.32 mediawiki installation, which I wanted to keep around, but was not willing to pay the php 7.4 support/extortion fee of my host, so I started an upgrade. The 1.32->1.35.10 step went great, however while upgrade.php seemed to work fine for the 1.35.10->1.39.3 step (note, I switched to php 8.0 at this point), visiting the wiki afterwards gives me the very unhelpful:
MWException: Error: invalid magic word '=' Backtrace: from /homepages/31/d87773283/htdocs/wiki/physics/includes/MagicWord.php(129) #0 /homepages/31/d87773283/htdocs/wiki/physics/includes/MagicWordFactory.php(231): MagicWord->load() #1 /homepages/31/d87773283/htdocs/wiki/physics/includes/MagicWordArray.php(85): MagicWordFactory->get() #2 /homepages/31/d87773283/htdocs/wiki/physics/includes/MagicWordArray.php(287): MagicWordArray->getHash() #3 /homepages/31/d87773283/htdocs/wiki/physics/includes/parser/Parser.php(3079): MagicWordArray->matchStartToEnd() #4 /homepages/31/d87773283/htdocs/wiki/physics/includes/parser/PPFrame_Hash.php(276): Parser->braceSubstitution() #5 /homepages/31/d87773283/htdocs/wiki/physics/includes/parser/Parser.php(2955): PPFrame_Hash->expand() #6 /homepages/31/d87773283/htdocs/wiki/physics/includes/parser/Parser.php(962): Parser->replaceVariables() #7 /homepages/31/d87773283/htdocs/wiki/physics/includes/parser/Parser.php(4928): Parser->preprocess() #8 /homepages/31/d87773283/htdocs/wiki/physics/includes/language/MessageCache.php(1308): Parser->transformMsg() #9 /homepages/31/d87773283/htdocs/wiki/physics/includes/language/Message.php(1456): MessageCache->transform() #10 /homepages/31/d87773283/htdocs/wiki/physics/includes/language/Message.php(1009): Message->transformText() #11 /homepages/31/d87773283/htdocs/wiki/physics/includes/language/Message.php(1053): Message->format() #12 /homepages/31/d87773283/htdocs/wiki/physics/includes/OutputPage.php(1048): Message->text() #13 /homepages/31/d87773283/htdocs/wiki/physics/includes/OutputPage.php(1097): OutputPage->setHTMLTitle() #14 /homepages/31/d87773283/htdocs/wiki/physics/includes/page/Article.php(474): OutputPage->setPageTitle() #15 /homepages/31/d87773283/htdocs/wiki/physics/includes/actions/ViewAction.php(78): Article->view() #16 /homepages/31/d87773283/htdocs/wiki/physics/includes/MediaWiki.php(542): ViewAction->show() #17 /homepages/31/d87773283/htdocs/wiki/physics/includes/MediaWiki.php(322): MediaWiki->performAction() #18 /homepages/31/d87773283/htdocs/wiki/physics/includes/MediaWiki.php(904): MediaWiki->performRequest() #19 /homepages/31/d87773283/htdocs/wiki/physics/includes/MediaWiki.php(562): MediaWiki->main() #20 /homepages/31/d87773283/htdocs/wiki/physics/index.php(50): MediaWiki->run() #21 /homepages/31/d87773283/htdocs/wiki/physics/index.php(46): wfIndexMain() #22 {main}
Although I am a software dev (not php), the backtrace seems to include nothing suspect like extensions etc - it's just core code, so I wouldn't really know where to start. Any suggestions?
TIA
This can sometimes be causes by incompatible localization cache versions. Try running rebuildLocalisationCache.php --force
Thanks, that sounds plausible, the Wiki was in Greek too - I actually googled how to clear caches, but didn't come up with that command, so I restored 1.35 instead. From then I upgraded to 1.38, which gave me an error about an extension (Widgets) - and it worked fine after upgrading that extension. I think I'll stick with 1.38 for now, but will have that in mind next time I upgrade further.
Hello, I'm trying to import the template Template:Infobox_settlement to my wiki, and it refuses to work, and even times out the server. I've been importing new templates related to this template for 2 full days now, and I can't find any others. I've importing everything from other templates, to modules, to even CSS pages. But no matter what I do, the server still just times out. I know it's due to the template because of the fact that I can still make edits to the page without the template, but the moment I add the template, it stops working. Any ideas?
P.S. I would like to mention that I'm not sure if "server" is the right word to use. The specific thing that times out appears to be the LuaStandaloneInterpreter of Scribunto. If it helps, the specific error message that it leaves is this:
Fatal error: Maximum execution time of 120 seconds exceeded in C:\xampp\htdocs\w\extensions\Scribunto\includes\engines\LuaStandalone\LuaStandaloneInterpreter.php on line 483
Well something is weird because the lua timeout is usually much lower than the php timeout you are hitting. However php timeout errors sometimes report the wrong place.
Ensure you have general performance stuff setup (you have installed apcu php extension and set $wgMainCacheType)
Thank you for telling me that. I did that, but this time, the error it gives me is:
Fatal error: Maximum execution time of 120 seconds exceeded in C:\xampp\htdocs\w\extensions\Scribunto\includes\engines\LuaStandalone\LuaStandaloneInterpreter.php on line 488
We have followed the steps provided in the document: Manual:Configuring file uploads - MediaWiki
Unfortunately, it is not working for us. It is affecting our release documentation. Can you please help us resolve this issue?
What exactly did you change (parameters instead of paraphrasing), which exact steps did you perform, which MediaWiki version? Please see the sidebar.
Hello, I want to be part of Wikimania 2023. can you send me details on the events and the link for data stipend for scholarship willing participants?
Thank you for the anticipated favourable response.
~~~~
Hi, this is the help desk for the MediaWiki software. For Wikimania, see https://wikimania.wikimedia.org/ instead.
when i try to submit modules i get this error how do i fix it
[ZHDcPZoZMaNmiQdASHgl@QAAABs] /index.php?title=Module:Documentation&action=submit MWException: The lua binary (/home/vol1000_8/epizy.com/epiz_34255819/htdocs/extensions/Scribunto/includes/engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua) is not executable.
Backtrace:
from /home/vol1000_8/epizy.com/epiz_34255819/htdocs/extensions/Scribunto/includes/engines/LuaStandalone/LuaStandaloneInterpreter.php(104)
#0 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/extensions/Scribunto/includes/engines/LuaStandalone/LuaStandaloneEngine.php(103): MediaWiki\Extension\Scribunto\Engines\LuaStandalone\LuaStandaloneInterpreter->__construct(MediaWiki\Extension\Scribunto\Engines\LuaStandalone\LuaStandaloneEngine, array)
#1 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/extensions/Scribunto/includes/engines/LuaCommon/LuaEngine.php(131): MediaWiki\Extension\Scribunto\Engines\LuaStandalone\LuaStandaloneEngine->newInterpreter()
#2 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/extensions/Scribunto/includes/engines/LuaStandalone/LuaStandaloneEngine.php(23): Scribunto_LuaEngine->load()
#3 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/extensions/Scribunto/includes/engines/LuaCommon/LuaEngine.php(235): MediaWiki\Extension\Scribunto\Engines\LuaStandalone\LuaStandaloneEngine->load()
#4 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/extensions/Scribunto/includes/engines/LuaCommon/LuaModule.php(41): Scribunto_LuaEngine->getInterpreter()
#5 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/extensions/Scribunto/includes/engines/LuaCommon/LuaModule.php(28): Scribunto_LuaModule->getInitChunk()
#6 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/extensions/Scribunto/includes/ScribuntoEngineBase.php(201): Scribunto_LuaModule->validate()
#7 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/extensions/Scribunto/includes/ScribuntoContentHandler.php(105): MediaWiki\Extension\Scribunto\ScribuntoEngineBase->validate(string, string)
#8 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/extensions/Scribunto/includes/Hooks.php(389): MediaWiki\Extension\Scribunto\ScribuntoContentHandler->validate(MediaWiki\Extension\Scribunto\ScribuntoContent, Title)
#9 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/includes/HookContainer/HookContainer.php(338): MediaWiki\Extension\Scribunto\Hooks::validateScript(DerivativeContext, MediaWiki\Extension\Scribunto\ScribuntoContent, Status, string, User, boolean)
#10 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/includes/HookContainer/HookContainer.php(137): MediaWiki\HookContainer\HookContainer->callLegacyHook(string, array, array, array)
#11 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/includes/HookContainer/HookRunner.php(1474): MediaWiki\HookContainer\HookContainer->run(string, array)
#12 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/includes/editpage/Constraint/EditFilterMergedContentHookConstraint.php(106): MediaWiki\HookContainer\HookRunner->onEditFilterMergedContent(DerivativeContext, MediaWiki\Extension\Scribunto\ScribuntoContent, Status, string, User, boolean)
#13 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/includes/editpage/Constraint/EditConstraintRunner.php(88): MediaWiki\EditPage\Constraint\EditFilterMergedContentHookConstraint->checkConstraint()
#14 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/includes/EditPage.php(2344): MediaWiki\EditPage\Constraint\EditConstraintRunner->checkConstraints()
#15 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/includes/EditPage.php(1904): EditPage->internalAttemptSave(array, boolean, boolean)
#16 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/includes/EditPage.php(721): EditPage->attemptSave(array)
#17 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/includes/actions/EditAction.php(73): EditPage->edit()
#18 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/includes/actions/SubmitAction.php(38): EditAction->show()
#19 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/includes/MediaWiki.php(542): SubmitAction->show()
#20 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/includes/MediaWiki.php(322): MediaWiki->performAction(Article, Title)
#21 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/includes/MediaWiki.php(904): MediaWiki->performRequest()
#22 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/includes/MediaWiki.php(562): MediaWiki->main()
#23 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/index.php(50): MediaWiki->run()
#24 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/index.php(46): wfIndexMain()
#25 {main}
Please see "Post a new question" in the sidebar for future questions.
See the error message that you posted: The lua binary (/home/vol1000_8/epizy.com/epiz_34255819/htdocs/extensions/Scribunto/includes/engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua) is not executable.
Make it executable.
info about installation
uname -a
Linux myserver 4.18.0-425.10.1.el8_7.x86_64 #1 SMP Wed Dec 14 16:00:01 EST 2022 x86_64 x86_64 x86_64 GNU/Linux
mediawiki-1.39.3.tar.gz
mysql --version
mysql Ver 8.0.30 for Linux on x86_64 (Source distribution)
mysql> show engines;
+--------------------+---------+----------------------------------------------------------------+--------------+------+------------+
| Engine | Support | Comment | Transactions | XA | Savepoints |
+--------------------+---------+----------------------------------------------------------------+--------------+------+------------+
| FEDERATED | NO | Federated MySQL storage engine | NULL | NULL | NULL |
| MEMORY | YES | Hash based, stored in memory, useful for temporary tables | NO | NO | NO |
| InnoDB | DEFAULT | Supports transactions, row-level locking, and foreign keys | YES | YES | YES |
| PERFORMANCE_SCHEMA | YES | Performance Schema | NO | NO | NO |
| MyISAM | YES | MyISAM storage engine | NO | NO | NO |
| MRG_MYISAM | YES | Collection of identical MyISAM tables | NO | NO | NO |
| BLACKHOLE | YES | /dev/null storage engine (anything you write to it disappears) | NO | NO | NO |
| CSV | YES | CSV storage engine | NO | NO | NO |
| ARCHIVE | YES | Archive storage engine | NO | NO | NO |
+--------------------+---------+----------------------------------------------------------------+--------------+------+------------+
This is the error message that i got.
The environment has been checked. You can install MediaWiki.
Setting up database
done
Creating tables, step one
Wikimedia\Rdbms\DBQueryError from line 1618 of /var/www/html/iwswiki/includes/libs/rdbms/database/Database.php: Error 3161: Storage engine MyISAM is disabled (Table creation is disallowed).
Function: Wikimedia\Rdbms\Database::sourceFile( /var/www/html/iwswiki/maintenance/tables-generated.sql )
Query: CREATE TABLE `searchindex` (
si_page INT UNSIGNED NOT NULL,
si_title VARCHAR(255) DEFAULT '' NOT NULL,
si_text MEDIUMTEXT NOT NULL,
UNIQUE INDEX si_page (si_page),
FULLTEXT INDEX si_title (si_title),
FULLTEXT INDEX si_text (si_text)
) ENGINE = MyISAM DEFAULT CHARSET = utf8
I changed to innodb in tables-generated.sql and it looks ok but idont know if this breaks anything
CREATE TABLE /*_*/searchindex (
si_page INT UNSIGNED NOT NULL,
si_title VARCHAR(255) DEFAULT '' NOT NULL,
si_text MEDIUMTEXT NOT NULL,
UNIQUE INDEX si_page (si_page),
FULLTEXT INDEX si_title (si_title),
FULLTEXT INDEX si_text (si_text)
) ENGINE = innodb DEFAULT CHARSET = utf8;
It should be fine. It is myisam by default for that table because old versions of mysql did not support fulltext indexes on innodb tables, and nobody ever changed mediawiki after support was added to mysql.
Hi all, Since we adopted anchor automatic definition on translated pages, the EN anchor works for level 2 titles '==' both on EN pages and on translated pages => ok.
Now, on page -> https://www.mediawiki.org/wiki/Manual:CategoryMembershipChanges/fr I tried to attach in section 3 Afficher les changements, under "2018", the link -> https://www.mediawiki.org/wiki/Special:MyLanguage/Edit_Review_Improvements/New_filters_for_edit_review#End_of_August_2018 in order to reference a title of level '===' .
The target link is well constructed with EN anchor on a FR page, but the FR page does not recognize this EN link, but only its FR equivalent (which is the older form) -> https://www.mediawiki.org/wiki/Edit_Review_Improvements/New_filters_for_edit_review/fr#Fin_août_2018
Am I wrong ? do the anchors only work at first level '==' ? they should be extended to lower levels. Thanks.
Christian 🇫🇷 FR (talk) 08:09, 26 May 2023 (UTC)