Project:Support desk

From MediaWiki.org
Jump to: navigation, search
vde   This page is for questions relating to the MediaWiki software.

Welcome to MediaWiki.org's Support desk, the central on-wiki place to ask MediaWiki questions!

The greater purpose of this page is to make our Manual and other available help so good that you do not have to come here to ask questions, or making them easier to find.

There are other ways for of communication as well (IRC, mailing lists etc.). Read more here.

Before you post

Post a new question

  1. To help us answer your questions, please always indicate which versions you are using:
    • MediaWiki (reported by your wiki's Special:Version page)
    • PHP (likewise)
    • Database (likewise, e.g. MySQL 5.5)
  2. Please include the URL of your wiki unless you absolutely can't. It's often a lot easier for us to identify the source of the problem if we can look for ourselves.
  3. To start a new thread, click "Start a new discussion".

Archiving topics

Topics are automatically archived when they have been inactive for three weeks. If a question you have asked is approaching this limit and still has not been answered, please 'bump' it to prevent it being archived. However do not 'bump' for other reasons.

Start a new discussion
First page
First page
Previous page
Previous page
Last page
Last page

add text to footer

How do I add text to the bottom of page? such as how mediawiki has it on the bottom "Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. See Terms of Use for details." Running MediaWiki 1.20.2

Thanks

Meinmein (talk)21:38, 5 June 2014

Hi!

You can provide a link to the licence page with the variable $wgRightsPage in LocalSettings.php. See Manual:$wgRightsPage. That page also has links to $wgRightsText and $wgRightsIcon, which you might be interested in as well!

88.130.122.13000:20, 6 June 2014
 

Gerrit error

Hi a few months ago an error started on gerrit where if you were on a mobile operating system this link would http://gerrit.wikimedia.org/r/#/q/8f4ee751,n,z not work. I doint know if it works on the desktop. But it doesent work on iOS. On the iPad and iPhone. Please fix it.

90.198.237.6515:50, 5 June 2014

Works fine on Android :) What error message comes? Can you try another browser?

Florianschmidtwelzow (talk)19:40, 5 June 2014

Also works in Firefox on Windows.

88.130.122.13000:12, 6 June 2014
 
 

Special Pages

I have update my wiki to the last stable version, but when i want go to my special pages it shows me that the special pages can not load or do not exist....

Any clue?

Regards..

Enrique.umana (talk)13:12, 3 June 2014

Hello! How do you want to open the Special Pages, e.g.: example.com/Special:Version example.com/index.php/Special:Version example.com/index.php?title=Special:Version

The second is the standard after the new installation of mediawiki, the third must work everytime (if the wiki is correctly installed). Maybe you use the false language (Spezial: instead of Special: e.g.)?

Florianschmidtwelzow (talk)13:44, 3 June 2014

Hi i just reinstall the wiki and still not working...

The language is correct...

Thanks for your help..

Enrique.umana (talk)20:08, 3 June 2014

Hi!

I understand that even the - from MediaWiki's point of view - "simple" call index.php?title=Special:Version does not work.

What exactly happens when you call that page with that URL in your wiki? What do you get on screen? Error 404? blank page? A browser message telling you the page won't load? Something else?

88.130.77.18621:58, 3 June 2014

Hi, all the other links are working.. But the page of the users (Special:specialpages) is not working..

404 error...

Regards!

Enrique.umana (talk)22:01, 4 June 2014

Usually, when MediaWiki handles a request, MediaWiki also is the software, which gives out 404 error pages. However, this should not happen in case of this special page.

Please try this URL in your wiki:

example.com/index.php?title=Special:SpecialPages

Does this exact URL also end up in an error 404 or can you with this URL see the special page?

88.130.111.622:33, 4 June 2014
 
 
 
 
 

I'm working straight in Mediawiki.

I'm having trouble with templates. Is there a way to work from a template without editing the template itself. For example, if I create "template:how-tos" and then create a new page and base it off of that template, why is that whenever I edit something in the new page it changes the actual template, as well?

65.112.244.221:46, 5 June 2014

I'm working straight in Mediawiki.

I'm having trouble with templates. Is there a way to work from a template without editing the template itself. For example, if I create "template:how-tos" and then create a new page and base it off of that template, why is that whenever I edit something in the new page it changes the actual template, as well?

65.112.244.221:46, 5 June 2014

centralauth error

hi I get this error in centralauth


