Jump to content

Project:Support desk/Flow/2012/09

Add topic
From mediawiki.org
Latest comment: 6 years ago by 203.56.42.0 in topic Any ideas for a password vault?
This page is an archive.
Please ask questions on the current support desk.

urls and mediawiki, index in all wiki

in all pages have this index.php/

example 1 http://127.0.0.1/mediawiki-1.19.1/index.php/Especial:Paginas_especiais

example 2 http://127.0.0.1/mediawiki-1.19.1/index.php/baco

i want this for all pages...

http://127.0.0.1/mediawiki-1.19.1/baco

i can ?

only with htaccess or have another way ???

Thx! 201.47.63.85 (talk) 05:01, 1 September 2012 (UTC)

Do you have mod-alias? You can test this by creating a test page (test.html in this example), putting it in on your server, and adding the following line to your .htaccess file.
Alias /test "/test.html"
That said if you can edit your server's configuration file (or get someone else to do it) you should.
----
I forgot to mention that your server must be configured to use .htaccess files or this won't work. Allen4names (talk) 16:02, 1 September 2012 (UTC)

Better diff tool?

Is there a way to improve the built-in diff tool?
The diff seems to have problems with paragraphs that are moved. It doesn't recognize the move and marks everything as red on both the old and new version. That's quite confusing...

Thanks for your suggestions in advance! Stefahn (talk) 07:43, 2 September 2012 (UTC)

Try wikiEdDiff. —Emufarmers(T|C) 09:02, 2 September 2012 (UTC)
Thanks! I will check it out soon. Stefahn (talk) 21:53, 5 September 2012 (UTC)

php code in wiki

How can I add php code to Wiki page? I need add php code to page or specify script as "action" in the html form. RawHtml enabled but php doesn't work.

MediaWiki 1.19.1 PHP 5.3.10-1ubuntu3.2 (apache2handler) MySQL 5.5.24-0ubuntu0.12.04.1 109.87.58.197 (talk) 18:55, 2 September 2012 (UTC)

I do not completely understand, what you want to do:

Do you want to display PHP code on one page in your wiki?

This works with the extension SyntaxHighlight_GeSHi. With it you can use <syntaxhighlight> tags on your page and place the PHP code inside:

<syntaxhighlight lang="php">
<?php 
//put your PHP code here ...
?>
</syntaxhighlight>

Or do you want to execute some PHP code, when a user of your wiki triggers a special action (like when he saves a page)?

This can be done using one of the hooks, which MediaWiki provides. 88.130.104.230 14:04, 7 September 2012 (UTC)

i18n file empty

I have created an extension which has been code reviewed and is now on Git. BiblioPlus

A commit "Localisation updates from translatewiki.net" changed my i18n file to an empty file.

Any idea why this is and how I can correct it?

Thanks! 70.79.86.176 (talk) 18:22, 3 September 2012 (UTC)

Default skin shows only plain text

I have problem with version 1.19.2.

For some reason default skin (for example $wgDefaultSkin = 'monobook') does not work. Default value shows only plain text. When you log in you see only plain text if you are in default. If you change skin to something else than default then skins are ok.

Any idea what is the problem? 91.152.228.91 (talk) 21:04, 3 September 2012 (UTC)

and here the link to the page as well i.e. http://www.venesatama.com/wiki/mediawiki-1.7.1/index.php?title=Etusivu 91.152.228.91 21:06, 3 September 2012 (UTC)

Wanted: Forum for MediaWiki

I want to integrate a forum into my wiki.
The forum should have those two features:

  • Users should be logged into the forum automatically (with their MediaWiki login)
  • The forum should send notification mails on new posts.

I found Extension:WikiForum which is quite fine except that it's missing the notification thing... Has anyone some other suggestions?

As it seems there is currently no working bridge between phpbb and MediaWiki?

Thanks for your help! Stefahn (talk) 00:05, 4 September 2012 (UTC)

Error 404 after upload file

Hi!

MediaWiki 1.19.2 PHP 5.3.13 (apache2handler) MySQL 5.5.24-log

When I upload graphic file (jpg, png) I recived error 404 Page not found (url http://XXXX/wiki2/index.php/file:35509.jpg). If I see system page "File list", I can see thumb of my file. When I try down on field "name file" I take error (http://XXXX/wiki2/index.php/file:35509.jpg). If I try down on field "file" I can see my picture (http://XXXX/wiki2/images/7/74/35509.jpg).

If I upload not graphics file, such as "doc" - no problem with see it.

What is a solutions? 85.202.230.62 (talk) 05:29, 5 September 2012 (UTC)

Summary bug spotted

I do not know if other people have noticed yet, but about 2 days ago I discovered while editing or creating new pages following error:

If it recently came to an update here on MediaWiki, the error could have been introduced. Abani79 (talk) 07:08, 5 September 2012 (UTC)

SOMEONE HAS STOLEN MY PICTURES, AND MADE A PAGE OF THINGS WITHOUT MY CONSENT! HOW CAN I HAVE IT REMOVED?

An ex of mine(which I haven't spoken to in 2 years, so I can't just tell him to take it down!) stole my pictures, my name, and even a friends name of mine, and made a page for his wrestling things. I NEVER consented, agreed, or even KNEW that this was being done, and when I searched my name on Google, this was one of the pages that came up, and I DO NOT want it on here.

How can I have the ENTIRE page removed? 74.235.229.81 (talk) 08:28, 5 September 2012 (UTC)

ALSO here is the page that I want removed- http://editthis.info/bywpedia/Facebook_IWE_Victoria_Lehr' 74.235.229.81 08:32, 5 September 2012 (UTC)
The easiest way will be to ask the admin of this wiki to remove the page. Register there and ask him politely to do it pointing him to the facts that you do not want this image and this information being there.
I just noticed: After you registered in that wiki you should even be able to edit this page yourself. ;-) 88.130.124.137 12:51, 5 September 2012 (UTC)

Template Substitution problem

Recently i needed to do some citing and decided i did not want to constant type the Current-Date/Month/Year system variables every single time i want a Date/Time Stamp for a Citation or other reasons. So i created a Date template for this job and just simply wanted to type in

{{subst:date}}

and not even the system variables were brought out.

Template Content:

<onlyinclude>{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}</onlyinclude><noinclude>{{doc}}</noinclude>

Goldbishop (talk) 14:06, 5 September 2012 (UTC)

How to put in these collums like on the mediawiki home page?

Hi,

Like the subject says, how can I put in collums on the main page of my wiki-page? For example: The mediawiki home-page got Users, System administrators, developers etc..

Thanx 171.21.80.126 (talk) 08:11, 6 September 2012 (UTC)

Use a table! 88.130.104.230 14:07, 7 September 2012 (UTC)

Problems when I edit the page

