mediawiki

Firefox 9.0.1 Broke Internal Wiki Layout

陌路散爱 提交于 2019-12-11 01:04:30
问题 The most recent version of Firefox has messed up our internal wiki layout so that the left bar menus are displayed below the content on all pages now. I've tried using multiple resolutions and window sizes and the problem persists so that doesn't appear to be the issue. There are no problems with Chrome or IE however. A screenshot of the problem is attached here for you to see. 回答1: You're using an old MediaWiki version. It does UA sniffing and sends different code to different browsers,

Mediawiki can't display images or styles

假装没事ソ 提交于 2019-12-10 23:54:19
问题 I`m using MediaWiki v1.19.1. My wiki works well when I use it locally. But when I access it over the network (from another computer, or a different IP), it displays the text only. There are no images. It seems like a classic skin but it`s not. The reason is that there is no layout on my wiki (other public wiki pages show ok). My wiki uses the monobook skin now, but I can see only the text on the page. I have changed the permission to 777, including on all directories ( /var/www/kj/* ), but

Extracting page titles and contributors from MediaWiki XML

China☆狼群 提交于 2019-12-10 21:34:42
问题 I have a very large (7GB) MediaWiki XML dump, which consists of records of each change made to each page of the Wiki. I am trying to record which users have contributed to each page, and so I want to extract that from the XML. The XML looks something like: <mediawiki xmlns="http://www.mediawiki.org/xml/export-0.3/"> <page> <title>Unique Page title</title> <id>11</id> <restrictions>sysop</restrictions> <revision> <id>11</id> <timestamp>2005-10-26T02:23:03Z</timestamp> <contributor> <ip

MediaWiki DB connection error while attempting to upgrade to 1.22

二次信任 提交于 2019-12-10 20:25:41
问题 I have a MediaWiki installation on a shared host server. It's at version 1.19.1 and I'm trying to update to 1.22.2. The documentation indicates that a one-step update should be OK for this. I've done this several times for past updates successfully, and am following previous notes. I set up a new directory with 1.22.2 in it, copied LocalSettings.php and /images/ files from the working live directory to the new one. LocalSettings.php has entries for $wgDBuser , $wgDBpassword , $wgDBadminuser

Mediawiki API error: Unrecognized value for parameter 'prop': extracts

别来无恙 提交于 2019-12-10 19:54:17
问题 I have a new installation of mediawiki. I am trying to use the API to simply get an article. The API url I am using is: https://example.com/mediawiki/api.php?action=query&format=json&prop=extracts&titles=Vendor_cisco Upon going to that URL I get: Unrecognized value for parameter 'prop': extracts This seems odd because all of the following urls do work and return the right data: https://example.com/mediawiki/api.php?action=query&format=json&prop=links&titles=Vendor_cisco https://example.com

Can't log in to mediawiki: canceled as a precaution against session hijacking?

霸气de小男生 提交于 2019-12-10 18:28:03
问题 I'm using a private mediawiki hosted on AWS EC2 instance for years I thought something gone wrong with some extension, specifically stopping in the middle of math rendering, so I tried to reload the page with Google Chrome browser's cache were all erased. Right after that, I can't log in seeing this message "There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Go back to the previous page, reload that page and then try

How to access my Multi-Language-MediaWiki through one account only?

元气小坏坏 提交于 2019-12-10 16:37:22
问题 I have got a couple different language Wikis like so: de.[myPage].org en.[myPage].org es.[myPage].org I have got to login into each one with a different accountname and password. And once i change subdomain, i get logged out - the login is not taken with me. I am using 3 MediaWikis on 1 Server with 3 different databases. How do i stay logged in? Please help me & regards, Max 回答1: Unified login on a wiki farm/wiki family is handled by the CentralAuth extension. 来源: https://stackoverflow.com

How to check if a user is logged on in mediawiki in a different app?

人盡茶涼 提交于 2019-12-10 15:36:12
问题 Here is the situation: I have a mediawiki installation, and a few additional server-side scripts that require more resources and were already written in a different language (python). The python code will be very loosely coupled with the mediawiki code (only called by clicking on a link here or there) What I would like is that when a GET or POST command is sent to the server to execute a python script, I would like to check to see if a user is already logged in to mediawiki. If not, I would

How can I change the landing page of Mediawiki 1.19.1 to directly go to Special:UserLogin

六月ゝ 毕业季﹏ 提交于 2019-12-10 13:22:36
问题 I am trying to setup a private Mediawiki instance which expects users to login to see any content. I tried tweaking the $wgWhitelistRead variable in the Localsettings.php file but it still takes me to a page that says, "Login Required". I want the wiki to redirect to Special:userLogin if a user is not logged in. How do I do this? I found a similar question on the mwforums but it seems to be for an older version of mediawiki. Any ideas? 回答1: The seemingly natural place to do this would be in

Get URL for mediawiki page given the Title - programmatically in PHP [closed]

本小妞迷上赌 提交于 2019-12-10 13:19:24
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 6 years ago . how can I get URL for an Article in MediaWiki given the title? I want to create links to certain pages in the skin template programmatically using PHP