Warning: array_map() [function.array-map]: An error occurred while invoking the map callback in /home/paladox/public_html/en/extensions/CentralAuth/specials/SpecialMergeAccount.php on line 443


I am running mediawiki 1.24 wmf 8 and the website it http://en.random-wikisaur.tk

90.198.237.6517:27, 5 June 2014

fixed.

90.198.237.6517:53, 5 June 2014
 

Dynamic <title> Tag with Wiki-Title AND Article-Title

Hello ...

My problem: Every page in my wiki has as page title the wiki-name itself ( so if i want to create a bookmark in a certain article i do NOT get the article´s title but only the wiki´s title ).

My question: Which file do i have to edit and what do i have to do that the "HTML-<title>" Tag is filled like "ARTICLE-NAME - WIKI-Name" ( e.g. Ferrari - CarWiki )

My setup: MediaWiki 1.18.1 PHP 5.3.8-1+b1 (apache2handler) MySQL 5.1.58-1

Thanx for your help ! Stefan

84.158.107.17712:49, 30 January 2012

MediaWiki:Pagetitle

Subfader15:57, 30 January 2012

Thanks Subfader - i am not a real PHP-Guru ... could you please tell me WHERE to put it HOW ? Or anybody else ?

188.98.79.3011:08, 31 January 2012

It's a message and the title is added as $1. Save the page with

$1 - CarWiki

On page [[Ferrari]] the title would be "Ferrari - CarWiki".

You could also use magic words.

Subfader12:27, 31 January 2012

Sorry - i do not get it. Have a look at my wiki at http://www.trainerlexikon.de/index.php?title=Ziele_definieren The article is named "Ziele definieren" ( Defining targets ). But the page name ( the name of the firefox window ) is "Trainerlexikon" - and my target is to have "Ziele definieren - Trainerlexikon" as page name ( which is stored at the book marks ). Do you have an idea ?

188.98.79.3013:39, 31 January 2012
 
 
 

Edit the page "MediaWiki:Pagetitle" on your wiki and put the following inside of it:

$1 - {{SITENAME}}

Then on every page the <title> will be the way you want. The "MediaWiki:Pagetitle" wiki page is used as format for the title and $1 is replaced with the wiki page name.

For your wiki it is here: http://www.trainerlexikon.de/index.php?title=MediaWiki:Pagetitle&action=edit

It looks like user "StefanLapenat" on your wiki has changed this in 2005 ([1]).

All you need to do is delete that edit,

http://www.trainerlexikon.de/index.php?title=MediaWiki:Pagetitle&action=delete

.. and then it is good :)

Krinkle18:10, 31 January 2012

G R E A T. And so easy - if u know how ;) Thanx a lot Subfader & Krinkle !!!

188.98.79.3020:48, 31 January 2012

One more question ... how is this "category" of pages called ? Is there a list of all these "special" pages ?

188.98.79.3020:52, 31 January 2012

I also want to change <title> tag of all category page. The tag was different for all page.How to change it please help me.

210.89.56.3813:44, 5 June 2014
 

I also want to change <title> tag of all category page. The tag was different for all page.How to change it please help me.

210.89.56.3813:44, 5 June 2014
 
 
 
 

master or LTS or current stable

Is it safe/better for production to be on master branch, on LTS (REL1_19, REL1_23) or on current (REL1_22)? What pros, what cons?

2nd21:34, 25 May 2014

If you want to be sure, it will be better, if you run the latest stable version of MediaWiki, currently is 1.22.6. On newer versions, e.g. 1.23.x or 1.24 WMF you will have the newwest functions and bugfixes, but also the chance of an unstable build or incompatibility with some extensions. With a WMF version for example you have much more work, at least, if you want to be up to date, you must update MediaWiki all over the time and test test test, if the new version works with your installation (environment, extensions, self coded work and so on). So, finally it's your opinion, what you want to choose :)

Florianschmidtwelzow (talk)05:33, 26 May 2014

Hi!

What Florian says is right. Under the stable releases, MediaWiki 1.19 has the advantage that it will be supported for an extended period of time. If you wait a few more days: On May 29th MediaWiki 1.23 is planned to be released, which also offers long term support. So not only can you save time upgrading (as 1.23 will be supported until 2017), but you also get the newest stable version, if you then pick version 1.23.

88.130.104.3508:48, 26 May 2014

