Jump to content

Project:Support desk/Flow/2014/05

Add topic
From mediawiki.org
This page is an archive.
Please ask questions on the current support desk.

MW is getting slower with each release

Background: I had been running MW 1.18 and 1.20 (separately, on different wikis) for a long time without major problems, however I encountered time bugs in certain areas of ParserFunctions and also wanted some new functionality that was added for MW 1.22. So to get things done in one fell swoop, I upgraded both wikis to 1.22. Prior to that, I had noticed that the 1.20 wiki was loading a bit slower than the 1.18, but not so much that it presented usability problems.

After upgrading to 1.22, every page now takes a minimum of 5 seconds to load, even simple pages with minimal text. Worse, I randomly get PHP timeouts from a simple search - no way that it should take 30 seconds. And, certain complex pages will consistently timeout now, when they loaded in under 10 seconds in 1.18. I've tried moving my htdocs to a faster drive and that has not helped. The server responds quickly to anything that isn't MediaWiki. Here are samples from my error.log:

[Wed Apr 30 16:43:16.384142 2014] [:error] [pid 1788:tid 780] [client ::1:63172] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in [redacted]\\includes\\db\\DatabaseMysql.php on line 76, referer: http://localhost/[redacted]
[Wed Apr 30 16:43:16.391143 2014] [:error] [pid 1788:tid 768] [client ::1:63173] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in [redacted]\\includes\\GlobalFunctions.php on line 3383, referer: http://localhost/[redacted]
[Wed Apr 30 16:43:16.400143 2014] [:error] [pid 1788:tid 760] [client ::1:63174] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in [redacted]\\includes\\GlobalFunctions.php on line 3383, referer: http://localhost/[redacted]
[Wed Apr 30 16:43:17.462204 2014] [:error] [pid 1788:tid 836] [client ::1:63177] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in [redacted]\\includes\\db\\DatabaseMysql.php on line 76, referer: http://localhost/[redacted]

Note that I've also tried rolling back the wiki to 1.18, at which point it is speedy again. So something was definitely changed in 1.19+ that has caused it to suddenly slow down and it appears to be getting worse in each new release. Are there any defaults in LocalSettings.php that I should have changed between 1.18 and 1.22? This feels like either a configuration problem due to changed assumptions, or there's a bug somewhere.

Software versions: MW 1.22.5 PHP 5.5.8 MySQL 5.0.37 76.253.2.43 (talk) 00:15, 1 May 2014 (UTC)

Hi!
I could now tell you that 30 seconds are not so much and that you can increase the maximum execution time to work around this error.
But you are right: With every single release of the last years MediaWiki got slower and slower. I am for example monitoring the download speed, that can be reached with my server, and compared to what I can get with MediaWiki 1.19, MediaWiki 1.22 gives me only around half of that. 88.130.106.61 00:59, 1 May 2014 (UTC)
Report it as a bug at http://bugzilla.wikimedia.org and tell them to fix issues in which every release of Mediawiki. It is getting slower. 176.250.151.36 14:56, 1 May 2014 (UTC)
Telling them to fix issues won't help. It would be helpful, if you had more information, what exactly got slower during a page request. It would be good to know, which functions take how long during execution. 88.130.122.2 18:39, 1 May 2014 (UTC)
There are already bugs about that, like bug 45900 for example. Ciencia Al Poder (talk) 09:40, 5 May 2014 (UTC)

Magicword.php - group name must start with a non-digit at offset 8

Hi all,

My wiki has started spitting out errors and not displaying pages. A google search tells me this is a known issue, with a fix located at https://bugzilla.wikimedia.org/show_bug.cgi?id=58640

I'm an amateur when it comes to php - if anyone is feeling kind enough, could you possibly advise on which parts of magicword.php I need to remove and what I need to add? I've tried using the 'side by side' page on the bug report link above but that didn't seem to work. Replacing the file altogether gave me an internal error.

I've left a 'clean' version of magicword.php in place for now, since it just displays an internal error to my visitors rather than a mess of coding and a blank page, but if it helps, my wiki is located at actbus.net/fleetwiki, running version 1.17.0

Thankyou in advance :) Actbuswebsite (talk) 13:15, 1 May 2014 (UTC)

Fiddled around and seems to be sorted now, although running slower than usual. Thanks anyway :) Actbuswebsite (talk) 13:31, 1 May 2014 (UTC)
hi please update to mediawiki version 1.22 if you have php 5.3 if you have 5.2 please update to mediawiki 1.19 94.197.122.75 13:07, 2 May 2014 (UTC)
Hi, I've just started getting this error on mediawiki 1.22 and it's breaking the web browser upgrade tool. I don't have command line access. Please help! 24.16.18.195 01:08, 17 November 2014 (UTC)
Please upgrade to latest 1.22 version, because it has been fixed months ago. Ciencia Al Poder (talk) 10:48, 17 November 2014 (UTC)

Recover wiki from unbootable system?

Is it possible to recover all the wiki files from a non-running system?

Our Ubuntu 10.0.4 server refuses to boot after a power loss even after I've tried repairing grub, replacing the superblock, and reinstalling the kernel. I do not know what version of wiki, php, or mysql it was using, as I'm new to this position and it wasn't documented. Can I build a new Ubuntu server and "copy" over files from this drive or do I need to have the database dumps in order to move it? 206.169.103.28 (talk) 14:10, 1 May 2014 (UTC)

Hi!
You can easily copy over the files of the installation.
For the database, it would be better, if you had a DB dump. So if you have a current dump, use that one! If you do not have one, you can also copy the files from the mysql/data directory to the new server. However, you might still have to do additional steps in order to make the DB run in the new server. Which files you actually have to restore depends on the table engine, which is used for the different tables. More information on that topic are e.g. available here: http://stackoverflow.com/questions/484750/restoring-mysql-database-from-physical-files 88.130.122.2 18:36, 1 May 2014 (UTC)

Mediawiki stopped working after doing export _JAVA_OPTIONS

After installing binary distribution of batik into /var/www/html/batik and adding

   $wgFileExtensions[] = 'svg';
   $wgAllowTitlesInSVG = true;
   $wgSVGConverter = 'batik';
   $wgSVGConverterPath = '/var/www/html/batik'

into LocalSettings.php, I got the error message

Error occurred during initialization of VM. 
Could not reserve enough space for object heap. 
Could not create the Java virtual machine. 

After doing some research, I tried

$ export _JAVA_OPTIONS="-Xmx256M"

but after this, MediaWiki stopped working by just giving the empty white screen. Doing php maintenance/update.php is not working too and gives the error

PHP Parse error:  syntax error, unexpected '$wgNamespacesWithSubpages' 
(T_VARIABLE) in /var/www/html/LocalSettings.php on line 171

However, mediawiki and update.php works normally (without batik and svg support of course) when I remove the directory settings as the following

    $wgFileExtensions[] = 'svg';
    $wgAllowTitlesInSVG = true;
    $wgSVGConverter = 'batik';
 # $wgSVGConverterPath = '/var/www/html/batik'

I'm using MediaWiki 1.22.5, PHP 5.5.9-1ubuntu4 (apache2handler), MySQL 5.5.37-0ubuntu0.14.04.1 with java-7-openjdk-amd64 on Ubuntu Server 14.04 with AWS EC2 micro-instance. 64.134.96.193 (talk) 16:56, 1 May 2014 (UTC)

For the syntax error, you're missing a semicolon at the end of the $wgSVGConverterPath line.
Also, for $wgSVGConverterPath looks like its pointing to a directory. It should be the path of the batik executable (probably something like /usr/bin/batik) JV Smithy (talk) 19:59, 1 May 2014 (UTC)
Yes, it was the syntax error and the problem was due to limited memory of the AWS micro-instance. The path was right though as I put binary files in that directory. Thanks! 64.134.64.115 17:24, 2 May 2014 (UTC)

Trying to making work russian lang in TeX

  • Ubuntu 12.04.4 LTS
  • PHP 5.3.10-1ubuntu3.11
  • MediaWiki 1.16.5

I installed TeX themself and he works, but russian letters in \text{} not working, error: Failed to parse (PNG conversion failed; check for correct installation of latex, dvips, gs, and convert).

Test here:  ŠæŃ€ŠøŠ¼ŠµŃ€ 

If I run command (/home/user/www/site.ru/math/texvc '/home/user/www/site.ru/images/tmp' '/home/user/www/site.ru/images/tmp' '\text{ пример }' 'utf-8' 'transparent') (user is same as in apache) from cmd it works! File in /home/user/www/site.ru/images/tmp exists. And output is cd7d4363323218b64410c10a0a2b46773 пример . Wich proving installation is correct.

When same command executed in MediaWiki, output is similar (cd7d4363323218b64410c10a0a2b46773 пример ), but file doesn't exists. In /home/user/www/site.ru/images/tmp folder appears log missfont.log with this contents:

mktextfm larm1200
mktextfm larm0800
mktextfm larm0600

I'm tried to run this commands but it change nothing. I even tried create test.php and test without CMS. Result is same as in MediaWiki (missfont.log created in temp).

PS In Ubuntu 9.10 russian lang in \text{} worked. I added in texutil.ml russian babel "\\usepackage[russian]{babel}\n\\usepackage{cancel}\n\\pagestyle{empty}\n\\begin{document}\n$$\n" and recompile sources. And did some changes in Math.php (with locals). Also I downloaded latest Math extension and replaced math folder. Read more here.

I hope someday someone will solve this problem. 2nd 17:40, 1 May 2014 (UTC)

hi please update to mediawiki version 1.22. 94.197.122.75 13:01, 2 May 2014 (UTC)
Hi, please read before you write. 2nd 13:17, 2 May 2014 (UTC)
Problem was in system variable $HOME. So to fix you need to add in LocalSettings.php line putenv('HOME=/home/user'); (with your user home dir). 2nd 13:35, 2 May 2014 (UTC)
hi there is now an extension called extension:math. the extension was created after the removal of the extension math from the core of mediawiki. if you upgrade to the latest version of mediawiki and try the the extension it might fix your problem. 94.2.131.205 21:56, 2 May 2014 (UTC)

I need help writing JavaScript to create a new tab

I need to have a new tab on a wiki that we're developing as a historical counterpart to Wikipedia. (More reliability) The tab is for a draft version of the article, similar to the talk page tab. Wiktionary has a similar setup here for a citation page. If there is anyone with the experience to set that up, your help would be greatly appreciated. I can mention you on the about page as a contributor, since this is a major part of the wiki. Wiki Historian (talk) 20:23, 1 May 2014 (UTC)

Hi!
You can add a tab, which shows a reviewed revision of a page, with Extension:FlaggedRevs. That is also how Wikipedia realizes its reviewing system. 88.130.122.2 20:48, 1 May 2014 (UTC)

Installing Semantic MediaWiki offline

Guys,

I'm having a lot of problems. I'm trying to install the Semantic MediaWiki Extension on a computer that will never connect to the internet. The directions are telling me to use composer,which essentially reaches out to the internet to pull dependencies. I am not able to do this. Is there another method? Thanks!

Jon Jjmil03 (talk) 01:30, 2 May 2014 (UTC)

You can execute composer update/install on a computer that has access to the internet and copy the sources to a location of your choice or you might find [0] useful which describes a tarball release approach (similar to the first approach).
[0] https://github.com/SemanticMediaWiki/SemanticMediaWiki/blob/master/docs/INSTALL.md#installation-without-shell-access MWJames (talk) 03:10, 2 May 2014 (UTC)

Buttons on Edit Page

In the Edit Page there is button for inserting a table, as in the toolbar, in addvanced, just above. I'm looking for the file in which it is defined, and where is it's icon located? I looked in the HTML page, on the web, and saw the address is: src="http://upload.wikimedia.org/wikipedia/he/6/60/Button_insert_table.png" (and for some reason it isn't found). As all other buttons icon address is located in the Skins file, for example: src="/skins/common/images/button_nowiki.png". So I'd like to change the address to the file Skins as all other buttons. Can anyone help? Noham100 (talk) 12:05, 2 May 2014 (UTC)

hi do you mean this https://commons.wikimedia.org/wiki/File:Button_insert_table.png 94.197.122.75 13:11, 2 May 2014 (UTC)
Yes, I do.
I have the PNG, but it doesn't show in my wiki because it definision is: "http://upload.wikimedia.org/wikipedia/he/6/60/Button_insert_table.png".
I want to change it to: "skins/common/images/button_nowiki.png" Noham100 (talk) 17:08, 5 May 2014 (UTC)
Oh ok if you have extension:wikieditor installed please update it to support 1.22 and if you doint have it installed please install it do to your site using the older version. So installing wikieditor might fix the problem please go to extension:wikieditor on installing it. 86.173.55.194 22:33, 5 May 2014 (UTC)

Bad Url for Title with UTF

Unable to fetch Title : Gabriel Garc\ u 0 0 e da M \ u 0 0 e 1 rquez ( Article on Gabriel Garcia Marquez ) . How can I use this title in the api url ? 180.151.149.115 (talk) 13:32, 2 May 2014 (UTC)

I would decode the Unicode escape sequences; then it works for me:
http://en.wikipedia.org/w/api.php?action=parse&page=Gabriel_Garcƭa_MƔrquez
or even
http://en.wikipedia.org/w/api.php?action=parse&page=Gabriel_Garc%C3%ADa_M%C3%A1rquez 88.130.78.38 11:26, 3 May 2014 (UTC)

How can I add a localized name to a custom namespace?

Hey guys,
I followed the manual for adding a custom namespace via LocalSettings.php and it works fine. However i want to display it's text differently in multiple languages. How can I achieve that?
I tried using variants of:<br\>
$namespaceNames['de'] = array(
NS_EXERCISES => 'Übungen',
NS_EXERCISES_TALK => 'Übungen_Diskussion',
);<br\>
But nothing happens. I even tried modifying the variables directly in the language file, but still nothing happened. So, what is the right way to do this? Jan Sende (talk) 13:25, 3 May 2014 (UTC)
I've never heard of a way to have a namespace have a different name in each language on a same wiki; you probably got confused. At most you can set $wgNamespaceAliases.
If you want to translate the display title of pages, please use Translate. Be aware of bugzilla:29928.[1] Nemo 13:45, 3 May 2014 (UTC)
Try $wgExtraNamespaces[NS_EXERCISES ] = "Übungen"; Sergezolotukhin (talk) 15:03, 22 September 2016 (UTC)
I don't see how $wgExtraNamespaces would display the name differently depending on language. 87.123.23.254 (talk) 15:32, 22 September 2016 (UTC)
Oh. I read the question no closely Sergezolotukhin (talk) 07:50, 23 September 2016 (UTC)
You can define an alias for a namespace, for example, Image: is an alias for File:, but, only one of those alias is the main one and the one that will be displayed and used by MediaWiki. You can link a page using an alias namespace, but it will point to the "canonical" namespace name.
So if you define german aliases for english custom namespaces, you can use them to link to pages of that namespace, but when your users follow that link they'll see the english namespace and not the german one.
It can't be done per "user language", because that will break the cache, URLs (namespace is part of the URL) and who knows what other things. Ciencia Al Poder (talk) 09:40, 23 September 2016 (UTC)
Thank you!
Aliases do not solve the problem.
> It can't be done per "user language" -- but it works with internal namespaces. I mean there are different sites with one namespace value (NS_PROJECT for example) and different titles:
https://en.wikipedia.org/wiki/Special:SpecialPages
https://ru.wikipedia.org/wiki/%D0%A1%D0%BB%D1%83%D0%B6%D0%B5%D0%B1%D0%BD%D0%B0%D1%8F:%D0%A1%D0%BF%D0%B5%D1%86%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D1%8B
so on... Sergezolotukhin (talk) 11:31, 23 September 2016 (UTC)
As I said, it doesn't work per "user language". Š”Š»ŃƒŠ¶ŠµŠ±Š½Š°Ń:Дпецстраницы doesn't work on any english wiki, no matter if your language is set to russian. Ciencia Al Poder (talk) 15:41, 23 September 2016 (UTC)
yes. but it works in russian site and this is I want to get. something like
def NS_EXERCISES = 3000;
wgLocalizedNs[NS_EXERCISES] = ['en' => 'new ns', 'ru' => 'Š½Š¾Š²Š°Ń ns' ... ] Sergezolotukhin (talk) 10:31, 26 September 2016 (UTC)
So the answer is: If you want to link to a namespace, then this only is possible with its real name.
However, the name, which is displayed on a namespace tab, this name omes from an interface message. And interface messages can be localized. That way it should be possible to display a different name on the tab and this depending on user language. I don't know how confusing this might be, but technically it should be possible. 87.123.2.204 (talk) 16:54, 23 September 2016 (UTC)
Using aliases you can link with an alias or the real name. However only the real name will be displayed on the URL and the page title. Ciencia Al Poder (talk) 17:06, 23 September 2016 (UTC)
I have this solution:
LocalSettings.php:
define("NS_STORY", 3000);
define("NS_STORY_TALK", 3001);
$wgExtraNamespaces[NS_STORY] = "Story";
$wgNamespaceProtection[NS_STORY] = array( 'edit-story' );
$wgGroupPermissions['*']['edit-story'] = true;
...
require_once "$IP/../hosting.settings.php";
hosting.settings.php:
switch ( $_SERVER['HTTP_HOST'] ) {
case 'ru.xxx.wiki':
$wgServer = "http://ru.xxx.wiki";
$wgFileCacheDirectory = "/var/cache/ru.xxx.wiki";
$wgDBname = "xxx_ru";
$wgShellLocale = "ru_RU.utf8";
$wgLanguageCode = "ru";
$wgExtraNamespaces[NS_STORY] = "Š˜ŃŃ‚Š¾Ń€ŠøŠø"; // just redefine!
break;
}
so on... Sergezolotukhin (talk) 13:26, 26 September 2016 (UTC)
Do you mean the same wiki and database is accessible from different hosts? You'll have broken links browsing your wiki as unregistered user unless you disable all caching. Saving an edit on the ru.* host will save links to that namespace as Š˜ŃŃ‚Š¾Ń€ŠøŠø but the other host will also display links as that, where that namespace is not defined. Ciencia Al Poder (talk) 21:01, 26 September 2016 (UTC)
no. databases are different, but templates (and scripts, including LocalSettings.php) are the same. Sergezolotukhin (talk) 11:40, 28 September 2016 (UTC)

[Solved] After updating to 1.24alpha (9db61c9), from 1.19 collapseable elements don't work

I moved the localsettings, extension and images. Everything else works but that. Possibly I forgot to copy something...


EDIT: for example

This code <div class="toccolours mw-collapsible" style="width:400px"> This text is collapsible. {{Lorem}} </div>

Should yield this result:

But this is what I get

Vapblack (talk) 13:14, 4 May 2014 (UTC)

Hi!
I am not exactly sure, what you mean with "collapsable elements". However, there was an extension (not the skin) called Vector, which made sections in the sidebar collapsable. This extension is no longer used in MediaWiki 1.24; remove it, if you have it installed. 88.130.94.227 13:44, 4 May 2014 (UTC)
Thanks for that reply. I don't have that extension. What I mean by collapsable elements is anything that you can click to have it collapse or expand.
https://www.mediawiki.org/wiki/Manual:Collapsible_tables Vapblack (talk) 13:54, 4 May 2014 (UTC)
I found the issue, it was an old version of "CategoryTree" extension.
Now my heart can stop aching. Vapblack (talk) 21:43, 4 May 2014 (UTC)
 11:08, 5 May 2014 (UTC)
hi collapsible was removed from 1.24 and extension:vector is no longer avalible everything was merged into the core of mediawiki. 94.7.128.200 15:14, 10 May 2014 (UTC)

[SOLVED]Having Trouble with InfoBox

Hi, I am new to Mediawiki and I am in the beginning stages of creating my wiki. I created a Template called Template:Album and then tried to use it on one of my album category pages http://wikilyrics.org/Category:Please_Please,_Me and it is not working. I think it's because I do not have the Parser functions set right and I have looked everywhere on the internet and I can't figure it out. If anyone could help me out I would greatly appreciate it, thanks! Wikilyrics (talk) 15:31, 4 May 2014 (UTC)

Is there any server side method to make specific templates only show to logged in users?

I ask because it would be useful to make templates that make announcements about the status of articles only viewable to logged in users. Some readers will have JavaScript disabled. As a historical wiki with some basic form of peer review (with Flagged Revisions) it might be useful to have a template indicating when claims are contested to notify reviewers that they should check the talk page before approving revisions. Wiki Historian (talk) 01:13, 5 May 2014 (UTC)

Add a class to the root HTML element of the template, then hide it with some CSS code in "MediaWiki:Common.css" and force it to display in "MediaWiki:Group-user.css".
A server-side hook would probably be a safer solution, though. Ricordisamoa 13:04, 6 May 2014 (UTC)
Newer versions of ResourceLoader will load stylesheets if they exist based on the groups a user is a member of. This works for Sysop, at least.
I'd provide more information, but I'm headed out the door. Let me know if you want more. ☠MarkAHershberger☢(talk)☣ 15:08, 7 May 2014 (UTC)
That's me above. I'm in the process of a username change right now.
It doesn't need to be server side because it's nothing sensitive. The only thing that it's for is preventing technical information about articles from being served to readers. For example, a template stating that an article is highly controversial and that reviewers should follow the talk page before approving edits would be excess clutter for readers who are not registered on the wiki. Lieutenant Aleksandr Reznov 18:53, 15 May 2014 (UTC)

Remove my wiki to another server

Mediawiki-1.21.2-1

Hi!Thanks for reading my help message!

Now, I want to remove the mediawiki established by bitnami, from one server (LINUX) to the other(virtual machine on LINUX ).

I zip the whole file which is downloaded from bitnami including MYSQL, APACHE and other wiki files on my old server and unzip it on the new one with the same file directory /opt. Unfortunately, when I run ./ctlscript.sh start, it shows errors like as:

/opt/mediawiki-1.21.2-1/mysql/bin/my_print_defaults: 9:exec: /opt/mediawiki-1.21.2-1/mysql/bin/my_print_defaults.bin: not found
/opt/mediawiki-1.21.2-1/mysql/bin/my_print_defaults: 9:exec: /opt/mediawiki-1.21.2-1/mysql/bin/my_print_defaults.bin: not found
140424 10:28:14 mysqld_safe logging to '/opt/mediawiki-1.21.2-1/mysql/data/mysqld.log'.
chown: Invalid user: "mysql"
140424 10:28:14 mysqld_safe starting mysqld daemon with database from /opt/mediawiki-1.21.2-1/mysql/data
140424 10:28:14 mysqld_safe mysqld from pid file /opt/mediawiki-1.21.2-1/mysql/data/mysql.pid ended

I really have tried to solve that problem for many many times, however, I failed. Does some one have the same experience as me? I am looking forward to your appreciated reply! Rachel1208 (talk) 06:51, 5 May 2014 (UTC)

What you have there seems to deal with MySQL only. Maybe something went wrong when you restored the database?
Note that restoring a DB by copying the actual files is not recommended. If possible, you should instead create a database dump and import this dump on the new server again. 88.130.115.37 12:48, 5 May 2014 (UTC)
Thank you for your kind reply! I wanted a simple way, but it seems not useful.:) Rachel1208 (talk) 09:09, 15 May 2014 (UTC)
You can't copy over mysql innodb files on another server and expect them to work, because they contain information of the hardware where they were created and will refuse to work in a new environment. You should create a dump of the database and import it to the new server. Ciencia Al Poder (talk) 09:42, 6 May 2014 (UTC)
That sounds resonable!
I will try again as your recommanded.
Thanks a lot :) Rachel1208 (talk) 09:08, 15 May 2014 (UTC)

help with css code

hi this is part of my css

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

when using codeeditor it says this problem

Info: Missing vendor-prefixed CSS gradients for Webkit (Safari 5+, Chrome), Opera 11.1+. 86.173.55.194 (talk) 14:45, 5 May 2014 (UTC)