Hi, I have problems when I try to edit a page. I try to put something and when I save and the page is deleted, only appears some like that : [[Home>Aplic In the other hand, when I try to create a link to another page of my mediawiki, my accents disappears and appears strange caracters.

Last monday my Firefox was updated to version 15 it could be the problem? With the old version i dont have that problems... I have searched in Google and I haven't found nothing....

Thanks everybody. 194.116.240.25 (talk) 08:45, 6 September 2012 (UTC)

Install error

So i did a manual install of mediawiki (newest version) and installed to the following directory on my server. /public_html/mediawiki/

So I goto my brower (chrome) and goto dbdplatoon.net/mediawiki/mw-config/index.php

Pulls up the wiki hasnt been installed cause it cant find the localsettings.php (obviously cause it hasnt bene installed)

And I get the following error when doing so....

Error starting session: session_start(): open(/var/php_sessions/sess_e5ddd96073f94f5f84ccd55ec32c5033, O_RDWR) failed: No such file or directory (2)

Did I miss a step to the install?? 70.190.16.201 (talk) 15:36, 6 September 2012 (UTC)

Check your file permissions to make sure MediaWiki can make that directory. Jasper Deng (talk) 15:47, 6 September 2012 (UTC)
Its permissions are set to 744 for the mediawiki/mw-config/index.php I assume thats the permission your talking about 70.190.16.201 15:54, 6 September 2012 (UTC)
The optimal permissions are 757 IIRC for your entire directory. Jasper Deng (talk) 16:06, 6 September 2012 (UTC)
757 now same issue 63.149.124.133 16:32, 6 September 2012 (UTC)

Delete unused images

Hello, I am trying to delete unused images from my wiki. I found the following code on a forum somewhere but I cannot get it to work:

lynx -dump http://wiki_site/wiki/index.php/Special:UnusedFiles | grep "/File:" | gawk '{print $2}' | sort | uniq | gawk -F\File '{print "File"$2}' > ./delete_files
php /var/www/html/wiki/maintenance/deleteBatch.php ./delete_files

It keeps saying that "lynx" and "gawk" commands were nto found. I get how to use the deleteBatch.php script. What I really need is an easy way to get a list of all the files that show up in "Special:UnusedFiles".

Any help is appreciated. Zackmann08 (talk) 19:43, 6 September 2012 (UTC)

I would try something simpler. For example I would start with the following.
wget -q -O - http://localhost/wiki/index.php/Special:UnusedFiles | grep "/File:" - > ./delete_files && gedit ./delete_files
Then use gedit to clean things up before using the deleteBatch.php script. I think that "gawk '{print $2}'" should be "gawk '{print $2}' -- -", and "sort | uniq" should be "sort -u -" etc. but I don't use the gawk command very much so you need someone more familiar with it to help you. Allen4names (talk) 05:17, 7 September 2012 (UTC)

First off, thank you very much for the help! I was actually able to get SOMETHING to run using that. The file (./delete_files) is turning up with tons of extra information though. Is there any easy way to isolate the file names? For example, in the following line (which represents a single file):

<div class="thumb" style="width: 150px;"><div style="margin:15px auto;"><a href="/wiki/File:WIP.jpg" class="image"><img alt="WIP.jpg" src="/images/thumb/b/b0/WIP.jpg/119px-WIP.jpg" width="119" height="120" /></a></div></div>
<a href="/wiki/File:WIP.jpg" title="File:WIP.jpg">WIP.jpg</a><br />
<pre>

I would like to just have:
<pre>
File:WIP.jpg

Any quick and easy way to do that? Zackmann08 (talk) 14:34, 7 September 2012 (UTC)

You could try the following.
cp -n delete_files delete_files.bak | replace 'href=\"/wiki/' '
' '\" class' '
' -- delete_files && cat delete_files | grep 'File' - | sort -u - > delete_files_sorted
Copy and paste this as a single line.
Please let me know if this works. Allen4names (talk) 16:49, 7 September 2012 (UTC)
Not quite... I get the following. (I limited it to only include 2 of the many files listed)
delete_files:
			<div class="thumb" style="width: 150px;"><div style="margin:34.5px auto;"><a File:ISR.jpg="image"><img alt="ISR.jpg" src="/images/thumb/2/2e/ISR.jpg/120px-ISR.jpg" width="120" height="81" /></a></div></div>
<a File:ISR.jpg" title="File:ISR.jpg">ISR.jpg</a><br />
			<div class="thumb" style="width: 150px;"><div style="margin:36.5px auto;"><a File:ITA.jpg="image"><img alt="ITA.jpg" src="/images/thumb/1/1f/ITA.jpg/120px-ITA.jpg" width="120" height="77" /></a></div></div>
<a File:ITA.jpg" title="File:ITA.jpg">ITA.jpg</a><br />
delete_files_sorted:
<a File:ISR.jpg" title="File:ISR.jpg">ISR.jpg</a><br />
<a File:ITA.jpg" title="File:ITA.jpg">ITA.jpg</a><br />
			<div class="thumb" style="width: 150px;"><div style="margin:34.5px auto;"><a File:ISR.jpg="image"><img alt="ISR.jpg" src="/images/thumb/2/2e/ISR.jpg/120px-ISR.jpg" width="120" height="81" /></a></div></div>
			<div class="thumb" style="width: 150px;"><div style="margin:36.5px auto;"><a File:ITA.jpg="image"><img alt="ITA.jpg" src="/images/thumb/1/1f/ITA.jpg/120px-ITA.jpg" width="120" height="77" /></a></div></div>
Thank you SO MUCH for your help! Zackmann08 (talk) 17:20, 7 September 2012 (UTC)
By "as a single line" I meant that you should enter the code so that it looks like the three lines below.
$ cp -n delete_files delete_files.bak | replace 'href=\"/wiki/' '
> ' '\" class' '
> ' -- delete_files && cat delete_files | grep 'File' - | sort -u - > delete_files_sorted
I am sorry if my mistake caused you to missunderstand what I meant. Allen4names (talk) 03:15, 8 September 2012 (UTC)
Once again, let me just thank you for taking so much time to help me with this. I did missunderstand you but that was my bad. It is ALMOST there.... now what I am getting is:
File:ISR.jpg
File:ISR.jpg" title="File:ISR.jpg">ISR.jpg</a><br />
File:ITA.jpg
File:ITA.jpg" title="File:ITA.jpg">ITA.jpg</a><br />
Cannot thank you enough... Zackmann08 (talk) 21:34, 8 September 2012 (UTC)
I think this should do it.
cp -n delete_files delete_files.bak | replace '/' '
' '\"' '
' -- delete_files && cat delete_files | grep 'File' - | sort -u - > delete_files_sorted
Here is something else you could try as a batch script. I have commented out one of the lines for testing.
#!/bin/bash
cd ~
deleteFiles=$(wget -q -O - http://localhost/wiki/index.php/Special:UnusedFiles | replace '/' '
' '\"' '
' | grep 'File' - | sort -u -)
if [ "$deleteFiles" = '' ]; then
exit 1
fi
#php /var/www/html/wiki/maintenance/deleteBatch.php "$deleteFiles"
exit 0
This script should be run from the command line for testing. Hopefully this will work for you. Allen4names (talk) 14:02, 9 September 2012 (UTC)
You, sir, are a god amongst men. THANK YOU SO MUCH!!!!! Worked perfectly. :-) Zackmann08 (talk) 15:40, 9 September 2012 (UTC)
I know this thread dates back from 2012, but in case it helps others, I suggest a very minor fix to it:
grep 'File:' -
instead of
grep 'File' -
which could otherwise catch some unrelated garbage on the page (which in turn would probably get discarded by deleteBatch.php, but "better safe than sorry") 193.190.210.16 09:25, 28 July 2014 (UTC)
Thanks for working on this script, but please do not use HTML output as an API. This can and will break when you least expect it, nor is it very reliable or stable.
We have an API for this, check API:Querypage. For example:
When you parse the JSON, you'll find the title property in the query.querypage.results array. Aside from JSON, there are many other API:Formats available. Krinkle (talk) 22:15, 22 September 2012 (UTC)

Problem configuring Extension:WikiLove

I'm trying to configure the extension WikiLove to change the colors of barnstars because they don't work with the dark layout.

http://en.sturmkrieg.com/MediaWiki:WikiLove.js

What is it that is going wrong? It worked fine before I changed the system message page for the configuration. Sturmkrieg Grandmaster Inquisitor 627 des Ordo Scharzenkommando ++Existence denied++ 18:49, 7 September 2012 (UTC)

Sorting pages with "The"

Does anyone know how to make pages Starting with "The" be sorted such that "The" is ignored? For example, if you look at wikipedias list of 2012 films, "The Avengers (2012 film)" is listed under the A's, not under the T's. Zackmann08 (talk) 19:21, 7 September 2012 (UTC)

Edit that page and search for {{DEFAULTSORT:Avengers (2012 film), The}}. You can find more information about the use of that template at http://en.wikipedia.org/wiki/Help:Category#Default_sort_key. It's always a good idea to edit a page and search for some clues. Hope that helps...
Greetings
Dries
I tried that... There is no {{DEFAULTSORT}} anywhere on the page or in any of the templates used as far as i can see. Zackmann08 (talk) 21:45, 7 September 2012 (UTC)
You missed it :-) It's at the end of the page, above the languages and categories. Either way check the link I put in the last answer or look here: http://www.mediawiki.org/wiki/Help:Magic_words#Technical_metadata ->Affects page content->DefaultSort Dries (talk) 22:03, 7 September 2012 (UTC)
Ok I missunderstood. I was look at the page i actually posted a link to, Not the page for "The Avengers" itself. Zackmann08 (talk) 22:21, 7 September 2012 (UTC)

Which hook to use to add own search results (from not-wiki source)

We're running an internal wiki and whenever there's a search with few or no results we want to add some own results. Those results are looked up via an api, the result are some links to external websites.

Can anyone point out which hook to use. The more I look, the more I loose my way in all the hooks and possibilities... Dries (talk) 21:58, 7 September 2012 (UTC)

Fatal error: Unsupported operand types: $this->namespaceNames = $wgExtraNamespaces + $this->namespaceNames + $validNamespaces;

So in installed the most recent version of MediaWiki: mediawiki-1.19.2.

Ran /mw-config/index.php and got a happy green checkmark.

Went to my wiki and got a blank page, so I added the recommended code to my LocalSettings to print out the error and got:

    Fatal error: Unsupported operand types in <root>/thewiki/languages/Language.php on line 345 

So I pulled open that file and the following line is 345:

    $this->namespaceNames = $wgExtraNamespaces + $this->namespaceNames + $validNamespaces;

This is the entire function encapsulating that line:

/**
* @return array
*/
public function getNamespaces() {
	if ( is_null( $this->namespaceNames ) ) {
		global $wgMetaNamespace, $wgMetaNamespaceTalk, $wgExtraNamespaces;

		$this->namespaceNames = self::$dataCache->getItem( $this->mCode, 'namespaceNames' );
		$validNamespaces = MWNamespace::getCanonicalNamespaces();

		$this->namespaceNames = $wgExtraNamespaces + $this->namespaceNames + $validNamespaces;

		$this->namespaceNames[NS_PROJECT] = $wgMetaNamespace;
		if ( $wgMetaNamespaceTalk ) {
			$this->namespaceNames[NS_PROJECT_TALK] = $wgMetaNamespaceTalk;
		} else {
			$talk = $this->namespaceNames[NS_PROJECT_TALK];
			$this->namespaceNames[NS_PROJECT_TALK] =
				$this->fixVariableInNamespace( $talk );
		}

		# Sometimes a language will be localised but not actually exist on this wiki.
		foreach ( $this->namespaceNames as $key => $text ) {
			if ( !isset( $validNamespaces[$key] ) ) {
				unset( $this->namespaceNames[$key] );
			}
		}

		# The above mixing may leave namespaces out of canonical order.
		# Re-order by namespace ID number...
		ksort( $this->namespaceNames );

		wfRunHooks( 'LanguageGetNamespaces', array( &$this->namespaceNames ) );
	}
	return $this->namespaceNames;
}

URL to the page is: http://www.gryffinsholt.com/thewiki/index.php/Main_Page 71.62.120.44 (talk) 11:59, 8 September 2012 (UTC)

Any update on this ? Euloiix (talk) 22:31, 10 December 2012 (UTC)
Dump the content of those variables to see what you have in there when the error happens. Actually I am not quite sure, what this line is supposed to do. The + operator does an addition; however it looks like this line should construct an array... 88.130.86.239 00:07, 11 December 2012 (UTC)
This is a syntax error indeed. Instead the array_merge() function should be used. Jasper Deng (talk) 02:41, 11 December 2012 (UTC)

[RESOLVED] Problem with Wiki media in LAN - shows only text mode

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,
I have installed the latest version of media wiki on my workstation (Windows 7 system). Everything works fine when using it.
If I am trying to access the localhost mediawiki site from another workstation within the LAN system it shows the start page of mediawiki but only the text mode (no images). Apart of it everything works fine.
If have got no idea how to look for a solution. Do I have to give other users within the LAN special access rights to my xammp folder with the media wiki intallation?
Looking forward to some answers.
Dieter Nippess (talk) 16:12, 8 September 2012 (UTC)
I am having the same issue ... running the latest Mediawiki build, 5.2.38 for PHP and 2.2.5 for Apache. On the station where it is loaded, it looks fantastic, on a workstation that I am testing it on, it is only displaying in text mode. Any suggestions? N00bWikiGuy 15:00, 16 January 2014 (UTC)
Sorry, PHP is 5.3.28 N00bWikiGuy 15:01, 16 January 2014 (UTC)
I found it ...
In your Apache httpd.conf file, change the wgServerName from localhost to the IP address of the machine running the WIKI if it isn't in DNS.
Worked like a champ. Kelly (talk) 18:37, 16 January 2014 (UTC)
It didn’t work for me i am using ubuntu and php7.0 ...is there a way to disable templete editing show it will show only clean text for MediaWiki 1.30 .? 1.50.246.193 (talk) 14:35, 22 January 2018 (UTC)
so it will show only clean text for MediaWiki 1.30 .? 1.50.246.193 (talk) 14:37, 22 January 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Is $wgDBmysql5 a superfluous option nowadays?

Hi guys,

I just found that in a wiki I take care for $wgDBmysql5 is set to true. I do not think that this makes sense, but maybe I also miss something. That is what I would need help with.

Activating $wgDBmysql5 makes MediaWiki send SET NAMES utf8; on connect. This sets character_set_client, character_set_results and character_set_connection to "utf-8". In my case they already have that value anyway.

Another important point is to make sure that in the database you actually store the data as UTF-8. If you do not use UTF-8 but another charset in the database, SET NAMES utf8; will make sure that the data is converted from what the database uses to UTF-8.

In my case the DB tables use binary encoding, so I will never get a charset conversion when I write to them. So: Does it matter if I use SET NAMES utf8; or SET NAMES binary;?

Does setting this option make any sense in my case? 88.130.68.242 (talk) 22:10, 8 September 2012 (UTC)

How to restore defaults? / Features mysteriously stop working.

Hello, Helpful Persons!

My version numbers:

  • MediaWiki: 1.16.0
  • PHP: 5.3.0 (apache2handler)
  • MySQL, 5.1.36-community-log.

I can't link you to my wiki because it's just hosted on my desktop computer, for use only on that computer, as a giant sort of commonplace book.

Problem 1

  • In August 2011, I got my wiki to have popups like the ones at Wikipedia, the ones that give you a previous of the contents of another page if you hover the mouse pointer over a link to that page. For some reason, it took more steps and messing around than various webpages describing how to implement the feature had suggested; but, in the end, it worked.
  • Several weeks later, I made a fresh installation of Windows and migrated my wiki to the new Windows installation by installing the appropriate software and then simply pasting in the contents of the whole folder.
  • After that, a problem arose. I don't know whether it was immediately after the new installation, or whether there was an interval. The problem was that the aforementioned popups stopped appearing. They have never returned. I've tried and tried to get them back, read webpage after webpage, all to no avail.

Problem 2

  • Much more recently, a new problem has arisen: all my Navbox templates no longer are automatically collapsed; instead, they're all expanded. I tried forcing their collapse by changing the state from "autocollapse" to "collapsed"; this caused no change. Also, the "hide" link in the upper right corner of the Navboxes is gone. As far as I remember, this change was immediately preceded by my making no changes whatsoever to any of the pages and files that affect how the wiki looks or operates.

How can I solve these two problems?

I'm not thrilled at the prospect of returning everything to its default, for fear that I'd have to repeat a bunch of work customizing fonts and some other things. At the same time, there's clearly a growing number of problems that start seemingly without my doing anything to cause them; so maybe something of a fresh start is in order.

In fact, I like so much how things work at Wikipedia these days that I'd happily paste in a file or files that would make a whole bunch of things work at my wiki just the way they do at Wikipedia, including proper Navbox behavior, the popups, and the edit-page buttons for inserting special characters (such as IPA and math characters) and tags (such as those for strikethrough and for categories).  (That last point is another problem, come to think of it: in my wiki, several of the buttons at the top of the edit box have ceased to be little iconic pictures and instead are just text describing what tags they would insert. ... Actually, now even some of the text descriptions are gone, replaced by blank space.)

I'm no fool at MediaWiki; but these problems are over my head, and my research off and on over many months has been tiresome and fruitless. So I'm ready for your best suggestions!

Thank you very much, Everyone.
Preslethe (talk) 17:24, 9 September 2012 (UTC)

[RESOLVED] Page reverts to index instead of showing special function such as :Special:Version or MediaWiki:Common.css

I installed a MediaWiki on my localhost computer with no problems. All operated fine. I then installed on a remote host. Installation went without any problems and minor edits such as changing the logo were completed satisfactorily. But...

When attempting to use special functions such as Special:Version MediaWiki:Common.css or MediaWiki:Sitenotice etc. upon hitting "enter" the page forwards (back) to the index page. The syntax being used is the long URL, so it goes from http://wiki.equine-reproduction.com/index.php/MediaWiki:Sitenotice back to http://wiki.equine-reproduction.com/index.php?title=Main_Page

I am logged in as Admin‏‎ (bureaucrat, administrator) but interestingly, nobody shows up under the active users list ("No users found") - I can however access the administration pages such as "unblock user" so it does appear that I am logged in with administrator rights.

MySQL 5 and PHP 5 and Apache servers (both locations)

This is a new wiki and has no other data entered yet.

Assistance appreciated!

Many thanks,

Jos Mottershead Equine-Reproduction.com LLC 50.30.100.26 (talk) 20:43, 9 September 2012 (UTC)

It seems like you have a problem with your short URLs. When I use the long form, I can access the pages.
To fix this you will have to fiddle with $wgScript, $wgScriptPath and $wgArticlePath; see the page "short URLs" for details.
Part of your problem might be that you have installed the wiki directly in the webroot. That is not recommended. Instead you should move it into a subfolder, e.g. in a folder called "wiki" or just "w". $wgScriptPath must then be set to this relative path. 88.130.97.188 23:06, 9 September 2012 (UTC)

How to change the "Display Name" in emails

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'm using MediaWiki version 1.19.1.

When a user tries to create an account on the mediawiki website, it sends an email to the user for a confirmation. The email from details show "MediaWiki Mail" as the display name. For example: MediaWiki Mail [admin@xxxxxx.com]

I tried to update the "Real Name" in the preferences for the sysop user, and changed the LocalSettings.php file with - $wgEnotifUseRealName = true;

But, still no luck. I want to change the Display name "MediaWiki Mail" to something like "Admin".

Any help would be appreciated.

Cheers 131.203.92.128 (talk) 00:08, 10 September 2012 (UTC)

The name used there does not have to do with the e mail address of a user of your wiki. Instead you can define the name in LocalSettings.php by setting $wgPasswordSenderName. 88.130.97.188 01:21, 10 September 2012 (UTC)
Awesome... It worked. Thanks :) 131.203.92.128 02:13, 10 September 2012 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Is Mediawiki for me?

Sorry if this isnt the right place for me to ask be I couldnt find where else. I am interested in starting a wiki and Mediawiki seem just right but..... Since I have never used a wiki before, before using one, and since I have a very specific purpose for it, I need to ask:

- I understand that by creating a link, it also create a new page to where the link is pointing. Thats good, but I also want to do the opposite: - When I create a new page I also need Mediawiki to recognize that some words in other already created pages will need to be pointing to it. This is really the only thing that take me away from creating a wiki. Can it be that some sort of internal crawler search all the existing pages and find in it a word that titles my new page, and then automatically change them into link to that new page. I plan to have many pages and dont really ant to have to do that manually.

Many thanks 92.4.175.219 (talk) 00:35, 10 September 2012 (UTC)

Hi!
I am not sure, if you understood correctly how MediaWiki works when it comes to creating new pages:
When you create a link to any page in your wiki, then only this link, not the new page is created. You can also click it and you will see an empty page, but still no new page is actually created. The page first is created, when a user puts some content on the new page and saves it.
As for the second part of your question: You want MediaWiki to check the existing page texts, if a page with a title, which is mentioned in a page text, has been created. If it has been, MediaWiki should automatically link the words to this page.
A quick search did not show the expected result. Here is a link: http://www.gossamer-threads.com/lists/wiki/mediawiki/77464 88.130.97.188 01:38, 10 September 2012 (UTC)
Thank you so very much, that was exactly what I was asking.
Truly appreciated. Sylner 08:59, 11 September 2012 (UTC)

I need a hook that is triggered on each page, even with caching on: which one?

It seems that OutputPageParserOutput is not called when Caching is on. Which one do I have to use? Dries (talk) 00:51, 10 September 2012 (UTC)

Account activation

Hi there,

One more query.

When users create an account, the account is created straight away with a confirmation email that's sent to the registered user.

However, I am looking for setting up something such that when a user tries to create an account on the mediawiki website, I would want to generate an email to the sysop / admin. Only after the sysop authorizes, this account should become active. Is there a way I can do this?

