Jump to content

Project:Support desk/Flow/2014/08

Add topic
From mediawiki.org
Latest comment: 5 years ago by Valerio Bozzolan in topic [RESOLVED] Error writing to CDB file
This page is an archive.
Please ask questions on the current support desk.

time ParserFunction gives unexpected output

On the afternoon of July 31, 2014 I noticed the following behaviour:

 {{#time:Y-m}} => 2014-07
  {{#time:Y-m|now -1 months}} => 2014-07  (<-same month?)
  {{#time:Y-m|now -2 months}} => 2014-05


By Aug 1st, the same functions yield as expected:

{{#time:Y-m}} => 2014-08
  {{#time:Y-m|now -1 months}} => 2014-07
  {{#time:Y-m|now -2 months}} => 2014-06 

Am I just using the function wrong? Tried it on my mediawiki.org talk page too with the same result. Are adjustments by month not doing what I think? Thanks! Lbillett (talk) 03:03, 1 August 2014 (UTC)

Maybe i's possible, that you refer to your local time zone? The time parser function uses the server time (or a configured time in LocalSettings.php), so it's possible, that the server was in August and "you was still in July"? Just an idea :) Florianschmidtwelzow (talk) 06:36, 1 August 2014 (UTC)
I was thinking it might be timezone related. But it's still puzzling that the same functions behaved differently in the same moment! I suppose if the calculation in that instance is being done with no time zone accommodation this could happen? Lbillett (talk) 14:14, 1 August 2014 (UTC)
{{#time:c|2014-07-31 -1 months}} and {{#time:c|2014-08-01 -1 months}} DO yield the same result, actually. Ricordisamoa 16:11, 6 August 2014 (UTC)
Ah, a better example. So... is this considered expected output? As a workaround I adjusted my reports to only do monthly arithmetic based on the 1st of the month. But I'd maintain that this is a little weird. Lbillett (talk) 17:58, 6 August 2014 (UTC)

Using 'OR' operator in queries

Simple questions, hopefully a simple solution.

Basically, 'real' SQL queries allow you to do this:
.WHERE 'foo' = 'pi' OR 'bar' = 'pi'

Doing the same in 'Mediawiki style' isn't quite as apparent, though. It seems to only be known how to use the AND operator, like so:

'foo' => 'pi',
'bar' => 'pi'

...With the above example being equivalent to:

WHERE 'foo' = 'pi' AND 'bar' = 'pi'

In the simpleest of terms: How can I uss the 'OR' operator in a query while staying true to the 'wiki' style? I guess I could use the query() function (As opposed to delete(), select(), update(), write() and so forth), but the rest of my queries are 'wiki' style and I prefer for things to remain uniform.

Thanks, if you happen to have the answer. 173.217.255.81 (talk) 05:33, 1 August 2014 (UTC)

Conditions in Database access layer's select are always connected with AND (like the documentation to this function say: https://doc.wikimedia.org/mediawiki-core/master/php/html/classDatabaseBase.html#a76f9e6cb7b145a3d9020baebf94b499e
If you want to use OR; you can specify the conditions as a string, like (edited example from Manual:Database_access):
$res = $dbr->select(
	'category',                                   // $table
	array( 'cat_title', 'cat_pages' ),            // $vars (columns of the table)
	'( cat_pages > 0 ) OR ( cat_pages = 1 )',     // $conds combined with OR
	__METHOD__,                                   // $fname = 'Database::select',
	array( 'ORDER BY' => 'cat_title ASC' )        // $options = array()
);
But: Maybe you can consider to remove the OR condition if possible, sometimes it ive a way to get the same result with only one condition or with and connected conditions.
Another way that should work is to use DatabaseBase::makeList(). I haven't tested it, but you can define a new var and use this as a condition string (makeList() returns a string), example:
$conds = array(
   'cat_pages > 0',
   'cat_pages' => 1
);
$res = $dbr->select(
	'category',                                   // $table
	array( 'cat_title', 'cat_pages' ),            // $vars (columns of the table)
	$dbr->makeList( $conds, LIST_OR ),            // $conds combined with OR
	__METHOD__,                                   // $fname = 'Database::select',
	array( 'ORDER BY' => 'cat_title ASC' )        // $options = array()
);
Florianschmidtwelzow (talk) 06:29, 1 August 2014 (UTC)

[SOLVED] Can't Login due Short-URL

Hello Guys, I installed MediaWiki (1.23) in a Subdomain (http://wiki.prefixaut.net). It's in the wiki-Folder (http://www.prefixaut.net/wiki - Will redirect you to wiki-Subdomain). So after I have struggled for a while to get Short-URLs to work, I can't login. When I click on the Log in button, I get redirected and it tries to show me the index.php Wiki-Page.

To get it working on the Subdomain I tried everything till I REMOVED everything which could cause problems, so the .htaccess file in the /wiki folder is empty and the LocalSettings.php is the default one which MediaWiki generated from the Install.

I hope you can help me, thanks in advance. Prefixaut (talk) 07:04, 1 August 2014 (UTC)

Hello! And wiki.prefixauth.net points to what? The wiki/ folder? What you configured for $wgScriptPath? Florianschmidtwelzow (talk) 08:13, 1 August 2014 (UTC)
As mentioned before: "It's in the wiki-Folder (http://www.prefixaut.net/wiki - Will redirect you to wiki-Subdomain)."
$wgScriptPath = "/wiki"; Prefixaut (talk) 09:35, 1 August 2014 (UTC)
Yes, i know, but when your wiki subdomain's documentroot is the wiki folder itself, then your script path is simply false. Change it and the login will work... Florianschmidtwelzow (talk) 10:21, 1 August 2014 (UTC)
Thanks Florian and also thanks to Ciencia, changed booth Settings and works now :) Prefixaut (talk) 10:50, 1 August 2014 (UTC)
You have:
Article path /$1
Script path /wiki
index.php /wiki/index.php
api.php /wiki/api.php
load.php /wiki/load.php
That's a very bad idea, because if anything from the domain name will be a title of a page, all access to scripts (namely, /wiki/index.php) will be treated as accessing the article named wiki/index.php
You should rethink your URL scheme. Please read the recommendations again in Manual:Short_URL Ciencia Al Poder (talk) 09:49, 1 August 2014 (UTC)

Reducing the size of mediawiki database

MediaWiki 1.19.9
PHP 5.3.10
MySQL 5.5.37
I have a mediawiki site which has a very large database size ( 11 GB) . I want to deploy the site onto a development server. But the development server has limited resources like disk space. So I want to reduce the size of the database to 200MB.
I tried a couple of things
1. i ran the deleteBatch.php and deleted 80% of the pages and categories in my wiki
2. I ran deleteOldRevisions.php --delete and deleted all old revisions
Earlier the size of my database was 11GB and now its only reduced to 9.5 GB which is really strange.
Can anyone tell me what am I missing here? Or whether there is a better way to reduce the size of the database? I am aware of compressing the text to reduce table sizes, but I do not wish to compress the text.
Ys,
Arnab 109.133.131.84 (talk) 08:18, 1 August 2014 (UTC)
You should try to get the size of each table from the database, to look at what of them are consuming most of the space. Ciencia Al Poder (talk) 09:50, 1 August 2014 (UTC)
See Manual:Reduce size of the database and also Manual:Reduce size of the installation for some pointers! 88.130.83.237 12:01, 1 August 2014 (UTC)
Hi,
Thanks for your reply,
I can see that the _text table is 8457.00 MB and _searchindex is 3592.36 MB.
So which means that the page text did not get deleted. Do you know how to purge the text for the pages which are deleted? And how to clear the searchindex table as well?
Arnab 109.133.143.200 01:21, 3 August 2014 (UTC)
When you remove a page, it does not really get deleted from your wiki, but instead gets stored in the database table "archive". You can empty this table by using the maintenance script deleteArchivedRevisions.php. See Manual:DeleteArchivedRevisions.php for details! This will also delete those rows from the "text" table, which afterwards are no longer used.
If that is not enough, you can also use the maintenance script deleteOldRevisions.php to delete all old, non-deleted revisions. This will essentially remove the history from your wiki. See Manual:DeleteOldRevisions.php for details!
To refresh the searchindex (and a few other tables), you can run the maintenance script rebuildall.php. See Manual:Rebuildall.php! 88.130.107.152 08:59, 3 August 2014 (UTC)
The same for me, and, any script work.
Mediawiki 1.33.1
Debian Buster Stable
Apache 2.4
MariaDB
PHP 7.3
deleteOldRevisions.php
...
All my page ( 350 ) = 4Mo if i export with spécial page.
In the MariaDB, the same content = 450 Mo !
I have purge the cache, and, launch all maintenance script, but, i can't reduct the size :/ Zer00CooL (talk) 20:03, 10 June 2020 (UTC)

A locked wiki

Hi I need a wiki library, but some of the content i secret, and should only by view able by users of the site, who is confirmed by an admin. Is that possible with Media Wiki and how?

Kind regards Silas 195.41.97.4 (talk) 08:45, 1 August 2014 (UTC)

Look at Manual:Preventing access Ciencia Al Poder (talk) 09:51, 1 August 2014 (UTC)

[RESOLVED] Mewiki 1.22.5 very slow from external network

Hello,

I tried to find on internet a solution for the mediawiki i installed, but i can not find solution for. From local network is the mediawiki serving pages normal, bu from external network it is very slow. It takes more than 3 minutes to view, edit or save every page. Once it shown pages, the pages does not have layout, no images is shown, it seems like a old .txt page, without Gui Server running: Mediakiwiki: 1.22.5 PHP: 5.3.2 (Apache2handler) Mysql: 5.6.19

Could someone help me please.

Thanks in advanced

Beste regards,

Jee 62.41.129.102 (talk) 10:30, 1 August 2014 (UTC)

The problem that no layout is shown usually is a problem with access to load.php. See Manual:Load.php for the most likely solution to this part!
As for the speed problem I am currently more or less clueless. When - from an external network - you request a static .html file: Is that file delivered quickly or is also delivering static files slow? 88.130.83.237 11:00, 1 August 2014 (UTC)
Thanks for the quick reply,
my .htacces file contains only
RewriteEngine On
RewriteRule ^(api|load)\.php - [L]
But still no style loaded from external network (With proxy)
static .html file delivered quickly!! 62.41.129.102 12:09, 1 August 2014 (UTC)
Another possibility is that $wgServer is somehow set incorrectly. However, this is all only guessing - what is the URL to your wiki? 88.130.118.79 12:43, 1 August 2014 (UTC)
I have solved the problem
In the $wgserver configuration i had the server address, i serve the pages from an external network with routing service.
In de $wgserver now added the second address (routing service)and the layout works, it is also fast now.
Thanks for the suggestion 62.41.129.102 12:56, 1 August 2014 (UTC)
 13:14, 1 August 2014 (UTC)
Nice! What exactly is it that you have set now as $wgServer? 88.130.118.79 13:26, 1 August 2014 (UTC)

Help with some issues with a skin

Hi I am having a problem with a skin I am updating it is called metrolook and its source codes is at https://github.com/paladox2015/Metrolook and my website is at http://en.random-wikisaur.tk the problem I am having is that on the sidebar the lable navigation is not hiding like it does in vector and another issue to is http://mw.lojban.org/index.php?title=ralju_papri&useskin=metrolook# if you click on the link once loader go to the right where it says hover over it and try clicking where british English is it doesent show. so how can I fix it if I carnt fix it in the drop down how can I move outside and to the left of it. including echo. 151.225.137.145 (talk) 11:48, 1 August 2014 (UTC)

Upgrade error

Morning.

I try to upgrade Mediawiki. I uploaded new Mediawiki and new version of extensions.

But now I get error: "Fatal error: Uncaught exception 'Exception' with message 'Validator depends on the ParamProcessor library.' in /home/trouse/domains/westeros.pl/public_html/wiki/extensions/Validator/Validator.php:31 Stack trace: #0 /home/trouse/domains/westeros.pl/public_html/wiki/LocalSettings.php(173): require_once() #1 /home/trouse/domains/westeros.pl/public_html/wiki/includes/WebStart.php(139): require_once('/home/trouse/do...') #2 /home/trouse/domains/westeros.pl/public_html/wiki/index.php(43): require('/home/trouse/do...') #3 {main} thrown in /home/trouse/domains/westeros.pl/public_html/wiki/extensions/Validator/Validator.php on line 31" TraaBBIT (talk) 12:09, 1 August 2014 (UTC)

Hello! That's a problem of Extension:Validator. You need to install all dependencies of the Extension, in this case the ParamProcessor libary, see https://github.com/wikimedia/mediawiki-extensions-Validator/blob/master/README.md After this you can upgrade :) Florianschmidtwelzow (talk) 12:56, 1 August 2014 (UTC)
OK. Is there any way to instal ParamProcessor library not using Composer? TraaBBIT (talk) 07:20, 4 August 2014 (UTC)
If i read the README right, then yes:
https://github.com/JeroenDeDauw/ParamProcessor#manual
But this seems to be not recommended and much more work :) Florianschmidtwelzow (talk) 16:01, 4 August 2014 (UTC)
OK.
Could You help me with instal Composer and then install ParamProcessor? TraaBBIT (talk) 07:38, 5 August 2014 (UTC)
Install composer like explainend here: https://getcomposer.org/download/
If i read the composer.json of the Validator Extension right, then simply use "php composer.phar install" to install alls dependencies (including ParamProcessor). Florianschmidtwelzow (talk) 17:11, 5 August 2014 (UTC)

[RESOLVED] problem with $wgGroupPermissions['*']['read'] = false; and dns resolution

Hi,

At my work, I build a wiki to put our notes. I installed it on server name "CH0MLSRVWIKI01". To join the Wiki we need to enter URL "ch0mlsrvwiki01/wiki" wich is working great.

I added a DNS resolution on our Domain controller named "wiki" and add theses line in httpd-vhosts.conf

<VirtualHost *:80>
  DocumentRoot "C:/xampp/htdocs/Wiki"
  ServerName wiki
  <Directory "C:/xampp/htdocs/Wiki">
    AllowOverride all
    Order deny,allow
    Allow from all
  </Directory>
</VirtualHost>


And when I enter "wiki" in my browser it work!

After I add in "LocalSettings.php" the options

$wgGroupPermissions['*']['read'] = false;
$wgWhitelistRead = array("Special:UserLogin");
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['*']['createaccount'] = false;

to securise our wiki. And now when I type "wiki" in my browser, it open a page who tell me to connect (it's all good for now) when I click "connect" to continue in the connection page I have a xampp error page (Error: object not found) and the URL is: "http://wiki/wiki/index.php/Spécial:Connexion ".(My wiki is in french)

If i delete one "wiki" at the start of the URL it work...

What I need to do for that?

Thanks RAfoLOru (talk) 14:08, 1 August 2014 (UTC)

Because you set /wiki as a ScriptPath or ArticlePath.
P.S.: You don't need to set "$wgWhitelistRead = array("Special:UserLogin");", if the wiki is reaonly, the Loginpage is still available :) Florianschmidtwelzow (talk) 19:32, 2 August 2014 (UTC)
I tried to delete the ScriptPath, it's the same problem and my page doesn't appear like it does ... :(
I set "$wgWhitelistRead = array("Special:UserLogin");" because my wiki is not read only because of this line: $wgGroupPermissions['*']['read'] = false;
Thanks RAfoLOru (talk) 19:23, 4 August 2014 (UTC)
If the wiki is installed in the document rootm then you need to set:
$wgScriptPath = '';
so accessing /index.php will work. Ciencia Al Poder (talk) 19:32, 4 August 2014 (UTC)
Ok I found and resolve my problem.
Like Ciencia Al Poder said, I needed to set
$wgScriptPath = '';
and
$wgServer = "http://wiki"; instead of $wgServer = "http://ch0mlsrvwiki01";
Thank you everybody RAfoLOru (talk) 13:34, 5 August 2014 (UTC)
Ok I found and resolve my problem.
Like Ciencia Al Poder said, I needed to set
$wgScriptPath = '';
and
$wgServer = "http://wiki"; instead of $wgServer = "http://ch0mlsrvwiki01";
Thank you everybody RAfoLOru (talk) 13:34, 5 August 2014 (UTC)

Migrate from mediawiki 1.16.0 to 1.23.2

Hi guys,

It is possible migrate from mediawiki 1.16.0 to 1.23.2 moving the info through database export?

I need this because I will change hosting supplier, so I have database export only. But when I try to import I realized some tables have different column´s number.

I try to adapt the export script to import my info, but the new wiki doesn´t work.

Regards. 179.0.5.254 (talk) 15:22, 1 August 2014 (UTC)

Hi!
See Manual:Moving_a_wiki and Upgrade for what to do!
What do you mean with "rough DB export"?
You can export the whole DB with tools like for example mysqldump and then import it at the new hoster again. That should work and even is the recommended way of moving a DB from one hoster to another.
Do this: Take the old DB from MediaWiki 1.16 and import it at the new hoster.
Basically what you are doing is an Upgrade: Make sure your LocalSettings.php, images/, extensions/ and if changed skins/ are in place at the new hoster. If you have a MediaWiki 1.23 installation there, you then have already upgraded the MediaWiki files. Then follow with what is on upgrade:
Hi, thanks for your answer.
These are the steps I have followed:
  1. Export the whole database of old hoster (mediawiki 1.16.0)
  2. Drop all tables of new hoster´s database (mediawiki 1.23.2)
  3. Import the export database
  4. This error appears: "A database query error has occurred. This may indicate a bug in the software."
So, this way doesn´t work.
I test this too:
  1. Export the whole database of old hoster (mediawiki 1.16.0)
  2. Drop only the tables of new hoster´s database (mediawiki 1.23.2) that I have on export (because mediawiki´s new version has new tables)
  3. Import the export database
  4. This error appears: "A database query error has occurred. This may indicate a bug in the software."
So, this way doesn´t work.
This is the problem. Facundote2 (talk) 17:24, 1 August 2014 (UTC)
The solution is simple:
The first steps you did were right:
  1. Export the whole database of old hoster (mediawiki 1.16.0)
  2. Drop all tables of new hoster´s database (mediawiki 1.23.2)
  3. Import the export database
  4. If you would now open the wiki in the browser this error would appear: "A database query error has occurred. This may indicate a bug in the software."
  5. Then: Run the update script as described on Upgrade#Run_the_update_script
  6. Afterwards, if you are using extensions, you have to update these extensions and you should be done. 88.130.118.79 20:54, 1 August 2014 (UTC)

[RESOLVED] Confusion with Database Access system.

I'm having trouble figuring out the syntax for the database access system. The thing that's giving me trouble is that I want to do a 'SELECT DISTINCT' query but I can't figure out how to do that. It doesn't talk about it on the Manual:Database Access page, and on the Discussion:Database Access page someone mentions it but isn't clear on how they got it to work.

I'd like to execute the query: "SELECT DISTINCT wl_user FROM watchlist WHERE wl_title ='$EMpageTitle'"

Please and thank you for your help :) 205.175.225.22 (talk) 15:56, 1 August 2014 (UTC)

Select function is as follows: function select( $table, $vars, $conds = '', $fname = 'Database::select', $options = array(), $join_conds = array() );
You need to pass to $options an array containing the string 'DISTINCT'.
That's what the talk page says.
$options = array();
$options[] = 'DISTINCT';
or
$options = array( 'DISTINCT' ); Ciencia Al Poder (talk) 09:25, 4 August 2014 (UTC)
thanks!! 205.175.225.12 16:21, 4 August 2014 (UTC)

[RESOLVED] Moving things out of drop down menu in a custom skin

Fixed with this commit on github, which was merged in pull request 43. --Florianschmidtwelzow (talk) 14:30, 7 August 2014 (UTC)
Hi how can I move out echo from inside the drop down personal bar and put it next to the dropdown. because I am trying to update metrolook. 151.225.137.145 (talk) 16:17, 1 August 2014 (UTC)
Look at the example of Vector:
https://github.com/wikimedia/mediawiki-core/blob/master/skins/Vector/VectorTemplate.php#L531
getPersonalTools() returns an array of all personalTools links (and echo, too). So you can simply do an if/else if the key is the key of echo (i think it's "notifications") and save it into a new var/array to use somewhere else. For all others you can stilll echo the makeLIstItem(). Florianschmidtwelzow (talk) 19:28, 2 August 2014 (UTC)
Hi how would I do that because I am not very good at coding. 86.173.55.212 15:16, 4 August 2014 (UTC)
Just an example (and untested):
$otherPersonalTools = array();
foreach ( $personalTools as $key => $item ) {
    if ( $key !== "notifications" ) {
        echo $this->makeListItem( $key, $item );
    } else {
        $otherPersonalTools['notifications'] = $item;
    }
}
After this you should be able to use $otherPersonalTools['notifications'] in some other place of your skin. Florianschmidtwelzow (talk) 15:58, 4 August 2014 (UTC)
Ok so that should put it next to dropdown on the personal bar but not inside it. 86.173.55.212 16:14, 4 August 2014 (UTC)
Hi where does the code go in MetrolookTemplate.php. 86.173.55.212 16:17, 4 August 2014 (UTC)
Hi I have put the code down near the bottom of metrolooktemplate.php and how do I put $otherPersonalTools['notifications'] in the top bar and next to personal bar. I doint know which code and how to implant it there. 86.173.55.212 10:02, 5 August 2014 (UTC)
I don't know, how your skin work, that's your part :) Florianschmidtwelzow (talk) 17:09, 5 August 2014 (UTC)
well I use half of the codes which are from vector but just changed some so that the buttons will be on the top bar. The source code for the skin is https://github.com/paladox2015/Metrolook 86.173.55.212 18:14, 5 August 2014 (UTC)
Urgh, you have a pull request for this change:
https://github.com/Florianschmidtwelzow/Metrolook/commit/2a7837eb8c9c222ac5f5b96442d5f6286c88aa97 Florianschmidtwelzow (talk) 22:48, 5 August 2014 (UTC)
Ok thanks does that put it next to persionalbar on the top bar next to the left of it like winter or compactpersionalbar. 86.173.55.212 09:38, 6 August 2014 (UTC)
@Florianschmidtwelzow echo was updated so now it news the new changes. How can I change it so it works again please. Paladox (talk) 21:26, 5 November 2015 (UTC)

How i add Google Adsense in Mediawiki Pages?

Hi.

I want to add Google Adsense on my wiki's top of pages. How i do that? 78.167.231.63 (talk) 22:34, 1 August 2014 (UTC)

There is an extensions to add Google AdSense to a wiki:
https://www.mediawiki.org/wiki/Extension:Google_AdSense_2
But it adds it into the navbar. If you want to add to the top you must edit the skin. You can add the AdSense Code to the place you want to. More information about skinning. I suggest to make a copy of your actual skin (i think Vector?) and start working there instead of using the original files. So it's easy to restore the original state :) Florianschmidtwelzow (talk) 19:15, 2 August 2014 (UTC)
Yes, Vector. I know this plugin but this plugin but it for just navbar. I want to add Google Adsense my pages. 78.167.231.63 19:58, 2 August 2014 (UTC)

Needed Recommendations of Number of Pages/Contents MediaWiki Handles with respect to Local Server Load ?

Hi,

I have set-up a local wiki in my PC and it is a dual core with 2GB ram. I would like to know the recommendation on How many number of pages the Media Wiki efficiently handles with respect to speed.

for example each page has 200 KB of text. In such a case, how many Media Wiki can handle.

How to increase the speed of the search in the local server if the speed is slow?

Thanks. 122.174.34.11 (talk) 02:39, 2 August 2014 (UTC)

Hi!
MySQL scales rather well. I would say that the number of pages or their size is more or less irrelevant: That stuff all is in MySQL and MySQL will perform more or less the same - as long as you do not start saving hundreds of gigabytes in it. Before you start getting problems with MySQL, you will have other bottlenecks, which are way more severe:
Running MediaWiki on your local PC requires you to run the server on your local PC and as far as I can tell that is slow. Ordinary PCs are not made for this usecase and - although this does work - they won't perform well: Servers usually have a fast CPU and - even more important - enormous amounts of RAM. So if you want the system to become faster, that is what you should look at.
If you want to use the wiki professionally there will be no way around this: Install it on a real server! 88.130.118.79 12:04, 2 August 2014 (UTC)
I agree that during some point the server will be low. Do we have any recommendation of running a local server and how many pages it can handle? example, 50,000 articles of 800 KB each... 122.174.34.11 18:45, 2 August 2014 (UTC)
In addition to the post of 88.130.118.79: The more important point is not the space the pages need (or the revisions, MediaWiki saves differences of pages, not the entire page again (when you edit e.g.), so it's not easy to say "a page has 200 kb", if the page has an amount of revisions it can reach a bigger space level with only one sentence, as a page with only one revision and a bigger text.
The other point is (to come back to my "The more important point"), that you need hardware and a very good connection to deliver the content to your users. It's much more important: When your wiki is visited by thousands of people (just an example), then a simple home PC isn't enough to provide your users a good performance :) Florianschmidtwelzow (talk) 19:13, 2 August 2014 (UTC)

[RESOLVED]MathJax::Inject_JS and user rights ?

version mediawiki 1.23.2 Problem solved just by adding "$wgParserCacheType = CACHE_NONE;" at the end of localsetting.php ( even if you have $wgMainCacheType = CACHE_NONE; in this file )

Here are More explanation about my previous help requirement about my incorrect MathJax display (except as if i am a wikisysop)

According how we are connected; It seems there is a problem with the method MathJax::Inject_JS (but i am not expert with php ?) I put any echo trace in the php file and i see very often i exit from this due to the test static variable $Mark_n==1

Hereafter is what I may see in the generated HTML code source of my wikipage page :

  • Log as WikiSysop
mw.loader.load(["ext.slideshow.main","ext.cite","mediawiki.action.view.postEdit","mediawiki.user","mediawiki.hidpi","mediawiki.page.ready","mediawiki.searchSuggest","mediawiki.page.watch.ajax","ext.gadget.MonobookToolbarSearchReplace","mmv.bootstrap.autostart","skins.vector.collapsibleNav"],null,true);
}</script>
<script type='text/x-mathjax-config'>
//<![CDATA[
    MathJax.Hub.Config({
        tex2jax: {
            inlineMath: [ ['$','$'], ["\\(","\\)"] ],
            displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
            processEscapes: false,
            element: "content",
            ignoreClass: "(tex2jax_ignore|mw-search-results|searchresults)", /* note: this is part of a regex, check the docs! */
            skipTags: ["script","noscript","style","textarea","code"] /* removed pre as wikimedia renders math in there */
        },
        TeX: {
          Macros: {
            /* Wikipedia compatibility: these macros are used on Wikipedia */
            empty: '\\emptyset',
            P: '\\unicode{xb6}',
            Alpha: '\\unicode{x391}', /* FIXME: These capital Greeks don't show up in bold in \boldsymbol ... */
            Beta: '\\unicode{x392}',
            Epsilon: '\\unicode{x395}',
    ......

            bsy: '\\boldsymbol{y}',    /* a vector 'y' */
            bsz: '\\boldsymbol{z}',    /* a vector 'z' */
            bsDelta: '\\boldsymbol{\\Delta}', /* a vector '\Delta' */
            E: '\\mathrm{e}',          /* the exponential */
            rd: '\\,\\mathrm{d}',      /*  roman d for use in integrals: $\int f(x) \rd x$ */
            rdelta: '\\,\\delta',      /* delta operator for use in sums */
            rD: '\\mathrm{D}',         /* differential operator D */

            /* example from MathJax on how to define macros with parameters: */
            /* bold: ['{\\bf #1}', 1] */

            RR: '\\mathbb{R}',
            ZZ: '\\mathbb{Z}',
            NN: '\\mathbb{N}',
            QQ: '\\mathbb{Q}',
            CC: '\\mathbb{C}',
            FF: '\\mathbb{F}'
          }
        }
    });
//]]>
//<![CDATA[
MathJax.Hub.config.tex2jax.inlineMath.push(['$','$']);
MathJax.Hub.config.tex2jax.displayMath.push(['$$','$$']);
//]]>
</script>

<script type='text/javascript' src='http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>

<script>if(window.mw){
mw.config.set({"wgBackendResponseTime":2005});
}</script>
	</body>
</html>
  • Log as user or not connected : (All the scripts are not included in my page)
mw.loader.load(["ext.slideshow.main","ext.cite","mediawiki.action.view.postEdit","mediawiki.user","mediawiki.hidpi","mediawiki.page.ready","mediawiki.searchSuggest","mmv.bootstrap.autostart","skins.vector.collapsibleNav"],null,true);
}</script>
<script>if(window.mw){
mw.config.set({"wgBackendResponseTime":655});
}</script>
	</body>
</html>

Chantoune (talk) 12:56, 2 August 2014 (UTC)

[RESOLVED] The FAQ page on my wiki does not function

The https://neucart.com/wiki/FAQ page on my Wiki does not display a wiki page. it shows only the following

The MediaWiki FAQ can be found at:
http://www.mediawiki.org/wiki/Manual:FAQ

That's the entire source of the page. This is odd. How can I make this stop? You'll see that the FAQ is is actually a redirect page: https://neucart.com/wiki/index.php?title=FAQ&action=edit

So why does this page magically die? CvyvvZkmSUDowVf (talk) 14:42, 2 August 2014 (UTC)

your link is searching for a directory named FAQ
and it does'nt research a namespace
the link should be better as ...../wiki/index.php/Manual:FAQ if your page is in one namespace "Manual"
or .....wiki/index.php/Help:FAQ if the namespace is "Help" Chantoune (talk) 16:14, 2 August 2014 (UTC)
I believe what you meant to say is this URL returns the FAQ file in the wiki folder. That makes sense.
As for your second statement, I want FAQ to redirect to Help:FAQ, so removing it was not the correct thing to do.
Thanks for the suggestion. Timneu22 (talk) 16:30, 2 August 2014 (UTC)
If I put https://neucart.com/wiki/index.php/Help:FAQ in the bar of my firefox
I see your FAQ
In fact instead of create a page named FAQ which is by default in the "mainspace" of the wiki
it would be better to create a page Help:FAQ instead of to make a redirection which gives another naming to one page
the name before the ":" shows the namespace where we want deposit the page Chantoune (talk) 17:45, 2 August 2014 (UTC)

Mediawiki homepage design

This post by タチコマ robot was moved on 2015-06-15. You can find it at Extension talk:MobileFrontend/2014#h-Mediawiki_homepage_design-2014-08-01T22:11:00.000Z. Florianschmidtwelzow (talk) 19:18, 2 August 2014 (UTC)

Mediawiki template Ambox Code

How can i make any of the templates as shown in the following link: https://www.mediawiki.org/wiki/Template:Ambox

Tried my best but I am unable to find out the exact code due to cascading of templates. Please tell me the code or guide me on how to find it out. 203.91.197.165 (talk) 20:52, 2 August 2014 (UTC)

I think the easiest way is to export the template with all dependencies ;)
https://en.wikipedia.org/wiki/Special:Export Florianschmidtwelzow (talk) 21:40, 2 August 2014 (UTC)
Thank you for the update.
It is giving an error but i will figure it out. Amanjosan2008 (talk) 22:06, 2 August 2014 (UTC)
Maybe you can give us the error? :) Florianschmidtwelzow (talk) 00:30, 4 August 2014 (UTC)

I have nearly 1000 text pages and when i tried to add more pages. I saw the page is getting created and the link shown with brown colour. When i keep the cursor near to the link i saw it says "page doesn't exist". I saved it and not error is thrown but still the page as well all the subsequent pages shows in brown colour.

Is it a limitation in Mediawiki or there is a page limitation which we need to increase via configuration setting?

Thanks.

Version Info:

mediawiki-1.23.1 MySQL 5.6.16 122.174.34.11 (talk) 02:34, 3 August 2014 (UTC)

What happens if you follow the "brown" link? Do you end editing an empty page, or you get the page you've created? The page containing the link may be cached and hasn't updated the link. Ciencia Al Poder (talk) 09:32, 4 August 2014 (UTC)

Add-on domain issues

I am completely new to MediaWiki. So please bear with me.

I have installed to http://mariahswind.com/stitch-wiki I created an add-on domain to this directory with http://stitch-wiki.info When loaded it loads http://stitch-wiki.info/stitch-wiki/Main_Page which doesn't exist.

I tried switching to parked/alias and created a redirect through cpanel, but that didn't work.

I appreciate any advice to fix this. I know I have a ways go with understanding how mediawiki is set up.

Kind regards, Shanan Mariahswind (talk) 05:08, 3 August 2014 (UTC)

Change the $wgScriptPath (in your LocalSettings.php) to "" (now it is "stitch-wiki"). Florianschmidtwelzow (talk) 13:34, 3 August 2014 (UTC)

Need Info on KJV Mediawiki Module or Convert Html files to Mediawiki format ??

Hi,

I am looking for KJV - King James Version Bible Mediawiki Module to my local wiki and also looing for any good html file to Mediawiki format tool in windows to do the conversion.

Could someone please let us know the comments/suggestions?

Thanks. 122.164.166.24 (talk) 11:01, 3 August 2014 (UTC)

I am unsure about what you mean and what you want to do. However, let me point you to Extension:BibleRef, an extension, which can show bible quotes, also in the KJV version. 88.130.90.172 15:20, 3 August 2014 (UTC)
I am having KJV bible in html files. I am not sure whether KJV bible is available as wiki pages anywhere else would like to know whether we can able to convert the html files which i have to wiki pages. 122.164.166.24 16:30, 3 August 2014 (UTC)
I see: You want to convert HTML pages into wikitext.
I have just googled > > converter html to mediawiki < < and it e.g. gave me this converter, which apparently can do exactly what you want. They even have an online converter at http://w-i-k-i.appspot.com/, which seems to work pretty nicely. :-) 88.130.90.172 18:55, 3 August 2014 (UTC)

Change the HTML title of a special page conditionally?

I've run into a bit of a situation - I need to be able to change the HTML title of a page based on several conditions.

For example, a page title usually looks like this: <pagetitle> - <wikiname>

I need to be able to change <pagetitle> dynamically. I'm using a query string (?id=), with the value of the ID string being associated with a name that <pagetitle> should become.

How would this be done? 68.206.111.245 (talk) 15:08, 3 August 2014 (UTC)

LocalSettings.php of tawiki

Where is the LocalSettings.php of tawiki. Could any one help me to find it. Shrikarsan (talk) 16:46, 3 August 2014 (UTC)

If you mean for Wikipedia tawiki localsettings.php then you carnt get it but you can get https://noc.wikimedia.org/conf/highlight.php?file=CommonSettings.php it does not include personal detail and is not the layout that you can do in localsettings.php. 109.151.116.51 17:26, 3 August 2014 (UTC)
Where is the LocalSettings.php of http://ta.shri.wikia.com/. Could any one help me to find it. I'm a Bureaucrat there. I need to add some extentions. Can I do it as a Bureaucrat/sysop? Shrikarsan (talk) 07:31, 4 August 2014 (UTC)
Um I am not sure I doint think wikia release there LocalSettings.php to the public. 109.151.116.51 08:44, 4 August 2014 (UTC)
You cannot edit LocalSettings.php by yourself. What you can do is to open an issue in bugzilla inside the project WMF operations and request the change being made. In the bugreport you should then point to some kind of community decision backing up the requested change. 88.130.90.172 09:15, 4 August 2014 (UTC)
I think this isn't the right way for wikia :) Florianschmidtwelzow (talk) 15:54, 4 August 2014 (UTC)

[RESOLVED]need Help about Handler MathJax

the syntax of the parser_init of MathJax is a following :

static function ParserInit(Parser $parser)
  {
    $parser->setHook('nomathjax', 'MathJax_Parser::Render_NoMathJax');
    $parser->setHook('code',      'MathJax_Parser::Render_Code');
    global $wgHooks;
    $wgHooks['ParserBeforeInternalParse'][] = 'MathJax_Parser::Stage1';
    $wgHooks['InternalParseBeforeLinks'][]  = 'MathJax_Parser::Stage2';
    $wgHooks['BeforePageDisplay'][] = 'MathJax_Parser::Inject_JS'; // Inject MathJax and MathJax configuration
    return true;
  }

My procedures :

TEST1

  • I write a formula as $\sqrt(x+y)$ on one page "Test" (not Accueil page !)

when I show preview before save : the display is right : the 3 functions "stage 1", "stage2", and "Inject_Js" are executed in this order

  • I clic on Save Page : always OK
  • Now I request the wiewing of another page
  • Then I return to my Test page => the display is not OK because the "stage1" and "stage2" are not re-execute before the Inject_JS so this one exit without loading the javascript into the html page

TEST2

  • I perform the same test as the test1 but instead to use the Test page I write my formula on the Accueil page: The display is always OK.

In my trace log I see the execution of the 2 functions stage1, stage2, and the function Inject_Js is executed at each times even if I go to another page then return to accueil

TEST3

  • I perform again the TEST 1 but connected as wikisysop : the display is always OK because in this case : The 2 functions stage1 and stage 2 are always executed before the inject_JS execution


I don't understand why the 2 handlers : ParserBeforeInternalParse and InternalParseBeforeLinks doesn't work in the same way in the three tests

The problem is resolved : I just add "$wgParserCacheType = CACHE_NONE;" at the end of my localsetting.php even if i already have $wgMainCacheType = CACHE_NONE; (version mediawiki 1.23.2) Chantoune (talk) 17:39, 3 August 2014 (UTC)

Help with visualeditor

This post by タチコマ robot was moved on 2015-06-15. You can find it at Extension talk:VisualEditor/2014#h-Help_with_visualeditor-Not_Found-2014-08-03T18:22:00.000Z. Florianschmidtwelzow (talk) 23:59, 3 August 2014 (UTC)

Which version to upgrade to?

Hi,

Our website:http://www.trueerp.com/wiki we are using PHP version 5.24.8 and mediawiki 1.16.0 Which version should we upgrade to? Ofarooq (talk) 10:15, 4 August 2014 (UTC)

sorry PHP/5.4.28 Ofarooq (talk) 10:19, 4 August 2014 (UTC)
One of those supported versions listed under https://www.mediawiki.org/wiki/Download - the latest LTS version might be a good candidate. AKlapper (WMF) (talk) 10:24, 4 August 2014 (UTC)

Cofigure 2X $wgServer

Hello,

Could someone tell me how i can configure 2X $wgServer? Why 2X?, because I am running mediawiki in a subnetwork, this is accessible with diffrent IP (Lets say subnet A). On my webserver I hace a routing service to service the pages from a different network (Lets say subnet B). When I configure wgserver as subnet A then mediawiki is correctly displayed from subnet A and not from subnet B. When I change wgserver with IP of Subnet B, then mediawiki is displayed correctly from subnet B and not from A

Coul someone help me please?

Thanks in advanced.

Regards, Jee 62.41.129.102 (talk) 12:27, 4 August 2014 (UTC)

Don't use an IP. Use a domain name. Then configure DNS properly so each network resolves the domain name to the correct IP. That's what you should use when it's being accessed from the Internet and also from the internal network.
Having 2 server names would cause cache fragmentation. If a user on network A saves an edit, it will be saved in parser cache with the server of A, and then, when viewed by user from network B, all links would be pointing to server from A leaving to nowhere. Ciencia Al Poder (talk) 19:27, 4 August 2014 (UTC)
OK, thanks for the information. I do not use domainname. I have comment out the wg server and it also works. Is this ok?
Thanks 62.41.129.102 09:42, 5 August 2014 (UTC)
Commenting out $wgServer will make it default to the server used by the user doing the request, which causes that it will be changing depending from what network the user is viewing/editing the page, and causing the problem with the cache that I've mentioned in my response. If you can live with that then it's OK. Otherwise, I already gave you the solution: use a domain name or a host name. Ciencia Al Poder (talk) 16:29, 5 August 2014 (UTC)

Languages , Sidebar and change

I have a Languages problem into sidebar!
In German, i get a englisch word, and that is translate in an other englisch word. Why ???
example: "Geschichte" - > "Historie" put Output is Versionen !
Does anyone have an idea what it could be?
Homepage: http://kubbwiki.de
Infos: Mediawiki 1.23.1
Basis Language: german
UniversalLanguageSelector MLEB 2014.07
....
Webpage Sidebar output
=> Almanach
Hauptseite
Letzte Änderungen
Versionen <=======wrong
..........
Sidebar Code
  • SEARCH
  • => Almanach
.......
Template Code Tl_Historie http://kubbwiki.de/index.php/Vorlage:Tl_Historie''
....
includeonly
safesubst:
/includeonly
  1. switch: {lang| {DeDialekt| {INT:Lang} }
|{MediaWiki:Lang/de}=Geschichte
|{MediaWiki:Lang/da}=Historie
|{MediaWiki:Lang/en}=History
|#default=Historie
.....
the double { and < etc. hier not write
Does anyone have an idea what it could be? Bastor de (talk) 21:27, 4 August 2014 (UTC)
Are you trying to modify the sidebar? If so, have a look at Manual:Interface/Sidebar! 88.130.121.6 21:33, 4 August 2014 (UTC)
Yes, but i don't found my problem- i have write more Infos in my text Bastor (talk) 21:45, 4 August 2014 (UTC)
You are using this code in the wiki page:
#switch:{{{lang|{{DeDialekt|{{INT:Lang}}}} }}}
|de=Geschichte
|da=Historie
...
|#default=Historie
}}
And that already is the simplified version. All this looks overly complicated. The labels in the sidebar are translated automatically. See Manual:Interface/Sidebar#Translations for the recommended way of getting a translation! 88.130.121.6 22:25, 4 August 2014 (UTC)
I Read that article but I found not my answer
I read that now the translation works automatic, but that's not doing.
If I call into sidebar a page call "Geschichte" and I change to English that don't renamed is to History.
To create then sidebar for each languages like sidebar/de or sidebar/en are to much work, because entry change.
The way over switch lang was more easy! I work before with mediawiki 1.20 and my SIDEBAR with switch lang works correct.
I don't understand how the system makes out History the word Versionen and why I get in other page like
http://kubbwiki.de/index.php?title=German_Kubb_Masters_2013&uselang=de no german translation.
See page German_Kubb_Masters_2013 - > "History" but in English, not in german. This word was not output as "Versionen" on sidebar you found "Versionen"
http://kubbwiki.de/index.php?title=German_Kubb_Masters_2013&uselang=de
Change to other languages, the word change correct at page and sidebar
http://kubbwiki.de/index.php?title=German_Kubb_Masters_2013&uselang=fr
Only German have that problem
cu
Bastor 78.53.70.48 23:43, 4 August 2014 (UTC)
Version http://kubbwiki.de/index.php/Spezial:Version
I work on that problem.
if i test it with variabel "uselang"
change i the user language of italy
i get uselang: it
of english i get uselang: en
of germany i get uselang: en
the CONTENTLANGUAGE is de
CONTENTLANG is de
why my system not change off language de, anyone have a idee?? Bastor (talk) 18:50, 15 November 2014 (UTC)
You should't use a template on the sidebar. The sidebar is heavily cached. Once it's cached, it won't update even if you do modifications on the template. Also it can cause issues when changing languages as you described.
You should use interface messages as it was recommended. Ciencia Al Poder (talk) 10:46, 17 November 2014 (UTC)
Thank you for the information. But that's not my problem.
I can switch to every language and it runs perfectly at sidebar and article.
Only if I want to show German, I get english.
The variable content of "uselang" , does not change to German (de)! The variable content is always change to en! Bastor (talk) 18:25, 24 November 2014 (UTC)
I found the ground of my problem, German languages have to versions (nomal "Du" and formal "Sie").
Its work correct with formal-Version, but normally the user choose the normal languages version.
If user-Languge ?setlang=de-formal
result: variable content of "lang" is de
Why "lang" is not the string "de-formal" ?
Why get ?setlang=de not result lang = de (output is en)?
Great Questions :D
Bastor de (talk) 17:32, 18 September 2015 (UTC)

[RESOLVED] Mediawiki can't send e-mail (fifth parameter in mail)

Hi,

I have a problem with my mediawiki, which means it cannot send e-mail. Every time I try, I get a policy restriction error, due to the fifth parameter in mail() not being permitted (As per my web providers policies, described here https://www.one.com/en/support/faq/what-is-php-safe-mode-and-open-basedir).

Is there some way that I can configure the mediawiki server to make it realize that it cannot use the fifth parameter and make this work?

Thanks. Micax (talk) 23:29, 4 August 2014 (UTC)

Well, it's not a problem with MediaWiki, but a problem with a bad hosting provider. If I were you, I'd go and find a better one. It's hilarious how they claim One.com's servers run with safe mode set to off but they have turned off PHP features as if safe_mode is enabled.
I'm curious to see if they really have safe_mode active, since MediaWiki does various checks for that condition, in which case it shouldn't fail, and you should file a BUGREPORT about that. Otherwise, there's not much we could do about this if bad hostings disable random functions and function parameters. Ciencia Al Poder (talk) 09:48, 5 August 2014 (UTC)
Double post. Micax (talk) 11:24, 5 August 2014 (UTC)
It's not the first time I've run into silly limitations that they put on their services, though I won't call them bad - they are very cheap (at least for this part of the world), and pretty reliable. So I'm not really keen on switching them out right away - there are many that are much worse.
I'm fairly sure that they don't have safe_mode active now (although they used to have it in the past). :(
The main problem I have is with the password reset function; I can probably live without the rest of the mailing functionality (closed instance). Can you give me a pointer as to which files I should look into, if I want to try and mod this myself? Would that be a reasonable solution, at least for the short term? Micax (talk) 11:33, 5 August 2014 (UTC)
You could look search for all instances of the "mail" function in MediaWiki code and delete the 5th parameter, but that would make upgrades more tedious for you.
Apparently it's only used in /includes/UserMailer.php Ciencia Al Poder (talk) 16:50, 5 August 2014 (UTC)
Did the change, and it seems to work. It's not an ideal solution, but it's workable until I can find a better one or switch hosts. Thanks. Micax (talk) 18:59, 5 August 2014 (UTC)

Obtaining protection level with Categorymembers list

Hello,

I'd like to know whether it's possible to obtain every page's protection level using API:Categorymembers list. I tried to use 'inprop:protection' but it doesn't seem to work.

Thank you Arnaugir (talk) 07:37, 5 August 2014 (UTC)

What's the exact query you've tried so far? Ciencia Al Poder (talk) 09:51, 5 August 2014 (UTC)
params = {
'action'  :'query', 'list'  :'categorymembers', 'cmtype'  :'page', 'cmtitle' :u'Category:Articles amb referències puntuals demanades', 'prop'  :'info', 'inprop'  :'protection'}
That doesn't seem to work, I do not obtain any information about the protection level. Arnaugir (talk) 18:52, 5 August 2014 (UTC)
Use Categorymembers as a generator instead of a list:
params = { 'action'  :'query', 'generator'  :'categorymembers', 'gcmtype'  :'page', 'gcmtitle' :u'Category:Articles amb referències puntuals demanades', 'prop'  :'info', 'inprop'  :'protection'} Ricordisamoa 21:28, 5 August 2014 (UTC)

Ordering of CSS files loaded by the resource loader

I am trying to make a subskin of Vector and I am trying to use the resource loader to load a CSS file, but I need it to happen after Vector's css loads. I've set 'skins.vector.styles' as a dependency, but my css file for some reason is always loaded first. How can I specify the order of these css files? (I have !important on everything as a stopgap, lol)

MediaWiki: 1.23.2
PHP: PHP 5.6.0RC2
Database: MySQL 5.5.37-1
Link: http://www.mylionking.com/wiki

I have:

   $wgResourceModules['skins.tlkwiki.styles'] = array(
       'styles' => array(
           'screen.css' => array( 'media' => 'screen' ),
       ),
       'dependencies' => ['skins.vector.styles'],
       'remoteSkinPath' => 'TLKWiki',
       'localBasePath' => __DIR__,
   );

Here is the skin class:

   class SkinTLKWiki extends SkinVector {
       public $skinname = 'tlkwiki';
       public $stylename = 'tlkwiki';
       public $template = 'VectorTemplate';
       public $useHeadElement = true;
       function setupSkinUserCss( OutputPage $out ){
           parent::setupSkinUserCss( $out );
           $out->addModuleStyles("skins.tlkwiki.styles");
       }
   }

EDIT: I did some more investigation and I think there's a bug or at least something that should be fixed. To me this is a huge issue to not allow CSS files to be dependent on other CSS files, especially with a new resource loader. https://bugzilla.wikimedia.org/show_bug.cgi?id=69159 Mokachee (talk) 15:06, 5 August 2014 (UTC)

Hi!
Any reason why you have square brackets in this line: 'dependencies' => ['skins.vector.styles'],? Should that somehow create an array? 88.130.83.134 15:28, 5 August 2014 (UTC)
Hey there. Yes, short array syntax was added in PHP 5.4.0: http://php.net/manual/en/migration54.new-features.php Mokachee (talk) 21:56, 5 August 2014 (UTC)

Anonymous page access

Hello,

MediaWiki version == 1.23.1 PHP version == 5.3.10-1ubuntu3.12 MySQL version == 5.5.37-0ubuntu0.12.04.1

I would like to implement a single page that allows anonymous access and does not record any identifying information whatsoever such as an IP address or even a time stamp if possible. This is to implement an anonymous suggestion box for the team I support.

If possible, could someone point me in the right direction on how to implement this?

Thanks,

Brandon 198.135.125.107 (talk) 22:06, 5 August 2014 (UTC)

Hi!
Granting anonymous access to one single page in MediaWiki and not to the others is no problem. That is technically possible. However, there are other problems:
When you want anonymous access, you will have to disable all logs that you find. E.g. does Apache store an access.log and an error.log. PHP has an error log as well. These might (will!) contain sensitive data and so should be deactivated.
As for MediaWiki I am not completely sure, how/if complete anonymity is possible: MediaWiki holds a database cache with fragments of the rendered pages. I am not sure, what exactly is in it, but that might als contain information about the single users. See the objectcache table in the database.
Another aspect is editing pages: For each edit MediaWiki creates a revision and with each revision it logs the user's IP address (this also happens, although not visible from outside, when the user is actually logged in and so also could be identified by his username). I don't know right now, if and if so how this can be deactivated, but I know that there are situations where law might force you as a website owner to keep certain information (and if only for a limited amount of time). In case of Wikipedia, the main reason MediaWiki exists, this information must be stored and so there is no real reason for the Wikimedia developers to implement functionality, which would remove this information.
And if you say you want to have only one single page, which can be accessed anonymously, while for the rest everything is logged as usual, then this even makes it harder. Spontaneously I would say: In this case (one single page with anonymous access while the rest is not anonymous), in this case MediaWiki is not what you are looking for. 88.130.83.134 22:31, 5 August 2014 (UTC)
Thanks for the reply.
I created a page called "SuggestionBox" and granted anonymous (unauthenticated) access to it.
$wgWhitelistRead = array ("Special:Userlogin", "SuggestionBox",);
I still require users to be authenticated to access the rest of the wiki via an LDAP username/pass and be in a special LDAP group.
I understand someone with access to the mediawiki server would be able to pull out the identifying information, but I was just hoping to hide it from the web UI.
So this would fall under "It goes against the design of the wiki"? 198.135.125.107 22:43, 5 August 2014 (UTC)
Yeah, in some way. I thought you wanted to log no identifying information at all. But now that you say it would be OK to log them, they should only be hidden, I would say there are ways and means to more or less achieve this.
100% safety is never possible. There will be ways to get around the following ideas and to get some information anyway:
Information on who created a revision of a page are visible at the following places:
  • In the pages history: index.php?title=SuggestionBox&action=history.
  • On the Special:RecentChanges page.
  • Links to the posts are also shown on the contribution pages of these IPs: Special:Contributions/<IP-address>. If it is possible to more or less guess the users' IP addresses (e.g. because you know they will all come from your company's network with a fixed range of possibe IPs), you will be able to find the IP there as well.
  • Finally there is the API: More or less anything you can view from the webpage also is available from the API:
    • See API:Recentchanges for links to recent changes.
    • Again if you know or can guess the IP addresses, you can find information in the Usercontribs API. See API:Usercontribs.
    • With the properties API you can get information about single revisions/revisions of pages, e.g. who created a particular revision. Although API:Revisions may sound differently this in fact does also include the IP address.
All these pages might be reachable with other URLs as well, e.g. if you are using short URLs.
Access to all these pages would then have to be blocked; for the API see API:Restricting_API_usage.
As you can see there are a plenty of pages, where possibly identifying information can be found - and these are only the ones I could think of right now. I am pretty sure that there are a variety of other places as well. Now that I wrote this I am pretty sure that what you want just is not possible with MediaWiki. 88.130.83.134 23:23, 5 August 2014 (UTC)

Looking for Timetable/line extention

Hello, I am looking for timetable / line extention to add a timetable on each page/artikel in my wikimedia. On that timeline i will show the events of the page an the events of the other pages. If ik klik on the event of the timeline i will go to that page,

example of timelines would be: http://www.simile-widgets.org/timeline/ or: http://almende.github.io/chap-links-library/timeline.html

Is there an extention already? Any help would be great.

Thanks in advance. greetings from holland Dicki smits (talk) 07:07, 6 August 2014 (UTC)

See Category:Graphical Timelines Ciencia Al Poder (talk) 09:41, 6 August 2014 (UTC)
Thanks,
I discover the chaptimeline and it should be a great extention.
But i can't get it working under mediawiki 2.0 :-(
Any suggestions?
thanks anyway Dicki smits (talk) 18:32, 9 August 2014 (UTC)
MediaWiki 2.0 not gonna happen in your lifetime :)
Latest is 1.23
That extension is not on WMF gerrit repository and doesn't appear to have branches for each MediaWiki release, so it's support is unknown. Maybe try another extension? Ciencia Al Poder (talk) 18:33, 10 August 2014 (UTC)
Sorry i ment semantic mediawiki 2.0 :-) Dicki smits (talk) 19:34, 10 August 2014 (UTC)

Import userdata from other database

Hi,

at the moment i´m running a joomla(2.5) database(MySQL 5.5.31) and a media-wiki database(MySQL 5.5.38) on the same server (php:5.5).

Now i want to connect the joomla users with the mediawiki, so they don´t need to login again in the mediawiki, if they already did in the joomla site. All users are created and stored in the joomla-database.

Is it possible to integrate the mediawiki database into the joomla dataase? so i just have 1 database?

Thanks for your help :D 178.26.115.150 (talk) 09:57, 6 August 2014 (UTC)

Hello! For this you need an extension which provides a user bridge between the Joomla-database and MediaWiki database. I don't know any actual maintained extension doing this and found only this one. maybe it still works, but it is unmaintained and there can be security risks included, which is (for a auth extension) a critical point to think about. Florianschmidtwelzow (talk) 14:21, 6 August 2014 (UTC)

[RESOLVED] [[File:image.png|size]] doesn't work as expected

Good afternoon, Dears!

Could you please advise me on how to fix the issue with link to a picture with exact size? My wiki is at: "http://smite.xn--c1acckd7ahg4l.xn--p1ai/Aphrodite" and here you can see that the URLs is not correct.

Here's the fragment of the Item_build template:

{{#if:{{{consumable1|}}}|{{!}} id="{{{consumable1}}}" class="tooltip-hover" style="width:10%" {{!}}
[[File:{{#show:{{{consumable1}}}|?icon}}|60px|link={{{consumable1}}}]]

[[{{{consumable1}}}]]{{Item tooltip|id={{{consumable1}}}|{{{consumable1}}}}}
|{{!}}}}

And the source of the Item_tooltip

<onlyinclude><includeonly>{| class="skill-tooltip" id="{{{id}}}-tooltip"
| rowspan="2" | [[File:{{#show:{{{1}}}|?icon}}|30px]]
! {{#show:{{{1}}}|?name}}
|-
|{{#if: {{#show:{{{1}}}|?stat1}}|:{{#show:{{{1}}}|?stat1}}

<nowiki/>}}{{#if: {{#show:{{{1}}}|?stat2}}|:{{#show:{{{1}}}|?stat2}}

<nowiki/>}}{{#if: {{#show:{{{1}}}|?stat3}}|:{{#show:{{{1}}}|?stat3}}

<nowiki/>}}{{#if: {{#show:{{{1}}}|?stat4}}|:{{#show:{{{1}}}|?stat4}}

<nowiki/>}}{{#if: {{#show:{{{1}}}|?active effect}}|;Active effect
:{{#show:{{{1}}}|?active effect}}

<nowiki/>}}{{#if: {{#show:{{{1}}}|?active cooldown}}|;Active Cooldown
:{{#show:{{{1}}}|?active cooldown}}

<nowiki/>}}{{#if: {{#show:{{{1}}}|?passive effect}}|;Passive effect
:{{#show:{{{1}}}|?passive effect}}

<nowiki/>}}{{#if: {{#show:{{{1}}}|?passive cooldown}}|;Passive Cooldown:
:{{#show:{{{1}}}|?passive cooldown}} }}
|}</includeonly></onlyinclude>

Unfortunately I have no clue how to fix it, so I'm asking for your help.

Please help me to figure this out. 77.242.202.244 (talk) 12:15, 6 August 2014 (UTC)

oops, sorry for duplicating, I was trying to edit previous message. 77.242.202.244 12:20, 6 August 2014 (UTC)
The page shows things like [[File:|60px|link=Healing Potion]] and [[File:ManaPotion.png|60px|link=Mana Potion]]
The first one is OK to leak the File: syntax, because it's an empty filename.
On the second one, ManaPotion.png is a link to an article named "ManaPotion.png". You can't have a link inside the filename, and that's the reason why it leaks the File: syntax.
Those are problems caused apparently by the output of #show:, but unfortunately I don't know what does that parser function to help you more about that. Hopefully, understanding the problem I've explained can give you some hints about how to fix them Ciencia Al Poder (talk) 09:42, 7 August 2014 (UTC)
Thanks for Vedmaka for help on this issue.
The problem was as Ciencia Al Poder mentioned, that there was a link inside filename. And resolution was amazing:
Original:
[[File:{{#show:{{{consumable1}}}|?icon}}|60px|link={{{consumable1}}}]]
Fixed:
[[File:{{#show:{{{consumable1}}}|?icon|link=none}}|60px|link={{{consumable1}}}]] 46.46.150.88 14:14, 7 August 2014 (UTC)

reset password page falsely states it sent a password, given blank username

I was very confused by the behavior of the password reset page at

https://www.mediawiki.org/wiki/Special:PasswordReset

when I entered a blank Username and the my email address (or any text with an "@"). The response is:

    Reset password
    A password reset email has been sent.

but I get nothing, and of course it can't be true when the email address has a nonexistant domain name like xyzzy@abc 24.9.62.241 (talk) 16:00, 6 August 2014 (UTC)

Yes, PasswordReset lies to avoid sharing private information. Nemo 06:30, 7 August 2014 (UTC)
The problem is that the site doesn't just say that no username at all has been specified. Instead it says it sends email, which it doesn't actually send. That leads the user to look for email, to get with the impression that the email address is indeed on file at the site, to get more confused at what is really going on, and generally to waste time.
I agree that the site should not give a response which lets someone learn, e.g., which username is associated with an email address, but that isn't the question here. If the username and password don't match, it says that. In this case the site has never even heard of the email address in question, and it does the same thing for valid and invalid email addresses. 24.9.62.241 22:02, 7 August 2014 (UTC)
That is like Nemo wrote: The site lies to protect other users. No one has to know if a specific E-Mail address is used for mediawiki.org (or some other site using MediaWiki). Normally the user knows, what E-mail address or Username he used for mediawiki.org, so it's normally not confusing. That's a point to protect the users of this and other sites using MediaWiki. Florianschmidtwelzow (talk) 22:15, 7 August 2014 (UTC)
That is besides the point. I'm just saying that when the user does not enter a username, then the site should say "no username entered", rather than saying it sent an email. 24.9.62.241 23:12, 7 August 2014 (UTC)
Sorry, but if you don't type in anything (no username and no e-mailaddress) then the site doesn't say, that an E-Mail is sent. But if you type in one (username or e-mail) then you pass the requirements (see first sentence on Special:PasswordReset: Fill in one of the fields to receive a temporary password via email). So all ok! Florianschmidtwelzow (talk) 00:03, 8 August 2014 (UTC)
Aha - I missed that it says either is ok. Thanks for clearing up my confusion! So the response can still be confusing, but I guess that even knowing whether the email sending script immediately responds with e.g. Domain Not Found" would leak some information about the view of the web from the wikipedia server. 24.9.62.241 04:20, 11 August 2014 (UTC)

Mediawiki homepage design suggestions?

Hi.

I don't know how i create design for homepage. How i do that? Please tell me suggestions.

Thank you. 78.167.231.63 (talk) 16:54, 6 August 2014 (UTC)

Tag extension output is being modified

Hello, I'm trying to make a tag extension to generate some custom output (calls to HighCharts). I'm passing the content back as an array with return array( $html, "markerType" => 'nowiki' ); as recommended here, but my ampersands aren't making it through without being encoded (I'm trying to send & but the page source gets &_amp; (with no underscore) which breaks the HighCharts rendering). Any tips on a workaround? I tried the technique in this example with no luck (I think maybe the core has changed a bit since 2007, or I'm doing it wrong). Lbillett (talk) 20:06, 6 August 2014 (UTC)

I don't know why you would need to output ampersands without being properly HTML encoded. In HTML, every "&" should be output as "&amp;", otherwise it would be interpreted as an entity reference. Even URLs where ampersands are part of the URL get encoded that way. Ciencia Al Poder (talk) 09:48, 7 August 2014 (UTC)
The output is intended going into a java-script function call (see line 22), not to the actual browser output per-se. I suppose this means I am trying to make an entity reference? (forgive me, I'm super-weak with java). Should I be accomplishing this in a different fashion? Lbillett (talk) 16:24, 7 August 2014 (UTC)
Well, then you don't want to output HTML content, but JavaScript. That's very different.
You should probably use the addInlineScript method of OutputPage for that purpose. But I don't know if you would be able to do that from the parser. Maybe look an extension that also adds JavaScript when using a tag, like Extension:Tabber or one like that? Ciencia Al Poder (talk) 17:32, 7 August 2014 (UTC)

[RESOLVED] luasandbox - version

How do I get the version of luasandbox which wikipedia use (1.9-1)? If I just install luasandbox from git I get version 2.0-4 and I cant find any tags in the git repo.

I have used Scribunto and luasandbox before, but after upgrading to php 5.5 I get the error (even that it looks like its installad in special:version) when I run "php runJobs.php":

Extended content
2014-08-06 21:02:15 refreshLinks Template:all pages=array(1) rootJobSignature=0dd740a55c910d4ed7dac576a944a0d57ca0ee00 rootJobTimestamp=20140806143205 masterPos= STARTING
[b5d08c9c] [no req]   Exception from line 220 of /var/www/extensions/Scribunto/engines/LuaSandbox/Engine.php: The luasandbox extension is not present, this engine cannot be used.
Backtrace:
#0 /var/www/extensions/Scribunto/engines/LuaSandbox/Engine.php(207): Scribunto_LuaSandboxInterpreter->__construct(Scribunto_LuaSandboxEngine, array)
#1 /var/www/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(87): Scribunto_LuaSandboxEngine->newInterpreter()
#2 /var/www/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(189): Scribunto_LuaEngine->load()
#3 /var/www/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(763): Scribunto_LuaEngine->getInterpreter()
#4 /var/www/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(775): Scribunto_LuaModule->getInitChunk()
#5 /var/www/extensions/Scribunto/common/Hooks.php(108): Scribunto_LuaModule->invoke(string, PPTemplateFrame_DOM)
#6 [internal function]: ScribuntoHooks::invokeHook(Parser, PPTemplateFrame_DOM, array)
#7 /var/www/done/includes/parser/Parser.php(3716): call_user_func_array(string, array)
#8 /var/www/done/includes/parser/Parser.php(3434): Parser->callParserFunction(PPTemplateFrame_DOM, string, array)
#9 /var/www/done/includes/parser/Preprocessor_DOM.php(1175): Parser->braceSubstitution(array, PPTemplateFrame_DOM)
#10 /var/www/done/includes/parser/Parser.php(3586): PPFrame_DOM->expand(PPNode_DOM)
#11 /var/www/done/includes/parser/Preprocessor_DOM.php(1175): Parser->braceSubstitution(array, PPTemplateFrame_DOM)
#12 /var/www/done/includes/parser/Parser.php(3586): PPFrame_DOM->expand(PPNode_DOM)
#13 /var/www/done/includes/parser/Preprocessor_DOM.php(1175): Parser->braceSubstitution(array, PPFrame_DOM)
#14 /var/www/done/includes/parser/Parser.php(3244): PPFrame_DOM->expand(PPNode_DOM, integer)
#15 /var/www/done/includes/parser/Parser.php(1239): Parser->replaceVariables(string)
#16 /var/www/done/includes/parser/Parser.php(405): Parser->internalParse(string)
#17 /var/www/done/includes/content/WikitextContent.php(327): Parser->parse(string, Title, ParserOptions, boolean, boolean, integer)
#18 /var/www/done/includes/content/AbstractContent.php(486): WikitextContent->fillParserOutput(Title, integer, ParserOptions, boolean, ParserOutput)
#19 /var/www/done/includes/jobqueue/jobs/RefreshLinksJob.php(156): AbstractContent->getParserOutput(Title, integer, ParserOptions, boolean)
#20 /var/www/done/includes/jobqueue/jobs/RefreshLinksJob.php(93): RefreshLinksJob->runForTitle(Title)
#21 /var/www/done/maintenance/runJobs.php(108): RefreshLinksJob->run()
#22 /var/www/done/maintenance/doMaintenance.php(109): RunJobs->execute()
#23 /var/www/done/maintenance/runJobs.php(280): require_once(string)
#24 {main}



When I remove $wgScribuntoDefaultEngine = 'luasandbox' from LocalSetting.php I get the following error message:

Extended content
2014-08-06 21:07:05 refreshLinks Template:all pages=array(1) rootJobSignature=f899e119eee4a01a4ead765b0491de6c5e2141fe rootJobTimestamp=20140806143207 masterPos= STARTING
[4edd60dd] [no req]   Exception from line 220 of /var/www/extensions/Scribunto/engines/LuaSandbox/Engine.php: The luasandbox extension is not present, this engine cannot be used.
Backtrace:
#0 /var/www/extensions/Scribunto/engines/LuaSandbox/Engine.php(207): Scribunto_LuaSandboxInterpreter->__construct(Scribunto_LuaSandboxEngine, array)
#1 /var/www/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(87): Scribunto_LuaSandboxEngine->newInterpreter()
#2 /var/www/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(189): Scribunto_LuaEngine->load()
#3 /var/www/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(763): Scribunto_LuaEngine->getInterpreter()
#4 /var/www/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(775): Scribunto_LuaModule->getInitChunk()
#5 /var/www/extensions/Scribunto/common/Hooks.php(108): Scribunto_LuaModule->invoke(string, PPTemplateFrame_DOM)
#6 [internal function]: ScribuntoHooks::invokeHook(Parser, PPTemplateFrame_DOM, array)
#7 /var/www/done/includes/parser/Parser.php(3716): call_user_func_array(string, array)
#8 /var/www/done/includes/parser/Parser.php(3434): Parser->callParserFunction(PPTemplateFrame_DOM, string, array)
#9 /var/www/done/includes/parser/Preprocessor_DOM.php(1175): Parser->braceSubstitution(array, PPTemplateFrame_DOM)
#10 /var/www/done/includes/parser/Parser.php(3586): PPFrame_DOM->expand(PPNode_DOM)
#11 /var/www/done/includes/parser/Preprocessor_DOM.php(1175): Parser->braceSubstitution(array, PPTemplateFrame_DOM)
#12 /var/www/done/includes/parser/Parser.php(3586): PPFrame_DOM->expand(PPNode_DOM)
#13 /var/www/done/includes/parser/Preprocessor_DOM.php(1175): Parser->braceSubstitution(array, PPTemplateFrame_DOM)
#14 /var/www/done/includes/parser/Parser.php(3586): PPFrame_DOM->expand(PPNode_DOM)
#15 /var/www/done/includes/parser/Preprocessor_DOM.php(1175): Parser->braceSubstitution(array, PPTemplateFrame_DOM)
#16 /var/www/done/includes/parser/Parser.php(3586): PPFrame_DOM->expand(PPNode_DOM)
#17 /var/www/done/includes/parser/Preprocessor_DOM.php(1175): Parser->braceSubstitution(array, PPTemplateFrame_DOM)
#18 /var/www/done/includes/parser/Preprocessor_DOM.php(1615): PPFrame_DOM->expand(PPNode_DOM, integer)
#19 /var/www/done/includes/parser/Parser.php(3583): PPTemplateFrame_DOM->cachedExpand(string, PPNode_DOM)
#20 /var/www/done/includes/parser/Preprocessor_DOM.php(1175): Parser->braceSubstitution(array, PPFrame_DOM)
#21 /var/www/done/includes/parser/Parser.php(3244): PPFrame_DOM->expand(PPNode_DOM, integer)
#22 /var/www/done/includes/parser/Parser.php(1239): Parser->replaceVariables(string)
#23 /var/www/done/includes/parser/Parser.php(405): Parser->internalParse(string)
#24 /var/www/done/includes/content/WikitextContent.php(327): Parser->parse(string, Title, ParserOptions, boolean, boolean, integer)
#25 /var/www/done/includes/content/AbstractContent.php(486): WikitextContent->fillParserOutput(Title, integer, ParserOptions, boolean, ParserOutput)
#26 /var/www/done/includes/jobqueue/jobs/RefreshLinksJob.php(156): AbstractContent->getParserOutput(Title, integer, ParserOptions, boolean)
#27 /var/www/done/includes/jobqueue/jobs/RefreshLinksJob.php(93): RefreshLinksJob->runForTitle(Title)
#28 /var/www/done/maintenance/runJobs.php(108): RefreshLinksJob->run()
#29 /var/www/done/maintenance/doMaintenance.php(109): RunJobs->execute()
#30 /var/www/done/maintenance/runJobs.php(280): require_once(string)
#31 {main}

2.110.98.101 (talk) 21:07, 6 August 2014 (UTC)

Okey. The problem was that I didnt add "extension=luasandbox.so" to /etc/php5/cli/php.ini - from the old conf I see that I didnt have to do that with debian, apache 2.2 and php 5.4, but the with the new version (apache 2.4, php 5.6RC3) I have to do it...
It should be added to Extension:Scribunto 2.110.98.101 11:24, 7 August 2014 (UTC)
It's already covered in Extension:Scribunto#php.ini Ciencia Al Poder (talk) 17:22, 7 August 2014 (UTC)
I added it myself. Should have mentioned it here too. 2.110.98.101 14:34, 8 August 2014 (UTC)

urgunt help about URL

Hi All sorry my question may be funny, But I need your helps.

I have installed mediawiki in one of the servers of the company that i work obviously it is in localhost of that server, now I want to know the URL I should use to access that mediawiki from our internal LAN.

Would you please help me ?

Cheers Pamela Pamela alaee (talk) 02:57, 7 August 2014 (UTC)

Already covered in http://lists.wikimedia.org/pipermail/mediawiki-l/2014-August/043180.html I'd say AKlapper (WMF) (talk) 09:40, 7 August 2014 (UTC)
You should ask your network administrator. Remember to change Manual:$wgServer so it contains the hostname or IP address accessible from the LAN and not 'localhost' Ciencia Al Poder (talk) 09:55, 7 August 2014 (UTC)

Global deactivation to view old article versions (oldid ) for user

Hello,


we want to disable a (core) feature of MediaWiki: We do not want to display old versions of articles to users. Is there a user right / global variable to change this? We also want to remove the permalink (not just hide by css).

Remark: Other approaches we tried, but they are somehow dirty and I don't know if this got critical effects for admin operations:

- remove parameters form url by .htaccess (rewrite rules)

OR

- unset parameter by php ( unset($_GET["oldid"]) )


Best 85.180.151.157 (talk) 12:17, 7 August 2014 (UTC)

You will be unable to see old versions after you used the maintenance script Manual:deleteOldRevisions.php! 88.130.81.181 13:53, 7 August 2014 (UTC)
Thanks for your answer.
I think I forgot to mention that we want:
1. We want the old version still to exist for backup reasons.
2. No reference error (which is shown when oldid does not exist) [Maybe this can be skipped]
As far as I understand the script will delete the revisions and the link to not existing versions (oldid) will cause a message "Version does not exist". Both we did not want, 1. is a must have, 2. would be nice to have.
Remark: I know it sounds a bit crazy wanting to disable these core features.
Best,
Oliver 85.180.150.105 08:55, 8 August 2014 (UTC)
I think this is technically impossible: Having old revisions, being able to link to them and to compare them is built so deeply into MediaWiki that there will always be a possibility to show old revisions. There are just too many ways and places to get this information. 88.130.81.181 09:38, 8 August 2014 (UTC)
Best you can do for this purpose is doing Manual:RevisionDelete, but that would require you (or any user with deleterevision permission) to manually review every new edit to delete old revisions. Ciencia Al Poder (talk) 09:46, 8 August 2014 (UTC)
I already pointed out that he could delete revisions, but he doesn't want to do that but prefers keeping them. ;-) 88.130.81.181 10:57, 8 August 2014 (UTC)
Note that Manual:RevisionDelete deletes revisions in a recoverable way, something that Manual:deleteOldRevisions.php does not! Ciencia Al Poder (talk) 17:16, 8 August 2014 (UTC)
Ah, this functionality in fact does not delete, it only suppresses. What a misleading name! Still: If used, manual intervention will be needed for every single revision - that can be quite a lot of work! 88.130.114.157 18:28, 8 August 2014 (UTC)

Incorrect password at log (LDAP)

This post by Revibot was moved on 2015-07-11. You can find it at Extension talk:LDAP Authentication/2014#h-Incorrect_password_at_log_(LDAP)-2014-08-07T13:39:00.000Z. Florianschmidtwelzow (talk) 14:14, 7 August 2014 (UTC)

Going MariaDB

From what I have heard an read so far it does not seem to create issues to move over from MySQL. However, there is a question I have not found a direct information on: MariaDB uses XtraDB instead of InnoDB though the latter is possible, too. I think I have read that WMF is still using InnoDB so one should continue to run the databases with this one? If not $wgDBTableOptions should probably hold $wgDBTableOptions = "ENGINE=XtraDB, DEFAULT CHARSET=binary";. [[kgh]] (talk) 16:33, 7 August 2014 (UTC)

[RESOLVED] Category name

I used MediaWiki 1.24wmf16 (e0809af) and tried to make [[:Category:#Muhboot (ship, 1930)]] No error reported, but the category cannot be seen. Temporarily solved by creating Category:Muhboot (ship, 1930). Is it not possible to use the # in category names?

https://commons.wikimedia.org/wiki/User:Stunteltje Stunteltje (talk) 19:42, 7 August 2014 (UTC)

"#" are reserved for URL's to go to an anchor, so the Category name would be https://commons.wikimedia.org/wiki/Category:#Muhboot (ship, 1930) which menas no category name and a section "Muhboot (ship, 1930)". This is impossible. So please don't use # in namens :) Florianschmidtwelzow (talk) 20:22, 7 August 2014 (UTC)
Clear. Thanks. User:Stunteltje Stunteltje (talk) 13:12, 9 August 2014 (UTC)

Edit/page add approval and SPAM?

My wiki home page was spammed and someone changed the home page to a spammy message. Is there a way to prohibit changes until approved?

Also, since I set up Mediawiki I started receiving spam emails to the email I used to set it up. Any way to avoid this? If not I may have to remove the wiki from my site. Mpjbay (talk) 21:03, 7 August 2014 (UTC)

Yes, you can use Extension:FlaggedRevs for that.
For the emails you can try setting this in LocalSettings.php:
$wgGroupPermissions['*']['sendemail'] = false;
Please respond, if this prevents users from sending emails via Special:EmailUser!
You will also be interested in the page combating spam! E.g. you can protect important pages or disallow IPs from editing or or or... 88.130.81.181 22:10, 7 August 2014 (UTC)
Point one: Semi-protect the main page or protect to allow edit's only by administrators. Other way is to prevent Spam with several Spam extensions, for this see this Manual.
Point two: Why you should recieve Spam, when you install a sofware on your own server? I think either your E-Mailadress was inserted in a spam list by another way, or you published your address in one of the wiki page :) Florianschmidtwelzow (talk) 22:10, 7 August 2014 (UTC)
Thank you for your reply. I will have a look at your tips. Regarding your question re: SPAM, I did not enter my email address anywhere on the website which is why I am a bit confused why spam started showing in my inbox a few days after I installed the wiki... Mpjbay (talk) 02:45, 8 August 2014 (UTC)
Most likely that is the misconception that two events, which coincide temporarily must also be causally determined by each other. However, this is not the case. A classical Cum hoc ergo propter hoc. 88.130.81.181 09:43, 8 August 2014 (UTC)

Mediawiki images not uploading

I use PHP,and MySQL5.5.and the latest version of mediawiki. I recently uploaded my Mediawiki online. After the upload, some of my extensions stopped working. And most importantly,I cant upload images to the wiki.I will like to fix the image upload. I get the error

"could not create directory" Oluphilips (talk) 21:10, 7 August 2014 (UTC)
Has the user running the webserver writeaccess to the directory where the images should be saved (normally images/)? I think no ;) Florianschmidtwelzow (talk) 22:07, 7 August 2014 (UTC)
Could you elaborate about your upgrade process? What steps followed to upgrade your wiki? Did you follow Manual:Upgrading? Did you upgraded your extensions to match the version of MediaWiki you've installed? Ciencia Al Poder (talk) 09:38, 8 August 2014 (UTC)

admin account blocked

I accidentaly blocked my admin user. is there a way to unblocke it ? Thank you! 188.26.95.207 (talk) 21:43, 7 August 2014 (UTC)

According to Manual:User_rights you can set this in LocalSettings.php:
$wgGroupPermissions['sysop']['unblockself'] = true;
According to the aforementioned page this allows you "unblock yourself, if blocked by another administrator". However, it would be only logical, if you could also unblock yourself, if you blocked yourself.
Does that work?
If so, the text on unblockself at Manual:User_rights should be fixed accordingly! 88.130.81.181 22:01, 7 August 2014 (UTC)
Sure, with another Administrator account, or simply delete the block from the table ipblocks in your database. Or, as an alternative, create a new user and give the user group the ability to unblock user (unrecommended, because so everybody has (for a limited time) the chance to unblock users). Florianschmidtwelzow (talk) 22:03, 7 August 2014 (UTC)
Hmm, in addtion to the reply of 88.130.81.181: I don't know, if this works, but be happy if so :) Hope for a reply of 188.26.95.207 :) Florianschmidtwelzow (talk) 22:05, 7 August 2014 (UTC)

Wiki migration from Debian 7 to Ubuntu 14.04 had strange effect

Hello,

I recently had to move our local wiki (Mediawiki 1.22.8) from Debian 7 to Ubuntu 14.04. I'm using Nginx on both systems and simply moved the database as well as the entire wiki directory to the new server, added the vhost configuration file to nginx and was happy to see everything working. Users can access the wiki via https and they can edit articles just fine BUT:

I then realized accessing the File upload link leads to a 502 Bad Gateway error, then I realized the same is true for the Special pages ( /index.php?title=Spezial:Spezialseiten ) link it also produces a 502 Bad Gateway error

Nginx error log says this in these cases:

2014/08/08 21:19:35 [error] 10406#0: *5 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: ........

I'm unsure what might be causing this, since the nginx<->php5-fpm connection is working fine when editing pages and I dont see any errors in php5-fpm.log

Changes from Debian 7 to Ubuntu 14.04 involved: Nginx: 1.2.1 -> 1.4.6 PHP: 5.4.4 -> 5.5.9 MySQL: 5.5.38 -> 5.5.38

Has anybody encountered something similar or has an idea what might be causing this behaviour?

Thanks for any hints 87.172.202.172 (talk) 20:16, 8 August 2014 (UTC)

I sadly cannot help, but I am seeing the same error on an Apache server. Happens "from time to time"; I cannot say how to reproduce it and that is why I could not solve this in any way. Until now... 88.130.114.157 20:31, 8 August 2014 (UTC)
Ok it's me again. Since nobody seemed to have any idea where the cause is, it did what I had planned anyway: I upgraded mediawiki to the latest release. My first step was to upgrade from 1.22.8 to 1.22.9 which did NOT fix the 502 bad gateway error. So I then upgraded from 1.22.9 to 1.23.2 and VOILA -> NO bad gateway error and the special pages link as well as the file upload are now working. I made no other changes except for the upgrade.
Maybe this experience helps somebody else... 87.172.247.225 04:34, 9 August 2014 (UTC)
I had this error with more or less every old version before. I am currently running MediaWiki 1.23.2 and for me an update does not solve it. 88.130.114.157 11:23, 9 August 2014 (UTC)
That seems to be a segfault, which indicates a PHP bug. Some sort of combination of PHP code of MediaWiki that causes random or consistent segfaults. Ciencia Al Poder (talk) 09:40, 11 August 2014 (UTC)

Is Infobox possible without proc_open?

Hello, I'm a complete wiki noob so please be patient with me :)

I have set up a wiki on my website and wanted to get me some nice infoboxes. After following all the necessary steps of the extension installation and importing, everything seemed fine. However, after my first attempt, I got a script error saying (roughly translated) "Lua error. Unable to create process, proc_open unavailable. Check disable_functions in PHP settings"

Having a hosted server, I contacted my provider and they said that they can't enable proc_open for security reasons.

So, the question is: Is there a way to get infoboxes without having the proc_open function enabled?

Many thanks in advance! 78.102.228.90 (talk) 23:42, 8 August 2014 (UTC)

Sorry for posting this twice, I have no idea how it happened... 78.102.228.90 23:44, 8 August 2014 (UTC)
Yes, by using plain wiki syntax, not Lua modules (Extension:Scribunto).
See Help:Templates. If you're using templates from Wikipedia, you may need to use older versions of those templates. Ciencia Al Poder (talk) 09:34, 11 August 2014 (UTC)

Controlling how a page's Categories appear on the page

When I go to Wikipedia or this wiki, the list of categories at the bottom of a page is in a single line. For example:

Categories: Foo | Bar | Baz

But on my own mediawiki, categories appear as a bulleted list:

Categories: 
* Foo 
* Bar
* Baz

I would much prefer the single-line display style. The bulleted format doesn't work for me. How do I get single-line category display?

I assume it's related to the wiki skin and/or modifying the CSS, but I can't figure out where to change this, or what to search for. I notice that the Vector skin puts the categories in a single line, but I don't want to use Vector.

How do I accomplish single-line category display? Thanks! 97.116.45.55 (talk) 15:11, 9 August 2014 (UTC)

Hi!
I don't know which styles your skin is using, but in Vector the category list is also rendered as an unordered list - in ul and li tags. So the HTML code most likely is the same - it's most probably only the CSS you need to adjust. Use a tool like Firebug to check! You might want to display the links without list-style and inline and with a pipe between them to mimic how it looks like in Vector. 88.130.96.32 16:47, 9 August 2014 (UTC)
I'd guessed it was only the CSS I'd need to check, and I used the Firefox Developer Console to check what the "category" list is in the HTML; it seems to be "catlinks", but I couldn't figure out what would change that, since my (self-made, Mono-based) skin didn't have any variables that seemed to affect list item display.
But you inspired me -- I checked the 'common' skin directory, and the shared.css file, which seems to have all the catlinks CSS in it. I copied and pasted the relevant lines into my self-made skin, and categories now display inline.
No idea what was changing the inherited CSS, though -- seems like there's nothing in the skin itself that should deactivate the shared.css parameters.
However, now that I've changed the CSS to have all the "list-style: none;" and "display: inline-block;", the left menu bar items (Main Page, Special Pages, etc.) all appear below the main content block. So apparently these are all affected by the catlinks style? Somewhere, the "display: block" styles aren't playing nicely with each other... but I can't figure out where. Is it going to be easier to hunt through all my skin's CSS, or try to come up with a new one based on Vector? 97.116.45.55 00:12, 10 August 2014 (UTC)
Apparently, modifying Vector is going to require a lot of mucking around in PHP, which I understand even less well than I get CSS. But when I modify MonoBook to create a skin, the result ends up looking exactly the same as MonoBook, regardless of what I change. Somewhere I'm not actually activating the skin, but I don't know where. Steps I've tried:
  • Choose the skin in Preferences > Appearance. Doesn't make a difference.
  • Add require_once "$IP/skins/CalteirBook.php"; to LocalSettings.php. Tried this, still doesn't make a difference. (And contradictory to this page, trying $IP/skins/calteirbook/CalteirBook.php instead makes the wiki blank, since that isn't normally where the .php files are stored.) This makes the skin the default, but the CSS changes for the skin are not displaying.
  • Trying to change various MonoBook or monobook mentions in the .php file doesn't seem to make my preferred CSS work. (And I'm still not clear exactly which ones to change -- there aren't many tutorials on the web that clearly explain what to change or why.)
  • I've of course made significant changes to the CSS file, but these aren't reflected in the resulting webpage.
Is there a way to fix all this? I'm getting really confused. 97.116.45.55 07:30, 10 August 2014 (UTC)
You can style only the category links, if you prepend your CSS rules with ".catlinks" like so:
.catlinks ul {
list-style-type: none;
/* ... */
}
.catlinks ul li {
/* styling for the single items */
}
The easiest solution will be to edit the wiki page MediaWiki:Skinname.css in your wiki, where "Skinname" is the name of your skin, e.g. "Vector". on this page you can put skin-specific CSS rules, which will only influence this one skin. 88.130.96.32 09:20, 10 August 2014 (UTC)
Thank you! I hadn't realized that those pages (MediaWiki:Skinname.css) existed. This has worked brilliantly. I've now got the wiki mostly themed correctly.
Can you tell me, by any chance, where to set the background-color for infobox th headers? I have almost everything set to use either #d7d0c2 or #d2b48c, but for some reason, infobox headers are persistently showing up with a white background and I can't figure out how to change this. 97.116.45.55 20:29, 10 August 2014 (UTC)
Depends on the infobox. :-) Maybe it uses some default styles, which are provided by MediaWiki. If it's created with some template, then it's also possible that inside the template some classes are set. Also could it be possible that the exact colors are directly hardcoded inside the template (like style="color: white;"). You will be able to find out using a tool like e.g. Firebug or similar. 88.130.68.167 20:41, 10 August 2014 (UTC)
I haven't changed the default styles for infoboxes, I think.
After using the Firefox Web Inspector tool, I tried a couple addition things -- ended up having to define the style for table.wikitable tbody tr th, table.wikitable tbody tr and table.wikitable tbody -- whew! Would be nice if these things cascaded a little more easily. And even now, some cells (presumably without data in them) are still showing up as blank white. Not sure how to fix those. But at least I got most tables formatted correctly.
Anyway, thanks! 97.116.116.221 06:51, 14 August 2014 (UTC)

Problem after modify server

Hi !

I have move my wiki on an other server... and after this transfert and the modification of the mysql configuration, there errors diplays :

Strict Standards: Declaration of addHTMLclass::singleton() should be compatible with & ExtensionClass::singleton($mwlist = NULL, $globalObjName = NULL, $passingStyle = self::mw_style, $depth = 1, $initFirst = false) in /home/tudex/public_html/wiki/extensions/addHTML.php on line 125

Warning: Cannot modify header information - headers already sent by (output started at /home/tudex/public_html/wiki/extensions/addHTML.php:125) in /home/tudex/public_html/wiki/includes/WebResponse.php on line 38

Warning: Cannot modify header information - headers already sent by (output started at /home/tudex/public_html/wiki/extensions/addHTML.php:125) in /home/tudex/public_html/wiki/includes/WebResponse.php on line 38

Warning: Cannot modify header information - headers already sent by (output started at /home/tudex/public_html/wiki/extensions/addHTML.php:125) in /home/tudex/public_html/wiki/includes/WebResponse.php on line 38

Warning: Cannot modify header information - headers already sent by (output started at /home/tudex/public_html/wiki/extensions/addHTML.php:125) in /home/tudex/public_html/wiki/includes/WebResponse.php on line 38

Warning: Cannot modify header information - headers already sent by (output started at /home/tudex/public_html/wiki/extensions/addHTML.php:125) in /home/tudex/public_html/wiki/includes/WebResponse.php on line 38

Warning: Cannot modify header information - headers already sent by (output started at /home/tudex/public_html/wiki/extensions/addHTML.php:125) in /home/tudex/public_html/wiki/includes/WebResponse.php on line 38

Warning: Cannot modify header information - headers already sent by (output started at /home/tudex/public_html/wiki/extensions/addHTML.php:125) in /home/tudex/public_html/wiki/includes/WebResponse.php on line 38



Link of my wiki : http://wiki.tudexhost.com/

Thank's for your help ! 90.4.21.56 (talk) 19:42, 9 August 2014 (UTC)

Hi!
Of all these notices the only real error is this one:
Strict Standards: Declaration of addHTMLclass::singleton() should be compatible with & ExtensionClass::singleton($mwlist = NULL, $globalObjName = NULL, $passingStyle = self::mw_style, $depth = 1, $initFirst = false) in /home/tudex/public_html/wiki/extensions/addHTML.php on line 125
Solving this will most likely solve all following as well.
addHTMLclass::singleton() has different arguments, or a different access level (public/private/protected) than ExtensionClass::singleton().
You could fix this by fixing these things in addHTML.php (in this will solve the issue), but you should better check, if you really want to use this extension and if there is not a better possibility. See Extension:AddHTML for more information! 88.130.96.32 20:10, 9 August 2014 (UTC)
Or just disable error reporting for strict standards errors, which are only intended for developers and not on production. See [1] Ciencia Al Poder (talk) 09:42, 11 August 2014 (UTC)

Error running the update script

So I'm not the most savvy person when it comes to this sort of stuff, but I've made due in the past. But when things go wrong, I typically am at a loss. Case in point:

I've got a wiki http://mafia-town.net/wiki/index.php?title=Main_Page PHP version 5.4.31 MySQL version 5.5.37-cll

Now, I installed this wiki about two years ago at version 1.20.6, using Softaculous via my cpanel. When a new update came out for my MediaWiki installation shortly thereafter, I went to Softaculous to update. I ran the updater, and was prompted to navigate to run the update script. I selected my language, and hit next... and the screen went white. There was no option to proceed with the update. My entire wiki was unresponsive, too. All empty white pages, no content, no titles, no logo, no nothing. (Much like it is at this moment, if you navigate to my wiki right now).

At the time, I just restored my backup and opted not to really do anything about it. I looked into it a bit, but never could figure it out, so I just kept an outdated version for a while. That is until now...

Suddenly, the content of my wiki went missing. The pages were still there, the titles were still there, but no content. When I click to edit a page, the content shows up ready to edit. I googled my issue and found: http://www.mediawiki.org/wiki/Manual:Errors_and_symptoms#You_see_a_Blank_Page (In the section called "All pages have no content, but when editing a page the wiki text is there.") The fix? Update your wiki!

However, the same issue occured. I again restored a backup and tried to perform an update manually (as per http://www.mediawiki.org/wiki/Upgrade). I downloaded the files, uploaded them to my server, unzipped them, added the files from the old install it says I need to move, renamed it to the old pathway name, and went to run the update script. Aaannndd... white pages. Everywhere. I can't seem to run an updater at all.

The recommendation to rename .htaccess seems to be a different issue. So my question is can you help little old me fix this and update my wiki so that we have content on it again?

-Shawn 174.30.7.246 (talk) 19:46, 9 August 2014 (UTC)

Hi!
First: On single step might not be enough to solve this problem. It might be that you need to do several steps until this problem is solved.
At the point when everything is there, only the content seems to be missing, but when you click "edit" you can see it, this points to a version of PCRE on the new server, with which your MediaWiki version is not compatible. This problem is solved in the current version of the 1.22 branch and in 1.23.2. Updating MediaWiki is the solution for that problem.
A blank page (which you see when you updated) points to a PHP error. Activate error reporting by adding these two lines to LocalSettings.php
error_reporting( E_ALL );
ini_set( 'display_errors', 1 );
and view the updater again... Which is the error message/are the error messages, which you get? 88.130.96.32 20:28, 9 August 2014 (UTC)
Unless I am doing something very wrong here... there are no error messages. I added the lines to the bottom of my LocalSettings.php file, saved it, and navigated again to my http://mafia-town.net/wiki/mw-config/ page. It's blank, white, nothingness. I see no error messages. 174.30.7.246 21:04, 9 August 2014 (UTC)
It's unclear to me which exact MediaWiki version you upgrade to, and which PCRE version is on your system. AKlapper (WMF) (talk) 16:03, 10 August 2014 (UTC)
I'm trying to upgrade to the latest stable release (1.23.2).
I don't know what PCRE is, if I'm honest. I believe my Perl version 5.8.8. 128.223.223.233 19:03, 11 August 2014 (UTC)
PCRE stands for Perl Compatible Regular Expressions.
I just downloaded the program, but where to place it on the wiki. Nsgaeverine (talk) 21:41, 31 August 2014 (UTC)
PCRE is a library, which is usually part of your system (on Linux at least). PHP is compiled with links to that library. To install a different version of PCRE you should usually install it (read installation instructions of that library) and then recompile PHP.
But usually you won't need that, and just upgrade your MediaWiki, or apply the patch that solved that problem. Ciencia Al Poder (talk) 09:31, 1 September 2014 (UTC)
Adding that code won't help if the error is happening in the mw-config directory, since it doesn't load LocalSettings.php.
You should set up them on php.ini. If you can't edit that file, you might try to change them in .htacess [2].
Even when error reporting is disabled, those fatal errors are usually logged in the apache error_log. Check your cpanel for any sort of "error logs" to see if you get a descriptive error there. Ciencia Al Poder (talk) 09:28, 12 August 2014 (UTC)
you...are overestimating my capabilities, I think.
I can found both my php.in and .htaccess files, and found I can edit them both. I'm not sure what you'd have me do with them. They both are practically empty.
I added the code suggested to me above into the files
error_reporting( E_ALL );
ini_set( 'display_errors', 1 );
That...did not work. So I removed it.
As for error logs, it's empty. I tried to access the updater again, and checked back at the log and it still didn't have anything other than the errors from me adding that code to those files.
-Shawn 174.30.2.215 02:36, 17 August 2014 (UTC)
From Manual:How to debug:
For php.ini:
error_reporting = E_ALL
display_errors = On
For .htaccess [3]:
php_value error_reporting -1
php_flag display_errors On Ciencia Al Poder (talk) 14:37, 20 August 2014 (UTC)
Thank you.
I edited that into the php.ini file and saved it. I ran the updater again. It's still white and empty. I see no error messages. 174.30.0.4 21:35, 20 August 2014 (UTC)
Have you restarted your webserver? Florianschmidtwelzow (talk) 07:14, 21 August 2014 (UTC)
"Restarting my webserver" is not something I know how to do. I googled it... and honestly I still don't know how to do it.
I did contact my host, however. They were able to confirm there is an issue. But they don't know what it is. This is what they did say:
"I have looked into this a bit and I see that your php.ini file is custom and incomplete. I have updated your php.ini file to see if that would fix the issue but there is still a white screen problem. In the php.ini file I have turned on display_error so that if there was any php errors they would display instead of the white screen but no errors are displaying so I do not think that this is a php issue. I have checked the server and there does not appear to be any server problems that would cause this issue for you. This appears to be an issue with 3rd party software which is not something that we have Support for."
Does anyone have any idea? 174.30.5.221 07:28, 25 August 2014 (UTC)
Sorry, i have to ask this: Did he really mean "display_error"? If so, please try the correct one "display_erros" :) Florianschmidtwelzow (talk) 08:03, 25 August 2014 (UTC)
I went ahead and looked and the php.in file. A search for the term "erros" turned up no results in the document, but I did find this:
display_errors = On
Which I changed to this:
display_erros = On
I ran the updater again and nothing new happened. 174.30.5.221 19:12, 25 August 2014 (UTC)
Argh, that's my fault :/ "display_errors" was correct... Florianschmidtwelzow (talk) 05:51, 26 August 2014 (UTC)
Try also setting:
display_startup_errors = On Ciencia Al Poder (talk) 09:59, 26 August 2014 (UTC)
Still nothing...
Let me ask this. While I'm happy to try everything you guys suggest, could there be a different option? What if I uninstall MediaWiki and then install the latest version? Would all the content and users be retained? 174.30.5.221 22:49, 26 August 2014 (UTC)
Reading through what you've said so far, you said you installed MediaWiki originally from some control panel on your web host? I wouldn't suggest uninstalling it from there since it might delete the databases. I don't know but I can't be certain. If you have access to FTP on your server, try to log into that. You should be able to download the latest tarball version of MediaWiki from the main page, extract it, and replace the contents of your server's MediaWiki directory with the new version you download. Make sure you keep the LocalSettings.php file on your server though! This isn't guaranteed to work, so I wouldn't suggest doing it if you don't want to take a risk. It's kind of an inefficient way to update MediaWiki, but it is a way to update it. GeorgeBarnick (talk) 22:58, 26 August 2014 (UTC)
So I installed MediaWiki using Softaculous, an option given to me through my cpanel. When you uninstall software, it does give you an option to keep the directory in the database.
I do have access to my FTP through my server. I believe that what you suggested is how I tried to update it the second time (the first time being using Softaculous's autoinstaller). I kept my LocalSetting.php file and extracted the new files into my server's MediaWiki directory, overwriting old files.
Regardless of what method I use, I encounter the same problem when I get to the updater. The first page of the updater worked fine (I was able to select my language). After that page, the updater, and the entire wiki, are blank white pages.
-Shawn 184.3.55.100 15:44, 31 August 2014 (UTC)

DynamicPageList within template

I'm using MediaWiki 1.23.2. I want to include a DynamicPageList within a template like so:

<DynamicPageList>
category             = {{{1}}}
count                = 20
offset               = 0
order                = ascending
ordermethod           = sortkey
addfirstcategorydate = false
</DynamicPageList>

And then supply the category ({{template_dpl|SomeCategory}}) when the template is included somewhere else, however when I try to do that, it just prints "Error: You need to include at least one category, or specify a namespace!".

I've checked the source code for the dynamic page list and it seems that {{{1}}} doesn't get translated to the actual parameter properly. Is there a way to change that? Silverlan (talk) 20:59, 9 August 2014 (UTC)

Parameter substitution doesn't work inside parser tags. You should use the {{#tag: }} parser function syntax to make it work:
{{#tag:DynamicPageList|
category             = {{{1}}}
count                = 20
offset               = 0
order                = ascending
ordermethod           = sortkey
addfirstcategorydate = false
}}
Ciencia Al Poder (talk) 09:46, 11 August 2014 (UTC)

[RESOLVED] thumbnails not working and group permissions in LocalSettings don't have any effect after migration from MAMP to Ubuntu 14.04 LTS

Hi,

I recently migrated my mediawiki-installation from a local MAMP version to a Ubuntu Server 14.04 LTS. After some minor problems, almost everything works fine. I can view and edit pages, see all the content, upload files, etc. Only problem I'm encountering so far is the missing thumbnails, which cannot be created because they cannot be created in that folder.. I found some old threads from 2012 but changing the concerning lines in LocalSettings.php or GlobalSettings.php didn't help,

I also tried setting up Userpermissions in LocalSettings.php (at the bottom), but they don't have any effect on my wiki. E.g *** $wgGroupPermissions['*']['edit'] = false; *** should deny making changes for anybody, but even without logging in, I can easily alter pages.

Now I think that somehow my migrations screwed up permissions on both, the temp directory for thumbnails (existing thumbnails from before the migration still work!) and/or my LocalSettings.php. In both cases, 'www-data' has read-write permissions and after hours of trying I just don't know where to go on..

Thanks a lot in advance

mediawiki version is 1.23.1, php 5.5.9-1ubuntu4.3, mysql 5.5.38-0ubuntu0.14.04.1 87.138.76.175 (talk) 10:08, 11 August 2014 (UTC)

Hello!
For the first problem:
Please make really sure, that the webserver can write and create folders/files into your images folder (just to be clear at this point). Second is to make sure you followed this manual. Is ImageMagick or GD library installed and configured in your LocalSettings.php correctly?
For the second: Is it possible, that somewhere in your LocalSettings.php is set $wgGroupPermissions['*']['edit'] = true;? Florianschmidtwelzow (talk) 10:57, 11 August 2014 (UTC)
Hi Florian,
thanks for your quick reply
1)
www-data is owner of the images folder and subfolders, so the webserver is supposed to have read-write permissions. As I said, uploading works fine, it's just the thumbnails I can't get to work anymore
drwxr-xr-x 20 www-data www-data 4096 Aug 8 15:32 images
ImageMagick is installed correctly (version 6.7.7.10) and I use the following commands in LocalSettings.php:
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";
$wgTmpDirectory = ini_get('upload_tmp_dir');
I'm not totally sure about the last one, some use this line, others use $wgTmpDirectory = "$IP/images/temp"; both didn't work for me
2) No, I just had a look. The only entry is at the bottom and for testing purposes is $wgGroupPermissions['*']['edit'] = false;
Furthermore I tried changing the logo URL path back to its original state, but that doesn't work either, so there has to be something wrong with my LocalSettings.php...
Best wishes,
Ludwig 87.138.76.175 11:22, 11 August 2014 (UTC)
I'm so sorry, I just figured out what my problem was..
I accidently copied my MW-installation both in /var/www and /var/www/html, thus I was editing the "wrong" LocalSetting.php the whole time, so no wonder why I got no effects...
After correcting this (removing the installation from /var/www), changes in LocalSettings.php worked fine.
The problem with the not-working thumbnails was a line in LocalSettings.php:
$wgTmpDirectory = "$IP/images/temp"; is correct!
$wgTmpDirectory = ini_get('upload_tmp_dir'); did not work for me!
Thanks and sorry 87.138.76.175 15:47, 11 August 2014 (UTC)
No problem, thanks for give feedback what the solution was :) Florianschmidtwelzow (talk) 21:30, 12 August 2014 (UTC)

Hello,

I try to customise my print layout to have a logo on the top right, the date of last modification on the bottom left and maybe a revision number (if possible). I'm trying to have all this on every page that are printed. I have been struggling for a while with print.css but I can't manage to get a header on all printed pages..

Can anyone shed some light please?


I'm using Mediawiki 1.23.2. Skin: Vector

pivic 193.63.131.137 (talk) 11:19, 11 August 2014 (UTC)

Hello!
I think this can help you: https://www.mediawiki.org/wiki/Manual:Skinning#Print_mode
That means: Every element on the normal skin will be printed, unless they have the css class "noprint". Florianschmidtwelzow (talk) 21:29, 12 August 2014 (UTC)
Hello,
Thanks for your reply.
I have been changing the print.css that overrides the stylesheet of mediawiki. Doing so allows me to show/hide different element of what is on the screen and change the layout/font etc.
What I have been trying to achieve for a while is to create customised header/footer. The information is currently not on the screen but I want it to be printed on every page. Like what Chrome automatically does by adding date, url, page number... etc...
I want to deactivate the header/footer of chrome and have my own personal information instead, repeated on all pages. Page number, Logo, last time edited and company name.
Maybe by creating new classes that would only be "printonly"?
Is it even possible to achieve using CSS?
Thanks,
pivic 109.144.213.252 16:23, 15 August 2014 (UTC)
> Is it even possible to achieve using CSS?
No, and i would say: Not with the "normal" MediaWiki skins. Unfortunately actually have no idea, how to reach this :/ Florianschmidtwelzow (talk) 21:15, 16 August 2014 (UTC)
Thanks for your reply. I have been looking everywhere and I can't find a solution by modifying the mediawiki.... The only thing I found to achieve what I want is to create my own render server by installing mwlib... Unfortunately I can't get it to work.... I'm surprised that mediawiki doesn't have a way to fully customize a print. Businesses would be very keen to have such feature! 109.144.233.226 09:34, 23 August 2014 (UTC)

math extension not working after update to version 1.23.2

I get the following error when trying to display a page with math

Call to undefined method ParserOptions::getMath() in /home/.../extensions/Math/Math.hooks.php on line 49

This is not a public wiki, so I am unable to post the entire URL 173.166.161.74 (talk) 15:32, 11 August 2014 (UTC)

Hi!
The math extension is not coming with MediaWiki by default; you will have to update it manually. See Extension:Math! 88.130.72.127 16:06, 11 August 2014 (UTC)

[RESOLVED] Database error after installing latest version of Mediawiki

Have just installed v.1.23.2 and imported a backed up database through phpMyAdmin. Also copied backed up images folder into new mediawiki folder. PhP is version 5.5.11, mySQL v.5.6.16. The original database and LocalSettings file were produced on mediawiki v.1.16. I have not copied the orginal local settings file over; instead I used the new LocalSettings file produced during new installation of 1.23. I am operating this on a localhost only. I now get the following error message:

A database query error has occurred. This may indicate a bug in the software.

   Query:
   SELECT page_id,page_namespace,page_title,page_restrictions,page_counter,page_is_redirect,page_is_new,page_random,page_touched,page_links_updated,page_latest,page_len,page_content_model FROM `mw_page` WHERE page_namespace = '0' AND page_title = 'Main_Page' LIMIT 1
   Function: WikiPage::pageData
   Error: 1054 Unknown column 'page_links_updated' in 'field list' (localhost)

Can anyone help me where I shoule start to look to solve the problem. 91.125.136.241 (talk) 17:10, 11 August 2014 (UTC)

When updating MediaWiki, please always follow the official Upgrade Guide! Additionally to the steps you did you e.g. willhave to update the database... ;-) 88.130.72.127 17:27, 11 August 2014 (UTC)
Okay I have tried following the update guide, however I can't find anything on how to update the database. I ran update.php from the command prompt and received no messages. Where do I go from here? 91.125.136.241 22:27, 11 August 2014 (UTC)
Do you mean that you ran php update.php and you received no output? That's a PHP error, then.
You should try the web updater (see Upgrade#Web_browser) Ciencia Al Poder (talk) 09:32, 12 August 2014 (UTC)
I think I ran update.php! Under the maintenance directory in the command prompt I typed update.php and nothing happened except that the php file opened up. What am I supposed to do next? Thanks. 91.125.136.241 11:10, 12 August 2014 (UTC)
What you did exactly?
Just typing update.php shouldn't do nothing on linux at least, since the file isn't executable. And it shouldn't do anything on windows neither, at least from the command prompt.
Be sure to call it after the php executable. Ciencia Al Poder (talk) 17:24, 12 August 2014 (UTC)
I am operating windows 7 on my computer. Could you please explain what I need to do at the command prompt to run update.php, for example what does "call it after the php executable" mean? I am not computer savvy so please make the instructions very simple - no computer language! Thanks. 91.125.136.241 08:04, 13 August 2014 (UTC)
You need first to locate the PHP command line program on your computer. It should be called php.exe but I'm not on your computer so I have no idea of where it may be (C:\ProgramFiles\PHP may be a good point to start looking at)
Then,
  1. open a command prompt
  2. go to the maintenance directory with the command prompt
    • CD "C:\Path\to\mediawiki\maintenance"
    (assuming C:\Path\to\mediawiki\maintenance is the maintenance directory under your mediawiki installation)
  3. run php, passing update.php as the first argument
    • "c:\path\to\php\php.exe" update.php
    (assuming c:\path\to\php\php.exe is the full path to php.exe) Ciencia Al Poder (talk) 09:29, 13 August 2014 (UTC)
Thank you. That has sorted the problem! 80.189.27.168 14:03, 18 August 2014 (UTC)

Updated Red Hat/CentOS install instructions

This post by Revibot was moved on 2015-07-11. You can find it at Project:Village Pump/Flow/2014#h-Updated_Red_Hat/CentOS_install_instructions-2014-08-11T20:47:00.000Z. Ciencia Al Poder (talk) 09:30, 12 August 2014 (UTC)

Could not save a file (Pingus.jpeg) under mwstore://local-backend/local-public/7/7a/Pingus.jpeg

Hello,

i have a problem with my wiki, when i want to upload a file i get an error an german: "Die Datei /tmp/localcopy_7525f865ee81-1.jpg konnte nicht unter mwstore://local-backend/local-public/7/7a/Pingus.jpeg gespeichert werden." In english like this: "Could not save a file (Pingus.jpeg) under mwstore://local-backend/local-public/7/7a/Pingus.jpeg". I dont know what i musst do? Can somebody help me here. Then the wiki loaded this file and i can see it in the logs, but then come: "Fehler beim Erstellen des Vorschaubildes: Datei fehlt" in english: "Error creating thumbnail: File missing". And when i want to upload the file i get a message in my wiki at the header: Here you have a screenshot there you can see it.

I hope somebody can help me.

Thanks! 195.14.235.117 (talk) 13:23, 12 August 2014 (UTC)

Hi!
This usually is a permission problem with the images/ folder.
I think this is the question, which is asked most often here at the support desk!
Do we have a page, where setting up permissions for image upload is explained? This information obviously must be placed/linked more prominently! 88.130.102.170 14:41, 12 August 2014 (UTC)

Lost all content on WikiPage

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hi,

On our website http://www.trueerp.com/wiki/Main_Page

The server was updated and we have lost all the content we had done for last few years. is there a way to get it back? is there any back up for it?

How can we do it?

Please help!? Ofarooq (talk) 07:20, 13 August 2014 (UTC)

Please elaborate what exactly was done when "the server was upgraded" as servers often don't just upgrade themselves out of no reasons. Plus I do see content on http://www.trueerp.com/wiki/Main_Page
With regard to backups, you should generally create backups of data that is relevant. AKlapper (WMF) (talk) 07:57, 13 August 2014 (UTC)
Currently there is no content displayed on the main page. When you click "Edit" however, you see that it in fact is there. No content is lost, everything is still there; you just cannot see it currently.
Currently you are running MediaWiki 1.16(!), which is old, has known security holes and is not compatible with current setups.
Please upgrade MediaWiki to a current version - most likely this will already solve the problem! See Upgrade for the steps to take! 88.130.64.250 11:40, 13 August 2014 (UTC)
I opened that page before, and saw the same as Andre Klapper: content was there. Maybe we saw a cached version.
Besides that, the problem is documented at Manual:Errors and Symptoms#All pages have no content, but when editing a page the wiki text is there Ciencia Al Poder (talk) 18:17, 13 August 2014 (UTC)
I want assistance in this, urgently.
I don't know about this website developing and wiki pages.
If anyone can help me please add me on skype: omer.trueerp
Really need to fix it. Please add i will provide you all details so that you can solve the issue. Ofarooq (talk) 21:39, 13 August 2014 (UTC)
What you have to do is a wiki upgrade. The things to do are all described at Upgrade - should you have any concret question on one of the steps noted there, do not hesitate to ask here! 88.130.64.250 23:46, 13 August 2014 (UTC)
I will explain again what happpen.
Earlier we had Wiki helps, but there was a copy right message was shoing up whenever we use to click Edit. and therefore, could not go forward or edit the content. The message was " Please note that all contributions to TrueERP wiki are considered to be released under the GNU Free Documentation License 1.2 (see TrueERP wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here. You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!"
I hired a webdeveloper, who added the correct link in the folder to wipe this message and able to add content...but now everything has wiped out.
You saying when you hit Edit you can see the content, but I still can't. Please check these pages:
http://www.trueerp.com/wiki/Accounts
http://www.trueerp.com/wiki/Employee
http://www.trueerp.com/wiki/Inventory
In each page there were more additional drop down menus , but can't see a single content now.
Can this all be retrived? I am really in pressure please help me. Ofarooq (talk) 04:37, 14 August 2014 (UTC)
When you go to http://www.trueerp.com/wiki/Employee?debug=true and open the error console of your browser, it says
"TypeError: element.addEventListener is not a function" for /skins/common/wikibits.js so you may want to fix your skin. http://www.mediawiki.org/wiki/Manual:How_to_debug also provides some hints. AKlapper (WMF) (talk) 06:07, 14 August 2014 (UTC)
AKlapper, can you help me sort this issue?
I don't know anything about it. The web developer did some changes and now disappeared and I am in big trouble.
Can you do this, log in my system via teamviewer and we can communciate on skype? Ofarooq (talk) 06:47, 14 August 2014 (UTC)
When we check history we can see the contribution made. but how to get this whole content back? Ofarooq (talk) 07:22, 14 August 2014 (UTC)
I have helped you already a bit by pointing you to debugging information. If you don't know anything about it, you might want to make the web developer appear again and fix his/her stuff. Filename and error message were already provided. AKlapper (WMF) (talk) 09:12, 14 August 2014 (UTC)
Could you please stop running in circles and screaming that you need help, and instead start reading the links and the information we posted?
Seriously, you have all the info to fix your problem. You even didn't edited one of your pages to see that the content is there even if we already told you so, because you keep negating that fact.
If you're unable to read the steps we provide, how talking in skype would help? Go and hire someone to fix that stuff for you! Ciencia Al Poder (talk) 09:20, 14 August 2014 (UTC)
I am taking back up and will try to upgrade!!
Hope this will resolve the issue, when i hit viewsource i can see some content.
Thanks for all the help. Ofarooq (talk) 10:50, 14 August 2014 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Trying to add infoboxes

  • MediaWiki 1.22.3
  • PHP 5.4.29 (cgi-fcgi)
  • MySQL 5.5.37-35.1
  • Lua 5.1.5

Extensions installed

  • Nuke
  • ParserFunctions
  • Scribunto
  • SyntaxHighlight
  • ConfirmEdit
  • SimpleAntiSpam
  • SpamBlacklist
  • WikiEditor

Page http://ourfallen.net/database/index.php?title=Main_Page

I'm following the instructions here. http://trog.qgl.org/20110815/setting-up-infobox-templates-in-mediawiki/ When I entered the css I started getting this error and cannot remove it. Thanks for your help.

[117b7b0e] /database/index.php?title=Main_Page Exception from line 212 of /home2/m2bandit/public_html/database/includes/Hooks.php: Detected bug in an extension! Hook ScribuntoHooks::formatLimitData has invalid call signature; Parameter 2 to ScribuntoHooks::formatLimitData() expected to be a reference, value given

Backtrace:

#0 /home2/m2bandit/public_html/database/includes/GlobalFunctions.php(3877): Hooks::run(string, array)
#1 /home2/m2bandit/public_html/database/includes/parser/Parser.php(545): wfRunHooks(string, array)
#2 /home2/m2bandit/public_html/database/includes/content/WikitextContent.php(300): Parser->parse(string, Title, ParserOptions, boolean, boolean, integer)
#3 /home2/m2bandit/public_html/database/includes/WikiPage.php(3552): WikitextContent->getParserOutput(Title, integer, ParserOptions)
#4 /home2/m2bandit/public_html/database/includes/PoolCounter.php(222): PoolWorkArticleView->doWork()
#5 /home2/m2bandit/public_html/database/includes/Article.php(708): PoolCounterWork->execute()
#6 /home2/m2bandit/public_html/database/includes/actions/ViewAction.php(44): Article->view()
#7 /home2/m2bandit/public_html/database/includes/Wiki.php(448): ViewAction->show()
#8 /home2/m2bandit/public_html/database/includes/Wiki.php(312): MediaWiki->performAction(Article, Title)
#9 /home2/m2bandit/public_html/database/includes/Wiki.php(602): MediaWiki->performRequest()
#10 /home2/m2bandit/public_html/database/includes/Wiki.php(467): MediaWiki->main()
#11 /home2/m2bandit/public_html/database/index.php(49): MediaWiki->run()
#12 {main}

67.172.126.215 (talk) 10:22, 13 August 2014 (UTC)

Your MediaWiki version is 1.22.
Be sure you have downloaded Scribunto for 1.22 and not for 1.23 or latest master. I see you have Scribunto from commit b4b099d (10:28, 22 April 2014) but latest REL1_22 is from 23/10/2013 Ciencia Al Poder (talk) 18:10, 13 August 2014 (UTC)
I'll update but current scribunto says it works for 1.20+ Special:Contributions/Bandit 18:17, 14 August 2014 (UTC)
Eh... that doesn't mean much, and it's usually outdated BTW, nobody checks extensions against new releases to see if they're still compatible. But anyway, the Extension Distributor already says you must select the same version as your MediaWiki, so if you have 1.22, you should download the version for 1.22 Ciencia Al Poder (talk) 18:26, 14 August 2014 (UTC)
I guess my problem was using hostgators install program because it's outdated. Tried updating and now I get this...
A database query error has occurred. This may indicate a bug in the software. Bandit 05:45, 15 August 2014 (UTC)
Did you Manual:Upgrading#Run the update script? Ciencia Al Poder (talk) 14:12, 20 August 2014 (UTC)

[RESOLVED] Mainpage including a template does not update after editing and saving the template

Hi,

I am using a template like {{template:test_temp}} in a main page

If I edit the template page and saving this page after that the template shows the changes. Then I click on the link to go to the main page I can't see the changes. If I am editing and saving the main page the changes are actualized.

Why does that happen? How do I update all pages which using the template?

Thanks in advance


content of main page:

start test

{{template:test_temp}}

end test


content of template:test_temp:

hello


result should be:

start test

hello

end test


Software Version MediaWiki 1.23.2 PHP 5.4.31 (cgi-fcgi) MySQL 5.5.39 217.92.196.239 (talk) 14:30, 13 August 2014 (UTC)

What you expect to happen actually is the intended behaviour and as far as I can tell that also works as expected.
Do you maybe still have an old version of the main page in a PHP cache or in your browser cache or so? 88.130.64.250 14:49, 13 August 2014 (UTC)
Thanks for your quick answer.
Well, I am expecting that any page which include the template is on an actual version after I have made a changes (saved) on the tempalte. My first surggestion was the cache too. I disabled the parser-chache and the browser cache. Also with a machine never used the wiki the behavior was the same. 217.92.196.239 06:18, 14 August 2014 (UTC)
OK, I changed some cache setting in the localsetting.php file
IT WORKED --> the main is actualized after saving the changes in a template which is included in the main page
$wgFileCacheDirectory = "$IP/cache";
$wgUseFileCache = true; /* default: false */
$wgMainCacheType = CACHE_MEMCACHED;
$wgParserCacheType = CACHE_NONE;
$wgEnableParserCache = false;
$wgMessageCacheType = CACHE_MEMCACHED; # optional
$wgMemCachedServers = array( "127.0.0.1:11211" );
$wgSessionsInMemcached = true; # optional
This settings will lower the performance for each page you open, but quiet little. Hope that will help someone else. 217.92.196.239 07:05, 14 August 2014 (UTC)
You can use ?action=purge to reload the page, so you can use the full cache if you want :) Normally the pages should actualized automatically cyclic. Florianschmidtwelzow (talk) 20:08, 14 August 2014 (UTC)

[RESOLVED] Installation issue - missing index file and mw_config folder

Hi, I've just downloaded the current release package mediawiki-1.23.2.tar and I'm experiencing difficulties for the installation on my local testing system.

I've XAMPP on Windows, Apache 2.4.4, PHP 5.4.16, MySQL 5.5.32

I've extracted the tar archive into the web folder, subfolder mywiki (i.e. e:\webdev\htdocs\mywiki) I've opened the browser to point to http://localhost/mywiki/mw-config/index.php and get an Object Not found error, so I've checked the folder and there is no mw-config folder in the mywiki mainfolder, there is an index.php5 in the mywiki root folder which requires an index.php but there is no such file in the root folder either.

I've checked the archive I've downloaded again to make sure it wasn't corrupted, the file it's fine and there is no trace of the mw-config folder or any index.php file in there. (I've downloaded the archive from http://releases.wikimedia.org/mediawiki/1.23/mediawiki-1.23.2.tar.gz). The file count in the archive is 4624 for 70691KB - MD5 hash: 8339e7d90ea52c46071e2899d55a4136

My local XAMPP system works perfectly otherwise, just in case you ask.

Any help is appreciated. 13.13.137.2 (talk) 14:48, 13 August 2014 (UTC)

Hi!
Most likely your downloaded file is corrupted. I have checked the file, which you linked, again and it in fact does not have the md5 hash, which you mention. For me this file has an md5 hash of 3bf22ad5acf03872a03d8ccea34d69f4.
This file also does contain the right stuff: index.php, mw-config/ folder, files in it, everything there. 88.130.64.250 14:59, 13 August 2014 (UTC)
Hi there,
thanks a lot for your help. My file was indeed corrupted, I've checked it on my Linux VM and gzip told me the TAR archive was corrupted while Winzip on my Windows machine didn't bothered and just extracted what it could.
I've downloaded the file again, MD5 checked with yours and have used 7-ZIP this time to extract the archive. All files there and mediawiki happily installed in seconds :) 13.13.137.2 15:15, 13 August 2014 (UTC)

IPv6 HTTP on [2620:0:861:ed1a::1] (https works)

I wonder where to ask this question. I am just a user of en./nl.wikipedia.org.

My ISP turned on IPv6 on my modem several days ago, and now I have issues connecting to http://en.wikipedia.org and http://nl.wikipedia.org on HTTP. When connecting HTTPS it works fine. DNS lookup currently points me to [2620:0:862:ed1a::1] for most wikimediafoundation related websites. Connecting to http://[2620:0:862:ed1a::1]/ in the browserbar, gives a response: "This domain points to a Wikimedia Foundation server, but is not configured on this server. That’s all we know."

Can you help me? Google directs me to the HTTP version of the sites most of the time. 82.161.236.240 (talk) 19:09, 13 August 2014 (UTC)

about wiki syntax

Dear MediaWiki fellows,

I hope this page is a good place to contact some people in the MediaWiki project. Sorry if not.

I am impressed by the amazing work so many people are able to do using a Markdown-like syntax. I believe that, even if it fits basic needs of enriching and structuring text, such a syntax could be greatly improved. I remember the John McCarthy's lament at the W3C's choice of SGML as the basis for HTML : « An environment where the markup, styling and scripting is all s-expression based would be nice. » I am working on an environment, alphawiki++, devoted to writing, composing and coding in the WEB, where the markup, styling and scripting are unified in a single language, lambdatalk. I should like to share some reflexions about this approach.

This is my e-mail: marty.alain@free.fr

Best regards

Alain martyBold text 78.205.170.17 (talk) 21:37, 13 August 2014 (UTC)

What's "a Markdown-like syntax"? Are you trying to say the wikitext is one such syntax? Nemo 12:21, 14 August 2014 (UTC)

favicons: how to have more than one?

current standards support a unique favicon for any page,

please could you implement? eg perhaps one per folder, as a start.

usecase: http://elinux.org/Jetson_TK1 elinux.org hosts wikis for various embedded linux projects,

such as Raspberry Pi, Jetson....

it would be helpful to have a range of favicons.

this was first raised without apparent response 15 September 2013

https://www.mediawiki.org/wiki/Manual_talk:$wgFavicon#Question 81.134.22.123 (talk) 06:33, 14 August 2014 (UTC)

Please provide links to specifications of "current standards". Then anybody could provide a patch to add such functionality, see https://www.mediawiki.org/wiki/How_to_become_a_MediaWiki_hacker AKlapper (WMF) (talk) 09:00, 14 August 2014 (UTC)

[DUPLICATE] Content wiped out from the website!!

PHP 5.4.31 Database version MySql 5.5.36 Mediawiki 1.16.0

Our Website has all the help content related to our software. We can edit and write help content on the website with the login and password assigned to us. For last 2 months whenever we click on Edit, this copyrights message was coming;

“Please note that all contributions to TrueERP wiki are considered to be released under the GNU Free Documentation License 1.2 (see TrueERP wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here. You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!"

From here we were unable to go forward. Then I took services of a Webdeveloper, he says he only added the correct link of text editor file in the folder and did nothing in the database. But since then all the content has been wiped out. We cannot see any help content which is work of years.

What is the solution how we can get this back? Please help. You can check the pages: http://www.trueerp.com/wiki/Banking http://www.trueerp.com/wiki/Accounts http://www.trueerp.com/wiki/Payroll

These are some of the pages, like this we have 23 modules and separate page for them. Each page had a drop down menu, for each feature in the module.

But everything is no more there. Can’t see it but when we click on source it shows something related ...How we can get this back.

Please help!! Skyep: omer.trueerp Ofarooq (talk) 08:26, 14 August 2014 (UTC)

Please do not post duplicates. You already asked this in https://www.mediawiki.org/wiki/Project%3ASupport%20desk/Flow/2014/08#h-Lost_all_content_on_WikiPage-2014-08-13T07%3A20%3A00.000Z AKlapper (WMF) (talk) 09:07, 14 August 2014 (UTC)

[RESOLVED] javascript broekn in 1.24 wmf 17

Hi since upgrading to 1.24 wmf 17 from wmf 16 it broke javascript on my skin website is http://en.random-wikisaur.tk/wiki/Main_Page it was working in 1.24 wmf 16 but not wmf 17. 151.225.137.145 (talk) 17:15, 14 August 2014 (UTC)

Hi never mind had to add hooks file. 151.225.137.145 17:18, 14 August 2014 (UTC)
Well, it would be very good, if you say us, what javascript you want to add/use and what they have to do. E.g. the arrow near the wiki title works fine.
Btw.: Remember that the wmf versions are actual snapshoots of the development process of mediawiki and only tested to work properly on the Wikimedia cluster. For third party wikis it's recommendable to use the latest stable release (actual MW 1.23.2), unless you know what you do and know what to do when something breaks. Florianschmidtwelzow (talk) 20:00, 14 August 2014 (UTC)
Hi I fixed it because I use a customized skin that needed updating for 1.24 wmf17 since hooks.txt was created for vector and had to add the options to use the new search bar and watch. 151.225.137.145 16:11, 15 August 2014 (UTC)

Keeps getting logged out on File-pages

Hello,

So I've got a really irritating problem here. I have a small private wiki, and everything works just fine, except that I can't access the File:-pages. However, I can upload just fine.

On the Filelist-specialpage, I see all my uploaded files – and I can even click on the "file"-link to open it, but if I click on the title I just get a prompt "You have to log in to view other pages". Even though I'm already logged in.

If I click on the log in, it directs me to the login screen with the text "You are already logged in as X, but you can log in as another user".

I'm running MediaWiki 1.23.2, with the "private" MediaWiki permissions.

Any help would be much appreciated. 213.100.163.201 (talk) 18:04, 14 August 2014 (UTC)

Hmm, strange :/ What is, if you try to access to talk page of a file (File_talk:Filename.ext)? Have you some old lines of Manual:$wgNamespaceProtection in your LocalSettings.php, maybe? Florianschmidtwelzow (talk) 19:55, 14 August 2014 (UTC)
Are the file pages in the same wiki or are they actually located in a different wiki? That would explain why you are not logged in there, while in the normal wiki you still are... 88.130.81.95 19:59, 14 August 2014 (UTC)
Nope, 100% sure it is the same Wiki =/ 213.100.163.201 07:11, 15 August 2014 (UTC)
Thank you so much for taking your time to try and help me out.
But no, I do not have the $wgNamespaceProtection parameter in my LocalSettings.php. This is a fresh install from 1.23.2 directly, so I don't think I should have any legacy stuff laying around.
I've uploaded my LocalSettings.php here http://pastebin.com/DFWqgFu6 if anyone wants to take a look. 213.100.163.201 07:10, 15 August 2014 (UTC)
Okay, after spending multiple hours on this, I find a "solution". If I open up the entire Wiki to be readable, with "$wgGroupPermissions['*']['read'] = true;". Then I can access the File-namespace. If I set $wgGroupPermissions to "read" for any other user group, it still locks you out from the File-namespace no matter what.
But that is something I really don't want to do, the idea for this Wiki is to keep it closed. 213.100.163.201 12:37, 15 August 2014 (UTC)
I have tested it with MW 1.24 and your configuration, and there is no problem with accessing File: pages :/ Can you use ?action=purge please? Just an idea. Florianschmidtwelzow (talk) 14:04, 15 August 2014 (UTC)
Thanks for your help again. However, purge doesn't do it either... =(
It's so weird – I can upload the files just fine, but once it's uploaded it just redirects me to the login screen.
I can see all my files in the filelist, and open the file itself – just not the title=File:-namespace.
I've tested all other namespaces, and they are just fine. 213.100.163.201 14:29, 15 August 2014 (UTC)
Okay, another update (help is still needed).
So far I have put down around 14-20 hours trying to fix this annoying issue. Anyhow, I tried with fresh installations on a VPS and locally, and everything worked just fine.
So I did a new fresh install on the current host. Still, same problem... The problem is that I am kind of locked in with this particular host on this project – I can't switch to another VPS or the like.
What is even more odd than my previous issues was that I installed the MobileFrontend extension, and if I view a file in the File-namespace with the mobile view, it works...! How odd is that?!
I really need some help with this, and I am willing to put down a bounty to whoever gives me information on how to solve this. 213.100.163.201 07:55, 18 August 2014 (UTC)
Do you have a cookie problem? IIrc, your login is stored in a cookie and MediaWiki again recognizes you based on this cookie. Before you visit a File: page, the cookies obviously are still there, but when you visit one you loose them. Is that right?
If so, you should check, why this is happening... 88.130.76.146 14:08, 18 August 2014 (UTC)
If this happens, it's really strange, because, if he click on login, he becomes the message, that he is logged in already. That's only possible, if there is a valid session and a user logged in :) Florianschmidtwelzow (talk) 18:55, 18 August 2014 (UTC)

MediaWiki sessions and cookies not working on multi-server behind CloudFlare

I have a MediaWiki running on multiple AWS instances and login and registration is broken. The session.save_path is set to /tmp which is writeable and readable by anyone. I use Apache2 and PHP5 as well as MEMCACHED.

Whenever you try to login you either get informed that there is protection against session hijacking or that you have cookies off. These are the errors:

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 again. Wiki uses cookies to log in users. You have cookies disabled. Please enable them and try again.

I use a shared cookiedomain in the format ".domain.tld" and the entire domain is behind CloudFlare and an Amazon ELB load balancer. All LocalSettings.php are the same and the Apaches have shared configurations.

Versions and software: MediaWiki version - 1.22.3 PHP Version - 5.5.9-1ubuntu4.3 (apache2handler) MySQL version - 5.6.17-log Operating System - Ubuntu 14.04 LTS Running on an auto scaling Amazon EC2 group behind an ELB with a domain behind CloudFlare Pro

PHP session.save_path - /tmp (chmod 777) Cache system - memcached on every server locally at 127.0.0.1

Apache and PHP configs are shared and mounted using NFS from a central storage 2A02:810D:1140:394:89D9:4718:F049:D51D (talk) 21:45, 14 August 2014 (UTC)

I'd use developer tools to see the names of the cookies being sent by MediaWiki, for example, inspecting HTTP request headers and seeing the names of the cookies present in the cookie: header, and see if they actually make sense for what you have configured.
It may be that cookies never get sent to the browser, or your cookies never arrive to the server, but I doubt cloudflare would filter them.
Anyway, set also a debug log as explained in Manual:How to debug, since it will also print the headers received from the client, including cookies, so you'll see from there if cookies are being filtered by the load balancer/CloudFlare, etc.
Having multiple servers could cause issues: if server A generates a token and session, and on the next request, the client is being handled by server B that knows nothing about the tokens and session generated by server A. In this scenario, session.save_path should be in a shared directory between all instances, if the load balancer is not smart enough to send clients always to the same server. Ciencia Al Poder (talk) 15:04, 20 August 2014 (UTC)

smw and sparql endpoint error

I have a wiki going http://portpcfix.com/mediawiki/index.php/Special:SpecialPages

I am trying to get settle in to the wiki and get all the bugs ironed out

I run into this error when i have error reporting turned on

Strict Standards: Declaration of SPARQLEndpoint::execute() should be compatible with SpecialPage::execute($subPage) in /var/www/mediawiki/extensions/RDFIO/specials/SpecialSPARQLEndpoint_body.php on line 852

I have opened the page and gone to line 852 - it is a parenthese }

any insight on how to solve this error would be appreciated.

I have yet to import an ontology or taxonomy or make a semantic property or import rdf from freebase/odp/dbpedia but i am working on it 107.191.96.200 (talk) 04:37, 15 August 2014 (UTC)

i updated rdfio - can now import triples though with some errors there
this is the error i get now
Strict Standards: Declaration of SPARQLEndpoint::execute() should be compatible with SpecialPage::execute($subPage) in /var/www/mediawiki/extensions/RDFIO/specials/SpecialSPARQLEndpoint_body.php on line 2
107.191.96.200 09:08, 15 August 2014 (UTC)
Have you tried bringing this to RDFIO developers' attention at Extension_talk:RDFIO? AKlapper (WMF) (talk) 09:12, 16 August 2014 (UTC)
You could also remove strict standards errors from appearing, since they're only useful for developers: [4] Ciencia Al Poder (talk) 15:13, 20 August 2014 (UTC)
Also note that you're copying contents from Wikipedia, but:
  • You don't provide the full history of contributions of each article / don't provide a link to the history page at Wikipedia
  • You claim your wiki is Public domain, but Wikipedia contents are CC-BY-SA Ciencia Al Poder (talk) 15:32, 20 August 2014 (UTC)

Where is stdout and stderr?

Old title: Where is stdout and stderr? [resolved]

Manual:dumpBackup.php states:

The XML file is sent to standard output (stdout); progress reports are sent to standard error (stderr)?

Where is stdout and stderr found?

Thank you. Thewhitebox (talk) 10:23, 15 August 2014 (UTC)

Hi!
That are the default output and the output device for errors. When you call the script from the shell, then both outputs should by default be sent to the shell, meaning: You should see "informational" output and errors directly on screen. You can also redirect output to other places, for example into a file. 88.130.116.211 11:31, 15 August 2014 (UTC)
ok thank you anon!
so when i use Manual:dumpBackup.php and type:
php dumpBackup.php --full > dump.xml
where in the world does dump.xml appear?
Thank you! Thewhitebox (talk) 23:46, 15 August 2014 (UTC)
In the maintenance directory. 88.130.116.211 00:29, 16 August 2014 (UTC)
hi again anon!
thank you for your response!
it is definitely not there.
any other suggestions where? Thewhitebox (talk) 01:00, 16 August 2014 (UTC)
I will create a new question Thewhitebox (talk) 01:03, 16 August 2014 (UTC)

Run math.php with Mediawiki 1.23.1 under Windows

I have updated from 1.17 to 1.23 and installed the math-Extension. The representation of formulars now failed (with the old config of the latex program in LocalSettings.php) with 'cannot find texvc':

Fehler beim Parsen (Das texvc-Programm wurde nicht gefunden

I have latex installed but not texvc.

OS is Windows 2003 Server.

Does anybody here run math.php with Mediawiki 1.23.1 under Windows and use latex?

Or do I have to compile texvc? How to do that under Windows? Or does anybody have texvc.exe as a download?


Thanks Hartmut 87.139.247.230 (talk) 10:23, 15 August 2014 (UTC)

Hi Hartmut,
according to Texvc texvc will be located in extensions/Math/math/texvc, after you installed the Math extension. However, I have not tested, if that also works under Windows.
Another option would be to install/compile texvc yourself - this is described at Manual:Running_MediaWiki_on_Windows#Option_A_-_Using_texvc.
Basically it seems to me like texvc was not written for Windows at all - I even found people who used cygwin to get it to run. 88.130.116.211 11:29, 15 August 2014 (UTC)
One more information:
originally the math extension runs under 1.17 with latex. In my LocalSettings.xml was:
$wgDBmysql5 = true;
After the update to 1.23 I got an database error:
[Math] start rendering $\sigma = 1$ in mode 5
[Math] Das <code>texvccheck</code>-Programm fehlt; zur Konfiguration siehe bitte math/README.
SQL ERROR: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '=' (localhost)
When I set
$wgDBmysql5 = false;
then I got the missing texvc error. 87.139.247.230 11:42, 15 August 2014 (UTC)
When you start changing the value of $wgDBmysql5 you will break your wiki. You will get a charset mix, which will be nearly impossible to fix. Please read the notes on Manual:$wgDBmysql5 before changing the value of this variable!
For the different charsets/collations, which you have in your DB right now, you should convert anything, that is not UTF-8, to UTF-8. Note that you will have to convert the existing content accordingly - just changing the default charset of the affected columns/tables/the whole DB is not enough!
Also note that - before you start converting anything - you should check, how the content in your DB is really encoded: Also when the columns use some kind of utf-8 encoding, this does not mean, that there actually really is utf-8 encoded stuff inside. In old times people used to store their utf-8 encoded data in latin1 columns... 88.130.116.211 14:44, 15 August 2014 (UTC)
Thanks.
The situation is:
  • At first I run 1.17 with latex and the included math.php, it works.
  • I made an update to version 1.23
  • I installed the extension math.php
  • Then I got the SQL Error as shown, therefor it seems that the update has made something wrong with the charsets in the database. 87.139.247.230 16:22, 15 August 2014 (UTC)
Maybe after the old 1.17 tables have been added and before the new 1.23 tables were added the charset of the database was changed? This would explain why there are different charsets inside the DB now. Or maybe the value of Manual:$wgDBTableOptions has been changed.
Anyway: There should only be one charset in the DB, MediaWiki prefers UTF-8. 88.130.116.211 17:13, 15 August 2014 (UTC)

webinstaller in 1.24 wmf17

Hi the webinstaller doesent have a skin now because in 1.24 wmf17 vector was moved out of core and put into own repo. please fix the webinstaller skin. 151.225.137.145 (talk) 10:55, 15 August 2014 (UTC)

Please answer the questions raised here first! 88.130.116.211 11:22, 15 August 2014 (UTC)
And: Please notice, that the git version isn't the version to use for third party wikis, if you don't know what to do in such cases of these. This discussion was on wikitech-l, too, look my explanation here:
https://lists.wikimedia.org/pipermail/wikitech-l/2014-August/078004.html
So, for "normal" wiki administrators, there is no problem, because Vector is still included in the normal installation package :) Florianschmidtwelzow (talk) 13:41, 15 August 2014 (UTC)
Ok but if you have vector coulden it detect it and use it like that or any skin you have for default please. 151.225.137.145 16:12, 15 August 2014 (UTC)
Ok but please answer the questions raised above first. AKlapper (WMF) (talk) 09:22, 16 August 2014 (UTC)
Hi I answered first question and for second question I use the Wmf release because I think they are more safer and won't cause much problem as downloading it from master because wikimedia uses it. 86.173.55.212 09:55, 16 August 2014 (UTC)
"more safer" is a wrong assumption (I'd say it's as safe as tarballs), and "won't cause much problem" feels also wrong, seeing how often you raise questions here. AKlapper (WMF) (talk) 10:45, 16 August 2014 (UTC)

en.wikipedia.beta.wmflabs.org/wiki/Lightbox_demo broken

Hi It seems that http://en.wikipedia.beta.wmflabs.org/wiki/Lightbox_demo is broken. it skin doesent show and images for the logo seem to be crossed out. 151.225.137.145 (talk) 11:22, 15 August 2014 (UTC)

Öhm, works for me in Google Chrome. Can you give steps to reproduce this? You can fill a bug for this, if you want:
How to report a bug Florianschmidtwelzow (talk) 13:37, 15 August 2014 (UTC)

php include errors extensions

This post by Revibot was moved on 2015-07-11. You can find it at Extension talk:Semantic Bundle/Archive 2/Flow export#h-php_include_errors_extensions-2014-08-14T21:58:00.000Z. Florianschmidtwelzow (talk) 13:44, 15 August 2014 (UTC)

Obtaining Statistics from the Helpdesk

Does anyone know how I can get regular statistics from the system?

I am trying to find out how many calls my Call Centre has received over the past 12 months. I then want these broken down by Team, and then divided to show the Top 3 Categories under which these calls are logged. Finally, I would like to see how many hours it has taken to close each call under these Top 3 Categories for each Team within my Call Centre.

Can anyboday help?

Thanks Sam 193.60.130.207 (talk) 15:24, 15 August 2014 (UTC)

This is the Support Desk for the software called "MediaWiki". If your question is related to MediaWiki, then please elaborate how. AKlapper (WMF) (talk) 09:14, 16 August 2014 (UTC)

[RESOLVED] Moved Mediawiki now Skin won't display as before.

From user User:Apfelsuchti itself: forgot to match the server adress at the .htcaccess file :(

I wanted to move my Mediawiki from my Main Webdomain to a Subdomain. I created a backup of the Mediawiki that was on the Main Domain and extracted the files to the Subdomain which uses the same DB still, now the problem is:

  • Logo somehow does not display anymore
  • Images on the left and right side won't display

My Main Domain is ikovps-wiki.com and the subdomain is eng.ikovps-wiki.com

Heres the a preview image of the Main Domain on how it should look like http://prntscr.com/4d6n9q and heres one on how it looks on the Subdomain http://prntscr.com/4d6nk6

System Info

MediaWiki 1.23.2 PHP 5.5.0 (cgi-fcgi) MySQL 5.5.36-cll

Extensions i use: http://prntscr.com/4d6nxg


I already tried to reupload the skins, use a different path for the images etc, nothing worked.

Is there a way to fix this? Or have i done something wrong?

forgot to match the server adress at the .htcaccess file :( Apfelsuchti (talk) 21:27, 15 August 2014 (UTC)

Hi! If you look at the console of your Webbrowser (Ctrl+Cap+J in Google Chrome) you see, that most of the requested images run into a 403 error, which means "Permission denied". I think because of the file doesn't exist in the folder, the folder has no index and directory listing is off.
Please make sure, that the images, requested by the skin, are at the place they should be, example:
http://eng.ikovps-wiki.com/skins/images/jaja.png
requested, so make sure, that the file jaja.png is in the folder skins/images/ of the folder the subdomain is mapped to :) Florianschmidtwelzow (talk) 21:38, 15 August 2014 (UTC)
I have checked the path and all images are at their right path.
Is there some "rights" problem involved that Mediawiki is not able to load them?
Sorry, i'm new to Mediawiki in general :/. Apfelsuchti (talk) 11:28, 16 August 2014 (UTC)
I have checked the path and all images are at their right path.
Is there some "rights" problem involved that Mediawiki is not able to load them?
Sorry, i'm new to Mediawiki in general :/. Apfelsuchti (talk) 11:28, 16 August 2014 (UTC)

[RESOLVED] File Uploading Error - Mac hosting

Hello, I am currently running XAMPP on my Macbook Pro to host Mediawiki (just locally though, so unfortunately I can't provide a URL). Whenever I try to upload files, I get errors..

When I try to upload a .jpg, I get "Could not create directory "mwstore://local-backend/local-public/7/7b"." or "Could not create directory "mwstore://local-backend/local-public/e/e8"." When I try to upload a .pdf (yes I did add pdf to the accepted files list), I get "Could not create directory "mwstore://local-backend/local-public/1/12"." Basically, it changes generally with each file.

I have tried the sudo chmod commands (755) to allow access to the /images folder under my Wiki directory, but to no avail. Maybe I am trying to allow permission to the wrong user...? I am the admin and only user of this computer, so I don't understand how it could be an issue with permissions.

Any ideas?

Version Info: MediaWiki 1.23.1 PHP 5.5.11 (apache2handler) MySQL 5.6.16

Best, Ryan 73.47.158.219 (talk) 22:16, 15 August 2014 (UTC)

Figured it out.... I had to add "$wgTmpDirectory = "$IP/images/temp";" to my LocalSettings.php and use "chmod a+w /Applications/XAMPP/xamppfiles/htdocs/WIKI_NAME/images/" in Terminal. 73.47.158.219 06:29, 16 August 2014 (UTC)

update failure: 58P01: ERROR: could not load library "/usr/local/lib/postgresql/plpgsql.so

Version info:

MediaWiki 	1.21.11
PHP 	5.5.14 (apache2handler)
PostgreSQL 	9.3.4

Attempting to run:

 php update.php

yields

Refreshing ts2_page_title() ...A database query syntax error has occurred.
The last attempted database query was:
"CREATE OR REPLACE FUNCTION ts2_page_title()
 RETURNS TRIGGER
 LANGUAGE plpgsql AS
 $mw$
 BEGIN
 IF TG_OP = 'INSERT' THEN
 NEW.titlevector = to_tsvector(REPLACE(NEW.page_title,'/',' '));
 ELSIF NEW.page_title != OLD.page_title THEN
 NEW.titlevector := to_tsvector(REPLACE(NEW.page_title,'/',' '));
 END IF;
 RETURN NEW;
 END;
 $mw$
"
from within function "DatabaseBase::sourceFile( /usr/local/www/mediawiki/maintenance/postgres/archives/patch-ts2pagetitle.sql )".
Database returned error "58P01: ERROR:  could not load library "/usr/local/lib/postgresql/plpgsql.so": dlopen (/usr/local/lib/postgresql/plpgsql.so) failed: /usr/local/lib/postgresql/plpgsql.so: Undefined symbol "HeapTupleHeaderGetDatum"
"

Any hints? I've also tried the web upgrade interface. I get to

There are MediaWiki tables in this database. To upgrade them to MediaWiki 1.21.11, click Continue. 

and can click continue, but the page reloads at the same spot. The previous incremental steps work fine (from start of update to updating the tables) but I can never get to the "Database settings" page.

I've done a full rebuild and reinstall with

portmaster -Rafd 

and get the same results. DGessel (talk) 00:26, 16 August 2014 (UTC)

[RESOLVED] when i use Manual:dumpBackup.php where does xml file appear?

when i use Manual:dumpBackup.php and type:

php dumpBackup.php --full > dump.xml

where in the world does dump.xml appear?

It is NOT in my maintenance directory. Thewhitebox (talk) 01:05, 16 August 2014 (UTC)

It appears the file was created:

root@356:/# cd /home/trav/public_html/finddcjobs.com/public/w/maintenance root@356:/home/trav/public_html/finddcjobs.com/public/w/maintenance# php dumpBackup.php --full > dump.xml 2014-08-15 09:54:08: my_wiki-finddcjobs (ID 23578) 0 pages (0.0|0.0/sec all|curr), 100 revs (404.7|404.7/sec all|curr), ETA 2014-08-15 09:54:11 [max 1143] 2014-08-15 09:54:08: my_wiki-finddcjobs (ID 23578) 0 pages (0.0|0.0/sec all|curr), 200 revs (499.7|652.8/sec all|curr), ETA 2014-08-15 09:54:10 [max 1143] 2014-08-15 09:54:08: my_wiki-finddcjobs (ID 23578) 10 pages (19.2|83.8/sec all|curr), 300 revs (577.4|838.3/sec all|curr), ETA 2014-08-15 09:54:10 [max 1143] 2014-08-15 09:54:08: my_wiki-finddcjobs (ID 23578) 17 pages (24.1|91.4/sec all|curr), 400 revs (567.0|537.9/sec all|curr), ETA 2014-08-15 09:54:10 [max 1143] 2014-08-15 09:54:09: my_wiki-finddcjobs (ID 23578) 18 pages (15.6|40.2/sec all|curr), 500 revs (433.4|223.1/sec all|curr), ETA 2014-08-15 09:54:10 [max 1143] 2014-08-15 09:54:09: my_wiki-finddcjobs (ID 23578) 23 pages (15.4|66.8/sec all|curr), 600 revs (400.6|290.5/sec all|curr), ETA 2014-08-15 09:54:11 [max 1143] 2014-08-15 09:54:09: my_wiki-finddcjobs (ID 23578) 59 pages (36.0|412.4/sec all|curr), 700 revs (426.6|699.0/sec all|curr), ETA 2014-08-15 09:54:10 [max 1143] 2014-08-15 09:54:09: my_wiki-finddcjobs (ID 23578) 62 pages (36.2|856.3/sec all|curr), 800 revs (466.9|1381.2/sec all|curr), ETA 2014-08-15 09:54:10 [max 1143] 2014-08-15 09:54:10: my_wiki-finddcjobs (ID 23578) 89 pages (48.8|798.3/sec all|curr), 900 revs (493.2|896.9/sec all|curr), ETA 2014-08-15 09:54:10 [max 1143] 2014-08-15 09:54:10: my_wiki-finddcjobs (ID 23578) 120 pages (62.4|1224.2/sec all|curr), 1000 revs (520.1|1020.2/sec all|curr), ETA 2014-08-15 09:54:10 [max 1143] 2014-08-15 09:54:10: my_wiki-finddcjobs (ID 23578) 124 pages (59.0|697.5/sec all|curr), 1100 revs (523.7|562.5/sec all|curr), ETA 2014-08-15 09:54:10 [max 1143] root@356:/home/trav/public_html/finddcjobs.com/public/w/maintenance#

Thewhitebox (talk) 01:05, 16 August 2014 (UTC)

How do I change the Tab text and the URL of my landing page?

I just installed MediaWiki on my laptop and got it running fine. I'm stuck with how to change the Tab text of the tabs that appear at the top of the page, left of Read | Edit | View History. Right now, the tabs read Page | Discussion, but I'd like to change it to Bikes | Discussion. How can I do that? I've gone mad trying to figure out how to do this. I've found all sorts of information on editing certain pages with `MediaWiki:***` to do this, but where are those pages located and how to I reach them?

Also, I've noticed that many Wiki sites have a URL like http://en.wikibooks.org/wiki/Main_Page -> Note the word wiki in the URL. Mine reads http://localhost/bikes/Main_Page. How can I change the word `bikes` to `wiki`. I've Installed MediaWiki into a folder called bikes.

I'm doing all this on a Laptop running Windows 7 64Bit and using Apache and PHP

Can you please help me? Jasonmzs (talk) 06:49, 16 August 2014 (UTC)

Hello!
For the first: You can change the name of the tab by changing the interface message. To do this, first find out, which key the message has you want to change. For this, open a page where this message is visible and add ?uselang=qqx to the domain to use the pseudo-language code "qqx". Now you will see the message keys instead of the message in parantheses. Now, open a new tab and request the page "MediaWiki:message-key" to change the value of the key. In your case: MediaWiki:Nstab-main
Just edit this page, save and that's all. Please note: You need the right "editinterface" to edit interface messages. As Administrator you normally have this right.
To the second: Read the manual for short URL to reach this. Florianschmidtwelzow (talk) 21:07, 16 August 2014 (UTC)

LDAP authentication error

Hi, am using ldap authentication plugin to provide ldap database user authentication. i have nearly 100 users in my LDAP. i was configured LDAP settings according to wiki ldap integration & configuration.

here is Localsettings.php file (ramkee.local is my domain name)

Extended content
require_once "$IP/extensions/InputBox/InputBox.php";

require_once "$IP/extensions/Renameuser/Renameuser.php";

require_once "$IP/extensions/WikiEditor/WikiEditor.php";

require_once( "$IP/extensions/LdapAuthentication/LdapAuthentication.php" );

require_once( "$IP/extensions/LdapAuthentication/LdapAutoAuthentication.php" );

require_once "$IP/extensions/ConfirmEdit/ConfirmEdit.php";

$wgAuth = new LdapAuthenticationPlugin();

$wgLDAPDomainNames = array( 'ramkee.local','');

$wgLDAPServerNames = array( 'ramkee.local'=>'polyproxy.ramkee.local');

$wgLDAPBaseDNs = array( 'ramkee.local'=>'dc=ramkee,dc=local');

$wgLDAPSearchStrings = array("ramkee.local" =>"ou=people,dc=ramkee,dc=local" );

$wgLDAPSearchAttributes = array( "ramkee.local"=> "uid" );

$wgLDAPLowerCaseUsername = array( "ramkee.local"=> true );

//$wgLDAPRequiredGroups = array( "ramkee.local"=>"cn=admin,ou=people,dc=ramkee,dc=local" );

$wgLDAPGroupUseFullDN = array( "ramkee.local"=>true);

$wgLDAPGroupsUseMemberOf = array( "ramkee.local"=>true);

$wgLDAPGroupObjectclass = array("ramkee.local"=>"");

$wgLDAPGroupAttribute = array( "ramkee.local"=>"memberuid" );

$wgLDAPGroupSearchNestedGroups = array( "ramkee.local"=>true);

$wgLDAPGroupNameAttribute = array( "ramkee.local"=>"cn" );

$wgLDAPPreferences = array( "ramkee.local"=>true );

$wgLDAPDisableAutoCreate = array( "ramkee.local"=>true);

$wgMinimalPasswordLength = 1;

$wgLDAPUseSSL = false;

$wgLDAPEncryptionType = array( "ramkee.local"=>"clear" );

$wgUseLocal = true;

$wgLDAPUSELocal = true;

//$wgLDAPOptions = array('ramkee.local' => array( LDAP_OPT_DEREF, 0 );


$wgLDAPWriterDN = array('ramkee.local' => 'cn=admin,ou=people,dc=ramkee,dc=local');

$wgLDAPWriterPassword = array( 'ramkee.local' => 'safesquid');

$wgLDAPWriteLocation = array('ramkee.local' => 'dc=ramkee,dc=local');

//wgWhitelistRead = array ("Special:Userlogin", "MediaWiki:Common.css", "MediaWiki:Common.js", "MediaWiki:Monobook.css", "MediaWiki:Monobook.js", "-", "Main Page");

$wgLDAPAddLDAPUsers = array('ramkee.local' => true);

$wgLDAPpdateLDAP = array('ramkee.local' => true);

$wgLDAPPasswordHash = array('ramkee.local' => 'crypt');

$wgLDAPMailPassword = array('ramkee.local' => true);

$wgLDAPDebug = 1;

$wgDebugLogGroups ["ldap"] = '/tmp/wikildapdebug.log';

//wgLDAPProxyAgentPassword = array("exchangetest"=>"safesquid");

$wgLDAPUseLDAPGroups = array( 'ramkee.local' => true);

$wgLDAPGroupsPrevail = array(  'ramkee.local' => true);

$wgLDAPGroupPermissions ['*']['createaccount']   = true;

$wgLDAPGroupPermissions ['*']['read']            = true;

$wgLDAPGroupPermissions ['*']['edit']            = true;

after updating this php file , i can able to create account as general user, but i cant able to create an acount for my ldap user using my domain.


all that i need both general users and ldap users can able to create and log in.

help please.... Ramkee (talk) 10:48, 16 August 2014 (UTC)

Logo not displaying

URL: http://www.modelhorsewiki.com

Just installed MediaWiki, haven't done much but add a test page. I tried to use the faq directions to add my logo but when I did, it breaks the site. I reverted the LocalSettings.php to the original generated file.

As a weird side note, the original MediaWiki logo never showed in the original install either. This may be related?

Here is what Special:Version lists as my versions.

MediaWiki: 1.22.6 PHP: 5.4.20 (cgi-fcgi) MySQL: 5.1.56-log 24.3.149.92 (talk) 12:37, 16 August 2014 (UTC)

I looked at the source code, and there is "135wikilogojpg" when it should be "135wikilogo.jpg". Stryn (talk) 12:39, 16 August 2014 (UTC)
$wgLogo is set incorrectly. See Manual:$wgLogo for details! 88.130.77.183 13:33, 16 August 2014 (UTC)
Okay, I'm probably doing something wrong here, but this is the line in my LocalSettings.php looks like this:
$wgLogo = "/wiki/skins/common/images/wiki.png";
and NO logo shows up that way.
I have tried changing it to:
$wgLogo = "/135wikilogo.jpg";
But the entire site breaks.
I did get it to work this way:
$wgLogo = "http://www.modelhorsewiki.com/135wikilogo.jpg";
But from what I understand this isn't ideal, since if I decided to migrate to a different URL or something, it would break again? 24.3.149.92 04:41, 17 August 2014 (UTC)
$wgLogo = "/135wikilogo.jpg"; shouldn't break at all. What happened when you set it as that?
If you migrate to a different URL, changing the $wgLogo should update the logo on all pages automatically, unless you have enabled the file cache. Ciencia Al Poder (talk) 15:59, 20 August 2014 (UTC)

web address changes to IP address when accessing MW server

I have a MW server running locally on port 85, to get to this I have a subdomain which does a redirect to my local WAN IP and the associated port (just HTTP forward to http://IP:PORT ). Only trouble is when I load the web address, it changes from the subdomain to IP:PORT. I've tried modifying $wgServer in LocalSettings.php for MW and ServerName in httpd.conf for the associated apache server to no avail. Also I've tried a bunch of different combinations such as forwarding to http://IP:PORT/mediawiki/index.php etc.

This solution on stack overflow suggests Apache Module mod_proxy, but I'm not sure if I need this, and I'm hesitant possibly opening more doors to the internet without knowing what can happen.

Phaseform Phaseform (talk) 14:43, 16 August 2014 (UTC)

Hi!
Do I understand this correctly? You say that when you call the subdomain and hit enter, then you get a call to the IP address instead?
If this is the case, then it is not $wgServer, which would be set incorrectly. $wgServer "only" influences how MediaWiki builds the URLs, which it creates. When these URLs still point to the subdomain (and not to the IP address), then $wgServer is set correctly (or at least not wrong in a way that it would point to the IP address). 88.130.77.183 15:52, 16 August 2014 (UTC)
Thankyou that clarifies a lot, but I still can't find what is set incorrectly, I've been through like every setting on the domain provider web settings. Still not sure which component is at fault. 58.96.109.120 16:50, 16 August 2014 (UTC)
> does a redirect to my local WAN IP
Really a redirect? Then there is your problem. You need to set a resource record (A (IPv4) and AAAA (IPv6) normally) to point to your IP-Adress where the server runs behind.
Notice: Please think about, if a local hosting of a webserver is the correct way to provide internet services :) Florianschmidtwelzow (talk) 20:58, 16 August 2014 (UTC)
finding out about DNS records just made my day.
now I need my local servers to set a subdomain to a port.
I have a very small amount of traffic in so I'm not overly concerned about my meager up speed :) Phaseform (talk) 08:50, 17 August 2014 (UTC)
This was the solution? :)
> to set a subdomain to a port
That's impossible. DNS records always points to an IP adress (at least A and AAAA records). On what port the user can reach what service is configured on the server behind the IP address :) Florianschmidtwelzow (talk) 18:52, 18 August 2014 (UTC)

Jobs are not executed in MediaWiki 1.23.2

Hi all, this is my first post here, so please forgive me if I somehow break the webiquette of this site.

Affected wiki is a very small installation (roughly 100 pages only) with very few users. The URL can't be postet, it's a private website with password protection and delicate information. I don't have shell access to the web-server.

The environment is as follows:

  • MediaWiki 1.23.2
  • PHP 5.4.26-nmm1 (apache2handler)
  • MySQL 5.5.35-nmm2-log
  • Semantic MediaWiki 2.0
  • $wgEnableParserCache and $wgCachePages are both set to false (for other reasons).

The problem came up after upgrading from MediaWiki 1.22 to the current version and upgrading Semantic MediaWiki as well. When the usual repair and cleanup-jobs of semantic MW are to be run, nothing happened. I had a look at the list of "open jobs", it showed over 100 jobs in the queue. Regardless of the value of $wgJobRunRate, nothing changed after accessing the Wiki a lot.

Is this a known issue? Searching the web didn't reveal any helpful information to me.

I'd appreciate any hints what I could do the get this Wiki to execute the jobs. Thank you in advance for your help!

Best regards,

Tobias 92.194.139.121 (talk) 18:24, 16 August 2014 (UTC)

You can have more information reading Manual:Job queue.
Try running jobs directly with runJobs.php. If they're run successfully and there are no remaining jobs, then monitor the job queue for a day for example, and see if jobs get stuck there. If yes, then you might try to set $wgRunJobsAsync to false and see if that makes jobs being run again on page requests. If so, you might want to enable debugging while restoring that setting and let us know of any error you might encounter on the log. Ciencia Al Poder (talk) 15:38, 20 August 2014 (UTC)
Thank you for your reply! Since I don't have shell access to the web-server, running jobs directly with runJobs.php is some kind of a challenge. Using the "Maintenance"-extension, I managed to run the jobs. Afterwards, new jobs appeared on the queue and were not run on page requests, just like before.
As suggested, I set $wgRunJobsAsync to false, with success, the queue was processed. Before and after restoring the setting to default, I couldn't identify any error on the log though. Anything in particular to look for? Any suggestions?
Would you recommend to set $wgRunJobsAsync to false again and leave it that way or will this cause any other problems?
Thank you for your help! 92.194.121.27 12:40, 23 August 2014 (UTC)
In MediaWiki 1.22 and 1.23, the running jobs on page requests was modified, and the variable $wgRunJobsAsync was added just to revert to the old way of running jobs, as a fallback in case something goes wrong with this new development, as it seems to be your case. But still, none of the developers (including me) seem to be able to track down what's the problem with this new system, so debugging it will be useful to fix it on new releases.
If you want to help, follow those steps, when there are jobs in the job table:
Set this in LocalSettings.php:
$wgJobRunRate = 1;
$wgRunJobsAsync = true; // Or just comment out the line where you set it to false
$wgDebugLogFile = "{$wgUploadDirectory}/debug-{$wgDBname}.log"; // Set it to a directory writable by the webserver
Reload any page from your browser, best if you do that while not logged in, for example, in a "private browsing" tab, so you don't have to remove cookie information from the debug log.
After ensuring the debug log file has been created, restore LocalSettings to the previous state (removing the lines added for this test).
Look at the debug log and see if there's any error condition or something strange there. Ideally, it should contain debug for 2 requests: The first one, the page you reloaded first. The second one would be an internal request to SpecialRunJobs.php that would execute a small batch of jobs. You can post the relevant information here, or post it to [5] (and post a link to it here) after redacting any private information (cookies, or maybe sensible paths). See Manual:How to debug#Logging for more info.
Also, delete the debug log once you're done. Ciencia Al Poder (talk) 09:30, 26 August 2014 (UTC)

Infobox not displaying correctly

Hello! I have a problem with infoboxes on my wiki. I can't use Lua because I don't have access to proc open on my server, so I'm stuck with the old fashion.

Here is what I get: http://dudeauclavier.fr/pj/index.php/Test (source code for the infobox:http://dudeauclavier.fr/pj/index.php/Mod%C3%A8le:Infobox)

I don't understand why: ParserFunctions is installed and enabled.

Any idea?

Thanks for any help.

Version:

  • MediaWiki 1.23.2
  • PHP 5.4.30 (litespeed)
  • MySQL 5.5.35-33.0

Extensions installed:

I don't think this has anything to do with ParserFunctions. It looks like you are doing everything right. Does this work in earlier versions of MediaWiki? MarkAHershberger(talk) 15:28, 18 August 2014 (UTC)

Hi I am trying to add something that detects your website address a then goes to the the special upload page. here is the code.

<a href="
    <?php echo $this->data['nav_urls']['upload']['href']; ?>
  ">
  <div class="onhoverbg" style="padding-left:0.8em;padding-right:0.8em;float:left;height:40px;font-size:10pt;">
    <img src="http://images.pidgi.net/uploadlogo.png" /> 
    <span style="color:#fff;position:relative;top:1px;">
      <?php $this->msg('uploadbtn') ?>
    </span>
  </div>
</a>
<?php $this->renderNavigation( array( 'NAMESPACES', 'VARIANTS', 'VIEWS', 'ACTIONS' ) ); ?>

The code worked for a few days then stoped working for me. 86.173.55.212 (talk) 09:59, 17 August 2014 (UTC)

Hi I think it is to do with people have to be loged in for it to go to correct link please can I have some help to allow everyone to go to the link. 86.173.55.212 11:18, 17 August 2014 (UTC)
Hi!
The code, which you have there creates a link to the Upload page and then attaches some image in that link. The line $this->renderNavigation() basically does not have anything to do with that.
However, I have not really understood what exactly it is that you want to do:
When the wiki (not the IP of the visitor), but when the wiki has a certain domain name, do you then want to have a redirect?
Second question: Which page should get redirected and what should be the redirect target?
And finally: Where should this be added? 88.130.105.169 11:21, 17 August 2014 (UTC)
Hi well for your two question. is that I would like to allow ip address to view the upload link but when clicked will show that error that you have to login so I would like help to allow ip address to view the link. 86.173.55.212 11:27, 17 August 2014 (UTC)
So basically you want IPs to be able to see the link to Special:Upload (which they by default do not(?) see)? 88.130.105.169 11:50, 17 August 2014 (UTC)
Yes please because the link only lets user who are logged in to see it or if you logged out it redirects you to main page. 86.173.55.212 12:24, 17 August 2014 (UTC)
Then the question is: Why are people redirected away from that page?
When you open Special:Upload in a default installation, you can see the page - also when you cannot upload things. E.g. see Special:Upload when you are not logged in. 88.130.105.169 14:58, 17 August 2014 (UTC)
Hi well I added an image and with that image I would like to to show the upload link instead of being hidden when logged out. 86.173.55.212 15:16, 17 August 2014 (UTC)
The more you write the less I understand the problem. You can easily show a link to the upload page with this HTML code:
<li><a title="Upload an image, PDF, etc." href="/Special:Upload">Upload</a></li>
maybe you also want to do this
<?php if( !$this->getSkin()->getUser()->isLoggedIn() ) { ?>
    <li><a title="Upload an image, PDF, etc." href="/Special:Upload">Upload</a></li>
<?php } ?>
In this case the link is only displayed, if the user is logged out - I expect that otherwise MediaWiki will show the link by default already anyway. 88.130.105.169 15:55, 17 August 2014 (UTC)
Hi I tried that and doesent work. 86.173.55.212 19:00, 22 August 2014 (UTC)
Hi I use
<?php echo $this->data['nav_urls']['upload']['href']; ?>
and it only allows users who are logged in to view the link otherwise it just doesent show it and goes straight to main page. 86.173.55.212 10:48, 23 August 2014 (UTC)

Move LocalSettings.php

Is there a way to move the LocalSettings.php and then create a symlink back to it? I would like to have config files in their own folder so I can use git for central management. 2A02:810D:1140:394:840E:ABB9:5863:3D9F (talk) 19:37, 17 August 2014 (UTC)

Absolutely:
LocalSettings.php:
<?php
require_once('../../SecretStuff.php');
// rest of the setup
And in SecretStuff.php:
<?php
$wgDBserver="[mysql_host]"; 
$wgDBname="[mysql_db_name]"; 
$wgDBuser="[mysql_user]";  
$wgDBpassword="[mysql_password]";
As far as the content from LocalSettings.php is not secret, you might want to put that into Git as well; meaning: Put the new LocalSettings.php file into Git, while you keep SecretStuff.php out of it. 88.130.105.169 20:59, 17 August 2014 (UTC)
I use secure internal server to server git, I can safely put credentials in the file. Will it break includes if I put LocalSettings into config/LocalSettings and then symlink it back into the main directory? 2A02:810D:1140:394:6C93:F022:B4EA:EC90 21:32, 17 August 2014 (UTC)
You can use symlinks, too, if you want. That's the way used for the mediawiki Debian/Ubuntu package. Florianschmidtwelzow (talk) 21:57, 17 August 2014 (UTC)
Hi, I want to add a site-wide CSS link to teh head element or RessourceLoader (fortawesome.css). Is that possible in LocalSettings? 93.184.128.24 (talk) 08:50, 18 August 2014 (UTC)
Hi!
You possibly can use LocalSettings.php to overwrite the definitions from vector as you find them in resources/Resources.php. However, I would not say doing so is intended; if you want to change CSS in one of the Core skins, e.g. of Vector, you should better put it on the wiki page MediaWiki:Vector.css in your wiki or - if your changes are bigger - create an own skin. 88.130.76.146 13:39, 18 August 2014 (UTC)
Thanks, I'm surprised there is no easier way.
I'm using @import in MediaWiki:Common.css now, but that is a belated HTTP request. 93.184.128.24 15:54, 18 August 2014 (UTC)
(I understand your question so, that you want to add additionally css rules)
Sure, you can define a new ResourceLoader module and load your skin in it. After this use the Hook "BeforePagDisplay" and load the module there.
But please notice the hint of "88.130.76.146" Florianschmidtwelzow (talk) 18:42, 18 August 2014 (UTC)
Sorry, this sounds way too complicated. MediaWiki got out of hand since the RessourceLoader. 93.184.128.25 08:43, 19 August 2014 (UTC)
That's a matter of opinion ;) It looks complicated, yeah, but there are much more possibilities with RL :) Florianschmidtwelzow (talk) 07:09, 21 August 2014 (UTC)
It should be easy to create isolated global CSS pages, without touching Common.css. One way that would be great would be sub-pages of Common.css. Eg, Common.css/SpecialStyle.css. In fact, when you create a subpage of Common.css, the subpage gets preloaded with /* CSS placed here will be applied to all skins */. But it doesn't seem to work. Johnywhy (talk) 14:31, 9 June 2018 (UTC)

[ ] in the page's title

Hello,

I have a wiki for a game that quite often uses [ ] in names, for example event items start with a tag [Event]. Because [ ] are not allowed in titles I am unable to crate a page for said item. I did try adding [ ] to the $wgLegalTitleChars but it would still now allow me to create such page (I am usually using html tags for links or pages in general so I don't really use [ ]).

Is it possible to change the [ ] to something else and make it completely usable in the process? Cristal01 (talk) 09:04, 18 August 2014 (UTC)

Illegal characters even for the URL. Consider using DISPLAYTITLE 93.184.128.24 12:15, 18 August 2014 (UTC)
Using displaytitle is the right idea. Or the pagenames can e.g. use normal brackets "(" and ")". Note that square brackets are also needed for wiki syntax, which will break when you start using square brackets in page names. 88.130.76.146 13:31, 18 August 2014 (UTC)

Welcome. Tell me, where you can put COUNT attendance of my site? And how to change the footer to display advertisements in it? 5.141.239.87 (talk) 09:29, 18 August 2014 (UTC)

Hi!
Are you looking for Manual:$wgDisableCounters? 88.130.76.146 13:40, 18 August 2014 (UTC)
You can use some hooks to change the footer content (or add ads if you want):
Manual:Hooks Florianschmidtwelzow (talk) 18:40, 18 August 2014 (UTC)

[RESOLVED] Image position "right" does not work

{{{text}}}

[[File:image.png|right|descripp]] not working in my site: http://scratch-wiki.besaba.com/Галерея Dimon4ezzz (talk) 10:04, 18 August 2014 (UTC)

Hi!
You might try a tool like Firebug to find out how the positioning is done in wikis where it is working. That will give you an idea, what is currently missing for you. 88.130.76.146 13:36, 18 August 2014 (UTC)
That wiki seems to use a custom skin. Right-aligned images are inside a div with CSS class floatright which usually have the CSS rule float:right;. You may to add that CSS class from other skins, like Vector or Monobook. Those styles are defined in the file /skins/common/shared.css, maybe you just need to include it in that skin. Ciencia Al Poder (talk) 16:11, 20 August 2014 (UTC)
oh, tnx! Dimon4ezzz (talk) 12:09, 23 August 2014 (UTC)

Error while moving mediawiki install to a new URL.

Hey everyone!

I'm trying to move a 1.17.0 mediawiki installation to a different subdomain, due to requests from my web host.

The site was located at site.projetopescar.org.br/tsp/ , and now it has moved to tsp.projetopescar.org.br/tsp/ .

I have backed up the database, downloaded all the files, imported the DB to the new server and uploaded the files to the new location.

What I get now is the following error:

Fatal error: Call to a member function read() on a non-object in /var/www/vhosts/tsp.projetopescar.org.br/httpdocs/tsp/includes/Skin.php on line 56

I have tried changing permissions to every file and folder to 777, just to make sure it wasn't a permission issue, but the error persists. I have also tried changing the $wgScriptPath on LocalSettings.php, but I can put anything there and the error won't change (I figured it might show a wrong path in the error description).

So, I'm at a loss. Please help!

Felipe 187.112.55.229 (talk) 11:47, 18 August 2014 (UTC)

Upgrade to at least MW 1.19 -- though that has less than a year of support left.
You'll probably do better by upgrading to 1.23. MarkAHershberger(talk) 15:10, 18 August 2014 (UTC)

Changing Vector Settings

Hello there,

I admit I'm pretty new on customizing and programming own skin for MediaWiki. For now all I want to achive is a drop down menu/navigation instead of the default "Main Page" and "Discussion" links. Also it would be cool if there is a simple way to change the background color of the Vector skin. I know that the DarkVector already exist, but I prefer to set all attributes by myself. I would like to make it look like this: http://www.wowhead.com/ Please don't send in answers links like https://www.mediawiki.org/wiki/Manual:Skinning or https://www.mediawiki.org/wiki/Manual:Interface/Sidebar because I have already read that several times times and by doing it I cacthed a few bugs. I just don't understand those tutorials. Naionel (talk) 11:59, 18 August 2014 (UTC)

So, why don't you look at DarkVector and see how it sets them and then you'll have a good idea for how to do it yourself.
Note, also, that the creation of custom skins will become much saner in the next version, but this means that any changes you make now will have to be adapted. MarkAHershberger(talk) 14:06, 18 August 2014 (UTC)
You mean version 1.24? Well, we actually don't know when it comes up especially that I have a little bit of time, so I can't wait too much because of that. Isn't there any easier way to get this 2 extensions? Naionel (talk) 14:51, 18 August 2014 (UTC)
1.24 will be released no later than November this year. You could upgrade via git and get the changes now. MarkAHershberger(talk) 15:13, 18 August 2014 (UTC)
1. Ok, I've tried to install the DarkVector skin, but it seems it's too old even for the 1.23 version and it doesn't completely work.
2. Are you sure that the snapshot is stable, so I haven't to worry about crashes and errors? 83.7.131.104 17:18, 18 August 2014 (UTC)
I can say, that the versions can be used in production (i use MW1.24wmf16). But it's the point to figure out: Do you know what to do, when something doesn't work? The wmf versions are nearly actual to git, so there can be some stuff, that's untested, but with a little bit of time, background knowledge and the help of mediawiki.org documentation (in developer area, too) normally you can handle possible problems :)
Your main question (o I haven't to worry about crashes and errors): I found nothing, but it can depend on your setup and what Extensions you use :) Florianschmidtwelzow (talk) 18:50, 18 August 2014 (UTC)
Well, speaking of the Extensions, for now I focus on getting a simple drop down menu, for example with using this: http://www.mediawiki.org/wiki/Extension:MegaMenu and a skin (the Vector is sufficient for me now, but I really want to set it to a little bit darker). :D 83.7.131.104 20:00, 18 August 2014 (UTC)

I've found a page that contains content that infringes directly on my, and my employer's copyright, and it needs to be permanently removed. How do I go about getting that done?

This is the page, and the image on it is my personal work, and is not public domain. Nor have any permissions been given to anyone for it's use.

http://1d4chan.org/wiki/File:Chandra_and_Liliana.jpg

Thanks for any help,

Steve Steve Argyle (talk) 17:47, 18 August 2014 (UTC)

Hi!
The image you mention is hosted at http://1d4chan.org. This website is not run by the MediaWiki Foundation nor is it related to Wikipedia. 1d4chan.org is only using MediaWiki, the software, which is also used for Wikipedia et all.
Wiki administrators usually can delete pages and images. Here is a list of those users, who are admins in that wiki: http://1d4chan.org/index.php?title=Special%3AListUsers&username=&group=sysop&limit=50. You can contact one of these users on their talk page. 88.130.76.146 17:52, 18 August 2014 (UTC)

Hello,

I have synology NAS. I installed MediaWiki on it.

By default MediaWiki don't understand UNC links, like file://ip/photo, shared files and etc. Because I have to install extension http://www.mediawiki.org/wiki/UNC_links. After installiation MediaWiki has understanding UNC links, they are active, but when I click in IE - file doesn't open in WI (Windows explorer) 78.56.140.16 (talk) 20:29, 18 August 2014 (UTC)

[RESOLVED] Error writing to CDB file

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


I didn't change anything on my box and one day it suddenly have this:
Screenshot:
Http://i.imgur.com/rbmazsr.png
Env:
MySQL 5.5
PHP-FPM 5.4
MediaWiki 1.23.? I forgot.
cache/ has been set to 777, still not working.
Could anyone help me please, thanks. Hlx98007 (talk) 20:50, 18 August 2014 (UTC)
Hi!
I would try emptying the cache/ folder (but keeping the .htaccess file). Does that help? Maybe a permission issue with this folder? 88.130.76.146 20:58, 18 August 2014 (UTC)
Even with the fresh new installation, with the old LocalSettings.php + images/ + extensions/ + uploads/, MediaWiki would pop error, the same kind of error. Hlx98007 (talk) 21:02, 18 August 2014 (UTC)
Problem solved, in php.ini, the mbstring.func_overload must equal to 0 (it was 2 because of an installation of zabbix by another guy) Hlx98007 (talk) 21:16, 18 August 2014 (UTC)
If you are here, also check your disk space :^) Valerio Bozzolan (talk) 14:23, 19 February 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to add a TOP bar (not sidebar!)?

Hello there,

I'm looking for a simple way to create a drop down top menu without using any extensions or JavaScript (for example, just addings tabs next to the Main Page and Discussion tab). I would like to make it look like this: http://www.wowhead.com/ Naionel (talk) 00:07, 19 August 2014 (UTC)

That's not possible without using any extensions or JavaScript, sorry Ciencia Al Poder (talk) 16:48, 20 August 2014 (UTC)
Meh, ok... So what extension (except MegaMenu) actually can you recommend or course/book/tutorial about JavaScript? :) Naionel (talk) 23:32, 20 August 2014 (UTC)
Well, that can't be done with an extension, since that's specific of the skin you're using. You should either find a skin capable of doing that (which would also change the whole look of your wiki), or code that functionality yourself/with the help of someone.
MediaWiki uses jQuery, so you may find some jQuery plugin capable of doing that, but you'll also need to know how to add the options you want to display to that menu.
Once you have the code, you can put on your wiki at the locations specified in Manual:Interface/JavaScript Ciencia Al Poder (talk) 09:13, 27 August 2014 (UTC)

Hi,

This may be covered elsewhere, however I'm having troubles even thinking of what the search argument would be.

I'm working on the War Thunder wiki, and I'm creating pages for separate components of vehicles that occur on more than one vehicle. What I need to do now is to import the contents of those pages into the vehicle page, sort of like referencing subroutines in a conventional program.

Is it possible to do this, and if so, how would I go about it?

Any help would be gratefully accepted.

Tony. Zorbu (talk) 05:24, 19 August 2014 (UTC)

Transclusion? AKlapper (WMF) (talk) 11:42, 19 August 2014 (UTC)

Using Mediawiki 1.23.2 MyPhP: 4.1.12 MySQL: 5.6.16 Skin: Vector How can I move my logo further to the left? At the moment it sits sort of north-east of the sidebar (instead of directly above it) and is partially covered by the main text area. Please can you make the steps simple as I am not a computer coder! Many thanks. 91.125.199.187 (talk) 08:48, 19 August 2014 (UTC)

Hi!
Two options:
1) Edit the page MediaWiki:<skinname>.css, e.g. MediaWiki:Vector.css in your wiki and add one or two lines of CSS code, which move the logo a bit to the side. Problem: Will no longer fit, if you change the logo file later.
Second and better solution: The logo is expected to be exactly 135 x 135 pixels, not bigger and not smaller. See Manual:$wgLogo! Adjust your logo file to fit these measures and it should fit as well! 88.130.71.81 10:51, 19 August 2014 (UTC)
1) What is the CSS code I would need to move the logo? I'm not a computer programmer so would appreciate the exact syntax please.
2) How do I find out how many pixels the logo is?
Many thanks 80.229.177.100 15:23, 19 August 2014 (UTC)
What you really want to do is change the logo file. You find the logo at that place, which you have defined as $wgLogo in LocalSettings.php. 88.130.71.81 20:10, 19 August 2014 (UTC)
I know where the logo file is and its called logo.png. What do I do now to change the position of the image on the page? You mentioned earlier about adding some CSS code. What is the code I need to add? 80.229.177.100 07:59, 20 August 2014 (UTC)
You can move the logo by defining a smaller or a negative value for its left positioning like so:
#p-logo {
    left: -0.5em;
}
Default is +0.5em.
However, I really advice you against doing so: This will for example break again, should you one day decide to choose another skin. The proper solution actually is to use a logo in the correct size. 88.130.88.26 10:10, 20 August 2014 (UTC)
Okay understood. How can I find out the size of my logo and how do I make it exactly 135x135 pixels? 80.229.177.100 09:49, 21 August 2014 (UTC)
Download the logo from your server and edit it with any image processing programme you like! Afterwards overwrite the old version of the file on the server. 88.130.122.242 10:06, 21 August 2014 (UTC)

adding banner

<a href="https://orange.com/aff.php?aff=xxxx"><img src="http://www.orange.com/images/banners/affbannerlightorange.png" alt="high performance ssd vps" /></a>

I am trying to convert this banner code to wiki

have tried span links to get rid of icon and have added external images to local settings but can't seem to code this simple example

If you just want to remove the external link icon, you can wrap the link in <span class="plainlinks">, like this:

<span class="plainlinks">http://stackoverflow.com/</span>

or even

<span class="plainlinks">[http://stackoverflow.com Stack Overflow]</span>


[[<span class="plainlinks">http://www.orange.com/images/banners/affbannerlightorange.png</span>|link=https://orange.com/aff.php?aff=1746]]


I am looking for good header footer extension also but will probably need this same code there as well

what am i doing wrong? 107.191.96.200 (talk) 12:11, 19 August 2014 (UTC)

Try this:
[http://example.com/link/of/the/banner http://example.com/url/to/the/banner/image.png]
Basically, it's an external link where the text of the link is a URL of an image. That will work only if you enable embedding external images.
On the other hand, the image syntax you provided will work only if you upload the banner image to your wiki:
[[File:Yourbanner.png|link=http://example.com/link/of/the/banner]] Ciencia Al Poder (talk) 16:45, 20 August 2014 (UTC)

Multi-Server environment

Hey there,

is there a tutorial to run a MediaWiki from multiple servers so that it can withstand a lot of load? The WikiFamily page only has "multiple MediaWikis on one server" which I don't need. 2A02:810D:1140:394:9576:1377:8B99:E20A (talk) 12:54, 19 August 2014 (UTC)

Error upgrading from 1.21.1 to 1.23.2 [Solved]

When I attempted to update my mediawiki from 1.21.2 to 1.23.2 I got the following error: <!DOCTYPE html> <html><head><title>Internal error - MediaWiki</title><style>body { font-family: sans-serif; margin: 0; padding: 0.5em 2em; }</style></head><body>

[eaf17141] /w/mw-config/?page=Upgrade Exception from line 182 of /home/wrlimgzl/public_html/w/includes/Hooks.php: Invalid callback in hooks for LoadExtensionSchemaUpdates

Backtrace:

#0 /home/wrlimgzl/public_html/w/includes/GlobalFunctions.php(4004): Hooks::run(string, array, NULL)

  1. 1 /home/wrlimgzl/public_html/w/includes/installer/DatabaseUpdater.php(116): wfRunHooks(string, array)
  2. 2 /home/wrlimgzl/public_html/w/includes/installer/DatabaseUpdater.php(170): DatabaseUpdater->__construct(DatabaseMysqli, boolean, NULL)
  3. 3 /home/wrlimgzl/public_html/w/includes/installer/DatabaseInstaller.php(278): DatabaseUpdater::newForDB(DatabaseMysqli)
  4. 4 /home/wrlimgzl/public_html/w/includes/installer/WebInstallerPage.php(646): DatabaseInstaller->doUpgrade()
  5. 5 /home/wrlimgzl/public_html/w/includes/installer/WebInstaller.php(283): WebInstaller_Upgrade->execute()
  6. 6 /home/wrlimgzl/public_html/w/mw-config/index.php(63): WebInstaller->execute(array)
  7. 7 /home/wrlimgzl/public_html/w/mw-config/index.php(31): wfInstallerMain()
  8. 8 {main}

</body></html> Any suggestions? Jbsquires (talk) 23:47, 19 August 2014 (UTC)

Hi!
You are using at least one extension, which calls the hook LoadExtensionSchemaUpdates. This extension does not work correctly with the new version of MediaWiki as it does not provide a valid callback.
The solution is to identify the failing extension and to update it before you run the update script. Most likely an extension update will already solve the issue. 88.130.88.26 10:14, 20 August 2014 (UTC)
Well I couldn't find the extension that was causing the problem so I just commented out all the extensions I have added and the upgrade went soomthly, then just uncommented all my added extension and all seem good. Jbsquires (talk) 23:02, 20 August 2014 (UTC)
But this isn't the right/correct way ;) I think there is a reason, that the developer of the extension wants to run some schema updates for his extension. So i would suggest, that you find out, what extension was the problem and maybe update and/or contact the developer for help :) Florianschmidtwelzow (talk) 07:06, 21 August 2014 (UTC)
Well I couldn't find the extension that was causing the problem so I just commented out all the extensions I have added and the upgrade went soomthly, then just uncommented all my added extension and all seem good. Jbsquires (talk) 23:02, 20 August 2014 (UTC)

[RESOLVED] concatenate page id to page titles?

This is for an intranet wiki so I can't link to it, but the version is 1.15.1. I realize we're a bit behind.

I would like to show the page id number (not the version number) as part of the title on each page. Plus some text, even... so instead of "Tour group guidelines" the heading one on each page would say "Policy 4234: Tour Group Guidelines".

I can't find an extension that does this easily, maybe my google-fu is failing, seems like there should be a quick edit I can do to a single title that outputs the page title? 184.178.189.227 (talk) 16:27, 20 August 2014 (UTC)

Never mind, issue resolved. I played with it enough to figure it out.
Ended up doing this in our skin... the modern.php file, found this bit: $this->data['displaytitle']!=""?$this->html('title'):$this->text('title') ;
And added this before it: print "[DIR.".sprintf('%04d',$this->data['articleid'])."] "; 184.178.189.227 14:32, 21 August 2014 (UTC)

[RESOLVED] Passing to an extension

I'm trying to write a simple extension. I want to pass it the name of an uploaded media file but I can't seem to get it to the extension. Specifically, I don't want to have to put the path to the file in the call, I'd like to just put {{filepath:filename.ext}} and have the location found for me. I've stripped the extension down to just a few lines:

<?php
$wgHooks['ParserFirstCallInit'][] = 'henryinit';
function henryinit( $parser ) {
  $parser->setHook( 'Henry', 'henryrender' );
  return true;
}
function henryrender($input, $args) {
  global $wgScriptPath;
  return "File: ".$args['file']."<br>" ;
}
?>

Then, in a page, I put the following (where GH-Scouts.mp4 is a previously uploaded video):

<henry width="400" height="300" file="{{filepath:GH-Scouts.mp4}}" />

Filepath: {{filepath:GH-Scouts.mp4}}

This returns the following:

File: {{filepath:GH-Scouts.mp4}}

Filepath: http://www.mysite.com/images/a/ad/GH-Scouts.mp4 

As you can see, the second line correctly displays the full path to the file but the first, which calls the extension, reports the file path as it was entered. I feel like I need to have my henryinit associated with a different hook but can't figure out which one. If, for instance, I use 'ParserBeforeTidy' it finds the path, but then it doesn't run my extension. Can someone point me to an example or discussion of how I can do this? Thanks. Henryhartley (talk) 19:45, 20 August 2014 (UTC)

I think you missunderstood something :) setHook() is a method to add a tag (like <example></example>), that's called a tag extensions. If you try to add a parser function, please read the documentation of it :) Florianschmidtwelzow (talk) 06:56, 21 August 2014 (UTC)
I'm not trying to add a parser function. I'm simply trying to use one (that already exists) in my tag extension. Is that not possible? At least that's what I think I'm trying to do. Henryhartley (talk) 13:24, 21 August 2014 (UTC)
That is to say, if I put this in a page, my extension works just fine and I can do whatever I need with the video.
<henry width="400" height="300" file="/images/a/ad/GH-Scouts.mp4" />

But, I don't want the user to have to find the path to a file. I want them to be able to enter the tag like this and have that translated by the filepath parser function into the full path.

<henry width="400" height="300" file="{{filepath:GH-Scouts.mp4}}" />
But the file attribute gets passed as a string (including the curly braces) to my tag extension. I want {{filepath:GH-Scouts.mp4}} to return the path first and pass that to my extension. It seems that my tag extension is parsed first, before the parser function (filepath) has a chance to get processed. I thought making my tag get processed later would do the trick, but apparently that was wrong. Does that make sense?
Note, I also tried it like this with no better results:
<henry width="400" height="300">{{filepath:GH-Scouts.mp4}}</henry>
Henryhartley (talk) 13:37, 21 August 2014 (UTC)
Content that is passed to a tag extension is never parsed, iirc. So the easiest way should be:
Let the users pass the filename ("name.mp4") to your extension and you do the following:
$file = wfFindFile( $filename );
$fileUrl = $file->getFullUrl(); // this will contain a fully qualified url to the file
Documentation:
https://github.com/wikimedia/mediawiki-core/blob/61c989cfc04b98f221e5e9106018ebfed3255c39/includes/parser/CoreParserFunctions.php#L908
https://doc.wikimedia.org/mediawiki-core/master/php/html/GlobalFunctions_8php.html#a6f62cc18b743211dffaf3919d8d1dfdf
https://doc.wikimedia.org/mediawiki-core/master/php/html/classFile.html#af8c5eb22ef823da22ef335f2fdb11e30 Florianschmidtwelzow (talk) 14:15, 21 August 2014 (UTC)
That's exactly what I needed. Thanks. Henryhartley (talk) 16:40, 21 August 2014 (UTC)

How to use the OR operator in queries?

Hi, I'm having a bit of trouble getting my query to work properly.

Basically, I need to use an OR operator - Which seem non-existent in Mediawiki unless you use the query function. The issue is, however, that the query function doesn't recognize shared database tables - Which I need.

Here's how my query looks:

SELECT post_id FROM `blog_posts` WHERE type = "published" AND '.$comp_author.' = "'.$author_get.'" AND ('.$comp_tag_1.' = "'.$tag_get.'" OR '.$comp_tag_2.' = "'.$tag_get.'" OR '.$comp_tag_3.' = "'.$tag_get.'" OR '.$comp_tag_4.' = "'.$tag_get.'" OR '.$comp_tag_5.' = "'.$tag_get.'") ORDER BY post_datetime DESC LIMIT 6'.$f_offet.'

How can I make use of the OR operator using Mediawiki's query system? 184.155.109.183 (talk) 00:21, 21 August 2014 (UTC)

I think you mean the database abstraction layer, yes? If so, you can simply submit your conditions as a string, instead of an array. If you don't want to build the list manually, you can use the DatabaseBase::makeList method with the second parameter "LIST_OR", see the docs for more documentation of this:
https://doc.wikimedia.org/mediawiki-core/master/php/html/classDatabaseBase.html#a8bc0559631db5130e6841b5e5873ac3e
And for the select method itself:
https://doc.wikimedia.org/mediawiki-core/master/php/html/classDatabaseBase.html#a76f9e6cb7b145a3d9020baebf94b499e Florianschmidtwelzow (talk) 06:50, 21 August 2014 (UTC)
Thank-you for your reply!
It seems that, oddly, makeList doesn't work within special pages, I keep getting:
Call to undefined method SpecialViewPosts::makeList()
Does makeList not work in Special Pages? Is there anyway to make my own 'list' without it? 184.155.109.183 05:34, 22 August 2014 (UTC)
...And just to be clear, if there are any makeList alternatives, I'd still need to OR function to work in some form. 184.155.109.183 05:37, 22 August 2014 (UTC)
...And I apologize for a third reply, but if makeList CAN work within SpecialPages, then how would that look in a query, exactly? My query + the list look like this at present:
  $conds1 = array($comp_tag_1 => $tag_get,
       $comp_tag_2 => $tag_get,
       $comp_tag_3 => $tag_get,
       $comp_tag_4 => $tag_get,
       $comp_tag_5 => $tag_get);
  $conds_var1 = $this->makeList( $conds1, LIST_OR );
       $dbr = wfGetDB(DB_SLAVE);
	$result = $dbr->select('blog_posts', array(
	'post_id'
	) , array(
	'type' => 'published',
	$comp_author => $author_get,
        ($conds_var1)
	) , __METHOD__, array(
	'ORDER BY' => 'post_datetime ASC DESC LIMIT 6 $f_offet'
	));
Aside from the fact that makeList isn't working right now, is that query even correct? 184.155.109.183 05:50, 22 August 2014 (UTC)
makeList isn't a method of SpecialPage, it's a method of DatabaseBase. So use $dbr->makeList( $conds, LIST_OR );
And the condition parameter expect one array i think. I don't know, what happens, when you try to give two arrays. o please use a string if you want to combine or and and conditions. E.g. use $conds_and as a string for makeList( $and_conditions, LIST_AND ); and $conds_or as a string for makeList( $or_conditions, LIST_OR ); Florianschmidtwelzow (talk) 13:54, 22 August 2014 (UTC)

Extention for Changing / resetting new password for other users

Hello,

Is there any extention or something else to change / reset other users password?
System configuration
Product Versie
MediaWiki 1.22.5
PHP 5.3.3 (apache2handler)
MySQL 5.6.19-log
62.41.129.102 (talk) 08:53, 21 August 2014 (UTC)

I tried to follow: http://www.mediawiki.org/wiki/Extension:Password_Reset#Installation
But I can not download the Special:ExtensionDistributor/PasswordReset: file. It doen not exist 62.41.129.103 09:22, 21 August 2014 (UTC)
mw:Extension:Password_Reset says that the latest version was in 2008. It's likely that some things broke in the meantime. AKlapper (WMF) (talk) 10:57, 21 August 2014 (UTC)
is there any other options?
How can i reset password of an other user?


thanks 62.41.129.103 11:53, 21 August 2014 (UTC)
All you need is explained in this Manual :) Florianschmidtwelzow (talk) 12:19, 21 August 2014 (UTC)

Trying to install MediaWiki for 2 hours

I downloaded xampp v1.8.3 and downloaded mediawiki via git bash using "git clone https://gerrit.wikimedia.org/r/p/mediawiki/core.git" I extracted "core" to htdocs in xampp file directory, opened xampp control and started apache and mysql. I copied the index of DefaultSettings.php and created a LocalSettings.php with the same index as DefaultSettings.php. Then changed DBuser to root and password to two single quotes in a row (i do not have password for root user and wiki doesn't show two blank single quotes). In the installation guide, it says that "If you already have a database server and know the root password for it, the MediaWiki installation script can create a new database for you." yet when I type localhost/core/index.php, I get an error like this:

Sorry! This site is experiencing technical difficulties.

Try waiting a few minutes and reloading.

(Cannot contact the database server)

Additionally, I tried to create db by myself with the following code:

create database wikidb; (I also changed the DBname in LocalSettings.php) grant index, create, select, insert, update, delete, alter, lock tables on wikidb.* to 'root'@'localhost' identified by ; (again there are two single quotes in a row after identified by)

mysql creates db yet returns an empty result set.(I think this means that granting was unsuccessful)

After creating db, localhost/core/index.php gives the following error:

"A database query error has occurred. This may indicate a bug in the software."

What should I do? Thank you guys in advance:) FurkanIpek (talk) 14:43, 21 August 2014 (UTC)

Hi!
If you are not a developer, then you should probably not use the Git checkout, but the regular tarballs. Get the file from here:
http://releases.wikimedia.org/mediawiki/1.23/mediawiki-1.23.2.tar.gz
and extract that one into your htdocs directory.
After that make sure your servers (Apache and MySQL) are running and visit the wiki with your webbrowser. You will then be guided through the rest of the installation process. See Manual:Installation_guide for more information on how to install MediaWiki! 88.130.122.242 16:45, 21 August 2014 (UTC)

We at ZipcodeZoo.com are considering MediaWiki to handle most of our millions of pages. We would generate such MediaWiki records from code that read and formatted the information in our existing database, and from then on allow MediaWiki users to edit these pages. But we have a few, such as http://zipcodezoo.com/List/BirdFinder.asp, that use vbscript to invoke mysql queries and format results, all tailored to user input in form fields. Such external pages would never be edited by a user, and need not be stored in any MediawWiki table. Is there a way to do this?

- David Stang ZipcodeZoo.com webmaster 173.10.169.197 (talk) 16:12, 21 August 2014 (UTC)

I don't know if I've understood correctly, but you can add links to any page just like the link you posted on your message, even if it points to the same server where MediaWiki is hosted. Ciencia Al Poder (talk) 20:24, 21 August 2014 (UTC)

MediaWiki Ask Query and Category Pages

I have created two pages in a MediaWiki: John, and Category:Smith (note that the page Smith is a category page). Both pages were part of the Category:Person. When I run an Ask query to return all the pages that are under the category Person, only the page John is returned. {{#ask: Category:Person | ?label}}. It seems to me that the Ask query does not return pages that are category pages.

Any comment or solution to this problem? 2607:F720:F00:403D:2CE8:C8EC:DA11:BCDE (talk) 19:31, 21 August 2014 (UTC)

#ask is part of SMW, not core MediaWiki. You should go https://www.semantic-mediawiki.org/ to get support for it. Jackmcbarn (talk) 21:41, 21 August 2014 (UTC)

MediaWiki with LDAP and Active Directory

This post by Revibot was moved on 2015-07-11. You can find it at Extension talk:LDAP Authentication/2014#h-MediaWiki_with_LDAP_and_Active_Directory-2014-08-15T20:24:00.000Z. Ciencia Al Poder (talk) 20:22, 21 August 2014 (UTC)

Hiding users' permissions

Is there a configuration or extension that would prevent anyone but sysops from seeing what permissions another user has? Would this effectively be accomplished by blacklisting Spacial:ListUsers and setting $wgLogRestrictions to hide all promotion logs? (Using v1.22.3, PHP 5.4.31, MySQL 5.5.37-cll.) Thanks. Arctic.gnome (talk) 22:36, 21 August 2014 (UTC)

UNIQ error for GbrowseImage extension in version 1.23.2

This post by Revibot was moved on 2015-07-11. You can find it at Extension talk:GbrowseImage#h-UNIQ_error_for_GbrowseImage_extension_in_version_1.23.2-2014-08-22T01:26:00.000Z. Florianschmidtwelzow (talk) 13:48, 22 August 2014 (UTC)

Unable to download IFC file from mediawiki

Hello,

The IFC files are sucessfully getting uploaded in mediawiki while not getting downloaded and giving the below error:

404 - File or directory not found. The requested resource has been removed or renamed, or is temporarily unavailable.

The upload and download functionality is working fine for files like doc,xlsx,pdf and pptx while getting error just in case of IFC file download.

MediaWiki : 1.9 PHP  : 5.3 Database : MYSQL 6.1CE

Can any one please suggest why i am getting this error.

Thanks, Azeem 137.251.190.255 (talk) 16:41, 22 August 2014 (UTC)

Hi Azeem!
If your MediaWiki version really is 1.9, then you should really upgrade! This version is maybe around 5 years old and it is no longer supported. It also has tons of security holes and - and I think this is your problem currently - it is absolutely incompatible with PHP 5.3.
As a first step, you should upgrade MediaWiki! The steps are described on Upgrade! 88.130.104.217 22:46, 22 August 2014 (UTC)

Thumbnail errors

MyWiki
MediaWiki 1.23.2
PHP 5.3.28 (cgi-fcgi)
MySQL 5.5.37-35.1
Lua 5.1.5

Having trouble with message commons I think, on gallery pages like this one Space Gallery, the gallery is of different layouts ie. <gallery></gallery> and in wiki-tables. The image calls are all the same:

[[File:|200px|thumb|center|<center></center>]] 

or the wiki-table layout and
File:|<center></center> for the <gallery></gallery> layout. If I upload a local copy of the broken thumb file, it works.

Example:

With broken thumbs < http://mywiki.everythingfoodanddrink.org/w/index.php?title=Just_Cool_Stuff_Gallery&oldid=13492 >

After local upload < http://mywiki.everythingfoodanddrink.org/w/index.php?title=Just_Cool_Stuff_Gallery&oldid=13516 > - FlightTime (open channel) 17:23, 22 August 2014 (UTC)

One Image i found which doesn't work was uploaded on commons and reused in your wiki. The Problem with this image (commons:File:City_Lights_of_the_United_States_2012.jpg): It is larger as the default dimensions of MediaWiki.
Size: 6,646 × 4,430
Mediawiki default max: 3500 × 3500
So, try to set a higher value. I see, that you use much images from commons? So it's a good idea to use the Wikimedia Commons default, which allows 50 million pixel. Florianschmidtwelzow (talk) 17:51, 22 August 2014 (UTC)

I have successfully uploaded a number of pdf files but if I use the syntax:

[[File:FILENAME | LABEL NAME]]

the page shows the correct text (LABEL NAME), but when I click on the text I am directed to 'Special Page Upload file'.

If I use the syntax:

[[File:FILENAME.pdf | LABEL NAME]]

the text 'File:FILENAME.pdf' is shown and when I click on the text I am directed to the page 'File:FILENAME' (which shows that the file exists) rather like when one clicks on a jpg image.
In either case I am unable to download the files as one would normally expect.

Version 1.23.2 MySQL: 5.6.16 phpMyAdmin: 4.1.12

Can anyone help please? 146.200.234.25 (talk) 18:42, 22 August 2014 (UTC)

You should be able to download the file from the file description page itself.
If you want to put on a page a direct link to download the file, use [[Media:FILENAME.pdf | LABEL NAME]] instead of [[File:FILENAME.pdf | LABEL NAME]]
Edit: Fixed the typo in "Media" Ciencia Al Poder (talk) 09:18, 27 August 2014 (UTC)
Ciencia Al Poder means "Media", not "Meda", for more information about this pseudo-namespace: Help:Namespaces#Media Florianschmidtwelzow (talk) 10:10, 27 August 2014 (UTC)
Thank you for your help. Problem resolved! 31.185.135.233 10:02, 8 September 2014 (UTC)

Should I use MediaWiki for my project?

Hello guys,

I am involved in an internship. My duty is to create a demo for a wiki which is a repository for process components. I am not sure about involving in such a complicated environment as MediaWiki and I really can use some advice. I have a different skin design than the one MediaWiki uses, also I need to add some rather easy functionalities to wiki which I do not need help to implement. However, I need some of the functionalities of MediaWiki like access restrictions, sign up etc. Ultimately, an experienced programmer is going to write the real wiki with full functionality using MediaWiki yet I have to be able to demonstrate the functionalities in a rather easy way.

For instance, how do I remove all of unnecessary buttons and links from my page and add my own buttons. Where is the code of my Main_Page or any other page I added by simple entering the name after the ~/index.php? So far I only could learn how to create a new skin, which is rather hard because it is not simply writing a css code. If there is a way to code the way I want, how much is it harder than coding the same from scratch using just html, css and js. I didn't install MediaWiki from the git, is this a problem? ANY idea will be appriciated, I am really new to software engineering and just finished my first year of BSCS. I don't want to screw things up in my very first job:) FurkanIpek (talk) 23:46, 22 August 2014 (UTC)

Hi!
MediaWiki has a broad user base, it is used in many places, has much software built around it and - compared to other wiki systems - it will be rather easy to extend it the way one wants and to get help should that be necessary. So if you say you want a wiki, then you should really use MediaWiki and not something else.
If you want to create an own skin, then you can start from scratch (hard) or take an existing skin (many are provided for download from their maintainers) and change this one the way you like.
As for the functionalities you mention: Sign up and so on are present in MediaWiki, but when it comes to access control you should read Manual:Preventing_access. Bottomline: MediaWiki is not made for access control.
What do you mean with "buttons"? The buttons "Page", "Edit", "History" and so on? Can be hidden with CSS. Own buttons can be added via hooks, here is a list of all available hooks.
The code of a certain page can be viewed using the "Edit" button. If you in contrast mean the template (which is used for every page), then you should have a look at the according skin file - with the default that's skins/Vector.php.
What exactly do you mean with "process components"? Some things and each one should have its own page with information, maybe this information should be displayed based on a template? Something like that? 88.130.104.217 03:53, 23 August 2014 (UTC)
Thank you for your answer, it answered a lot.
And as for the process components, indeed they are all going to have their own pages, yet should be grouped and listed in separate pages before user reaches the specific page.
Do I have to write the CSS for hiding buttons separately or should I change vector.php? By buttons I meant every link on the menu located at the left or discussion session etc.
Is it possible to show/hide some buttons depending on login status? FurkanIpek (talk) 09:32, 23 August 2014 (UTC)
A grouping or listing of pages is possible, if you put them in Categories. That basically allows you to create a kind of category tree: Main categories, sub-categories, (sub-subcategories if you like, ...) and then the actual pages.
For CSS it depends: If you say you basically want to use the Vector skin, then you can simply add some lines of CSS to the wiki page MediaWiki:Vector.css in your wiki. However, if you basically want to have another, an own skin, then you should add an own skin with its own files in the filesystem and then you can (you better should) add the CSS in these skin files directly. 88.130.75.138 10:11, 23 August 2014 (UTC)
For the sake of help, and for confessing such an idiot I am, I am gonna write here how I included page specific tabs in Vector skin. I dug up around the net to find a solution, instead of just going to Vector.php and understanding the code.
firstly add this line to the Vector.php, above the html code:
$this->data['title'] = $this->getSkin()->getTitle();//helps you get the title of the current page, i.e. MainPage
then, add this code to the div "mw-navigation". I changed the left-navigation's code, you can add it whereever you like:
<?php if( $this->data['title'] == "Page-Title" ) { ?>
write html code here
<?php } ?>
Generally, sounds like a bad solutions since case specific code is not favored in vector.php, like everything is automated with a lot of variables thus ( x == "page-title") seems funny. However, there may be some cases where this solution suits just well. FurkanIpek (talk) 20:26, 24 August 2014 (UTC)

li (or ul) position for category, file and etc.

Not horisontal, but vertical http://i60.tinypic.com/2iiu6ph.jpg Dimon4ezzz (talk) 14:53, 23 August 2014 (UTC)

Hi, do you have a question related to that image and positioning of items? If so, feel free to ask it here. AKlapper (WMF) (talk) 15:32, 24 August 2014 (UTC)
No, it's about categories and link in "File" menu Dimon4ezzz (talk) 19:47, 28 August 2014 (UTC)
OK. Do you have any question? If you have a question, please ask a question. Thanks. :) Malyacko (talk) 20:07, 28 August 2014 (UTC)
How to make it horisontal, not vertical? Dimon4ezzz (talk) 14:40, 29 August 2014 (UTC)
Use CSS:
display: inline;
list-style-type: none;
Florianschmidtwelzow (talk) 13:41, 1 September 2014 (UTC)
when I must to add it? in ul or li? Or some places?? Dimon4ezzz (talk) 10:12, 3 September 2014 (UTC)
list-style-type:none; to ul and display: inline to li iirc. Florianschmidtwelzow (talk) 11:38, 3 September 2014 (UTC)
can you write a CSS-code? I don't understand Dimon4ezzz (talk) 15:19, 6 September 2014 (UTC)
Moment! I think i misunderstood you :/ You want to have the links vertical? Then my code is false, sorry for confusion! Florianschmidtwelzow (talk) 07:32, 8 September 2014 (UTC)
I want have a horisontal links. But I don't know, what CSS I must to add to main.css Dimon4ezzz (talk) 16:08, 12 September 2014 (UTC)
plz! can you write CSS code? I don't understand Dimon4ezzz (talk) 12:47, 7 September 2014 (UTC)
Someone?? Dimon4ezzz (talk) 13:24, 1 September 2014 (UTC)

Wrapper divs?

What do I need to do to put wrapper divs around certain elements? For example, I want to do the following:

  • Have a wrapper div for the lead text of articles.
  • Have a wrapper div that includes the Table of Contents and the lead text.

I am using the Vector skin and I'm rather surprised these divs don't already exist: if they did, the changes I want to make would be simple edits to Common.css, but as it stands now, there is no way to consistently select, say, only the lead text, or to position the ToC precisely without having to tediously invoke magic words on every page of the wiki (which is so implausible I'm completely unwilling to go that route). I have not found any extensions that assist in this or accomplish what I want them to do. (I'm also surprised each section of a page doesn't have its own containing div, but I've gotten around this by using SectionHide).

I haven't found anything at all about wrapping the lead text. All I have found about positioning the ToC precisely is either on a page-by-page basis (not what I want) or is a Common.css edit that does not accomplish what I need it to. I really, really need a wrapper div. It's not just for this sort of thing either: I know in the past I've wanted wrapper divs for other contexts as well, these are a just a few examples.

I have tried reading every skinning manual I could find to determine where the actual code for the divs for these elements are, to no avail. I tried digging in Vector.php, linker.php, skin.php, skintemplate.php, and a handful of other MediaWiki files just to try to make sense of where/how these things are handled and I still don't get it. I can't even figure out what the code labels things like the lead text, and it seems like the Table of Contents by default is always invoked with the entirety of the article content which makes it even more difficult to track down in the code. The best I could do was find where the ToC divs were generated in linker.php. I've searched through the documentation for hours and Googled everything I can and I can't figure this out on my own.

Is this something I can do with a skin? An extension? Some edit to Common.js? If one were to add a wrapper div to the lead text, or the lead text and table of contents, where would I add that code? Thanks, any help is appreciated. Natrashafierce (talk) 23:41, 23 August 2014 (UTC)

I've been looking at the MediaWiki projects for a few months now. Just browsing and using the your links provided. The reason I've been surfing your site is because it seems my computer has somehow become a part of your hosting network. If this is not the case please let me know and kindly point me in the direction that can help me with my problem. My computer has been taken over by a network that I cannot locate. I dont know who made these changes to my computer. I do not even has an email address so I can write them.
So if I am one of your host computers let me know and enlighten me how this came to be. And if not can you point me in the right direction. hphpto@gmail.com 98.154.186.95 19:54, 24 August 2014 (UTC)
Just to make sure, I'm guessing you intended this for the MediaWiki people on a new thread, and not as a response to me? Natrashafierce (talk) 20:33, 25 August 2014 (UTC)

Text size

How to make my wiki's font size like Chinese wikipedia's size? 223.140.162.29 (talk) 12:19, 24 August 2014 (UTC)

You mean like this?
For the content area they have set a font-size of 14px and a line-height of 22.4px. You can add CSS styles to change your wiki's appearance to the wiki page MediaWiki:Vector.css in your wiki. 88.130.103.229 13:39, 24 August 2014 (UTC)
I tried to add style="font-size:14px; line-height:22.4px; in my wiki's MediaWiki:Vector.css page, but It didsn't work. 223.140.162.29 18:48, 24 August 2014 (UTC)
You need to add css rules like this:
.mw-body {
  font-size:14px;
  line-height:22.4px;
}
Florianschmidtwelzow (talk) 19:53, 24 August 2014 (UTC)
NO!!!!...
it's more smaller than before.. now it looks like 12px, then I tried to change the size become 16px, but It make my wiki interface offset.. 223.140.162.29 07:01, 25 August 2014 (UTC)

WikiEditor will not displayed after upgrade

This post by タチコマ robot was moved on 2015-06-26. You can find it at Extension talk:WikiEditor/2014#h-WikiEditor_will_not_displayed_after_upgrade-2014-08-25T08:05:00.000Z. Florianschmidtwelzow (talk) 08:20, 25 August 2014 (UTC)

Installing Vagrant is unbelievably hard.

Details here. Gryllida 09:52, 25 August 2014 (UTC)

Why you post this here? :? Florianschmidtwelzow (talk) 11:19, 25 August 2014 (UTC)

MySQL user for MediaWiki: What rights?

I want to setup a MySQL user for MediaWiki (XAMPP on Windows). As there are other software running on the server, I would like to give each software its own MySQL user, so the software can only access its own MySQL tables.

My question is, which MySQL-rights does the MediaWiki software need, and which rights can (or should) I revoke?

Manual:MySQL did not offer any guidance. Tony Mach (talk) 09:55, 25 August 2014 (UTC)

I just saw, the installer has created a 'bn_mediawiki' MySQL user. However it has "ALL PRIVILEGES" on the bitnami_mediawiki table - is that OK? Tony Mach (talk) 10:28, 25 August 2014 (UTC)

Found this: Manual:Security#General_MySQL_recommendations
Quote: "The database user only needs to have SELECT, INSERT, UPDATE and DELETE permissions for the database."
I added a link at Manual:MySQL. Tony Mach (talk) 11:55, 25 August 2014 (UTC)
I don't think this list is complete. I currently do not know of a case where columns or tables have actually been removed, but that would require the DROP privilege. And during upgrade it will be necessary for the update.php script to create new columns and new tables. How should that work without ALTER table and CREATE table permissions? 88.130.82.11 12:27, 25 August 2014 (UTC)
You can set a DBadminuser (with more rights) for the maintance scripts:
Don't know if that user will handle upgrade.
One more thing: On windows, the installer asks for the root password of the MySQL root account. Tony Mach (talk) 10:09, 26 August 2014 (UTC)
> Don't know if that user will handle upgrade.
Both variables will be used in the update script as well.
> On windows, the installer asks for the root password of the MySQL root account.
That's possible on Linux, too. But you can change the username (you should!), so it's only a suggestion :) Florianschmidtwelzow (talk) 05:36, 27 August 2014 (UTC)
Yeah, I did that. I have now two users, I created one "everyday" user (with only the minimal rights), and one for admin tasks.
Furthermore, I move all account information out of LocalSettings.php, and into a "account file". (This was suggested somewhere on this wiki, forgot where). That "account file" resides *not* in the htdocs hierarchy, so it should not be accessable via http (in case something goes wrong with the apache settings).
Let's see how well this goes when we need to update ... Tony Mach (talk) 09:31, 9 September 2014 (UTC)

Problem with files: JPG vs. jpg

Hi I just upgraded a wik form 1.20 to 1.23 aund unfortunately I encounter problems with my uploaded .JPG files (there are tons of those).

Files whose Filenames are in uppercase letters (.JPG) are no longer shown within the wiki. Instead a link is presented on wikipages. Trying to download those pictures form their File:-Wikipage results to an Error in the browser.

Forbidden

Invalid file extension found in the path info or query string.

When I move the files to a name that has lowercase fileextension (.jpg) then all works fine. I 'm pretty shure that the problem was not there in V 1.20.

Here are two examples:

https://aquanautweb.de/testwiki/index.php?title=Broken_Filelinks

https://aquanautweb.de/testwiki/index.php?title=Datei:DSCN1501.JPG

https://aquanautweb.de/testwiki/index.php?title=Datei:DSCN1499.jpg


Any ideas are welcome. Carchaias (talk) 15:34, 25 August 2014 (UTC)

This is a bug filed in https://bugzilla.wikimedia.org/show_bug.cgi?id=66667 Carchaias (talk) 07:08, 26 August 2014 (UTC)

Stop words in MediaWiki

Hello everybody, I am experience a strange behaviour of Media Wiki. When I am editing a page and use words like cmd.exe, command.com, VARCHAR, I get a "Forbidden You don't have permission to access /wiki/index.php on this server." My question is: It is any stop words list in MediaWiki?

Many Thanks,

Cristian Cotobacu (talk) 21:34, 25 August 2014 (UTC)

Hello!
No, and if there were any, you will become a MediaWiki-own error message/page instead of an error page by the webserver :) Is you MediaWiki-Installation in the folder wiki/ of your domain? Can you post the link to your wiki? Florianschmidtwelzow (talk) 05:49, 26 August 2014 (UTC)
This looks like your host have installed mod_security or something that automatically blocks all requests with such keywords Ciencia Al Poder (talk) 09:33, 27 August 2014 (UTC)
Hi,
Thanks for your answer. The site is hosted on cpanel. I don't know if the mod_security is installed by the provider but I'll ask. By the way this is a PHP module isn't it?
Many Thanks,
Cristian Cotobacu (talk) 10:47, 27 August 2014 (UTC)
You can test it by yourself. Just create a new file into the root of your webspace (or somethin else you can access via your browser), like "test.php", and fill in this content:
<?php
   echo phpinfo();
?>
Open the file (test.php) into your webbrowser and look at the content there, especially for "loaded modules" or something else. Is there "mod_security" listed? Florianschmidtwelzow (talk) 12:46, 27 August 2014 (UTC)
I don't know if it will be listed in PHP, but AFAIK, it's not a PHP module. It's hooked directly in the webserver (apache, IIS, etc) Ciencia Al Poder (talk) 15:39, 27 August 2014 (UTC)
Yes i know, but sometimes it's listed, sometimes not. Another way is the apache_get_modules() function, but it's possible, that there aren't all modules, too. But it's a try to check if it is installed. If it is listed -> it's installed, if not -> the hoste must check :) Florianschmidtwelzow (talk) 08:33, 28 August 2014 (UTC)

Moved website to Wix.com-Filezilla can't be accessed

We've recently established a new website through Wix.com and pointed both our (Bluehost) domains to our primary site, which is www.triconaquatics.com. When our website was hosted by Bluehost, we would provide our clients with the following: plans@triconaquatics.com/project name to allow them access to any certain set of plans in Filezilla. Since moving our domains to Wix.com, this no longer works. We've been unsuccessful working with Bluehost and Wix to correct this problem. Any assistance would be greatly appreciated.

Thank you, Belinda 71.142.61.54 (talk) 22:14, 25 August 2014 (UTC)

Hi Belinda,
wix.com obviously does not offer FTP access, which explains why you cannot connect to it with FileZilla, an FTP client. 88.130.121.28 01:27, 26 August 2014 (UTC)

[RESOLVED] How to integrate Bumpin.com tool bar?

Hello, can anyone tell me please if it is possible to integrate the Bumpin tool bar on my wiki website?

Website of the tool bar: Bumpin.com

All i need to do is to add this code but i'm not sure on wich file i need to add it. <script type="text/javascript" src="http://www.bumpin.com/bar"></script>

  1. MediaWiki 1.23.1
  2. PHP 5.4.31 (cgi-fcgi)
  3. MySQL 5.5.36-cll-lve

Thank you Karldan (talk) 04:57, 26 August 2014 (UTC)

Read Manual:Interface/JavaScript to see how include JavaScript code.
To include a script URL (for example, <script type="text/javascript" src="http://www.bumpin.com/bar"></script>
you should use instead: $.getScript('https://www.bumpin.com/bar'); Ciencia Al Poder (talk) 09:32, 27 August 2014 (UTC)
Thank you for your answer,
I'm not a good coder, i inserted the code you show me in LocalSettings.php but no success. all i had is a white page. I'm not sure if this is the right file to insert this code.
I will try some other string you show me in Manual:Interface/JavaScript
Thank's again. Karldan (talk) 20:07, 29 August 2014 (UTC)
Seriously. Where on earth I pointed you to alter LocalSettings.php? Ciencia Al Poder (talk) 17:07, 31 August 2014 (UTC)
Sorry buddy, don't get mad, all i said is i tried this in my LocalSetting.php, i didn't said you pointed me there, if this is not the good file to put this code, just point me to the good file, that's all...As i said, i'm only asking for a little help because i'm NOT A CODER, i'm trying to get my way into all of this geez... Karldan (talk) 18:27, 31 August 2014 (UTC)
Usually you include JavaScript by adding it to one of the MediaWiki-pages of your wiki, e.g. to the page MediaWiki:Common.js in your wiki. 88.130.101.168 21:57, 31 August 2014 (UTC)
Thanks a lot for your help, this was very appreciated.
Got it work with this extension: Extension:WikiBanner
All I had to do after installing this extension is to insert the javascript code inside the quote instead of any banner code and it works.
Once again, thanks a lot. Karldan (talk) 14:43, 16 September 2014 (UTC)

Problems with skin after upgrading.

Hello last time we upgraded our page to the last version and now we have some problems with skin.

Could somebody help us?

Page:www.wiki.westeros.pl TraaBBIT (talk) 07:21, 26 August 2014 (UTC)

Hello,
this gives all information for you :) Florianschmidtwelzow (talk) 08:27, 26 August 2014 (UTC)
Don't know how to fix that. Tried and fall. TraaBBIT (talk) 10:13, 27 August 2014 (UTC)
"How to fix that" is described in the link that Florian pasted, especially in https://www.mediawiki.org/wiki/Manual:Skin_autodiscovery#Migration_guide . If something is unclear, you might want to bring up specific questions. AKlapper (WMF) (talk) 11:12, 27 August 2014 (UTC)
OK. My skin is based on Vector.
In newest version of Mediawiki there is Vector folder with some files.
Should I also do that procedure? TraaBBIT (talk) 11:35, 28 August 2014 (UTC)
Hi please download all the skins it says are having problems because mediawiki 1.23 only include vector and monobook. which means the other skins you have have not been updated. and please update your extensions for mediawiki 1.23.2. 94.197.122.85 12:00, 28 August 2014 (UTC)
The post by 94.197... is misleading and will not solve the problem.
The solution for these messages is to remove those skin files, which are located directly in the skins/ folder: Simple.php, Nostalgia.php, MySkin.php, Standard.php and Chick.php. The same procedure also is described at Manual:Skin_autodiscovery by linking to Manual:Upgrading#Files_remaining_that_may_cause_errors.
If you are using an own skin, then you will sooner (now) or later (when you upgrade to MediaWiki 1.25) have to update that skin as well. As long as you have not upgraded it, you will get a PHP warning concerning this skin as well (and that not only in MediaWiki 1.25, but also in 1.23 already). 88.130.124.240 12:11, 28 August 2014 (UTC)
Please remove Simple skin since it was removed and you cannot download it anymore. Please remove MySkin because it is no longer available to get. Please remove Standard because it is not available to download. Please Remove Chick because it is no longer available to download.Please download Nostalgia skin here https://git.wikimedia.org/summary/mediawiki%2Fextensions%2FNostalgia and please download 94.197.122.85 12:25, 28 August 2014 (UTC)
Manual:Upgrading#Files_remaining_that_may_cause_errors says it all. 88.130.124.240 13:00, 28 August 2014 (UTC)
I deleted all skins. Leave only vector. TraaBBIT (talk) 11:58, 29 August 2014 (UTC)

Some Files Not Typed Properly

I have an xls file to upload.

  • $wgFileExtensions includes an entry for xls.
  • phpinfo() output says PHP Fileinfo extension is loaded.
  • $wgLoadFileinfoExtension = true;

In my environment, manually checking type with Fileinfo yields: application/vnd.ms-excell However, when attempting to upload this same file MW 1.23.2 it yields: File extension ".xls" does not match the detected MIME type of the file (application/zip).

It's as though something else is being used for MIME type detection on files. Any idea what might cause this? (and how to fix it?). Thanks! Lbillett (talk) 19:38, 26 August 2014 (UTC)

Hi!
Manual:$wgFileExtensions has more info on file uploads. However, I think your problem is not related to the file type, but to the MIME type. The MIME type "application/vnd.ms-excell" according to Manual:$wgMimeTypeBlacklist should no longer be blacklistet in your MediaWiki version. However, MediaWiki by default uses the mapping provided in includes/mime.types; this is configurable with Manual:$wgMimeTypeFile. Maybe this detects your file somehow incorrectly? 88.130.86.46 21:53, 26 August 2014 (UTC)
Ah, interesting. I tried setting $wgMimeTypeFile = "/etc/mime.types"; and attempted to upload the file again, but with the same result (I sooo hoped that was the answer!). It's mime type is being detected as application/zip, when should (I think) be application/vnd.ms-excel. Setting $wgMimeTypeFile = null; allows the upload, but still types it incorrectly. If you try to move it, it "doesn't match it's type".
What I really don't get is how fileinfo types it correctly, but somewhere mediawiki (which I've specificaly set (supposedly) to use fileinfo) does not. It looks like maybe MimeMagic.php could be doing it, after somehow failing to type it from the file's header data.
I tried disabling type detection altogehter with $wgVerifyMimeType = false; (there's low security risk in my environment), which allows uploading of files, but blows up when you try to move them. Seems the setting applies at upload, but not during a file move.
Might there be a way to set MIME type based on the file extension only? It would save a lot of these headaches, and be of little risk in our particular installation. Lbillett (talk) 17:33, 2 September 2014 (UTC)

Can I create a new page with user inputs?

Here is the deal. I have a wiki page called "Create". There are going to be some html forms in this page, created using this tutorial.

When user submits the inputs, I want wiki to create a new page with these inputs, and it should add the page to a category automatically, user is going to choose in which category the new page belongs via a drop-down menu in html forms.

Another alternative might be using Create_Page extension. I haven't tried it on 1.23 version yet if it works, would it be possible to use this extension? First think comes to my mind is to add an additional functionality to this extension which imports the creation page to an xml file then processes the xml file to create a new page. However I don't know much about importing features. Can inputs be imported to an xml file? FurkanIpek (talk) 20:38, 26 August 2014 (UTC)

I think this functionality can be provided by Extension:Semantic Forms Ciencia Al Poder (talk) 09:35, 27 August 2014 (UTC)
Hey Ciencia!
Thank you for your answer. However, I have been trying to learn MediaWiki for more than a week and I was told to build the project within it. So, I will also have a look at the semantic mw yet I was wandering if you have any feasible ideas within the mw itself. I think smw and mw are almost the same but I have left with just 2 weeks before I finalize my wiki so I am not so sure about changing to the smw. FurkanIpek (talk) 20:14, 27 August 2014 (UTC)
Within MediaWiki itself, that's is, just a plain MediaWiki with no extensions installed, no. You'll have to create your own extension to do that. But Semantic Forms seems to provide that functionality, so if it works for you, use that rather than trying to reinvent the wheel :)
You can import pages from XML. See Manual:Importing XML dumps Ciencia Al Poder (talk) 09:15, 28 August 2014 (UTC)

14px text size

Hi, I'm trying to make my wiki's text become 14px, Just like chinese wikipedia, I tried to add

.mw-body {
 font-size:14px;
}

to my MediaWiki:Vector.css, but it make my text more small... 223.143.117.224 (talk) 03:09, 27 August 2014 (UTC)

Partial Export

My company has a wiki and I've added a few large topics with a great many linked pages to this wiki. Recently our company was bought by a much larger company. I want to export my topics so they can be integrated in the parent company's wiki.

Is it possible to do this without exporting our entire wiki?

Thanks in advance

Dan Wities DanWities (talk) 05:02, 27 August 2014 (UTC)

Hello!
Sure, that's possible :) You can use Special:Export for this or a command line script. For more information i suggest the meta wiki page Export with more information about export of wiki content. Florianschmidtwelzow (talk) 05:41, 27 August 2014 (UTC)

How to get the selected language

(Excuse me, I tried to find some answers to this question, but in doing research (and for last 18 hours) gives the answer "HTTP request timed out.")

Template:UILANGCODE returns the current language code selected by user. How can I implement a similar template my wiki (that uses Extension:UniversalLanguageSelector).

I copied Template:UILANGCODE with this code:

 
{{int:LangX}}

and Template:LangX with this code:

 
<span lang="{{{1}}}" xml:lang="{{{1}}}" class="description {{{1}}}">{{{2}}}</span><noinclude>[[Category:Internationalization templates]]</noinclude>

and always returns "<LangX>"

Is there a similar function, variable or template to use it in normal pages or templates?.

Very thanks Jmarchn (talk) 12:45, 27 August 2014 (UTC)

That page contains {{int:Lang}}, and int: is a special magic word that transcludes that message ("lang" in this example) in the current user language.
For this to work, the message should exist, or at least, the relevant MediaWiki: page. This is an artifact, that requires your wiki to have that message in all the languages you want to work with. See meta:Special:PrefixIndex/MediaWiki:Lang. So for it to work, you should create all those pages and subpages. Ciencia Al Poder (talk) 09:24, 28 August 2014 (UTC)
Very thanks!, It's all right!
I think it would be interesting to include in MediaWiki {{UILANGCODE}} or similar. Jmarchn (talk) 17:52, 28 August 2014 (UTC)
There's a bug about this in bugzilla: bug 2085 Ciencia Al Poder (talk) 18:52, 28 August 2014 (UTC)

how to authorize user without password mediawiki

I want to get into my mediawiki site without aurization, how can i?

Mediawiki 1.21 125.19.34.86 (talk) 12:58, 27 August 2014 (UTC)

If you mean you want to be able to edit your wiki without having to log in, have a look at Manual:User_rights: Setting
$wgGroupPermissions['*']['edit'] = true;
will do - and if your wiki is public, it will give you plenty of spam.
If you mean you forgot the password for your MediaWiki account, have a look at Manual:Resetting_passwords, which describes several ways of how to reset the password. 88.130.86.46 13:17, 27 August 2014 (UTC)
no actually my query is not belongs like this, actually im doing authentication with one common LDAP, from that im getting the user name value, without login again that user, i want to set the mediawiki cookies for without asking the username, that particular user have to login, 125.19.34.86 05:29, 28 August 2014 (UTC)

InstantCommons ... images disappeared

The WikiCommons images on a site I am running instantly disappeared.

I am using the InstantCommons feature - configuration: $wgUseInstantCommons = true;

I have not configured "$wgForeignFileRepos", as described here: http://www.mediawiki.org/wiki/Manual:$wgUseInstantCommons

I see that someone else has had this issue -- based on a message here; however, no resolution is described.

I do note that there is a limit on downloads (1GB?), as described here. I cannot imagine that I am near that and I don't understand how that could cause this problem.

I didn't change settings on the wiki recently. I did add the extension WikiSEO a few days ago. I cannot image this is the problem.

The wiki is here: http://librepathology.org

The version information: MediaWiki 1.23.2, PHP 5.4.4-14+deb7u14, MySQL 5.5.38-0+wheezy1 -- see here.

Any help would be appreciated. Thanks! Haribo~mediawikiwiki (talk) 17:00, 27 August 2014 (UTC)

The images reappeared. I noticed the problem at around 9:30 MDT and it resolved itself somehow at around 21:30 MDT.
I wish I could better understand the parameters associated with the InstantCommons -- that are described here: https://www.mediawiki.org/wiki/Manual:$wgUseInstantCommons
Specifically, it would be useful to understand how 'descriptionCacheExpiry' and 'apiThumbCacheExpiry' control the behaviour.
To describe the problem better:
The image pages for the images disappeared (e.g. [6] was gone): it is as if the files were all deleted from the cache and the images non-existent on wiki I am running.
The default value for 'descriptionCacheExpiry' is 12 hours. This leaves me wondering whether the issue is related to the cache.
As I upload to the commons (I have ~2000 original contributions) -- and use the InstantCommons -- I have noted that images removed from the WikiCommons subsequently disappear from the wiki I am running. I think it is good that things removed from the Commons get purged from down stream wikis. Preceding said, I cannot but help wonder about the bandwidth usage and whether there is a bug in this somewhere. On the downstream end of the WikiCommons, it would be nice to have notification (tracking) that an image is being purged, as it creates a breakage.
I suspected that the 'CacheExpiry' variables are essentially the interval between when the downstream wiki checks the Commons for an updated version/whether the file on the WikiCommons has been removed from the commons.
In any case, I hope to hear from someone familiar with the internals here -- as I really hope there isn't a repeat of this. Haribo (talk) 03:58, 28 August 2014 (UTC)

Import failed: Expected <mediawiki> tag, got

I am attempting to import an .xml file(Template:Infobox_video_game and Template:Infobox), however I'm running into some issues. It first told me that lua5_1_5_linux_64_generic/lua was not executable. After correcting the permissions, I was then shown the error 'Import failed: Expected <mediawiki> tag, got'. Here is a screenshot:
http://i.imgur.com/99S5spA.png
Here is a link to the wiki itself: http://wiki.fps-z.com/index.php?title=Main_Page
I've seen a few other posts about this but no real solutions that fixed my problem. I think I followed the right steps for getting an Infobox template for my wiki.
MediaWiki: 1.22.6
PHP: 5.4.11 (cgi-fcgi)
MySQL: 5.1.56-log
Lua: 5.1.5
http://wiki.fps-z.com/index.php?title=Special:Version 24.231.170.146 (talk) 19:50, 27 August 2014 (UTC)
And since Mediawiki isn't allowing me to make edits to that posts, here's some more info:
This is what line 51 of Import.php holds: $this->reader->open( "uploadsource://$id", null, LIBXML_PARSEHUGE );
This is what line 449 of Import.php holds: $this->reader->read(); 24.231.170.146 21:04, 27 August 2014 (UTC)
For us, that error was related to character encoding for the XML file. Not sure if your issue is the same, but worth checking. 195.200.76.252 (talk) 15:06, 15 March 2016 (UTC)

[RESOLVED] Fatal error: cannot access private property

Hi, trying to resolve an issue with file uploads. Uploading works fine, but upon successful upload, the user goes to a blank page (i.e. a PHP error). The error is: PHP Fatal error: Cannot access private property LocalFile::$description in /var/www/w/includes/filerepo/file/File.php on line 205, referer: http://[our wiki site]/wiki/Special:Upload. Files appear on the wiki fine, so at this point, it's mostly annoying. Google's not turning up anything similar. Any thoughts? 146.115.5.162 (talk) 21:10, 27 August 2014 (UTC)

Which version of MediaWiki are you using?
Do you maybe have a problem after you did an update? E.g. that you have not replaced all files with the new ones?
Do you use any extensions, which somehow manipulate file upload in some way? 88.130.124.240 21:31, 27 August 2014 (UTC)
Using MediaWiki 1.23.1 and PHP 5.5.9. Not using many extensions, and none that are related to file uploads. 146.115.5.162 22:29, 27 August 2014 (UTC)
I'd suggest to download the latest 1.23 version and reupload it again on your server. This seems like you upgraded over an old installation and some files left unmodified with the old version.
It would be good if you unpack all new files on an empty folder and copy over your data (LocalSettings.php, extensions, and uploads if they're in subdirectories of the installation) Ciencia Al Poder (talk) 09:32, 28 August 2014 (UTC)
I downloaded and upgraded to a fresh copy of 1.23.3. Copied over my LocalSettings, logo and favicon files, and 3 extensions I use -- BreadCrumbs, MobileFrontend, and HipchatNotifications. Upgrade went fine, no issues at all viewing pages, I go to upload a file... exact same error.
I feel like this must be external to MediaWiki, but don't know how to debug PHP in this instance. 18.207.1.184 15:37, 28 August 2014 (UTC)
First: The error message above is from your apache error_log, right? Can you enable error reporting in php to see the error's directly on the page (instead of a white page?). Information how to do this, you can find here. Maybe there are other erros, too? Florianschmidtwelzow (talk) 17:36, 28 August 2014 (UTC)
Yes, an error backtrace would be incredibly useful here. Be sure to set $wgShowExceptionDetails = true; Ciencia Al Poder (talk) 18:50, 28 August 2014 (UTC)
I'll try that now and post results. I also just figured out that if I uncheck the "Watch this file" then I don't get the error message. Louis 21:58, 28 August 2014 (UTC)
Actually, the error is not from Apache's log, it's what is displayed when a user uploads a file. In LocalSettings.php, we have the following enabled:
### begin debugging code
$wgDebugLogFile = "./logging/debug-output.log";
$wgDebugComments = true;
$wgShowExceptionDetails = true;
error_reporting( E_ALL );
ini_set( 'display_errors', 1 );
### end debugging code
Michael 21:22, 2 September 2014 (UTC)
Please try again and post your error message.
Your original error message from the first comment contains the "Referer:" part that's only displayed on apache's error log. Ciencia Al Poder (talk) 10:07, 3 September 2014 (UTC)
My mistake--here's the error when viewed in the browser:
Fatal error: Cannot access private property LocalFile::$description in /var/www/w/includes/filerepo/file/File.php on line 205 Michael 14:34, 3 September 2014 (UTC)
-> https://github.com/kulttuuri/hipchat_mediawiki/blob/master/HipchatNotifications/hipchat_notifications.php#L165
It's Hipchat extension. It tries to get the description of an uploaded image/file via LocalFile (which is private). Can you try to remove the extension and try again? Florianschmidtwelzow (talk) 15:08, 3 September 2014 (UTC)
I edited the code out that got the description field, and it "works", although the notification is a little messed up. Thanks for the help! Michael 16:01, 3 September 2014 (UTC)

[RESOLVED] Diff not showing in MW 1.23

When I go in to view the differences between revisions, there is nothing there even though recent change shows there is. I tried modifying a page and then going to the changes tab and it shows no changes.

I checked and I do have the diff3 binary in the correct location and my localsettings points to it as well.

Am I missing something?

Running MW 1.23 with PHP 5.5 and mySQL 5.5 on an Ubuntu 14.04 server. 76.14.0.190 (talk) 22:51, 27 August 2014 (UTC)

Is diff3 usable for other applications?
Is your wiki public so that we could see how the error looks like?
Do you get some kind of error message? (Maybe a PHP error or an error when you try to execute diff3)? 88.130.124.240 23:01, 27 August 2014 (UTC)
Hmmm... it seems like there's an extension called "Wikidiff2" enabled, but I don't have it enabled in my localsettings nor is it in the extension folder. I wonder how it's being enabled... I never even downloaded it. 76.14.0.190 23:03, 27 August 2014 (UTC)
Ok, found the issue. The extension was enabled through the /etc/mediawiki-extensions/extensions-enabled symlink file.
I did an upgrade from MW 1.19 to 1.23 and the 1.19 version was from apt-get repository. I guess that was the remnant from that install. I think I'll stick to manual install next time... 76.14.0.190 23:11, 27 August 2014 (UTC)
That's one of the reasons why you should do a manual install. :-) 88.130.124.240 23:21, 27 August 2014 (UTC)

Simple security extension

Simple security extension "ifusercan" extension is not working in mediawiki 1.21. Please guide how can i proceed. 125.19.34.86 (talk) 05:36, 28 August 2014 (UTC)

Maybe it will good, when you give a link to the extensions you mean :) I think the first you mean this one? This Extension is really old and not supported anymore, so i think it's impossible to use it with newer MW versions without muc of own work :)
P.S.: MediaWiki 1.21 isn't supported, too. Please upgrade to the newest relase, MediaWiki 1.23, or at least to release 1.22. More information you can find here, Upgrade information here. Florianschmidtwelzow (talk) 08:25, 28 August 2014 (UTC)
without upgrade from mediawiki 1.21 I want to use this extension guide mehttp://www.mediawiki.org/wiki/Extension:SimpleSecurity 125.19.34.86 09:39, 28 August 2014 (UTC)
There are two grea blocks on the Extension page:
First: MediaWiki isn't a content management system, so it's not written to povide per-page access restrictions. More information
Second: The author isn't maintaining this extension anymore. The last update was in 2012 (2 years ago). Also: I see no info saying, that the Extensions works for newest MediaWiki vesions.
That all means, that, if the Extensions doesn't work fr MediaWiki 1.21, it's possible, that there is no easy way to fix this with just "guide me" :)
Maybe it's possible, that someone can help you, when you post the error message, if any, or what doesn't work exactly :) Florianschmidtwelzow (talk) 10:23, 28 August 2014 (UTC)
Ok thanx will try. but now my doubt is different from this, one user present in mwuser , username is consider as "111", if any one opening my site, by default i want to make it login as 111 user without asking username and password, how can i do? 125.19.34.86 11:08, 28 August 2014 (UTC)

How to add transcribing and proofreading in mediawiki?

How do I add transcribing and proofreading in mediawiki(server)? The Proofread_Page extension also requires DjVuLibre, Qt and netpbm on the server? How do i do that? 208.116.10.33 (talk) 07:09, 28 August 2014 (UTC)

What is "transcribing" in this context? Where exactly does https://www.mediawiki.org/wiki/Extension:Proofread_Page mention those requirements? And regarding installating software on a server, that highly depends on the server and the permissions that you have - how do you "normally" install software on the server? AKlapper (WMF) (talk) 15:47, 28 August 2014 (UTC)

How to create a "constant"

With wikis with possibility of translation, as MediaWiki, and to facilitate the translation of articles, these wikis use "constants". For example:

...contribution under the [$cc0 CC0]. See [[$pd-help|Public Domain Help Pages]] for more info.

transcluded to:

...contribution under the [https://creativecommons.org/publicdomain/zero/1.0/ CC0]. See{{mediawiki|Project:PD help|Public Domain Help Pages}} for more info.

How to create these constants or variables (here $cc0 and $pd-help)? Jmarchn (talk) 08:07, 28 August 2014 (UTC)

How to upgrade to MediaWiki 1.24/wmf19?

Hello there,

I have currently installed MediaWiki 1.24/wmf16. How can I update to the latest version easily? 83.29.227.66 (talk) 08:32, 28 August 2014 (UTC)

> urrently installed MediaWiki 1.24/wmf16
+
> I update [..] easily
-> that's fundamentally the wrong way ;)
WMF versions have much potential to break your wiki or processes used in your wiki. So, if you don't know what to do if something breaks, you better go with stable releases of mediawiki.
Otherwise: The Update to wmf-releases is the same as for all others: Upgrade
P.S.: You can't upgrade to wmf19 prior todays evening ;) The actual wmf release is wmf18, wmf19 will created in todays deployment, see MediaWiki_1.24/Roadmap Florianschmidtwelzow (talk) 10:35, 28 August 2014 (UTC)
If you don't know how to update, you probably do not want to run an 1.24wmf version either. AKlapper (WMF) (talk) 15:48, 28 August 2014 (UTC)

How i display Adsense ads on Mediawiki Mobile? (MobileFrontend Extension)

This post by タチコマ robot was moved on 2015-06-15. You can find it at Extension talk:MobileFrontend/2014#h-How_i_display_Adsense_ads_on_Mediawiki_Mobile?_(MobileFrontend_Extension)-2014-08-28T18:34:00.000Z. Florianschmidtwelzow (talk) 20:05, 28 August 2014 (UTC)

Can someone help me please

I think I have read every page about templates there is. I have search info from google about these Templates. Only topics about these templates I have found are people talking how confusing these are. I haven't found one step by step tutorial. Am I just too dumb?

My first question would be, why is there "copy and paste on top of your page" if that doesn't work :)

Even on this page there were that "create extension" and after that, foo. I have now wrote --> Template:Infobox4all in search.--> (On my own wiki!) Create the page ---> I have copied everything from "view source" from this page. https://www.mediawiki.org/w/index.php?title=Template:Extension&action=edit

Now I get broken code with red-links. I have struggled with this for 4 days now. Do I need some Extension? Does somewhere on this page read what extensions would be needed. (I have parserfunctions btw.)

I would really appreciate if someone could help me with this. Please. 82.181.84.203 (talk) 01:16, 29 August 2014 (UTC)

See Help:Templates#Copying from one wiki to another Ciencia Al Poder (talk) 09:40, 1 September 2014 (UTC)

Some Problem on Korean Wiki

Hello. I'm korean wikipedia Admin. Today, several problems reported by ko-wiki users. Some functions shutdown.

  • Hot-cat
  • Advanced Edit Tools
  • Auto Redirect on Sereach Bar.
  • Table sort.

As I know, Other Wikipedia is normal status. But, kowiki is not.

I'm beginner Admin. I don't know where is cause of this trouble.

Could you help me? Thanks to read it :) 이강철 (talk) 15:02, 29 August 2014 (UTC)

Hello!
The best way should be to report bugs for each problem: How to report a bug | Repot a bug for Wikimedia Site/Server/Tools
with as much information as possible (what is broken, correct name of the function (maybe the name of the Extension providing the function, if you know?), when it brokes (last week, the week before, better a concret day, and so on). Florianschmidtwelzow (talk) 11:45, 1 September 2014 (UTC)
As a frist step I recommend to check out the browser's development tools (error console) if there are some Javascript issues listed (as on-wiki code like HotCat for example is out of scope for Bugzilla). AKlapper (WMF) (talk) 10:45, 2 September 2014 (UTC)
Better steps needed. I guess I need to activate "HotCat" on https://ko.wikipedia.org/wiki/특수:환경설정#mw-prefsection-gadgets ? What to do afterwrds, click by click, to see the same problem? Exact example welcome... AKlapper (WMF) (talk) 11:58, 2 September 2014 (UTC)

Customizing the skins top bar colour

Hi can I have some help with a skin I updated from someone else. I would like some help with customizing the top bar colour. I would like to do the colour through mediawiki:common.css please and also customizing the colour of the button and when clicked since if changing the top bar colour it would looked weird having the brown on the button whill the colour of top bar would be different. and the skin is at https://github.com/paladox2015/Metrolook/blob/master/components/tabs.less it is in the tabs.less file I am not sure though. 92.40.250.88 (talk) 18:21, 29 August 2014 (UTC)

Web installer broken.

Hi installer is broken again. I am using 1.24 wmf 19 and website to mw-config is http://en.random-wikisaur.tk/mw-config/ the installer was working in 1.24 wmf18. what I mean by working is it showed correctly whereas in 1.24 wmf19 it doesent. 92.40.250.88 (talk) 20:23, 29 August 2014 (UTC)

Hi I located to the problem was in 1.24 wmf19 in skins vector. I think it is todo with chaging from div#content to something else. 92.40.250.88 20:26, 29 August 2014 (UTC)
Can you create a bug report for this? Florianschmidtwelzow (talk) 20:32, 29 August 2014 (UTC)
I did it by myself ;) bug 70190 Florianschmidtwelzow (talk) 20:40, 29 August 2014 (UTC)
Thankyou. 92.40.250.88 22:08, 29 August 2014 (UTC)

How to create a "constant" or pointer to constant or function?

With wikis with possibility of translation (with Extension:Translate), as MediaWiki, and to facilitate the translation of articles, these wikis use "constants" or pointers. For example:

...contribution under the [$cc0 CC0]. 
See [[$pd-help|Public Domain Help Pages]] for more info.

is compiled to:

...contribution under the [https://creativecommons.org/publicdomain/zero/1.0/ CC0]. 
See {{mediawiki|Project:PD help|Public Domain Help Pages}} for more info.

How to create these constants or variables or pointers (here $cc0 and $pd-help)? Jmarchn (talk) 20:48, 29 August 2014 (UTC)

Maybe what you want to do is using Templates? Ciencia Al Poder (talk) 09:34, 1 September 2014 (UTC)
For templates and normal pages, with translations (I use Extension:Translate). Jmarchn (talk) 15:33, 1 September 2014 (UTC)
For translated pages, you need to use <tvar|your variable name>
See Help:Extension:Translate/Page translation administration#Segmentation. See variables. Ciencia Al Poder (talk) 09:45, 2 September 2014 (UTC)

group permission to be set for admin

Hi how can I set a setting in localsettings that lets me choose users groups even though I am a user because I had to redo the database and it was corrupted so I had to redo tables so I just used tables.sql because it would not let me do it trough web updater so please help. 92.40.250.88 (talk) 22:16, 29 August 2014 (UTC)

See Manual:User rights! 88.130.90.130 23:12, 29 August 2014 (UTC)
Hi I looked at that but it doesent tell you how to set admin to user so that I can set myself as admin and The other highest group permission you can set. Because my database became corrupt and so I had to repaire it, 86.169.79.156 09:06, 1 September 2014 (UTC)
$wgGroupPermissions['*']['userrights'] = true; 88.130.74.212 09:29, 1 September 2014 (UTC)
Thankyou. 151.225.137.145 14:40, 5 September 2014 (UTC)
That's incredibly dangerous if your wiki is open to the Internet. Jackmcbarn (talk) 02:35, 7 September 2014 (UTC)

Watchlist pages limit

Hi, is there a limit on the number of pages you can add to your watchlist? Prenn (talk) 03:50, 30 August 2014 (UTC)

Not that I knew of. Maybe a theoretical one coming from the number of rows MySQL can handle inside a table... However, I have never heard of anyone actually really hitting on such a limit. In contrast I remember some months ago there was a bot, who had a programming mistake, which led to this bot watching every page, which it had edited. At that time that were maybe 1,2 million pages. It made the watchlist unusable (because it was filled with useless content), but it did not hit a limit. 88.130.90.130 09:13, 30 August 2014 (UTC)

Svg help

Hi can I have some help with svg. I would like to fix the problem with svg with wikieditor because it has a shadow in the background and the only thing that has been fixed and waiting for it to be approved is button sprite and format b I would like to fix the other but I doint know how to. 86.169.79.156 (talk) 17:34, 30 August 2014 (UTC)

the images are https://git.wikimedia.org/tree/mediawiki%2Fextensions%2FWikiEditor/314f0a7d1aef46e1af0d362d9d73c6026cc4c13c/modules%2Fimages%2Ftoolbar here 86.169.79.156 17:35, 30 August 2014 (UTC)
I see: There are images. What is it now that you want to do? 88.130.90.130 18:34, 30 August 2014 (UTC)
I would like to remove the shadow please 46.233.116.168 19:27, 30 August 2014 (UTC)
Take your preferred image processing programme and do it! 88.130.90.130 19:46, 30 August 2014 (UTC)
I use Inkscape for windows but doint know how to remove shadow. 94.197.122.87 20:08, 30 August 2014 (UTC)
https://www.google.com/search?q=Inkscape+remove+shadow 88.130.90.130 22:03, 30 August 2014 (UTC)

MYSQL error in mediawiki 1.24 wmf19

It seems to be the user table having the problem. 86.169.79.156 23:07, 30 August 2014 (UTC)
This isn't a problem of MediaWiki or the table structure, see the error message:
> Can't connect to MySQL server on '216.218.192.170'
This means, that there isn't a mysql server behind this ip, or requests are blocked by a firewall, or something else ;)
P.S.: Please notice, that the wmf versions are not meant for third party wikis, so please use them only, if you know what you do :) You drive better with the stable releases :) Florianschmidtwelzow (talk) 23:33, 30 August 2014 (UTC)
Hi well when I use the table.sql manualy it works when I use web updater it doesent. 86.169.79.156 00:16, 31 August 2014 (UTC)
if I try to redo the install it says this
Install
A database query error has occurred. This may indicate a bug in the software.•Query:
CREATE TABLE `user` ( user_id int unsigned NOT NULL PRIMARY KEY AUTO_INCREMENT, user_name varchar(255) binary NOT NULL default , user_real_name varchar(255) binary NOT NULL default , user_password tinyblob NOT NULL, user_newpassword tinyblob NOT NULL, user_newpass_time binary(14), user_email tinytext NOT NULL, user_touched binary(14) NOT NULL default , user_token binary(32) NOT NULL default , user_email_authenticated binary(14), user_email_token binary(32), user_email_token_expires binary(14), user_registration binary(14), user_editcount int, user_password_expires varbinary(14) DEFAULT NULL ) ENGINE=InnoDB, DEFAULT CHARSET=binary
•Function: DatabaseBase::sourceFile( /home/pal2015/public_html/maintenance/tables.sql )
•Error: 1146 Table 'pal2015_wiki6.user' doesn't exist (localhost)
Backtrace:
#0 /home/pal2015/public_html/includes/db/Database.php(1184): DatabaseBase-&--#62;reportQueryError('Table 'pal2015_...', 1146, 'CREATE TABLE `u...', 'DatabaseBase::s...', false)
#1 /home/pal2015/public_html/includes/db/Database.php(3948): DatabaseBase-&--#62;query('CREATE TABLE `u...', 'DatabaseBase::s...')
#2 /home/pal2015/public_html/includes/db/Database.php(3862): DatabaseBase-&--#62;sourceStream(Resource id #97, false, false, 'DatabaseBase::s...', false)
#3 /home/pal2015/public_html/includes/installer/DatabaseInstaller.php(196): DatabaseBase-&--#62;sourceFile('/home/pal2015/p...')
#4 /home/pal2015/public_html/includes/installer/DatabaseInstaller.php(218): DatabaseInstaller-&--#62;stepApplySourceFile('getSchemaPath', 'install', true)
#5 [internal function]: DatabaseInstaller-&--#62;createTables(Object(MysqlInstaller))
#6 /home/pal2015/public_html/includes/installer/Installer.php(1584): call_user_func(Array, Object(MysqlInstaller))
#7 /home/pal2015/public_html/includes/installer/WebInstallerPage.php(1418): Installer-&--#62;performInstallation(Array, Array)
#8 /home/pal2015/public_html/includes/installer/WebInstaller.php(280): WebInstallerInstall-&--#62;execute()
#9 /home/pal2015/public_html/mw-config/index.php(79): WebInstaller-&--#62;execute(Array)
#10 /home/pal2015/public_html/mw-config/index.php(38): wfInstallerMain()
#11 {main}
Notice: Uncommitted DB writes (transaction from DatabaseInstaller::stepApplySourceFile). in /home/pal2015/public_html/includes/db/Database.php on line 4238 86.169.79.156 00:17, 31 August 2014 (UTC)
I have tested wmf19 now locally and all is ok. The installer created all tables successfully without any errors. So it has to be an error in your installation :)
Is the database you want to use new? Is your database user permitted to create tables? Florianschmidtwelzow (talk) 13:07, 31 August 2014 (UTC)
yes I created a new database and tried to redo the install but it keeps failing. 86.169.79.156 13:23, 31 August 2014 (UTC)
and my database is permitted to create tables. 86.169.79.156 13:23, 31 August 2014 (UTC)
probably it is a problem with one of the extensions like centralauth because my other extension create there tables fine where as centralauth doesent create it and I have to do it manually. 86.169.79.156 13:26, 31 August 2014 (UTC)
Hi I am having a problem with installing mediawiki a day or two ago I went to my website and noticed that it was corrupt because it crashed I made a backup but as it is corrupt I carnt use it so I try installing it fresh but it just doesent wont to install it comes up with these errors.
MediaWiki 1.24wmf19 installation
Setting up database... done
Creating tables...
Sorry! This site is experiencing technical difficulties.
Try waiting a few minutes and reloading.
(Cannot contact the database server: Can't connect to MySQL server on '216.218.192.170' (111) (216.218.192.170:3306))
Backtrace:
  1. 0 /home/pal2015/public_html/includes/db/DatabaseMysqlBase.php(103): DatabaseBase->reportConnectionError(':real_connect()...')
  2. 1 /home/pal2015/public_html/includes/db/DatabaseMysqlBase.php(574): DatabaseMysqlBase->open('216.218.192.170...', 'paladox_admin', 'REDACTED', 'paladox_wiki')
  3. 2 /home/pal2015/public_html/includes/db/Database.php(1159): DatabaseMysqlBase->ping()
  4. 3 /home/pal2015/public_html/includes/db/Database.php(3948): DatabaseBase->query('CREATE TABLE `u...', 'DatabaseBase::s...')
  5. 4 /home/pal2015/public_html/includes/db/Database.php(3862): DatabaseBase->sourceStream(Resource id #97, false, false, 'DatabaseBase::s...', false)
  6. 5 /home/pal2015/public_html/includes/installer/DatabaseInstaller.php(196): DatabaseBase->sourceFile('/home/pal2015/p...')
  7. 6 /home/pal2015/public_html/includes/installer/DatabaseInstaller.php(218): DatabaseInstaller->stepApplySourceFile('getSchemaPath', 'install', true)
  8. 7 [internal function]: DatabaseInstaller->createTables(Object(MysqlInstaller))
  9. 8 /home/pal2015/public_html/includes/installer/Installer.php(1584): call_user_func(Array, Object(MysqlInstaller))
  10. 9 /home/pal2015/public_html/includes/installer/WebInstallerPage.php(1418): Installer->performInstallation(Array, Array)
  11. 10 /home/pal2015/public_html/includes/installer/WebInstaller.php(280): WebInstallerInstall->execute()
  12. 11 /home/pal2015/public_html/mw-config/index.php(79): WebInstaller->execute(Array)
  13. 12 /home/pal2015/public_html/mw-config/index.php(38): wfInstallerMain()
  14. 13 {main}
I am running mediawiki 1.24 wmf 19 I think there is a problem in tables.sql or one of the .sql scripts in the maintenance folder. I have tried installing it on two different MySQL servers and same error so I think it is to do with the mediawiki software.
website is http://wikisaur.tk Jackmcbarn (talk) 03:04, 7 September 2014 (UTC)
You accidentally posted your password in your original post. I've redacted and revision-deleted it, but you should still change it in case anyone saw it between then and now. Jackmcbarn (talk) 03:08, 7 September 2014 (UTC)
Oh ok thanks. 151.225.137.145 20:36, 7 September 2014 (UTC)

SQL code - Not Acceptable

Hi,

I have problem with inserting SQL code into my mediawiki's page. If I insert SQL code like

INSERT INTO user VALUES(1, 'Tom');

and a try to save my page (or I click on Show preview), I get the following message

Not Acceptable

An appropriate representation of the requested resource /mw/index.php could not be found on this server.

Apache/2.2.21 Server at knowledge-base.hu Port 80

on a new page.

Versions I use:

MediaWiki 1.22.4
PHP 5.3.20 (cgi-fcgi)
MySQL 5.1.53-log

The url is http://knowledge-base.hu/mw (sorry I use it as a private wiki, no access for foreign users)

Thanks! 188.167.152.251 (talk) 10:13, 31 August 2014 (UTC)

Hi!
This problem is caused by mod_security. This piece of code (and many other as well) hit one of mod_security's filters and so cause this issue. Changing mod_security's settings or simply deactivating mod_security will solve this. 88.130.101.168 12:00, 31 August 2014 (UTC)
Hi,
The problem is my hosting services provider dosn't allow me to change mod_security because of security issues. Could you suggest some other solution?
Tanks for the reply. 188.167.152.251 06:12, 6 September 2014 (UTC)
I mean: You can also solve this by not using those terms, which hit the filters. That will prevent the error as well. However, this will be a nice obstacle course. And if you ask me this is absolutely no solution.
Either you change the settings or you change the hoster (and then to one, which does not prevent MediaWiki from working correctly). I think there are not many other options... :-( 88.130.101.228 13:59, 6 September 2014 (UTC)

MASSIVE Problem yet nearly everything else is working proplerly... (PLEASE HELP)

This post by タチコマ robot was moved on 2015-06-15. You can find it at Extension talk:Scribunto/2014#h-MASSIVE_Problem_yet_nearly_everything_else_is_working_proplerly..._(PLEASE_HELP)-2014-08-31T13:30:00.000Z. Nsgaeverine (talk) 13:33, 31 August 2014 (UTC)

UploadStashFileException

My Platform - MediaWiki 1.23.2; Skin: BootStrap; PHP: 5.3.29 ; URL: [available upon request]; Permissions: $IP/images: 755.

My History - This is my new installation of MediaWiki and this Skin. I am inexperienced with these installation/configuration procedures. I imported existing database tables into this new installation. The previous MediaWiki installation was corrupted. I am in the process of tailoring this new Skin to match my website.

My Symptom - Some images were not being displayed on Chrome browser but were in IE11

My Failed Attempts - Delete image and upload a replacement image

Debug message - Warning: failed to mkdir "/usr/www/users/.../.../w/images/temp/d/d0" mode 0777 [Called from wfMkdirParents in /usr/www/users/.../.../w/includes/GlobalFunctions.php at line 2625] in /usr/www/users/.../.../w/includes/debug/Debug.php on line 303

Error message - "Internal Error - [197095a6] 2014-08-31 17:35:07: Fatal exception of type UploadStashFileException"

My Request - Please help me correct this problem. Thank you. BJMdata (talk) 18:17, 31 August 2014 (UTC)

Hi!
The maintenance script eraseArchivedFile.php allows you to remove a file completely after you have deleted it. Maybe this helps. In order to use this script, you will have to use the shell and execute the according commands there, e.g.:
cd folder/to/my/wiki/
cd maintenance
php eraseArchivedFile.php --filekey * --filename name_from_fa_name_column
The warning with mkdir() might be related to missing permissions inside the folder images/. Make sure that the needed permissions are not only set for the images/ folder itself, but also recursively for its child folders!
You say you could see the images in IE11, but not in Chrome. I guess Chrome showed you an error 404 instead? 88.130.101.168 21:41, 31 August 2014 (UTC)
In Chrome there was no error 404. It just did not display that particular image although the image displayed when you clicked on it.
And when I tried to delete the image or tried to upload a new image I get this error:
"Warning: failed to mkdir "/usr/www/users/.../.../w/images/0/0c" mode 0777 [Called from wfMkdirParents in /usr/www/users/.../.../w/includes/GlobalFunctions.php at line 2625] in /usr/www/users/.../.../w/includes/debug/Debug.php on line 303" 76.88.52.182 21:56, 2 September 2014 (UTC)
This is the other error I got when trying to upload an image:
"Upload warning - Could not create directory "mwstore://local-backend/local-public/0/0c"."
Permissions are 777 for images and 755 for all subdirectories however apparently it is not trying to write to an existing directory instead it is trying to make a new directory for the new image. BJMdata (talk) 22:19, 2 September 2014 (UTC)
Yes, it needs to create new directories.
Note that files shouldn't have the executable bit. They should be 666 or 644 but not 777. For testing, you may want to set files to 666 and folders to 777 to see if there are permission issues. Ciencia Al Poder (talk) 10:19, 3 September 2014 (UTC)
The error message reports MediaWiki is unable to create a directory in the images/temp folders even though they now both have 766 permissions. Why is that?
Concurrently there also is this message:
"Internal Error - [197095a6] 2014-08-31 17:35:07: Fatal exception of type UploadStashFileException"
What does that mean and how do you fix it? BJMdata (talk) 20:40, 4 September 2014 (UTC)
Be sure those folders are owned by the user running the webserver. If in doubt, give all folders (recursively) 777 permissions and test if it succeeds, and then restrict permissions until the desired level. This will discard any permission issues. Ciencia Al Poder (talk) 09:56, 5 September 2014 (UTC)