mediawiki

How to update all external links after migrating a MediaWiki

情到浓时终转凉″ 提交于 2019-12-12 04:56:37
问题 I have migrated a MediaWiki from one environment to another. Everything works fine, except for the fact that a few users have hard-coded external links (which actually link to other pages within the same wiki). For example, the old wiki was on ://foo/wiki and the new is at ://foo.com . On pages of the migrated wiki there are external links on the page text like ://foo/wiki/somepage . So when they click the link on the migrated wiki they get taken back to the old wiki and are directed to :/

filter data from wikimedia api ios

久未见 提交于 2019-12-12 04:39:05
问题 I got the fllowing json response from wikipedia api while searching Anil_Ambani . I used this api. I got the following response <i>$2 = 0x071882f0 {{BLP sources|date=June 2012}} {{Infobox person | name = Anil Ambani | image =AnilAmbani.jpg | image_size = | caption = Ambani in 2009 | birth_date = {{Birth date and age|1959|6|4|df=y}} | birth_place = [[Mumbai]], [[Maharashtra]], [[India]] | nationality = Indian | occupation = Chairman of [[Anil Dhirubhai Ambani Group]] | networth = {{loss}} [

MediaWiki 1.22 - Session Storage

你离开我真会死。 提交于 2019-12-12 04:36:17
问题 I am trying to use MySQL as session storage for MediaWiki. I've added: $wgSessionHandler = 'session_mysql'; to "LocalSettings.php", but I can't find any session table in associated MySQL DB. 回答1: If you set $wgSessionHandler = 'session_mysql'; , you ask PHP to internally manage the sessions with a MySQL backend instead of the default file backend. In this case, you have to install and configure this MySQL backend yourself (by quickly searching I found https://github.com/repoforge/rpms/blob

mediawiki DBLoadBalancer error while setting up wiki

倾然丶 夕夏残阳落幕 提交于 2019-12-12 04:35:03
问题 I've just installed MediaWiki 1.28 on arch linux with nginx 1.10.3, php 7.1.1, php-fpm, and sqlite 3.16.2. I followed the arch wiki guide: https://wiki.archlinux.org/index.php/MediaWiki. I've installed the required PHP extensions and PHP, sqlite, nginx all seem to run fine on their own. Now when I'm trying to do the setting up LocalSettings.php part of the MediaWiki installation, I go to 0.0.0.0/mediawiki in the browser, click the setup and get the error below. Maybe it's a setting for sqlite

MediaWiki payment gateway

穿精又带淫゛_ 提交于 2019-12-12 04:29:54
问题 I would like to have a subscription sponsored wiki in MediaWiki. I want the paid members to have access to certain part of the wiki. How do I achieve that? Is there a plugin/extension or does it need a rewrite? In any case, how do I implement the payment gateway if I was flagging the paid users in the database? 回答1: You could use the Page Access Restriction extension: http://www.mediawiki.org/wiki/Extension:Page_access_restriction and a special group for paid members. edit: That being said

Extract wikipedia articles belonging to a category from offline dumps

為{幸葍}努か 提交于 2019-12-12 04:25:11
问题 I have wikipedia article dumps in different languages. I want to filter them with articles which belong to a category(specifically Category:WikiProject_Biography) I could get a lot of similar questions for example: Wikipedia API to get articles belonging to a category How do I get all articles about people from Wikipedia? However, I would like to do it all offline. That is using dumps, and also for different languages. Other things which I explored are category table and category link table.

Wikimedia API get generator metadata

放肆的年华 提交于 2019-12-12 04:09:50
问题 I want to get pages from Wikimedia Commons and it seems, that I have still not understand the usage of the Wikimedia API. I use the following query https://commons.wikimedia.org/w/api.php?action=query&prop=imageinfo&format=json&iiprop=url|size|mime|mediatype|extmetadata&iiurlwidth=150&generator=search&gsrsearch=transformation&gsrnamespace=6&gsrlimit=9&gsroffset=0&gsrinfo=totalhits See in API Sandbox Which works great, except that I don't get the grsinfo / generator metadata. But I need the

MediaWiki adjust system message language

爱⌒轻易说出口 提交于 2019-12-12 03:19:45
问题 i had been having a bug, where my system messages are shown in the wrong language. I have got one simple question: How do i set the system message to always be e.g. english or german without adding &uselang=de to the URL. Is there a way to permanently change it in the local settings? 回答1: Yes, you need to change it in your file LocalSettings.php . For example, if you want to use Brazilian Portugese change it to: $wgLanguageCode = 'pt-br'; For more info, see the manual: Manual:$wgLanguageCode

Retrieve values configuration settings MediaWiki

你。 提交于 2019-12-12 02:55:33
问题 How can I retrieve the values of (all) MediaWiki configuration settings and show them in a wikipage for testing? A bit like phpinfo. 回答1: Manual:GetConfiguration.php: echo `php maintenance/getConfiguration.php --format vardump`; Options: Script specific parameters: --format: json, php, serialize, vardump --iregex: same as --regex but case insensitive --regex: regex to filter variables with --settings: Space-separated list of wg* variables 回答2: You could use a method from this question to

MediaWiki language bug still persists

杀马特。学长 韩版系。学妹 提交于 2019-12-12 02:15:26
问题 This is on en.myDomain.org This is in a logged out state on Chrome. As soon as i log in though, everything is in english, as it should be. Same happens on firefox. Anyone got any clue where this could stem from? 回答1: Looks like you set the language in your user preferences to English. To set the global language to English, change/put this in your LocalSettings.php: $wgLanguageCode = "en"; 来源: https://stackoverflow.com/questions/34917625/mediawiki-language-bug-still-persists