Thanks :) MediaWiki Rocks :) I'm loving it.... 131.203.92.128 (talk) 02:20, 10 September 2012 (UTC)

Use Extension:ConfirmAccount.
Example: http://de.sturmkrieg.com/Spezial:Benutzerkonto_beantragen
http://en.sturmkrieg.com/Special:RequestAccount Инкуиситор Саша Ехренстеин аус дем Стурмкриг Сектор (Talk) (Contributions) 00:38, 11 September 2012 (UTC)

Random article in the app

Hi!

Don't know if it someone here that develops the wikipedia app for smartphones, but i will try. Can someone create a random article function in the app as the one on the wikipedia site? Would be a great thing to have when you have some time over to get some extra education :)

Best regards, Andreas 77.222.203.33 (talk) 13:11, 10 September 2012 (UTC)

If A or B or C (resolved)

This is a question regarding the Parser Functions Extension. I have posted on the help page for this extension but haven't gotten much help. I'm hoping someone around here might be able to help me out. :-)

I am trying to use the if statement to test for multiple different values.

For example: {{#if: {{{a|}}}{{{b|}}}{{{c|}}}| YES | NO}} would display "YES" if any of the three (a,b,c) variables were defined. If, and only if, all 3 were NOT defined, it would display "NO".

The thing is that instead of simply displaying "YES" or "NO" I am trying to use this to get very complex table to appear. Any help is most appreciated. Zackmann08 (talk) 14:01, 10 September 2012 (UTC)

Fixed the problem. I was entering the data incorrectly. Zackmann08 (talk) 16:26, 10 September 2012 (UTC)

Namespace Problem

PHP Version 5.3.14 mediawiki-1.19.2 MySQL 5.1 http://www.kawasaki-zephyr.de/wiki/

The frontend produces no output, the error log contains: "syntax error, unexpected T_NAMESPACE, expecting T_STRING in wiki/includes/Namespace.php on line 46"

Can anybody help?

Thanks in advance Thorsten 178.14.160.196 (talk) 21:34, 10 September 2012 (UTC)

The problem occurred after my host updated to PHP5.3. Afterwards I updated the Wiki to 1.19.2.
I tried to fix the problem as described here:
Icesquare
However, the file doesn't contain the search string, neither in line 46 nor elsewhere. 212.144.229.34 06:30, 11 September 2012 (UTC)

User Creation Question - Displaying a warning message

How do i add a custom warning message to the account creation page I am using software version 1.19.2 wiki is located at http://www.virtualairlinegame.com/wiki/ I have searched through the manual looking for this but have been unable to locate anything remotely similar> Some advice would be appreciated. Bossie52864 (talk) 04:47, 11 September 2012 (UTC)

If the warning should be present always, try adding to the page MediaWiki:Loginend on your wiki (like in wikipedia w:mediawiki:Loginend).
For warnings that differ depending on situation you would need to write an extension. Bawolff (talk) 18:21, 13 September 2012 (UTC)
Thanks it accomplished exactly what I wanted Bossie52864 (talk) 13:33, 14 September 2012 (UTC)

Force transclusion of nested template.

I'm trying to preload text into new articles based on a master template. Each article is to be assigned to one of seven categories. At the top of each category I use an input box from the Extension:InputBox to input the new article title and to preload the template.

These are all the lesson plans for the Crew Chief in Training modules.
* To create a new lesson plan based on the Crew Chief in Training lesson plan template, fill in the Title
 below and click the button.
<inputbox>
type=create
default=Your Lesson Title goes here
buttonlabel=Create New Lesson Plan for Crew Chief in Training
preload=Template:LessonPlan_For_Crew_Chief_in_Training
</inputbox>

[[Category:Lesson_Plans]]

This works perfectly if I directly preload the master template, the new article opens in the editor with the code from the master template already entered. But preloading the master template would make them all the same and I need to customize each one with the correct category tag inserted based on the category it's originating from. Preload does not take parameters so I created a custom template for each category that includes the correct category and calls the master template.

<noinclude>'''Do Not Edit''' this template! This template calls the [[Template:LessonPlan|Master Lesson
 Plan Template]] and only exists to include in the correct categories. Any changes for the lesson plan
 template should be made to the Master.</noinclude>
{{LessonPlan}}
<includeonly>[[Category:Lesson_Plans]][[Category:Lesson_Plans_for_(300)_Crew_Chief_in_Training]]</includeonly>
<noinclude>[[Category:Lesson_Plan_Templates]]</noinclude>

However when I do this, the master template is not transcluded, instead I get this in the editor:

{{LessonPlan}}
[[Category:Lesson_Plans]][[Category:Lesson_Plans_for_(300)_Crew_Chief_in_Training]]

I have researched Transclusion, Templates, Substitution, Preloading text... until my head is swimming trying to understand it all.

{{<includeonly>safesubst:</includeonly>LessonPlan}} => {{safesubst:LessonPlan}}
{{<includeonly>subst:</includeonly>LessonPlan}} => {{subst:LessonPlan}}

If I use {{subst:LessonPlan}} when I save the custom template it goes and grabs the master template at that time and saves it to the custom template replacing the {{subst:LessonPlan}}. But then if I later make an update to the master template the custom templates will all be out of sync and since the {{subst:LessonPlan}} was replaced I can't even just open the custom templates up and resave them, I'd have to cut out the text from the old master and replace it with {{subst:LessonPlan}} in which case I might as well cut and paste in the whole master template text. I'd really like to only have one master to change.

Am I going about this wrong? I thought nesting would go and grab down the whole chain?

PS: The Show Preview button on this editor doesn't appear to do anything. ChiefVas (talk) 13:24, 11 September 2012 (UTC)

Oops, didn't see the More drop down with the Edit option until I already reformatted the code chunks here. Edited the above to better display the code segments.
Product Version
MediaWiki 1.19.1
PHP 5.3.10 (apache2handler)
MySQL 5.1.30
ChiefVas (talk) 13:54, 11 September 2012 (UTC)

I can't find my wiki

I set up Mediawiki on my computer and accessed it from others on the network, just for local access. I have since changed the network/router and can't find the address for the wiki, is there a file i can search to help me find what the address is so that i can export the old pages to put them on a new online Mediawiki i am now running? 31.51.45.171 (talk) 20:55, 11 September 2012 (UTC)

To help you we would need to know how your network looked before the changes and what exactly you changed. Everything else is only guessing...
Maybe you can access the wiki from the PC on which you installed it: You say you installed MediaWiki on your local computer. Did you install MediaWiki in a webserver on that computer? If so, then start the webserver on that PC and you will find the wiki somewhere under http://localhost/. If you have a webserver on that PC another option would be to use the maintenance script dumpBackup.php, which can create a DB backup for export. 88.130.124.183 23:57, 11 September 2012 (UTC)

Can't generate edit Token

When I send the following request:

api.php?action=tokens&format=xml&type=edit

to obtain an edit token, I receive the following error:

<api> <error code="unknown_action" info="Unrecognized value for parameter 'action': tokens"/> </api>

I have already allowed API, and editing through API. 169.228.177.173 (talk) 23:32, 11 September 2012 (UTC)

action=tokens is a new api module. Perhaps your version of MediaWiki is too old. Does action=tokens appear as a choice in the api.php?action=help output? Bawolff (talk) 18:27, 13 September 2012 (UTC)
I'm using MediaWiki version 1.19.2 and the 'tokens' action isn't available. I'm trying to find a newer version, but this seems to be the latest available at this time. I feel like I'm missing something since the API:Edit page explicitly says to use the tokens action. 69.245.103.30 20:46, 25 September 2012 (UTC)
For now, I'm using the old way of retrieving Edit Tokens with the query action. You can review the History of the API:Edit page for details. 69.245.103.30 20:50, 25 September 2012 (UTC)
Yep, I can confirm. The "old way" works, the use of action=tokens seems to be broken in 1.19.2. 80.66.221.8 21:50, 25 October 2012 (UTC)

Wikisysop cannot grant rights to users (to make them bureaucrat or administrator, both of which groups Wikisysop is in)

Using MediaWiki 1.19.1.

Logged in as Wikisysop.

Visit Special:UserRights as indicated in MediaWiki O'Reilly book.

See this error:

Permissions errors 
You do not have permission to do that, for the following reason: 
Your account does not have permission to add or remove user rights.

Okay, so my question is, what is the issue? Why can't I give rights to arbitrary user's as the Wikisysop and what do I have to do to "make it so". Smcracraft~mediawikiwiki (talk) 19:18, 12 September 2012 (UTC)

To be able to access the page Special:Userrights your account must be in a group, which has the "userrights" right set. You can check this by having a look at Special:ListGroupRights, where you have a list of the rights which each group has. Missing rights can be added in LocalSettings.php as explained here.
Adding
$wgGroupPermissions['bureaucrat']['userrights'] = true;
should do. 88.130.102.93 21:01, 12 September 2012 (UTC)
Thanks - just installed - works super. Smcracraft (talk) 21:41, 12 September 2012 (UTC)

Fatal error: Class 'phpbb_user' not found in /home3/vengefu2/public_html/forum/common.php on line 102

http://wiki.vengefulmalice.net/


Apache version 2.2.22 PHP version 5.4.6 MySQL version 5.1.65-community-log

Media Wiki 1.19.2 PhPBB 3.0.11

i get this error after upgradeing MW and PhPBB Fatal error: Class 'phpbb_user' not found in /home3/vengefu2/public_html/forum/common.php on line 102

any ideas would be greatly apreciated 64.178.134.39 (talk) 21:59, 12 September 2012 (UTC)

Have a look at forum/common.php on line 102 and check why class 'phpbb_user' is requested there. The error somehow seems to be caused by the code inside the folder forum/.
However, PhPBB is not an extension for MediaWiki, it is this standalone message board, right? In that case I would ask at a place, where people know more about PhPBB. I am not sure you will get the right hints here... 88.130.102.93 22:40, 12 September 2012 (UTC)

MediaWiki returns a blank page after install.

I am using MediaWiki 1.19.2. PostgreSQL 8.4.12 and PHP 5.3.3.

I am getting the following error from the error log.

[Tue Sep 11 11:36:50 2012] [error] PHP Warning: require_once(/var/www/mediawiki-1.19.2/LocalSettings.php) [<a href='/var/wwwfunction.require-once.html'>function.require-once.html</a>]: failed to open stream: Permission denied in /var/www/mediawiki-1.19.2/includes/WebStart.php on line 134

[Tue Sep 11 11:36:50 2012] [error] PHP Fatal error: require_once() [<a href='/var/wwwfunction.require.html'>function.require.html</a>]: Failed opening required '/var/www/mediawiki-1.19.2/LocalSettings.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/mediawiki-1.19.2/includes/WebStart.php on line 134

As a preliminary matter, I have already read prior articles and possible solutions to this problem. That includes changing permissions on LocalSettings.php using chmod 644, 755, or 777. I have also attempted to change ownership of the file using chown to apache which is the user name on the Apache server. None of these solutions has fixed the problem. Anyone have other suggestions? 24.120.42.76 (talk) 22:35, 12 September 2012 (UTC)

I am getting the exact problem as well. Anyone have any ideas? Thansk in advance. Boneman147 (talk) 13:07, 26 September 2012 (UTC)
Just figured it out. Check your selinux setting. Mine was set to enforce. I set to permissive and the issue went away. Keep in mind that my setup is in virtual box and I don't need selinux on. Your situation may be different. Hope this helps. Boneman147 (talk) 13:45, 26 September 2012 (UTC)
Forgot to add. If you set selinux to permissive it will only be during that session. Next time you reboot it will go back to enforcing. To permanently change the setting you will need to change the config file in /etc/selinux (for RHEL). Boneman147 (talk) 12:17, 27 September 2012 (UTC)

Broken Lists

Take the given wiki edit,

decl1
echo "1"
decl2
echo "1"


Although this seems to be properly formatted on mediawki, I cannot get this to display properly on my wiki. I've tried enabling $wgUseTidy, however this doesn't fix the issue, and also removes any syntax highlighting from geshi. Any ideas? Tips? Suggestions? I'd really like to get this properly formated on my site, thanks!

url: http://wiki.jbud.me/index.php?title=Sed MediaWiki: 1.19.1 PHP: 5.3.13 (cgi-fcgi) MySQL: 5.1.39-log 24.108.204.63 (talk) 23:47, 12 September 2012 (UTC)

Introduction of all category items in a single page

Can I use the API the fetch just the introduction of all the articles in a category so that I don't have to open all the links to read them.

Earlier I could do something like this by adding a list of iframes in a page with SRCs that look like "en.wikipedia.org/w/api.php?format=xml&action=query&prop=extracts&exsentences=10&titles=Sattriya". But now chrome is throwing an error "Refused to display document because display forbidden by X-Frame-Options". Though i could get only the unparsed html text, it was enough. Pls help.. Aravind V R (talk) 06:07, 13 September 2012 (UTC)

Issues while develop a new MediaWiki Extension

I am trying to create a new Mediawiki extension which reads email and creates new Article based on email content. Being absolutely new to the Mediawiki API, I am stuck with following issues:

1. How to create a new Mediawiki Article via php code? 2. What is the way to manually call extension php page which will then read all the UNSEEN emails and create articles? I mean how to activate via URL.

Pardon me if above questions are stupid but I am fairly new to Mediawiki and PHP programming. 70.164.242.138 (talk) 15:23, 13 September 2012 (UTC)

Password strength

Over on English Wikinews we're looking at minimising the attack surface from abandoned/unused accounts with elevated privileges.

So many websites nowadays have 'gadgets' that give people a clue as-to how strong their password is. I'd love to see MediaWiki include similar, especially for accounts such as admins and bureaucrats. This entropy calculator would be an idea addition. I take it for granted MediaWiki devs are paranoid about their own passwords, use of something like this might help instill a degree of security-consciousness into the user base. Brian McNeil (talk) 21:55, 13 September 2012 (UTC)

Download File from MW by script

In advance: I'm not a programmer and my skills are very low - But I try.

I try a shell script to download things from a wiki. It shall download the semantic metadata from a Page in File:-namespace and furthermore download the file itself. The Wiki is closed so the script has to provide logindata an save the cookies. I use img_auth for the file access in the wiki.

So the script (based on some a similar one i found on http://labs.creativecommons.org/2011/04/30/using-wget-to-login-to-mediawiki/ and modified) does all, include saving the semantic data into a xml file using Special:ExportRDF but I can not get it downloading the File itself. My intention was to isulate the path to the file from the File: page first an then wget it from the wiki. Well img_auth will not pass this.

Any ideas are welcome. Thanks Ralf.

#!/bin/bash
MAIN_PAGE="https://PATHTOMYWIKI/index.php"
PAGE_TITLE="Datei:NAMEOFFILE"
MW_LOGIN="MYLOGINNAME"
MW_PASSWD="MYPATHWORD"
# Mediawiki uses a login token, and we must have it for this to work.
WP_LOGIN_TOKEN=$(wget  -O - --save-cookies cookies.txt --keep-session-cookies \
                                    ${MAIN_PAGE}?title=Special:UserLogin \
                                    | grep wpLoginToken | grep -o '[a-z0-9]\{32\}')
# We have to submit login to the Wiki
wget --load-cookies cookies.txt --save-cookies cookies.txt --keep-session-cookies \
       --post-data "wpName=${MW_LOGIN}&wpPassword=${MW_PASSWD}\

&wpRemember=1&wpLoginattempt=Log%20in&wpLoginToken=${WP_LOGIN_TOKEN}" \

       "${MAIN_PAGE}?title=Special:UserLogin&action=submitlogin&type=login"
# We fetch the semantic Date in RDF Format
wget -O ${PAGE_TITLE}.xml --load-cookies cookies.txt \
       "${MAIN_PAGE}?title=special:ExportRDF/${PAGE_TITLE}"
# We fetch the path to file from the File: page. THIS IS WHERE I NEED A HINT.
#wget -O ${PAGE_TITLE} --load-cookies cookies.txt \
#        "${MAIN_PAGE}?title=${PAGE_TITLE}" | grep ANYTHING THAT CONTAINS THE PATH TO FILE
#We fetch the file from the path fetched before. THIS IS WHERE I NEED A HINT. Carchaias (talk) 09:32, 14 September 2012 (UTC)

Filters edits

Как установить расширение фильтров правок? Что-то сложно мне установить User 1024 (talk) 13:52, 14 September 2012 (UTC)

The author says that he wants to install an additional filter and does not know how to do that. 88.130.102.193 14:49, 14 September 2012 (UTC)

How "upgrade" MediaWiki in Mowes Portable

Hi. Please, help. Several years ago, I install Mowes Portable with MediaWiki 1.15 on my HDD. Is there any chance for upgrade to current version of MediaWiki and keep all data and images? Thank you very much. Zipacna1 (talk) 14:09, 14 September 2012 (UTC)

It should work the same way as any other install. If you mowes does not meet the current requirements, you have to update mysql and php before. Carchaias (talk) 18:24, 14 September 2012 (UTC)
Go through the instructions on upgrading to upgrade MediaWiki.
If you do not have PHP 5.2.3 or later and MySQL 5.0.2 or later, you must update them before. Since they are part of Mowes, you should update Mowes to get PHP and MySQL versions, which work with MediaWiki 1.19. 88.130.108.32 20:27, 14 September 2012 (UTC)
Thanks, but it's not that easy. I try, but i can't back up MySql database, because MySql server in Mowes still crash. Zipacna1 (talk) 07:18, 15 September 2012 (UTC)
If the MySQL server crashes, you should get an error in the MySQL server log, which you should find somewhere in the mysql/ folder, possibly in mysql/logs or so. The exact error message should help you solve this problem. 88.130.108.32 11:35, 15 September 2012 (UTC)

How to deploy MediaWiki on Weblogic

Hi,

I would like to deploy Mediawiki on Oracle Weblogic Server 11g. Is this possible? If yes, could some one please point to some description?

TIA,

Tamas Szecsy 195.228.49.50 (talk) 14:51, 14 September 2012 (UTC)

MediaWiki should support pretty much any web server that supports PHP (and PHP can be run as a cgi script, so that's most modern web servers). I'm not familar with Weblogic, but if it supports PHP it should work (However, not many (or possibly any) people have tested MediaWiki with that server, so using apache is probably much better tested).
MediaWiki also has support for using Oracle database, but this support is somewhat experimental Bawolff (talk) 17:46, 7 January 2013 (UTC)

plane 15 characters with postgresql database search problems

mediawiki 1.19.2 on PostgreSQL 9.1

Dear All,

I am at present trying to set up a wiki, for Zhuang Sawndip that requires support in PUA plane 15 for characters not yet in Unicode. A three line test page revealed a problem with the searches, namely that whilst characters from the plane 0, the BMP (basic multilingual plane), and plane 2, the SIP (Supplementary Ideographic Plane) are handled correctly, when a search is made for plane 15 characters they do not are not found.

The three test lines where:-

BMP 佲估

SIP 𦘭𥎵

PUA 󴆦󴮬

It appears to me that the plane charcters have been blocked in some way, I would like to change the settings so that the plane 15 charcters, which form about 20% of Sawndip text are included.

The site that the wiki will go on is http://gdzhdb.l10n-support.com/ there is an open source online IME at http://gdzhdb.l10n-support.com/legacy/sawndip0619c.html , the PUA characters (presently over seven thousand) are in the open source font http://gdzhdb.l10n-support.com/sawndip-fonts/Sawndip.ttf for which the English version of the license is at http://gdzhdb.l10n-support.com/sawndip-fonts/license/english/ARPHICPL.TXT .

Yours sincerly John Johnkn63 (talk) 08:58, 15 September 2012 (UTC)

xml import trouble

Hi, from Italy, after having exported the template I need from wikipedia (book infobox), I attempted to import the xml file on my wiki. The following is the error I got:


Warning: xml_parse() [function.xml-parse]: Unable to call handler in_() in /mounted-storage/home7/sub001/sc315/www/includes/Import.php on line 437


mediawiki version used is 1.15.1 dim of xml file are 224 KB

Most probably this is a well known issue, but as an absolute newbie, I have no way to sort it out. Anyone can help?

Regards Orazio 79.7.195.244 (talk) 06:28, 16 September 2012 (UTC)

Hi Orazio,
here is a bugreport about that: https://bugzilla.wikimedia.org/show_bug.cgi?id=21000
A few other users had this problem as well. See here for their thoughts on it. Summary: If you have an entry, which is a protected redirect, the import script crashes. Manually removing the restrictions line makes it work. Alternatively downloading an updated import.php from here: http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Import.php?view=co and replacing the original file in the /includes directory might also work fine!
Maybe a MediaWiki update also makes it work; the code which I linked above is taken from the old MediaWiki Core repository and I think that this code should be part of 1.19 or 1.20 at least. 88.130.78.236 23:19, 16 September 2012 (UTC)

Error upgrading to 1.19.2

I'm upgrading via softaculous on my lunarpages server. I have processed the upgrade, but need to finish it by going to http://estiah.dementiastudios.com/mw-config/index.php and process the rest of the upgrade. Unfortunately, by going to that page, it assumes it is a part of the wiki, and brings me to the default "there is no text on this page". I have also gone to the document root at http://www.dementiastudios.org/estiah/mw-config/index.php, however, it gives me a 404 error, stating that it does not appear to be a valid page. I have verified that the index.php resides in the mw-config folder, but for some reason I cannot actually go any further. Can anyone give me any help?

Versions: MediaWiki 1.19.2, PHP 5.2.17 (cgi) (which is weird, because my server upgraded to PHP version 5.3.16 last tuesday), MySQL 5.1.62-cll --Amanujaku (talk) 22:21, 17 September 2012 (UTC)

If http://estiah.dementiastudios.com/mw-config/index.php redirects you to the wiki, then you might have a rewrite rule in your .htaccess file, which does this redirect, no matter if the file, which you tried to visit, is actually there or not. Fixing this rule should help.
For the URL http://www.dementiastudios.org/estiah/mw-config/index.php: You always get the same 404 error when you call something (no matter what) under http://www.dementiastudios.org. Additionally there seems to be some sort of incorrect rewriting as well, which rewrites the URLs e.g. to http://www.dementiastudios.org/estiah/mw-config/?title=mw-config 88.130.87.85 00:09, 18 September 2012 (UTC)
Weird. When I looked at my error log, instead of stating that the URL you attempted to go to was estiah/mw-config/index.php, it stated that you attempted to go to /public_html/index.php. I assume that is a part of the incorrect rewriting that you are referring to?
What would I need to put into my .htaccess file to fix the redirect for http://estiah.dementiastudios.com/mw-config/index.php? Amanujaku (talk) 01:44, 18 September 2012 (UTC)
I am no real .htaccess expert. I think you should decide on one URL under which your wiki should be reachable and redirect the other one to that one. E.g. redirect the longer http://www.dementiastudios.org/estiah/ to the shorter http://estiah.dementiastudios.com. That way you solve this 404 problem.
This might work with something like this:
RewriteCond %{HTTP_HOST} ^www.dementiastudios.com$ [NC]
RewriteRule ^(.*)$ http://estiah.dementiastudios.com/$1 [R=301,L]
Put this in front of all other rules in your .htaccess file, so that this redirect happens before any other rewriting takes place.
Then you need a rule, which stops rewriting, if the URL contains "/mw-config/index.php". This rule must end with the [L] flag and must be put after the rewrite rule from above, but in front of other rules, especially in front of those rules, which make the redirect to the MediaWiki mainscript index.php.
I would try it with this rule (untested):
RewriteRule ^mw-config/index.php - [L] 88.130.87.85 12:00, 18 September 2012 (UTC)

For starters, here's the configuration we're running: MediaWiki 1.19.1 PHP 5.3.3 (apache2handler) MySQL 5.1.61

It's an internal wiki for our company, so I unfortunately can't provide a link, but here's the behavior we're seeing: Let's say you create a lengthy page with lots of different headings (using the "= Name of Heading =" syntax). The content of the page itself should be long enough to take up many vertical screens, and the auto-generated table of contents should also be of significant length. Each of these headings becomes an anchor tag that can be linked to using a URL something like this: http://wiki.ourdomain.com/index.php/Name_of_Page#Title_of_Heading

Now browse any page on the wiki long enough to have a table of contents. Click [hide] to hide the table of contents. Now when you click on a link that should take you to a heading within a particular page, you end up at a position in the page where that content *should* be, if the ToC was shown. Unfortunately, when the ToC is of any significant length and hidden, you end up offset from where you should be in the page by the length of the table of contents. For example, let's say your table of contents takes up an entire page (screen, whatever). When you have the ToC hidden and you click on an anchor tag that should take you to a specific heading within this page, you end up one page lower than you should. If the ToC is *not* hidden, you end up exactly where you should.

Is there any way to work around this, or perhaps re-code the ToC rendering code such that it doesn't render and then collapse (which is what it seems to be doing) when you have it hidden?

Thanks, Ethan Ethanism (talk) 19:50, 18 September 2012 (UTC)

Upgrading MediaWiki in MoWeS Portable?

I would like to update my MediaWiki 1.16 to the newest version in MoWeS Portable... but the Manual:Upgrading page is filled with confusing technobabble, and appears geared only toward upgrading MediaWiki on an actual online web server.  I have no experience with running web servers or any command-line system (and neither does anyone I know), and I don't know how (or where) to execute any of the commands listed in that manual.

Can someone who understands this stuff walk me through the process with an introductory "for dummies" level of complexity?  (I suppose a self-installer executable file for Windows XP would be asking too much...)

I currently have the newest software packaged by MoWeS:

  • Apache2 (version 2.2.11)
  • MySQL5 (version 5.5.8)
  • PHP5 (version 5.3.5)
  • ImageMagick (version 4.2.9)
  • MediaWiki (version 1.16)

I'd like to update whatever can be updated, but especially MediaWiki. — Terminator484 (talk) 22:03, 18 September 2012 (UTC)

Hi!
I have good news for you: With your software (Apache, PHP, MySQL) you do not have to do any additional updates. Updating only MediaWiki is enough.
Manual:Upgrading is mainly targeted at users with a Linux server; but you have Windows XP. So you have to adapt parts of the commands, which are presented there. E.g. you cannot just type "php update.php" on the Windows command prompt to run the script update.php with php.exe. Instead you would first have to change directory to the path in which you have update.php and call php.exe by typing the complete path to the exe.
In short to do the update you must do two things:
First replace the old MediaWiki files with the new ones and second update your database.
That means: Download the tar archive with the newest source code (version 1.19.2) and extract it on your PC. Check which files and folders you have there; these are the ones, which you have to replace in your MediaWiki installation. Move the old files and folders out of the way (maybe best do not delete them, but only move them to the dustbin, just in case something goes wrong) and put the new files and folders there.
Make sure your Apache server and MySQL are running. Now update the database. Two options: The easy one is to use your webbrowser. Visit the URL, which basically points to your wiki, but do not let it point to the MediaWiki mainscript index.php, but to mw-config/index.php. This is a web updater, which does the needed database updates, when you go it through. Second option would be to do the database updates by running the file maintenance/update.php on the Windows Command Prompt with PHP.
To run update.php via command prompt, if you have MediaWiki in C:\Mowes\MediaWiki, you would first cd to C:\Mowes\MediaWiki\maintenance. If you have php.exe in C:\Mowes\php\php.exe, you would then execute php.exe with C:\Mowes\php\php.exe update.php like so:
Microsoft Windows XP
Copyright Microsoft Corp. 1985 - 2001
C:\Documents\Terminator> cd C:\Mowes\MediaWiki\maintenance
C:\Mowes\MediaWiki\maintenance> C:\Mowes\php\php.exe update.php 88.130.71.3 02:05, 19 September 2012 (UTC)
Attempting to follow these instructions DELETED my entire database.
I've been able to partially restore it (drag & drop, overwriting the files), by using a zipped file that contained the entire contents of my Mowes directory... but it wasn't current, and I lost several weeks worth of very hard work.
Needless to say, I am PISSED at the above person.
Oh, and the "mw-config/index.php" does not exist, either. — Terminator484 (talk) 01:12, 3 October 2012 (UTC)
I am sorry to hear that. However, please do not forget that you are responsible for what you do. Neither Manual:Upgrading nor my instructions, which are based on the very same page, tell you to delete your database. Additionally it was your decision not to create a backup (although Manual:Upgrading explicitly tells you to do so!); now don't blame others for your faults! And by the way: The folder "mw-config/index.php" does exist; if in your installation it doesn't, you again did something wrong. 88.130.90.233 12:14, 3 October 2012 (UTC)
You're certainly less than helpful.
And no, I didn't do anything wrong with the installation.  It came from a MoWeS package.  Again, it does not contain a "mw-config" folder.  There is a "config" folder though. — Terminator484 (talk) 10:35, 14 October 2012 (UTC)
If you didn't do anything wrong, why have you then deleted your database? Why have you not tried out in a test install first? Why have you not made a backup?
I have helped you and as a thank you you have nothing better to do than to claim I would be "less than helpful"? Are you off your fucking rocker?!?! I have given you exactly the help you asked for and that more than extensively; what do you want? Don't blame me for your incompetence. If you are unable to do what you are told, that is not my problem. If you know exactly that you do not know how to do things, why don't you try out in a test install first?
It is not my fault, when you don't test things first. It is not my fault, when you do not create a backup. It is not my fault, when you delete your database. There are so many ways that would have prevented you from loosing all your oh so precious data; but when you are just too stupid to pick only one of them, then also I can't help. 88.130.98.127 12:19, 14 October 2012 (UTC)
I created the test install to try to make a backup and update.  Doing so deleted the database.  MoWeS can apparently only support a single installation.
Backup is also completely non-functional in MoWeS: when ordered to backup, it does nothing.  That's hardly my fault.  I have to copy everything into an archive file manually to make anything similar to a backup.
Get the fuck off my thread, you trolling asshole.  You have been no help whatsoever, so don't you claim otherwise.
And get a damn account. — Terminator484 (talk) 13:06, 14 October 2012 (UTC)
Should I be able to smell that MoWeS is such a bad system? But do you know what I think? I am sure that, if used properly, MoWeS is not bad at all. Your real problem actually is that you absolutely cannot cope with MoWeS, but that does not matter here.
You carelessly don't check your backups and now you blame me? Testing if your backups are actually functional, is your job; not MoWeS', not mine, but yours. Had you not negligently missed testing your backups, you would in all likelihood have realized there is a problem, would have been able to fix it and would not have lost your so valuable data - at least a user with ordinary knowledge and intellect at your place would not have lost his data then; you would surely have found a way to loose it anyway.
However, I know what you will respond already: You have already proven that when you miss arguments, you rant and rave at people. Do you also beat people up in real life?
And btw I will decide myself when I no longer answer you. 88.130.68.53 19:10, 14 October 2012 (UTC)
88.130.64.0/18: I've warned Terminator484 for his personal attacks, and I ask that you too refrain from personal attacks. Jasper Deng (talk) 22:57, 14 October 2012 (UTC)
The Image administration manual says MediaWiki 1.17 and higher requires "ImageMagick 6.5.6-2" or higher.  I only have 4.2.9, so how do I update that too?
The ImageMagick FTP server indicated in my version's readme doesn't seem to exist, so where do I get ImageMagick?
Most importantly... is there an installer executable for Windows XP? — Terminator484 (talk) 05:07, 3 October 2012 (UTC)
[1]
Is that what you need? Jasper Deng (talk) 23:50, 14 October 2012 (UTC)
I think so... but it's really quite weird.  I tried installing it, but MoWeS sorta half recognizes it, and only under certain conditions.  The webpage MoWeS opens when it starts the server makes a list of software running, and another for installed packages.  It still insists the only installed package is version 4.2.9.
Here's where it gets weirder... The new ImageMagick installed to a folder called "ImageMagick-6.8.0-Q16", and MoWeS can't recognize this folder, and just doesn't see it.  Renaming it to simply "ImageMagick" result in that MoWeS summary page displaying a message that version 6.8.0 is installed and works... yet the package listed is still only 4.2.9.
MoWeS seems pretty glitchy on the subject, so perhaps it's better to judge functionality by how it actually works in the wiki, and ignore what the MoWeS thing says.  That took some guesswork and modifying my LocalSettings.php file a little.  First, an explosion of errors regarding a bad path (despite correcting the paths) in thumbnail renders... but renaming the "ImageMagick" folder to "ImageMagick-6.8.0-Q16" again, and altering the path callouts in the LocalSettings.php file (to what it was looking for), cleaned up all the errors.  For the first time ever, my wiki supports SVGs!
But it's still a bit buggy.  Two of my test SVGs are strangely missing their colors... which I'll take to a more relevant thread for that topic.
Still don't know how to update the MediaWiki software though... — Terminator484 (talk) 02:43, 15 October 2012 (UTC)

Error checking (resolved)

I am attempting to write an error checking function that checks to see whether a user has supplied either a year (####) or the word "Present". (This is for an infobox for a vehicle. I want to display the production years.) I am 99% of the way there with the following:

{{#iferror:{{#expr: 0 + {{{1}}}}}|{{#ifeq:{{{1}}}|Present|<!--DO NOTHING-->|<!--Display some error message-->}}}}

The issue that I am having is that if a valid date is supplied, then the expression ({{#expr: 0 + {{{1}}}}}) evaluates and is displayed. Is there an easy way to suppress that expression? I seem to remember seeing a "span display=none" type thing somewhere...

Any advice will be greatly appreciated.

UPDATE

Solved the problem 2 minutes later... Go figure...  :-) <span Style="display: None"> was my solution. Zackmann08 (talk) 14:36, 19 September 2012 (UTC)

running Mediawiki installation; on Connect To Database page I get an Apache server restart

Microsoft Windows XP Apache HTTP Server 2.0.64 PHP 5.2.17 MediaWiki 1.19.2 MySQL 5.1

I run the installation script. It reaches the "Connect To Database" page where I enter host "localhost" (also tried 127.0.0.1), Database name: wikidb (already created), username: wkikuser (already created), and password. When I select the "Continue" button, I get an error message "Apache HTTP Server has encountered a problem and needs to close". The installation script has a "Problem Loading Page" error and I cannot continue. Cannot find any log file that contains useful information. 66.161.196.226 (talk) 19:31, 19 September 2012 (UTC)

Any ideas for a password vault?

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 am looking for a password manager that can be embedded in mediawiki. This site is on our intranet, so it just needs to be something a user can log into and add/edit personal usernames/passwords. If anyone has any ideas it would be greatly appreciated. I have looked at programs like lastpass, and keepass, but i would rather it be something we can integrate into the mediawiki itself 168.251.2.40 (talk) 21:20, 19 September 2012 (UTC)
MediaWiki is not made for that; with MW you most probably do not get what you want to.
Do you want that people can save passwords, which they use at other places (email, forums, maybe even online banking) in MediaWiki? You will not have any password management functions like auto fill out available then, so this won't be comfartable to use. Or should they save MediaWiki passwords there? If all passwords are used through a browser you might also consider using the browser's password management. Or is it only about permissions to edit this one wiki? Then the users should update their user data on the settings page. 88.130.82.83 23:59, 20 September 2012 (UTC)
it does not need to auto fill, it would just be so they can log in, view/edit a list of usernames/passwords. basically just something like a simple notepad, that only that specific user can see. 168.251.2.40 13:11, 21 September 2012 (UTC)
any extensions out there that can do the basics? 50.35.30.34 19:59, 10 June 2015 (UTC)
No, because with MediaWiki the contents of any page can be easily leaked to someone able to use the MediaWiki api or view/edit pages. Even if you require login to view pages, if 2 different users are able to edit they can leak the content of pages from each other. Ciencia Al Poder (talk) 20:50, 10 June 2015 (UTC)
Just use a web based password manager and create a link in your wiki page. 203.56.42.0 (talk) 00:31, 3 July 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Class Definitions

Anyone know where classes are actually defined? I am trying to decipher some stuff off of wikipedia and I keep seeing things like class="fn". Where is "fn" actually defined?? I want to be able to see what it does...

As always, any help is greatly appreciated. Zackmann08 (talk) 22:27, 19 September 2012 (UTC)

The classes are going to be defined in a CSS file somewhere on your web server.
For Windows, you could find all the CSS files from a command prompt like this:
C:\MediaWikiDirectory> dir /s *.css
For *nix (Linux, FreeBSD, etc.), you could find them like this:
[user@wikiserver ~] find /path/to/your/MediaWiki/files -name "*.css"
Which CSS file you want will depend on the skin that's being used, and which element of the page you're looking at. If you're viewing the page using Firefox or Google Chrome, you can right-click and select "Inspect Element" to see what CSS files are being used to compute the style applied to that part of the page. From there, you know which files contain the definitions of the styles being used and can modify them appropriately.
HTH,
Ethan Ethanism (talk) 15:01, 20 September 2012 (UTC)

Background Colors

Hello, I have a problem I may have created myself. The background colors for Template:Infobox, Template:SignatureRounded and Template:Navbox are missing and I am unsure where to go to change it back.

Running Mediawiki 1.18.1 http://www.techinfodepot.info

216.78.200.102 00:34, 20 September 2012 (UTC)

Got it, colors needed to be defined in Mediawiki.css
.color1 {
    background-color: #1B5775;
    color: white;
}
Jim 12:38, 20 September 2012 (UTC)

Installation error via simple scripts, please help

I installed mediawiki via simple scripts and everything went fine until I clicked on the admin page for the wiki. I got this error...

Warning: dir(/home/elixir/public_html/ElixirWiki/skins) [function.dir]: failed to open dir: No such file or directory in /home/elixir/public_html/ElixirWiki/includes/Skin.php on line 40

Fatal error: Call to a member function read() on a non-object in /home/elixir/public_html/ElixirWiki/includes/Skin.php on line 43

my url is elixirtheme.com

mediawiki version 1.19.1

php version 5.3.16

mySQL version 5.1.63-cll 702tp (talk) 06:08, 20 September 2012 (UTC)

Migrating from Wikka-Wiki to Mediawiki, Database problem

Hi there,

as the title says, I'm trying to migrate from a Wikkawiki based wiki to a Mediawiki based one. There don't seem to be any tools available to convert the wikka-db, so I want to import the data manually. Right now, I'm trying to create an article by modifying the necessary database entries to understand how mediawiki works:

I edited the tables "page", "revision", "text", "searchindex" and "logging" in the database.

1. The page is created properly

2. The page history is created properly

BUT

accessing the page gives me the following error:

"The database did not find the text of a page that it should have found"

Clicking on the edit button, however, shows the proper content. The same behavior occurs when accessing the article through the history page: same error message, but clicking on edit shows the correct content. Does someone know which table column points Mediawiki to the content of the last version?

Here's my setup:

MediaWiki 1.19.1

PHP 5.2.9 (apache2handler)

MySQL 5.1.33-community

Since I'm running this offline via xampplite, I can't provide a link.

Any help is greatly appreciated. I have been trying to get this to work for days now. Thanks in advance. 217.50.224.217 (talk) 08:32, 20 September 2012 (UTC)

Alright, I solved my problem. Apparently, I mixed up some IDs. I don't know which ones, since my edits as well as automated edits done by Mediawiki use the same methods. So I wiped the database tables I mentioned in my first post so that the IDs would use all the same value per article. 217.50.224.217 18:50, 20 September 2012 (UTC)

mediawiki-1.11.2 - latin1 TO mediawiki-1.13.3 - utf8

I got from someone a wiki that work on different server with mediawiki 1.11.2 to put on my server running mediawiki 1.13.3. (got a mysql dump file and images directory) I saw in the database dump file that the charset is latin. The pages contain hebrew letters. I tried to convert the dump file to utf8 or something with no success. After I load the dump file in my database, I tried to check the lines in the database and the hebrew look like hex of the letters. It look :

  c397c5bec397e28098c397c2a0c397e2809d5fc397

From the mediawiki point of view hebrew title look garbage. because the link to the page is the title, the pages cannot find each other and there are a lot of red link on the pages. Right now I can see all the hebrew text of the page, probably because it save in the database as binary but cannot see the title and because of that I lost the connection between the pages.

Any idea how to solve this problem? Shlomit (talk) 10:16, 20 September 2012 (UTC)

All pages, recent changes, user lists corrupted?

Just finished a brand new 1-click installation of mediawiki into an empty folder. Have not created any users or added any content, only the default (admin) user and main page created by the installer.

When I click Recent changes, or All pages, or Active users, there are tons of entries in each, when it seems as though there should be none.

Am I not understanding something about how mediawiki works, or does these mean there is some corruption in the database?

Details are: Mediawiki 1.16.4 PHP 5.2.17 (cgi-fcgi) MySQL 5.1.53

www.complex-work.org/hit Rlwears (talk) 16:10, 20 September 2012 (UTC)

Oh, I think your database is fine. If you mean this, then you have just seen what the word "spam" means. Seems like some spammers put their junk into your wiki.
You might want to do some (or all) of the following:
  • update MediaWiki to a secure version; e.g. 1.19.2 would be good.
  • disable registration until you have set up some barriers for spam bots (like a captcha or an email confirmation after account creation) 88.130.82.83 00:21, 21 September 2012 (UTC)

Hi. I figured out how to change almost every colours of my MediaWiki in main.css. But I still can't find, how change colours of external links. They are still dark blue. Please, help. Thank you. Zipacna1 (talk) 20:30, 20 September 2012 (UTC)

Try adding the following CSS rule to Special:MyPage/common.css or if you have the sysop bit on your wiki add it to your MediaWiki:common.css page.
a.external { color: green; }
External links use the classes "external" and "text". Allen4names (talk) 03:08, 21 September 2012 (UTC)
Thanks, but this does not work. I already try it before. Zipacna1 (talk) 08:35, 21 September 2012 (UTC)
Replace "green" with "green !important" and it should work. Look for the text "External link color" at en:User:Allen4names/common.css and copy the line below it. Allen4names (talk) 03:16, 22 September 2012 (UTC)
It works, thanks. Zipacna1 (talk) 22:39, 22 September 2012 (UTC)
There is no need to bombard it with !important. To override a selector, one only has to make sure its cascading value is equal or higher than the original. In this case:
div#content a.external {
    color: pink;
}
Krinkle (talk) 20:42, 22 September 2012 (UTC)
And this also works. Thanks. Zipacna1 (talk) 22:44, 22 September 2012 (UTC)

Integrating MediaWiki into phpBB

Hi everyone,

I've noticed several sites on the web that have a phpBB forum and a MediaWiki page that look identical. It has the same style/skin/template; whatever you want to call it. Examples can be seen here:

Example 1:

Forum - http://brazilieforum.nl/index.php Wiki - http://brazilieforum.nl/wiki/Hoofdpagina

Example 2:

Forum - http://www.mizahar.com/forums/ Wiki - http://www.mizahar.com/lore/Mizahar

See? It's pretty much the same look, which is what I'm trying to achieve as well. The only problem is that I can't figure it out. I was wondering if anyone else could help me achieve a similar appearance. Xapzi (talk) 22:48, 20 September 2012 (UTC)

Using ParserFunctions with External Data

I am trying to use the {{#if: ParserFunction inside a {{#for_external_table call but it does not work. Example below.

{{#get_db_data:
db=externaldb
|from=table
|data=value1=value1
}}

{| class = "wikitable" 
! Value1{{#for_external_table:<nowiki/>
{{!}}-
{{!}} {{#if: {{{value1}}} | yes | no }}
}}
|}

It seems that only the first value goes trough the ParserFunction {{#if: and it determines the result. When the first {{{value1}}} is not empty yes is displayed. When there is a empty {{{value1}}} on the second row yes is displayed again where it "should" display no. The ParserFuction is working but not for all rows. I think I am doing something that is just not possible but is there a way to get this to work? Thanks. Felipe (talk) 08:53, 21 September 2012 (UTC)

MathML in MediaWiki

Hello, I have a lot of files containing technical documentation converted to MediaWiki. Mathematical formulae are described in MathML. How can I display them? I see two solutions:

  1. keeping MediaWiki from rendering MathML and using the browser's capabilities to render MathML
  2. convert MathML to TeX (what program do you recommend?) and using MediaWiki/TeX to convert it into PNG

Solution 1 seems easiest to me, as rendering of MathML in my Browser works fine. Unfortunately I was not able to keep MediaWiki from rendering it.

What do you recommend?

Thanks, Martin 451plus (talk) 09:03, 21 September 2012 (UTC)

How do I add to Extension:WebFonts?

I am trying to add this font http://www.dafont.com/kremlin.font but the directions for adding fonts are totally inadequate. How am I supposed to do it? Lieutenant Aleksandr Reznov 09:42, 21 September 2012 (UTC)

Adding User details to MediaWiki

We are planning to use Mediawiki for our website. The only problem we have though is that the user details do not contain enough information (we need to add a user_school property). Is there anyway to do this from the setup of MediaWiki? Is it possible to use an existing extension or do we need to trace the entire website and add the properties and functions ourselves?

Thanks, Jay.M (talk) 11:23, 21 September 2012 (UTC)

Blocking page edit by HTTP-query params

When user edit pages HTTP-queries include special parameter. 1. How can I block editing if this parameter defined in HTTP-query? 2. How can I allow editing of the user has a special flag?

So, where I can see simple extension for mediawiki, which add user rights and install hook for edit? 85.26.165.49 (talk) 17:10, 21 September 2012 (UTC)

Problem with possible bias against main namespace articles in Google search results

For some reason, it seems that main namespace pages are not getting proper ranking compared to other namespace pages and the associated talk pages.

Search results for Sturmkrieg Scharzenkommando compared to Sturmkrieg Scharzenkommando site:sturmkrieg.com Lieutenant Aleksandr Reznov 18:04, 21 September 2012 (UTC)

change media wiki directory

i had set up a wiki here: http://www.scoutmorciano.it/ScoutWiki/ obviously my file are in this directory of the server "ROOT/ScoutWiki" i want to move file on the server to the new directory "ROOT/mediawiki" but without changing original URL (http://www.scoutmorciano.it/ScoutWiki/) how can i do? 79.22.243.116 (talk) 16:58, 22 September 2012 (UTC)

You can set up some rewrite rules in the .htaccess file.  Hazard-SJ  ±  18:10, 22 September 2012 (UTC)
i don't have much experience with .htaccess, can you help me? 79.22.243.116 18:34, 22 September 2012 (UTC)
Try moving the directory and applying the changes listed at this page.  Hazard-SJ  ±  18:40, 22 September 2012 (UTC)
i'll try! thanks! 79.22.243.116 07:50, 23 September 2012 (UTC)
There are variables like $wgArticlePath and $wgScriptPath, which you can set in LocalSettings.php. Maybe with these you can already do what you want. 88.130.108.88 13:49, 23 September 2012 (UTC)

All references aren't in Special:WhatLinksHere

I found that not all file/page references aren't linked to on Special:WhatLinksHere. I find that it isn't linked to if it's in a #ifeq, #if, etc... Here's an example - http://runescape.wikia.com/index.php?title=Template%3ARuneReq&diff=6283587&oldid=5548742 , I moved the file and suppressed the redirect and happened to find it transcluded in a template, but not on Special:WhatLinksHere. I would think it'd show up on Special:WhatLinksHere since it is on the page, but that's not that case, it seems to only show up if it is seen on the page including the template. I'd really appreciate if this was fixed/added so that I could easily get things fixed easier on my wiki. Thanks. Hairr~mediawikiwiki (talk) 04:22, 23 September 2012 (UTC)

user specific settings in LocalSettings.php

Is there a way to access the user name and/or group of the current user? I'd like to do something like this:

if (!is_in_group($username, "sysop")) {
  wgSpamRegex = "!https?://!"; 
}

So, all I'd need is a way to access the user object form LocalSettings.php

cheers, Philipp 124.168.13.236 (talk) 08:44, 24 September 2012 (UTC)

There are several hooks, which give you the existing user object. I would try to find out, when $wgSpamRegex is used. Then I would look for a hook before that point and would try to use that one. 88.130.95.144 13:37, 24 September 2012 (UTC)

Extract parameters with JavaScript

Hello,
Is there any way to extract a template parameter value from a page to use it to change things on all pages with JavaScript? For example, if a user page has a certain template with certain parameters in it, I want the wiki to show customized content on all pages for that user depending on what values he gave to the parameters in his page?
Thank you very much, --Agantacroxi (talk) 18:00, 24 September 2012 (UTC)

Easy way to implement massive IP range blocks?

I'm running a very small wiki. I'm having some problems with spammers. I have a hosting package with another company which may limit to some degree what I'm capable of doing. Geolocation tools say that the spammers are virtually all coming from a specific part of China, but the "real" users of the wiki are only from a specific bit of Southern California, so I'd kind of like to block write permission (or block account creation) for all of the world except for the US. Apparently, this would mean a set of IP range blocks something like the following: 217.0.0.0/8 218.0.0.0/7 220.0.0.0/6 224.0.0.0/3 but the Mediawiki interface will only let me do /16 IP range bans, which would be an incredible amount of range bans. Any suggestions on how to stop these spammers from creating user accounts without mandating that every "good" user account be individually vetted and allowed to come on board? Banaticus (talk) 04:33, 25 September 2012 (UTC)

Manual:$wgBlockCIDRLimit, but you can do little unless you can get this changed in your LocalSettings.php.
On the subject of Chinese spam, unfortunately there's great danger for collateral damage unless you have no Chinese users and don't expect any. Also, you shouldn't be getting any edits from 224.0.0.0/3 at all - your ISP should be discarding packets from those addresses. Jasper Deng (talk) 04:49, 25 September 2012 (UTC)
Thanks. If I change the setting in LocalSettings after the block has been set, does the fix stay in or does it get lost? In other words, having now blocked 217.0.0.0/8, 218.0.0.0/7, and 220.0.0.0/6, if I set LocalSettings back to the way it was, will those range blocks still stay blocked?. What sort of collateral damage might occur (I have no Chinese users and don't expect any)? Banaticus (talk) 07:29, 28 September 2012 (UTC)
I don't know about that.
If you have no Chinese users and don't expect any, you should be fine. Jasper Deng (talk) 17:06, 28 September 2012 (UTC)

Button Go to Top

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,
I need a button/link to skip to the top of the page when this is very long.
I cannot use the Anchor because In the first row of the page there is not a Section.
Thanks in advance for the advices
WT WhiteTigerItaly (talk) 05:01, 25 September 2012 (UTC)
Use #top as the anchor. E.g., Help:Links#top. Leucosticte (talk) 07:11, 25 September 2012 (UTC)
Many thanks.
I looked for this information, but I have not seen this help page. WhiteTigerItaly (talk) 07:35, 25 September 2012 (UTC)
<span id="BackToTop"></span>
<div class="noprint" style="background-color:#FAFAFA; position:fixed; bottom:2%; left:0.25%; padding:0; margin:0;">
[[#BackToTop|Back to the Top]]
</div>
This will put a floating "Back to the Top" link at the bottom left of the page. 12.106.197.114 21:43, 24 September 2014 (UTC)
I did a little code swiping from this technique and have some artifacts that I could use an expert fix or opinion on what is causing them. My version morphed that into a button based part on code I adapted to prod new users in tutorials. Merged that with the above, and for some reason am seeing a long tale 1-2px bar just before and just after the virtual 'mouse button' wrapping the above code (more or less). The template is on a lot of pages, so be careful! See b:Template:TRS-hdrbox, and if you want a sandbox, b:template:TRS-X serves that function for us. I'd appreciate it. I'm no good at peeking at the output code for the generated page, and have no time to tackle learning CSS and scripting. Best regards, FrankB 02:23, 26 September 2014 (UTC)
Had my son look at this is firebug and he resolved the matter for me. I'd had an initial border statement in the wrapper showing through---just like as if I'd told the computer to do that. Go figure! LOL.
For others liking this technique, the original code above did not find the page top. A minor misrecollection, I'm sure. The necessary syntax is:
[[#top|...]] - for the default anchor on the page
My solution was a button, with some reordering of the elements:
<div id="BackToTop"  class="noprint" style="background-color:#DDEFDD; position:fixed;
 bottom:32px; left:2%; z-index:9999; padding:0; margin:0;"><span style="color:blue;
 font-size:8pt; font-face:verdana,sans-serif;  border:0.2em outset #ceebf7;
 padding:0.1em; font-weight:bolder; -moz-border-radius:8px; ">
[[#top|&nbsp;Back to the Top&nbsp;]]</span></div>
The position is somewhat arbitrary, but we'd raised it above the bottom page so when it floats over links the can be seen to float through and beneath; this also doesn't cover the mediawiki logo at the bottom page on the Wikibooks. If you want to see it in action, see any Trainz Wikibook page that's got the header nav template. Enjoy! FrankB 04:20, 26 September 2014 (UTC)
Thanks, that works! Chrisdevelop (talk) 03:10, 25 October 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Two TOC in the page

I have pages with text in two languages. Now I have only a TOC with two main section about the languages and below these the real sections translated in both languages.

Instead I would like to have two TOC near the point where the two main sections begin in the text. Is it possible?

Thanks in advance WT WhiteTigerItaly (talk) 05:18, 25 September 2012 (UTC)

I don't see a way to do it, but I wonder if Extension:PageInfo might be modified to suit your purpose. Leucosticte (talk) 07:16, 25 September 2012 (UTC)
I read:
This extension displays an information box near to the table of contents
When the table of content is present, it will be placed right of it
I don't think that it the right choice and now I'm not able to modify it.
However thanks for the advice. WhiteTigerItaly (talk) 07:40, 25 September 2012 (UTC)

Filter on categories

I need to filter some separate categories where the same page is present. I give an example to explain better.

The page "Command1" is present in the categories "System Commands", "SysABC" and "SysXYZ"
The page "Command2" is present in the categories "System Commands" and "SysABC"
The page "Command3" is present in the categories "System Commands" and "SysXYZ"
The page "Command4" is present in the categories "User Commands" and "SysXYZ"
The page "Command5" is present in the categories "User Commands" and "SysABC"

I wish to see:

"Commands" category with:

  • System Commands
  • User Commands

And then "System Command" category with the sub categories:

  • Command1
  • Command2
  • Command3

SysABC category with the sub categories:

  • System Commands
  • User Commands

And then "System Command" category with:

  • Command1
  • Command2

How I can organize the categories to have these filters?

Thanks in advance for the advice.

WT WhiteTigerItaly (talk) 05:53, 25 September 2012 (UTC)

If I understand you correctly, you just need to:
  • Add [[Category:Commands]] to the pages Category:System Commands and User Commands
  • Add [[Category:System Command]] to the pages Category:Command1, Category:Command2, and Category:Command3
  • Add [[Category:SysABC]] to the pages Category:System Commands and Category:User Commands
  • Add [[Category:System Command]] to the pages Command1 and Command2
Have you browsed through Help:Contents, Manual:FAQ, Special:Search, etc.? There's a lot of good info there, especially if you select "Everything". Leucosticte (talk) 07:23, 25 September 2012 (UTC)
Now I try.
I've read dozens of pages about Manual/Help/FAQ and also two books, but I'm working only since a week and so I've some doubts.
Thanks. WhiteTigerItaly (talk) 07:47, 25 September 2012 (UTC)
I tried.
I created three categories: Linux, AS400, System Management.
System Management is contained both in Linux and AS400
Then:
I created the page PowerDown with categories AS400, System Management
I created the page Poweroff with categories Linux, System Management
Now, if I open the category:
  • System Management, I see Powerdown, Poweroff (Right!)
  • Linux, I see Poweroff (Right!)
  • AS400, I see Powerdown (Right!)
But if I open:
  • AS400/System Management I see again Powerdown, Poweroff.
  • Linux/System Management I see again Powerdown, Poweroff.
And this is wrong because Poweroff is not related to AS400 and Powerdown is not related to Linux.
So I repeat my question about some filters.
Thanks in advance. WhiteTigerItaly (talk) 15:02, 25 September 2012 (UTC)
I tried.
I created three categories: Linux, AS400, System Management.
System Management is contained both in Linux and AS400
Then:
I created the page PowerDown with categories AS400, System Management
I created the page PowerDoff with categories Linux, System Management
Now, if I open the category:
  • System Management, I see Powerdown, Poweroff (Right!)
  • Linux, I see Poweroff (Right!)
  • AS400, I see Powerdown (Right!)
But if I open:
  • AS400/System Management I see again Powerdown, Poweroff.
  • Linux/System Management I see again Powerdown, Poweroff.
And this is wrong because Poweroff is not related to AS400 and Powerdown is not related to Linux.
So I repeat my question about some filters.
Thanks in advance. WhiteTigerItaly (talk) 15:02, 25 September 2012 (UTC)

Context sensitive button for "random article"

Dear All, This might not be the right forum for this question, but I cannot find any link to some "propose new functions"-page.

Whenever bored - about ten times per day - I klick the "Random Article" link, which normally takes me out of my darkness. It is, however, very likely that the first fifty tries or so brings up an article about some US official, or an artist known only to his or her parents.

Wouldn't it be nice to be able to "lock" the random article search to some specific areas, for examle physics, beer or math, or at least make it select random articles within the context of the selected "portal".

Or am I stupid again?

Cheers

/Hans, a bored swede. 193.44.5.155 (talk) 07:48, 25 September 2012 (UTC)

403 Forbidden

Hello. I installed MediaWiki and everything works fine except the page with image. I can place uploaded images in articles but when I click them i get 403 error. Please help. I'm using paid virutal hosting. 94.41.247.114 (talk) 13:20, 25 September 2012 (UTC)

Have a look at the server log. There you will find more information about the problem you have. 88.130.75.226 19:11, 25 September 2012 (UTC)
Where can I find it? 77.79.169.113 10:18, 26 September 2012 (UTC)
OK.I've found it.It tells me there are no errors. 94.41.197.162 10:29, 26 September 2012 (UTC)

Server problems: cannot edit pages

Hi all,

So I'm a bit perplexed/confused as to a problem that is occurring right now, and I'm hoping someone can shed insight on the issue. Originally we created a wiki for an academic project on one domain, let's say general_projects.org/wiki . We were able to edit pages with no problem and there were no issues.

Now we have a new page, let's say wiki.project.org, that acts as a masked redirect to general_projects.org/wiki. When we are viewing the wiki through the masked redirect, we can view pages but we are not able to edit (nothing happens when you click on "edit"). However we can still edit through the original general_projects.org/wiki.

I'm not sure if this was the most efficient way of handling things, but regardless we are now stuck with this problem. Does anyone have any ideas/suggestions as to why we can't edit through the masked redirect? Is it fixable?

Thanks, -Andrew 130.85.80.60 (talk) 14:18, 25 September 2012 (UTC)

Participate in the world's largest photo competition and help improve Wikipedia!

How do you a message/box like that on every page? Can somebody help me? Do they do it with an extension or with a 'normal' page/template? 78.21.3.76 (talk) 14:26, 25 September 2012 (UTC)

OK after some extra googling, I found the solution:
http://www.mediawiki.org/wiki/Manual:Interface/Sitenotice 78.21.3.76 14:52, 25 September 2012 (UTC)

Urgent - English Wikipedia broken

I got server error. No pages can view in English! B767-500 (talk) 15:37, 25 September 2012 (UTC)

en:WP broken - thread was split by a spammer

There does not appear to be a problem with the English Wikipedia at this time, at least not with its servers. Jasper Deng (talk) 15:45, 25 September 2012 (UTC)

How to integrate a Navigation Path

I would like to show in the top of the page the path that the user has follow allowing him to go back to any of the pages that he previously visited, for example: Main->Construction->Projects->Building01->Material Is that possible? Is there any extension that already does that? Which mediawiki page should I modify in order to include that?

Any help is appreciated.

PD: I am working on windows 7 with Apache 2.4.2, PHP 5.4.3 and MediaWiki 1.19.2 189.245.103.10 (talk) 17:10, 25 September 2012 (UTC)

Hi,
What you are referring to are called "Breadcrumbs".
Try this extension, though I personally haven't used it yet: Extension:BreadCrumbs_(Kimon)
Edit: Or this: Extension:PageTrail Fereal (talk) 13:47, 27 September 2012 (UTC)

Upload: temporary file not found

Hi,

I have a problem regarding file upload (PHP 5.1.2, MediaWiki 1.16.2 on an openSUSE system). When I try to upload a file, it first gives me an error that the file's MIME type does not fit its file name extension. When I deactivate the MIME check, the true problem is revealed: The temporary upload file cannot be found (not sure what the English error message would be as I use the German version, it says something like "Error: file /var/phpupload/blahblahblah not found".

Indeed, the requested temporary upload file is not created in that directory. There are no settings altering the temporary upload path or anything else in php.ini whatsoever.

Has anyone ever encountered something similar? 87.176.244.82 (talk) 11:34, 26 September 2012 (UTC)

TOC in more columns

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. Is there any possibility to make a TOC in multiple columns?
Thanks for help. Zipacna1 (talk) 19:12, 26 September 2012 (UTC)
Hi, try adding this to CSS:
.toc ul li {
display: inline-block;
vertical-align: top;
}
.toc ul li ul li {
display: block;
}
You may also want to add some padding properties. ul li are entire block sections (1 A test, including 1.1 A1 test, 1.2 A2 test) while ul li ul li contain the individual links to the subsections (1.1 A1 test). Fereal (talk) 13:43, 27 September 2012 (UTC)
Very pretty, thank you very much. Any chance do the same only for one page? Zipacna1 (talk) 23:25, 27 September 2012 (UTC)
G'day,
Try searching for an extension that sets per-page CSS.
Edit: Try Extension:CSS Fereal (talk) 16:36, 29 September 2012 (UTC)
Every page has a CSS class applied to the body element with the page name (this one is "body.page-Project_Support_desk"). You may put it to the CSS selectors so they apply only to a specific page. Ciencia Al Poder (talk) 17:17, 29 September 2012 (UTC)
Your link "picture2" probably user a URL shortener. It has malware inside now. 87.91.248.85 (talk) 23:34, 27 February 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Moving MediaWiki: Error 330, PHP Catchable fatal error

Hello, Dear Colleagues!

I'm moving my MediaWiki site, http://wikigenia.org.il, to a new hosting-service (iPage.com). I followed the migration guidelines by the letter (so I think, at least), but still the site is not working.

Going to the domain, I get "Error 330 (net::ERR_CONTENT_DECODING_FAILED): Unknown error."

Looking at the error logs, I have: 20120924T111909: wikigenia.org.il/index.php PHP Catchable fatal error: Argument 2 passed to CategoryViewer::__construct() must implement interface IContextSource, null given, called in /hermes/bosweb/web172/b1728/ipg.wikigeniaorgil/wikigenia/extensions/CategoryTree/CategoryPageSubclass.php on line 9 and defined in /hermes/bosweb/web172/b1728/ipg.wikigeniaorgil/wikigenia/includes/CategoryViewer.php on line 61 Unfortunately, I couldn't figure that out by myself, so any assistance would be much appreciated.

MW installation: 1.19.2, PHP: 5.3.13, MySQL: 5.0.91, Platform Type: Debian.

Thanks in advance for any help, Arnonhersh (talk) 10:26, 27 September 2012 (UTC)

Hi,
Which migration guidelines?
Try disabling the CategoryTree extension in LocalSettings then see if it can run. Fereal (talk) 14:00, 27 September 2012 (UTC)

404 not found error

Hi all,

We have a wiki installed on a GoDaddy server which is running linux. Upon trying to access the page, I get this error:

_______________________________________________________________________________________________ Not Found

The requested URL /wiki/index.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Apache Server at [our webpage] Port 80 _______________________________________________________________________________________________

I'm absolutely perplexed as to what is going on. My understanding is that it cannot find the index.php file in the wiki folder, but when I FTP into the server and go into the wiki folder I find the index.php file.

As far as I can tell, the server was configured to have the latest version of php running (we have a php5.ini file present in the root directory). I don't know about MySQL, could that be a reason for this error?

Thanks for any help, -Andrew 130.85.80.60 (talk) 17:21, 27 September 2012 (UTC)

Mobile App development

I have been working with a non-profit religious group for several years and we have a fairly extensive wiki developed. Thank you all for the great tool! Anyway, we are considering trying to develop an App for Android & Iphone/Ipad users but have no idea where to start. Yes, we are doing ok on mobile browsers, but we think this would be a great step. But until we know how difficult & expensive it is, we won't know. I use the Wikipedia App on my Droid Razr all the time. Can anyone tell me what it takes to develop such an App?

BTW: Our wiki is at http://en.fairmormon.org/Main_Page

Info: MediaWiki 1.19.2 PHP 5.3.6-13ubuntu3.8 (fpm-fcgi) MySQL 5.1.63-0ubuntu0.11.10.1


Edwin Slack FAIR Volunteer Edslack (talk) 18:41, 27 September 2012 (UTC)

500 error when uploading/viewing images

I recently install mediawiki and have not had any issues creating and editing wiki pages until I attempted to upload a new image to the wiki server. I used the upload file page, after I browsed to my 60k image I selected upload file. After that I received a 500 error. I also get this on any page that attempt to view the image. Gallery of new files, File lists.. etc.
Error:
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.
I've check my permission on the following files to try and fix the issue.
C:\php\ IUSR Permission Full Control
C:\inetpub\wwwroot\wiki\images IUSR Permission Full Control
I can also see the image in C:\inetpub\wwwroot\wiki\images\e\e5
Any ideas of how to fix this issue.
System Information:
MediaWiki: 1.19.2
PHP Version: 5.4.6
MySQL: 5.5.27
OS: Windows Server 2012 Enterprise
Web Server: IIS 8
LocalSettings.php
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = 'C:\Program Files (x86)\ImageMagick-6.7.9-Q16\convert.exe';
$wgEnableUploads = true;
$wgFileExtensions = array('png', 'gif', 'jpg', 'jpeg', 'doc', 'xls', 'mpp', 'pdf', 'ppt', 'tiff', 'bmp', 'docx', 'xlsx', 'pptx', 'ps');
$wgMimeDetectorCommand = "file -bi";
$wgHashedUploadDirectory = false;
$wgCacheDirectory = "$IP/cache";
Ebmarquez (talk) 00:06, 28 September 2012 (UTC)
I also created an error log by adding show exceptions and debuglogfile option.
$wgShowExceptionDetails = true;
$wgDebugLogFile = 'C:\inetpub\wwwroot\wiki\error-debug_log.txt';
I'm not seeing a smoking gun in the log, so would this mean a permission issue?
Here's the log output from when I tried to upload a new image.
Start request
POST /wiki/index.php?title=Special:Upload
HTTP HEADERS:
CONTENT-TYPE: multipart/form-data; boundary=---------------------------7dc8b2a70ed0
CONTENT-LENGTH: 73599
DNT: 1
USER-AGENT: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.2; WOW64; Trident/6.0; .NET4.0E; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729; Zune 4.7)
REFERER: http://myhost/wiki/index.php?title=Special:Upload
HOST: myhost
COOKIE: mywikiUserID=2; mywikiUserName=ebm; mywikiToken=6dc05764f1653a44f083e819d21ade4c;  mywiki_session=c6b16529aa3a5585d958146bb2bc1550
ACCEPT-LANGUAGE: en-US,en;q=0.8,ja;q=0.7,ko;q=0.5,zh-Hant;q=0.3,zh-Hans;q=0.2
ACCEPT-ENCODING: gzip, deflate
ACCEPT: image/jpeg, application/x-ms-application, image/gif, application/xaml+xml, image/pjpeg, application/x-ms-xbap, */*
CONNECTION: Keep-Alive
CACHE-CONTROL: no-cache
CACHES: EmptyBagOStuff[main] SqlBagOStuff[message] SqlBagOStuff[parser]
session_set_cookie_params: "0", "/", "", "", "1"
LocalisationCache: using store LCStore_CDB
Warning: no dba extension found, using emulation.
User: cache miss for user 2
Connecting to localhost mywiki...
Profiler::instance called without $wgProfiler['class'] set, falling back to ProfilerStub for safety
Connected to localhost mywiki.
 Connecting to localhost mywiki...
Connected to localhost mywiki.
MessageCache::load: Loading en... got from global cache
Gadget::loadStructuredList: MediaWiki:Gadgets-definition parsed, cache entry mywiki:gadgets-definition:6 updated
User: loading options for user 2 from database.
User: logged in from session
Fully initialised
User: cache miss for user 2
User: loading options for user 2 from database.
User: logged in from session
User: loading options for user 2 from override cache.
Unstubbing $wgParser on call of $wgParser::firstCallInit from unknown
Parser: using preprocessor: Preprocessor_DOM
Unstubbing $wgLang on call of $wgLang::_unstub from unknown
User::getBlockedStatus: checking...
UploadBase::createFromRequest: class name: UploadFromFile
FSFile::getProps: Getting file info for C:\php\uploadtemp\phpD270.tmp
MimeMagic::__construct: loading mime types from C:\inetpub\wwwroot\wiki/includes/mime.types
MimeMagic::__construct: loading mime info from C:\inetpub\wwwroot\wiki/includes/mime.info
MimeMagic::doGuessMimeType: analyzing head and tail of C:\php\uploadtemp\phpD270.tmp for  magic numbers.
MimeMagic::doGuessMimeType: getimagesize detected C:\php\uploadtemp\phpD270.tmp as image/jpeg
MimeMagic::guessMimeType: guessed mime type of C:\php\uploadtemp\phpD270.tmp: image/jpeg
MimeMagic::improveTypeFromExtension: improved mime type for .jpg: image/jpeg
XMPReader::startElementModeInitial Ignoring unrecognized element <http://ns.microsoft.com/photo/1.2/:RegionInfo>.
XMPReader::startElementModeInitial Ignoring unrecognized element  <http://ns.microsoft.com/photo/1.2/:RegionInfo>.
FSFile::getProps: C:\php\uploadtemp\phpD270.tmp loaded, 72611 bytes, image/jpeg.
mime: <image/jpeg> extension: <jpg>
UploadBase::verifyExtension: mime type image/jpeg matches extension jpg, passing file
UploadBase::detectScript: checking for embedded scripts and HTML stuff
UploadBase::detectScript: no scripts found
ZipDirectoryReader: Fatal error: zip file lacks EOCDR signature. It probably isn't a zip file.
UploadBase::detectVirus: virus scanner disabled
UploadBase::verifyFile: all clear; passing.
ForeignAPIRepo: HTTP GET: http://commons.wikimedia.org/w/api.php?titles=File%3 ATestebm.jpg&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata%7 Cmime&prop=imageinfo&iimetadataversion=2&format=json&action=query&redirects=true
Class PEAR_Error not found; skipped loading
ForeignAPIRepo: HTTP GET: http://commons.wikimedia.org/w/api.php?aisha1base36=cupt8rlsj0ezk8 grtpenzmfhxwsire3&aiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata%7 Cmime&list=allimages&format=json&action=query&redirects=true
FSFileBackend::getFileListInternal() given directory does not  exist: 'C:\inetpub\wwwroot\wiki/images/thumb/Testebm.jpg'
LocalFile::purgeThumbList: array ()
DatabaseBase::query: Writes done: INSERT IGNORE INTO `image`  (img_name,img_size,img_width,img_height,img_bits,img_media_type,img_major_mime,img_minor_mime,img_timestamp,img_description,img_user,img_user_text,img_metadata,img_sha1) VALUES ('Testebm.jpg','72611','720','480','8','BITMAP','image','jpeg','20120927234345','test','2','Redmond\\emarq','a:2:{s:8:\"Software\";s:50:\"Microsoft Windows Live Photo Gallery 15.4.3555.308\";s:22:\"MEDIAWIKI_EXIF_VERSION\";i:2;}','cupt8rlsj0ezk8grtpenzmfhxwsire3')
IP: 172.19.41.60
WikiPage::doEditUpdates: No vary-revision, using prepared edit...
Saved in parser cache with key mywiki:pcache:idhash:37-0!*!*!*!*!*!* and timestamp  20120927234345
DatabaseBase::query: Writes done: REPLACE INTO `objectcache` (keyname,value,exptime) VALUES  ('mywiki:pcache:idhash:37-0!*!*!*!*!*!*','uTÛnâ0 ís¾ÂÍãJ”\\ l\rª´BÝ ‰K$Ðî³Ifƒ—Ķl§@«þûzÂ¥¶ð€tÎØsæÌ1s\ZFÔO˜6 ç•U•õi ÑWC»Ô/—°³~ßÐ8èQ?  - ë\rÚêÑ Ü¶ZÄ›Á6IHÁKn‰ %µõ ÷«e\nÆHM„Ì€¤² –’°  õÇK¤±-Ø)&2ÂEZT®Èð  $hGÁC/ìFdµw½¼%”ª`  ÓyU‚°_Ô=í  ÃŸ¨z ò· ©åRœš ØÜkµ ½ƒò { l~ªOYº ²åvM6°\'\0é–o8U5Ny¶ffMã^+¸ýöþ%8€å¥3…•ŠDAèTE½(îĝ.Áfè]ØqFN˜È+–Ä‹ñûŒ ôõÍq¡ã†nÀ\\j M\"@÷¹-à´‚ðžú?y téÚÁª¼û§rÄïñö«[ëÃGëšxÔÀÇYƒqÛ-Ç¥Ó׬þî@ì¸\0¦Óõ\\¡ŸM çzÚYЂ ×\n0<cá8´ñ³¡]r P¯Èï¯hÐ?ž ñ >¡p ™üÅŠ ôþ   ËÆ ÊÆý¨{*³ª€kµ t‘j®l“‹ß9»¿<Ö=SS é+‡ÐÏã IÙ ñÁ ?˜ \\äWèq²kŸŸ2nÔRn\0ù \rûG³ - h{‘ <µœ GËé cà¼ðûçÜ #yŠße2 \\lnš¯þÆ­+ƒ]\" žî  ÆÁ‡Â )¾nÈ>$ %ý mêÍÕ? áÝý]ç¬kˆ	Å}­«¶´®sOšã®gˆb>‡RXÆ…™ Ù”å<=Äàí?','20120928234345')
BacklinkCache::getLinks: from DB
BacklinkCache::partition: got from database
BacklinkCache::getLinks: from DB
BacklinkCache::getLinks: from DB
OutputPage::sendCacheControl: private caching;  **
Request ended normally
Start request
GET /wiki/index.php?title=File:Testebm.jpg
HTTP HEADERS:
CONTENT-TYPE: 
CONTENT-LENGTH: 0
DNT: 1
USER-AGENT: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.2; WOW64; Trident/6.0; .NET4.0E; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729; Zune 4.7)
REFERER: http://myhost/wiki/index.php?title=Special:Upload
HOST: myhost
COOKIE: mywikiUserID=2; mywikiUserName=ebm; mywikiToken=6dc05764f1653a44f083e819d21ade4c;  mywiki_session=c6b16529aa3a5585d958146bb2bc1550
ACCEPT-LANGUAGE: en-US,en;q=0.8,ja;q=0.7,ko;q=0.5,zh-Hant;q=0.3,zh-Hans;q=0.2
ACCEPT-ENCODING: gzip, deflate
ACCEPT: image/jpeg, application/x-ms-application, image/gif, application/xaml+xml, image/pjpeg, application/x-ms-xbap, */*
CONNECTION: Keep-Alive
CACHE-CONTROL: no-cache
CACHES: EmptyBagOStuff[main] SqlBagOStuff[message] SqlBagOStuff[parser]
session_set_cookie_params: "0", "/", "", "", "1"
LocalisationCache: using store LCStore_CDB
Warning: no dba extension found, using emulation.
User: cache miss for user 2
Connecting to localhost mywiki...
Profiler::instance called without $wgProfiler['class'] set, falling back to ProfilerStub for safety
Connected to localhost mywiki.
Connecting to localhost mywiki...
Connected to localhost mywiki.
MessageCache::load: Loading en... got from global cache
Gadget::loadStructuredList: MediaWiki:Gadgets-definition parsed, cache entry mywiki:gadgets-definition:6 updated
User: loading options for user 2 from database.
User: logged in from session
Fully initialised
User: cache miss for user 2
User: loading options for user 2 from database.
User: logged in from session
User: loading options for user 2 from override cache.
RepoGroup::findFile: got File:Testebm.jpg from process cache
Unstubbing $wgLang on call of $wgLang::getCode from unknown
Unstubbing $wgParser on call of $wgParser::firstCallInit from unknown
Parser: using preprocessor: Preprocessor_DOM
MimeMagic::__construct: loading mime types from C:\inetpub\wwwroot\wiki/includes/mime.types
MimeMagic::__construct: loading mime info from C:\inetpub\wwwroot\wiki/includes/mime.info
File::transform: Doing stat for mwstore://local-backend/local-thumb/Testebm.jpg/720px- Testebm.jpg
RepoGroup::findFile: got File:Testebm.jpg from process cache
Title::getRestrictionTypes: applicable restrictions to [[File:Testebm.jpg]] are  {edit,move,upload}
OutputPage::checkLastModified: client did not send If-Modified-Since header 
Article::view using parser cache: yes
Parser cache options found.
ParserOutput cache found.
Article::view: showing parser cache contents
ContextSource::getContext (ImageHistoryPseudoPager): called and $context is null. Using  RequestContext::getMain() for sanity
File::transform: Doing stat for mwstore://local-backend/local-thumb/Testebm.jpg/120px-Testebm.jpg
ForeignAPIRepo: HTTP GET: http://commons.wikimedia.org/w/api.php?aisha1base36=cupt8rlsj0ezk8grtpenzmfhxwsire3&aiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata%7Cmime&list=allimages&format=json&action=query&redirects=true
Class PEAR_Error not found; skipped loading
Class SkinVector not found; skipped loading
RepoGroup::findFile: got File:Testebm.jpg from process cache
DatabaseBase::query: Writes done: UPDATE  `user` SET user_touched = '20120927234353' WHERE  user_id = '2'
User: cache miss for user 2
User: loading options for user 2 from database.
RepoGroup::findFile: got File:Testebm.jpg from process cache
RepoGroup::findFile: got File:Testebm.jpg from process cache
Title::getRestrictionTypes: applicable restrictions to [[File:Testebm.jpg]] are {edit,move,upload}
User: cache miss for user 2
User: loading options for user 2 from database.
Title::getRestrictionTypes: applicable restrictions to [[File:Testebm.jpg]] are {edit,move,upload}
OutputPage::sendCacheControl: private caching; Thu, 27 Sep 2012 23:43:50 GMT **
Request ended normally
Ebmarquez (talk) 05:35, 28 September 2012 (UTC)
I was able to figure out what the problem was. The problem in my case was related to how IIS was configured for FastCGI. In the FastCGI settings section of IIS I noticed that the Max Instances was set to 0. I increased the value to 4 and it worked. I'll need to adjust this setting more to find the sweet spot. Ebmarquez (talk) 14:35, 28 September 2012 (UTC)
Hi, I have the same problem.
I uploaded a file and it encountered the 500 - Internal sever problem. I can see the image which is within the link of the file (e.g. /roots/images/3/image.png)
However, I cannot view the "File:image.png" and it return 500 - Internal sever problem!
It is very frustrated.
Could you please tell me is it similar to your problem?
Thanks, 134.36.247.45 19:47, 6 December 2012 (UTC)
Make sure you grant Modify rights to the upload folder for the IISUser account. 2602:304:CD8E:FB0:5506:F88F:67A9:FFB1 (talk) 22:23, 25 May 2016 (UTC)
I am using Mediawiki 1.26.4 with PHP 5.4 I SOLVED the problem by switching on XMLREADER in the php version via cpanel after seeing the error in the error log which is stored in the Mediawiki directory on my website.
Hope this helps ! Wobuck (talk) 11:12, 15 July 2018 (UTC)

How to reactivate welcome-messages for both, new registered and anons?

Hello ppl, after testing a new feature at a wikia wiki, i have disabled the feature with admin rights, because it gives not a good/the wished effect. Both former welcome messages defined in MediaWiki:Welcome-message-anon (for anons) and MediaWiki:Welcome-message-user (for new registered users) don't work, after using/disabling the feature. What should i do, to solve this problem, if someone had has the same symptoms, please let me know what i can do. Thank you. Abani79 (talk) 22:14, 28 September 2012 (UTC)

It seems to be a Wikia-specific feature. Try asking here Ciencia Al Poder (talk) 17:19, 29 September 2012 (UTC)
Thank you for your help. :) Abani79 (talk) 17:27, 29 September 2012 (UTC)

Template Help

Hello, I was wondering how to "apply" a certain template to a certain set of pages e.g. applying a certain message to the bottom of a bunch of pages which are in a certain category,

Thanks 74.104.139.184 (talk) 02:30, 29 September 2012 (UTC)

Sorry for being vague,
for example, a certain message for all the pages in the category Classical Composers? 74.104.139.184 02:32, 29 September 2012 (UTC)
Create a bot (instructions) and run this script. Agantacroxi (talk) 08:16, 29 September 2012 (UTC)

Template:Reflist

I have installed Extension:Cite. Now I'd like to install or (export/)import Template:Reflist, but can't find where to get one that is still clean and new. Where to find out what the dependencies of Template:Reflist are? Something like is done for Install infobox at ETCwiki would be great. Rob Kam (talk) 12:06, 29 September 2012 (UTC)

You mean something like this? Template:Reflist Zipacna1 (talk) 16:18, 29 September 2012 (UTC)
Something simpler than that, it's too bloated with features and documentation. This Template:Reflist is better, but doesn't export cleanly. Robkam (talk) 17:03, 29 September 2012 (UTC)
Fixed by installing Extension:ParserFunctions Robkam (talk) 17:27, 1 October 2012 (UTC)

Since not all characters used are yet in Unicode, PUA, or private user area, codepoints are often used for such characters, however whilst that default implementation of wikimedia stores PUA characters with no problems, it does not include them in the search. What is the way to adjust the settings so that PUA characters are included? Does this have to be done when the installing or can this be changed after installation? Johnkn63 (talk) 02:13, 30 September 2012 (UTC)

Looking at the database, in this case a postgresql database, and the table pagecontent the field old_text is correct however textvector field does not include the pua characters. The function called is ts2_page_text:-
BEGIN
IF TG_OP = 'INSERT' THEN
NEW.textvector = to_tsvector(NEW.old_text);
ELSIF NEW.old_text != OLD.old_text THEN
NEW.textvector := to_tsvector(NEW.old_text);
END IF;
RETURN NEW;
END;
so in some way to_tsvector excludes pua characters. How does one change to_tsvector? Johnkn63 (talk) 05:37, 30 September 2012 (UTC)
ts_vector is a postgresql function, the result of ts_vector may be dependent upon the postgresql configuration. Johnkn63 (talk) 06:40, 30 September 2012 (UTC)

Extension AdManager

Someone use Extension:AdManager?

In my Wiki (1.19.2):

  • I copied the code in the correct folder:
  • I inserted this code:
include_once("$IP/extensions/AdManager/AdManager.php");<br />
# Note: One of the lines below must be uncommented and set appropriately.<br />
$wgAdManagerService = openx;<br />
# $wgAdManagerCode =;<br />
$wgGroupPermissions['sysop']['admanager'] = true;<br />
  • I started mw-config/index.php

but nothing happened; the Special:AdManager results "Not available" and even in the Special:Version AdManager is not reported, as if this is not installed.

Thanks in advance WhiteTigerItaly (talk) 08:48, 30 September 2012 (UTC)

I've disabled the extension because it generates Error 500 in my wiki. WhiteTigerItaly (talk) 10:59, 30 September 2012 (UTC)

To launch mw-config more times

I'm installing extensions in my wiki (1.19.2) and some of these ask to launch an update.
So I start mw-config / index.php but if after a little time I have to launch it again, the message tell me always that the installation is finished (even with the cache of the browser clean). So I have to start it in another browser, but then if I need another update I must use a third browser.

Is there a manner to launch it more times always in the same browser?

Thanks in advance WhiteTigerItaly (talk) 09:02, 30 September 2012 (UTC)

I need to insert in the wiki (1.19.2) several banners from AdSense and our sponsors in the left column and in the top of the page (Sitenotice area).
Now I'm able only to show Google banner in Sidebar with Extension:Google AdSense 2

To show gif banners I thought simply to put some code for random rotation in the Sitenotice page, but some sponsors have flash banners and so I need to put javascript code.

Finally I need to put a javascript code in the footer of the page for the counters (I don't use Analytics and so I'm not interested about to extensions for this).

Thanks in advance ==== With another extension now I'm able to put javascript in the footer, but I've still problem with Sitenotice. WhiteTigerItaly (talk) 09:16, 30 September 2012 (UTC)

New feature devevelopment - get user options

I am developing new feature for RecentChanges - I created new user option, but am not able to get its value when I need it... need to get this option into RecentChange.php... Kozuch (talk) 16:58, 30 September 2012 (UTC)

The answer is $wgUser->getOption('rccharacterslimit'). Kozuch (talk) 18:02, 30 September 2012 (UTC)