background-image: -webkit-gradient(linear, left top, left bottom, from(#006699), to(#008FCC));
is the old Webkit syntax, while the new is:
background-image: -webkit-linear-gradient(top, #006699, #008FCC);
Ricordisamoa 12:54, 6 May 2014 (UTC)
Hi the the error is the same but instead of saying WebKit it now says old WebKit can I have some help to make it back words compatible my website is at http://simple-random-wikisaur.tk/index.php/MediaWiki:Common.css 94.9.136.59 15:49, 6 May 2014 (UTC)
I get this error now too
Info: Missing vendor-prefixed CSS gradients for Opera 11.1+ 94.9.136.59 15:52, 6 May 2014 (UTC)
Hi I also get this erro when using this code
#contentSub {
display:show;
}
Error is
Warning: Expected (inline | block | list-item | inline-block | table | inline-table | table-row-group | table-header-group | table-footer-group | table-row | table-column-group | table-column | table-cell | table-caption | box | inline-box | grid | inline-grid | none | inherit | -moz-box | -moz-inline-block | -moz-inline-box | -moz-inline-grid | -moz-inline-stack | -moz-inline-table | -moz-grid | -moz-grid-group | -moz-grid-line | -moz-groupbox | -moz-deck | -moz-popup | -moz-stack | -moz-marker | -webkit-box | -webkit-inline-box) but found 'show'. 86.173.55.194 17:54, 6 May 2014 (UTC)
yes, "show" is incorrect and un-needed. See http://www.w3.org/wiki/CSS/Properties/display ☠MarkAHershberger☢(talk)☣ 23:01, 6 May 2014 (UTC)
Things that begin with "info" are information only and not warnings or errors. ☠MarkAHershberger☢(talk)☣ 23:03, 6 May 2014 (UTC)
Things that begin with "info" are information only and not warnings or errors. You can safely ignore them. ☠MarkAHershberger☢(talk)☣ 23:03, 6 May 2014 (UTC)
Ok thanks 94.9.136.59 06:58, 7 May 2014 (UTC)
Which one do I use that is like saying show because I carnt find anything that is similer to the word show. 94.9.136.59 07:08, 7 May 2014 (UTC)
Is display: none being set somewhere? Maybe that is what is causing your problem, since the default is to display the element.
You can set display to any of those other terms and it should show up. The term you use will control how it is displayed, though. You probably want "inline" or "block". ☠MarkAHershberger☢(talk)☣ 10:05, 8 May 2014 (UTC)
.regions {
 -webkit-border-bottom-left-radius: 20px;
 -moz-border-radius-bottomleft: 20px;
 border-bottom-left-radius: 20px;
 color: #fff;
 font-family: Verdana;
 font-size: 14px;
 padding-left: 20px;
 margin-top:-2px;
 background-color: #006699;
 background-image: -o-linear-gradient(top, #006699, #008FCC);
 background-image: -moz-linear-gradient(top, #006699, #008FCC);
 background-image: -webkit-linear-gradient(top, #006699, #008FCC);
 background-image: -webkit-gradient(linear, left top, left bottom, from(#006699), to(#008FCC));
 filter: progid:DXImageTransform.Microsoft.Gradient(StartColorStr='#006699', EndColorStr='#008FCC', GradientType=0);
}
Ricordisamoa 22:38, 1 June 2014 (UTC)
Hi thanks. 5.66.153.135 10:01, 2 June 2014 (UTC)
Hi also get errors when using this
 .mp_header {
  width: 100%;
  clear: both;
  background-image: url('//upload.wikimedia.org/wikipedia/commons/1/10/Wikipedia-logo-v2-200px-transparent.png');
  background-color: #333;
  background-image: url('//upload.wikimedia.org/wikipedia/commons/1/10/Wikipedia-logo-v2-200px-transparent.png'), -moz-linear-gradient(top, #ddd, #000);
  background-image: url('//upload.wikimedia.org/wikipedia/commons/1/10/Wikipedia-logo-v2-200px-transparent.png'), -ms-linear-gradient(top, #ddd, #000);
  background-image: url('//upload.wikimedia.org/wikipedia/commons/1/10/Wikipedia-logo-v2-200px-transparent.png'), -o-linear-gradient(top, #ddd, #000);
  background-image: url('//upload.wikimedia.org/wikipedia/commons/1/10/Wikipedia-logo-v2-200px-transparent.png'), -webkit-linear-gradient(top, #ddd, #000);
  background-image: url('//upload.wikimedia.org/wikipedia/commons/1/10/Wikipedia-logo-v2-200px-transparent.png'), -webkit-gradient(linear,
             left top, left bottom, from(#ddd), to(#000));
  filter: progid:DXImageTransform.Microsoft.Gradient(
             StartColorStr='#ddd', EndColorStr='#000', GradientType=0);
  padding: 1px 10px 1px 10px;
  color: #000;
  border: none;
  margin-bottom:0px;
 }
The error is
Warning: Background image '//upload.wikimedia.org/wikipedia/commons/1/10/Wikipedia-logo-v2-200px-transparent.png' was used multiple times, first declared at line 93, col 3.
And
Warning: Using width with padding can sometimes make elements larger than you expect.
And
Info: Values of 0 shouldn't have units specified. 5.66.153.135 10:05, 2 June 2014 (UTC)
Using 0 instead of 0px as margin-bottom should fix the latest one; IMHO you shouldn't care of the other two. Ricordisamoa 15:20, 3 June 2014 (UTC)
ok thanks 2.218.227.206 15:57, 3 June 2014 (UTC)

[RESOLVED] Confused : Give permission "edit" to users

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'm creating a semi-private mediawiki. I want users have the same permissions as sysop and anonymous (or no logged-in account) just have the "read" permission)

My configuration is the follow one :

## Permissions
$wgGroupPermissions['*']['createaccount'] = true; // set to false when all people are registered
$wgGroupPermissions['*']['read'] = true; 
$wgGroupPermissions['*']['createpage'] = false;
$wgGroupPermissions['*']['edit'] = false; 
//$wgGroupPermissions['*']['writeapi'] = false;
 
$wgGroupPermissions['user']['edit'] = true;
$wgGroupPermissions['user']['createpage'] = true;
$wgGroupPermissions['user']['createtalk'] = true;
$wgGroupPermissions['user']['editprotected'] = true;
$wgGroupPermissions['user']['delete'] = true;
$wgGroupPermissions['user']['undelete'] = true;
$wgGroupPermissions['user']['deletedhistory'] = true;

But users can't edit pages already created. Have you a solution ? 91.183.39.85 (talk) 15:00, 5 May 2014 (UTC)

Hi!
With your settings, ordinary users should be able to edit all normal pages, no matter if they are old or new.
You can verify group permissions in your wiki on the wiki page Special:ListGroupRights. Make sure that for group "user", the right "edit" is displayed as granted. 88.130.115.37 15:24, 5 May 2014 (UTC)
I solved my problem. I don't know how but I modified my whole settings by this one :
## Permissions (Special:ListGroupRights)
#Implicit group for all no logged-in accounts
$wgGroupPermissions['*']['createaccount']    = false;
$wgGroupPermissions['*']['read']             = true;
$wgGroupPermissions['*']['edit']             = false;
$wgGroupPermissions['*']['createpage']       = false;
$wgGroupPermissions['*']['createtalk']       = false;
$wgGroupPermissions['*']['writeapi']         = false;
# Implicit group for all logged-in accounts
// Admin's permissions on users
$wgGroupPermissions['user']['autopatrol'] = true;
$wgGroupPermissions['user']['block'] = true;
$wgGroupPermissions['user']['createaccount'] = true;
$wgGroupPermissions['user']['blockemail'] = true;
$wgGroupPermissions['user']['upload'] = true;
$wgGroupPermissions['user']['import'] = true;
$wgGroupPermissions['user']['importupload'] = true;
$wgGroupPermissions['user']['patrol'] = true;
$wgGroupPermissions['user']['markbotedits'] = true;
$wgGroupPermissions['user']['editinterface'] = true;
$wgGroupPermissions['user']['editusercss'] = true;
$wgGroupPermissions['user']['edituserjs'] = true;
$wgGroupPermissions['user']['protect'] = true;
$wgGroupPermissions['user']['editprotected'] = true;
$wgGroupPermissions['user']['editsemiprotected'] = true;
$wgGroupPermissions['user']['suppressredirect'] = true;
$wgGroupPermissions['user']['ipblock-exempt'] = true;
$wgGroupPermissions['user']['proxyunbannable'] = true;
$wgGroupPermissions['user']['autoconfirmed'] = true;
$wgGroupPermissions['user']['noratelimit'] = true;
$wgGroupPermissions['user']['browsearchive'] = true;
$wgGroupPermissions['user']['movefile'] = true;
$wgGroupPermissions['user']['move'] = true;
$wgGroupPermissions['user']['move-subpages'] = true;
$wgGroupPermissions['user']['move-rootuserpages'] = true;
$wgGroupPermissions['user']['undelete'] = true;
$wgGroupPermissions['user']['rollback'] = true;
$wgGroupPermissions['user']['unblockself'] = true;
$wgGroupPermissions['user']['delete'] = true;
$wgGroupPermissions['user']['bigdelete'] = true;
$wgGroupPermissions['user']['apihighlimits'] = true;
$wgGroupPermissions['user']['unwatchedpages'] = true;
$wgGroupPermissions['user']['deletedtext'] = true;
$wgGroupPermissions['user']['deletedhistory'] = true;
$wgGroupPermissions['user']['reupload-shared'] = true;
$wgGroupPermissions['user']['reupload'] = true;
// Bureaucrates's permissions on users
$wgGroupPermissions['user']['userrights'] = true;
$wgGroupPermissions['user']['noratelimit'] = true;
And it works like I want. Thank you for your help. 91.183.39.85 14:39, 9 May 2014 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

[RESOLVED] Shared Database - How to?

I have two brand-new wikis I'd really like to "connect" - Shared user tables & all.

I tried to do so following this guide:

Manual:Shared database

The result:

A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was: (SQL query hidden) from within function "Revision::fetchFromConds". Database returned error "1146: Table 'database_name.wiki_user' doesn't exist (mysql.wiki2.mysite.com)".

---

Basically:

I have two wikis - One "main" and the other "sub". I'd like for my main wiki to be the "host" of the user table, for for the second wiki to "borrow" it's user table & registrations, bans & usergroup. So I enter the following code on the "sub" wiki's LocalSettings.php:

$wgSharedDB = 'mainwiki'; #Not entering the 'real' database name publicly $wgSharedPrefix = 'wiki_'; # The $wgDBprefix for the database. Defaults to the prefix of the current wiki if not specified

...And I get a database error.

Both wikis are on the same server, using SQL - What else should I do? The guide simply isn't too helpful.

---

In addition, would it be possible to "share" 'User:' Pages between both wikis? Such as a user creates/edits their Userpage on Wiki1, and the changes made appear on Wiki2's corresponding 'User:' page, and vice versa. 24.119.228.163 (talk) 04:05, 6 May 2014 (UTC)

You can't share user pages.
About the error, were both databases created during install? Does the table database_name.wiki_user actually exist? Ciencia Al Poder (talk) 09:45, 6 May 2014 (UTC)
That name specially doesn't exist - It's a pseudo one I created to post here.
Er, how would I find out exactly? I just installed both Wikis, followed the instructions, and then that occurred. 24.119.228.163 13:44, 6 May 2014 (UTC)
Check this out, here's what I've got in my LocalSettings.php for the main wiki:
## Database settings
$wgDBtype           = "mysql";
$wgDBserver         = "mysql.wiki.wockymedia.com";
$wgDBname           = "database_name"; #False name for public posting
$wgDBuser           = "my_user"; #False user for public posting, same 'user' as sub wiki
$wgDBpassword       = "hidden"; #Also false
# MySQL specific settings
$wgDBprefix         = "_wiki";
So, based on the above, I enter the following in both LocalSettings.php files:
 $wgSharedDB = 'database_name';
 $wgSharedTables = array('user','user_groups');
 $wgSharedPrefix = 'wiki_';
And that prints the following error on both wikis:
A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:
(SQL query hidden)
from within function "Revision::fetchFromConds". Database returned error "1146: Table 'database_name.wiki_user' doesn't exist (mysql.depends_on_wiki.mysite.com)".
The database in question does exist - Hence why I'm puzzled. What do I need to do? (Hoping this doesn't end like other questions and is actually resolved, I need this to happen) 24.119.228.163 15:08, 6 May 2014 (UTC)
Okay, so now I've realized my error in confusing _wiki and wiki_.
I've corrected that, so now both wikis display normally!
Looking back, I see that a lot of people made that very same error. I'll note that down on the article for anyone else who's used _wiki. 24.119.228.163 15:20, 6 May 2014 (UTC)

[RESOLVED] The system cannot find the file specified.

Hi,

I installed mediawiki 1.22.5 and my PHP version is set to 5.3.x. and using mysql as my database. I configured the mediawiki and LocalSettings.php was created. I copied the LocalSettings.php to mediawiki folder which is inside webroot folder of my server. When I try to access my wiki using http://i-darts.com/wiki the page is redirected to http://i-darts.com/wiki/index.php?title=Main_Page and i get the following error. "The system cannot find the file specified."

Please help.

Thank You.

Regards, Gautam 122.164.133.119 (talk) 06:20, 6 May 2014 (UTC)

Look at the IIS error log to see if it contains a more informative message about what file is trying to locate and it doesn't find Ciencia Al Poder (talk) 09:52, 6 May 2014 (UTC)
Did you set the rules in .htaccess and did you add a line for redirecting index.php to /wiki 94.9.136.59 15:53, 6 May 2014 (UTC)
You need to configure IIS to serve up PHP files properly.
It is seeing the 404 that the script sends and then overriding the HTML that is sent with the message "The system cannot find the file specified."
I changed this by appending "&action=edit" to the url and then creating a page with only the text "test". Now you see an un-styled page. Styling would show up if load.php worked, but right now IIS appears to be refusing access to it. ☠MarkAHershberger☢(talk)☣ 22:56, 6 May 2014 (UTC)
This seems resolved now Ciencia Al Poder (talk) 09:19, 7 May 2014 (UTC)

[RESOLVED] Delete Account

Hello,

does anybody know hot to delete an account? I'd like to delete my own account. Thanks for help :).

Fabi 01Fabi01 (talk) 19:20, 6 May 2014 (UTC)

If this is for Mediawiki you can request but if it's for your own I am not sure. 86.173.55.194 19:35, 6 May 2014 (UTC)
In your own installation you can use an extension like UserMerge to merge your account with "Anonymous", which effectively deletes it. On Wikimedia wikis, you can request deletion. In this case an admin will most likely rename your account to something completely unrecognizable. 88.130.101.31 10:42, 7 May 2014 (UTC)
Thank you very much! 01Fabi01 (talk) 12:39, 15 May 2014 (UTC)

Allow zip uloads for trusted users?

Versions: MediaWiki - 1.22.1, PHP - 5.4.27, MySQL - 5.5.37

Wiki: http://www.vgmpf.com

I'd like to allow zip file uploads for trusted users only. I understand that allowing zip uploads in a security risk, but I have several users who have been working on my Wiki for years and have been added to a custom trusted user group, and they are competent enough not to upload malicious files. Does anyone know if Media Wiki is capable of this, and how I would go about doing it?

So far, I've looked into the $wgFileBlacklist array and the $wgVerifyMimeType flag, but I can only seem to get zip uploading for everyone, not just a particular user group.

Thanks in advance! TheAlmightyGuru (talk) 13:45, 7 May 2014 (UTC)

You could implement this using the hooks UploadVerifyFile. ☠MarkAHershberger☢(talk)☣ 20:32, 7 May 2014 (UTC)

Code help

Hi can I have some help to change the codes so that they will resize on different computer screen and resize on mobile like the wikipedia main page header because this code is for a user but it does not resize. And wikipedia English are currently having a redisgn main page and this person header looks nice buts does not resize or looks horrible on different screens sometime so please help here's the code.

Code:

Welcome to Wikipedia
64,527 articles in English, welcome to participate.
Nobody knows everything, but everybody knows something.

And here the link to the site https://en.wikipedia.org/wiki/Wikipedia:2014_main_page_redesign_proposal/draft/Gabrielchihonglee 94.9.136.59 (talk) 14:58, 7 May 2014 (UTC)

Hi the newer code is this
<!--page background starts-->
<div style="background:#ffffff; position:relative; margin:1.2em; z-index:1; margin-bottom:0px; margin-left:-12px; margin-right:-13px; padding-top:10px; padding-right:13px; padding-left:13px;">
<!--page background ends-->
<!-- top bar starts -->
<div style="margin:5px 0; border:0; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); background:white; width:100%; overflow:hidden; background: #FCFCFC; background: linear-gradient(top, #FCFCFC 0%,#F5F5F5 100%); background: -moz-linear-gradient(top, #FCFCFC 0%, #F5F5F5 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#FCFCFC), color-stop(100%,#F5F5F5)); background: -webkit-linear-gradient(top, #FCFCFC 0%,#F5F5F5 100%); background: -o-linear-gradient(top, #FCFCFC 0%,#F5F5F5 100%); background: -ms-linear-gradient(top, #FCFCFC 0%,#F5F5F5 100%); background: linear-gradient(top, #FCFCFC 0%,#F5F5F5 100%); position:relative;">
<div style="float:left; margin-top:-50px; margin-left:-30px;">[[File:Wikipedia-logo-v2-200px-transparent.png|left|180px|link=]]
<div style="width: 85%; margin-top: 70px;  position:absolute;right: 0;">
<table cellpadding="0" style="background:transparent; text-shadow: white 0px 1px 0px;" cellspacing="0" border="0" width="100%"><tr>
<td width="38%" valign="middle" align="center">
<div style="margin-top: .1em; font-size: 200%;">'''Welcome to [[Wikipedia:About|Wikipedia]]'''</div>
<div style="margin-top: .5em; font-size: 95%;">The [[Free content|free]] [[encyclopedia]] that [[Wikipedia:Introduction|anyone can edit]].</div>
<div id="articlecount" style="width: 100%; font-size: 85%;">[[Special:Statistics|<span style="color: #113C86; font-size: 120%;">'''{{NUMBEROFARTICLES}}'''</span>]] articles in [[English language|English]]</div>
</td>
<td width="25%" style=valign="middle" align="center" rowspan="2">
{| cellspacing="2" style="font-size:90%; color:#868686; text-align:center;"
|-
|[[Wikipedia:Introduction|Introduction]]
|Ā·
|[[Wikipedia:Sandbox|Try to edit]]
|Ā·
|[[Wikipedia:New contributors' help page|Seek help]]
|-
|[[Portal:Contents/Outlines|Portal outline]]
|Ā·
|[[Portal:Contents/Portals|Portal list]]
|Ā·
|[[Help:Contents|Help index]]
|}
</td>
</tr></table>
</div>
</div>
</div>
<!-- top bar ends -->
please help me add codes that will resize it properly so it looks the same across all device line the English wikipedias main page. 94.9.136.59 17:08, 7 May 2014 (UTC)

Any way to make a MediaWiki-wiki COPPA co-operative?

The 'Children's Online Privacy Protectio Act', to be exact.

Pretty much: I need to be able to ask users for their age upon sign-up. If the user is below 13, then they may not edit any pages or submit any material on the wiki until the day of their 13th birthday. If they're above 13, they may submit content and edit pages. That's it. I know fully how to disable the portions that ask for the user's name & email; I'll be sure to both in the terms and within the sign-up page that if a user is below the age of 13, they must use their parent's email to both sign up and confirm their accounts.

You may wonder what the purpose of this would be exactly - Mediawiki serves as the "basis" for the site's userbase. Apart from the wiki, users will be able to engage in other Online activities that are non-wiki related and do not require the user to submit information, and thus their age will not matter when performing these activities. This is possible to the fact that Mediawiki presents such an open-ended user system.

However, the other "activities" are not yet open, so for now we'd like for everything to be COPPA co-operative for the future when these other portions of the site do open.

Does that make sense?

I'm surprised Mediawiki does not come with a COPPA function to start with.

What I'd like to know - Is there any extension that requires a user to enter their age, and, based upon that, requires a staff member the verify their account OR places the user into a specific usergroup? It's a kind of confusing case, so I'll answer further questions if any.

My basic need: An extension that asks for a user's age, and allows the staff to review the account and place it into a usergroup/allows the system to automatically place them into a group. 24.119.228.163 (talk) 19:33, 7 May 2014 (UTC)

You could probably implement something like this using a few Manual:Hooks. As far as I know, it doesn't already exist. If this is something you really need and you can't implement it yourself, you should look for someone to do it for you (disclaimer: I'm on that page). ☠MarkAHershberger☢(talk)☣ 20:30, 7 May 2014 (UTC)

How to make my Special:Version look like Wikimedia's?

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 there.

I've noticed that my Special:Version page doesn't look like what Wikimedia's does. I was wondering how would I make my wiki's page have a similar design.

My wiki:

Hi they installed extensions. If you install the extensions it would look like that. 86.173.55.194 06:25, 8 May 2014 (UTC)
Which extention(s) though? OBrienDustin (talk) 09:18, 8 May 2014 (UTC)
Well, I think OBrienDustin doesn't want to look with the same number of extensions, but with the same design (version and license columns).
WMF wikis are running the latest development version (well, not exactly the latest, but very close). If you want to see those columns, get the latest version from Git, or wait a few days until MediaWiki 1.23 is released. Ciencia Al Poder (talk) 09:37, 8 May 2014 (UTC)
I also don' think this is caused by some extension. Instead, the differences come from differences in the code of the MediaWiki core itself. So just wait for 1.23 (or 1.24) to be published and it will look the same for your wiki, too. ;-) 88.130.68.57 16:57, 8 May 2014 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

CGI Error

Hi,

I installed mediawiki 1.22.5 and my PHP version is set to 5.3.x. and using mysql as my database. Whenever I try to move a page (main page) or upload a file i get the below error.

CGI Error

The specified CGI application misbehaved by not returning a complete set of HTTP headers.

[The following is entered in the LocalSettings.php $wgEnableUploads = true; $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'doc','xls', 'mpp', 'pdf', 'ppt', 'tiff', 'bmp', 'docx', 'xlsx', 'pptx', 'ps', 'odt', 'ods', 'odp', 'odg');]

Please help to resolve this.

Thank You.

Regards,

Gautam A S 122.164.179.100 (talk) 07:00, 8 May 2014 (UTC)

My wiki can be accessed below.
[2] 122.164.179.100 07:02, 8 May 2014 (UTC)
This error message is very generic on Windows executing PHP on IIS.
There may be a lot of causes, but one of them may be a PHP error. Try to enable the debug log, PHP error log, and error reporting, to see if the logs show any relevant error when this happens. See Manual:How to debug Ciencia Al Poder (talk) 09:33, 8 May 2014 (UTC)
I added the following in the LocalSettings.php to view the PHP errors.
error_reporting( -1 );
ini_set( 'display_errors', 1 );
But I do not get anything else except the same error:
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers.
When i click upload file or try to move a page. 122.164.31.144 05:38, 9 May 2014 (UTC)
Try turning on startup errors. You could also try turning on a debug log file and see if it records anything.
Also see this question and answer on ServerFault]. ☠MarkAHershberger☢(talk)☣ 12:36, 9 May 2014 (UTC)

Reminder to check page content

Hi all,

I have been searching for an extension, but with no success.

Is there a extension which sends an EMail to the page author if there are no changes for longer than x Months?

Cheers, werz Werz~mediawikiwiki (talk) 08:47, 8 May 2014 (UTC)

As far as I know, no such extension exists. This could be done in a bot, though. ☠MarkAHershberger☢(talk)☣ 09:54, 8 May 2014 (UTC)

photos sur page

bonjour, Je m'occupe d'une page d'un chanteur (CƩdric Gervy) ainsi que de son site.

Toutes les photso sont soit de moi, soit fournie par le chanteur directement. Exemple: celle visible avec le t-shirt sur la tete est de moi.

Le problĆØme est que wikipedia indique que ces photos ne sont pas libre de droit.

Que dois-je faire? Wikipedia se basant sur le fait qu'elles sont publiĆ©es sur d'autres site (genre : http://www.meltybuzz.fr/stromae-formidable-parodie-avec-le-roi-philippe-de-belgique-galerie-597886-1810060.html )

from Google Translate

Hello, I mind a page of a singer (CƩdric Gervy) and its website.

All photso are either me or provided directly by the singer. Example: the visible with the shirt on the head is me.

The problem is that wikipedia says that the photos are not copyright-free.

What should I do? Wikipedia is based on the fact that they are published on other website (genus http://www.meltybuzz.fr/stromae-formidable-parodie-avec-le-roi-philippe-de-belgique-galerie-597886-1810060.html ) Poelvord (talk) 14:32, 8 May 2014 (UTC)

Did you upload the photo to Commons (http://commons.wikimedia.org/) and someone flagged it as a copyright violation?
They have a process on commons for resolving that. See Licensing. They'll work with you to verify ownership.
=== from Google Translate ===
Avez-vous de tƩlƩcharger la photo de communes (http://commons.wikimedia.org/) et quelqu'un faire Ʃtiqueter comme une violation du droit d'auteur?
Ils ont un processus de communes pour résoudre cela. Voir Licensing. Ils vont travailler avec vous pour vérifier la propriété. ☠MarkAHershberger☢(talk)☣ 12:25, 9 May 2014 (UTC)
i see the picture was flagged becauses the picture was present on an other website.
A lot of fan use some pictures to make illustrationi....
I don't know why i need to make all this process to conserve my picture on the wiki page.... Poelvord (talk) 08:31, 14 August 2014 (UTC)
If you uploaded your image(s) to Commons, https://commons.wikimedia.org/wiki/Commons:Upload_help might be a good start. Or https://fr.wikipedia.org/wiki/Aide:Aide for an overview in French. AKlapper (WMF) (talk) 09:05, 14 August 2014 (UTC)

Mediawiki Pages Hang

Suddenly my team is not able to access our local wiki. Pages just hang.

The behaviour is fixed if I restart all the services.

However, after a few minutes, pages start hanging again.

I've tried to reset winsock but didn't fix the problem.

Can anyone advise on a different solution please?

  • Media Wiki 1.20.0
  • PHP 5.4.3
  • MySql 5.5.24
  • Apache 2.4.2
APACHE ERROR LOG of the last month
[Thu May 01 18:00:42.148628 2014] [mpm_winnt:warn] [pid 3660:tid 6540] (OS 64)The specified network name is no longer available.  : AH00341: winnt_accept: Asynchronous AcceptEx failed.

[Thu May 01 18:00:42.148628 2014] [mpm_winnt:warn] [pid 3660:tid 6540] (OS 64)The specified network name is no longer available.  : AH00341: winnt_accept: Asynchronous AcceptEx failed.

[Thu May 01 18:23:30.978649 2014] [mpm_winnt:warn] [pid 3660:tid 6540] (OS 64)The specified network name is no longer available.  : AH00341: winnt_accept: Asynchronous AcceptEx failed.

[Thu May 01 20:48:30.105622 2014] [mpm_winnt:warn] [pid 3660:tid 6540] (OS 64)The specified network name is no longer available.  : AH00341: winnt_accept: Asynchronous AcceptEx failed.

[Thu May 01 20:48:30.105622 2014] [mpm_winnt:warn] [pid 3660:tid 6540] (OS 64)The specified network name is no longer available.  : AH00341: winnt_accept: Asynchronous AcceptEx failed.
[Tue May 06 12:41:35.961648 2014] [mpm_winnt:warn] [pid 3660:tid 6540] (OS 64)The specified network name is no longer available.  : AH00341: winnt_accept: Asynchronous AcceptEx failed.

[Tue May 06 12:41:35.992898 2014] [mpm_winnt:warn] [pid 3660:tid 6540] (OS 64)The specified network name is no longer available.  : AH00341: winnt_accept: Asynchronous AcceptEx failed.

[Tue May 06 12:41:35.992898 2014] [mpm_winnt:warn] [pid 3660:tid 6540] (OS 64)The specified network name is no longer available.  : AH00341: winnt_accept: Asynchronous AcceptEx failed.

[Tue May 06 12:41:35.992898 2014] [mpm_winnt:warn] [pid 3660:tid 6540] (OS 64)The specified network name is no longer available.  : AH00341: winnt_accept: Asynchronous AcceptEx failed.

[Tue May 06 12:41:35.992898 2014] [mpm_winnt:warn] [pid 3660:tid 6540] (OS 64)The specified network name is no longer available.  : AH00341: winnt_accept: Asynchronous AcceptEx failed.

[Tue May 06 12:41:35.992898 2014] [mpm_winnt:warn] [pid 3660:tid 6540] (OS 64)The specified network name is no longer available.  : AH00341: winnt_accept: Asynchronous AcceptEx failed.

[Tue May 06 12:46:11.277672 2014] [mpm_winnt:warn] [pid 3660:tid 6540] (OS 64)The specified network name is no longer available.  : AH00341: winnt_accept: Asynchronous AcceptEx failed.

[Tue May 06 12:51:48.235110 2014] [mpm_winnt:warn] [pid 3660:tid 6540] (OS 64)The specified network name is no longer available.  : AH00341: winnt_accept: Asynchronous AcceptEx failed.

[Tue May 06 12:51:48.235110 2014] [mpm_winnt:warn] [pid 3660:tid 6540] (OS 64)The specified network name is no longer available.  : AH00341: winnt_accept: Asynchronous AcceptEx failed.

[Tue May 06 12:52:37.141986 2014] [mpm_winnt:warn] [pid 3660:tid 6540] (OS 64)The specified network name is no longer available.  : AH00341: winnt_accept: Asynchronous AcceptEx failed.

[Thu May 08 11:42:50.171875 2014] [core:warn] [pid 2468:tid 260] AH00098: pid file C:/wamp/bin/apache/apache2.4.2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?

[Thu May 08 11:43:30.937500 2014] [mpm_winnt:notice] [pid 2468:tid 260] AH00455: Apache/2.4.2 (Win64) PHP/5.4.3 configured -- resuming normal operations

[Thu May 08 11:43:30.937500 2014] [mpm_winnt:notice] [pid 2468:tid 260] AH00456: Server built: May 13 2012 19:54:49

[Thu May 08 11:43:30.937500 2014] [core:notice] [pid 2468:tid 260] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.2\\bin\\httpd.exe -d C:/wamp/bin/apache/apache2.4.2'

[Thu May 08 11:43:30.937500 2014] [mpm_winnt:notice] [pid 2468:tid 260] AH00418: Parent: Created child process 3636

[Thu May 08 11:43:32.015625 2014] [mpm_winnt:notice] [pid 3636:tid 276] AH00354: Child: Starting 64 worker threads.

[Thu May 08 12:12:55.135502 2014] [mpm_winnt:warn] [pid 3636:tid 888] (OS 64)The specified network name is no longer available.  : AH00341: winnt_accept: Asynchronous AcceptEx failed.

[Thu May 08 12:12:55.135502 2014] [mpm_winnt:warn] [pid 3636:tid 888] (OS 64)The specified network name is no longer available.  : AH00341: winnt_accept: Asynchronous AcceptEx failed.

[Thu May 08 12:12:55.135502 2014] [mpm_winnt:warn] [pid 3636:tid 888] (OS 64)The specified network name is no longer available.  : AH00341: winnt_accept: Asynchronous AcceptEx failed.

[Thu May 08 12:12:55.135502 2014] [mpm_winnt:warn] [pid 3636:tid 888] (OS 64)The specified network name is no longer available.  : AH00341: winnt_accept: Asynchronous AcceptEx failed.

[Thu May 08 12:12:55.135502 2014] [mpm_winnt:warn] [pid 3636:tid 888] (OS 64)The specified network name is no longer available.  : AH00341: winnt_accept: Asynchronous AcceptEx failed.

[Thu May 08 12:12:55.135502 2014] [mpm_winnt:warn] [pid 3636:tid 888] (OS 64)The specified network name is no longer available.  : AH00341: winnt_accept: Asynchronous AcceptEx failed.

[Thu May 08 12:14:26.608358 2014] [mpm_winnt:warn] [pid 3636:tid 888] (OS 64)The specified network name is no longer available.  : AH00341: winnt_accept: Asynchronous AcceptEx failed.

[Thu May 08 12:14:26.608358 2014] [mpm_winnt:warn] [pid 3636:tid 888] (OS 64)The specified network name is no longer available.  : AH00341: winnt_accept: Asynchronous AcceptEx failed.

[Thu May 08 14:57:16.290415 2014] [mpm_winnt:notice] [pid 2468:tid 260] AH00422: Parent: Received shutdown signal -- Shutting down the server.

[Thu May 08 14:57:18.290184 2014] [mpm_winnt:notice] [pid 3636:tid 276] AH00364: Child: All worker threads have exited.

[Thu May 08 14:57:18.321431 2014] [mpm_winnt:notice] [pid 2468:tid 260] AH00430: Parent: Child process exited successfully.

[Thu May 08 14:57:29.085815 2014] [mpm_winnt:notice] [pid 4980:tid 388] AH00455: Apache/2.4.2 (Win64) PHP/5.4.3 configured -- resuming normal operations

[Thu May 08 14:57:29.085815 2014] [mpm_winnt:notice] [pid 4980:tid 388] AH00456: Server built: May 13 2012 19:54:49

[Thu May 08 14:57:29.085815 2014] [core:notice] [pid 4980:tid 388] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.2\\bin\\httpd.exe -d C:/wamp/bin/apache/apache2.4.2'

[Thu May 08 14:57:29.085815 2014] [mpm_winnt:notice] [pid 4980:tid 388] AH00418: Parent: Created child process 5472

[Thu May 08 14:57:29.820106 2014] [mpm_winnt:notice] [pid 5472:tid 284] AH00354: Child: Starting 64 worker threads.

[Thu May 08 15:00:49.322035 2014] [mpm_winnt:notice] [pid 4980:tid 388] AH00422: Parent: Received shutdown signal -- Shutting down the server.

[Thu May 08 15:00:51.321919 2014] [mpm_winnt:notice] [pid 5472:tid 284] AH00364: Child: All worker threads have exited.

[Thu May 08 15:00:51.337544 2014] [mpm_winnt:notice] [pid 4980:tid 388] AH00430: Parent: Child process exited successfully.

[Thu May 08 15:00:53.618662 2014] [mpm_winnt:notice] [pid 5392:tid 388] AH00455: Apache/2.4.2 (Win64) PHP/5.4.3 configured -- resuming normal operations

[Thu May 08 15:00:53.618662 2014] [mpm_winnt:notice] [pid 5392:tid 388] AH00456: Server built: May 13 2012 19:54:49

[Thu May 08 15:00:53.618662 2014] [core:notice] [pid 5392:tid 388] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.2\\bin\\httpd.exe -d C:/wamp/bin/apache/apache2.4.2'

[Thu May 08 15:00:53.634286 2014] [mpm_winnt:notice] [pid 5392:tid 388] AH00418: Parent: Created child process 5020

[Thu May 08 15:00:54.337371 2014] [mpm_winnt:notice] [pid 5020:tid 284] AH00354: Child: Starting 64 worker threads.

[Thu May 08 15:01:46.053142 2014] [mpm_winnt:notice] [pid 5392:tid 388] AH00422: Parent: Received shutdown signal -- Shutting down the server.

[Thu May 08 15:01:48.053027 2014] [mpm_winnt:notice] [pid 5020:tid 284] AH00364: Child: All worker threads have exited.

[Thu May 08 15:01:48.068651 2014] [mpm_winnt:notice] [pid 5392:tid 388] AH00430: Parent: Child process exited successfully.

[Thu May 08 15:01:54.896382 2014] [mpm_winnt:notice] [pid 3644:tid 388] AH00455: Apache/2.4.2 (Win64) PHP/5.4.3 configured -- resuming normal operations

[Thu May 08 15:01:54.896382 2014] [mpm_winnt:notice] [pid 3644:tid 388] AH00456: Server built: May 13 2012 19:54:49

[Thu May 08 15:01:54.896382 2014] [core:notice] [pid 3644:tid 388] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.2\\bin\\httpd.exe -d C:/wamp/bin/apache/apache2.4.2'

[Thu May 08 15:01:54.896382 2014] [mpm_winnt:notice] [pid 3644:tid 388] AH00418: Parent: Created child process 3672

[Thu May 08 15:01:55.661963 2014] [mpm_winnt:notice] [pid 3672:tid 284] AH00354: Child: Starting 64 worker threads.

[Thu May 08 15:11:24.275809 2014] [mpm_winnt:notice] [pid 3644:tid 388] AH00422: Parent: Received shutdown signal -- Shutting down the server.

[Thu May 08 15:11:26.291279 2014] [mpm_winnt:notice] [pid 3672:tid 284] AH00364: Child: All worker threads have exited.

[Thu May 08 15:11:26.353775 2014] [mpm_winnt:notice] [pid 3644:tid 388] AH00430: Parent: Child process exited successfully.

[Thu May 08 15:11:28.697345 2014] [mpm_winnt:notice] [pid 888:tid 388] AH00455: Apache/2.4.2 (Win64) PHP/5.4.3 configured -- resuming normal operations

[Thu May 08 15:11:28.697345 2014] [mpm_winnt:notice] [pid 888:tid 388] AH00456: Server built: May 13 2012 19:54:49

[Thu May 08 15:11:28.697345 2014] [core:notice] [pid 888:tid 388] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.2\\bin\\httpd.exe -d C:/wamp/bin/apache/apache2.4.2'

[Thu May 08 15:11:28.697345 2014] [mpm_winnt:notice] [pid 888:tid 388] AH00418: Parent: Created child process 880

[Thu May 08 15:11:29.416039 2014] [mpm_winnt:notice] [pid 880:tid 284] AH00354: Child: Starting 64 worker threads.

[Thu May 08 15:11:39.649628 2014] [core:error] [pid 880:tid 844] (20024)The given path is misformatted or contained invalid characters: [client 192.168.5.79:53640] AH00127: Cannot map GET /mediawiki/index.php/Double_Entry:_Description_of_SQL_functions,_views_and_Stored_procedures HTTP/1.1 to file, referer: http://192.168.5.29:1337/mediawiki/index.php/Gemini

[Thu May 08 15:16:17.911105 2014] [core:error] [pid 880:tid 808] (20024)The given path is misformatted or contained invalid characters: [client 192.168.5.198:57278] AH00127: Cannot map GET /mediawiki/index.php/Help:Contents HTTP/1.1 to file, referer: http://192.168.5.29:1337/mediawiki/index.php/Main_Page

[Thu May 08 15:16:23.613974 2014] [core:error] [pid 880:tid 808] (20024)The given path is misformatted or contained invalid characters: [client 192.168.5.198:57278] AH00127: Cannot map GET /mediawiki/index.php/Special:Search/Pisces HTTP/1.1 to file, referer: http://192.168.5.29:1337/mediawiki/index.php/Pisces

[Thu May 08 15:28:22.303562 2014] [core:error] [pid 880:tid 836] (20024)The given path is misformatted or contained invalid characters: [client 192.168.5.198:57367] AH00127: Cannot map GET /mediawiki/index.php/Talk:Core_Range_Oyez_BookMarks_Script HTTP/1.1 to file, referer: http://192.168.5.29:1337/mediawiki/index.php/Core_Range_Oyez_BookMarks_Script

[Thu May 08 15:28:40.552861 2014] [core:error] [pid 880:tid 836] (20024)The given path is misformatted or contained invalid characters: [client 192.168.5.198:57370] AH00127: Cannot map GET /mediawiki/index.php/VTUK_Knowledge_Base:About HTTP/1.1 to file, referer: http://192.168.5.29:1337/mediawiki/index.php/Check_for_duplicate_Landlord_Records

[Thu May 08 16:05:50.738703 2014] [mpm_winnt:notice] [pid 888:tid 388] AH00422: Parent: Received shutdown signal -- Shutting down the server.

[Thu May 08 16:05:52.754302 2014] [mpm_winnt:notice] [pid 880:tid 284] AH00364: Child: All worker threads have exited.

[Thu May 08 16:05:52.816801 2014] [mpm_winnt:notice] [pid 888:tid 388] AH00430: Parent: Child process exited successfully.

[Thu May 08 16:05:54.629278 2014] [mpm_winnt:notice] [pid 5168:tid 388] AH00455: Apache/2.4.2 (Win64) PHP/5.4.3 configured -- resuming normal operations

[Thu May 08 16:05:54.629278 2014] [mpm_winnt:notice] [pid 5168:tid 388] AH00456: Server built: May 13 2012 19:54:49

[Thu May 08 16:05:54.629278 2014] [core:notice] [pid 5168:tid 388] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.2\\bin\\httpd.exe -d C:/wamp/bin/apache/apache2.4.2'

[Thu May 08 16:05:54.629278 2014] [mpm_winnt:notice] [pid 5168:tid 388] AH00418: Parent: Created child process 4496

[Thu May 08 16:05:55.363643 2014] [mpm_winnt:notice] [pid 4496:tid 284] AH00354: Child: Starting 64 worker threads.

[Thu May 08 16:30:18.937500 2014] [core:warn] [pid 2496:tid 260] AH00098: pid file C:/wamp/bin/apache/apache2.4.2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?

[Thu May 08 16:36:52.656250 2014] [core:warn] [pid 2496:tid 260] AH00098: pid file C:/wamp/bin/apache/apache2.4.2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?

[Thu May 08 16:37:31.218750 2014] [mpm_winnt:notice] [pid 2496:tid 260] AH00455: Apache/2.4.2 (Win64) PHP/5.4.3 configured -- resuming normal operations

[Thu May 08 16:37:31.218750 2014] [mpm_winnt:notice] [pid 2496:tid 260] AH00456: Server built: May 13 2012 19:54:49

[Thu May 08 16:37:31.218750 2014] [core:notice] [pid 2496:tid 260] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.2\\bin\\httpd.exe -d C:/wamp/bin/apache/apache2.4.2'

[Thu May 08 16:37:31.218750 2014] [mpm_winnt:notice] [pid 2496:tid 260] AH00418: Parent: Created child process 3624

[Thu May 08 16:37:32.234375 2014] [mpm_winnt:notice] [pid 3624:tid 276] AH00354: Child: Starting 64 worker threads.

[Thu May 08 17:06:51.623704 2014] [mpm_winnt:notice] [pid 2496:tid 260] AH00422: Parent: Received shutdown signal -- Shutting down the server.

[Thu May 08 17:06:53.623640 2014] [mpm_winnt:notice] [pid 3624:tid 276] AH00364: Child: All worker threads have exited.

[Thu May 08 17:06:53.686138 2014] [mpm_winnt:notice] [pid 2496:tid 260] AH00430: Parent: Child process exited successfully.

[Thu May 08 17:06:57.076654 2014] [mpm_winnt:notice] [pid 5636:tid 388] AH00455: Apache/2.4.2 (Win64) PHP/5.4.3 configured -- resuming normal operations

[Thu May 08 17:06:57.076654 2014] [mpm_winnt:notice] [pid 5636:tid 388] AH00456: Server built: May 13 2012 19:54:49

[Thu May 08 17:06:57.076654 2014] [core:notice] [pid 5636:tid 388] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.2\\bin\\httpd.exe -d C:/wamp/bin/apache/apache2.4.2'

[Thu May 08 17:06:57.123528 2014] [mpm_winnt:notice] [pid 5636:tid 388] AH00418: Parent: Created child process 5928

[Thu May 08 17:06:57.857879 2014] [mpm_winnt:notice] [pid 5928:tid 284] AH00354: Child: Starting 64 worker threads.
62.232.86.250 (talk) 16:44, 8 May 2014 (UTC)
Please upgrade to Mediawiki 1.22 or wait a few days to upgrade to 1.23 86.173.55.194 17:26, 8 May 2014 (UTC)
Hi thanks for your reply.
Before upgrading I'd like to know what's wrong with v 1.20.0.
Can someone advise please, thanks. 62.232.86.250 08:32, 9 May 2014 (UTC)
86.173 advices everyone to upgrade. I don't know of a specific bugfix, which is included in 1.22, so that it would solve your problem.
However, it is true that after MediaWiki 1.20 has been released, a great number of bugfixes went into the MediaWiki core and so it might really be that when you upgrade to 1.22, the problem is gone. No promisses, but I think it might be worth a try. 88.130.85.104 09:16, 9 May 2014 (UTC)
Would it be possible to include the parts of the error log generated just around the time when the system beomes unresponsive?
What extensions do you have installed?
Overall, it sounds like something is consuming a lot of memory (a memory leak somewhere). This could be caused by bugs in PHP/Apache or MediaWiki. Long, large SQL queries could also be the problem. It could also be the jobqueue running more and more jobs. It could be a problem with running on Win32.
So, without more information, it is hard to determine what the problem is or if upgrading will solve it. 1.20.x is no longer supported, though, so an upgrade wouldn't hurt.
You might also try setting up Linux in VirtualBox or VMWare and seeing if it still has the same problem. ☠MarkAHershberger☢(talk)☣ 12:16, 9 May 2014 (UTC)
MarkAHershberger:
The log sample I've submitted in the initial post was generated over the period of time in which the application became unresponsive.
The frustrating thing is that the log doesn't record anything at that moment.
Is that compatible with memory errors?
Thanks 62.232.86.250 15:20, 9 May 2014 (UTC)
Yes, it is compatible with memory running out. ☠MarkAHershberger☢(talk)☣ 16:45, 19 May 2014 (UTC)
You may also take a look at server resources when this problem happens: CPU, Disk I/O and memory usage, to find the cause of the bottleneck. Ciencia Al Poder (talk) 09:25, 20 May 2014 (UTC)

Allow Users to register and create/edit pages.

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've just created a new site, A Marvelous Work, using HostGator-->QuickInstall-->MediaWiki. It doesn't allow for new users to register. I would like for people to come to the page and edit with or without registering. Right now, they're not allowed to do anything. I don't know what to do. Reading around it seems like there were things I should do in the LocalSettings.php file, but I don't know how to access that. I was taken directly from HostGator to my site when I set up MediaWiki through quickinstall. So do I need to download localsettings.php, edit it, and upload? If so, how? Thanks. 68.5.68.227 (talk) 18:12, 8 May 2014 (UTC)
This is really a question for HostGator, but if you have any sort of FTP access to your site, that should work. This looks like a good place to start: https://support.hostgator.com/articles/hosting-guide/lets-get-started/file-manager-getting-started ☠MarkAHershberger☢(talk)☣ 12:06, 9 May 2014 (UTC)
Thanks! The link led me right where I needed to be. Johnpalfreyman (talk) 19:09, 9 May 2014 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Code Help latest activities

I have this code on my Wiki

<activity limit="3" pagetalk="false" grouptalk="false" nominor="true"></activity>

It shows me the latest activities in the wiki with the photo profile of the users, but I wanna restrict activities from some categories How can I do it? Juan Cristobal Viscarra (talk) 07:47, 9 May 2014 (UTC)

What extention are you using that gives you the activity tag? ☠MarkAHershberger☢(talk)☣ 11:59, 9 May 2014 (UTC)
It only says "ISWiki extensions" and when I click on it I go to http://idea-sketch.com/ Juan Cristobal Viscarra (talk) 05:08, 15 May 2014 (UTC)
Here's an example limited to 3 category:
<activity nominor="true" pagetalk="false" grouptalk="false" categories="Cooking|Solar|Impact" limit="10"> 95.116.231.112 13:04, 15 May 2014 (UTC)
Thank you!!! thank very much! Juan Cristobal Viscarra (talk) 20:22, 17 May 2014 (UTC)

[RESOLVED] Problem With Images Showing Broken If Large

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 having issues with my own wiki running 1.19 on dreamhost, in that all my images if I upload a large size and then scale it down end up showing nothing but the broken image icon in the area that I've scaled it at. If I upload the full size and use that however, it shows up fine. Anyone else having this problem or know where I can look for a solution? Here's an example of one of the 1920x1080 images being scaled down to 800 x 450 pixels. Z3ther (talk) 08:10, 9 May 2014 (UTC)
Hi!
It seems like thumbnails of your images are not being generated.
I can access the original files inside the folder images/, but not the thumbnails. Instead, MediaWiki kicks in and serves a wiki page (most probably because the thumbnails have not been generated and so are not present in the file system).
You can now try the hints on Manual:How_to_debug. Especially it would be helpful to know what you get in the debug log when you call such a page, where MediaWiki does not show thumbnails. Debug log will contain some lines for each images, which MediaWiki is trying to generate/show. That is what would help now! 88.130.85.104 09:22, 9 May 2014 (UTC)
YES! I LOVE YOU!
This was it, thumbnails weren't being generated, I found that in my localsettings.php my $wgGenerateThumbnailOnParse was "truue" instead of true, so silly spelling error messed me up. You are the best thing that has happened to me today. Thank you very much. Z3ther (talk) 10:36, 9 May 2014 (UTC)
And that on the day of my birthday! :-) 88.130.85.104 11:26, 9 May 2014 (UTC)
I found if the resized image is only a link, I changed
$wgGenerateThumbnailOnParse = true;
in LocalSettings.php
and this fixed the problem Moscowdreams (talk) 19:56, 5 June 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

beta features broken

hi I have installed extension beta features but it has broke my preference because it now doesent have tabs but is like all on one page it is like when javascript is broken but wikieditor works but everything else is broken. 94.7.128.200 (talk) 15:50, 9 May 2014 (UTC)

Extension help regarding evaluating wiki text

Say I have a simple extension that evaluates wiki text and output its on a page. I also want it to output simple HTML tags allowed by MW, such as div, span and table.

<extension>
<div>Test</div>
</extension>

Does MW have a built-in function to check for other tags, such as <script>, and any other potential XSS tags? Or rather, a function to check for all HTML tags not permitted by MW during normal page creation.

No preg_matcherino pls. Fereal (talk) 04:34, 10 May 2014 (UTC)

My wiki is target of spam

I've tried to find help on this but I haven't found anything - so please forgive me if there is information elsewhere?

I started getting emails yesterday about a number of new registered users. I logged into the wiki and also noted many of these users have put in garbage as pages. It almost seem like some sort of bot or program is doing this.

I don't think I want useless pages being put up, so I'd like to get rid of them. The administrator tools don't seem to have a way to delete pages or users in bulk, because there's now about 50 of them, and none are contributing content intended for the wiki.

Any thoughts? I'd like to block the activity if it's possible.

Thanks! 75.177.137.218 (talk) 13:10, 10 May 2014 (UTC)

It's about time to install the Extension:ConfirmEdit → QuestyCaptcha (prevents bots from editing) and Extension:Nuke (kill the bot created pages in bulk). Cheers [[kgh]] (talk) 13:31, 10 May 2014 (UTC)
I think I answered my own question - I did not have confirmedit running...but now do. Thanks anyway 75.177.137.218 13:50, 10 May 2014 (UTC)
Wikis tend to get perpetually spammed from shortly after the moment that they are created. Their open nature, API, and lack of default user activity security make them exceptional targets for spam.
I recommend Extension:Asirra that requires identification of cats from dogs, which is virtually impossible for bots to pass. Lieutenant Aleksandr Reznov 18:49, 15 May 2014 (UTC)
Extension:QuestyCaptcha is also a very good solution when using questions about the subject of the wiki, or just random questions that a bot can't figure out the response. Ciencia Al Poder (talk) 09:14, 16 May 2014 (UTC)
I agree. The only issue with it is that someone will eventually give bots the answers to the questions. Until that point I've heard that it's a very good anti spam method. Lieutenant Aleksandr Reznov 13:52, 16 May 2014 (UTC)

error in css

hi I get this error when using this css code

 background-image: url('//upload.wikimedia.org/wikipedia/commons/1/10/Wikipedia-logo-v2-200px-transparent.png'), -moz-linear-gradient(top, #ddd, #000);
 background-image: url('//upload.wikimedia.org/wikipedia/commons/1/10/Wikipedia-logo-v2-200px-transparent.png'), -ms-linear-gradient(top, #ddd, #000);
 background-image: url('//upload.wikimedia.org/wikipedia/commons/1/10/Wikipedia-logo-v2-200px-transparent.png'), -o-linear-gradient(top, #ddd, #000);
 background-image: url('//upload.wikimedia.org/wikipedia/commons/1/10/Wikipedia-logo-v2-200px-transparent.png'), -webkit-linear-gradient(top, #ddd, #000);
 background-image: url('//upload.wikimedia.org/wikipedia/commons/1/10/Wikipedia-logo-v2-200px-transparent.png'), -webkit-gradient(linear,

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

please aslo visit http://en.random-wikisaur.tk/wiki/MediaWiki:Common.css please because it shows many error. 94.197.122.75 (talk) 14:01, 10 May 2014 (UTC)

What is your question? The warning (it is NOT an error) says that you should not use it multiple times. The fix is to not declare it multiple times. How is this related to MediaWiki? 46.14.150.162 16:04, 11 May 2014 (UTC)

Deactivate "Talk"

Hello everyone!

I am new and my english ist very bad, but i hope you understand me :D I downloaded the version 1.22.6 and i want to deactivate the area "Talk". It's possible?

Thank you!

kfx. Kfx (talk) 17:26, 10 May 2014 (UTC)

No one can help me? 178.200.29.169 18:12, 14 May 2014 (UTC)
Hi
Try to add this line to your file LocalSettings.php
$wgGroupPermissions['*']['createtalk']       = false;
91.183.39.85 07:22, 15 May 2014 (UTC)
Above line would disable creation of talk pages for anonymous users. However, I don't know, if that is enough: Users, who are logged in, might still have permission to create talk pages so that you might want to adjust their permissions as well.
Another aspect is that the tab "Talk" next to the tab "Article" will still be displayed although it is useless. You might want to hide it using CSS. 88.130.121.160 09:36, 16 May 2014 (UTC)

can't access special pages: internal server error

Hey there,

i've got a big problem: all my special pages are leading to an internal server error. what i've already tried:

- deactivated all extensions

- updated to 1.22.6

- maintenance/update.php


i tried to log some actions, here is one log:

Start request GET /wiki/Spezial:Spezialseiten

HTTP HEADERS:

ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

ACCEPT-ENCODING: gzip, deflate

ACCEPT-LANGUAGE: de,en-US;q=0.7,en;q=0.3

CACHE-CONTROL: max-age=0

CONNECTION: keep-alive

COOKIE: XXX_session=ss98hfeob8qboum1u518avaaq7; XXXUserID=22; XXXUserName=Biedermann; XXXToken=325b599c56251f88ecd5f0584f38c159; vector-nav-p-tb=true

DNT: 1

HOST: www.XXX.de

USER-AGENT: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0

CACHES: EmptyBagOStuff[main] SqlBagOStuff[message] SqlBagOStuff[parser]

[cookie] session_set_cookie_params: "0", "/", "", "", "1"

Class LanguageDe_formal not found; skipped loading

LocalisationCache: using store LCStore_DB

Connected to database 0 at XXX.de

Class LanguageDe not found; skipped loading

Unstubbing $wgParser on call of $wgParser::setHook from ExtDynamicPageList::setupDPL

Parser: using preprocessor: Preprocessor_DOM

Fully initialised

User: cache miss for user 22

User: loading options for user 22 from database.

User: logged in from session

User: loading options for user 22 from override cache.

Connected to database 0 at XXX.de

MessageCache::load: Loading de-formal... got from global cache

Unstubbing $wgLang on call of $wgLang::_unstub from ParserOptions::__construct


could somebody help me? 87.182.118.158 (talk) 19:11, 10 May 2014 (UTC)

Hi!
Your debug log shows nothing suspicious; looks good and unrelated to your problem. Only does it seem like the last lines of the request are missing - which is more or less "expected behaviour" when you say that a server error happened during execution. ;-)
When you get a server error 500, you will find more information in the Apache error log. Check there to see, what's actually happening! 88.130.111.49 20:55, 10 May 2014 (UTC)

Error importing a database dump

When I attempt to use importDump.php, using the syntax php importDump.php < <name of file> I get this error: PHP Warning: XMLReader::read(): uploadsource://77981c5c114d227e65622a081b6175f7:1: parser error : Document is empty in /usr/share/mediawiki/includes/Import.php on line 404 PHP Warning: XMLReader::read(): in /usr/share/mediawiki/includes/Import.php on line 404 PHP Warning: XMLReader::read(): ^ in /usr/share/mediawiki/includes/Import.php on line 404 PHP Warning: XMLReader::read(): An Error Occured while reading in /usr/share/mediawiki/includes/Import.php on line 404 Set $wgShowExceptionDetails = true; in LocalSettings.php to show detailed debugging information. 86.146.102.173 (talk) 19:15, 10 May 2014 (UTC)

Hi!
Set $wgShowExceptionDetails = true; in LocalSettings.php and reproduce the error again to show detailed debugging information! 88.130.111.49 20:57, 10 May 2014 (UTC)
Here
PHP Warning: XMLReader::read(): uploadsource://b60d7e67d36b6c9327d06799a562c7a4:1: parser error : Document is empty in /usr/share/mediawiki/includes/Import.php on line 404
PHP Warning: XMLReader::read(): �‹� in /usr/share/mediawiki/includes/Import.php on line 404
PHP Warning: XMLReader::read(): ^ in /usr/share/mediawiki/includes/Import.php on line 404
PHP Warning: XMLReader::read(): An Error Occured while reading in /usr/share/mediawiki/includes/Import.php on line 404
Expected <mediawiki> tag, got
Backtrace:
  1. 0 /usr/share/mediawiki/maintenance/importDump.php(282): WikiImporter->doImport()
  2. 1 /usr/share/mediawiki/maintenance/importDump.php(249): BackupReader->importFromHandle(Resource id #71)
  3. 2 /usr/share/mediawiki/maintenance/importDump.php(93): BackupReader->importFromStdin()
  4. 3 /usr/share/mediawiki/maintenance/doMaintenance.php(105): BackupReader->execute()
  5. 4 /usr/share/mediawiki/maintenance/importDump.php(287): require_once('/usr/share/medi...')
  6. 5 {main}
86.146.102.173 08:18, 11 May 2014 (UTC)
I have not seen this error before, but if I understand it correctly it means that MediaWiki thinks the file you uploaded would be empty. If this is not the case, then maybe you have a permission problem - maybe MediaWiki (or the webserver) is not allowed to read this file? 88.130.121.160 09:39, 16 May 2014 (UTC)
I got this error when I misspelled my the filename in the command, just check everything twice. Zygimantus (talk) 22:09, 16 May 2015 (UTC)

Rollback log

How to get list of rollback edits? AS (talk) 11:45, 11 May 2014 (UTC)

They're treated as normal edits and don't have a log. Ciencia Al Poder (talk) 09:30, 12 May 2014 (UTC)
Are they catched by AbuseFilter? AS (talk) 09:38, 24 May 2014 (UTC)
Yes, they can be caught just as any other normal edit Ciencia Al Poder (talk) 09:15, 26 May 2014 (UTC)
I was unable to catch them in uk.wikipedia.org Tried to cacth by edit summary. Maybe this is the reason? AS (talk) 21:17, 28 May 2014 (UTC)
Then it was changed somehow. In the MediaWiki version 1.19 I have, rollback edits appear under Special:AbuseFilter/examine Ciencia Al Poder (talk) 09:22, 29 May 2014 (UTC)

File help

Hi how can I resize a .svg file from common to my site. Because when I do it save the file to my site and they called .svg.png but all I want to do is to resize it without saving it nor make it a ping file 86.173.55.194 (talk) 15:36, 11 May 2014 (UTC)

You need to download the SVG version and not a thumbnail or rasterized version of it. Go to the file description page and click on the file to get the SVG version. Ciencia Al Poder (talk) 09:31, 12 May 2014 (UTC)
"without saving it" (which I interpret as "embedding it"): see the width and height parameters of HTML's "img" tag. AKlapper (WMF) (talk) 09:56, 12 May 2014 (UTC)
Assuming, that my site is driven by Mediawiki, you could use Commons as a foreign file repository. You can embed all files from Commons like local files.
You may take a look here: Manual:$wgUseInstantCommons and there: Manual:$wgForeignFileRepos.
With such a configuration you type in your wikitext [[File:ChosenPicFromCommons.svg|200px]]. And it will be rendered to your chosen size automatically. Wgkderdicke (talk) 11:46, 12 May 2014 (UTC)
Ok but I would like to common without saving the image to my site storage please. Paladox2017 (talk) 15:54, 12 May 2014 (UTC)
{{Delete }} Paladox2017 (talk) 16:02, 12 May 2014 (UTC)

[RESOLVED] Problem with categorization

Hi All, I read a lot about using categories in mediawikis, so I have decided to go for it.

ISSUE

I have added an internal article to an existing category called "Linux commands" (only first character in capital... al the rest in lower case) using the following:

[[Category:Linux commands]]

As a result I have got correctly the link to this new category at the end of my page (so the article itself get categorized correctly) but the link to it is <span style="color:red>red despite the fact, as specified above, this category already exists!!!

If I click on this category (Linux commands) it brings me to the page containing this category. In there I can see the title of my article just linked under the correct letter but the page itself appears in Edit view and the following message appears: <pre style="margin-left:0.5cm;">Remember that this is only a preview. Your changes have not yet been saved! → Go to editing area

MY SYSTEM

  • MediaWiki: 1.22.3
  • PHP: 5.3.3 (apache2handler)
  • MySQL: 5.1.73

Can anybody help me?

Thanks in advance! Ivano.buffa (talk) 21:03, 11 May 2014 (UTC)

You need to actually create the page, Click on the red link, when the edit window opens for that page, add something like "This is the Linux commands category" then click "Save page" this will create the page and turn the red link to blue.
Cheers, Mlpearc (open channel) 23:15, 11 May 2014 (UTC)
) Mlpearc (open channel) 23:15, 11 May 2014 (UTC)
Shame on me!
It worked. Thank you very much Mlpearc.
Regards,
Ivano Buffa (talk) 07:11, 12 May 2014 (UTC)
You're welcome, glad to help :) Mlpearc (open channel) 23:15, 11 May 2014 (UTC)

Reload button leads to long time loading problem

Hi there,

Our wiki site works fine unless the user click the reload button. It is going to take about 3-5mins to reload the current page content.

Then I used firebug to trace the issue as it shows the load.php has been called for several times and a error message with: "Syntax error, unrecognized expression: @media screen{.mw-content-ltr"

But I am not sure it is the jQuery triggers this error or load.php does.

Our wiki site address is : http://wiki.plutora.com/Main_Page

Media wiki version: 1.21.5

PHP:5.3.3

This problem already took us 4 days without any results, please help, this almost kills us.

Thank you in advance.

Best Regards Patrick Patrickhys (talk) 11:40, 12 May 2014 (UTC)

Try updating to Mediawiki 1.22 or 1.23 or if they did not help try updating php 5.3.3 to something like 5.3.x latest. Paladox2017 (talk) 15:59, 12 May 2014 (UTC)
And your load file seems incorrect it should be something like this which is from Mediawiki
/* This file is the Web entry point for MediaWiki's ResourceLoader:
<https://www.mediawiki.org/wiki/ResourceLoader>. In this request,
no modules were requested. Max made me put this here. */
So update Mediawiki to latest version and try it. Paladox2017 (talk) 16:02, 12 May 2014 (UTC)
It loads in 4-5 seconds for me (in a not-really-fast connection). Maybe you have a slow connection? Ciencia Al Poder (talk) 09:23, 13 May 2014 (UTC)

Migrate from XWIKI to MediaWIKI

Hello,
do anyone know what's the easiest way to convert XWIKI content to MediaWIKI
Thanks in advance 197.14.49.34 (talk) 13:12, 12 May 2014 (UTC)
Me too ! Many erros in try to import xml of xwiki ! 189.22.10.66 19:38, 24 June 2014 (UTC)
+1 193.183.161.20 09:08, 25 November 2014 (UTC)
+1 24.37.183.62 20:17, 29 July 2015 (UTC)
I need this feature, too. Is there any script or plug-in? 87.78.25.246 (talk) 07:38, 31 May 2017 (UTC)
I set up gitlab.com/tuxick/xwiki2mediawiki but i'd need some help to get going :) Tuxick (talk) 12:11, 11 May 2020 (UTC)

Help. I accidentally deleted from the page table.

Hi. So I wanted to remove a page out of the "page_restriction" table but accidentally deleted it from the "page" table. Is there any way to get that "page" table line back? Please tell me there is. Any help would be greatly appreciated.

If I can't recover the row from the "page" table, how could I get the text from the removed page so I could just create a new page with that text.

UPDATE: I am using MediaWiki 1.11.2. Overherenow (talk) 19:29, 12 May 2014 (UTC)

Hi!
To find the text of the page, you must know the value from the field "page_latest" in the page table. Information on how to find the text from there are available here: Manual:Page_table#page_latest.
I hope you still know the page name of the page you removed?
Second question: Do you have a backup with this row in the page table still included? 88.130.107.172 20:49, 12 May 2014 (UTC)
Hi please update Mediawiki 1.11.2 to Mediawiki 1.19 if you have php 5.2 or Mediawiki 1.22 if you have php 5.3. Mediawiki 1.11.2 is unsupported and there has been many changes since Mediawiki 1.11.2 was released. 86.173.55.194 22:05, 12 May 2014 (UTC)
I do remember the page name and the page_id. So I will look there in the page_latest table.
I don't think I have a backup. I did look at the archive table but nothing was there. I even tried creating a new page and updating the page table with the deleted page_id, but that caused the search page to break. I just have to create that link in the page table to the context of the page.
Beyond the page_latest table, is there any other way to rebuild that row?
Upgrading would be nice but that wouldn't bring the page back. After getting the page back, we will look into upgrading Mediawiki. Overherenow (talk) 22:49, 12 May 2014 (UTC)
When you removed the row from the page table, the information from the page_latest field (which is part of that row) will be gone as well.
What you in fact need is the revision number (that is what the page_latest field of the page points you to). With that number you will be able to find the correct text (which btw. is still in your DB).
Another option would be this: If you know a few exact(!) words of wikitext, that were on the page (including styles; sign for sign as you had them in the wikitext), then you can also use MySQL to search the column "old_text" of the text table for this text. In case you see multiple hits after that search and when you read the text in old_text they come from the correct page (and not from another one, which had the search string in it as well), then the one with the highest number in old_id most likely is the newest revision you had. 88.130.107.172 08:18, 13 May 2014 (UTC)
Interesting. In my version of MediaWiki, I don't have a page_latest table. It must be that old.
I did look through the text table but I couldn't find anything. The page maybe hasn't been updated in a long time or when I deleted it from the page table, it also got removed from the text table as well.
Here are the tables I do have. The ones that are "-"ed, I've looked in.
-archive
categorylinks
externallinks
-filearchive
hitcounter
image
imagelinks
interwiki
ipblocks
job
langlinks
logging
math
objectcache
oldimage
-page
-page_restrictions
-pagelinks
querycache
querycache_info
querycachetwo
-recentchanges
redirect
-revision
searchindex
site_stats
templatelinks
-text
-trackbacks
transcache
user
user_groups
user_newtalk
watchlist
Overherenow (talk) 13:22, 13 May 2014 (UTC)
Look at my post again: I spoke of the page_latest field; it's no table. In a table you have columns. When you fill rows(!) into a table, then you fill each of the columns with values; per row one value for each column. Now the value of column x in row y is what is called a field.
There are maintenance scripts, which can be used to remove text from the text table, but they are not executed automatically - instead, you must do that manually (if you might want to delete content). If you did not run them manually, your text will still be in the text table and you should be able to find it in the column "old_text". If you do not find it, I think you are somehow searching incorrectly - how do you do it? 88.130.71.254 19:21, 13 May 2014 (UTC)
I ended up just creating a new page with the same name. Oh well.
That's interesting though about the page_latest. I didn't have that number but I still searched the text table with this SQL.
select * from text where old_text like '%Champion%';
But that didn't return the page. I tried other text to make sure my SQL was right and other pages returned. 151.191.175.230 20:41, 13 May 2014 (UTC)
Then try with another word or some other words. I am not 100% sure, but if I remember correctly, searches in MySQL (like the one you do with "LIKE") are case insensitive, if you use collations, which are case insensitive. So if you use something like utf_8_general_ci, the search should be case-insensitive. If you use binary encoding, your search should be case sensitive. 88.130.71.254 21:54, 13 May 2014 (UTC)
I did try different cases and just "%hampion%" and nothing. It's alright. We are just recreating the page.
Thank you for your time and help. I greatly appreciate it. 151.191.175.231 15:48, 14 May 2014 (UTC)
Hmm, ok. However, I still do not understand, why you cannot find the text. Interested in what happened there... 88.130.102.110 18:48, 14 May 2014 (UTC)

escapeshellarg () disabled during installation

Through hours of searching I can't seem to find anyone having even close to the same problems and the fixes for the other problems that are caused by this being disabled doesn't seem to apply to my issue.

During the checking of the environment in the installation process I get this:

Warning: escapeshellarg() has been disabled for security reasons in /var/zpanel/hostdata/zadmin/public_html/website_tmachq_org/w/includes/GlobalFunctions.php on line 2784

After it sets the server url.

I have checked multiple settings to see if It was in safe mode or it was disabled. Within php.ini. Safe mode is disabled and there are no restricted funtions.

Php version: 5.3.3 Mysql version: 5.1.73 Mediawiki version: 1.22.6 98.119.102.156 (talk) 15:46, 13 May 2014 (UTC)

You can look up what functions are disabled by creating a simple .php file with the call <?php phpinfo(); in it. Put it in the MediaWiki installation folder and browse it from your browser. Search for disable_functions in the generated output Ciencia Al Poder (talk) 09:38, 14 May 2014 (UTC)
There is no value under disable_functions 98.119.102.156 12:01, 14 May 2014 (UTC)
Contact your hosting company, then Ciencia Al Poder (talk) 09:33, 15 May 2014 (UTC)
I did they said nothing is disabled on there side. 98.119.102.156 14:07, 15 May 2014 (UTC)
I did they said nothing is disabled on there side. 98.119.102.156 14:08, 15 May 2014 (UTC)
The message "Warning: escapeshellarg() has been disabled for security reasons in /var/zpanel/hostdata/zadmin/public_html/website_tmachq_org/w/includes/GlobalFunctions.php on line 2784" is being generated by PHP, not by MediaWiki, so there's nothing more we can do about that, because that function is obviously disabled. Ciencia Al Poder (talk) 09:05, 16 May 2014 (UTC)
Hi,
Just Posting what I found in regards to this.
My server uses zPanel control panel and part of the standard zPanel setup includes the Suhosin Patch from the Hardened PHP Project (http://www.hardened-php.net/). Suhosin is an "advanced protection system for PHP installations".
In the zpanel directory (/etc/zpanel/configs/apache) and then find the file httpd-vhosts.conf. You need to edit this file and look for the section for the # DOMAIN entry for your wiki site (e.g. # DOMAIN wiki.mysite.com).
Within this file look for the entry that starts: php_admin_value suhosin.executor.func.blacklist
This is followed by a long string of function names, separated by commas, that are to be blocked by Suhosin for this domain. In my case the entry was:
php_admin_value suhosin.executor.func.blacklist "passthru, show_source, shell_exec, system, pcntl_exec, popen, pclose, proc_open, proc_nice, proc_terminate, proc_get_sta$,$et_status, proc_close, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, escapeshellcmd, escapeshellarg, exec"
You need to delete the last two entries: escapeshellarg, exec
from this string. Save the edited file, restart apache2, and the wiki install functions now work perfectly.
Alternatively you can disable suhosin for that vhost all together (this lowers the security overall for your server and I would not recommend it) via Module Admin -> Apache Config. At the bottom of that page select the vhost to override (e.g. wiki.mysite.com). then untick the Suhosin Enabled checkbox. 118.208.72.106 14:46, 21 November 2014 (UTC)
Correction for last post
"You need to delete these entries: escapeshellarg, proc_open, proc_get_status, proc_close" 118.208.72.106 15:20, 21 November 2014 (UTC)

[RESOLVED] Any way to control the caching of MediaWiki:Common.css?

Are there any ways to control the caching on the changes on this page, so that whenever it gets changed, recent visitors (that have loaded the previous version) don't have to force clear their cache to see the changes? Fereal (talk) 16:27, 13 May 2014 (UTC)

It's usually not necessary for visitors to clear their cache. ResourceLoader sends an Expires: header with a duration of 10 minutes, so the browser should request the URL again to the server, and it will check if the file has changed, and send the new version of it.
Basically, they'll be seeing the old version for 10 minutes at most, but that should be acceptable. Ciencia Al Poder (talk) 09:43, 14 May 2014 (UTC)
Any way to control the time? Fereal (talk) 18:28, 14 May 2014 (UTC)
Manual:$wgResourceLoaderMaxage Ciencia Al Poder (talk) 09:36, 15 May 2014 (UTC)
So I'm gonna assume Common.css falls under "unversioned". "versioned" falls under the addon modules in extensions?
Anyway, not interested in the latter.
kthx. Fereal (talk) 11:15, 15 May 2014 (UTC)

File /home/users/mywiki/skins/monobook/headbg.jpg is not within the allowed path(s)

I have the following warning displayed in my log each time a page of my wiki is displayed:

[error] 202#0: *246 FastCGI sent in stderr: "PHP message: PHP Warning:  file_exists(): 
open_basedir restriction in effect. File(/home/users/mywiki/skins/monobook/headbg.jpg) is not within the allowed path(s): 
(/srv/http/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/etc/webapps) 
in /srv/http/mywiki/includes/resourceloader/ResourceLoaderModule.php on line 509

I understand the error: the file Ā« /home/users/mywiki/skins/monobook/headbg.jpg Ā» doesn't exist.
But I don't understant why my wiki tries to get this file with this wrong path (/home/users) instead of Ā« /srv/http/mywiki/skins/monobook/headbg.jpg Ā»

I get the same error for the following files:

  • /home/users/mywiki/skins/monobook/headbg.jpg
  • /home/users/mywiki/skins/monobook/bullet.gif
  • /home/users/mywiki/extensions/WikiEditor/modules/images/toolbar/base.png
  • /home/users/mywiki/skins/monobook/external-ltr.png
  • /home/users/mywiki/skins/monobook/lock_icon.gif
  • /home/users/mywiki/skins/monobook/mail_icon.gif
  • /home/users/mywiki/skins/monobook/news_icon.png
  • /home/users/mywiki/extensions/WikiEditor/modules/images/toolbar/base.png
  • /home/users/mywiki/extensions/WikiEditor/modules/images/toc/close.png
  • /home/users/mywiki/extensions/WikiEditor/modules/images/toc/open.png
  • /home/users/mywiki/extensions/WikiEditor/modules/images/toc/grip.png

Does anyone have the same problem ? Or know what could I do to fix it ?

I use Mediawiki version 1.22.5
PHP version 5.5.12 (fpm-fcgi) on Nginx
I installed those extension SyntaxHighlight (version 1.0.8.11), FooterManager (version 0.0.1), GoToCategory (version 1.0), WikiEditor (version 0.3.1) NikusPokus (talk) 21:44, 13 May 2014 (UTC)

You may have a misconfigured variable, like $wgLocalStylePath. For example, a missing "/" at the start of a path that makes it a relative instead of absolute. Ciencia Al Poder (talk) 09:53, 14 May 2014 (UTC)
Thanks for your answer, I checked my variables in LocalSettings.php
$wgScriptPath = "";
$wgStylePath = "$wgScriptPath/skins";
I don't defined Ā« $wgLocalStylePath Ā» so the default value should be used: Ā« {$wgScriptPath}/skins Ā» which give Ā« /skins Ā»
Same thing for Ā« $wgStylePath Ā» → Ā« /skins Ā»
It seems ok for me.
If you think about anything else, please let me know. NikusPokus (talk) 08:59, 15 May 2014 (UTC)
If your wiki is accessible from internet, a link to it would be helpful. Ciencia Al Poder (talk) 09:37, 15 May 2014 (UTC)

[RESOLVED] directory index of "/srv/http/mywiki/extensions/WikiEditor/modules/images/toolbar/" is forbidden

I have the following error is displayed in my log each time I validate a modification on my wiki:

[error] 1404#0: *45 directory index of "/srv/http/mywiki/extensions/WikiEditor/modules/images/toolbar/" is forbidden, 

I don't why the WikiEditor extension asks for a directory index.

Does anyone have the same problem ? Or could explain me why WikiEditor has this behavior ?

I use Mediawiki version 1.22.5 PHP version 5.5.12 (fpm-fcgi) on Nginx I installed those extensions:

This is because the generated HTML, scripts, or whatever is pointing to mywiki/extensions/WikiEditor/modules/images/toolbar/ (ending with a /), without specifying a filename. This will make the server to attempt to list the files of that folder (directory index). This is probably a bug. Ciencia Al Poder (talk) 09:56, 14 May 2014 (UTC)
You're right, thanks to you I found the source of the problem. It is in the WikiEditor config.
I modified the Ā« WikiEditor/modules/jquery.wikiEditor.toolbar.config.js Ā» file to get a custom toolbar and I put an empty string as a value for some icon fields:
When there is no icon or a wrong path to the icon specified, the label is displayed instead of the icon.
'label': 'My Label',
'icon': '',
This is why the server try to get the index of Ā« /extensions/WikiEditor/modules/images/toolbar/ Ā» because there is no file specified.
It is a kind of bug and I will notify the WikiEditor developers. NikusPokus (talk) 08:47, 15 May 2014 (UTC)

[RESOLVED] Fatal exception of type MWException? (Scribunto)

After installing Scribunto so I could get templates off Wikipedia with ease, this happens:

[fa5327ce] 2014-05-14 13:38:22: Fatal exception of type MWException

I have absolutely no idea what's causing it etc, I've pretty much tried looking at everything. My lua directory is executable and everything is supposed to be like needed, yet this one template is causing me this error (Template:Navbox with collapsible groups) Is it possibly a problem with the template itself? This didn't happen before I installed Scribunto and imported templates from Wikipedia. I have all the modules needed for that template too.

And no, I don't have root access. But the host is running Linux if that's of any help. I'm running Windows. 84.50.125.120 (talk) 13:43, 14 May 2014 (UTC)

Also, when I import files now I get this error:
Import failed: The lua binary (/home/u346746041/public_html/w/extensions/Scribunto/engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua) is not executable.

I have allowed the lua file to be executed. 84.50.125.120 14:21, 14 May 2014 (UTC)

For displaying a detailed error message, look at Manual:How to debug Ciencia Al Poder (talk) 09:41, 15 May 2014 (UTC)
I got it fixed by uninstalling Scribunto from my wiki. I'll just copy old revisions of Wikipedia templates from now on, and my wiki will survive just fine. Thanks for the help though. 84.50.125.120 11:07, 15 May 2014 (UTC)
Hi if you have scribunto all you have to do is left click on the folder scribunto and change the file permission to 755. And recourse it into all files and folders of that folder. 90.204.146.142 15:25, 15 May 2014 (UTC)

MW1.16.1 Data Migration to MW 1.22 - How to Migrate?

I am using mediawiki will following version of application. MediaWiki[1.16.1] PHP [5.2.17] MySQL [5.0.77]

I want to install latest version of mediawiki 1.22 in my new linux machine. How can I migrate the existing data being used in MW 1.16.1 to MW 1.22 Prabin~mediawikiwiki (talk) 15:58, 14 May 2014 (UTC)

Hi!
That's easy: Basically you do not have to (manually) migrate anything. You run the update script update.php and it does all the magic for you. All the details are on page upgrade! Continue asking here at the support desk, if you have questions!
Note that you have to update PHP to version 5.3 or newer to run MediaWiki 1.22. 88.130.102.110 18:51, 14 May 2014 (UTC)

Loading HTML/Wiki code in system message?

Simple problem - I'm loading a system message (Eg, Mediawiki:titlehere).

Long story short - "Mediawiki:titlehere" uses some HTML, which I'd like to load onto the login page via PHP (Re-working the login page include a birthdate, which is entered into the database and can used against the user (Such as limited what they can/can't do)

However, when attempting to do so, the message is instead loaded as raw, un-parsed text.

Anytime I look up anything about this, I get the opposite results: "How do you load PHP in HTML?"

So, how exactly would I manage to display HTML/Wiki code in a system message loaded in PHP? The file in question is Usercreate.php. 24.119.228.163 (talk) 05:31, 15 May 2014 (UTC)

  • limiting (Not logged in - Can't edit original post)
Additional question - Would it be possible to define the login function in the PHP, and include a HTML file that replaces the layout presented by the PHP? Just wondering in case there isn't a solution to my original question. 24.119.228.163 05:35, 15 May 2014 (UTC)

Wikipedia Goecode API

Hello guys i am looking for wikipedia api of geocode based.

Requirement is when i pass latitude and longitude of that API its Return data from Wikipedia .after i want to place that data into google map.

Please help me if any buddy know this kind of API. Looked this http://www.geonames.org/maps/showOnMap?q=mumbai Adhirath123 (talk) 06:11, 15 May 2014 (UTC)

no releases available for package:"pear.php.net/net_snmp"

Hello, when I tried to make mail work on Linux, I did this : pear install Mail pear install net_snmp It showed: no releases available for package:"pear.php.net/net_snmp"

I was confused because I did not met any problems when I did the same thing in another computer A before. Thus, I typed those commands again on A. The errors showed again!!! no releases available for package:"pear.php.net/net_snmp"

Did some one meet the same problem with me? I think I really need your help! Thanks a lot~! Rachel1208 (talk) 06:36, 15 May 2014 (UTC)

Do you really need snmp? It isn't involved with mail. Ciencia Al Poder (talk) 09:45, 15 May 2014 (UTC)
Would mind to tell me how to make the mail work?
Thanks a lot!:) Rachel1208 (talk) 05:52, 19 May 2014 (UTC)
Use pear install Mail and configure $wgSMTP if applicable. Ciencia Al Poder (talk) 09:31, 19 May 2014 (UTC)

[RESOLVED] Any way to output the plain text contents of a Template in http link?

I was wondering if it's possible to produce an http link that will deliver only the string inside of a simple template in plain text.

Example, suppose Template:String contains 'textstring'. http://[wiki site home]/wiki/Template:string produces a wiki page with the 'textstring' in the page contents.

Can I generate a link using that template that will only deliver 'textstring' in plain text as a web page when called, instead of a whole wiki page?

Thank you. 2.139.241.185 (talk) 11:06, 15 May 2014 (UTC)

Yes. Use action=raw as a parameter of the URL. See Manual:Parameters_to_index.php#Raw Ciencia Al Poder (talk) 09:10, 16 May 2014 (UTC)
Many thanks :)
That's what I was looking for. 83.35.32.194 10:36, 25 May 2014 (UTC)

[RESOLVED] No skin after upgrading to 1.22.6

Hi,

My Old mediawiki was on 1.15.1 php 5.3.10 mysql 5.5

The upgrade went fine and php update.php ran successfully to 1.22.6 php 5.3.10 mysql 5.5

However the skin seems to be a problem. No skin absolutely. The pages look bare like simple html pages. Now most pages dont have skin showing up. But when i try to login, only the login page has proper skin with proper sidebar and navigation bars and everything as it should be, but all other pages are without any skin. I have tried setting error_reporting( -1 ); ini_set( 'display_errors', 1 );

But it hasn't given me any clue of where there is a problem 91.179.32.166 (talk) 15:38, 15 May 2014 (UTC)

Hi update.php is not responsible for skin it is only made for database where as the skin in the software and if you upload the skins to the folder skins it should work. 90.219.89.189 17:02, 15 May 2014 (UTC)
Hi,
I do not use any custom themes. Even the monobook theme shipped with mw 1.22.6 is not loading
Arnab 91.179.32.166 17:06, 15 May 2014 (UTC)
Hi!
I am pretty sure that this problem is explained on Manual:Load.php. 88.130.121.160 18:31, 15 May 2014 (UTC)
Hi if you doint have custom theme then there's the problem or do you mean you downloaded a theme that someone else created or your self. Please download the skins folder that includes vector and vector is the fault skin for Mediawiki. 90.219.90.180 19:33, 15 May 2014 (UTC)
I do not think a missing skins/ folder is the thread-starter's problem. In case of missing files you would expect PHP error messages, which he does not speak about getting. Also would MediaWiki then be unable to display pages at all as the page structure comes from the skin. 88.130.121.160 22:18, 15 May 2014 (UTC)
Hi,
It was a problem with load.php only. But in this way
I saw this in the apache error logs --> /w/load.php' not found or unable to stat
While upgrading i was using an alternate directory /w.1.22 instead of /w
So i changed the $wgScriptPath = "/w.1.22" in Localsettings.php file
and then the problem was resolved. 91.179.32.166 09:07, 16 May 2014 (UTC)

[RESOLVED] Template problem

The template here used for providing citations does not seem to display the information for some reason.

http://en.lexipedium.org/wiki/Lexipedium:Sandbox Lieutenant Aleksandr Reznov 19:03, 15 May 2014 (UTC)

You probably need to use {{#tag:ref|{{{name}}}. ''{{{title}}}''. {{{city}}}: {{{publisher}}}, {{{year}}}. {{{page}}}.}} because XML-style tags for extensions often cause problems with parameters, etc. Ciencia Al Poder (talk) 09:21, 16 May 2014 (UTC)
Thanks. That fixed the problem. Lieutenant Aleksandr Reznov 13:41, 16 May 2014 (UTC)

Hi there, I want to setup mediawiki to keep some records about projects which have been implemented by a number of different project developers. I setup a new project record easily enough, and each project record will have 4 items of information: project name, project sponsor and 2 more items of qualitative information. I am setting up a record like this:


[[Category:Projects]]

= Project Name =

= Project Sponsor = 


= Main Expected Results and Activities =


= Key Achievements in the project =


== Lessons Learned in the project==

This way, I can put a link on the sidebar and generate a list of projects in the database easily.

I want to be able to generate two lists so users can find projects (and have this accessible from the sidebar):

1) A project list: An alphabetically sorted list of projects, ideally also showing who the sponsor is next to it (as there could by multiple projects which have similar names). Worse comes to the worse, we can include the project sponsor in brackets in the project title I guess). This I can do already as we can generate a list of all project records which have Category:Projects at the top. 2) An alphabetically sorted list of sponsors (taken from the second field of data in the project record generated). Once you click on a sponsor in the list, that sponsor’s list of projects should all be displayed, alphabetically and as hyperlinks so we can see which sponsors have funded what projects in the database.

Is this possible please? Many thanks in advance! 193.240.11.211 (talk) 10:03, 16 May 2014 (UTC)

Surely not too difficult? 2.31.200.53 12:04, 19 May 2014 (UTC)
This is usually handled by Extension:Semantic MediaWiki Ciencia Al Poder (talk) 09:18, 20 May 2014 (UTC)

confirmaccount code help

hi can I have some help to rewrite some codes of confirmaccount only the ones that have to do with logging in I would like to reqite it so that it now shows loging and then request account. because currently it says login.create account which is now login and create account in mediawiki 1.20 or higher. please help me. the code is at https://git.wikimedia.org/tree/mediawiki%2Fextensions%2FConfirmAccount and here the hook code https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FConfirmAccount/8371f282499d2f715a56ed18b6a9fa0b0e8e3e8b/frontend%2FConfirmAccountUI.hooks.php and the set up https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FConfirmAccount/8371f282499d2f715a56ed18b6a9fa0b0e8e3e8b/frontend%2FConfirmAccountUI.setup.php please help me. I also doint know how to code and my mediawiki is 1.24 wmf 5 90.219.90.180 (talk) 16:03, 16 May 2014 (UTC)

What exactly is unclear and what specific code changes have you tried already? And why do you run an unstable version of MediaWiki if you don't know how to code? AKlapper (WMF) (talk) 10:19, 18 May 2014 (UTC)

[RESOLVED] error with extensions on mediawiki when searching

mediawiki seems to be having problems with the extension pages because I carnt search for them. when I do it comes up with this page does not esists like ̺extensionːwikieditor for example. 90.219.90.180 (talk) 18:09, 16 May 2014 (UTC)

nether mind fixed. 90.219.90.180 18:09, 16 May 2014 (UTC)

hi how can I create my custom login and request account links at the top. I would add the settings to localsetting.php but I woul like to create those links one for loging in and the kther for requsting an account using confirmaccount please help me create my custom account links. 90.219.90.180 (talk) 18:19, 16 May 2014 (UTC)

Hi!
Use a hook, which allows you to modify the links, which appear up there before they are printed on screen. I think the links should be available in the hook PersonalUrls. Using that hook should allow you to modify the URL the links point to. 88.130.97.244 18:59, 16 May 2014 (UTC)
Please could I have some help to do that I have looked on those pages but I doint know what I should set in LocalSettings.php . Please help me because all I need to do is add login link even though it's there I would like to force the link from LocalSettings.php there to make sure it works when I put request account. 90.192.241.223 20:47, 16 May 2014 (UTC)
Start with this code in LocalSettings.php:
$wgHooks['PersonalUrls'][] = 'onPersonalUrls';
function onPersonalUrls( array &$personal_urls, Title $title, SkinTemplate $skin ) {
//Do stuff with $personal_urls
}
In the function check what the array $personal_urls contains. You can then modify the values - including the URL. 88.130.97.244 22:18, 16 May 2014 (UTC)
ok I will try. 94.197.122.92 10:09, 17 May 2014 (UTC)
Note that I had an error in the code at the time you wrote your above answer. I have now fixed it - sorry for the inconveniences. :-( 88.130.97.244 12:17, 17 May 2014 (UTC)
ok so how do I do it. all I need is to add the login and request account because I use extension confirmaccount and it uses the old login links that was in 1.19 but changed in 1.20. 94.197.122.93 13:18, 17 May 2014 (UTC)
because I doint know what to put after what you said. can I please have some help I am trying to copy from inside the core of mediawiki which is include/skintemplate.php and all I need to to have the login in link and request account 94.197.122.93 13:24, 17 May 2014 (UTC)
Heyho! Have you read this?
https://www.mediawiki.org/wiki/Extension:ConfirmAccount#Known_issues
Which mediawiki version you use?
@88.130.97.244: Why add a hook and a function directly in localsettings? :O Florianschmidtwelzow (talk) 13:52, 26 May 2014 (UTC)
Because it's easier than writing it in an own file, where people then say they could not include it, it would not be found and anyway, it would not work at all. When you write in Localettings.php directly, at least this source of problems is eliminated. Apart from that you are right: You can also make this a small extension. :-) 88.130.104.35 14:20, 26 May 2014 (UTC)

[RESOLVED] info on video embeding

I was wondering if anyone knows a video uploader gadget or extension I can use to embed videos onto my wiki page? (can't use youtube hosting) SCVWD14 (talk) 20:13, 16 May 2014 (UTC)

nvm found it SCVWD14 (talk) 20:33, 16 May 2014 (UTC)

Creating a skin based on Monobook Skin

Hi,

I want to create a new skin, based on monobook theme. No changes, but want to give it a new name. In my case I want to call it 'Compiler'.

The things that I tried were 1. create Compiler.php by copying Monobook.php 2. Create compiler/ folder by copying monobok/ 3. replace every instance of Monobook to Compiler in Compiler.php 4. Add skins.compiler and the corresponding entries in Resource loader.

Now when I login, I can select the 'Compiler' skin. And once I save it, all radio buttons or selectable boxes on 'my preferences' page on the wiki become unselectable and I cannot revert back to monobook.

Could anyone tell what is a proper method to create a duplicate skin based on the monobook skin? I have not found much documentation on creating a new skin based on existing themes,

Thanks in advance


Yours Sincerely,

Arnab 91.179.32.166 (talk) 09:57, 17 May 2014 (UTC)

Have you followed Manual:Skinning/Tutorial? Ciencia Al Poder (talk) 09:34, 19 May 2014 (UTC)

upgrade jquery ui

hi please upgrade jquery ui from 1.8.14 to 1.10.4 please. 86.135.251.51 (talk) 12:10, 18 May 2014 (UTC)

Have a look at Git to continue further with this idea! You can request developer access and push the changes you'd like to see yourself. This will increase the likelyhood of these changes becoming part of the software soon dramatically. 88.130.120.254 14:46, 18 May 2014 (UTC)
See https://bugzilla.wikimedia.org/show_bug.cgi?id=47076 and https://bugzilla.wikimedia.org/show_bug.cgi?id=44740 for status and related information, if you would like to help working on this. AKlapper (WMF) (talk) 09:04, 19 May 2014 (UTC)

upgrade wikimedia de website

hi please ugrade http://wikimedia.de/wiki/Spezial:Version this from 1.19 to 1.24 wmf 86.135.251.51 (talk) 12:38, 18 May 2014 (UTC)

and php from php 5.2 to 5.3 please 86.135.251.51 12:40, 18 May 2014 (UTC)
Hi!
It seems like mediawiki.de is not included in the usual Wikimedia clusters and is not part of the upgrade routine. I think it would make sense to check why this is the case. Maybe it would be easiest - in the longterm - to integrate it there so that it benefits from the regular WMF updates. 88.130.120.254 14:44, 18 May 2014 (UTC)
http://wikimedia.de/wiki/Kontakt shows how to contact its maintainers. AKlapper (WMF) (talk) 09:03, 19 May 2014 (UTC)

Personal toolbar help

Hi how can I get the personal toolbar too look like this

Extended content

It would be for my wiki

I like the icons and it would make th personal toolbar cleaner. 86.135.251.51 (talk) 12:52, 18 May 2014 (UTC)

See https://www.mediawiki.org/wiki/Compact_Personal_Bar AKlapper (WMF) (talk) 09:02, 19 May 2014 (UTC)
Hi ok but the tool bar does not looks like compact personal bar 2.223.42.74 14:46, 19 May 2014 (UTC)
Where? AKlapper (WMF) (talk) 15:33, 19 May 2014 (UTC)
At the top to the right where it says user then talk and the pretences and then beta and thenwatchlist and then contribution then log out. It shows icons next to it. 2.223.42.74 15:50, 19 May 2014 (UTC)
On your wiki? If so, you might want to share your exact installation steps that you executed to install the Compact Personal Bar, assuming that you read that link and found the "Code" section. AKlapper (WMF) (talk) 15:56, 19 May 2014 (UTC)
Hi compact personal bar only decrees es what you have on the bar and out some of the links into a drop down box and does not look like the above. 2.223.42.74 15:58, 19 May 2014 (UTC)
Oh I see! Thanks for explaining, and I am very sorry for having pointed you to the wrong resource obviously. Not sure then, as designs change over time. You could contact the Design/Team maybe... AKlapper (WMF) (talk) 16:00, 19 May 2014 (UTC)
Ok thanks. 2.223.42.74 16:08, 19 May 2014 (UTC)

[RESOLVED] Forcing new line in templates

I'm going to standardize some picture galleries at some non-public wiki using pure templates. The legacy wiki picture/thumbnail galleries are specified with a lot of boilerplate code (it renders a gallery of pictures with thumbnails underneath):

    <center>
    <gallery widths="120px" heights="170px" perrow="5">
    Image:Pic1.jpg|<center>1</center>
    Image:Pic2.jpg|<center>2</center>
    Image:Pic3.jpg|<center>3</center>
    Image:Pic4.jpg|<center>4</center>
    Image:Pic5.jpg|<center>5</center>
    Image:Pic6.jpg|<center>6</center>
    Image:Pic7.jpg|<center>7</center>
    </gallery>
    </center>

This is scary. There is an idea of re-implementing the above code with the following template:

    {{Photos
    | Picture1.jpg = 1
    | Picture2.jpg = 2
    | Picture3.jpg = 3
    | Picture4.jpg = 4
    | Picture5.jpg = 5
    | Picture6.jpg = 6
    | Picture7.jpg = 7
    |}}

The template is mostly as follows:

    ... var definitions, etc ...
    <center>
    {{#tag:gallery
    | {{#forargs: | K | V |
    Image:{{#var: K}} {{!}} <center>'' {{#var: V}} ''</center>
    }}
    | widths = {{#var:WIDTHS}}
    | heights = {{#var:HEIGHTS}}
    | perrow = {{#var:PERROW}}
    }}
    </center>

But the problem is that only the first image is rendered, and the whole rest _Picture 2... Picture 7_ is rendered under the first image thumbnail. And I suspect that the reason possibly is a missing new line character so the gallery tag may be rendered like this producing wrong 1-picture gallery:

    <gallery widths="120px" heights="170px" perrow="5">
    Image:Pic1.jpg|<center>1</center>Image:Pic2.jpg|<center>2</center>Image:Pic3.jpg|<center>3</center>...

It's only an assumption, but I guess it may have strong background. So the question is: is there any way of forcing a new line break so the <gallery> tag could be rendered as expected?

Thanks! 194.44.30.6 (talk) 14:39, 18 May 2014 (UTC)

Hi!
Only a guess, but does it work when you add a newline inside the template like so?
...
Image:{{#var: K}} {{!}} <center>'' {{#var: V}} ''</center>
    }}
...
88.130.120.254 15:04, 18 May 2014 (UTC)
Hi. Thanks for the suggestion, I've already tried it too and it failed unfortunately. I also tried HTML entity for the \n char, the br-tag - no effect. I've just checked the rendered elements in the browser DOM inspector: all "images" except the first true one are really rendered into a single thumbnail description in div/class=gallerytext as plain text. Have no idea of workaround. :( L. Sh. 15:26, 18 May 2014 (UTC)

A guy from S.O. resolved the issue including the <nowiki/> tag like this:

{{#tag:gallery
| {{#forargs: | K | V |<nowiki />
Image:{{#var: K}} {{!}} <center>'' {{#var: V}} ''</center>
}}
| widths = {{#var:WIDTHS}}
| heights = {{#var:HEIGHTS}}
| perrow = {{#var:PERROW}}
}}
L. Sh. 20:22, 18 May 2014 (UTC)

Using git for windows

Hi how can I upload a file I updated to territory for reviewing and then uploaded to git. I needs some help I have download ed tortoise for windows and git for windows but I doint know how to upload the file. I am currently trying to upload a file for ConfirmAccount and it is patched. 86.135.251.51 (talk) 16:19, 18 May 2014 (UTC)

I haven't installed git review I doint know how to I installed python and I need some help to upload 2 updated files for review please. 86.135.251.51 18:05, 18 May 2014 (UTC)
Hi!
Nice to see your effort going on! It sounds more complicated than it actually is. ;-)
You do not need to install Gerrit review (that's what it's called) - the Wikimedia guys have installed it at https://gerrit.wikimedia.org and this is the reviewing plattform you can use. And you also do not need to install Python. :-)
Have a look at Developer access and there especially at the section, which explains how Gerrit works. Sign up for developer access to get an account for Gerrit.
This tutorial looks like a very good overview of the steps to take and the settings to set in order to contribute: Gerrit/Tutorial.
In your Git tools on Windows, you can then clone the repository, in which you want to change a file. Do your changes and afterwards commit them and then do a "push", which pushes your changes to Gerrit for review. 88.130.120.254 18:20, 18 May 2014 (UTC)
hi thanks for the reply I will uninstallpython but I have cloned the extension I am going to change how can I upload it to gerrit because I carnt find instruction any where on how to do it or for windows. 86.135.251.51 18:44, 18 May 2014 (UTC)
Additionally to what you already have you need
  • a Gerrit account (also called "developer access")
  • an SSH key
  • log in to Gerrit and save your SSH key (the public part of it) in the Gerrit interface. Basically these steps are explained nicely at Gerrit/Tutorial#Set_Up_SSH_Keys_in_Gerrit.
When you have done your changes in the cloned Git repository, then you have to commit these changes inside your Git repository. After that you have to push this commit to Gerrit. That is the place where you have to authenticate with the passphrase of your SSH key. 88.130.120.254 18:56, 18 May 2014 (UTC)
hi can I have some help for the command so my files are located in c/Users/bbb/Downloads/1.23 extension/ConfirmAccount/frontend/ConfirmAccountUI.hooks.php c/Users/bbb/Downloads/1.23 extension/ConfirmAccount/frontend/ConfirmAccountUI.setup.php please can I have some help for the command to upload those files to here https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/ConfirmAccount please 86.135.251.51 18:58, 18 May 2014 (UTC)
hi I have added the ssh keys to my accounts on gerrit and wikitech. can I have some help to put the following on top of this reply in the command 86.135.251.51 19:25, 18 May 2014 (UTC)
You are on a good way. Now use your Git tool to create a new commit. You can do that with the same tool, which you used to clone the repository. E.g.
git add *
git commit -m "Header of my commit message" -m "Change this and improve that..."
Then you can push this new commit to Gerrit. See Gerrit/Tutorial#Make_and_commit_your_change and the following section for the exact commands. PS: I just note that they use git-review, which you mentioned earlier. If you want to further follow this guide, you might want to install it. 88.130.120.254 20:51, 18 May 2014 (UTC)
hi can I have some help to install git review 86.135.251.51 21:16, 18 May 2014 (UTC)
hi can I have some help to install git review 86.135.251.51 21:16, 18 May 2014 (UTC)
Hi how can I upload the file do you know the instruction I followed the guide but it doesent help and doesent help on windows.. Please help. 2.223.42.74 14:48, 19 May 2014 (UTC)
Information on how to install Git-Review are here: Gerrit/Tutorial#Prepare_to_work_with_gerrit.
I must say that I personally do not use this program, so I cannot say, if it works nicely or not. 88.130.79.137 14:55, 19 May 2014 (UTC)
Ok so if I doint have to use git review how do you upload the file to gerrit. 2.223.42.74 15:19, 19 May 2014 (UTC)
I am myself using the IDE Eclipse and I could tell you, how you can configure Eclipse for Gerrit.
Basically you can push your commit with git (read: without any additional tools). According to Gerrit/Tutorial a command like this should work:
git push ssh://john.doe@gerrit.wikimedia.org:29418/mediawiki/extensions/ConfirmAccount.git HEAD:refs/for/master
where
john.doe is your dveloper access username
http://gerrit.googlecode.com/svn/documentation/2.2.1/user-upload.html has more info on uploading to Gerrit.
Also the section at Gerrit/Tutorial#Push_using_HTTPS might help further.
If all does not help, you can still ask in the IRC channel "#mediawiki" on freenode - there always are some developers arounds, who should be able to help you way faster. :-) 88.130.79.137 17:36, 19 May 2014 (UTC)
Ok thanks 2.223.42.74 14:54, 20 May 2014 (UTC)
How do I add change id because it would require it. 2.223.42.74 15:41, 20 May 2014 (UTC)
It comes up with the error remote rejected head -> refs/for/master error: failed to push some refs to sssh://user@gerrit.wikimedia.org:29418/mediawiki/extensions/ConfirmAccount.git
Please help me I also get an error when using git add the error says fatal: path spec 86.135.251.51 18:22, 20 May 2014 (UTC)
hi I managed to do it all I had to do was download commit-msg and put it into the core of git that would be program32/git/share/git-core/hooks/and then I save it there. I uploaded my code to https://gerrit.wikimedia.org/r/#/c/134624/ 2.223.42.74 15:54, 21 May 2014 (UTC)

this wikimedi site has not been updated

hi this Wikimedia site has not been updated to 1.24 wmf 5 https://wikitech.wikimedia.org/wiki/Special:Version 86.135.251.51 (talk) 18:48, 18 May 2014 (UTC)

This project is wikimedia and you use that site to login into gerrit. 2.223.42.74 14:50, 19 May 2014 (UTC)
Will be done. 88.130.79.137 14:50, 19 May 2014 (UTC)
Operations team is in charge of software deployment on wikitech.wikimedia.org specifically, which means it only gets updated when there's a security bug to fix. I was told. AKlapper (WMF) (talk) 15:33, 19 May 2014 (UTC)

How mediawiki work with multiple servers?

For example assume I have 3 servers. I set up A as database and the other two B C as web servers. Mediawiki were installed on both B and C servers, and both of then connect to the only database.

If I upload image when visiting B server, the C server will have the description page but not able to access image file (due to upload to other server).

In other words, how could I set Mediawiki so that all servers could upload and modify image on same single location? Deletedaccount4567435 (talk) 02:00, 19 May 2014 (UTC)

Unless you have an extremely popular and heavily visited wiki, a setup like that won't be necessary. Most wikis probably won't need a multi server setup, at least with a server host that gives plenty of resources. Some people with large websites use multiple VM servers for different server programs (database, web) since they can be scaled up independently. Lieutenant Aleksandr Reznov 02:51, 19 May 2014 (UTC)

Error message after installing Check User

I got this message when accessing Special:Check User

[5f59b6e5] 2014-05-19 02:00:43: Fatal exception of type MWException
Lieutenant Aleksandr Reznov 02:07, 19 May 2014 (UTC)
Hi did you install chrckisers for your correct Mediawiki version and did you use the update.php script ether trhough ssh or using the web bashed. Because it will create the tables check user needs 86.135.251.51 06:28, 19 May 2014 (UTC)
See http://www.mediawiki.org/wiki/Manual:How_to_debug for how to get the actual stacktrace instead of just the one generic output line. AKlapper (WMF) (talk) 09:07, 19 May 2014 (UTC)

Delete Translations

Hello,

I'm getting my wiki ready for translations and I have a few questions.

  1. 1: After some trouble, I finally got the Language Bundle installed (there appears to be an issue with the semantic forms which was preventing me from updating the database through the /mw-confg) Everything is working fine for the most part and I'm slowly learning how to do things.

The wiki is for a game, there won't be much difference between the pages, so I figured having the translations all on 1 wiki would be fine. But I question if it would be easier for others to have the family wiki option? (for example, es.wiki.net). I haven't read many opinions on which is better and I'd like to hear more.

  1. 2: I was testing some things and I put in some "British English" translations to see if the <language/> header would appear, and it did. Problem is, I can't figure out how to delete these translations now that I'm done with them. 2602:306:242D:AC49:B80F:E961:1004:D919 (talk) 03:02, 19 May 2014 (UTC)

Can not be accessed by other clients

Linux, mediawiki-1.21.2-1

Hello, I was in trouble for several days.. My server has a static IP adress provided by my company. I can access the wiki on the server by "localhost" or "127.0.0.1" However, when I input IP on other clients, it showed errors as: The requested URL could not be retrieved. Then, I try to ping the IP, and it showed success... I was really really confused, could someone who has met the same problem help me? Thanks a lot! Rachel1208 (talk) 06:01, 19 May 2014 (UTC)

update:
error message is: connection to **.**.*.* failed
the system returned:
(111)connection refused Rachel1208 (talk) 06:43, 19 May 2014 (UTC)
Hi!
In these cases, usually $wgServer is set incorrectly. 88.130.120.254 08:50, 19 May 2014 (UTC)

mediawiki 1.15 compatibility

Hello, mediawiki version 1.15.X is compatibile with redhat 5.5? Thanks 85.18.50.100 (talk) 08:01, 19 May 2014 (UTC)

Hi!
MediaWiki does not depend on a distribution, but on other software:
  • It needs PHP, version 5.2 or newer should do, and
  • a database management system (most likely MySQL, version 5.1 or newer)
If that software is included in the distribution, MediaWiki can work with that.
Note however that MediaWiki 1.15 is an old version. It has known security holes. You should consider upgrading MediaWiki to version 1.19, which works with PHP 5.2 or newer and has long term support, or to MediaWiki 1.22, which needs at least PHP 5.3 and is the newest version. 88.130.120.254 08:48, 19 May 2014 (UTC)

Syntax Highlighting GeSHi

Hello!

I've installed MediaWiki 1.22.6 on my Raspberry Pi (it has PHP 5.4 and mysql 5.5). Everything works perfect except the GeSHi Syntax Highlighting! He just does not highlight anything, ignores the tags source or syntaxhighlight and treads them like normal text.

This Extension must be bundled with this MediaWiki Version or? So I don't have to put anything in my LocalSettings.php?

Under Special:Version I can't see the Extension (because its bundled?) If I put a line like require_once... in my LocalSettings.php I can see the Extension under

Is it possible that there is a Failure because I tryed to install the Extension on my Media Wiki 1.20.5 before? Then I deleted the folder, updated to 1.22.6 but now... nothing...

How can I get my Syntax Highlighting to work?

Greetings - alloisxp 85.180.41.174 (talk) 12:02, 19 May 2014 (UTC)

Hi!
> This Extension must be bundled with this MediaWiki Version or? So I don't have to put anything in my LocalSettings.php?
The extension is bundled with MediaWiki, but you must enable it manually anyway. See Extension:SyntaxHighlight GeSHi for the details! 88.130.79.137 12:54, 19 May 2014 (UTC)
80.153.28.53 14:33, 19 May 2014 (UTC)

[RESOLVED] Fatal exception of type MWException

MediaWiki 1.22.4 PHP 5.3.10-1ubuntu3.11 (apache2handler) MySQL 5.5.35-0ubuntu0.12.04.2

Extension: ConfirmAccount

Hello everybody, i hope someone can help me.

when i try to apply for an new Account i get the Errormessage:

Fatal exception of type MWException

and this:

Notice: Uncommitted DB writes (transaction from DatabaseBase::begin). in /etc/mediawiki/includes/db/Database.php on line 3944

I want to solve this as soon as possible, because i launched in a week ago to a few coworkers, who want to register..

Greetz Julian 80.153.28.53 (talk) 12:56, 19 May 2014 (UTC)

Hi!
The uncommitted DB writes are a known problem of MediaWiki - it is independant of the fatal error.
See Manual:How_to_debug and add this to LocalSettings.php in order to see the actual error message:
error_reporting( -1 );
ini_set( 'display_errors', 1 );
$wgShowExceptionDetails = true; 88.130.79.137 12:58, 19 May 2014 (UTC)
[c0173305] /salveawiki/index.php/Spezial:Benutzerkonto_beantragen Exception from line 303 of /etc/mediawiki/includes/UserMailer.php: PEAR mail package is not installed
Backtrace:
  1. 0 /etc/mediawiki/includes/User.php(3840): UserMailer::send(MailAddress, MailAddress, string, string, NULL)
  2. 1 /etc/mediawiki/extensions/ConfirmAccount/backend/ConfirmAccount.class.php(121): User->sendMail(string, string)
  3. 2 /etc/mediawiki/extensions/ConfirmAccount/business/AccountRequestSubmission.php(245): ConfirmAccount::sendConfirmationMail(User, string, string, string)
  4. 3 /etc/mediawiki/extensions/ConfirmAccount/frontend/specialpages/actions/RequestAccount_body.php(315): AccountRequestSubmission->submit(RequestContext)
  5. 4 /etc/mediawiki/extensions/ConfirmAccount/frontend/specialpages/actions/RequestAccount_body.php(80): RequestAccountPage->doSubmit()
  6. 5 /etc/mediawiki/includes/SpecialPage.php(631): RequestAccountPage->execute(NULL)
  7. 6 /etc/mediawiki/includes/SpecialPageFactory.php(488): SpecialPage->run(NULL)
  8. 7 /etc/mediawiki/includes/Wiki.php(298): SpecialPageFactory::executePath(Title, RequestContext)
  9. 8 /etc/mediawiki/includes/Wiki.php(602): MediaWiki->performRequest()
  10. 9 /etc/mediawiki/includes/Wiki.php(467): MediaWiki->main()
  11. 10 /etc/mediawiki/index.php(50): MediaWiki->run()
  12. 11 {main} 80.153.28.53 14:48, 19 May 2014 (UTC)
Obviously the problem is that the PEAR mail package is not installed. Logically you should be able to solve that by installing that package. 88.130.79.137 14:52, 19 May 2014 (UTC)
Hello,
I have the same kind of error but the error message refers to another problem.
I've tried to replace the skin.php script with the one saved from my previous version but it only triggers other errors... Could someone please help ? Thanks in advance !!
[395a03a7] /Accueil Exception from line 1619 of /homez.742/sestrea/www/mediawiki/includes/Skin.php: Call to undefined method SkinMonoBook::makeLink
Backtrace:
  1. 0 /homez.742/sestrea/www/mediawiki/extensions/DynamicArticleList.php(87): Skin->__call(string, array)
  2. 1 /homez.742/sestrea/www/mediawiki/extensions/DynamicArticleList.php(87): SkinMonoBook->makeLink(string, string)
  3. 2 [internal function]: DynamicArticleList(string, array, Parser, PPFrame_DOM)
  4. 3 /homez.742/sestrea/www/mediawiki/includes/parser/Parser.php(4020): call_user_func_array(string, array)
  5. 4 /homez.742/sestrea/www/mediawiki/includes/parser/Preprocessor_DOM.php(1181): Parser->extensionSubstitution(array, PPFrame_DOM)
  6. 5 /homez.742/sestrea/www/mediawiki/includes/parser/Parser.php(3149): PPFrame_DOM->expand(PPNode_DOM, integer)
  7. 6 /homez.742/sestrea/www/mediawiki/includes/parser/Parser.php(1212): Parser->replaceVariables(string)
  8. 7 /homez.742/sestrea/www/mediawiki/includes/parser/Parser.php(395): Parser->internalParse(string)
  9. 8 /homez.742/sestrea/www/mediawiki/includes/content/WikitextContent.php(300): Parser->parse(string, Title, ParserOptions, boolean, boolean, integer)
  10. 9 /homez.742/sestrea/www/mediawiki/includes/WikiPage.php(3552): WikitextContent->getParserOutput(Title, integer, ParserOptions)
  11. 10 /homez.742/sestrea/www/mediawiki/includes/PoolCounter.php(222): PoolWorkArticleView->doWork()
  12. 11 /homez.742/sestrea/www/mediawiki/includes/Article.php(708): PoolCounterWork->execute()
  13. 12 /homez.742/sestrea/www/mediawiki/includes/actions/ViewAction.php(44): Article->view()
  14. 13 /homez.742/sestrea/www/mediawiki/includes/Wiki.php(448): ViewAction->show()
  15. 14 /homez.742/sestrea/www/mediawiki/includes/Wiki.php(312): MediaWiki->performAction(Article, Title)
  16. 15 /homez.742/sestrea/www/mediawiki/includes/Wiki.php(602): MediaWiki->performRequest()
  17. 16 /homez.742/sestrea/www/mediawiki/includes/Wiki.php(467): MediaWiki->main()
  18. 17 /homez.742/sestrea/www/mediawiki/index.php(49): MediaWiki->run()
  19. 18 {main}
<<<<<<<<<<<<<<<<<< 80.11.96.120 15:28, 26 May 2014 (UTC)
Why would you expect a file from a previous version work with a newer one? Ciencia Al Poder (talk) 09:34, 27 May 2014 (UTC)
The error message shown in my previous post is the one prior to the test where I've tried the monobook skin replacement. I thought that upward compatibility was supported (since it is frequent that old versions of files are read with new versions of soft).
If you have an idea to solve this problem I would really appreciate your help since I really need to upgrade mediawiki to use some extensions not compatible with my current version. 37.114.69.77 17:50, 27 May 2014 (UTC)
You should follow the steps described in Manual:Upgrading (both for MediaWiki core and extensions), and don't leave old MediaWiki files on the new installation except LocalSettings.php, because they're incompatible. They're not "text" or "data" files, but code that runs MediaWiki!, there's no possible compatibility Ciencia Al Poder (talk) 09:22, 28 May 2014 (UTC)
This isn't an exception from ConfirmAccount. You have installed DynamicArticleList, which tries to call makeLink() in on SkinMonobook (an extended class of SkinTemplate), which doesn't exist. makeLink() is a function of BaseTemplate. Florianschmidtwelzow (talk) 05:44, 28 May 2014 (UTC)
Thank you Florian. I've upgraded the DynamicList extension and everything works just fine. 80.11.96.120 09:57, 28 May 2014 (UTC)

Error Since Changed Skin

I changed the skin from vector to cologneblue but since then I am getting the following error. I tried switching back to vector skin and other skins as well but still this error is appearing. Please let me know how to fix it.

Warning: Cannot modify header information - headers already sent by (output started at /home/careeing/public_html/view/LocalSettings.php:1) in /home/careeing/public_html/view/includes/WebResponse.php on line 38 123.239.218.148 (talk) 06:43, 20 May 2014 (UTC)

Hey :) Check your LocalSettings.php in root of folder ./view. Look in line one, there is maybe a whitespace or something else that output anything. Delete the whitespace and save the file.
Kind regards
Florian Florianschmidtwelzow (talk) 07:20, 20 May 2014 (UTC)
See Manual:LocalSettings.php! 88.130.79.137 08:27, 20 May 2014 (UTC)

HELP!Failed to send email:ssl://smtp.gmail.com:465 [SMTP: Failed to connect socket: Connection timed out (code: -1, response: )]

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.


Firstly, I write this in Localsettings:
//2014-5-20 ---smtp,email
$wgSMTP = array(
'host' => 'ssl://smtp.gmail.com',
'IDHost' => 'gmail.com',
'port' => 465,
'username' => 'myaddressg@gmail.com',
'password' => 'mypsw',
'auth' => true
);
And then I do this :
install pear mail
install pear net_smtp
Unfortunately, the wiki shows that error message as:
Failed to connect to ssl://smtp.gmail.com:465 [SMTP: Failed to connect socket: Connection timed out (code: -1, response: )]
I do this later according to some advice from others:
sudo pear install Auth_SASL2-0.1.0
sudo pear install mail_mime
sudo apt-get install postfix
The error message never disappear.
I try the whole process in two new server, and the mail function never work successfully.
Can anyone help me ?
Thank you a million !!! Rachel1208 (talk) 09:24, 20 May 2014 (UTC)
UPDATE:
I write this instead of configuration of gmail:
$wgSMTP = array(
'host' => 'ssl://smtp.163.com',
'IDHost' => '163.com',
'port' => 25,
'username' => 'myaddress@163.com',
'password' => 'mypsw',
'auth' => true
);
The error message is :
Failed to connect to ssl://smtp.163.com:25 [SMTP: Failed to connect socket: Connection refused (code: -1, response: )]
I really do not know what should I do....help....help...help... Rachel1208 (talk) 09:45, 20 May 2014 (UTC)
The lonely me update lonelyRachel1208 (talk)
gege@gege-ThinkCentre-M58p:~/mediawiki-1.22.4-0$ telnet smtp.gmail.com 465
Trying 173.194.79.108...
^C
gege@gege-ThinkCentre-M58p:~/mediawiki-1.22.4-0$ telnet smtp.gmail.com 465
Trying 74.125.25.109...
Trying 74.125.25.108...
Trying 2607:f8b0:400e:c01::6d...
telnet: Unable to connect to remote host: Network is unreachable
Regards~ Rachel1208 (talk) 05:20, 21 May 2014 (UTC)
Hi, I think I find the problem,but have no idea to solve it:
When I use the network of mine, everthing becomes ok.
When I use the network of the company, the error message shows as I metioned above.
When I use the Intranet of the company, it shows:
telnet: could not resolve smtp.gmail.com/465: Name or service not known.
The email function is very important for my company's wiki, and the wiki must use Intranet to make the website safe.
Hope my views do not confuse you.
Could you please give me some advice to solve the problem?
Thanks a lot! Rachel1208 (talk) 06:12, 21 May 2014 (UTC)
"smtp.gmail.com/465" is not a valid domain name. When using telnet to connect you need to specify telnet smtp.gmail.com 465 and not telnet smtp.gmail.com/465
If it works for home but not in your company network, the problem is a firewall that's blocking access to smtp.gmail.com on port 465 (or just any connection to port 465). Contact your network administrator. Ciencia Al Poder (talk) 09:28, 21 May 2014 (UTC)
Thank you for your reply firstly!
And in fact, I write telnet smtp.gmail.com 465 but the result shows telnet: could not resolve smtp.gmail.com/465: Name or service not known.
And what should the administrator does?
Close the firewall?
Thank you again! :) Rachel1208 (talk) 09:49, 21 May 2014 (UTC)
try first doing a ping to smtp.gmail.com. If your host can't resolve that domain name, you have a DNS problem.
About what the administrator should do, that's not really important for you if you can't fix it yourself. Simply tell him your problem: from your host you can't contact smtp.gmail.com at port 465, and the administrator would know what to do (usually, open that port in the firewall for outgoing connections). Ciencia Al Poder (talk) 21:01, 21 May 2014 (UTC)
Hi , thank you for your kind reply.
And yes, it failed because of the firewall.
Unfortunately, the service at 465 cam not be opened for some reason.
And I wonder know, whether the wiki can use SSMTP instead of SMTP?
Then what should I do?
Just install ssmtp and change the related content in "localsettings,php" such as:
$wgSSMTP = array(
'host' => 'ssl://ssmtp.gmail.com',
'IDHost' => 'mycompany.com',
'port' => 25,
'username' => 'myaddressg@mycompany.com',
'password' => 'mypsw',
'auth' => true
);
??
I am looking forward to your reply! Thank you again and again~ Rachel1208 (talk) 03:44, 26 May 2014 (UTC)
With the ssl:// protocol on the host, you're already saying you're using SSL to send to SMTP instead of plain text, so it should work fine.
You should try to connect to that port from any utility software to check if the port is open, like a simple telnet smtp.gmail.com 465 Ciencia Al Poder (talk) 09:29, 26 May 2014 (UTC)
<?php
include "emails/PHPMailer/PHPMailerAutoload.php";
//Create a new PHPMailer instance
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->SMTPDebug = 1;
$mail->SMTPAuth = true;
$mail->SMTPSecure = 'ssl';
$mail->Host = "smtp.gmail.com";
$mail->Port = 465;
$mail->IsHTML(true);
//Username to use for SMTP authentication
$mail->Username = "@gmail.com";
$mail->Password = "";
//Set who the message is to be sent from
$mail->setFrom('mzubim@gmail.com', 'Zubair Mushtaq');
//Set an alternative reply-to address
$mail->addReplyTo('replyto@gmail.com', 'Secure Developer');
//Set who the message is to be sent to
$mail->addAddress('abulogics@gmail.com', 'Abulogicss');
//Set the subject line
$mail->Subject = 'PHPMailer SMTP test';
//Read an HTML message body from an external file, convert referenced images to embedded,
//convert HTML into a basic plain-text alternative body
$mail->msgHTML("convert HTML into a basic plain-text alternative body");
//Replace the plain text body with one created manually
$mail->AltBody = 'This is a plain-text message body';
//send the message, check for errors
if (!$mail->send()) {
echo "Mailer Error: " . $mail->ErrorInfo;
} else {
echo "Message sent!";
} 103.51.217.60 (talk) 08:40, 9 February 2019 (UTC)
hi i m recieving the same problem even turning off the firewall
Failed to connect to ssl://smtp.gmail.com:465 [SMTP: Failed to connect socket: fsockopen(): unable to connect to ssl://smtp.gmail.com:465 (Unknown error) (code: -1, response: )] 14.98.194.86 (talk) 14:51, 30 June 2016 (UTC)
if somebody can help it will be great 14.98.194.86 (talk) 14:52, 30 June 2016 (UTC)
Please check with netcat or telnet if you have connectivity through that port, to be sure there's no other firewall between your server and gmail blocking the connection. It may be your ISP. Ciencia Al Poder (talk) 02:52, 1 July 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

delete pages

Hello,

I would like to install mediawiki on my CentOS 6.5. It seems that the current version is the 1.22.6 on that page >> http://www.mediawiki.org/wiki/Download

So :

  • I installed on my server httpd, php, php-mysql, php-gd, mysql-server, mysql.
  • I started my services
  • I downloaded the package mediawiki-1.22.6
  • I unzipped it in /var/www/http/mediawiki-1.22.6
  • Going to the URL http://my_ip_server/mediawiki-1.22.6

It works, i have the first page telling me that "LocalSettings.php not found. Please set up the wiki first."

BUT when an going on the link "set up the wiki" i have a blank page.


I saw on some forum (like here : http://www.mediawiki.org/wiki/Manual:How_to_debug) that i need to write something in the "LocalSettings.php" file. But if 'm right, it's the link which launch the procedure to create my "LocalSettings.php"file.

So does sombody can help me, how to know where is the mistake ? (sorry for my english, it's not my mother tongue) 213.215.44.126 (talk) 13:48, 20 May 2014 (UTC)

Hi Nicolas!
You have hit some kind of chicken-egg-problem there. ;-) This kind of problem often is caused by missing (= deactivated) PHP extensions. Since you do not yet have a LocalSettings.php file, try setting this in php.ini:
error_reporting = E_ALL | E_STRICT
display_errors = On
Then restart the server and click the link again. You should then see an error message, with which you can feed Google, on screen.
The error might also be logged in the PHP error log. 88.130.111.94 15:10, 20 May 2014 (UTC)

[SOLVED] Page content missing after moving a wiki from Linux to Windows

Hi,

I've followed the instructions on moving a wiki and have successfully transferred the database and all the files. Everything is up and running, however I get the strangest behavior: pages are loaded without any content! However if I click on "view history" I see all the edits and if I click on "Edit" I see all the wiki text.

Any help would be greatly appreciated.

Some technical info:

Mediawiki version 1.19.2

Old OS:        Ubuntu Linux 10.04 (LTS)
Old Webserver: Apache 2.0
Old DB:        MySQL 5.1.41
Old PHP:       5.3.2

New OS:        Windows Server 2008 R2
New Webserver: IIS 7.5
New DB:        MySQL 5.6.17
New PHP:       5.5.12 

What I have tried:

  1. Disabled short URLs in localsettings
  2. Updated the module_deps table

This server is behind a firewall so I cannot share it's URL. Ironswalt (talk) 14:02, 20 May 2014 (UTC)

See Manual:Errors and symptoms#All pages have no content, but when editing a page the wiki text is there.
Note that on recent versions of MediaWiki this issue has been resolved, so you need to upgrade. Ciencia Al Poder (talk) 09:18, 21 May 2014 (UTC)
Thanks for the quick reply! I'll upgrade first, then check. Ironswalt (talk) 09:26, 21 May 2014 (UTC)
According to the release notes of MediaWiki 1.23 this has been fixed in 1.23:
  • (bug 58640) Fixed a compatibility issue with PCRE 8.34 that caused pages
to appear blank or with missing text. 88.130.104.35 14:13, 26 May 2014 (UTC)
It has been backported to 1.22, 1.21 and 1.19 as well. Ciencia Al Poder (talk) 20:05, 26 May 2014 (UTC)
Makes sense. Confusingly the release notes still list it as a new bugfix for 1.23. 88.130.104.35 20:11, 26 May 2014 (UTC)
Hi,
Just to inform you that my move has succeeded. First I upgraded, then I moved. It worked perfectly! (after fixing the permissions on the cache directory as per this post)
Thanks again for the help! Ironswalt (talk) 13:03, 13 June 2014 (UTC)

The specified module could not be found. (Windows)

Upgrading from MediaWiki: 1.11.2, PHP 5.2.0, MySQL 4.1.14 to 1.22.6, 5.3.28, 5.0.96 After a lot of flailing, I got PHP happy, MySQL upgraded the database and seemed happy, and the maintenance/update.php script ran, and seemed happy. However, all I see when testing the Wiki is: The specified module could not be found. That's it - nothing else. I can't find anything helpful in any logs. Is there any way to tell where this message originates, and which module it's missing? 96.48.153.194 (talk) 07:01, 21 May 2014 (UTC)

Try this: http://www.somacon.com/p541.php Ciencia Al Poder (talk) 09:30, 21 May 2014 (UTC)

Export to an other platform

Hi together,

is it possible to export the mediawiki to an other platform, e.g. an intranet site with typo3??

Thans for input!

Greatings, Martin. 212.122.61.185 (talk) 07:48, 21 May 2014 (UTC)

Hi Martin,
I have quickly googled to see if there is a script and I did not find one, which offers it could do that.
However, from a logical point of view, it is surely possible: MediaWiki uses pages and so does TYPO3. Theoretically you can use the page names from the pages table to have according pages inside TYPO3.
TYPO3 uses content elements on the pages - you could take the text of the newest revision of a page and put this text into one content element, which you store on the page (identified by its uid). However, you will have to modify the content when you do so: TYPO3 does not support wiki syntax; the Rich Text Editor saves HTML in the content elements. Another aspect would be links, e.g. to files. You would have to upload these files in TYPO3 and create according links in the content elements. TYPO3 has a file abstraction layer and I think it might have an API, but I don't know for sure.
Something else would be the page structure: While the pages in MediaWiki are not structured hierarchically in some way, TYPO3 uses a page tree, that means the pages are organized in a tree structure. Maybe you can in theory create such a structure, if you use categorization in MediaWiki and then use the information on categories and subcategories to create such a tree. However, I do not know of a script, which could do that automatically out of the box.
As for the users: TYPO3 uses the concept of users as well, so you can create new accounts based on the users you have in the user table of MediaWiki. Also does TYPO3 use user groups to give users special rights. This system is way more complex in TYPO3 than it is in MediaWiki, so it will be possible to translate your MediaWiki user groups into TYPO3 user groups without loosing information. However, if the number of users, who are in special groups, is rather big, I think it would be easier to write a script, which automatically adds the users to the according groups in TYPO3 instead of adding them all by hand.
These are the things that spontaneously came to my mind. There might still be other relevant issues, but I guess these are some of the main points at least. Depending on the size of the wiki, this will be more or less work. However, since you explicitly asked for TYPO3 I think you already know of the advantages, which TYPO3 offers over MediaWiki, so you have to weigh, if these advantages are worth the work in your case. 88.130.111.94 10:00, 21 May 2014 (UTC)

Specifying source language for a translatable page

This post by Revibot was moved on 2015-07-11. You can find it at Extension talk:Translate/Archive 2/2014#h-Specifying_source_language_for_a_translatable_page-2014-05-20T18:28:00.000Z. Ciencia Al Poder (talk) 09:24, 21 May 2014 (UTC)

Enterprise Crawl failing for our site based on Mediawiki in Sharepoint 2013

Enterprise Crawl failing for our site based on Mediwiki in Sharepoint 2013. The entire Enterprise crawl in Sharepoint 2013 took around 10 days to complete with around millions of failures. We need a point of contact who could help us understand these failures with Sharepoint 2013.

The same crawl was successful in Sharepoint 2010. Frajos100 (talk) 13:24, 21 May 2014 (UTC)

By Sharepoint do you mean "Mictosoft Sharepoint"? In that case, I don't understand what has to do MediaWiki with Sharepoint, since they're not related in any way. Ciencia Al Poder (talk) 09:16, 22 May 2014 (UTC)
When I read the post, I thought he would use MS Sharepoint to search a wiki, which is run by MediaWiki. My first thought was: If the new version of Sharepoint cannot do that while the old version could, then it's a Sharepoint problem. Am I wrong? 88.130.76.191 18:59, 22 May 2014 (UTC)
Just for the records, as this thread is in the top list when searching for "SharePoint 2013 crawling MediaWiki"...
In SharePoint 2010 one needed to enable the "match case" option:
http://blogs.msdn.com/b/enterprisesearch/archive/2010/07/09/crawling-case-sensitive-repositories-using-sharepoint-server-2010.aspx
This option is missing in SharePoint 2013. I'm currently also trying to crawl MediaWiki from SP 2013 without any success. I'm wondering if someone was able to crawl MW from SP 2013? Would be good to share experience here... Planetenxin (talk) 14:17, 3 August 2015 (UTC)

Tabber does not work

I'm trying to use Extension:Tabber, it does not work for me. please help Thanks. what I have:

MediaWiki 	1.19.0
PHP 	5.3.3 (apache2handler)
MySQL 	5.1.52
Tabber (Version 1.2)  <== Extension:Tabber installed

code:

<tabber>
a=a
|-|
b=b
</tabber>

it shows:

a

b
69.195.35.1 (talk) 02:35, 22 May 2014 (UTC)
If your wiki is public, could you share a link to the page where the problem exists?
If not, a screenshot of the problem would also help.
It may be a problem with JS or CSS, maybe some incorrect path somewhere. Open the error console of your browser to see if there's any JavaScript error. Ciencia Al Poder (talk) 09:27, 22 May 2014 (UTC)
Hi Ciencia, Thank you for you reply.
The wiki is not public, not accessible outside.
It should be very simple, but I must miss something.
I don't know how to attach the screenshots here. but here is what looks like:
Source Code mode:
<tabber>
a=a
|-|
b=b
</tabber>
after click save: (no tabs, only 2 letters)
Test
--
a
b
on Error Console, only 1 Error, i don't know if related.
Timestamp: 5/22/2014 7:17:49 AM
Error: TelemetryStopwatch: key "FX_SESSION_RESTORE_COLLECT_DATA_MS" was already initialized
Source File: resource://gre/modules/TelemetryStopwatch.jsm
Line: 53
On the Wiki Server:
$ ls -1
Tabber.css
Tabber.js
Tabber.php
$ pwd
/opt/wiki/test/extensions/Tabber
$ cd /opt/wiki/test/
$ grep Tabber LocalSettings.php
require_once( "/opt/wiki/test/extensions/Tabber/Tabber.php" );
I hope you can make sense out of this.
Thanks again. 69.195.35.1 11:26, 22 May 2014 (UTC)
It works for me in 1.22.7
The location of your extension looks odd. Is it inside the extensions directory of your MediaWiki installation? Are you sure that /opt/wiki/test is the published directory on the webserver and not a symbolic link to it? It may cause problems.
One usually puts this in LocalSettings.php:
require_once( "$IP/extensions/Tabber/Tabber.php" ); Ciencia Al Poder (talk) 15:38, 1 June 2014 (UTC)
Thank you for the reply.
changed to:
require_once( "$IP/extensions/Tabber/Tabber.php" );
/opt/wiki/test is directory, not link.
upgraded 1.22.7
MediaWiki 1.22.7
PHP 5.3.3 (apache2handler)
MySQL 5.1.52
Tabber (Version 1.2)
still not working...must be something simple I missed. 69.195.35.1 16:04, 20 June 2014 (UTC)
Have you tried appending debug=true to the URL parameters? Like, for example, edit the page, and change action=edit by debug=true in the URL Ciencia Al Poder (talk) 16:53, 20 June 2014 (UTC)
Tried: .../index.php?title=Test&debug=true And nothing reported on the screen except taking longer. 69.195.35.1 17:41, 20 June 2014 (UTC)
Can I ask what extensions and version, also php version you have?
Thanks. 69.195.35.1 15:58, 24 June 2014 (UTC)
  • MediaWiki 1.22.7
  • PHP 5.3.17 (apache2handler)
Extensions (downloaded by Extension Distributor for 1.22 release):
Thank you so much for your help.
I gave up on TABBER.
I'm trying alternative and it's working for me.
extension: Header Tabs (Version 0.10.0)
Thanks again. 69.195.35.1 19:39, 26 June 2014 (UTC)

MediaWiki Security Settings

I have an opportunity for a job that might allow me the option of developing an Enterprise knowledge base using MediaWiki. We did a very small proof-of-concept a few years ago, but I have not been able to use MediaWiki since then. I work in state government, and for an Enterprise knowledge base based on MediaWiki to fly in my organization, there would need to be the ability to lock pages down so that certain information could be viewed only by specific individuals. For example, maybe highly technical IT information would be visible to only IT employees. It would also be handy if the information on a page could be locked down so that it could only be edited by authorized individuals. Ideally, the security would be handled by Active Directory groups.

Is this something that can be done with MediaWiki?

Thanks for any help that you can offer!

--Tom 161.7.84.3 (talk) 14:38, 22 May 2014 (UTC)

Hi Tom,
MediaWiki was not written to handle situations where particular pages should be visible only for a particular group of users. While you can fiddle around to somewhat achieve this, there are many ways to circumvent such restrictions. The only thing you can trust is about prevent editing from users not in a particular group, but prevent viewing content is not well supported.
You can find how it works in Manual:Preventing access Ciencia Al Poder (talk) 09:26, 23 May 2014 (UTC)

"No such Special Page" - Add User from "Add User" special page & "Creating Page DoPOST" - Add User from Special:UserAdmin

5/22/14

I am no longer able to add new users to my MediaWiki site. If I select Special Pages --> Add User --> Input New user information and select Add User, I WAS receiving a "Error in form submission" error message. I then performed the SpecialUADMBase.class.php ?/& fix and NOW I am received the "No special Page" error message when attempting to submit the new user information.

I am also not able to add a new user from the Special:UserAdmin page. I select "User Administration" from the main special page and then select "Add User". Mediawiki then tries to create a new page called "DoPOST", which of course does not exist. I found the DoPOST() function located in the SpecialAddUser.class.php file, but I cannot find anything that would be causing this behaviour.

I am unable to add users via either method, 1) Add user from main special page or 2) Add user from UserAdmin page.

PLEASE HELP!


Version: MediaWiki 1.20.2 PHP 5.3.10-1ubuntu3.11 (apache2handler) MySQL 5.5.31-0ubuntu0.12.04.1

Installed Extensions: Semantic Forms (Version 2.7) Semantic MediaWiki (Version 1.9.1.1) User Administration (Version 0.5.0) Parser hooks iDisplay (Version 1.9) ParserFunctions (Version 1.4.1) SubPageList (Version 1.1) DataValues (Version 0.1.1) DataValues Geo (Version 0.1.2) DataValues Time (Version 0.5.1) DataValues Validators (Version 0.1.1) DataValuesCommon (Version 0.2.2) DataValuesInterfaces (Version 0.1.3) Extension Installer (Version 0.2.2) NewArticleTemplate (Version 1.1-1.11.0) ParserHooks (Version 1.2.1) Validator (Version 1.0.0.1) WikiEditor (Version 0.3.1) 12.157.82.212 (talk) 17:18, 22 May 2014 (UTC)

Just to clarify, I have already fixed the ?/& issue with the SpecialUADMBase.class.php file in /extensions/UserAdmin folder. I only started getting the "No such special page" error AFTER I made this change.
The getURL function in my SpecialUADMBase.class.php file is:
function getURL($params)
{
$retvURL = $this->mURL;
$nonDefaultParams = $this->getNonDefaultParams($params);
if (count($nonDefaultParams) > 0)
$retvURL .= '&' . http_build_query($nonDefaultParams);
return $retvURL;
} 12.157.82.212 19:19, 22 May 2014 (UTC)
Does anyone have any ideas? My Wiki is public so I cannot show directly. Please let me know if there is ANYTHING I can provide to assist in resolving this issue. Thank You. 70.15.120.155 22:52, 22 May 2014 (UTC)
When did the problem start, and what was changed/done before? What is "the ?/& issue" (references, please)? AKlapper (WMF) (talk) 03:01, 23 May 2014 (UTC)
I think we talk about https://www.mediawiki.org/wiki/Extension:UserAdmin ?
Then the "the ?/& issue" seems to be this one: https://www.mediawiki.org/wiki/Extension_talk:UserAdmin#No_such_special_page_26033
If you see the "No special page" error, what is the URL of the site? Florianschmidtwelzow (talk) 05:26, 23 May 2014 (UTC)
http://www.mediawiki.org/wiki/Extension%20talk%3AUserAdmin#c-Btechnix-2013-08-06T21%3A58%3A00.000Z-130.15.92.149-2013-05-02T15%3A55%3A00.000Z is the page that has the "? to &" fix for this issue.
The only thing that has changed was adding some custom .php pages in the mediawiki root folder.
The URL of the site is http://psckb/index.php, but is NOT public.
When attempting to create the new user the "No such special page" error is given and the URL in the address bar is:
http://psckb/index.php/Special:AddUser&email=Guest%40nowhere.com&realname=Guest&statusmsg=RXJyb3IgaW4gZm9ybSBzdWJtaXNzaW9uLg%3D%3D&statusok=0&username=Guest 12.157.82.212 14:39, 23 May 2014 (UTC)
When I attempt to create a new user, I get "No Such Special Page" with a URL of:
http://psckb/index.php/Special:AddUser&email=Guest%40nowhere.com&realname=Guest&statusmsg=RXJyb3IgaW4gZm9ybSBzdWJtaXNzaW9uLg%3D%3D&statusok=0&username=Guest
If I change line 440 in SpecialUADMBase.class.php from:
$retvURL .= '&' . http_build_query($nonDefaultParams);
BACK TO:
$retvURL .= '?' . http_build_query($nonDefaultParams);
I then get an "Error in form submission" error when attempting to add a new user. 12.157.82.212 18:39, 23 May 2014 (UTC)
I'm not sure, what the extension do there, but the link is false. The first seperator for page parameters must be a ? and all others a & not all a & or all a ?. If i'm right, the extension uses the URL or the adress bar as action for the form, so a very ugly workaround can be to call "index.php?title=Special:AddUser" in adress bar, instead of "Special:AddUser" (and change the ? back to &). Better is to set a fixed form submission target (or check if now & or ? comes). Florianschmidtwelzow (talk) 13:36, 26 May 2014 (UTC)
Ok. I have kept the change to line 440 in SpecialUADMBase.class.php
$retvURL .= '&' . http_build_query($nonDefaultParams);
This fix was found here:
http://www.mediawiki.org/wiki/Extension%20talk%3AUserAdmin#c-ClementLinz-2013-04-09T09%3A10%3A00.000Z-No_such_special_page
The URL that is showing after hitting Submit on the Add User page is:
http://psckb/index.php?title=Special:AddUser&email=Guest%40nowhere.com&statusmsg=RXJyb3IgaW4gZm9ybSBzdWJtaXNzaW9uLg%3D%3D&statusok=0&username=Guest
The address bar URL is the same as what YOU auggested I try above.
"index.php?title=Special:AddUser"
The rest of the separators are "&" symbols.
Same ISSUE.
ALSO, i have tried to create a user with the wfLoadExtensionMessages('UserAdmin'); COMMENTED (OFF) and UNCOMMENTED(ON) in the LocalSettings.php file. Same issue with either setting.
This was found here:
http://www.mediawiki.org/wiki/Project%3ASupport%20desk/Flow/2013/06#h-wfLoadExtensionMessages%28%29_removed_from_1.21.1%3F-2013-06-08T18%3A59%3A00.000Z
I also FOUND that if I set $wgUsePathInfo in LocalSettings.php, to FALSE it then gives me the "Error in FORM SUBMISSION" JUST like it does when I haveː
$retvURL .= '?' . http_build_query($nonDefaultParams); in SpecialUADMBase.class.php
If I set $wgUsePathInfo in LocalSettings.php, to TRUE it then gives me the "No SUCH Special Page" error JUST like it does if I haveː
$retvURL .= '&' . http_build_query($nonDefaultParams); in SpecialUADMBase.class.php.
I am really lost here. I also tried completely replacing the UserAdmin folder in Extensions. SAME EXACT ISSUE.
I can't ADD Users. 12.157.82.212 15:46, 30 May 2014 (UTC)
The only other thing that has changed was I installed the Semantic Mediawiki extension. Even when I disable this extension in LocalSettings.php, I still receive the same errors. I have also tried disabling ALL extensions in LocalSettings.php, SAME ISSUE. 12.157.82.212 15:53, 30 May 2014 (UTC)
12.157.82.212 15:59, 30 May 2014 (UTC)
Have you tried the fix from the thread listed on the extension's page? Ciencia Al Poder (talk) 09:12, 26 May 2014 (UTC)
Yes, because I can read. 12.157.82.212 15:04, 30 May 2014 (UTC)

One way server mute

Is there any way to have it so that a moderator can mute a user, but then that user may unmute themselves without needing to contact someone with the privileges to do so? 24.163.43.44 (talk) 00:18, 23 May 2014 (UTC)

Hi!
If with "mute" you mean "the user should no longer be able to write something.", then: Yes, there is. You can use user rights (Manual:User_rights) to set up a group called "moderator" and you can give this group the right to block users. Also give all normal users the right to unblock themselves:
$wgGroupPermissions['user']['unblockself'] = true;
$wgGroupPermissions['moderator']['block'] = true;
Then use the special page Special:UserRights in your wiki to make users members of the moderator group.
This is one possibility. This would let the user choose when he wants to be able to write again. If you instead want your moderators to choose this, another option you might want to consider is to let your moderators not block the users indefinitely, but for a certain amount of time only. The result would then be that the block will expire automatically. And you can use the page MediaWiki:Ipboptions in your wiki to only show the moderators some of the default block times. E.g. could you take away those time intervals, which are very long hinting your moderators not to choose those. 88.130.76.191 00:29, 23 May 2014 (UTC)

[RESOLVED] Special:SpecialPages - Users and Rights - "Add User" show s<adduser>

The UserAdmin.i18n.php file was accidentally moved and then moved back.

Now, my user options under Users and Rights show: <adduser> <edituser> <purgeuser> <useradmin>

Instead of: Add User Edit User Purge User User Admin

I checked the permissions of UserAdmin.i18n.php and they are set correctly. Administrator is owner and has 755 permissions.

All I did was move this file and move it back. What happened? 12.157.82.212 (talk) 15:01, 23 May 2014 (UTC)

I have resolved this issue by clearing out the specified line for UserAdmin.i18n.php in the /var/www/mediawiki/includes/LocalisationCache.php file. 12.157.82.212 16:55, 23 May 2014 (UTC)

Some pages taking 7 - 15 seconds to load

Hi,

Some of our larger pages are taking a very long time to load, yet we have $wgMainCacheType set to CACHE_ACCEL and it is using APCu.

Installation details:

MediaWiki	1.22.6
PHP	        5.5.12-1~dotdeb.1 (fpm-fcgi)
MySQL	        5.6.15-63.0-log
Lua	        5.1.5

New Relic shows that most of the time is spent here:

PPFrame_DOM::expand 	87 	2,250 ms 	24%
Linker::makeImageLink 	464 	1,870 ms 	20%

Isn't this part of the rendering process that should be cached in APCu? If so, why would it not be working?

Another strange request has this:

page - SELECT 	608 	4,610 ms 	27%
Parser::replaceInternalLinks2 	1 	4,110 ms 	24%

With these queries:

Timestamp 	Total duration 	Call count 	SQL
4.770 s 	4,370 ms 	574 	SELECT /* LocalRepo::getArticleID Glen.? */ page_id FROM `page` WHERE page_namespace = ? AND page_title = ? LIMIT ?
8.777 s 	2,780 ms 	574 	SELECT /* LocalRepo::checkRedirect Glen.? */ rd_title, rd_namespace FROM `redirect` WHERE rd_from = ? LIMIT ?

Why on earth is it selecting from these tables 574 times in a single request!?

We have the following extensions:

Add_HTML_Meta_and_Title (Version 0.5)
Cite
EmbedVideo (Version 1.0)
Header Tabs (Version 0.9.3)
ParserFunctions (Version 1.5.1)
RSS feed (Version 2.24)
Scribunto
Widgets (Version 1.0)
--
Approved Revs (Version 0.6.6)
Google Analytics Integration (Version 2.0.2)

Any ideas what may be causing these issues?

Thanks,

Glen.
105.237.35.76 (talk) 15:35, 23 May 2014 (UTC)
When debugging issues like this, its often good to disable extensions, as certain misbehaved extensions can sometimes cause performance problems (I haven't heard of any that you list as being misbehaving, but the general principle remains) Bawolff (talk) 18:07, 26 May 2014 (UTC)
The problem is with the Approved Revs extension. I'm going to try to figure out why. 105.237.149.49 08:08, 27 May 2014 (UTC)

gerrit request

hi please could someone accept the change and merge this change https://gerrit.wikimedia.org/r/#/c/135068/ because it only add files that I downloaded from the orginal aurthor and uploaded them to gerrit. 90.202.209.59 (talk) 18:52, 23 May 2014 (UTC)

[RESOLVED] update git site

hi please could someone update http://git.wikimedia.org from 1.4.0 to 1.5.1 please. 90.202.209.59 (talk) 19:36, 23 May 2014 (UTC)

Version 1.4.0 of what exactly? And why update? Reasons are welcome. AKlapper (WMF) (talk) 09:25, 26 May 2014 (UTC)
I think he mean gitblit. The only critical thing i see in release notes is a major security fix for authentication using external sources:
http://gitblit.com/releases.html Florianschmidtwelzow (talk) 13:42, 26 May 2014 (UTC)
Hi version 1.6.0 includes tickets and also adds ssh support. Please upgrade to 1.6.0 or 1.7.0 please. It now requires java 7. 86.135.253.57 18:26, 12 July 2014 (UTC)
Version 1.7.0 does not exist so how can you ask for upgrading to it? Also, 1.6.0 does NOT add ssh support as you stated. It does add a web UI for SSH key management instead.
In any case, you need to make very compelling cases what the exact advantages are and why they are relevant to a lot of people. Maintainers do not upgrade server software just because a new version has been released. Upgrades can break things. There is a saying "Never change a running system" - you might get the idea. AKlapper (WMF) (talk) 20:45, 12 July 2014 (UTC)
1.7.0 does because I think it is an alpha software because dev.gitblit.com has it. And ok. But 1.6.0 add the ticket system and plus 1.4.1 is a security update so I think we should upgrade to 1.6,0 please. 86.135.253.57 08:00, 13 July 2014 (UTC)
I asked for compelling reasons; you provided none. Good that this is cleared now. :) AKlapper (WMF) (talk) 12:39, 13 July 2014 (UTC)
Ƅhm, the ticket system is useless for us, if i understand this system right? We have bugzilla where we handle all bug tickets (or maybe trello and mingle in some projects) and gerrit for review and "pull requests". So, i think AKlapper is right ;) Florianschmidtwelzow (talk) 13:00, 13 July 2014 (UTC)
Ok. but why not upgrade to 1.4.1 then because that fixes a security hole. it also Add closed status for milestones and abandoned status for tickets 86.135.253.57 13:33, 13 July 2014 (UTC)
With the security fix you mean this?
> Fix major authentication security hole when using external authentication providers
Maybe i can't see this, but git.wikimedia.org doesn't provide any authentication, becauseit's only a mirror for the gerrit hit's :)
I use git.wikimedia.org not very often so i must ask: Does our gitblit installation provide a ticket and/or milestone system? I think no, because for this we have bugzilla :) Florianschmidtwelzow (talk) 15:07, 13 July 2014 (UTC)
oh ok. 86.135.253.57 15:21, 13 July 2014 (UTC)

pywikpediabot : replace.py script

Hello, I have some syntax problems using the -ref: option with subpages.
For example -ref:WikipƩdia:Le Bistro/Heure d'ƩtƩ don't return any results...

I got positive things with -ref:WikipƩdia:Le Bistro, but it don't return the correct page... 2A02:8422:1191:6E00:56E6:FCFF:FEDB:2BBA (talk) 00:45, 24 May 2014 (UTC)

Have you tried -ref:"WikipƩdia:Le Bistro/Heure d'ƩtƩ"? Ricordisamoa 08:59, 25 May 2014 (UTC)

error in extension code

hi in this code

Extended content
<?php

class SpecialExtensionStatus extends SpecialVersion {
	protected $dateTimeFormat = "";
	protected $lastRemoteChange = 0;
	protected $comm;
	protected $html;

	public function __construct() {
		$this->dateTimeFormat = "F d Y H:i:s.";
		$this->comm = new SECommits();
		$this->html = new Html();

		// Call the SpecialPage constructor
		SpecialPage::__construct( 'ExtensionStatus' );
	}

	public function execute( $par ) {
		$request = $this->getRequest();
		$output = $this->getOutput();
		$this->setHeaders();

		$output->prependHTML( wfMessage( 'extensionstatus-extendversionlink' )->parse() );

		$wikitext = $this->getExtensionCredits();
		$output->addWikiText( $wikitext );
	}

	/**
	 * Checks the details of the external repository for the extension, looks for
	 * commits/changes that were done before the update date of the local version.
	 * 
	 * @return {String} Contents of the update cell with update/commit information
	 */
	function getChangeStatus( $extName , $getFromLocalGit = false, $localGitTime = 0 ) {
		global $wgLang;

		// This is taking information from gerrit, but will be changed soon to the GitHub mirrors
		$extGitURL = "https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/extensions/".$extName."
		.git;a=log;h=refs/heads/master";
		$extLocalPath = dirname( dirname(  __FILE__ ) ) . "/" . $extName . "/" . $extName . ".php";

		if ( $getFromLocalGit && $localGitTime > 0 ) {
			// Local git exists, take local time from there:
			$localChangeTime = $localGitTime;
		} else {
			// Check local file timestamp:
			$localChangeTime = filemtime( $extLocalPath );
		}
		$this->comm->setLocalChangeTime( $localChangeTime );

		// Check remote last change:
		$cDom = $this->comm->readRemoteRepo( $extGitURL );

		$extStatText = "";
		// If there's a document/reply existent, read it:
		if ($cDom) {
			// Get the commit list:
			$commits = $this->comm->getCommits( $cDom, $localChangeTime );
			// Prepare the message
			if ( count( $commits ) > 0 ) {
				if (  $this->comm->getCommitCounter() === 0 ) {
					// No Commits, check if there are translation commits:
					if ( $this->comm->getUpdaterBotCommits() === 0 ) {
						// No translation commits either. Up to date
						$extStatText .= $this->html->rawElement('p',
							array( 'class' => 'extstat-update-upToDate' ),
							wfMessage( 'extstat-status-uptodate' )
						);
					} else {
						// Only translation commits are available:
						$extStatText .= $this->html->rawElement('p',
							array( 'class' => 'extstat-update-translupdate' ),
							wfMessage( 'extstat-status-translupdate',
								$this->comm->getUpdaterBotCommits() )
						);
					}
				} else {
					// There are general commits:
					$extStatText .= $this->html->rawElement('p',
						array( 'class' => 'extstat-update-updateavailable' ),
							wfMessage( 'extstat-status-updateavailable' )
						);
					$extStatText .= $this->html->rawElement('p',
						array( 'class' => 'extstat-subtitle-commits' ),
							wfMessage( 'extstat-subtitle-commits', $this->comm->getCommitCounter() )
						);

					// See if there are also language updates:
					if ( $this->comm->getUpdaterBotCommits() > 0 ) {
						$extStatText .= $this->html->rawElement('p',
							array( 'class' => 'extstat-subtitle-language' ),
								wfMessage( 'extstat-subtitle-language',
									$this->comm->getUpdaterBotCommits() )
							);
					}

					// Add information about the latest commit:

					// details of latest commit:
					$context = new RequestContext();
					$commitinfo = wfMessage( 'extstat-commitinfo-latest', $commits[0]['header'],
						$commits[0]['author'],  $context->getLanguage()->timeanddate(
							$commits[0]['date'], true ) )->text();

					//display nicely:
					$extStatText .= $this->html->rawElement('p',
						array('class' => 'extstat-commitinfo-latest'), $commitinfo );

					$extStatText .= $this->html->rawElement('p',
						array('class' => 'extstat-commitinfo-link'),
							wfMessage( 'extstat-commitinfo-link', $extGitURL )->text()
						);
				}
			}
		}
		return $extStatText;
	}

	/**
	 * This is an original function from SpecialVersion page. 
	 * For the purpose of ExtensionStatus view, this was heavily edited.
	 *
	 * Creates and formats the credits for a single extension and returns this.
	 *
	 * @param $extension Array
	 * @return string
	 */
	function getCreditsForExtension( array $extension ) {
		global $wgLang;

		$name = isset( $extension['name'] ) ? $extension['name'] : '[no name]';

		$vcsText = false;

		// Extension name / URL:
		if ( isset( $extension['path'] ) ) {
			$gitInfo = new GitInfo( dirname( $extension['path'] ) );
			$gitHeadSHA1 = $gitInfo->getHeadSHA1();
			if ( $gitHeadSHA1 !== false ) {
				$vcsText = '(' . substr( $gitHeadSHA1, 0, 7 ) . ')';
				$gitViewerUrl = $gitInfo->getHeadViewUrl();
				if ( $gitViewerUrl !== false ) {
					$vcsText = "[$gitViewerUrl $vcsText]";
				}
				$gitHeadCommitDate = $gitInfo->getHeadCommitDate();
				if ( $gitHeadCommitDate ) {
					$vcsText .= "<br/>" . $wgLang->timeanddate( $gitHeadCommitDate, true );
				}
			} else {
				$svnInfo = self::getSvnInfo( dirname( $extension['path'] ) );
				# Make subversion text/link.
				if ( $svnInfo !== false ) {
					$directoryRev = isset( $svnInfo['directory-rev'] ) ?
						$svnInfo['directory-rev'] : null;
					$vcsText = $this->msg( 'version-svn-revision', $directoryRev,
						$svnInfo['checkout-rev'] )->text();
					$vcsText = isset( $svnInfo['viewvc-url'] ) ? '[' . $svnInfo['viewvc-url'] . "
						$vcsText]" : $vcsText;
				}
			}
		}

		/* Adding date/change comparison */
		if (isset($gitHeadCommitDate)) {
			$extStatText = $this->getChangeStatus( $name, true, $gitHeadCommitDate );
		} else {
			$extStatText = $this->getChangeStatus( $name, false );
		}

		# Make main link (or just the name if there is no URL).
		if ( isset( $extension['url'] ) ) {
			$mainLink = "[{$extension['url']} $name]";
		} else {
			$mainLink = $name;
		}

		if ( isset( $extension['version'] ) ) {
				$versionText = '<span class="mw-version-ext-version">' .
				$this->msg( 'version-version', $extension['version'] )->text() .
							'</span>';
		} else {
			$versionText = '';
		}

		# Make description text.
		$description = isset( $extension['description'] ) ? $extension['description'] : '';

		if ( isset( $extension['descriptionmsg'] ) ) {
			# Look for a localized description.
			$descriptionMsg = $extension['descriptionmsg'];

			if ( is_array( $descriptionMsg ) ) {
				$descriptionMsgKey = $descriptionMsg[0]; // Get the message key
				array_shift( $descriptionMsg ); // Shift out the message key to get the parameters only
				array_map( "htmlspecialchars", $descriptionMsg ); // For sanity
				$description = $this->msg( $descriptionMsgKey, $descriptionMsg )->text();
			} else {
				$description = $this->msg( $descriptionMsg )->text();
			}
		}

		$author = isset( $extension['author'] ) ? $extension['author'] : array();

		// Set row:
		$output = "";
		$output .= $this->html->openElement('tr');

		$output .= $this->html->rawElement( 'td',  null,
				$this->html->rawElement('span', array( "class" => "extstat-mainlink" ),
					$mainLink ) . " <br />" .
					$this->html->rawElement('span', array( "class" => "extstat-versionText" ),
						$versionText )
			);
		$output .= $this->html->rawElement( 'td', array("class" => "extstat-desc" ), $description );
		$output .= $this->html->rawElement( 'td', array("class" => "extstat-author" ),
			$this->listAuthors( $author, false ) );

		if ( $vcsText !== false ) {
			$output .= $this->html->rawElement( 'td', array("class"=>"extstat-updateinfo" ),
				$this->html->rawElement( 'span', array("class"=>"extstat-vcstext"),
					$vcsText ) . " " . $extStatText
			);
		} else {
			$output .= $this->html->rawElement( 'td', array("class"=>"extstat-stats"),
				$extStatText );
		}

		$output .= $this->html->closeElement( 'tr' );

		return $output;
	}
}

I get this error

Extended content

Warning: Missing argument 3 for SpecialVersion::listAuthors(), called in /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php on line 217 and defined in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 860

Warning: Missing argument 3 for SpecialVersion::listAuthors(), called in /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php on line 217 and defined in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 860

Warning: filemtime(): stat failed for /home/u343696101/public_html/extensions/Confirm User Accounts/Confirm User Accounts.php in /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php on line 48

Warning: Missing argument 3 for SpecialVersion::listAuthors(), called in /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php on line 217 and defined in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 860

Warning: Missing argument 3 for SpecialVersion::listAuthors(), called in /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php on line 217 and defined in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 860

Warning: filemtime(): stat failed for /home/u343696101/public_html/extensions/Extension Distributor/Extension Distributor.php in /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php on line 48

Warning: Missing argument 3 for SpecialVersion::listAuthors(), called in /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php on line 217 and defined in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 860

Warning: Missing argument 3 for SpecialVersion::listAuthors(), called in /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php on line 217 and defined in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 860

Warning: Missing argument 3 for SpecialVersion::listAuthors(), called in /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php on line 217 and defined in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 860

Warning: Missing argument 3 for SpecialVersion::listAuthors(), called in /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php on line 217 and defined in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 860

Warning: Missing argument 3 for SpecialVersion::listAuthors(), called in /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php on line 217 and defined in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 860

Warning: Missing argument 3 for SpecialVersion::listAuthors(), called in /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php on line 217 and defined in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 860

Warning: Missing argument 3 for SpecialVersion::listAuthors(), called in /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php on line 217 and defined in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 860

Warning: Missing argument 3 for SpecialVersion::listAuthors(), called in /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php on line 217 and defined in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 860

Warning: filemtime(): stat failed for /home/u343696101/public_html/extensions/User Merge and Delete/User Merge and Delete.php in /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php on line 48

Warning: Missing argument 3 for SpecialVersion::listAuthors(), called in /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php on line 217 and defined in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 860

Warning: Missing argument 3 for SpecialVersion::listAuthors(), called in /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php on line 217 and defined in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 860

Warning: Missing argument 3 for SpecialVersion::listAuthors(), called in /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php on line 217 and defined in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 860

Warning: filemtime(): stat failed for /home/u343696101/public_html/extensions/DynamicPageList/DynamicPageList.php in /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php on line 48

Warning: Missing argument 3 for SpecialVersion::listAuthors(), called in /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php on line 217 and defined in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 860

Warning: Missing argument 3 for SpecialVersion::listAuthors(), called in /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php on line 217 and defined in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 860

Warning: Missing argument 3 for SpecialVersion::listAuthors(), called in /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php on line 217 and defined in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 860

Warning: Missing argument 3 for SpecialVersion::listAuthors(), called in /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php on line 217 and defined in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 860

Warning: Missing argument 3 for SpecialVersion::listAuthors(), called in /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php on line 217 and defined in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 860

Warning: filemtime(): stat failed for /home/u343696101/public_html/extensions/SyntaxHighlight/SyntaxHighlight.php in /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php on line 48

Warning: Missing argument 3 for SpecialVersion::listAuthors(), called in /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php on line 217 and defined in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 860

Warning: Missing argument 3 for SpecialVersion::listAuthors(), called in /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php on line 217 and defined in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 860

Warning: Missing argument 3 for SpecialVersion::listAuthors(), called in /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php on line 217 and defined in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 860

Warning: Missing argument 3 for SpecialVersion::listAuthors(), called in /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php on line 217 and defined in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 860

Warning: Missing argument 3 for SpecialVersion::listAuthors(), called in /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php on line 217 and defined in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 860

Warning: Missing argument 3 for SpecialVersion::listAuthors(), called in /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php on line 217 and defined in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 860

Warning: Missing argument 3 for SpecialVersion::listAuthors(), called in /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php on line 217 and defined in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 860

Warning: Missing argument 3 for SpecialVersion::listAuthors(), called in /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php on line 217 and defined in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 860

Warning: Cannot modify header information - headers already sent by (output started at /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php:48) in /home/u343696101/public_html/includes/WebResponse.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php:48) in /home/u343696101/public_html/includes/WebResponse.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php:48) in /home/u343696101/public_html/includes/WebResponse.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php:48) in /home/u343696101/public_html/includes/WebResponse.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php:48) in /home/u343696101/public_html/includes/WebResponse.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php:48) in /home/u343696101/public_html/includes/WebResponse.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php:48) in /home/u343696101/public_html/includes/WebResponse.php on line 37

86.135.251.51 (talk) 18:35, 24 May 2014 (UTC)
please see http://simple-random-wikisaur.tk/index.php/Special:ExtensionStatus 86.135.251.51 20:10, 24 May 2014 (UTC)
The error message is self-explanatory: Warning: Missing argument 3 for SpecialVersion::listAuthors(), called in /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php on line 217 and defined in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 860
What's the question, anyway? Ciencia Al Poder (talk) 09:19, 26 May 2014 (UTC)
how can I fix it please. 92.40.250.75 13:02, 26 May 2014 (UTC)
Provide the right number of arguments! 88.130.104.35 13:18, 26 May 2014 (UTC)
Watch at the parameters of listAuthors :)
https://doc.wikimedia.org/mediawiki-core/master/php/html/classSpecialVersion.html#a834c7dfa21ec81480b942184fd5e7ac3 Florianschmidtwelzow (talk) 13:56, 26 May 2014 (UTC)
Hi ok but how should I provide the right amount the arguments. I doint know how to put any more please could I have some help. 86.155.46.142 19:31, 26 May 2014 (UTC)
Easy: In ExtensionStatus/SpecialExtensionStatus.php on line 217 you are calling SpecialVersion::listAuthors(). This call must provide the correct number of arguments. When you have a look at the function definition of SpecialVersion::listAuthors() (Florian linked the docs in his post), then you will see that this function expects you to provide exactly 3 arguments. That is the same as what the error message ("Missing argument 3") tells you.
So the line
$this->listAuthors( $author, false )
where you only provide 2 arguments ($author and false) is wrong. You have to provide 3 arguments like so:
$this->listAuthors( $author, $extName, $extDir )
where
  • $author is a string or an array of authors
  • $extName is the name of the extension for link creation
  • $extDir is the path to the extension root directory 88.130.104.35 20:09, 26 May 2014 (UTC)
And don't forget, that false isn't an valid argument. So, in your Extension you can use listAuthors like:
$this->listAuthors( $author, $name, $extension['path'] ) );
(for example) Florianschmidtwelzow (talk) 05:17, 27 May 2014 (UTC)
Ok thanks 92.40.250.89 08:21, 27 May 2014 (UTC)
hi I now get this error when using this
$this->listAuthors( $author, $name, $extension['path'] ) );
Extended content
Warning: scandir(/home/u343696101/public_html/extensions/CheckUser/CheckUser.php): failed to open dir: Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(): (errno 20): Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: Invalid argument supplied for foreach() in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(/home/u343696101/public_html/extensions/Cite/SpecialCite.php): failed to open dir: Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(): (errno 20): Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: Invalid argument supplied for foreach() in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: filemtime(): stat failed for /home/u343696101/public_html/extensions/Confirm User Accounts/Confirm User Accounts.php in /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php on line 48
Warning: scandir(/home/u343696101/public_html/extensions/ConfirmAccount/ConfirmAccount.php): failed to open dir: Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(): (errno 20): Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: Invalid argument supplied for foreach() in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(/home/u343696101/public_html/extensions/Echo/Echo.php): failed to open dir: Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(): (errno 20): Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: Invalid argument supplied for foreach() in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: filemtime(): stat failed for /home/u343696101/public_html/extensions/Extension Distributor/Extension Distributor.php in /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php on line 48
Warning: scandir(/home/u343696101/public_html/extensions/ExtensionDistributor/ExtensionDistributor.php): failed to open dir: Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(): (errno 20): Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: Invalid argument supplied for foreach() in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(/home/u343696101/public_html/extensions/ExtensionStatus/ExtensionStatus.php): failed to open dir: Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(): (errno 20): Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: Invalid argument supplied for foreach() in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(/home/u343696101/public_html/extensions/Interwiki/Interwiki.php): failed to open dir: Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(): (errno 20): Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: Invalid argument supplied for foreach() in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(/home/u343696101/public_html/extensions/Nuke/Nuke.php): failed to open dir: Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(): (errno 20): Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: Invalid argument supplied for foreach() in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(/home/u343696101/public_html/extensions/Renameuser/Renameuser.php): failed to open dir: Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(): (errno 20): Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: Invalid argument supplied for foreach() in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(/home/u343696101/public_html/extensions/SiteMatrix/SiteMatrix.php): failed to open dir: Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(): (errno 20): Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: Invalid argument supplied for foreach() in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(/home/u343696101/public_html/extensions/TemplateSandbox/TemplateSandbox.php): failed to open dir: Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(): (errno 20): Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: Invalid argument supplied for foreach() in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: filemtime(): stat failed for /home/u343696101/public_html/extensions/User Merge and Delete/User Merge and Delete.php in /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php on line 48
Warning: scandir(/home/u343696101/public_html/extensions/UserMerge/UserMerge.php): failed to open dir: Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(): (errno 20): Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: Invalid argument supplied for foreach() in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(/home/u343696101/public_html/extensions/CharInsert/CharInsert.php): failed to open dir: Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(): (errno 20): Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: Invalid argument supplied for foreach() in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(/home/u343696101/public_html/extensions/Cite/Cite.php): failed to open dir: Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(): (errno 20): Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: Invalid argument supplied for foreach() in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: filemtime(): stat failed for /home/u343696101/public_html/extensions/DynamicPageList/DynamicPageList.php in /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php on line 48
Warning: scandir(/home/u343696101/public_html/extensions/intersection/DynamicPageList.php): failed to open dir: Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(): (errno 20): Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: Invalid argument supplied for foreach() in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(/home/u343696101/public_html/extensions/InputBox/InputBox.php): failed to open dir: Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(): (errno 20): Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: Invalid argument supplied for foreach() in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(/home/u343696101/public_html/extensions/Math/Math.php): failed to open dir: Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(): (errno 20): Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: Invalid argument supplied for foreach() in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(/home/u343696101/public_html/extensions/ParserFunctions/ParserFunctions.php): failed to open dir: Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(): (errno 20): Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: Invalid argument supplied for foreach() in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(/home/u343696101/public_html/extensions/Scribunto/Scribunto.php): failed to open dir: Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(): (errno 20): Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: Invalid argument supplied for foreach() in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: filemtime(): stat failed for /home/u343696101/public_html/extensions/SyntaxHighlight/SyntaxHighlight.php in /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php on line 48
Warning: scandir(/home/u343696101/public_html/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.php): failed to open dir: Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(): (errno 20): Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: Invalid argument supplied for foreach() in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(/home/u343696101/public_html/extensions/TimedMediaHandler/TimedMediaHandler.php): failed to open dir: Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(): (errno 20): Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: Invalid argument supplied for foreach() in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(/home/u343696101/public_html/extensions/CodeEditor/CodeEditor.php): failed to open dir: Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(): (errno 20): Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: Invalid argument supplied for foreach() in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(/home/u343696101/public_html/extensions/Gadgets/Gadgets.php): failed to open dir: Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(): (errno 20): Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: Invalid argument supplied for foreach() in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(/home/u343696101/public_html/extensions/GlobalBlocking/GlobalBlocking.php): failed to open dir: Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(): (errno 20): Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: Invalid argument supplied for foreach() in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(/home/u343696101/public_html/extensions/LocalisationUpdate/LocalisationUpdate.php): failed to open dir: Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(): (errno 20): Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: Invalid argument supplied for foreach() in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(/home/u343696101/public_html/extensions/MwEmbedSupport/MwEmbedSupport.php): failed to open dir: Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(): (errno 20): Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: Invalid argument supplied for foreach() in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(/home/u343696101/public_html/extensions/WikiEditor/WikiEditor.php): failed to open dir: Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: scandir(): (errno 20): Not a directory in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: Invalid argument supplied for foreach() in /home/u343696101/public_html/includes/specials/SpecialVersion.php on line 913
Warning: Cannot modify header information - headers already sent by (output started at /home/u343696101/public_html/includes/specials/SpecialVersion.php:913) in /home/u343696101/public_html/includes/WebResponse.php on line 37
Warning: Cannot modify header information - headers already sent by (output started at /home/u343696101/public_html/includes/specials/SpecialVersion.php:913) in /home/u343696101/public_html/includes/WebResponse.php on line 37
Warning: Cannot modify header information - headers already sent by (output started at /home/u343696101/public_html/includes/specials/SpecialVersion.php:913) in /home/u343696101/public_html/includes/WebResponse.php on line 37
Warning: Cannot modify header information - headers already sent by (output started at /home/u343696101/public_html/includes/specials/SpecialVersion.php:913) in /home/u343696101/public_html/includes/WebResponse.php on line 37
86.182.207.14 10:12, 27 May 2014 (UTC)
and I get this error if I use
$this->listAuthors( $author, $extName, $extDir )
Warning: filemtime(): stat failed for /home/u343696101/public_html/extensions/Confirm User Accounts/Confirm User Accounts.php in /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php on line 48
Warning: filemtime(): stat failed for /home/u343696101/public_html/extensions/Extension Distributor/Extension Distributor.php in /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php on line 48
Warning: filemtime(): stat failed for /home/u343696101/public_html/extensions/User Merge and Delete/User Merge and Delete.php in /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php on line 48
Warning: filemtime(): stat failed for /home/u343696101/public_html/extensions/DynamicPageList/DynamicPageList.php in /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php on line 48
Warning: filemtime(): stat failed for /home/u343696101/public_html/extensions/SyntaxHighlight/SyntaxHighlight.php in /home/u343696101/public_html/extensions/ExtensionStatus/SpecialExtensionStatus.php on line 48
86.182.207.14 10:14, 27 May 2014 (UTC)
line 48 where it say the error is
$localChangeTime = filemtime( $extLocalPath );
86.182.207.14 10:29, 27 May 2014 (UTC)

How add new item to user header shortcut menu?

I want to add 'View and edit watchlist' to the shortcuts that appear at the top of the page for logged in users.

I have to say, I haven't been able to find any google search results that even approach the topic. MadenssContinued (talk) 01:17, 25 May 2014 (UTC)

You can use a hook to add links to the personal URLs. The PersonalUrls hook seems to be the most convenient. You could add more links to the $personal_urls array on that hook. Ciencia Al Poder (talk) 09:17, 26 May 2014 (UTC)

Logging into api using mediawiki

Hi,

Mediawiki 1.22.6

I am following this code here http://www.mediawiki.org/wiki/Example_login_code_in_JS_(using_JQuery) to log in to my wiki.

The application makes proper post requests. The first post request returns 'Needs Token' and the token is returned in the json object

On the second request even though I am supplying the token with the username and password. It returns an error, and the result still remains Result : Need Token.

This is the first request

"http://upgrade.vaniquotes.org/w.1.22/api.php?action=login&lgname=Test&lgpassword=test123&format=json"

This is the second request

"http://upgrade.vaniquotes.org/w.1.22/api.php?action=login&lgname=Test&lgpassword=test123&lgtoken=a037a59d881bbc48ce54951d009284ce&format=json""

Is there anything extra that needs to be done for mediawiki 1.22.6 ? The code seems correct. I am not able to figure put why it enters the code block for the first else condition.

Please help! SOS!


Arnab 91.179.30.207 (talk) 15:37, 25 May 2014 (UTC)

Be sure to follow API:Login#How to log in. In particular, be sure to send back to MediaWiki the cookies that you've received on the first login request. Ciencia Al Poder (talk) 09:22, 26 May 2014 (UTC)
Hey thanks your reply helped. I had to send the sessionid on the second request.
http://upgrade.vaniquotes.org/w/api.php?action=login&lgname=Test&lgpassword=test123&lgtoken=ffd02de0c7fdcad89b90a4bf06bc88f6&sessionid=vaniquotes2_vaniquotes_a72b5f78bd0dd4006efd45fb7902588e&format=json
So i had to append the cookieprefix and the sessionid together and send it together as &sessionid=vaniquotes2_vaniquotes_a72b5f78bd0dd4006efd45fb7902588e
This logged me in. Unfortunately, this is not very explicitly stated in the wiki manuals for login 91.179.30.207 14:56, 26 May 2014 (UTC)
Hi,
This same code and url to login is working for mediawiki 1.15.1
But does not work for mediaiwiki 1.22.6
Is there anything specific for 1.22.6?
Arnab 91.179.30.207 15:24, 26 May 2014 (UTC)
> Is there anything specific for 1.22.6?
Yes, lots of security improvements! Ciencia Al Poder (talk) 09:27, 27 May 2014 (UTC)
Note that on any website that requires login, you must have cookies enabled in order to maintain the session state with the server. Your bot should handle this automatically.
On another note, session ID should be sent through cookies and not in your request parameters. That shouldn't be supported. Ciencia Al Poder (talk) 09:28, 27 May 2014 (UTC)

Special preventing access for own wiki

Hello MediaWiki-Support,

how can I locked my wiki like this: noc.wikimedia.org?

Like the removing of the registration, log in and editing link.

In this article is not much information about this method. Suriyaa Kudo (iSC Inc.) (talk) 15:57, 25 May 2014 (UTC)

Hi!
You can add CSS rules to the wiki page MediaWiki:Common.css in your wiki. With these rules you can hide certain elements of the website:
#ca-watch { display: none !important; }
(Just an example rule to show what I mean.)
With CSS you can hide the according elements from being visible - however, if people know the URLs, they will still be able to access the pages, which these elements link to. So you might also want to change that: You can edit the file LocalSettings.php in the file system of the server and set user permissions, which disallow people to register and/or to edit:
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['*']['edit'] = false;
This then makes login and editing impossible. For more information on user groups and the according user rights see Manual:User rights.
Btw: The page you linked to is not run by the MediaWiki software. Basically it is only a copy of what the Wikimedia foundation wikis look like, but there is no wiki software behind that screen. 88.130.71.217 17:23, 25 May 2014 (UTC)
Thanks for your help. :-D Suriyaa Kudo (talk) 13:24, 28 May 2014 (UTC)

master or LTS or current stable

Is it safe/better for production to be on master branch, on LTS (REL1_19, REL1_23) or on current (REL1_22)? What pros, what cons? 2nd 21:34, 25 May 2014 (UTC)

If you want to be sure, it will be better, if you run the latest stable version of MediaWiki, currently is 1.22.6. On newer versions, e.g. 1.23.x or 1.24 WMF you will have the newwest functions and bugfixes, but also the chance of an unstable build or incompatibility with some extensions. With a WMF version for example you have much more work, at least, if you want to be up to date, you must update MediaWiki all over the time and test test test, if the new version works with your installation (environment, extensions, self coded work and so on). So, finally it's your opinion, what you want to choose :) Florianschmidtwelzow (talk) 05:33, 26 May 2014 (UTC)
Hi!
What Florian says is right. Under the stable releases, MediaWiki 1.19 has the advantage that it will be supported for an extended period of time. If you wait a few more days: On May 29th MediaWiki 1.23 is planned to be released, which also offers long term support. So not only can you save time upgrading (as 1.23 will be supported until 2017), but you also get the newest stable version, if you then pick version 1.23. 88.130.104.35 08:48, 26 May 2014 (UTC)
The main reason not to use master in production is compatibility and ability to coop with regressions.
For example, it is very possible that a change will be merged in master that requires you to run a database update (in other words, if you don't run the sql update script, the wiki is broken); And that later that change is reverted and there is no way to undo the database schema change you just applied. At that point your database is screwed and irrecoverable.
Don't use master unless you're very familiar with MediaWiki, read the commit log carefully before updating, and are willing to be held responsible for dealing with any issues (e.g. don't file a bug and expect support, someone might help but there's no obligation).
Also when master changes an interface that requires an extension to make a change, it might take a few days before they make that change. So even if you use master of mediawiki-core and some extensions, those may not be compatible at this point in time.
When using stable releases (1.22 or 1.23 at the moment) you just upgrade from one release to the next using the tested and supported upgrade path. While many extensions don't update their release branches after they are made, they wouldn't have to. They are automatically branched from the master at that point in time, so it's like running master but after things have been fixed to work with any changes made in mediawiki-core. Krinkle (talk) 01:59, 5 June 2014 (UTC)
But how to be with extensions? How I already writed: in branches similar with core, they stop progress immediately, and some need backport fix from master. 2nd 17:20, 6 June 2014 (UTC)
Should you find a bug, you can always backport it to the affected branch. Such improvements of code quality are very welcome. For an extension I use I just backported a bugfix today; the change is already merged and my checkout is already using it in production. 88.130.77.185 22:06, 6 June 2014 (UTC)
I find extensions that broken in REL1_23 and they need backport fix from master branch. So looks like in extensions all branches, exclude master, stop progress immediately. I watch in some extensions and their REL1_22 branch stop progressing like half year ago. If I move extensions to master, then why I can't move core to master? Is master branch not safe? 2nd 12:20, 27 May 2014 (UTC)
Like i said, the master branch is the actual stand of development. It is possible, that a patch set is instable in such installation constellation. In stable releases the risk is much lower.
If an extension is maintained out of the master i can not say. Patch set's and changes of core will be only backported, if it is critical in older versions, so the risk, that an extension fails after a backportet patch set, is lower than in master ;) Florianschmidtwelzow (talk) 13:22, 27 May 2014 (UTC)

Warning: oci_fetch_all(): ORA-01002: fetch out of sequence

Hi

I have had similar problems as discussed elsewhere in this forum related to oci8 using Oracle 11g

These errors have now been solved by following a very detailed description which referred to modicications to the INTERWIKI table and also changes to the two functions removeIdentifierQuotes and isQuotedIdentifier.

I have more success with the installation.

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

Has anyone had similar problems or can shed light on this error

Thanks Roebel Statjer (talk) 08:50, 26 May 2014 (UTC)

Which version of MediaWiki is this about? AKlapper (WMF) (talk) 09:27, 26 May 2014 (UTC)
You should probably open a BUGREPORT so developers can look at it. Ciencia Al Poder (talk) 09:30, 26 May 2014 (UTC)

How to use OR in a WHERE clause and put results in Array

I would like to have a WHERE clause WHERE cl_to = Portal OR pcl_to = Shop OR cl_to = School How do I code this in the format:

$res = $drb -> select(	'categorylinks',                                   // $table
			array( 'cl_to', 'cl_from' ),            // $vars (columns of the table)
			array('cl_to' => 'Portal'  // need to add OR clause for Dog_Breeds and Cat_Breeds
			),                              // $conds
			__METHOD__                          // $fname = 'Database::select',
		);
foreach($res as $res1){	$page_id =  $res1->cl_from; 
			$output->addWikiText( $page_id );
			}

Also I would like to put the results in an array so I have an array of the cl_from numbers. Meaning $page_id should be an array. How do I do this? LTech (talk) 09:49, 26 May 2014 (UTC)

Heyho! I think, the best way to do this is to read the introduction in the db abstraction layer:
https://www.mediawiki.org/wiki/Manual:Database_access#Database_Abstraction_Layer
You simply add your conds in an array ;) Florianschmidtwelzow (talk) 13:47, 26 May 2014 (UTC)

database query condition, not in array

I have a database query and I would like to add the condition:

'page_id' is NOT equal to values in $not_these_ids

I have set $not_these_ids = array(22, 34, 55, 66) and have the query $conds = array( 'rev_id = page_latest', 'page_id' != $not_these_ids ); but it doesn't work. How should I write the query? LTech (talk) 09:59, 26 May 2014 (UTC)

WHERE `page_id` NOT IN ('22', '34', '55', '66'); 88.130.104.35 10:24, 26 May 2014 (UTC)
I need it to work in my extension. How do I code it using the mediaiwiki syntax as shown on https://www.mediawiki.org/wiki/Manual:Database_access
NOT IN gives a Parse error: syntax error, unexpected T_STRING, expecting ')' LTech (talk) 10:34, 26 May 2014 (UTC)
Sounds like you have not escaped the single quotes. According to the docs you should be fine when you set $conds to the "content" of the WHERE clause (without the word "WHERE"). I would try
$conds = "page_id NOT IN ('22', '34', '55', '66')"; 88.130.104.35 10:40, 26 May 2014 (UTC)

Please help me get Tex working!?

I've gone through all the instructions over and over and nothing seems to be working with Tex. I've added these lines into LocalSettings.php:

all the sub-programs run just fine from the command line, latex, convert, gs, dvips, no problem. if I run the command:

  texvc /var/wiki/images/tmp /var/wiki/images/math "y=x+2"

I get an image in the /var/wiki/images/math directory, as I expect.

I added these lines to the LocalSettings.php file: $IP = '/var/wiki'; require_once( "$IP/extensions/Math/Math.php" ); $wgUseTex = true; $wgTexvc = '/usr/bin/texvc'; $wgMathDisableTexFilter = true; $wgMathCheckFiles = true; $wgUploadPath = "/var/wiki/images"; $wgUploadDirectory = "/var/wiki/images"; $wgMathPath = "{$wgUploadPath}/math"; $wgMathDirectory = "{$wgUploadDirectory}/math"; $wgTmpDirectory = "{$wgUploadDirectory}/tmp";

I went into the wiki/maintenance directory and did 'php update.php' and no errors. Then I restarted apache.

However, if I go to the page: wiki/index.php?title=Special:Version on the wiki, it shows that the Math extension is NOT installed. No error message, nothing, it just doesn't see it, apparently.

I also notice I do not have a file /wiki/includes/Math.php...

and anything between tags is just ignored, not parsed into math images by the wiki.

So... What am I doing wrong? How do I enable the Tex / math extension here? I'm pulling my hair out! 72.224.62.198 (talk) 10:53, 26 May 2014 (UTC)

To make sure we talk about the same thing, could you link to the "instructions" you refer to? AKlapper (WMF) (talk) 15:05, 26 May 2014 (UTC)
Here are the pages I have examined in effort to get the Tex / Math extension working:
http://www.mediawiki.org/wiki/Manual:Math
http://www.mediawiki.org/wiki/Extension:Math
http://www.mediawiki.org/wiki/Manual:Enable_TeX
http://www.mediawiki.org/wiki/Manual:Troubleshooting_math_display_errors
http://www.mediawiki.org/wiki/Manual:Running_MediaWiki_on_Debian_GNU/Linux#TeX_Support
http://www.mediawiki.org/wiki/Manual:Update.php
http://meta.wikimedia.org/wiki/Help:Displaying_a_formula
http://meta.wikimedia.org/wiki/Texvc
myDomainName.com/wiki/index.php?title=Special:Version
http://zarjay.net/2008/03/07/how-to-get-math-support-in-mediawiki/
http://kb.siteground.com/how_to_enable_math_support_in_my_mediawiki_application/
http://www.siteground.com/tutorials/mediawiki/mediawiki_math.htm
http://www.mediawiki.org/wiki/Extension:Configure
Specifically, I'm running version 1.20 so I downloaded the extension from here:
http://www.mediawiki.org/wiki/Special:ExtensionDistributor?extdist_extension=Math&extdist_version=REL1_20&extdist_submit=Continue
But that was only after I had also installed OCaml and used Git to try installing the extension directly, with texvccheck, as per the instructions here:
http://www.mediawiki.org/wiki/Extension:Math
which built fine, but still did nothing towards actually enabling the extension. As I said, I can generate images from the command-line directly into /var/wiki/images/math as a target dir, so the back-end LaTeX stuff on the server seems to be fine.
I found there are two directories, /etc/mediawiki-extensions/extensions-enabled, and /etc/mediawiki-extensions/extensions-available. The only thing inside of /etc/mediawiki-extensions/extensions-enabled was wikidiff2.php, as a symbolic link to the wikidiff.php file in /etc/mediawiki-extensions/extensions-available. So I added another symbolic link there for Math.php. This had no effect. How does the wiki server normally move extensions from "available" to "enabled", and how can I get some feedback from that process to see why Math.php is not enabled?
I found a type above, my line
$wgUseTex = true;
should have been
$wgUseTeX = true;
With a capital X at the end there on $wgUseTeX, but that also made no difference, still not enabled. Ok. So I go searching for error messages on the server. I found that if you include:
$wgDebugLogFile = "/var/log/wiki.log";
in LocalSettings.php, you can get some info in the logs. So I find that when I do 'php update.php' from within the maintenance/ folder, I see this in the error logs:
..> Start command line script update.php
..> CACHES: EmptyBagOStuff[main] SqlBagOStuff[message] SqlBagOStuff[parser]
..> LocalisationCache: using store LCStore_Null
..> Fully initialised
..> Connecting to localhost my_wiki...
..> Profiler::instance called with bogus $wgProfiler setting, falling back to ProfilerStub for safety
..> Connected to localhost my_wiki.
..> DatabaseBase::query: Writes done: UPDATE `page` SET page_random = RAND() WHERE page_random = 0
..> SQL ERROR (ignored): Table 'my_wiki.profiling' doesn't exist (localhost)
..> Class ConvertUserOptions not found; skipped loading
That's all I have so far. I was about to go digging into:
http://www.mediawiki.org/wiki/Extension:Configure
unless you have some better advice... It doesn't look like 'Math' or 'Tex' are supported extensions for the "configure" tool, but I thought it might give me some more info at least... 72.224.62.198 16:47, 26 May 2014 (UTC)
Hmmmmmm, some more interesting stuff going on with our server. I tried adding the FootNote extension, just to see if I could get ANY extension working. So I add the line:
require_once( "$IP/extensions/Footnote/Footnote.php" );
and do 'php5 update.php',
but this time update.php gives no response, nothing shows up in the /var/log/wiki.log either. The Footnote extension is not enabled. Hmmm seems that our wiki server is somehow crippled for extensions. I may need to just reinstall the whole thing. How can I do this without losing all the current content? Or maybe there is another option to troubleshoot this issue? Please help? 72.224.62.198 22:42, 26 May 2014 (UTC)
Did you ever find a solution to this? I have the exact same problem. I'm running fedora 20. I keep getting "unknown error". I have followed every step. I have given up. Mfort123 (talk) 04:57, 16 October 2014 (UTC)
Mfort123, please create a NEW post for this. You say you have the exact same problem, but the original poster didn't mention unknown error Ciencia Al Poder (talk) 09:41, 16 October 2014 (UTC)

$output-> query results into an array

I would like to output an array in my extension code. How do I $output-> this array? $output->addWikiText( $page_id ); doesn't seem to work, how do I do equivalent of print_r? My code is: $page_id = array(); foreach($res as $res1){

$page_id[] = $res1->cl_from; $output->addWikiText( $page_id ); } LTech (talk) 06:42, 27 May 2014 (UTC)

Hello, what you want to do? You know, that addWikiText adds the html parsed wikitext in first argument to the output buffer? If you want to parse some wikitext, you can use an instance of Parser using method parse: https://doc.wikimedia.org/mediawiki-core/master/php/html/classParser.html#a0e3f2edd4bd47376953dfad4dcfc9c74
Good luck! Florianschmidtwelzow (talk) 08:18, 27 May 2014 (UTC)
How do I output the results of an array in an extension.
I have the query:
$dbr = wfGetDB( DB_SLAVE );
			$res = $dbr->select(
				'categorylinks',  array( 'cl_to', 'cl_from' ), 
                                 array('cl_to IN' . $categories),
				__METHOD__,                              
				array( 'ORDER BY' => 'cl_from ASC' ) 
			);
I would like to put the results of the query into an array and output it into the browser so I can read what is in the array. How do I do this? LTech (talk) 09:35, 27 May 2014 (UTC)
Basically how to I use print_r(); in an extension inorder to show the results of an array on the page, not at the top of the screen? LTech (talk) 09:43, 27 May 2014 (UTC)
> how to I use print_r(); in an extension inorder to show the results of an array on the page
Basically: never :) You never output anything in your code directly (using print(), print_r(), echo or something else). You ever use the Class OutputPage to add Content to the output of the page. So, if you want to add some html code, you simply get the instance of OutputPage (e.g. $wgOut) and use addHTML: $wgOut->addHtml( 'HTML-Content' );
Depending on which hook you used to run your extension functions, the output will be displayed at the point the hook runs (in OutputPage-output). See for further information: https://www.mediawiki.org/wiki/Manual:Special_pages#OutputPage-.3EaddHTML.28.29 Florianschmidtwelzow (talk) 10:54, 27 May 2014 (UTC)

Private wiki database error

Hi, I have a private mediawiki wiki that has been running fine for years. Today I uploaded two images (no problem), added the images to two different pages (no problem). Then I went to add some text to one of the pages and I got a database error. I do not know what any of this means.

Here is what it says when I try to go to any page now:

A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was: SELECT value,exptime FROM `objectcache` WHERE keyname = 'wikidb:pcache:idhash:102-0!1!0!!en!2' LIMIT 1 from within function "SqlBagOStuff::get". Database returned error "1030: Got error 134 from storage engine (mysql)".

When I try to edit the page that seemed to cause the issue, it spits out this:

A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was: INSERT INTO `objectcache` (keyname,value,exptime) VALUES ('wikidb:pcache:idhash:102-0!1!0!!en!2',' ...lots of gibberish here... ,'20140528140408') from within function "SqlBagOStuff::set". Database returned error "1062: Duplicate entry 'wikidb:pcache:idhash:102-0!1!0!!en!2' for key 'PRIMARY' (mysql)".

I don't really know PHP or mySQL at all, I went through tutorials to set up my mediawiki and make it private, so please keep that in mind when you answer. My mediawiki is hosted on a yahoo small business webserver.

The versions of PHP, mySQL and mediawiki are:

MediaWiki 1.16.2 PHP 5.3.6 (cgi-fcgi) MySQL 5.1.55

Again, this is a private wiki with sensitive family information (used for genealogy research) so I can't really post a link. I am the only person to regularly accesses the site so it must have been something I did, but I can't seem to undo it. 67.82.170.160 (talk) 14:15, 27 May 2014 (UTC)

Hi!
The relevant line is
> Database returned error "1062: Duplicate entry 'wikidb:pcache:idhash:102-0!1!0!!en!2' for key 'PRIMARY' (mysql)".
This means that a row could not be added to the table, because there already is another row with the same primary key. The table with the problem is objectcache, which only holds cache data. Its content can be deleted as it will be regenerated when needed. You can go to MySQL and do a TRUNCATE on the objectcache table:
TRUNCATE TABLE objectcache;
This removes all content from the objectcache table, which should solve the problem. 88.130.75.143 14:32, 27 May 2014 (UTC)
Thank you for your reply. As I said this is on a Yahoo Small Business web server and I am not adept at MySQL, so I'm not sure how I would 'go to mySQL' and 'do a TRUNCATE'
There is an option in the Yahoo admin tools to repair a database, so I tried that. unfortunately I then got another error message when I tried to view my wiki saying that the repair failed. Luckily I backup the database now and then so I was able to use the yahoo admin tool to do a restore and that worked (of course, I lost anything I had added after that point but that wasn't much).
I would like to know if there is a way of preventing that initial error in the future... 67.82.170.160 15:09, 27 May 2014 (UTC)
I have checked how Yahoo Small Business web servers are set up and it seems like you only have limited access to MySQL. Usually in their menu, it is called "database mangement" or something like that. A tool, which is very often offered to do things with the database is phpmyadmin; maybe they offer that. A quick look at their site shows these features are not available on the basic plan. If you're on the Advanced or Premier plans, you should have them.
As to why this problem occured: I don't know. Maybe the objectcache somehow got corrupted. If your backup was old enough (I guess a few days should mostly do), MediaWiki should throw away the old stuff it now found in the objectcache table, which effectively fixes the issue as well. Although this problem should not happen, it is nothing to be terribly worried about; after all that is only cache data. 88.130.75.143 16:09, 27 May 2014 (UTC)

set up database on a different server

I am trying to use a different server as database server for mediawiki. When I set it up, I put the ip address of that server (128.148.16.166) and the setting page threw a DB connection error. Then I tried to put the database on the same server(128.148.16.167). It still gives me error when I put ip address in the settings, while it works if I just type in "localhost". I cannot figure out why is this. I thought "localhost" should be exactly the same thing as "128.148.16.167". What should I do to fix it so that I can use a different server as database. 128.148.55.46 (talk) 21:03, 27 May 2014 (UTC)

> I thought "localhost" should be exactly the same thing as "128.148.16.167"
Nope, localhost is 127.0.0.1 ;)
Can you say, what error message exactly appears? I have tried a connection with this: http://www.rainbowspuppiessunshine.com/tools/dbtest/index.php
And the error is, that the connection was refused, so maybe a firewall or a restriction of the database provider/hoster to not connect from other servers maybe :) Florianschmidtwelzow (talk) 06:46, 28 May 2014 (UTC)

SELECT DISTINCT for a query

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

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

Open MediaWiki from a second computer

Hi, I installed MediaWiki on a Computer with the Newcomers Guide (https://www.mediawiki.org/wiki/Manual:Newcomers_guide_to_installing_on_Windows), the Easy Simple Setup. If I try to open my installed wiki from another computer it looks like this: http://www.directupload.net/file/d/3636/2hkijaub_png The installed Version is 1.22.6. 178.202.76.155 (talk) 16:46, 28 May 2014 (UTC)

Have you checked the server logs? There might be some HTTP 5xx issues with CSS, I guess. See http://www.mediawiki.org/wiki/Manual:How_to_debug AKlapper (WMF) (talk) 13:05, 29 May 2014 (UTC)
sry but your link did not help me, can you be a bit more precise please? 178.202.76.155 14:56, 29 May 2014 (UTC)
I don't know what your server hosting software is, so hard to be more precise... :) I expect that your server hosting software has logs though that migth expose some issues. AKlapper (WMF) (talk) 16:39, 29 May 2014 (UTC)
As I already said in my first post I installed with the Easy Simple Guide, so I have installed XAMPP, Apache as Server. 178.202.76.155 20:06, 29 May 2014 (UTC)
In that case, check out Apache's error log file after accessing the wiki. AKlapper (WMF) (talk) 20:22, 29 May 2014 (UTC)
Does the wiki look fine if accessed from the same computer where it's hosted (aka, using "localhost" for the domain name)? If so, it may be a problem with $wgServer
See also Manual:Errors and symptoms#The wiki appears without styles applied and images are missing Ciencia Al Poder (talk) 09:23, 30 May 2014 (UTC)
Yes from the computer where it is installed it looks fine. @Ciencia Al Poder First thank you, now what should i do know with the $wgServer? Sry but I don't figure out your posted link $wgServer! 178.202.76.155 14:42, 30 May 2014 (UTC)
Hi!
You should change the value of $wgServer. What you should set there is not the word "localhost" or the IP address "127.0.0.1" (this is what you are using currently). Instead what you should set is the IP address, under which the server is reachable from other PCs. Meaning: Set it to the IP (or to the domainname, if you have one), which you use to access pages on this PC, if you call them from another PC. Basically: The first part of what you put in the address bar, when you use another PC to open a page on that server. 88.130.81.250 14:50, 30 May 2014 (UTC)
hi thanks a lot that worked out, I changed it to the computers IP, now it looks the same from the second computer, but there is a error on the main page which says "Notice: Uncommitted DB writes (transaction from DatabaseBase::query (LCStore_DB::get)). in C:\xampp\htdocs\mywiki\includes\db\Database.php on line 3944"
Could you also help me with that? 178.202.76.155 16:46, 30 May 2014 (UTC)
Nice to hear that you got it working! :-)
For the uncommitted DB writes, I fear no one will be able to help you. The source of this error is somewhere inside MediaWiki and until now no one found the place(s) where this happens. I am sure it also is reported in Bugzilla, but there is no solution to that one currently.
The usual workaround for this problem is to change the error reporting settings of PHP by setting them to a level, at which notices are no longer displayed. Another option would be to configure PHP in a way so that errors (like notices) are no longer displayed on the screen at all.
At least this notice does not influence the correct function of MediaWiki (as far as we currently know). 88.130.81.250 16:50, 30 May 2014 (UTC)
Ok thanks for the fast reply, is their an easy way to change the php settings that this error doesn't appear? Or would it work if I install an older version of MediaWiki? 178.202.76.155 17:15, 30 May 2014 (UTC)
It does not really depend on the version of MediaWiki - also older versions are affected (and downgrades are not really supported, meaning: Things would break...).
You can change the display of errors in php.ini by setting display_errors to Off like so
display_errors = Off
After that restart the webserver for the changes to take effect. 88.130.81.250 17:35, 30 May 2014 (UTC)
Thanks 178.202.76.155 13:59, 31 May 2014 (UTC)

Installing Extensions Help

Hi, I'm new to MediaWiki. The wiki page I'm editing and the server it's being hosted on, is all on one computer. Is it required to be connected to the server in order to properly install extensions? Any help on installing extensions correctly would be greatly appreciated! Thanks! SCVWD14 (talk) 18:56, 28 May 2014 (UTC)

Hi!
Extensions are files in the file system of the server (and possibly some information in the wiki database). That means: In order to install an extension, you must be able to save files on the server, precisely in the folder extensions/ inside your MediaWiki installation. Possibly you have to run the database updater afterwards to update the database - this can be done with the webbrowser using the web-updater in <URL to your wiki>/mw-config. 88.130.116.67 19:45, 28 May 2014 (UTC)
Thank you for the help! My wiki page is not public, so what if I don't have a URL to insert in the web-updater?
I also forgot to provide version info in my last post -
MediaWiki 1.21.2
PHP 5.4.20 (apache2handler)
MySQL 5.5.32 SCVWD2014 (talk) 20:10, 30 May 2014 (UTC)
But you are somehow using your wiki. When you say you don't have a URL, I guess you mean that you don't have a domain name. In that case, enter the IP address, which you use to access the wiki. For example when you access a wiki page with
http://185.194.28.34/w/index.php?title=Main_Page
then you can access the web updater at
http://185.194.28.34/w/mw-config 88.130.81.250 01:34, 31 May 2014 (UTC)

Infobox not working

Hi - I am having no end of problems with my infobox's in MediaWiki 1.21.1. So far I have: updated Parser Functions; updated Scribuntos; copied the Wiki Template:infobox into my wiki. Still the box doesnt appear, and now all content is on the right. See here: http://www.modelhorsepedigrees.com/wiki/index.php?title=Blank_model

I really need help. They once worked, long ago, but now nothing. The template links are:

http://www.modelhorsepedigrees.com/wiki/index.php?title=Template:Infobox_racehorse http://www.modelhorsepedigrees.com/wiki/index.php?title=Template:Infobox

This is driving me nuts. I've had others look at it, but no one can see what is wrong. Any ideas? I've stripped out content in my last ditch attempt to get things to work. Pinnygik (talk) 20:59, 28 May 2014 (UTC)

Oh, and I cant export at all from Wiki. Just doesnt do anything, and I dont have access to Special:Export. Pinnygik (talk) 21:00, 28 May 2014 (UTC)
Export from what wiki? Nemo 07:23, 29 May 2014 (UTC)

Mediawiki Hanging with no errors.

MediaWiki 1.22.6 PHP 5.4.0 (cgi-fcgi) MariaDB 5.5.33a-MariaDB Windows 2008 R2 on IIS

I'm having a huge problem with my site,and I'm feeling completely lost. Any help is hugely appreciated.

So Google is rapidly crawling my site for the first time, and now it's hanging. It's hung in the past, but never at this rate. IisReset fixes it temporarily for about 30 min to 2 hours. Sometimes if I'm not around to reset it, whatever bad process there is will time out, and the site will resume. I see in task manager that there are multiple php-cgi processes, and they aren't doing anything when it happens. MySQL shows a process of sleep, that grows to grow in time, and as more hits come, more sleeps begin to queue up. I thought this might be an issue with $wgJobRunRate, and $wgPhpCli, but I feel like I've tried everything without any luck. The only thing I've managed to do is fill up my job queue with 1000s of refreshLinks jobs. Setting $wgJobRunRate to 0 or 0.01 slows the growth, but 1 causes it to grow by the thousands. For $wgPhpCli I've tried leaving it out, "", false,"C:\Program Files (x86)\PHP\v5.4", "C:\Program Files (x86)\PHP\v5.4\php.exe", all without luck.

Of course job queue may not be the issue. I am getting 500 errors in IIS logs, but could be the iisreset on loading pages. Php doesn't show any errors. I'm kind of freaking out here, so any new ideas will help! 173.173.115.108 (talk) 22:48, 28 May 2014 (UTC)

The on-request job queue in 1.22 is a fail. Simply.
> Setting $wgJobRunRate to 0 or 0.01 slows the growth, but 1 causes it to grow by the thousands
I don't understand this. What is growing here? refreshLinks jobs or php-cgi processes? Setting $wgJobRunRate to 0 should eliminate the problem of spawning new php process for each request. Of course, that would make the number of jobs to grow as you edit your pages. The solution would be to execute runJobs.php manually, or set $wgPhpCli to false and $wgJobRunRate to a low value (0.1, 0.01).
Google bot is known to bring down entire sites when crawling the site at a gazillion pages per second. And your setup (using PHP as CGI) is particularly not helping because it is slower than a PHP module in apache. Be sure to have cache enabled. Particularly, the file cache may be helpful.
Apparently you can tell Google to slow down the crawl rate for your site: https://support.google.com/webmasters/answer/48620 Ciencia Al Poder (talk) 09:37, 29 May 2014 (UTC)
Thanks for the reply. I made a few changes, and the site stayed up all night. Of course, now I'm not sure which change did it.
I disabled wincache, and commented out a lot of the caching. That part of the localsettings page now looks like this:
#$wgMainCacheType    = "wincache";
$wgMemCachedServers = array();
#$wgMessageCacheType = "wincache";
$wgCacheDirectory = "$wgScriptPath/cache";
$wgUseLocalMessageCache = true;
#$wgParserCacheType = "wincache";
$wgUseGzip = true;
$wgEnableSidebarCache = true;
# NO DB HITS!
$wgDisableCounters = true;
$wgMiserMode = true;
$wgJobRunRate = 0;
#$wgPhpCli="C:\Program Files (x86)\PHP\v5.4\php";
#$wgPhpCli=false;
$wgAntiLockFlags = ALF_NO_LINK_LOCK | ALF_NO_BLOCK_LOCK;
#$wgSessionsInObjectCache = true;
One big issue I found when running jobs manually, is when updating my template that serves over 13 million pages, it causes a single update job, which when run causes thousands of cache and refreshlinks update jobs in the job table. I get why, but I'm thinking it's unnecessary with cache disabled.
Also, another thing that may have fixed it was changing the fastcgi settings Max Instances to 40. I never saw more than 4 or 5 processes in task manager though, so not sure about that one.
I'm going to leave it like this for a few days, and if all is good, I'll start re-enabling one by one. 173.173.115.108 14:12, 29 May 2014 (UTC)
You can also try Manual:File cache Ciencia Al Poder (talk) 20:59, 29 May 2014 (UTC)

Images and infobox not working

I have been trying to set up a new Wiki but it just not playing ball. Firstly, after hours of research, I have got a infobox to appear but it wont float over to the right and embed in the page. Secondly, no images will show despite being uploaded. I'd appreciate any help!

Please see http://www.modelhorsepedigrees.com/wiki/index.php?title=Blank_model

The images just show as a broken link to a blank page (i.e. a red link). The images are uploaded.

Driving me mental! Please help! Pinnygik (talk) 23:02, 28 May 2014 (UTC)

I just checked the image problem and it seems you could already fix that: I do see the horse and also - when I click the image - the according thumbnails. 88.130.116.67 01:46, 29 May 2014 (UTC)
Floating the box right does work for me, when I add the float to the styles attribute of the table with class "infobox biota", e.g. like so:
 <table style="width: 22em; text-align: left; float:right; font-size: 88%; line-height: 1.5em;" styleclass="infobox biota">
 ...
 </table>
88.130.102.71 10:24, 29 May 2014 (UTC)

References that are covered with false redirects

Hi. At the wiki where I'm an active editor there are disagreements between the active editors regarding the following scenario:

  • There's a page entitled Foo having some content.
  • There's a redirect page entitled Bar having good old #REDIRECT Foo
  • In some cases, where a reference to the Bar should or must be used:
    • some people, me too, use [[Bar]] to refer the Foo page indirectly via the redirect
    • other people use the second way specifying both content and redirect pages [[Foo|Bar]] just because they say it won't display "This page is redirected..."

Frankly speaking, I consider the second way dirty and an overkill very much.

  • However, which way is "ideologically" correct?
  • How do I find all the links that are coded according the second way?

Thanks.

L. Sh. (195.234.75.155 09:30, 29 May 2014 (UTC))

Moved my wiki, now all I can see for each page is the title... Help

Like the title states, I moved my wiki from a Debian box over to my synology disk station (NAS). It has an "app" I could install for mediawiki. I did both (installed from the app and also just moved my files and database over separately).

For this question: lets just focus on the "I moved my installation" and imported the database.

I copied my files by tar'ing the /var/lib/mediawiki directory on my old Debian box, then sent it over to my new "Disk Station". I then un-tar'ed my tarball via ssh and put the permissions for user and group http for all (-R).

I then had to modify the LocalSettings.php file to work on the new environment, it was only a few things I had to change.

Anyway, long story short, the wiki is accessible, I can login, the database is intact (all pages are there). However, when visiting any and all pages, all I can see is the title. There is no body content.

If I choose to Edit the page, I can see all of the content within. I tried to save one and the result was the same = title only with no body.

Has anyone ran into this issue before? Any help is much appreciated, as I feel like I have tried everything I can think of. 70.89.234.81 (talk) 18:37, 29 May 2014 (UTC)

I just want to add, I was using the Vector skin. I have changed it to a few different skins to see if it was skin related and the results are the same.
I do have WySIWYG installed, but no other extensions besides that. 70.89.234.81 18:57, 29 May 2014 (UTC)
also, forgot to point out, This wiki is running version 1.20.2 of MediaWiki 70.89.234.81 18:59, 29 May 2014 (UTC)
The symptoms you describe happen when you have a version of PCRE, which is above 8.33.
The issue is described in bug 58640. It has been fixed in the current versions of MediaWiki 1.21 and 1.22 and it will also be fixed in the upcoming MediaWiki 1.23. MediaWiki 1.20 however is no longer supported. It does no longer receive bugfixes (like this one), but even more important: It also does no longer receive security updates. You should now upgrade your wiki to one of the versions I mentioned, which will fix the error. 88.130.102.71 01:02, 30 May 2014 (UTC)

Replacing login Page

Versions: MediaWiki: 1.22.6 PHP: 5.3.10 Database: MySQL 5.5.37

I would like to replace the authorization for access to the wiki with a separate web page. On this separate web page, the user will log in and, upon authorization, will receive access to a variety of tools, one of which is the wiki. The wiki needs to remain private, but I would like to remove the default authorization / login system that is built in to MediaWiki. If anyone could give me some pointers to get started with this that would be much appreciated. Jugglingman456 (talk) 20:12, 29 May 2014 (UTC)

If anyone else is comes across this, I have found two extensions that will be of great help to me:
https://www.mediawiki.org/wiki/Extension:LDAP_Authentication/Smartcard_Configuration_Examples
https://www.mediawiki.org/wiki/Extension:SSL_authentication Jugglingman456 (talk) 14:15, 30 May 2014 (UTC)

[RESOLVED] Can't connect to my remote MySQL database that uses a custom port

I am installing a MediaWiki software witht he given versions:

MediaWiki 1.22.6 PHP 5.3.3 (apache2handler) MySQL 5.1.73

I am not able to connect to my database, in my LocalSettings.php, I have $wgDBserver = "myServer:MyPort"; because it is MySQL and therefore can't use $wgDBport.

The problem is that I still can't connect.

In my wiki's server, I can execute the mysql -h server -P port and I am able to connect.

Is there any known issue taht prevents connection to custom ports?

I can't log my wiki URL beucase it is not public, sorry.

thanks! 189.76.144.183 (talk) 22:16, 29 May 2014 (UTC)

Hi!
According to Manual:$wgDBserver using a port like $wgDBserver = "localhost:3308" is broken in MediaWiki 1.22.
More information are in bug 58153 - according to that bug it has been fixed in MediaWiki 1.22 by the end of March, so that the fix should be included in MediaWiki 1.22.6, which is from end of April. So if you have a current version, then this code
https://gerrit.wikimedia.org/r/#/c/119735/1/includes/db/DatabaseMysqli.php
obviously is not working properly for you. You might want to check, what $realServer and $port are set to in your case. 88.130.102.71 00:53, 30 May 2014 (UTC)
Thanks for the feedback. I think I will wait for the version 1.22.6 and then upgrade it 189.76.144.183 15:55, 30 May 2014 (UTC)
Above you have written that you are already using version 1.22.6 - or is that wrong? (That was what made me think that the bugfix obviously does not work properly...) 88.130.81.250 16:03, 30 May 2014 (UTC)
I've tested that on 1.22.7 and I can confirm that $wgDBserver works with a port in $wgDBserver.
But also note that a port number won't work if you specify localhost as the host name. Using localhost as the host name uses the socket, ignoring the specified port number (if any). Ciencia Al Poder (talk) 11:49, 1 June 2014 (UTC)
Thanks for investigating; I have updated Manual:$wgDBserver accordingly. 88.130.82.244 12:33, 1 June 2014 (UTC)
Good grief... after hours of beating on this and wondering why this does't work... glad to have found this! 199.255.83.46 18:26, 12 June 2014 (UTC)

[RESOLVED]How to add a checkbox "license read confirmation" into the usercreate.php

How to add the data['readlicense'] and how to check it into my personal mediawiki

I have add two messages into the MessagesFr.php 'userlogin-licenseRead' (title of the checkbox) and 'login-abort-license-not-read' (for error report) into the MessagesFr.php

I think that in Usercreate.php it is necessary to add something like

<label class="mw-ui-checkbox-label">
<input name="wpReadLicense" type="checkbox" value="1" id="wpReadLicense" tabindex="9"
    <?php if ( $this->data['readlicense'] ) 				
   echo 'checked="checked"';
} ?>
>                                                                    
<?php echo $this->getMsg( 'userlogin-licenseRead' )?>

but i don't understand where define 'readlicense' and how to perform the check ans output error if this checkbox is not accept?

Is somebody could give me the right coding or the procedure and the list of files to modify (API ?)?

Great thank 78.206.72.23 (talk) 12:17, 30 May 2014 (UTC)

Trust me, you don't want to hack MediaWiki core. You'll rather want to install an extension, such as NewSignupPage, to achieve the desired functionality. Jack Phoenix (Contact) 00:24, 1 June 2014 (UTC)
Many thank for your answer Jack : I didn't know this extension and it was exactly what I was looking for 78.206.72.23 21:45, 1 June 2014 (UTC)

mobilefronted extension

hi how can I get mobilefrontend to work so that I doint need to upload the same mediawiki files and extensionand just use the same database and same mediawiki files from the main site. my site is http://en.random-wikisaur.tk mediawiki version 1.24 wmf7 86.155.238.203 (talk) 17:32, 31 May 2014 (UTC)

Meaning how can I use mobilefrontend without needing to upload the full Mediawiki file. And use use for example m.en.random-wikisaur.tk 86.155.238.203 07:45, 1 June 2014 (UTC)
Hello, sorry, what you mean? :) If you have MediaWiki installed, you can install the MobileFrontend Extension from here:
https://www.mediawiki.org/wiki/Extension:MobileFrontend
If you don't have installed MediaWiki, you can not use MobileFrontend :) Florianschmidtwelzow (talk) 05:19, 2 June 2014 (UTC)
Hi I have Mediawiki installed but how does wikimedia do it. Because they doint create a subdomain for example en.m.wikipedia.org and re install Mediawiki. 5.66.153.135 09:56, 2 June 2014 (UTC)
You mean, you wont use subdomains? That's no problem ;) The Extension has a stand alone mobile device detection:
https://www.mediawiki.org/wiki/Extension:MobileFrontend/Configuring_browser_auto-detection
And the user can switch manually using the link in footer :) Florianschmidtwelzow (talk) 19:05, 2 June 2014 (UTC)
Hi mum I will use a subdomain but how can I get it to work by using the existing Mediawiki on the en folder on my website. 86.135.251.100 22:00, 2 June 2014 (UTC)
Hey :) You can use the wgMobileUrlTemplate Configuration setting. But first you must install MobileFrontend (http://en.random-wikisaur.tk/wiki/Special:Version). Florianschmidtwelzow (talk) 06:50, 3 June 2014 (UTC)
Sorry I said mum it was a spelling mistake sorry 86.135.251.100 08:08, 3 June 2014 (UTC)

Running Maintenance Scripts for GoDaddy SSH

My wiki, texascenturyclub.org has been down for a week because my database is over its size limit. I want to run deleteOldRevisions.php and deleteArchivedRevisions.php

I'm having to use /usr/local/php5/bin/php to execute the script I'm getting the error:

[dsarkozi@p3nlh301 maintenance]$ /usr/local/php5/bin/php deleteOldRevisions.php --delete

Warning: require_once(__DIR__/Maintenance.php): failed to open stream: No such file or directory in /home/content/d/s/a/dsarkozi/html/maintenance/deleteOldRevisions.php on line 25

Fatal error: require_once(): Failed opening required '__DIR__/Maintenance.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/d/s/a/dsarkozi/html/maintenance/deleteOldRevisions.php on line 25 [dsarkozi@p3nlh301 maintenance]$ Dsarkozi (talk) 21:53, 31 May 2014 (UTC)

Hi!
I already have an idea of what might be wrong in your case. On the shell, please run php -v. Which PHP version does it tell you do you have there? 88.130.115.216 00:41, 1 June 2014 (UTC)
It returns PHP 5.2.17
It occurred to me last night that it might be because Godaddy as disabled the database because its over sized, I'm going to call today and see if that's the case. Dsarkozi (talk) 12:24, 1 June 2014 (UTC)
I don't know, what GoDaddy does - maybe they do strange things. ;-)
However, your problem is something else: When you execute php ... on the shell, you have PHP version 5.2. This version is to old and MediaWiki cannot work with it. Reading your error message that also was what I expected.
I remember that I have answered the same question some time ago already; here it is: Project:Support desk/Flow/2013/01#h-[RESOLVED]_Having_trouble_running_update.php-2013-01-19T20:04:00.000Z
At that time GoDaddy said they just do not offer PHP 5.3 on the shell:
Due to the nature of shared hosting, SSH will not be able to access PHP 5.3 (...) 
If you require this ability, you would need to use a virtual private or dedicated 
server.
I think it's noteworthy that GoDaddy at least does no longer give you PHP 4.4.9 as they still did in 2013. However, just like before it is still the case that they only give you an old version, which with current software just is unusable. I don't know how much you pay for that hosting, but maybe you want to spend your money somewhere else - where you really can use your software. 88.130.82.244 12:48, 1 June 2014 (UTC)
hi try updating php to 5.3 or later and if MySQL is lower then 5 please upgrade it and please upgrade mediawiki to 1.22 or higher and then re download the update for the extension for the version of mediawiki you have. 86.155.238.203 13:09, 1 June 2014 (UTC)
Dsarkozi, don't do it. You do not need another MySQL version and since we don't know what MediaWiki version you use it also does not make sense to philosophize whether you should upgrade MediaWiki or not. And even if you did (which - given the circumstances - I don't recommend): It will not change anything about your problem. All you need is a newer PHP version on the shell.
GoDaddy for obvious reasons will not let you update PHP: They charge people more, when they want to have a usable PHP version on the shell. So you now have two possibilities: You either continue paying a company of which at least in my opinion the business conduct is not OK. So you can either throw even more money at this company in the hope that things somehow work better with a more expensive package. Or you directly change to a host, who just offers a usable environment without the need to pay extra. 88.130.82.244 13:27, 1 June 2014 (UTC)