The main reason not to use master in production is compatibility and ability to coop with regressions.

For example, it is very possible that a change will be merged in master that requires you to run a database update (in other words, if you don't run the sql update script, the wiki is broken); And that later that change is reverted and there is no way to undo the database schema change you just applied. At that point your database is screwed and irrecoverable.

Don't use master unless you're very familiar with MediaWiki, read the commit log carefully before updating, and are willing to be held responsible for dealing with any issues (e.g. don't file a bug and expect support, someone might help but there's no obligation).

Also when master changes an interface that requires an extension to make a change, it might take a few days before they make that change. So even if you use master of mediawiki-core and some extensions, those may not be compatible at this point in time.

When using stable releases (1.22 or 1.23 at the moment) you just upgrade from one release to the next using the tested and supported upgrade path. While many extensions don't update their release branches after they are made, they wouldn't have to. They are automatically branched from the master at that point in time, so it's like running master but after things have been fixed to work with any changes made in mediawiki-core.

Krinkle (talk)01:59, 5 June 2014
 

I find extensions that broken in REL1_23 and they need backport fix from master branch. So looks like in extensions all branches, exclude master, stop progress immediately. I watch in some extensions and their REL1_22 branch stop progressing like half year ago. If I move extensions to master, then why I can't move core to master? Is master branch not safe?

2nd12:20, 27 May 2014

Like i said, the master branch is the actual stand of development. It is possible, that a patch set is instable in such installation constellation. In stable releases the risk is much lower.

If an extension is maintained out of the master i can not say. Patch set's and changes of core will be only backported, if it is critical in older versions, so the risk, that an extension fails after a backportet patch set, is lower than in master ;)

Florianschmidtwelzow (talk)13:22, 27 May 2014
 
 
 

SELECT DISTINCT for a query

Edited by another user.
Last edit: 01:41, 5 June 2014

How to I add the condition 'DISTINCT' to the following query:

$all_res = $dbr->select(
                                'categorylinks',                                   // $table
                                array( 'cl_to', 'cl_from' ),            // $vars (columns of the table)
                                array('cl_to NOT IN' . $categories),  
                                __METHOD__,                                   // $fname = 'Database::select',
                                array( 'ORDER BY' => 'cl_from ASC' ) 
                                     
                        );
LTech (talk)07:06, 28 May 2014

[RESOLVED] Warning: is_executable(): open_basedir restriction in effect

Since I've started a data refresh process that's necessary for Semantic MediaWiki, I'm seeing the following error message at the bottom of every page:

Warning: is_executable(): open_basedir restriction in effect. 
File(/usr/bin/php) is not within the allowed path(s): 
([...]/:/tmp/) in [...]/includes/Wiki.php on line 655 

Line 655 refers to something beginning

if ( !wfShellExecDisabled() && is_executable( $wgPhpCli ) )

No shell access as I'm on a shared host (with Suhosin enabled). Decreasing JobRunRate from "1" to e.g. "0.5" helps somewhat to reduce occurrences of the error message, but it does not solve the issue, let alone speed up the process.

With some googling you'll find a variety of solutions for PHP configuration issues involving "open_basedir restriction in effect", but almost none of them seems to cover this specific situation. The exception may be here, where the third suggestion about setting $wgPhpCli to a dummy value (?) might or might not be helpful in my case.

Any idea what could be done about it?

Cavila (MW 1.22, MySQL 5.1.72-2, Php 5.3.3-7 squeeze, SMW 1.9.0.1, SF 2.6.1)18:50, 8 January 2014

Some additional notes. The problem persists even if the refresh process has been cancelled. I also noticed that a lot of wikis are affected by the same issue, although no bugzilla report has been submitted yet.

Cavila (MW 1.22, MySQL 5.1.72-2, Php 5.3.3-7 squeeze, SMW 1.9.0.1, SF 2.6.1)15:45, 9 January 2014

OK, this may be a bug in MW 1.22:

  • $wgPhpCli used to have a default value of 'php', without any requirement to set it explicitly in LocalSettings.php.
  • In MW 1.22, the default value appears to have become '/usr/bin/php', pointing to a file which does not exist, hence the error message above. Explicitly reverting to a value of 'php' woukd appear to solve the issue.

Is that correct?

Cavila (MW 1.22, MySQL 5.1.72-2, Php 5.3.3-7 squeeze, SMW 1.9.0.1, SF 2.6.1)17:22, 9 January 2014

It was changed to /usr/bin/php even before than 1.19.

You can change $wgPhpCli in your LocalSettings if you need to, that's fine if that solves your problem.

Ciencia Al Poder (talk)18:29, 10 January 2014

Thanks for responding. There have not been any issues on my MW 1.19.7 installation, so something else must be involved. But at least the error message no longer shows up.

Cavila (MW 1.22, MySQL 5.1.72-2, Php 5.3.3-7 squeeze, SMW 1.8.0.5, SF 2.5.4)08:44, 12 January 2014

Had the same problem in 1.23alpha installations and fixed it by setting $wgPhpCli = 'php';

LFS (talk)03:35, 19 March 2014
 
 
 
 
 

help with css code

hi this is part of my css

.regions {
 -webkit-border-bottom-left-radius: 20px;
 -moz-border-radius-bottomleft: 20px;
 border-bottom-left-radius: 20px;
 color: #fff;
 font-family: Verdana;
 font-size: 14px;
 padding-left: 20px;
 margin-top:-2px;
 background-color: #006699;
 background-image: -moz-linear-gradient(top, #006699, #008FCC);
 background-image: -webkit-gradient(linear,
            left top, left bottom, from(#006699), to(#008FCC));
 filter: progid:DXImageTransform.Microsoft.Gradient(
            StartColorStr='#006699', EndColorStr='#008FCC', GradientType=0);
} 

when using codeeditor it says this problem

Info: Missing vendor-prefixed CSS gradients for Webkit (Safari 5+, Chrome), Opera 11.1+.

86.173.55.19414:45, 5 May 2014
background-image: -webkit-gradient(linear, left top, left bottom, from(#006699), to(#008FCC));

is the old Webkit syntax, while the new is:

background-image: -webkit-linear-gradient(top, #006699, #008FCC);
Ricordisamoa12:54, 6 May 2014

Hi the the error is the same but instead of saying WebKit it now says old WebKit can I have some help to make it back words compatible my website is at http://simple-random-wikisaur.tk/index.php/MediaWiki:Common.css

94.9.136.5915:49, 6 May 2014

I get this error now too

Info: Missing vendor-prefixed CSS gradients for Opera 11.1+

94.9.136.5915:52, 6 May 2014

Hi I also get this erro when using this code

#contentSub {
 display:show;
}

Error is Warning: Expected (inline | block | list-item | inline-block | table | inline-table | table-row-group | table-header-group | table-footer-group | table-row | table-column-group | table-column | table-cell | table-caption | box | inline-box | grid | inline-grid | none | inherit | -moz-box | -moz-inline-block | -moz-inline-box | -moz-inline-grid | -moz-inline-stack | -moz-inline-table | -moz-grid | -moz-grid-group | -moz-grid-line | -moz-groupbox | -moz-deck | -moz-popup | -moz-stack | -moz-marker | -webkit-box | -webkit-inline-box) but found 'show'.

86.173.55.19417:54, 6 May 2014

yes, "show" is incorrect and un-needed. See http://www.w3.org/wiki/CSS/Properties/display

MarkAHershberger(talk)23:01, 6 May 2014
 

Things that begin with "info" are information only and not warnings or errors.

MarkAHershberger(talk)23:03, 6 May 2014
 

Things that begin with "info" are information only and not warnings or errors. You can safely ignore them.

MarkAHershberger(talk)23:03, 6 May 2014

Ok thanks

94.9.136.5906:58, 7 May 2014

Which one do I use that is like saying show because I carnt find anything that is similer to the word show.

94.9.136.5907:08, 7 May 2014
 
 
.regions {
 -webkit-border-bottom-left-radius: 20px;
 -moz-border-radius-bottomleft: 20px;
 border-bottom-left-radius: 20px;
 color: #fff;
 font-family: Verdana;
 font-size: 14px;
 padding-left: 20px;
 margin-top:-2px;
 background-color: #006699;
 background-image: -o-linear-gradient(top, #006699, #008FCC);
 background-image: -moz-linear-gradient(top, #006699, #008FCC);
 background-image: -webkit-linear-gradient(top, #006699, #008FCC);
 background-image: -webkit-gradient(linear, left top, left bottom, from(#006699), to(#008FCC));
 filter: progid:DXImageTransform.Microsoft.Gradient(StartColorStr='#006699', EndColorStr='#008FCC', GradientType=0);
}
Ricordisamoa22:38, 1 June 2014

Hi thanks.

5.66.153.13510:01, 2 June 2014

Hi also get errors when using this

 .mp_header {
  width: 100%;
  clear: both;
  background-image: url('//upload.wikimedia.org/wikipedia/commons/1/10/Wikipedia-logo-v2-200px-transparent.png');
  background-color: #333;
  background-image: url('//upload.wikimedia.org/wikipedia/commons/1/10/Wikipedia-logo-v2-200px-transparent.png'), -moz-linear-gradient(top, #ddd, #000);
  background-image: url('//upload.wikimedia.org/wikipedia/commons/1/10/Wikipedia-logo-v2-200px-transparent.png'), -ms-linear-gradient(top, #ddd, #000);
  background-image: url('//upload.wikimedia.org/wikipedia/commons/1/10/Wikipedia-logo-v2-200px-transparent.png'), -o-linear-gradient(top, #ddd, #000);
  background-image: url('//upload.wikimedia.org/wikipedia/commons/1/10/Wikipedia-logo-v2-200px-transparent.png'), -webkit-linear-gradient(top, #ddd, #000);
  background-image: url('//upload.wikimedia.org/wikipedia/commons/1/10/Wikipedia-logo-v2-200px-transparent.png'), -webkit-gradient(linear,
             left top, left bottom, from(#ddd), to(#000));
  filter: progid:DXImageTransform.Microsoft.Gradient(
             StartColorStr='#ddd', EndColorStr='#000', GradientType=0);
  padding: 1px 10px 1px 10px;
  color: #000;
  border: none;
  margin-bottom:0px;
 }

The error is

Warning: Background image '//upload.wikimedia.org/wikipedia/commons/1/10/Wikipedia-logo-v2-200px-transparent.png' was used multiple times, first declared at line 93, col 3.

And

Warning: Using width with padding can sometimes make elements larger than you expect.

And

Info: Values of 0 shouldn't have units specified.

5.66.153.13510:05, 2 June 2014
 
 
 
 
 

Use JavaScript modules from other sites

I am searching for a way to dynamically require some useful MediaWiki modules from an external project, specifically toollabs:dewkin. The parts most concerned with my purpose are mediawiki.api, mediawiki.jqueryMsg and mediawiki.language (for PLURAL parsing). Is there a simple way to load them with all dependencies (via https://bits.wikimedia.org/www.mediawiki.org/load.php) and actually use them without having to load the entire "mediawiki" module? Or is it worth reimplementing the whole stuff?

Ricordisamoa16:05, 2 June 2014

This is unofficial, but I'd recommend trying it like this:


<head>
  <meta charset="utf-8">
  <title>Example</title>
  <link rel=stylesheet href="myapp.css">
  <script src="//bits.wikimedia.org/www.mediawiki.org/load.php?lang=en&amp;modules=startup&amp;only=scripts"></script>
</head>
<body>
 <div class="mw-body-content">
   ..
 </div>
 ...
 <script src="myapp.js">
  // Skip unsupported browsers or in case of an error
  if (!window.mw) { return; }
  // Load these modules first, as needed by "MYAPP.init()".
  mw.loader.using(['mediawiki.api', 'mediawiki.jqueryMsg'], MYAPP.init);
 </script>
</body>
Krinkle (talk)15:55, 3 June 2014
 

how to list all categories subcategories and pages within by a multi column layout.

hi guys, newbie here,

just installed mediawiki, it is so powerful, enough cause me lost. :(

USING: MW 1.22.7 MYSQL

what i am trying to do is list all the categories and subcategories and pages within that category/subcategories in main page, installed DynamicPageLis(MW) and CategoryTree extensions already.

and i put the current code in my main page:


<categorytree>CATEGORY NAME</categorytree>
 


and this one:

<table>
<tr><th colspan="3"> recent articles in [[:category:Category Name]]</th></tr>
<tr><td>

just for test purpose.

CategoryTree is a nice one, But the output of it is in a single column, which can get very long if there is a lot of subcategories and pages. Is it possible to format the output so the list is in multiple columns? just like what mediawiki did in the following page:

https://www.mediawiki.org/wiki/Category:Extensions_by_category

thanks in advance!

Dcondense (talk)00:24, 2 June 2014

Use CSS columns:

<categorytree style="column-count:3;-moz-column-count:3;-webkit-column-count:3">Extensions by category</categorytree>

shows:

Mobile
Ricordisamoa14:41, 3 June 2014
 

find category of current page

How would I find the category of a current page? Or check if a page is in a certain category?

LTech (talk)08:26, 2 June 2014

You mean as user on page itself or with a script/extension? For first: Simply look at the bottom of page, which categories listed in "categories" area. If the area isn't there, not categories set to this page :) You can see the categories in edit view, too. Simply search for term "[[Category" (in your language).

If you want to do that via code/script/extension, you can use getParentCategories() of your Title-Instance (https://doc.wikimedia.org/mediawiki-core/master/php/html/classTitle.html#ad44b1db65e5e1ccafa71512f0014d43d) or better use getCategories() of your WikiPage Instance (https://doc.wikimedia.org/mediawiki-core/master/php/html/classWikiPage.html#a7acdb0a992e0ff6c8c7053a5d6f83cc0).

Florianschmidtwelzow (talk)09:01, 2 June 2014

getCategories() seems to be what I'm looking for but I'm not sure how to use it. I would like to code it in my skin, to find the categories the current page is in, and then if it has certain categories run a specific code. I've tried $get_cat = WikiPage::getCategories(); but it gives the error Fatal error: Call to undefined method WikiPage::getCategories()

LTech (talk)09:30, 2 June 2014
 

You can also use the API.

Ciencia Al Poder (talk)09:24, 2 June 2014

But why use api, when he is in the wanted wiki installation :P

@LTech: You can not call a non static function statically ;) You must create a new instance of WikiPage (or use an existing, i'm unsure, if skin has a instance of WikiPage), for example (untestes): $page = new WikiPage( $title );

Before do that, you must have an Object of Title-Class: &title = Title::newFromText( $wgRequest->getVal( 'title' ) );

After this you can get the Categories from your new WikiPage Object: $categories = $article->getCategories();

In this constellation it's maybe easier (if you don't want to use other functions from WikiPage) to get the categories directly from the Title Object using getparentCategories(): $categories = $title->getParentCategories();

The last will return an array with category=>article_title.

Florianschmidtwelzow (talk)19:02, 2 June 2014
 
 

[RESOLVED] How to create an "info bubble" which popup when I am over one word in my page

I have install the mediawiki extension "infobox"

but I don't know how to popup the info bubble when i am above a word in my page :

I think to use template Template:Overword including the text to set in the info bubble

a help will be appreciated

Thanks

78.206.72.2310:49, 2 June 2014

What extension you installed? I don't know an extension infobox :)

Florianschmidtwelzow (talk)11:57, 2 June 2014
 

soory my extension is InputBox but it is not convenient for my aim because it creates "button"

In fact i research something as the "alt" on a picture or as the help when I am on the tab of the sidebar page,discussion,update.....

78.206.72.2312:16, 2 June 2014

You can achieve this by using the title attribute of any HTML element:

Example: text

Code:

<span title="bubble">text</span>
Ciencia Al Poder (talk)09:36, 3 June 2014

many thanks

78.206.72.2309:59, 3 June 2014
 
 
 

mobilefronted extension

hi how can I get mobilefrontend to work so that I doint need to upload the same mediawiki files and extensionand just use the same database and same mediawiki files from the main site. my site is http://en.random-wikisaur.tk mediawiki version 1.24 wmf7

86.155.238.20317:32, 31 May 2014

Meaning how can I use mobilefrontend without needing to upload the full Mediawiki file. And use use for example m.en.random-wikisaur.tk

86.155.238.20307:45, 1 June 2014

Hello, sorry, what you mean? :) If you have MediaWiki installed, you can install the MobileFrontend Extension from here: https://www.mediawiki.org/wiki/Extension:MobileFrontend

If you don't have installed MediaWiki, you can not use MobileFrontend :)

Florianschmidtwelzow (talk)05:19, 2 June 2014

Hi I have Mediawiki installed but how does wikimedia do it. Because they doint create a subdomain for example en.m.wikipedia.org and re install Mediawiki.

5.66.153.13509:56, 2 June 2014

You mean, you wont use subdomains? That's no problem ;) The Extension has a stand alone mobile device detection: https://www.mediawiki.org/wiki/Extension:MobileFrontend/Configuring_browser_auto-detection

And the user can switch manually using the link in footer :)

Florianschmidtwelzow (talk)19:05, 2 June 2014

Hi mum I will use a subdomain but how can I get it to work by using the existing Mediawiki on the en folder on my website.

86.135.251.10022:00, 2 June 2014
 
 
 
 
 

How to prevent users from creating accounts with specific words in the username?

How would you prevent users from creating accounts with specific words in the user name?

Eg: swear words, roles, sysop, and so on.

JaxFLGuy (talk)23:33, 2 June 2014

Hi!

Extension:TitleBlacklist and Extension:AntiSpoof were made for this use case: The first one can be used to forbid the creation of accounts, which match certain patterns, while the second one prevents people from choosing confusable usernames. They are both stable and in use on a variety of MediaWiki wikis.

88.130.108.12601:20, 3 June 2014
 

Changes affecting InstantCommons function?

Has anything changed in the way Commons feeds to an outside Wiki? All the pictures disappeared from our wiki on Saturday 31 May 2014, with no change in programming (and the host denies changing or limiting anything). All the pictures other than the site's logo are from Commons (and we encourage our users to develop that resource).

It's been so long I can't remember which MediaWiki version we use.

Hogweard (talk)11:02, 2 June 2014

You use MediaWiki 1.15.4 (http://wikishire.co.uk/wiki/Special:Version), i would say: Update soon ;)

InstantCommons works like before (if i'm right, tested with MW 1.24wmf2). Be sure, that you set $wgUseInstantCommons to true.

Florianschmidtwelzow (talk)11:55, 2 June 2014

And after upgrading please run the update.php ether in the web updater or in ssh please. By going to here http://wikishire.co.uk/mw-config for the web updater.

5.66.153.13515:18, 2 June 2014

And you can uninstall the stringfunction extension because some of it was merged into ParserFunctions extension

And to enable the integrated string function in parser function just add this to LocalSettings.php

$wgPFEnableStringFunctions = true;

5.66.153.13515:20, 2 June 2014

http://wikishire.co.uk/w/mw-config/

86.135.251.10022:02, 2 June 2014
Edited by another user.
Last edit: 22:26, 2 June 2014

And please also add

$wgUpgradeKey = 'set-me-to-some-random-string';

This to LocalSettings.php but please do change upgrade key to something else that no one else knows.

86.135.251.10022:03, 2 June 2014
 
 
 
 
 

problems with oci8 using Oracle 11g

I have many problems related to BLOB data type: /usr/local/apache2/htdocs/wiki/includes/db/DatabaseOracle.php(1146) : Warning - strpos() expects parameter 1 to be string, object given /usr/local/apache2/htdocs/wiki/includes/db/DatabaseOracle.php(1142) : Warning - strpos() expects parameter 1 to be string, object given /usr/local/apache2/htdocs/wiki/includes/db/DatabaseOracle.php(1142) : Warning - substr() expects parameter 1 to be string, object given I fixed these errors with this code:

       public function removeIdentifierQuotes( $s ) {
               if ( is_object ( $s ) ) {
                       return $s;
               }
               else {
                       return strpos( $s, '/*Q*/' ) === false ? $s : substr( $s, 5 );
               }
       }
       public function isQuotedIdentifier( $s ) {
               if ( is_object ( $s ) ) {
                       return false;
               }
               else {
                       return strpos( $s, '/*Q*/' ) !== false;
               }
       }

Another error during config was: INSERT INTO /*Q*/WIKI_INTERWIKI (iw_prefix,iw_url,iw_local,iw_api,iw_wikiid) VALUES (:iw_prefix, :iw_url, :iw_local, NULL, NULL) Error: 1400 ORA-01400: cannot insert NULL into ("WIKI"."WIKI_INTERWIKI"."IW_API")

To solve that, I Changed INTERWIKI table definition:

SQL> desc WIKI_INTERWIKI ;

Name                                      Null?    Type
----------------------------------------- -------- ----------------------------
IW_PREFIX                                 NOT NULL VARCHAR2(32)
IW_URL                                    NOT NULL VARCHAR2(127)
IW_API                                    NOT NULL BLOB
IW_WIKIID                                          VARCHAR2(64)
IW_LOCAL                                  NOT NULL CHAR(1)
IW_TRANS                                  NOT NULL CHAR(1)

columns IW_API, IW_LOCAL and IW_TRANS now accepting null values

After both changes made, the configuration ran OK without warnings

Basic operation is OK

Problem cannot solve:

string(425) "UPDATE /*Q*/WIKI_IMAGE SET img_size = :img_size, img_width = :img_width, img_height = :img_height, img_bits = :img_bits, img_media_type = :img_media_type, img_major_mime = :img_major_mime, img_minor_mime = :img_minor_mime, img_timestamp = :img_timestamp, img_description = :img_description, img_user = :img_user, img_user_text = :img_user_text, img_metadata = :img_metadata, img_sha1 = :img_sha1 WHERE img_name = 'Debug.png'"

Warning: OCI-Lob::writetemporary() expects parameter 1 to be string, object given in /usr/local/apache2/htdocs/wiki/includes/db/DatabaseOracle.php on line 1327

message during uploaded file delete or replace operation

                               if ( $col_type == 'BLOB' ) {
                                       $lob[$col]->writeTemporary( $val );
                                       oci_bind_by_name( $stmt, ":$col", $lob[$col], - 1, SQLT_BLOB );
                               } else {
                                       $lob[$col]->writeTemporary( $val ); <<<<<< problem with thic call
                                       oci_bind_by_name( $stmt, ":$col", $lob[$col], - 1, OCI_B_CLOB );
                               }

The value of $val is an object (BLOB) with this value

object(Blob)#188 (1) { ["mData":"Blob":private]=> string(168) "a:6:{s:10:"frameCount";i:0;s:9:"loopCount";i:1;s:8:"duration";d:0;s:8:"bitDepth";i:8;s:9:"colorType";s:10:"truecolour";s:8:"metadata";a:1:{s:15:"_MW_PNG_VERSION";i:1;}}" }

About environment

DB: Oracle 11g (11.1.0.7.0) OS: Red Hat Enterprise Linux Server release 5 (Tikanga) httpd-2.2.27 php-5.3.28 (configure --with-apxs2=/usr/local/apache2/bin/apxs --with-oci8=/opt/oracle/product/oracle/11.1.0/db)

Please help !!

regards, Haroldo

200.75.11.13814:10, 30 April 2014

Media Wiki version is 1.22.5

200.75.11.13814:23, 30 April 2014

Oracle support is somewhat fragile in recent versions of MediaWiki. Try an older version of MediaWiki, and file a BUGREPORT

Ciencia Al Poder (talk)09:36, 6 May 2014

Thanks for your answer!!

200.75.11.13819:39, 6 May 2014
 

For the records, filed as bugzilla:64970

AKlapper (WMF) (talk)14:39, 7 May 2014
 
 

Hi Haroldo

I have had the exactly same problem as your installation.

After I did the modicications to the INTERWIKI table and also changed the two functions removeIdentifierQuotes and isQuotedIdentifier I have more success with the installation.

Now I receive the below log message:

Install

Setting up database... done

Creating database user... done
Creating tables... done
Populating default interwiki table... done
Initializing statistics... done
Generating secret keys... done
Creating administrator user account... done
Creating main page with default content...
Warning: oci_fetch_all(): ORA-01002: fetch out of sequence in C:\Apache2.2\htdocs\wiki\includes\db\DatabaseOracle.php on line 60
done

Do you have any idea of what could cause this error ??

Best regards Roebel

Statjer (talk)10:26, 21 May 2014

Hi Roebel, I suggest to reinitialize wiki schema and start again from the beginning. ORA-01002 is caused by logic error or caused by lost connection to db. Check connection while setup is running. Hope this help. Regards, Haroldo

200.75.11.13821:00, 2 June 2014
 
 

help to restore an abandoned wiki

Some years ago i set up a wiki, here www.wiki.mjj.it it's so many years i didn't "work" on that wiki, the project was "de facto" abandoned now i want to begin to work again on that wiki... but i don't know why is not working anymore... and I don't know why The main page is completely blank... and now? What i can do? I really don't remember so much on wikimedia admin I have password (and so access) of the ftp site I can also check and have access to the db

But i really can't restore the wiki someone can help?

Mjfan80 (talk)18:26, 2 June 2014

Hey! If i open http://www.wiki.mjj.it i become a completly white page without source code :) Can you check, if all mediawiki files uploaded and the vhost/sudomain locate to the right directory where the mediawiki installation can be found?

Florianschmidtwelzow (talk)19:10, 2 June 2014
 
First page
First page
Previous page
Previous page
Last page
Last page