I had created a couple of pages in the Main namespace.
Then I decided to add those pages to the namespace I created.
Can I somehow clear the search history or something, so those old pages won't show up?
Welcome to the MediaWiki Support desk, where you can ask MediaWiki questions!
(Read this message in a different language)
![]() |
---|
|
Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. See Terms of Use for details.
I had created a couple of pages in the Main namespace.
Then I decided to add those pages to the namespace I created.
Can I somehow clear the search history or something, so those old pages won't show up?
Where to see some search history somewhere? Please always include steps to reproduce.
Please always include steps to reproduce. - Understood.
Actually I've managed to figure this one. The problem was that when I moved the pages the old ones was still there with their redirects. When I deleted those old pages they wouldn't show up while searching anymore.
MediaWiki 1.36.1.
I want the "Discussion" tab to read "Talk", but I cannot find a way to do so.
That worked. Thanks! Is there a way to extend that to user pages and others like that?
Hello.
How i can disable a print and a copy option of wiki pages? wikimedia 1.36.1; php 7.4.21. Thank you.
Where to see such options in MediaWiki itself? Copying is provided by your web browser. Not by MediaWiki.
Hello
Version: 1.31.2
OS: Ubuntu 18.04.5 LTS
Webserver: Apache 2.4.29
PHP: 7.4.24
DB: SQLite 3.22.0
I tried to use dumpBackup.php to create an export of all my wiki pages. However this fails
---
root@wikis-admin:/var/www/wiki/maintenance# php dumpBackup.php --full --quiet > dump.xml
[0054a8c06aacd3e540842ecc] [no req] Wikimedia\Rdbms\DBConnectionError from line 1004 of /var/www/wiki/includes/libs/rdbms/database/Database.php: Cannot access the database: Cannot return last error, no db connection
Backtrace:
#0 /var/www/wiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1134): Wikimedia\Rdbms\Database->reportConnectionError()
#1 /var/www/wiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(749): Wikimedia\Rdbms\LoadBalancer->reportConnectionError()
#2 /var/www/wiki/includes/GlobalFunctions.php(2801): Wikimedia\Rdbms\LoadBalancer->getConnection()
#3 /var/www/wiki/includes/cache/localisation/LCStoreDB.php(45): wfGetDB()
#4 /var/www/wiki/includes/cache/localisation/LocalisationCache.php(412): LCStoreDB->get()
#5 /var/www/wiki/includes/cache/localisation/LocalisationCache.php(458): LocalisationCache->isExpired()
#6 /var/www/wiki/includes/cache/localisation/LocalisationCache.php(334): LocalisationCache->initLanguage()
#7 /var/www/wiki/includes/cache/localisation/LocalisationCache.php(271): LocalisationCache->loadItem()
#8 /var/www/wiki/languages/Language.php(4553): LocalisationCache->getItem()
#9 /var/www/wiki/languages/Language.php(231): Language::getFallbacksFor()
#10 /var/www/wiki/languages/Language.php(193): Language::newFromCode()
#11 /var/www/wiki/includes/Setup.php(802): Language::factory()
#12 /var/www/wiki/maintenance/doMaintenance.php(81): require_once(string)
#13 /var/www/wiki/maintenance/dumpBackup.php(137): require_once(string)
#14 {main}
---
What am i doing wrong?
Best,
Thomas
Manual talk:Maintenance scripts#Maintenance scripts failing due to "cannot access" clearly working localhost port; Topic:Ugbzpbam9kyi2jm2
[7b25cd5e532eebcd1959396c] /mw-config/index.php?page=ExistingWiki MWException: Error: invalid magic word 'ifanon'
Backtrace:
from /home/tagorguk/public_html/test.tag.wiki/includes/MagicWord.php(129)
#0 /home/tagorguk/public_html/test.tag.wiki/includes/MagicWordFactory.php(230): MagicWord->load(string)
#1 /home/tagorguk/public_html/test.tag.wiki/includes/parser/Parser.php(4932): MagicWordFactory->get(string)
#2 /home/tagorguk/public_html/test.tag.wiki/extensions/UserFunctions/UserFunctions.php(109): Parser->setFunctionHook(string, string, integer)
#3 /home/tagorguk/public_html/test.tag.wiki/includes/HookContainer/HookContainer.php(338): wfRegisterUserFunctions(Parser)
#4 /home/tagorguk/public_html/test.tag.wiki/includes/HookContainer/HookContainer.php(137): MediaWiki\HookContainer\HookContainer->callLegacyHook(string, array, array, array)
#5 /home/tagorguk/public_html/test.tag.wiki/includes/HookContainer/HookRunner.php(2961): MediaWiki\HookContainer\HookContainer->run(string, array)
#6 /home/tagorguk/public_html/test.tag.wiki/includes/parser/Parser.php(472): MediaWiki\HookContainer\HookRunner->onParserFirstCallInit(Parser)
#7 /home/tagorguk/public_html/test.tag.wiki/includes/parser/ParserFactory.php(174): Parser->__construct(MediaWiki\Config\ServiceOptions, MagicWordFactory, LanguageEn, ParserFactory, string, MediaWiki\SpecialPage\SpecialPageFactory, MediaWiki\Linker\LinkRendererFactory, NamespaceInfo, MediaWiki\Logger\LegacyLogger, MediaWiki\BadFileLookup, MediaWiki\Languages\LanguageConverterFactory, MediaWiki\HookContainer\HookContainer, MediaWiki\Tidy\RemexDriver, WANObjectCache, MediaWiki\User\DefaultOptionsLookup, MediaWiki\User\UserFactory)
#8 /home/tagorguk/public_html/test.tag.wiki/includes/ServiceWiring.php(976): ParserFactory->create()
#9 /home/tagorguk/public_html/test.tag.wiki/vendor/wikimedia/services/src/ServiceContainer.php(447): Wikimedia\Services\ServiceContainer::{closure}(MediaWiki\MediaWikiServices)
#10 /home/tagorguk/public_html/test.tag.wiki/vendor/wikimedia/services/src/ServiceContainer.php(416): Wikimedia\Services\ServiceContainer->createService(string)
#11 /home/tagorguk/public_html/test.tag.wiki/includes/MediaWikiServices.php(264): Wikimedia\Services\ServiceContainer->getService(string)
#12 /home/tagorguk/public_html/test.tag.wiki/includes/MediaWikiServices.php(1176): MediaWiki\MediaWikiServices->getService(string)
#13 /home/tagorguk/public_html/test.tag.wiki/includes/installer/Installer.php(740): MediaWiki\MediaWikiServices->getParser()
#14 /home/tagorguk/public_html/test.tag.wiki/includes/installer/WebInstaller.php(656): Installer->parse(string, boolean)
#15 /home/tagorguk/public_html/test.tag.wiki/includes/installer/WebInstallerExistingWiki.php(104): WebInstaller->getInfoBox(string)
#16 /home/tagorguk/public_html/test.tag.wiki/includes/installer/WebInstallerExistingWiki.php(92): WebInstallerExistingWiki->showKeyForm()
#17 /home/tagorguk/public_html/test.tag.wiki/includes/installer/WebInstaller.php(269): WebInstallerExistingWiki->execute()
#18 /home/tagorguk/public_html/test.tag.wiki/mw-config/index.php(82): WebInstaller->execute(array)
#19 /home/tagorguk/public_html/test.tag.wiki/mw-config/index.php(40): wfInstallerMain()
#20 {main}
Please see the sidebar. Upgrading from what to what? Which exact version of MediaWiki and the UserFunctions extension?
On MediaWiki 1.35.3, I can load VisualEditor and make all the changes I want, but when I click the final "Save changes," I receive an error dialog: Error contacting the Parsoid/RESTBase server (HTTP 415). This problem began when I upgraded from MW 1.35.2 to 1.35.3.
Here are the relevant lines from the Apache access.log file. The server hostname and IP address have been anonymized. The IP address 108.26.197.171 is my client computer.
Click "Edit" to edit the article in VisualEditor:
11.22.33.44 - - [02/Aug/2021:11:51:06 -0400] "GET /w/rest.php/wiki.example.com/v3/page/html/MRI_scanner_safety/5839?redirect=false&stash=true HTTP/1.1" 301 769 "-" "VisualEditor-MediaWiki/1.35.3"
11.22.33.44 - - [02/Aug/2021:11:51:06 -0400] "GET /w/rest.php/wiki.example.com/v3/page/html/MRI_scanner_safety/5839?redirect=false&stash=true HTTP/1.1" 200 14918 "-" "VisualEditor-MediaWiki/1.35.3"
108.26.197.171 - - [02/Aug/2021:11:51:06 -0400] "GET /w/api.php?action=visualeditor&format=json&paction=parse&page=MRI_scanner_safety&uselang=en&formatversion=2&oldid=5839 HTTP/1.1" 200 11210 "https://wiki.example.com/wiki/MRI_scanner_safety?veaction=edit" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36"
I make an edit, click "Save changes...", and see the "Save your changes" dialog:
11.22.33.44 - - [02/Aug/2021:11:51:20 -0400] "POST /w/rest.php/wiki.example.com/v3/transform/html/to/wikitext/MRI_scanner_safety/5839 HTTP/1.1" 301 747 "-" "VisualEditor-MediaWiki/1.35.3"
11.22.33.44 - - [02/Aug/2021:11:51:20 -0400] "POST /w/rest.php/wiki.example.com/v3/transform/html/to/wikitext/MRI_scanner_safety/5839 HTTP/1.1" 415 5719 "-" "VisualEditor-MediaWiki/1.35.3"
108.26.197.171 - - [02/Aug/2021:11:51:20 -0400] "POST /w/api.php HTTP/1.1" 200 1460 "https://wiki.example.com/wiki/MRI_scanner_safety?veaction=edit" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36"
I click the "Save changes" button on the dialog:
11.22.33.44 - - [02/Aug/2021:11:51:29 -0400] "POST /w/rest.php/wiki.example.com/v3/transform/html/to/wikitext/MRI_scanner_safety/5839 HTTP/1.1" 301 747 "-" "VisualEditor-MediaWiki/1.35.3"
11.22.33.44 - - [02/Aug/2021:11:51:29 -0400] "POST /w/rest.php/wiki.example.com/v3/transform/html/to/wikitext/MRI_scanner_safety/5839 HTTP/1.1" 415 5719 "-" "VisualEditor-MediaWiki/1.35.3"
108.26.197.171 - - [02/Aug/2021:11:51:29 -0400] "POST /w/api.php HTTP/1.1" 200 1491 "https://wiki.example.com/wiki/MRI_scanner_safety?veaction=edit" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36"
The error dialog appears:
Something went wrong
Error contacting the Parsoid/RESTBase server (HTTP 415)
[Dismiss]
Thanks for any help.
It appears I am being bitten by this bug which prevents VisualEditor from saving articles when anonymous users are forbidden edit permission ($wgGroupPermissions['*']['edit'] = false
). None of the suggested workarounds work for me.
I have a page named _Default, so the name starts with an underscore.
I my LocalSettings.php
file I have set the following:
$wgRestrictDisplayTitle = false;
Then I placed {{DISPLAYTITLE:_Default}}
on my page and now the title is _Default like it has to be.
The problem is that when I go to the CategoryTree the page looks like Default in there.
Is it possible to allow underscores in the CategoryTree?
Thank you.
I set up MediaWiki in Ubuntu under Windows 10 WSL2 environment with the *math* extension up and running. Everything seems fine but I cannot get the latex format "\mathscr" working.
Ubuntu (Ubuntu 20.04.2 LTS) under Windows 10 (build 19043.1110) WSL2
Appache (2.4.41-4ubuntu3.3)
MySQL (mysql-8.0)
MediaWiki (1:1.31.7-1)
I installed the math extension according to the instruction [1] on the MediaWiki official page, by downloading the package associated with the latest stable version [2] v1.36.
The following is the related modification in the LocalSettings.php file
wfLoadExtension( 'Math' ); // Set MathML as default rendering option $wgDefaultUserOptions['math'] = 'mathml'; $wgMathFullRestbaseURL = 'https://en.wikipedia.org/api/rest_'; $wgMathMathMLUrl = 'https://mathoid-beta.wmflabs.org/'; // Rendering options $wgMathValidModes[] = array('png', 'source', 'mathml', 'latexml'); $wgMathDirectory = "/var/lib/mediawiki/images/math" ; $wgMathPath = "/var/lib/mediawiki/images/math" ; $wgTmpDirectory = "/var/lib/mediawiki/images/tmp" ; $wgUploadPath = "/var/lib/mediawiki/images" ; $wgUploadDirectory = "/var/lib/mediawiki/images"; $wgShowExceptionDetails = true ;
The Mediawiki works fine using latex highlights "<math></math>", as it properly renders most latex equations. However, among others, it does not recognize the command "\mathscr", such as "<math>\delta\mathscr{F}</math>". Instead, it echoes
Failed to parse (unknown function "\mathscr"): {\displaystyle \delta\mathscr{F}}
I understand that `\mathscr` belongs to the latex package `mathrsfs`, so I got the impression that it is not included by default in the standard math extension? But the format does work on other public MediaWiki servers such as Wikipedia [3] (where the equations are rendered!) and miraheze [4].
This is an example showing that latex works partially as I explained above. (source latex code<math>\delta S=\delta\int dt</math><math>\mathscr{L}</math>)
Gamebm (talk) 02:50, 2 August 2021 (UTC)
[1]: https://www.mediawiki.org/wiki/Extension:Math [2]: https://www.mediawiki.org/wiki/Special:ExtensionDistributor/Math [3]: https://en.wikipedia.org/wiki/Main_Page [4]: https://miraheze.org/
Mediawiki math (ams math) doesn't support the mathrsfs package that mathscr is part of.
Hello
OS: Ubuntu 18.04.5 LTS
Webserver: Apache 2.4.29
PHP: 7.4.24
DB: SQLite
I tried to update MediaWiki (using a fresh installation, copying all files and db and then running update.php. This fails with
---
MediaWiki 1.35.3 Updater
Your composer.lock file is up to date with current dependencies!
Going to run database updates for wiki?hdb
Using SQLite file: '/var/www/wiki/wiki-db.sqlite'
Depending on the size of your database this may take a while!
Abort with control-c in the next five seconds (skip this countdown with --quick) ... 0
...have ss_active_users field in site_stats table.
...ss_active_users user count set...
...have ipb_allow_usertalk field in ipblocks table.
...have initial indexes
...change_tag table already exists.
...user_properties table already exists.
...log_search table already exists.
...have log_user_text field in logging table.
...l10n_cache table already exists.
...ct_rc_id key doesn't exist.
...have rd_interwiki field in redirect table.
...fulltext search table appears to be in order.
...iwlinks table already exists.
...index iwl_prefix_title_from already set on iwlinks table.
...have ul_value field in updatelog table.
...have iw_api field in interwiki table.
...iwl_prefix key doesn't exist.
...have cl_collation field in categorylinks table.
...module_deps table already exists.
...ar_page_revid key doesn't exist.
...skipping index ar_revid because index ar_revid already set on archive table.
...index user_email already set on user table.
...uploadstash table already exists.
...user_former_groups table already exists.
...batch conversion of user_options: nothing to migrate. done.
...user table does not contain user_options field.
...have rev_sha1 field in revision table.
...have ar_sha1 field in archive table.
...index page_redirect_namespace_len already set on page table.
...have us_chunk_inx field in uploadstash table.
...have job_timestamp field in job table.
...index page_user_timestamp already set on revision table.
...have ipb_parent_block_id field in ipblocks table.
...index ipb_parent_block_id already set on ipblocks table.
...category table does not contain cat_hidden field.
...have rev_content_format field in revision table.
...have rev_content_model field in revision table.
...have ar_content_format field in archive table.
...have ar_content_model field in archive table.
...have page_content_model field in page table.
...site_stats table does not contain ss_admins field.
...recentchanges table does not contain rc_moved_to_title field.
...sites table already exists.
...have fa_sha1 field in filearchive table.
...have job_token field in job table.
...have job_attempts field in job table.
...have us_props field in uploadstash table.
...ug_group in table user_groups already modified by patch patch-ug_group-length-increase-255.sql.
...ufg_group in table user_former_groups already modified by patch patch-ufg_group-length-increase-255.sql.
...index pp_propname_page already set on page_props table.
...index img_media_mime already set on image table.
...index iwl_prefix_from_title already set on iwlinks table.
...have ar_id field in archive table.
...have el_id field in externallinks table.
...have rc_source field in recentchanges table.
...index log_user_text_type_time already set on logging table.
...index log_user_text_time already set on logging table.
...have page_links_updated field in page table.
...have user_password_expires field in user table.
...have pp_sortkey field in page_props table.
...recentchanges table does not contain rc_cur_time field.
...index wl_user_notificationtimestamp already set on watchlist table.
...have page_lang field in page table.
...have pl_from_namespace field in pagelinks table.
...have tl_from_namespace field in templatelinks table.
...have il_from_namespace field in imagelinks table.
...hitcounter doesn't exist.
...site_stats table does not contain ss_total_views field.
...page table does not contain page_counter field.
...fa_deleted_reason in table filearchive already modified by patch patch-editsummary-length.sql.
...msg_resource_links doesn't exist.
...msg_resource doesn't exist.
...bot_passwords table already exists.
...have wl_id field in watchlist table.
...cl_collation key doesn't exist.
...index cl_collation_ext already set on categorylinks table.
...collations up-to-date.
...index rc_name_type_patrolled_timestamp already set on recentchanges table.
...have ct_id field in change_tag table.
...have el_index_60 field in externallinks table.
...have ug_expiry field in user_groups table.
...index img_user_timestamp already set on image table.
...img_media_type in table image already modified by patch patch-add-3d.sql.
...ip_changes table already exists.
...skipping: index cl_from doesn't exist.
...skipping: index tl_from doesn't exist.
...skipping: index pl_from doesn't exist.
...skipping: index old_id doesn't exist.
Renaming index il_from into PRIMARY to table imagelinks ...Wikimedia\Rdbms\DBQueryError from line 1699 of /var/www/wiki/includes/libs/rdbms/database/Database.php: Error 1: table imagelinks_tmp already exists
Function: Wikimedia\Rdbms\Database::sourceFile( /var/www/wiki/maintenance/sqlite/archives/patch-imagelinks-fix-pk.sql )
Query: CREATE TABLE imagelinks_tmp (
il_from INTEGER NOT NULL default 0,
il_from_namespace INTEGER NOT NULL default 0,
il_to TEXT NOT NULL default '',
PRIMARY KEY (il_from,il_to)
)
#0 /var/www/wiki/includes/libs/rdbms/database/Database.php(1683): Wikimedia\Rdbms\Database->getQueryException()
#1 /var/www/wiki/includes/libs/rdbms/database/Database.php(1658): Wikimedia\Rdbms\Database->getQueryExceptionAndLog()
#2 /var/www/wiki/includes/libs/rdbms/database/Database.php(1227): Wikimedia\Rdbms\Database->reportQueryError()
#3 /var/www/wiki/includes/libs/rdbms/database/Database.php(5073): Wikimedia\Rdbms\Database->query()
#4 /var/www/wiki/includes/libs/rdbms/database/Database.php(5008): Wikimedia\Rdbms\Database->sourceStream()
#5 /var/www/wiki/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->sourceFile()
#6 /var/www/wiki/includes/libs/rdbms/database/MaintainableDBConnRef.php(35): Wikimedia\Rdbms\DBConnRef->__call()
#7 /var/www/wiki/includes/installer/DatabaseUpdater.php(769): Wikimedia\Rdbms\MaintainableDBConnRef->sourceFile()
#8 /var/www/wiki/includes/installer/DatabaseUpdater.php(1017): DatabaseUpdater->applyPatch()
#9 /var/www/wiki/includes/installer/DatabaseUpdater.php(554): DatabaseUpdater->renameIndex()
#10 /var/www/wiki/includes/installer/DatabaseUpdater.php(517): DatabaseUpdater->runUpdates()
#11 /var/www/wiki/maintenance/update.php(181): DatabaseUpdater->doUpdates()
#12 /var/www/wiki/maintenance/doMaintenance.php(107): UpdateMediaWiki->execute()
#13 /var/www/wiki/maintenance/update.php(253): require_once('/var/www/adminw...')
#14 {main}
---
Once launching the ui, i get
---
[05fc85919abdd48938eac84c] 2021-08-02 08:41:48: Fatal exception of type Wikimedia\Rdbms\DBQueryError
---
What can i do?
Apparently the sqlite migration (from the 1.28 times) is broken patch-imagelinks-fix-pk.sql I would suggest studying the migration and see what it's intent is, opening the sqlite database with an sqlite editor and completing the migrations by hand that way.
Unfortunately, what you posted is the error of the 2nd run of the migration and it doesn't report what the migration failed on specifically on the first run. Would be interesting to figure out however as migrations are of course not supposed to fail.
Did you previously run 1.28 or below ? maybe it already failed the previous time you executed a migration and you didn't notice... or maybe the migration test of this 1.28 migration is broken because of a newer change in 1.35.3 which accidentally triggered the old migration script, even if you don't need it....
Hi
We ran 1.31.2.
I tried to upgrade to 1.32.0 in 2019 but this also failed (same error).
How can i proceed now? Where can i see what migrations have to be done in which order (so that i can try in an sqlite editor). Anyway this should work and not get stuck in the middle.
If I truncate all the table in MysQL will my MediaWiki instance still work?
What is the proper way to clear all the history, logs, old(deleted) pages etc. without having to create a new database and reinstalling MediaWiki?
Are there any php scripts in order to clear the tables in the database?
Thank you.