Jump to content

Project:Support desk/Flow/2016/12

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


Updated to 1.28 today and i cannot get the SyntaxHighlight_GeSHi working

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 used the 1.28.0 downloadable tar.gz file from the official download page.

I am running on FreeBSD 9.1-RELEASE-p3

The wiki is working normally after upgrade in that it shows all my pages, files, etc. However, all my highlights in bash, perl, python, etc. are showing up like <pre> sections instead of with colors like they normally did before the upgrade. Here is the output of my Version page:

Product Version
MediaWiki 1.28.0
PHP 5.6.27 (apache2handler)
MariaDB 10.0.27-MariaDB
ICU 58.1

Entry point URLs

Entry point URL
Article path /wiki/$1
Script path /w
index.php /w/index.php
api.php /w/api.php
load.php /w/load.php

Installed skins

Skin Version License Description Authors
MonoBook GPL-2.0+ The classic MediaWiki skin since 2004, named after the black-and-white photo of a book in the page background Gabriel Wicke and others

Installed extensions

Parser hooks
Extension Version License Description Authors
SyntaxHighlight 2.0 (65073ad)17:03, 24 October 2016 GPL-2.0+ Provides syntax highlighting <syntaxhighlight> using Pygments - Python syntax highlighter Brion Vibber, Tim Starling, Rob Church, Niklas Laxström, Ori Livneh and Ed Sanders

I have made sure the pygmentize binary is executable and i've run it myself with -V and got version 1.21 which is in the 1.28.0 mediawiki tar.gz.

Does anyone have any idea of anything I might have missed?

<syntaxhighlight lang="bash">

#!/usr/local/bin/bash

echo -ne "ada0 : " && smartctl -a /dev/ada0 | grep Temp | awk '{ print $10 }'

echo -ne "ada1 : " && smartctl -a /dev/ada1 | grep Temp | awk '{ print $10 }'

echo -ne "ada2 : " && smartctl -a /dev/ada2 | grep Temp | awk '{ print $10 }'

echo -ne "ada3 : " && smartctl -a /dev/ada3 | grep Temp | awk '{ print $10 }'

echo -ne "ada4 : " && smartctl -a /dev/ada4 | grep Temp | awk '{ print $10 }'

echo -ne "ada5 : " && smartctl -a /dev/ada5 | grep Temp | awk '{ print $10 }'

</syntaxhighlight>

RESULT:

#!/usr/local/bin/bash
echo -ne "ada0 : " && smartctl -a /dev/ada0 | grep Temp | awk '{ print $10 }'
echo -ne "ada1 : " && smartctl -a /dev/ada1 | grep Temp | awk '{ print $10 }'
echo -ne "ada2 : " && smartctl -a /dev/ada2 | grep Temp | awk '{ print $10 }'
echo -ne "ada3 : " && smartctl -a /dev/ada3 | grep Temp | awk '{ print $10 }'
echo -ne "ada4 : " && smartctl -a /dev/ada4 | grep Temp | awk '{ print $10 }'
echo -ne "ada5 : " && smartctl -a /dev/ada5 | grep Temp | awk '{ print $10 }' 50.106.19.97 (talk) 01:03, 1 December 2016 (UTC)
Check for any errors in the browser console, perhaps an error is preventing the styling from loading. 58.164.108.250 (talk) 06:34, 1 December 2016 (UTC)
You have made the pygmentize binary executable by "User" or "World"? AhmadF.Cheema (talk) 07:28, 1 December 2016 (UTC)
It's world executable 50.106.19.97 (talk) 12:58, 1 December 2016 (UTC)
Try setting the rights to allow "User" to be able to execute too and then try again. AhmadF.Cheema (talk) 13:07, 1 December 2016 (UTC)
Here is the output of the permissions on the binary:
drwxr-xr-x  2 www  www       7 Nov 28 11:21 .
drwxr-xr-x  7 www  www      19 Nov 28 11:21 ..
-rw-r--r--  1 www  www    7326 Nov 28 11:21 AUTHORS
-rw-r--r--  1 www  www    1330 Nov 28 11:21 PYGMENTS_LICENSE
-rw-r--r--  1 www  www       4 Nov 28 11:21 VERSION
-rwxr-xr-x  1 www  www    1852 Nov 28 11:21 create_pygmentize_bundle
-rwxr-xr-x  1 www  www  754672 Nov 28 11:21 pygmentize Octavianh (talk) 18:00, 2 December 2016 (UTC)
These permissions should've worked, so the issue is probably somewhere else.
See this phabricator task opened for this bug, maybe you will find something here which helps. AhmadF.Cheema (talk) 18:44, 2 December 2016 (UTC)
i'm getting this error in debug:
[Preprocessor] Cached preprocessor output (key: wiki:preprocess-xml:6a88b2bdb1bee6bbf0a2a002f1d79c5d:0)
[error] [694ffd93e3aebc31d7e87cf8] /wiki/FreeBSD_arc_summary.pl   ErrorException from line 311 of /data/www/www/mediawiki/includes/debug/MWDebug.php: PHP Notice: Failed to invoke Pygments: env: python: No such file or directory
[Called from SyntaxHighlight_GeSHi::highlight in /data/www/www/mediawiki/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php at line 296]
i verified and i have the following package installed:
py27-pygments-2.1.3
path:
-rwxr-xr-x  1 root  wheel  399 Nov 30 12:24 /usr/local/bin/pygmentize
what is the option to point to an external pygmentize binary in LocalSettings? Octavianh (talk) 19:24, 2 December 2016 (UTC)
fixed, i used this:
$wgPygmentizePath = "/usr/local/bin/pygmentize";
This was quite the nightmare but it's working now.
thanks Ahmad. Octavianh (talk) 19:27, 2 December 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Problem with autoload file.

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


Hi,

After updating to 1.28 file "autoload.php" every few minutes automatically changes the file name to "autoload.php.off.php" and displays a blank page. How to fix it?

Edit: The interesting thing is that on the local host (xampp) everythings works very well. I don't know what's going on. PHP Info http://bit(dot)ly/2gKGZzz

Regards Henry NH35 (talk) 03:19, 1 December 2016 (UTC)

I think it has to do something from the server side because for security purposes some restrictions are put on .php files to stop them from being executed etc.
.htaccess code might give some clue if the hosting service isn't the one automatically putting some restrictions. I would suggest asking the hosting service. AhmadF.Cheema (talk) 05:06, 1 December 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Question about sorting

Is it - or will it be - possible for other extensions such as Semantic MediaWiki to use $wgCategoryCollation and rely on options such as <tt>uca-default</tt>, etc. for their own listings (rather than just MW's native category listings)? Any hooks that can be used, for instance? Cavila 09:35, 1 December 2016 (UTC)

Problems with SyntaxHighlight Extension

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 have some questions. In mediawiki sandbox when you create a block code (with Visual Editor) you have suggestions when you write (class, def, ...) and you can tabulate code. ¿What is the extension?. I think is SyntaxHighlight extension but I don't have this charactristics in my personal mediawiki.

My mediawiki version is 1.27 and I've installed VisualEditor and SyntaxHighlight. 83.213.69.15 (talk) 09:37, 1 December 2016 (UTC)

Probably Extension:CodeEditor is needed too? AhmadF.Cheema (talk) 10:12, 1 December 2016 (UTC)
AhmadF.Cheema Thanks. With CodeEditor I can do that (tab my text).
Do you know what is the extension that suggest you keywords (class, def...)? 83.213.69.15 (talk) 10:28, 1 December 2016 (UTC)
By suggestions do you mean when just ar is written, a dropdown appears suggesting "array"?
This feature should be already working, maybe it is an issue with the MediaWiki and VisualEditor versions being newer on wikimedia Wikis as compared to yours. AhmadF.Cheema (talk) 11:57, 1 December 2016 (UTC)
1.28 version implements this characteristic. Thanks for everything AhmadF.Cheema. 83.213.69.15 (talk) 12:14, 1 December 2016 (UTC)
Always welcome. AhmadF.Cheema (talk) 12:30, 1 December 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Search text

I have no results when I try to search text with quotation marks. How can I do it? 94.143.79.53 (talk) 12:21, 1 December 2016 (UTC)

The text I've tried to search is "Hello". This word can't be searched. You have no results. I've tried it with other words and works well. 37.252.179.215 (talk) 14:26, 1 December 2016 (UTC)
Try insource:/\"Hello\"/ FriedhelmW (talk) 14:36, 1 December 2016 (UTC)

Changing a page title

I would like to change the title of a page. I have created an account and looked in your help section but I cannot see an EDIT tab at the top of the page - I would be grateful for some help.

I am trying to change this page title: ID Business Solutions Ltd. ----> IDBS

Thanks in advance for your help.

Alex Alexbstone 14:02, 1 December 2016 (UTC)

What you want to do is called moving a page.
Note however that there are certain rules as to which name an article should be under. I don't know, if it should be ID Business Solutions Ltd. or IDBS in this case. 87.123.21.22 (talk) 15:06, 1 December 2016 (UTC)
If by "ID Business Solutions Ltd." you meant the page here: http://www.limswiki.org/index.php/ID_Business_Solutions_Ltd., you should also know that this support forum is for support questions for MediaWiki (the software used to run limswiki.org) and there is most likely no formal association between the two.
You might need to ask at limswiki.org about their policies for moving/renaming a page. AhmadF.Cheema (talk) 15:51, 1 December 2016 (UTC)
When I wrote that there would be rules for the name, then I thought of Wikipedia as the wiki to edit. 87.123.21.22 (talk) 16:26, 1 December 2016 (UTC)
Just in case there is some misunderstanding, my comment wasn't directed towards you (87.123.21.22) but towards OP. AhmadF.Cheema (talk) 17:03, 1 December 2016 (UTC)

¿Cómo quitar la barra lateral de Firebug?

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.


Alguien puede ayudarme, puse firebug como barra lateral y ahora no encuentro alguna opción para regresarlo como panel inferior. Agradeceré cualquier ayuda. Juan1970 (talk) 17:00, 1 December 2016 (UTC)

Welcome to the support desk of the "MediaWiki" software. MediaWiki is not related to Firebug. If you need help with Firebug, please ask in a forum of Firebug. Thanks! Malyacko (talk) 10:11, 2 December 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How do I reuse MediaWiki templates between wikis?

Hello.

While editiing my wikis a lot I noticed that I would like to create a sort of a library out of the templates that are used on all of those wikis (especially the ones that put metadata onto pages in Semantic MediaWiki). This question may be too broad, but what are the best practices of sharing MediaWiki markup between wikis? Would it be possible to make it in "library fashion" somehow so I could put the templates in a certain repository? Another point of such an approach, I think, might be just sharing the templates world-wide, let's say, on GitHub/BitBucket/etc.

Any advices and answers are greatly appreciated! Thank you in advance! 195.234.74.168 (talk) 17:52, 1 December 2016 (UTC)

Of course, templates can be complex, site-specific creatures with dependencies on many other templates, extensions, semantic data, etc., which then also need to be transcluded or enabled on your wiki - simply borrowing a template would not always work out of the box. I think you would need to come up with your own way of managing the templates that you need for your wikis. If you are using SMW, you could use that to store data about their usage and create some sort of a library.
See also: Manual:$wgEnableScaryTranscluding (but the above comment also applies here). Cavila 09:33, 3 December 2016 (UTC)
Hi Cavila, and thank you for the reply. I usually design (if this word applies here well) decoupled templates as much as possible. It brings some complexity and templates amount bloat, but the very main "core" templates are perfect candidates to be reused or demonstrate MediaWiki markup or template techiniques. I thought it might be something like a syncing bridge between a VCS and MediaWiki (have no real idea how it would work though). A few years ago I asked if MediaWiki supports a VCS-integration, but it was never implemented. Another option I thought about was git-remote-mediawiki helper use, but I don't find the latter a reliable solution ignoring non-main namespaces like `Template:` or extremely hard way to rebase the commits in order to put a single file change into a single commit (but it really helped me *very much* to restore a really big part once my wiki crashed and lost its database, though). Anyway thank you very much for the suggestions! 195.234.74.168 (talk) 11:14, 5 December 2016 (UTC)

How to configure wiki page for ldap from web front end

I have the red hat server side controlled by ldap but im not quite understanding how to implement it on the web front end of he wiki? Can anyone assist? Bwfreas (talk) 17:57, 1 December 2016 (UTC)

You might be interested in Extension:LDAP Authentication, which allows to use MediaWIki together with an LDAP server! 87.123.50.152 (talk) 21:15, 1 December 2016 (UTC)

GoogleDocTag

I haven't been able to get this extension to work in 1.27. It has worked in previous versions in my wiki and I verified that I have the google link correctly. I noticed that the extension download page identifies it as a 'beta.' Is there anyone who can confirm that this extension works in 1.27 (or even 1.28)? Can someone suggest a solution? Thank you. http://wiki.worldofasdar.com 04:13, 2 December 2016 (UTC)

There has been a similar report on Extension talk:GoogleDocTag. The code of the extension has last been changed in 2013 - maybe it is just not working with current MediaWiki versions currently. Maybe you can investigate, what the problem is... 87.123.50.152 (talk) 09:15, 2 December 2016 (UTC)
If you're a developer, volunteer to become maintainer? :) See Gerrit/Project ownership AKlapper (WMF) (talk) 10:07, 2 December 2016 (UTC)

LDAP + Mediawiki

Hi,

====

Hi,

I am trying to install in another server mediawiki with auth LDAP on main server. (iredMail really + LDAP)

I have LDAP installed and working on main server and mediawiki running too in another server. Now I want to install plugin LDAP on mediawiki, but I can't do it because I receive some fails.

Info

LocalSettings.php

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

$wgAuth = new LdapAuthenticationPlugin();

$wgLDAPDomainNames = array("iRedMail");

$wgLDAPServerNames = array("iRedMail" => "192.168.XX.XX");

$wgLDAPPort = array("iRedMail" => 389);

$wgLDAPEncryptionType = array( "iRedMail" => "clear");

$wgLDAPBaseDNs = array( "iRedMail"=>"o=domains,dc=example,dc=com");

$wgLDAPProxyAgent = array("iRedMail"=>"cn=vmail,dc=example,dc=com");

$wgLDAPProxyAgentPassword = array( "iRedMail"=>"PasswordBindPW");

$wgLDAPUserBaseDNs = array( "iRedMail"=>"o=domains,dc=example,dc=com");

$wgLDAPSearchAttributes = array( "iRedMail" => "mail");

$wgLDAPLowerCaseUsername = array( "iRedMail"=>true);

$wgLDAPUseLocal = true;

$wgLDAPDebug = 3;

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

If I try to connect I receive this on debug.log

2016-12-02 09:19:38 mikro wikidb: 2.1.0 basedn is o=domains,dc=example,dc=com

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Using base: o=domains,dc=example,dc=com

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Setting the LDAPUsername based on fetched wgLDAPSearchAttributes: pepe@mx.example.com

2016-12-02 09:19:38 mikro wikidb: 2.1.0 userdn is: mail=pepe@mx.example.com,ou=Users,domainName=mx.example.com,o=domains,dc=example,dc=com

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Entering getDomain

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Pulling domain from session.

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Binding as the user

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Bound successfully

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Entering getDomain

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Pulling domain from session.

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Entering getDomain

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Pulling domain from session.

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Entering getGroups

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Entering getDomain

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Pulling domain from session.

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Entering getDomain

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Pulling domain from session.

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Entering checkGroups

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Entering getDomain

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Pulling domain from session.

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Entering getDomain

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Pulling domain from session.

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Entering getPreferences

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Entering getDomain

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Pulling domain from session.

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Authentication passed

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Entering getCanonicalName

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Username is: Pepe@mx.example.com

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Entering getDomain

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Pulling domain from session.

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Munged username: Pepe@mx.example.com

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Allowing the local domain, adding it to the list.

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Entering allowPasswordChange

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Entering getDomain

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Pulling domain from session.

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Entering getDomain

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Pulling domain from session.

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Entering getDomain

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Pulling domain from session.

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Entering modifyUITemplate

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Entering getDomain

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Pulling domain from session.

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Entering getDomain

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Pulling domain from session.

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Entering getDomain

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Pulling domain from session.

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Allowing the local domain, adding it to the list.

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Entering getCanonicalName

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Username is: Admin

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Entering getDomain

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Pulling domain from session.

2016-12-02 09:19:38 mikro wikidb: 2.1.0 Munged username: Admin

I see "Succesfully" on connect to LDAP server but Mediawiki can't login with this error:

Automatic creation of a local account failed: A valid username was not specified.

Why? How could I fix it?

Maybe Should I edit some config on Mediawiki to disable automatic creation account?

Maybe Am I using bad values on String?

Thanks

Greetings. Aarango1 (talk) 10:33, 2 December 2016 (UTC)

MediaWiki still can't upload non-ascii filenames

There was a bug that images with cyrillic filenames couldn't been uploaded on a Windows server. It was fixed in the new php 7.1.0

Now you can rename the file and it does work with non-ascii filename , BUT you can't just upload it with a cyrillic filename from the beginning - MediaWiki 1.28 still shows the same message "This wiki doesnt work with non-ascii characters". 158.69.57.69 (talk) 11:28, 2 December 2016 (UTC)

That sounds like with the new PHP versions a new feature might be available in MediaWiki.
Please open a bugreport in Phabricator to get that function integrated in MediaWiki! 87.123.50.152 (talk) 11:46, 2 December 2016 (UTC)
Phab:T152200 AKlapper (WMF) (talk) 13:04, 2 December 2016 (UTC)

Error after upgrade

Hello all. Just upgraded via dnf (Fedora 24) from mediawiki 1.26.4-1 to 1.27.1-1. I ran the db upgrade script with no problem. When I try to access the wiki now, I get this error:

Fatal error: Class 'Wikimedia\PhpSessionSerializer' not found in /usr/share/mediawiki/includes/session/PHPSessionHandler.php on line 161

I made no changes other than the install and upgrade script.

A search for php session serializer returned this:

/usr/share/mediawiki/vendor/wikimedia/php-session-serializer

/usr/share/mediawiki/vendor/wikimedia/php-session-serializer/formats.md

/usr/share/mediawiki/vendor/wikimedia/php-session-serializer/README.md

/usr/share/mediawiki/vendor/wikimedia/php-session-serializer/src

/usr/share/mediawiki/vendor/wikimedia/php-session-serializer/src/Wikimedia

/usr/share/mediawiki/vendor/wikimedia/php-session-serializer/src/Wikimedia/PhpSessionSerializer.php

/usr/share/mediawiki/vendor/wikimedia/php-session-serializer/COPYING

I am not an expert in mediawiki by any means, any help would be appreciated.

mediawiki 1.27.1-1

php 5.6.28-1

database mariadb (mysql) 10.1.19 73.4.80.180 (talk) 16:06, 2 December 2016 (UTC)

Maybe composer needs to be updated? AhmadF.Cheema (talk) 18:49, 2 December 2016 (UTC)
I installed mediawiki via dnf (rpm package) all dependencies should already be met, is that correct? 73.4.80.180 (talk) 14:03, 3 December 2016 (UTC)
According to this, even after MediaWiki installation through dnf, there are still some further instructions to be followed apparently saved in file: /usr/share/doc/mediawiki/README. Have you gone through them already?
Can't say for sure, if all dependencies were automatically installed or not. AhmadF.Cheema (talk) 15:11, 4 December 2016 (UTC)

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.


Why this code doesn't work?

<gallery mode="packed-overlay" widths=375px heights=250px> 
Image:http://i164.photobucket.com/albums/u8/hemi1hemi/COLOR/COL9-6.jpg|link=|''[[Article|Artcile]]'' lorem.....
</gallery>
NH35 (talk) 16:44, 2 December 2016 (UTC)
This does not work, because image galleries are working with local files. 87.123.50.152 (talk) 16:49, 2 December 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

https for mediawiki not working

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.


#$wgSecureLogin = true;

$wgServer = "//10.10.10.1";

When I enable the wgSecureLogin i cant access the site at all (http or https). I have a second instance of mediawiki on a different server that is working via https but i am not sure why i cannot get this instance to work? Bwfreas (talk) 18:40, 2 December 2016 (UTC)

The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Question about search autocompletion

Is it possible to partially suppress search box autocompletion for anonymous 'users' (visitors who have not logged on to the site)? I'm primarily thinking of the following scenarios:

# select pages (e.g. using a magic word)

# pages whose namespaces have ben made inaccessible through Extension:Lockdown Cavila 09:14, 3 December 2016 (UTC)

bxr.wiki wikitext and VisualEditor broken?

Please take a look at Buryat Wikipedia engine. I suspect there is something wrong with the interface. 1. The editing interface does not load. Wikitext editing works only partially, and VisualEditor does not work at all. 2. For not-logged in users the main page displays a page from several days ago. I spotted both problems from several computers and browsers. Elvonudinium (talk) 12:54, 3 December 2016 (UTC)

Please tell us where to "take a look at Buryat Wikipedia engine". AKlapper (WMF) (talk) 23:51, 3 December 2016 (UTC)
So this seems to be about bxr.wikipedia.org. The developer tools of your web browser expose the problem, which seems to be exactly the same as https://phabricator.wikimedia.org/T152172, so an admin should fix your local code. AKlapper (WMF) (talk) 23:54, 3 December 2016 (UTC)

index.php?Vulnerability_Found

What is this? Kuhitkuhit (talk) 19:03, 3 December 2016 (UTC)

A URL without a page behind it. Or a child with too much time. Or a bot. Or a random collection of signs. At least nothing for a support request. You can also call the URL index.php?Vulnerability_Not_Found - wouldn't make sense either. 87.123.0.61 (talk) 19:43, 3 December 2016 (UTC)

Help with installing Common.css and Common.js

Hello,

Every instruction I have seen on the web says to import them at MediaWiki:Common.css and MediaWiki:Common.js.  However, when I do either, I get this error:

"The requested URL /MediaWiki:Common.css was not found on this server."

Can someone just tell me how to import these into my Wiki?  My wiki is here: http://[MyURL]/mediawiki/index.php/Main_Page

Any assistance is greatly appreciated.

--Robert F3ar13ss (talk) 21:25, 3 December 2016 (UTC)

This is my version information. I've just cut-and-pasted it from my Special:Version page.
Product Version
MediaWiki 1.19.20+dfsg-2.3
PHP 5.6.27-0+deb8u1 (apache2handler)
MySQL 5.5.52-0+deb8u1

F3ar13ss (talk) 21:34, 3 December 2016 (UTC)

MediaWiki:Common.css and MediaWiki:Common.js just are normal pages in your wiki. With your URL structure, hey are here: http://[MyURL]/mediawiki/index.php/MediaWiki:Common.css and http://[MyURL]/mediawiki/index.php/MediaWiki:Common.js 87.123.0.61 (talk) 22:17, 3 December 2016 (UTC)
Awesome. Thank you! F3ar13ss (talk) 22:34, 3 December 2016 (UTC)
New question; I'm now having trouble installing the Extension:ParserFunctions. Could you tell me what the syntax is for that. I've assumed:
http://[MyURL]/mediawiki/index.php/MediaWiki:Extension:ParserFunctions
Am I correct?
Thanks!
--Robert F3ar13ss (talk) 04:10, 4 December 2016 (UTC)
You need to access your site file system / directory, probably through cPanel. You could use FTP too but dont worry about that. Just log into your account on the host then you will see some options. It might just direct you to cPanel straight away. Then find the 'file manager' and go into that. Then you need to go into public_html which contains your mediawiki installation. Then youll see an 'extensions' folder. Double click that, then go upload from the top menu options. Upload the ZIPPED folder of Parser functions, the unchanged file download of it, do not unzip it before, then once its uploaded itll be in the extensions folder. Then you unzip it in cPanel and make sure its called ParserFunctions rename it if you need to.
Then you go into LocalSettings.php which is back at the same level as extensions, rightclick code edit it, then paste these in at the bottom.
wfLoadExtension( 'ParserFunctions' );
$wgPFEnableStringFunctions = true; 49.177.93.182 (talk) 04:41, 4 December 2016 (UTC)
Hello,
No matter what I try, when I add those two lines to my LocalSettings.php file, I get a HTTP Error 500. Everything else seemed to go smoothly. I don't have cPanel (that I know of). I simply modify the php file using vi.
Any help would be greatly appreciated.
--Robert F3ar13ss (talk) 21:42, 5 December 2016 (UTC)
Update:
I checked my apache error log and I get this error:
"[Mon Dec 05 11:59:01.948013 2016] [:error] [pid 20333] [client 192.231.86.237:21283] PHP Fatal error:  Call to undefined function wfLoadExtension() in /etc/mediawiki/LocalSettings.php on line 138"
It seems like I may be missing some prerequisite, header or include file, or something similar?
Thanks!
--Robert F3ar13ss (talk) 22:39, 5 December 2016 (UTC)
For MediaWiki 1.19, the line should not be
wfLoadExtension( 'ParserFunctions' );
but
require_once "$IP/extensions/ParserFunctions/ParserFunctions.php";
See Extension:ParserFunctions! 87.123.63.181 (talk) 23:28, 5 December 2016 (UTC)
Thanks! That eliminated the HTTP Error 500. Now, I'm getting a new error:
This version of the ParserFunctions extension requires MediaWiki 1.25+
But, I think I can remedy that, I'm either going to have to upgrade my Wiki or downgrade my ParserFunctions. I just don't know yet if I can run the newest MediaWiki on my Raspberry Pi.
Thanks!
--Robert F3ar13ss (talk) 00:25, 6 December 2016 (UTC)
Thanks! Got it working. Rolled back my ParserFunctions to 1.6.0 and it works like a charm.
== Installed extensions ==
Parser hooks
ParserFunctions (Version 1.6.0) Enhance parser with logical functions Tim Starling, Robert Rohde, Ross McClure and Juraj Simlovic
Other
Wikidiff2 (Version ) external diff engine for MediaWiki Tim Starling

F3ar13ss (talk) 00:52, 6 December 2016 (UTC)

Italic terms in page title

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 interested at my MediaWiki installation to have italic terms in page titles. The page titles of several pages should not be complete in italic, only parts of it.

I found at English Wikipedia there is a template "Italic title" in use: https://en.wikipedia.org/wiki/Template:Italic_title

A sample usage of this template is: https://en.wikipedia.org/wiki/Frontline_(Australian_TV_series)

It fits to my expectation: The term "Frontline" is shown in italic, the term "(Australian TV series)" not (it's regular). Fine.

Before I start to copy this template and install it at my WikiMedia installation, I'd like to know how to use it. In general, I know how to use templates. But: How does the sample page use this template?

By inspecting the wikitext of the the sample page I couldn't detect the usage of the template.

What am I missing? Hasenläufer (talk) 00:16, 4 December 2016 (UTC)

I don't know if you really need a template: There are Manual:$wgAllowDisplayTitle and Manual:$wgRestrictDisplayTitle, which allow you to use the magic word DISPLAYTITLE. Does that allow you to style the title the way you want? 87.123.0.61 (talk) 00:31, 4 December 2016 (UTC)
Sorry, no, this fits not to my concerns. I considered the usage of "DisplayTitle", but it would lead to problems I'd like to avoid. Hasenläufer (talk) 01:00, 4 December 2016 (UTC)
In the meantime I installed the template "italic title" and it works. My assumption is, at English Wikipedia the call of this template ist hidden by a translation. However, we can close this discussion. Hasenläufer (talk) 14:49, 4 December 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to make Dynamic text area / table to show different text values?

I want to have a text area / table of values which can change to display different values with a dropdown menu, the only thing I found that is kind of like it is this:

http://leagueoflegends.wikia.com/wiki/Cho%27Gath

In the statistics section theres a little dropdown label which changes the values. I cant find out how they did it because the code is under a class which isnt in common.css. 49.177.93.182 (talk) 04:08, 4 December 2016 (UTC)

It's JavaScript and a very custom one, I don't think you can reuse it straight for your wiki, but the code is in MediaWiki:Common.js/levelselect.js Ciencia Al Poder (talk) 10:30, 5 December 2016 (UTC)
Oh thanks a lot wow u found it.Ive been trying some other things. I made a pure css dropdown and a javascript one and a html one, but I havent as of right now figured out how to connect variables to mediawiki.
Like I can make a global javascript variable in common.js:
var example = 1;
But mediawiki parser functions just evaluates it as a string I think. All im trying to do is to display other text when a dropdown item is selected. So I was trying to get the variable from the dropdown like this does:
https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/selectedIhandex
If you scroll down its in the example. Anyway, thanks a million for finding that script, Ill study it right after I go to the park. Just from glancing at it I can see mediawiki $variables in it this will help me a lot. Thanks 49.177.93.182 (talk) 04:58, 6 December 2016 (UTC)
That's JavaScript code, a feature like this usually requires the page to contain already all the content to be displayed, organized in a sort of layers, which are all hidden except the one selected. A similar effect with tabs instead of a dropdown is provided by Extension:Tabber Ciencia Al Poder (talk) 11:14, 6 December 2016 (UTC)

Upgrading from 1.19.15 to 1.28.0: Revision X of the page named 'Title page' does not exist

Hello,

I'm moving a Mediawiki installation to another host. Version 1.19 is not compatible with some libraries in newer Linux versions, so I'm upgrading it, too.

I've downloaded 1.28 sources, uploaded 'images' and 'skins' from the old version, restored the database dump (the name of the database has changed), copied and edited LocalSettings (edited wgServer, wgDBname, sbDBuser, edited skin loading, commented out all extensions), ran update.php.

When I open the title page of the wiki, I get the following message:

The revision #23968 of the page named "Заглавная страница" does not exist.

("Заглавная страница" is Russian for Title page)

The deletion log lists all edits from the old wiki, but none of them is available. When I open random pages for the 'All pages' list, most of them give the same error message. Some (at least three of them) contain the original text. Could you, please, point to what I'm doing wrong?

Here's how I install and upgrade Mediawiki:

#CREATE DATABASE mediawiki;
  #grant all privileges on mediawiki.* to 'mediawiki'@'localhost' identified by 'xxx';
  mysql mediawiki < oldwiki.sql
  
  wget --no-check-certificate https://releases.wikimedia.org/mediawiki/1.28/mediawiki-1.28.0.tar.gz
  tar -xzf mediawiki-1.28.0.tar.gz
  mkdir /var/www/mediawiki
  
  cp -r mediawiki-1.28.0/* /var/www/mediawiki
  cp -r wiki/images/ /var/www/mediawiki
  chmod -R 755 /var/www/mediawiki/images
  cp -r ext/AntiBot/ ext/Widgets/ /var/www/mediawiki/extensions/
  cp -r wiki/skins/* /var/www/mediawiki/skins/
  rm /var/www/mediawiki/skins/*php
  cp wiki/LocalSettings.php /var/www/mediawiki
  cd maintenance
  php update.php
  cd ..
  chown -R www-data: /var/www/mediawiki
   Fruchtenstein (talk) 09:05, 5 December 2016 (UTC)

Get page size using JS

How can I get the current page's size using JavaScript? Guycn2 (talk) 11:10, 5 December 2016 (UTC)

Create Index pages with semantic properties

Hi everybody,

I am looking for a way to create Index pages (those ones created with Proofread Extension) and make every field a semantic property. So I guess there are two ways:

1) I should fille each box of my Index with semantic properties;

2) use a Form to create Index pages.

The first way is easier but longer; the second one seems to me more practical but I don't know how to realize it.

I use PageForms to create forms.

Any suggestions? Loman87 (talk) 12:11, 5 December 2016 (UTC)

Can mediawiki support an entry with different language, but not different version?

Hello, I am Kian, a fresh man on mediawiki. Can mediawiki support an entry with different language, but not different version? Just like that:

Primary Key: 000001

Language: en

Topic: Hurricane

Content: Hurricane is a kind of weather system...

Language: cn

Topic: 飓风

Content: 飓风是一种天气系统...

The topics, content and others are in different language, but it's one entry. 125.90.49.222 (talk) 12:21, 5 December 2016 (UTC)

media wiki over https not working

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.


#$wgSecureLogin = true;

$wgServer = "//10.10.10.1";

When I enable the wgSecureLogin i cant access the site at all (http or https). I have a second instance of mediawiki on a different server that is working via https but i am not sure why i cannot get this instance to work? Bwfreas (talk) 13:44, 5 December 2016 (UTC)

The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Need help

Hi mediawiki. For school I need to host an mediawiki server. The installation went fine but accesing the web interface with another computer brings problems, I hope someone can help me.

  1. When other people try to find my server they only can detect it with http://(IP-adress) but when they want to go to another subject (lets say they're on my homepage and want to go to ''history'') the URL (IP-Adres) loops to http://localhost and then it gives and error. But they can find it by typing (Ip-Adres)/history but by clicking manualy the url changes and it gives an error instead of the history page.
  2. I'm hosting my server in XAMPP and when I go to localhost I instantly come on the XAMMP page instead of my mediawiki page, is there a way to change that?

Windows 10 Xammp , apache & MySQL

Thanks Pcmasterrace (talk) 14:44, 5 December 2016 (UTC)

  1. This error sounds familiar, and I'd wager a guess that the value of $wgServer is set incorrectly. This value should be set to the correct web address (assuming you have one), or the current IP-Address of the server.
  2. In which directory have you installed MediaWiki? XAMPP might have its own startup page in the root directory and apache might not know that it should use index.php in the MediaWiki directory a starting point. Mainframe98 talk 15:22, 5 December 2016 (UTC)
Thanks for the response I'll check out your sugestions :) Pcmasterrace (talk) 11:57, 6 December 2016 (UTC)

MediaWiki does not use skin layout on specific pages.

Updated the MediaWiki to version 1.27.1

with BlueSpice 2.27.0

Using Apache 2.4, PHP 5.6 on CentOS 5

Selected language: NL (Dutch)

For example, the Mainpage, Login page and when entering Edit mode do not show in the correct page layout.

In fact. No layout is displayed.

Folder rights checked, should be fine.

Temp folder is accessible by PHP

Also set $wgAllowSiteCSSOnRestrictedPages = true; $wgUseSiteCss = true;

Please advice.... Ivoets (talk) 19:17, 5 December 2016 (UTC)

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.


Our company wiki has been working for years and has been updated to 1.26.3 a few months ago without problems. A few weeks ago it started downloading some pages instead of rendering them.

If the search term does not match the title of a page, the search result page is shown and clicking on one of the search result items works well.

If the search term matches the title of a page, pressing enter or clicking on the page title shown at the top of the list, downloads the page instead of showing it. Clicking on the Containing... link below the page name, then the search result page is shown and everything works well.

Clicking the Save page button after editing a page, the page will be downloaded. Canceling the download and clicking the Read link shows the page with the last editing properly saved.

The downloaded file is called index.php, it starts with the following text and has some binary data after that (I assume that's the compressed page content). I don't understand why there are the first two lines:

0
  
  HTTP/1.1 200 OK
  Server: nginx/1.10.2
  Date: Mon, 05 Dec 2016 17:16:45 GMT
  Content-Type: text/html; charset=UTF-8
  Transfer-Encoding: chunked
  Connection: keep-alive
  X-Content-Type-Options: nosniff
  Content-language: en
  X-UA-Compatible: IE=Edge
  Vary: Accept-Encoding,Cookie
  Expires: Thu, 01 Jan 1970 00:00:00 GMT
  Cache-Control: private, must-revalidate, max-age=0
  Content-Encoding: gzip
  Last-Modified: Mon, 05 Dec 2016 17:16:44 GMT

Here is the versions:

Product Version
MediaWiki 1.26.3
PHP 5.5.38 (cgi-fcgi)
MySQL 5.5.51-38.2
ICU 4.2.1
Stefanomenci (talk) 20:11, 5 December 2016 (UTC)
Unrelated to your problem, but 1.26 is an old unsupported version without any security updates. Please strongly consider upgrading: Download. AKlapper (WMF) (talk) 12:44, 6 December 2016 (UTC)
Some more details:
  • The problem reproduces when a link causes a redirect. For example clicking on the Random page link it does reproduce because it redirects to another page
  • The problem reproduces 90-95% of the times, not 100% Stefanomenci (talk) 21:48, 6 December 2016 (UTC)
This looks like a misconfiguration on the server, but try $wgDisableOutputCompression Ciencia Al Poder (talk) 17:57, 8 December 2016 (UTC)
Yesterday we just found out that the problem disappears after uninstalling BitDefender (disabling is not enough).
And now, thanks to you, I found out that disabling the compression the problem disappears, even if BitDefender is installed.
So we have a workaround while we try to understand why BitDefender causes the problem.
Thanks,
Stefano Stefanomenci (talk) 19:59, 8 December 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Я не могу разместить статью о компании на Вики

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.


Доброго дня!

Уже несколько раз размещала статью о компании "Омские кабельные сети" в В.

Но она удаляется с ошибкой  "Вы не можете создать эту страницу: это название было защищено от создания.

Что это значит? Помогите, пожалуйста, разобраться. Таня Коренева (talk) 04:58, 6 December 2016 (UTC)

Это где Вы статью пытались создать? В Википедии чтоль? Fokebox (talk) 09:48, 6 December 2016 (UTC)
да, в ней самой Таня Коренева (talk) 12:01, 7 December 2016 (UTC)
Стало быть статья не соответсвует критериям и требованиям Википедии Fokebox (talk) 14:26, 7 December 2016 (UTC)
Hi Tanja, if this is about Russian Wikipedia, see https://ru.wikipedia.org/wiki/Омские_кабельные_сети for reasons why the article has been removed in the past. In general, this is something to bring up in the Russian community as their rules apply, for example on https://ru.wikipedia.org/wiki/Википедия:Форум. AKlapper (WMF) (talk) 12:43, 6 December 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

We use MediaWiki 1.23.8 and there is a 'print as pdf' function, but in the resulting pdf file tables of content and links are absent. Has there been any improvements regarding the actual Version 1.28.0 ? Thanks for any hints or links. Oberaffengeil (talk) 10:13, 6 December 2016 (UTC)

phab:T73808 and phab:T135643 are still open and not resolved but there's been a little bit of progress (see its subtasks). AKlapper (WMF) (talk) 12:39, 6 December 2016 (UTC)
Thanks for the info. So Elektron PDF will be used? Oberaffengeil (talk) 10:02, 7 December 2016 (UTC)

Block/Unblock a page by IP

Hi,

I wonder if it's possible to block or unblock a certain page by IP Address.

Example I have a page that is only accessible to some group, but inside a range of IP i want that anyone can see this page without the need of having an account.

Is it possible to set an acl whit the IP range ?

Best regards,

Hugo Gomes 193.137.99.89 (talk) 10:21, 6 December 2016 (UTC)

Not I'm aware of. Zppix (Volunteer Dev) (talk) 19:16, 6 December 2016 (UTC)
I also don't know of an existing solution. But I think it should be possible to do something like that using a hook: Hook into a place where user rights are set up. From there, access the user object and retrieve the IP address. If the address is inside the range you want, then add the user to a special group. Or: In case of such an IP, directly change the group membership to include the permission you want. 87.123.31.37 (talk) 23:04, 6 December 2016 (UTC)

Steps to use mediawiki over https

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.


Can anyone fill me in on the steps and process for enabling https on a mediawiki page? I set the $wgSecureLogin to true and I change the $wgServer to the IP of the box as is in place on another wiki of mine that is working with https however I did not set that one up so I am not sure what else I might be missing. Also important to note that it works over http when securelogin is set to false however upon setting to true the site is not accessible via either http or https.

any help is greatly appreciated

thanks

#$wgSecureLogin = true;

$wgServer = "//10.10.10.1";

When I enable the wgSecureLogin i cant access the site at all (http or https). I have a second instance of mediawiki on a different server that is working via https but i am not sure why i cannot get this instance to work? Bwfreas (talk) 14:00, 6 December 2016 (UTC)

The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to change Page to Article at the top of each page

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.


Hello all, As you can see every page on the top marked as "Page" how can I change it to "Article"? Fokebox (talk) 14:21, 6 December 2016 (UTC)

Edit your Wiki's MediaWiki:Nstab-main page. AhmadF.Cheema (talk) 15:35, 6 December 2016 (UTC)
Thank you! It works Fokebox (talk) 07:06, 7 December 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Wiki not accessible

I'm getting the following error message since a couple of days ago:

"MediaWiki internal error.

Exception caught inside exception handler.

Set $wgShowExceptionDetails = true; and $wgShowDBErrorBacktrace = true; at the bottom of LocalSettings.php to show detailed debugging information"

This is strange as we have nor worked or edited (as far as we know) on the wiki.

please advice. 66.46.126.29 (talk) 19:29, 6 December 2016 (UTC)

This error can be due to a host of reasons, like incompatible extension and MediaWiki versions, problems with the MediaWiki installation etc.
As the error suggests - try setting $wgShowExceptionDetails = true; and $wgShowDBErrorBacktrace = true; at the bottom of LocalSettings.php - to get a more accurate description of the problem. AhmadF.Cheema (talk) 07:10, 7 December 2016 (UTC)

Sharing over a network

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 have Xampp installed and mediawiki and I can access it on another computer over LAN by typing in the IP and exact path, but when logging on or selecting other links it reverts back to localhost and I have to re-enter the IP address in place of localhost to get that page to work. Is there a way I can set this up to avoid this? Thanks! Cm2785 (talk) 06:48, 7 December 2016 (UTC)

You probably need to set $wgServer to your computer's IP. AhmadF.Cheema (talk) 07:19, 7 December 2016 (UTC)
Thank you, where would I enter this? 71.9.45.186 (talk) 00:55, 8 December 2016 (UTC)
In LocalSettings.php. Jackmcbarn (talk) 01:32, 8 December 2016 (UTC)
Thanks I added that and got:
Parse error: syntax error, unexpected '.168' (T_DNUMBER) in C:\xampp\htdocs\wiki\LocalSettings.php on line 135 71.9.45.186 (talk) 01:44, 8 December 2016 (UTC)
Parse error: syntax error, unexpected '.168' (T_DNUMBER) in C:\xampp\htdocs\wiki\LocalSettings.php on line 70 71.9.45.186 (talk) 01:52, 8 December 2016 (UTC)
Nevermind I got it, thanks! 71.9.45.186 (talk) 01:55, 8 December 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Retrieving JSON with thumbnails for Category members

How to retrieve json response of category member with thumbnail url in it. I have more than 100 items in category members .

What query shall i use in the url for retrieving thumbnails for each and every category members in the list(more than 100 items) for JSON response of the category member.

I tried using "prop=pageimages" query parameter but I'm able to retrieve only 50 max objects in JSON containing thumbnails url in it. What is the alternative to receive thumbnail for every members as they all have images in the page too added in the correct format.

Example url i used:

http://example.org/api.php?gcmlimit=max&action=query&gcmtitle=Category%3AName&pilimit=max&prop=pageimages&pilimit=max&pithumbsize=100&generator=categorymembers&format=json&continue=

Its a url to show example above, not a real live url to check

Please help me sort it ASAP.

Thank You,

Athul Athul.ls (talk) 10:38, 7 December 2016 (UTC)

If there are more results than your limit, what you should do is using the continue parameter to do another request that will give you the remaining results Ciencia Al Poder (talk) 17:55, 8 December 2016 (UTC)
how shall I do that? Could you help me in the url Athul.ls (talk) 05:04, 9 December 2016 (UTC)
See API:Query#Continuing_queries. Your url is not a live wiki so I can't really help with that example Ciencia Al Poder (talk) 16:56, 9 December 2016 (UTC)

Moved server: now can't upload files

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 moved my Mediawiki installation to another server and I'm now unable to upload files. Looking in the error_log I see a single line for each upload attempt:


[07-Dec-2016 13:25:23 UTC] PHP Fatal error: Call to undefined function iconv() in /home/username/public_html/wiki/includes/media/IPTC.php on line 449


Perhaps iconv isn't enabled on this server. How can I turn this on? Would it be through a php.ini file? Is there a way to confirm that iconv isn't enabled?

Thanks Chris huh (talk) 13:34, 7 December 2016 (UTC)

http://php.net/iconv.installation
You may need to install the php-iconv package Ciencia Al Poder (talk) 17:52, 8 December 2016 (UTC)
Thanks Ciencia, it turned out the image I was trying to upload was corrupt. I resaved the image and it worked fine. Chris huh (talk) 12:14, 9 December 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Hooks.php on line 195

CENTOS 7.2 + nginx 1.10 + php 7.1

Warning: Parameter 1 to ExtVariables::init() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195

Warning: Parameter 1 to ImageMap::onParserFirstCallInit() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195

Warning: Parameter 1 to InputBoxHooks::register() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195

Warning: Parameter 1 to Poem::init() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195


PHP 7.1 is released , PLEASE fix this error. Tunglinwu (talk) 16:26, 7 December 2016 (UTC)

Your posting does not include any errors, only warnings. Please feel free to report a software bug, see https://mediawiki.org/wiki/How_to_report_a_bug AKlapper (WMF) (talk) 20:32, 7 December 2016 (UTC)

Options for dark theme in Android APP missing

Hi there,

the former releases of the android app showed an option to turn the WIKIPEDIA APP theme into dark for better reading by night. Now I can't find this trigger anymore, is there a chance to reactivate it? I'm using APP Version 2.4.16-r.2016-10-14 80.81.3.182 (talk) 16:51, 7 December 2016 (UTC)

Error: 1 cannot start a transaction within a transaction

Since I updated to mediawiki-1.28.0 from mediawiki-1.26.2 yesterday, I've been getting the following error, usually when I save or preview an edited page, and occasionally when I access a page:

Original exception: [a53679567296387f8f2003e6] /~dabeidle/mediawiki-1.28.0/index.php?title=Main_Page&action=submit DBQueryError from line 1054 of /Users/dabeidle/Sites/mediawiki-1.28.0/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading? Query: BEGIN Function: Database::query (MessageCache::loadFromDB(en)-big) Error: 1 cannot start a transaction within a transaction

If I resubmit the edit page, the changes are saved (usually after the 3rd attempt). On a query, reloading the page works.

One change I made from the previous version was to change the database ownership from _www:_www to my account, with corresponding changes in http.conf. This is a local, private wiki running on macOS Sierra 10.12.1, PHP 5.6.25, SQLite 3.8.10.2 as a personal knowledge base so access from the Internet is not possible.

The questions I have are: "Did I encounter a regression that I need to log as a bug?" in which case I can provide more detail, or "Did I miss something (probably simple) in the upgrade or configuration?"

I followed the upgrade procedure on <http://www.mediawiki.org/wiki/Manual:Upgrading>, including upgrading the SQLite3 database. Dbeidle (talk) 21:30, 7 December 2016 (UTC)

I've added the following to my LocalSettings.php file in order to produce more info:
$wgShowExceptionDetails = true;
$wgDebugLogFile = "/tmp/wiki.log";
$wgDebugToolbar = true;
$wgShowDebug = true;
$wgShowSQLErrors = true;
$wgDebugDumpSql = true;
$wgShowDBErrorBacktrace = true;
error_reporting( -1 );
ini_set( 'display_errors', 1 );
A couple of quick tests didn't reproduce the error. More testing to come tomorrow. Dbeidle (talk) 02:52, 8 December 2016 (UTC)
If you reproduce that consistently, try disabling extensions, and see which one is causing the problem. Probably not a missing step in upgrade or configuration. Ciencia Al Poder (talk) 17:49, 8 December 2016 (UTC)
I started off by disabling all extensions (WikiEditor, SyntaxHiglight_GeSHi, Cite), restarted the Safari browser, and browsed to the main page of the wiki. I got the following error:
'''Fatal error''': Uncaught exception 'Cdb\Exception' with message 'Unable to move the new CDB file into place.' in /Users/dabeidle/Sites/mediawiki-1.28.0/vendor/wikimedia/cdb/src/Writer/DBA.php:60 Stack trace: #0 /Users/dabeidle/Sites/mediawiki-1.28.0/vendor/wikimedia/cdb/src/Writer.php(88): Cdb\Writer\DBA->close() #1 [internal function]: Cdb\Writer->__destruct() #2 {main} thrown in '''/Users/dabeidle/Sites/mediawiki-1.28.0/vendor/wikimedia/cdb/src/Writer/DBA.php''' on line '''60'''
This was an end result of:
'''Warning''': rename(/var/tmp//l10n_cache-en.cdb.tmp.508300813,/var/tmp//l10n_cache-en.cdb): Permission denied in '''/Users/dabeidle/Sites/mediawiki-1.28.0/vendor/wikimedia/cdb/src/Writer/DBA.php''' on line '''59'''
[ec3c25e62192ab4a58132440] /~dabeidle/mediawiki-1.28.0/index.php/Main_Page MWException from line 118 of /Users/dabeidle/Sites/mediawiki-1.28.0/includes/cache/localisation/LCStoreCDB.php: Unable to move the new CDB file into place.
I noticed that the tmp file in question had an ownership of dabeidle:wheel instead of dabeidle:staff. I'll try removing the tmp file, and then retry the test. Dbeidle (talk) 19:08, 8 December 2016 (UTC)
Removing the one /var/tmp file did not help. Failure repeatable. However, when I terminated the browser, deleted everything in /var/tmp, restarted the browser, and browsed to my main page it loaded this time. Testing continues. Will repeat the simple main page load test a couple more times and then start enabling extensions one by one. Dbeidle (talk) 19:29, 8 December 2016 (UTC)
Clearing out /var/tmp/* and disabling extensions helped a lot in reducing the occurrence of "cannot start a transaction within a transaction" errors (only saw one while navigating the wiki so far).
I use three of the bundled extensions: WikiEditor, SyntaxHighlight_GeSHi, and Cite. When I enable any one of these three extensions, the occurrence of "cannot start a transaction within a transaction" increases. Reloading the page after such an error usually works in displaying the page. Note: I use the versions distributed with media wiki, I do not use the versions from prior releases.
We can set up a screen sharing session if it'd help. Dbeidle (talk) 21:03, 8 December 2016 (UTC)
Not sure if this matters... After I enabled both the Cite and SyntaxHighlight_GeSHi extensions, both Chrome and Safari browsers get a "cannot start a transaction within a transaction" fairly quickly. However, I haven't been able to reproduce the error (yet) on Firefox. Makes one go "Hmmm!"
After enabling the WikiEditor extension and editing s page several times I manage to reproduce the "cannot start a transaction within a transactions" failure consistently on Firefox now. Dbeidle (talk) 23:23, 8 December 2016 (UTC)
I though our MediaWiki continuous integration tests were run on sqlite, but no, devs confirmed they're run on mysql, so a regression may be introduced recently for sqlite, which went unnoticed.
On T88312 Aaron suggest using CDB files for localization cache on sqlite, which may be the problem in this case.
For that, according to $wgLocalisationCacheConf, be sure you've set $wgCacheDirectory to a writable directory. Ciencia Al Poder (talk) 17:15, 9 December 2016 (UTC)
Uncommented $wgCacheDirectory = "$IP/cache"; in LocalSettings.php. Firefox seems a bit better (will do more testing and with other browsers). At least it's not leaving a whole bunch of "lessphp_*.lesscache" files in the /var/tmp or cache directories.
Now if I can only get back the sort arrows in my sortable table - they show up occasionally; but mostly not. Showed up under Chrome 55.0.2883.87, but not Firefox 50.0.2 or Safari 10.0.1.
Nope, still getting the "cannot start a transaction with a transaction" failure on Firefox when I edit a page. Reloading (resubmitting) the page shows that the changes were saved. Dbeidle (talk) 18:55, 9 December 2016 (UTC)
Please comment on T88312 about your issue, in case other developers can take a look, since it looks related. Ciencia Al Poder (talk) 21:32, 9 December 2016 (UTC)
OK, comment submitted. Dbeidle (talk) 03:58, 10 December 2016 (UTC)

DBQueryError when I try to search for anything on test Wiki

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 have set up a test Wiki with several pages but every time I use the search function I get

Database Error

A database query error has occurred. This may indicate a bug in the software. [ff557850846b7910a1eed4c3] 2016-12-08 00:50:41: Fatal exception of type "DBQueryError"

What have I done wrong? DK PWCS (talk) 00:56, 8 December 2016 (UTC)

More information is needed to determine the problem. Please follow the instructions at Manual:How to debug to get this information. Jackmcbarn (talk) 01:32, 8 December 2016 (UTC)
Thanks.
I've added this to index.php and LocalSettings.php but get nothing extra: error_reporting( -1 ); ini_set( 'display_startup_errors', 1 ); ini_set( 'display_errors', 1 ); DK PWCS (talk) 01:54, 8 December 2016 (UTC)
Thanks.
I've added this to index.php and LocalSettings.php but get nothing extra:
error_reporting( -1 );
ini_set( 'display_startup_errors', 1 );
ini_set( 'display_errors', 1 ); DK PWCS (talk) 01:50, 8 December 2016 (UTC)
That's only the beginning. Do the rest of what the page says. Jackmcbarn (talk) 23:07, 8 December 2016 (UTC)
Parse error: syntax error, unexpected '.168' (T_DNUMBER) in C:\xampp\htdocs\wiki\LocalSettings.php on line 70 71.9.45.186 (talk) 01:52, 8 December 2016 (UTC)
You made a typo in your LocalSettings.php file. If you can't find it yourself, post the file somewhere (removing sensitive stuff first) and I'll point it out. Jackmcbarn (talk) 23:06, 8 December 2016 (UTC)
Thanks Jack. The previous post was not from me. Someone replied in the wrong post.
I managed to fix this issue by upgrading MYSQL...I am however now having an issue with getting the Search function to find text included in the pages rather than just the page names.
Any ideas? DK PWCS (talk) 00:13, 9 December 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Display of restrictive category listings

Hi all,

I’m looking for the best way to display categories and subcategories, and then subsequently only the documents that belong to those two categories.

E.g. “Foo” has a category of “A” and “B”. “Boo” has a category of “B”.

I would like the user to click on category “A”, and drilldown to category “B”. Once they click on “B”, “Foo” appears, but “Boo” does not, as Boo does not belong to category “A”.

Thank you PaleoIsh (talk) 03:50, 8 December 2016 (UTC)

There's no way to do that that I'm aware of Ciencia Al Poder (talk) 16:02, 8 December 2016 (UTC)

Hello all, I have a question perhaps someone can help me with?

Hello all, I have a question perhaps someone can help me with

So I have a offline Bitnami MediaWiki I use for some personal writing projects. I purchased a new SSD and Windows 10 to upgrade my computer recently. Before doing so I made a backup of the entire Bitnami folder and exported the MySQL. Now I am on my new SSD/W10 install trying to recreate the Wiki? What is the easiest way to do this? I tried installing the Bitnami MediaWiki stack and importing the SQL database file but it gave me errors? Any and all help would be greatly appreciated! The Bitnami support forum seems very slow? 2601:8C3:C101:2890:ED23:31C9:A5E7:935A (talk) 04:49, 8 December 2016 (UTC)

Just move your original files into place again and import the database.
See Manual:Moving a wiki for more information! 87.123.60.116 (talk) 09:17, 8 December 2016 (UTC)

Çeviri yaparken formatın bozulması

Merhaba. Function model sayfasını İngilizceden Türkçeye çevrirken format bozuldu ve paragraflar olması gereken yerde çıkmamaya başladı. Bazı paragraflar kayboldu. Bir resim olmaması gerekirken iki defa çeviri bölümüne yapıştı kaldı. Silemedim ve düzeltemedim. Lütfen birisi ya formatı düzeltebilir yahut çeviriyi komple silebilir mi? Ben bu sayfanın çevirisini tamamlayarak yayınlamak istiyorum. Ali Alçı (talk) 14:48, 8 December 2016 (UTC)

Where to find the "Function model" and "this page"? AKlapper (WMF) (talk) 10:41, 9 December 2016 (UTC)

Visual editor, from the site https://www.mediawiki.org

I've been editing a page from https://www.mediawiki.org,

But I put it in Visual Editor mode,

I want to put it in source code mode, but I can not. Please New Wiki (talk) 16:55, 8 December 2016 (UTC)

See your settings on https://www.mediawiki.org/wiki/Special:Preferences#mw-prefsection-editing AKlapper (WMF) (talk) 10:39, 9 December 2016 (UTC)

Resources for MediaWiki

In my installation of MediaWiki, it says:

Warning: Can not find APCu, XCache or WinCache.

Object caching has not been enabled.

Links: APCu is http://www.php.net/apcu XCache is http://xcache.lighttpd.net/ WinCache is https://www.iis.net/downloads/microsoft/wincache-extension

Questions: What is the purpose of these resources? Should I install in which folder? How should I install it? Please New Wiki (talk) 17:25, 8 December 2016 (UTC)

See Manual:Caching for their purpose. AKlapper (WMF) (talk) 10:38, 9 December 2016 (UTC)

help on enabling the new page,RSS feed and Embeded HTML in 1.27

We are migrating the mediawiki from 1.13 to 1.27 As part of this we are trying to add below new enhancements as well

1)Open new page functionality 2)Rss feed support 3)Embedded html for media inclusion

kindly guide me how to enable these services in Mediawiki 1.27 PrathapM13 (talk) 20:02, 8 December 2016 (UTC)

How to Search content rather than just page titles

The out of the box set up seems to only search page names/titles and it it doesn't find one, offers to create a page with that name. How do you configure the Search function to also search page content (as with Wikipedia, all pages containing "XXX")? DK PWCS (talk) 22:02, 8 December 2016 (UTC)

Although the search offers "containing..." it does not find the words I'm searching for unless they are also the page name DK PWCS (talk) 22:13, 8 December 2016 (UTC)
Default Title of the search bos is "Go to a page with this exact name if it exists".
What am I doing wrong? DK PWCS (talk) 22:44, 8 December 2016 (UTC)
Wikipedia uses Extension:CirrusSearch. AKlapper (WMF) (talk) 10:36, 9 December 2016 (UTC)

How to do multi language side category

http://i.imgur.com/6UrqF2O.png

When we use wiki, there will be a multi-language category on left side, we can switch to other language related to the topic we found, is that doable on my own wiki system? Chan15tw (talk) 02:58, 9 December 2016 (UTC)

Extension:UniversalLanguageSelector AhmadF.Cheema (talk) 03:13, 9 December 2016 (UTC)
Thanks, but the extension only change the environment language, wiki will change to the content to the language which you choose, how to do that? Chan15tw (talk) 06:14, 9 December 2016 (UTC)
From what I know, the Wiki does not change the content automatically, the content is either translated by contributors (using Extension:Translate), or the language links lead to their respective language Wikis. AhmadF.Cheema (talk) 07:05, 9 December 2016 (UTC)
Is that mean the contents in every language all saved in differents domain with differents databases? Chan15tw (talk) 08:56, 9 December 2016 (UTC)
Sometimes, the translated page is at a different sub-page (like Extension:UniversalLanguageSelector/es) at other times like at Wikipedia, the different language pages appear in different sub-domains (like en.wikipedia.org and es.wikipedia.org).
Don't know whether the different language Wikipedias are using different databases or not.
It should also be noted that the other language pages aren't necessarily translated pages, they can also be very different articles than their English counterparts. AhmadF.Cheema (talk) 09:49, 9 December 2016 (UTC)
Wikipedia almost certainly has separate different Mediawiki installations for each language.
What is added maybe is Extension:Interwiki. JamesPoulson (talk) 10:00, 9 December 2016 (UTC)
So the left language link on the left side is the way to different wiki sites, and all of them were isolated website therefore if I want to have different languages with the same topic I need to separate the website and edit the link, there is only one question left, how to sync the language navigation among all website. Chan15tw (talk) 01:16, 12 December 2016 (UTC)
For different languages with the same topic, you can also follow the method used at MediaWiki by using sub-pages for other languages (like for Extension:UniversalLanguageSelector/es). AhmadF.Cheema (talk) 01:40, 12 December 2016 (UTC)
How can links to other languages be displayed?
And browsers redirected to a language sub-page according to the choice made with the Universal Language Selector? JamesPoulson (talk) 09:41, 12 December 2016 (UTC)
I'm not sure, but I don't think the Universal Language Selector sidebar language chooser can be used to direct to sub-pages, I was referring to using a setup like that of "Other languages" box that appears under the title of MediaWiki pages (like in Extension:UniversalLanguageSelector/es). AhmadF.Cheema (talk) 10:18, 12 December 2016 (UTC)
That is probably achieved by a template.
Having a look at the markup there is this tag being used: <languages / > JamesPoulson (talk) 11:03, 13 December 2016 (UTC)
That is Extension:Translate.
Also take a look at Help:Extension:Translate. AhmadF.Cheema (talk) 11:15, 13 December 2016 (UTC)
What Extension:Translate does is add <translate></translate> tags which when placed in the markup makes a "translate" link appear which when clicked leads to a page where you can translate content from one page to sub-pages with codes such as /fr, /es, /de, etc. JamesPoulson (talk) 11:27, 13 December 2016 (UTC)
The "<languages / >" derives from Extension:Translate and not from some template. AhmadF.Cheema (talk) 13:24, 13 December 2016 (UTC)
You are right Ahmad! Thanks a ton :D . This is the tag that adds the Other languages box.
It's now showing on the front page of MonetaryAlternative and all that's left to figure out is if there is a shortcut to add this to all or multiple pages at once. JamesPoulson (talk) 01:52, 14 December 2016 (UTC)

rebuildFileCache.php not working

When I run php maintenance/rebuildFileCache.php, I'm getting Database is read-only: Building cache error even though I haven't put the database to read only with $wgReadOnly and editing is working without any issue. But I'm not able to rebuild file cache with this script.

What would be the cause to get Database is read-only: Building cache error? 122.171.52.76 (talk) 07:03, 9 December 2016 (UTC)

Does mysql have access to php and vise versa Zppix (Volunteer Dev) (talk) 18:25, 9 December 2016 (UTC)

Pages not appearing in a category. How to fix?

I have added pages to a category on a newly created Wiki.

However, the pages don't appear on the page of the category itself and it says "This category currently contains no pages or media".

Does this have to do with jobs not being run? I do have an issue on that side.

Edit

Am reading Manual:Errors_and_symptoms#Category_pages.2C_Special:Whatlinkshere_and_file_usage_aren.27t_being_updated and will try out the tweaks advised.

Will update later if the issue persists. JamesPoulson (talk) 07:51, 9 December 2016 (UTC)

Setting $wgJobRunRate to more then 2 $wgRunJobsAsync = false seems to do the trick.
Edit or refresh the page and display site stats on api.php?action=query&meta=siteinfo&siprop=statistics&format=jsonfm to see if jobs decrease. JamesPoulson (talk) 09:57, 9 December 2016 (UTC)

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.


In help page Interlanguage links I'm missing information on how to create Interlanguage links on user pages. I somehow found out, that it is possible to link to ones other accounts on other laguage projects like this: From my main account on de.wikipedia to en.wikipedia: [[en:User:Manorainjan]], but [[wikitech:User:Manorainjan]] does not work. So my request is, to describe this on the help page for use within the wikipedia/wikimedia family of wikis or link to such description if available. Manorainjan 12:53, 9 December 2016 (UTC)

Interlanguage links on the sidebar only works for language prefix, not others (otherwise they'll be "interproject" links, not "interlanguage") Ciencia Al Poder (talk) 18:46, 9 December 2016 (UTC)
Is there any other way to create "interproject" links for user pages? Manorainjan 19:05, 9 December 2016 (UTC)
There isn't a way to show them in the sidebar, because the sidebar has only place for "this page in other languages". You could, however, write a script (using JavaScript) to move links placed in identified parts of the HTML there, but that's far from ideal. Ciencia Al Poder (talk) 21:35, 9 December 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

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,

How can i change original registration link in navigation bar? NH35 (talk) 16:19, 9 December 2016 (UTC)

You can implement the PersonalUrls hook to change the createaccount link Ciencia Al Poder (talk) 18:44, 9 December 2016 (UTC)
I read the documentation but I still have no idea how to set this up :( NH35 (talk) 16:56, 10 December 2016 (UTC)
something like this (untested)
function onPersonalUrls_CreateAccountUrl( array &$personal_urls, Title $title, SkinTemplate $skin ) {
    if ( isset( $personal_urls['createaccount'] ) ) {
        $personal_urls['createaccount']['href'] = "http://whatever.login/link/you.want";
    }
}
$wgHooks['PersonalUrls'][] = 'onPersonalUrls_CreateAccountUrl';
Ciencia Al Poder (talk) 18:25, 10 December 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Error using update.php

I've been having trouble adding the Math extension that seems to have to do with not being able to run update.php. I get the error:

DB connection error: Connection refused (127.0.0.1)

Any clue on how to fix this? I'm running on MediaWiki 1.27.1-1 PHP 5.6.25 Thanks 160.39.20.102 (talk) 16:39, 9 December 2016 (UTC)

Does php and mysql have access to each other? Also could navigate to YOURURL.tld(/wiki)/Special:Version Zppix (Volunteer Dev) (talk) 18:24, 9 December 2016 (UTC)

Notices and Alerts on Wikipedia Arabic cannot be opened (TypeError: transformTable is undefined)

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 ,

Starting from yesterday a problem have raised in Arabic Wikipedia.

Users in Different countries can't open open their Notices and their Alerts on ar. wiki, but they can in other projects.

Is there any solution?

see https://phabricator.wikimedia.org/T152800 Dezedien (talk) 22:38, 9 December 2016 (UTC)

The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Hi there, is there a way I can place a photo upload link on all of the pages of our Wiki? I am new to running a wiki, so I don't know much about them. Thank you! 71.9.45.186 (talk) 23:49, 9 December 2016 (UTC)

You can have an "Upload files" link on the sidebar (on the right side) of the Wiki similar to what has been done for this Wiki. AhmadF.Cheema (talk) 02:07, 10 December 2016 (UTC)
The upload files link will appear automatically once you enable uploads on the wiki, and the user seeing a given page has the proper rights to upload files. Ciencia Al Poder (talk) 12:55, 10 December 2016 (UTC)
Thanks guys! All done but by chance is there an easy way to add a link below the upload link to view the files? I see the link on the upload page but just wondered if its easy to add to the side. Thanks! 71.9.45.186 (talk) 05:06, 11 December 2016 (UTC)
You can easily edit the sidebar to add/change links, but not the toolbox section (where the upload link appears). See Manual:Interface/Sidebar. Adding a new link to the toolbox section is possible, however, but requires you to do a bit of coding in PHP in your LocalSettings.php, implementing the BaseTemplateToolbox hook. Ciencia Al Poder (talk) 12:40, 11 December 2016 (UTC)

#Redirect

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 have a site vojnaenciklopedija.com which is in the Serbian language, and I have a problem with redirects. #Preusmeri Or #Преусмери to certain sites recognized as diverting, but not on others. Is this a bug in the software or what? I was reported to the fabricator, but I was told to report here. Kizule (talk) 09:27, 10 December 2016 (UTC)

What do you mean by #Preusmeri Or #Преусмери? Linking to the phabricator task or providing here all the info would help. Ciencia Al Poder (talk) 12:52, 10 December 2016 (UTC)
@Ciencia Al Poder #Preusmeri is the name for diverting the Serbian language, but in the Latin script. #Преусмери is the name for diverting the Serbian language in Cyrillic script. Task on the phabricator is here Kizule (talk) 13:25, 10 December 2016 (UTC)
I've tried to open the pages Preusmeri and Преусмери on your wiki but none of them exist... You may try explaining step by step how to reproduce the problem and what's the expected result that you don't get now Ciencia Al Poder (talk) 15:38, 10 December 2016 (UTC)
redirect translated aliases wargo (talk) 15:58, 10 December 2016 (UTC)
It depends on which you choose as content language: sr_ec or sr_el. wargo (talk) 15:57, 10 December 2016 (UTC)
@Ciencia Al Poder I do not think the pages #Preusmeri and #Преусмери, but on redirection, what standard when in the editor when you want a page be forwarded to the other.
@Wargo sr_el. Serbian Cyrillic and Serbian Latin are two equal letters in Serbian language, and should divert the software in the form of #Preusmeri recognized as diverting. Kizule (talk) 16:31, 10 December 2016 (UTC)
There's a difference. When you want to redirect a page on another site a real difference if it says #Preusmeri or #Преусмери. See the following: http://i.imgur.com/BcNXqB6.jpg It is for serbian cyrillic.
Here is for serbian latin: http://i.imgur.com/o3qtjJm.jpg
When given the command in Cyrillic, it shows one thing, but when given the command to Latin shows otherwise. Can it be installed to display the form as shown in Cyrillic (I think that shows the character in the form enter) Kizule (talk) 16:54, 10 December 2016 (UTC)
Redirect alias for sr_ec are: '#Преусмери', '#преусмери', '#ПРЕУСМЕРИ', '#Преусмјери', '#преусмјери', '#ПРЕУСМЈЕРИ', '#redirect', '#REDIRECT'
Redirect alias for sr_el are: '#Preusmeri', '#preusmeri', '#PREUSMERI', '#Preusmjeri', '#preusmjeri', '#PREUSMJERI', '#redirect', '#REDIRECT'
You can't have both, apparently. If you want to support both variants at the same time, you should clarify that on the bug report. Ciencia Al Poder (talk) 18:34, 10 December 2016 (UTC)
@Ciencia Al Poder I want that when you are redirected to the Latin form of #Preusmeri to be like when they are redirected to the Cyrillic form. Kizule (talk) 18:37, 10 December 2016 (UTC)
I'm confused again. #Preusmeri or #Преусмери are syntax to create a redirect, you aren't redirected from one to another. Please clarify and provide exact steps to reproduce Ciencia Al Poder (talk) 21:22, 10 December 2016 (UTC)
#Preusmeri or #Преусмери are syntax to create a redirect,
Yes it is. When you want to redirect using the syntax that is in the Latin version, showing one version. When you want to redirect by using the syntax that is in the Cyrillic version, showing another version.
Version of latin syntax: http://i.imgur.com/o3qtjJm.jpg
Version on cyrillic syntax: http://i.imgur.com/BcNXqB6.jpg
I want to show the Latin syntax same as shown in Cyrillic syntax. Kizule (talk) 22:00, 10 December 2016 (UTC)
You can't Ciencia Al Poder (talk) 12:20, 11 December 2016 (UTC)
I close the topic, problem solved. The website will be used for redirection syntax in English and Serbian Cyrillic script. Thanks a lot! Kizule (talk) 13:13, 11 December 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Skin not loading in Mediawiki 1.27.1.

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.


Tried $wgResourceLoaderDebug = true; it worked temporarily. Once skin started working, wanted to use the wikieditor extension. That particular extension does not work with $wgResourceLoaderDebug = true; setting. Therefore played around a bit with LocalSettings.php and now even the skin is not loading correctly.

I am new to mediawiki. Please help


Product Version MediaWiki 1.27.1 PHP 7.0.13 (cgi-fcgi) MySQL 5.7.16-log Arunhara (talk) 04:28, 12 December 2016 (UTC)

I'm not sure how much I can help, but have you tried looking through Debugging yet? It has some tips :)
For example, you could add this in your LocalSettings.php file:
error_reporting( -1 );
ini_set( 'display_errors', 1 );
Adding that will force to show PHP errors on your screen. If and when you do that, could you paste your error here? Thanks! (This will help so that even if I don't respond to this quickly enough, other people will still see it and might be able to help you too.) Also, what skin are you trying to install? SamanthaNguyen (talk) 04:49, 12 December 2016 (UTC)
Hi,
Thanks a lot for trying to help. Appreciate it.
I pasted the above in localsettings.php. I did not get any error. The skin I expect to see loaded in vector. I see that in Special pages --> Version page skin vector is installed, however no css is applied when I browse pages on my wiki.
I tried $wgDebugLogFile = "Wki_New.log"; in localsettings.php I get this error.
[error] [7f9218912e6d6f7f32c6d53a] /load.php?debug=false&lang=en&modules=mediawiki.legacy.commonPrint%2Cshared%7Cmediawiki.sectionAnchor%7Cmediawiki.skinning.interface%7Cskins.vector.styles&only=styles&skin=vector ErrorException from line 300 of C:\Wiki\includes\debug\MWDebug.php: PHP Warning: OutputPage::transformFilePath: Failed to hash C:\Wiki/resources/src/mediawiki.legacy/images/ajax-loader.gif [Called from OutputPage::transformFilePath in C:\Wiki\includes\OutputPage.php at line 3876] Arunhara (talk) 05:05, 12 December 2016 (UTC)
It looks like you have backslashes mixed with forward slashes in your URL. Could that be the issue? 207.250.18.198 (talk) 14:42, 25 April 2017 (UTC)
Did you download the right version/branch? If you go to Special:SkinDistributor/Vector, you should select "1.27" so maybe you misclicked?
Also if I remember correctly, adding ?debug=true at the end of your URL should bring errors in your console, which you can open by right clicking on a page and pressing "Inspect Element", then switching to the "Console" tab. (Also, a keyboard shortcut for this e.g would be Ctrl+Shift+I in Chrome)
There's some pages that I found (although I'm guessing you probably already took a look at these):
Maybe running mw.loader.getState( 'skins.vector.styles' ); in your console will give back something useful? The styles module holds the stylesheets of Vector. You could also try mw.loader.getState ( 'skins.vectors.styles.responsive' );. SamanthaNguyen (talk) 05:25, 12 December 2016 (UTC)
Just looked at https://github.com/wikimedia/mediawiki/blob/REL1_27/includes/OutputPage.php#L3865, and according to the documentation, the function transformFilePath checks whether or not a file exists. So since it's giving a warning, from my understanding (although I might be wrong), you're missing the ajax-loader.gif file. When you look through your files, go that path that it mentioned to you: \Wiki/resources/src/mediawiki.legacy/images/. You can download the file here:
https://github.com/wikimedia/mediawiki/blob/REL1_27/resources/src/mediawiki.legacy/images/ajax-loader.gif SamanthaNguyen (talk) 05:34, 12 December 2016 (UTC)
Thanks Samantha. I suspected the same and checked. The file does exist.
Following your instructions on the console I got this error
http://localhost:81/load.php?debug=false&lang=en&modules=mediawiki.legacy.c…mediawiki.skinning.interface%7Cskins.vector.styles&only=styles&skin=vector Failed to load resource: the server responded with a status of 500 (Internal Server Error)
The results for the below from console are as shown below
mw.loader.getState ('skins.vectors.styles.responsive');
null
mw.loader.getState('skins.vector.styles');
"registered" Arunhara (talk) 12:20, 12 December 2016 (UTC)
Hmm sorry, I'm not sure :( I'll try to figure out sometime this week. There's some magical MediaWiki wizards on the IRC channel at #mediawiki connect though, maybe you could try that? SamanthaNguyen (talk) 03:45, 13 December 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

"badcachekey" error from API after 1.27 > 1.28 update

Hi, after successfully using Mediawiki 1.27 with VisualEditor for a while; we wanted to upgrade to the newest version because the editor starting to show some weird problems.

So I did an upgrade to Mediawiki 1.28, VisualEditor-REL1_28-93528b7 and Parsoid 0.6.1.

Now an error message occurs when saving a page which says "Unknown error". However the page does get saved. If you look at the 3 POST requests (to api.php) made by the save actions 1 fails (the 2nd one). It returns an error object with code "badcachekey" and info "No cached serialization found with that key".

If anyone can help us by explaining why this error occurs and/or what we can do to fix it, it will be greatly appreciated! We're kind of at a loss since downgrading doesn't seems to be possible?

Versions: MediaWiki 1.28.0 PHP 7.0.8 (apache2handler) MySQL 5.7.13 ICU 52.1 217.149.135.43 (talk) 09:09, 12 December 2016 (UTC)

I can confirm this issue. Currently running WAMP Server 2.5 (wampserver2.5-Apache-2.4.9-Mysql-5.6.17-php5.5.12-64b) with Mediawiki 1.28. 207.250.18.198 (talk) 20:25, 27 June 2017 (UTC)

Mediawiki and SMTP/Mail

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 guys,

I'm having a great deal of difficulty setting up SMTP mail on my WikiMedia VM. I have this as the following in my php.ini:

[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = *placeholder*
; http://php.net/smtp-port
smtp_port = 259
username=*placeholder*
password=*placeholder*
; For Win32 only.
; http://php.net/sendmail-from
sendmail_from = *placeholder*@gmail.com

Does anyone have any ideas or suggestions? The information out there is at best quite sketchy and involves processes I can't quite wrap my head around (i.e. using PEAR). Mediawikiuser86 (talk) 16:03, 12 December 2016 (UTC)

Be sure the vm isn't blocking connections to the SMTP server. You can try with the netcat command:
nc -z <host> <port> Ciencia Al Poder (talk) 10:31, 13 December 2016 (UTC)
Thanks for the reply. Managed to eventually sort it by adding this to the localsettings file in root:::
$wgSMTP = array(
'host' => 'ssl://smtp.gmail.com',
'IDHost' => 'mydomain.com',
'port' => 465,
'username' => 'webmaster@mydomain.com', ## or info@mydomain.com, or whatever email account you've set up for your Mediawiki installation
'password' => 'emailpasswordforwebmaster',
'auth' => true
); Mediawikiuser86 (talk) 14:36, 13 December 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Portrait images uploaded from Iphone 7 dont rotate

When a user is uploading a portrait image they normally show correctly however if this image was taken with an iPhone 7 it keeps its landscape rotation, we have tried to edit the image and resave it yet it still retains the incorrect rotation.

I am using Media Wiki 1.28.0 PHP 5.6.27-0+deb8u1 (apache2handler) MySQL 5.5.53-0+deb8u1

if i upload the same file onto here it works correctly Dturtill (talk) 16:15, 12 December 2016 (UTC)

Reason for error "Undefined class constant 'LIST_COMMA'"

Hi there,

since a couple of days I have my MediaWiki break again and again. I have it installed in a hosted VM on Ubuntu 14 with Plesk as management app.

For some reasons I cannot track down, at some stage, the fully functional MW stops working and in the Logs I get the following error:

Undefined class constant 'LIST_COMMA' in /var/www/vhosts/schneide-r.de/httpdocs/includes/Defines.php:34\nStack trace:\n#0 /var/www/vhosts/schneide-r.de/httpdocs/includes/WebStart.php(70): require_once()\n#1 /var/www/vhosts/schneide-r.de/httpdocs/index.php(40): require('/var/www/vhosts...')\n#2 {main}\n thrown in /var/www/vhosts/schneide-r.de/httpdocs/includes/Defines.php on line 34\n

There is no change to any of the wikimedia files, so it must have to do with some kind of configuration change caused i.e. by a linux update or by a plesk update. However, so far I couldn't find out what the cause could be as I have no idea in what area to look...

Is there any known reasons for this "Undefined class constant" error? It's pretty likely only the symptom of something different...

My MediaWiki is on version 1.28.0 Detlefs (talk) 17:23, 12 December 2016 (UTC)

Force SSL, even for images

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


I am trying to use SSL but I have trouble with getting mediawiki 1.23 to use SSL paths for images as well as logos. For example in this page both are loaded from http https://lsj.translatum.gr/wiki/mastery

It is a wikifarm and I have these in localsettings

$wgUploadDirectory = "$IP/images/$site";

$wgLogo = "/w/images/c/c9/Logo.png";

I have used this in htaccess:

RewriteCond %{HTTPS} off RewriteRule (.*)

https://%{HTTP_HOST}%{REQUEST_URI} Spiros71 (talk) 18:30, 12 December 2016 (UTC)

Have you set $wgServer to https:// AhmadF.Cheema (talk) 19:00, 12 December 2016 (UTC)
Not sure how exactly it should be set. gServer = "https://"? or gServer = "https://$site.translatum.gr"? Tried both to no avail.
Below the "$site" variable is used to match the subdomains of the wikis in the wikifarm.
$site.translatum.gr
The errors:
mastery:1 Mixed Content: The page at 'https://lsj.translatum.gr/wiki/mastery' was loaded over HTTPS, but requested an insecure image 'http://lsj.translatum.gr/w/images/lsj/0/08/woodhouse_516.jpg'. This content should also be served over HTTPS.
mastery:1 Mixed Content: The page at 'https://lsj.translatum.gr/wiki/mastery' was loaded over HTTPS, but requested an insecure image 'http://lsj.translatum.gr/w/images/lsj/c/c9/Logo.png'. This content should also be served over HTTPS.
EDIT: I got it, it had to do with htaccess Spiros71 (talk) 19:26, 12 December 2016 (UTC)
Note that after switching to https:, if $wgServer was http before, pages can still have generated HTML pointing to http: in the parser cache. You may need to set $wgCacheEpoch to force the discard of old content in the parser cache. Ciencia Al Poder (talk) 20:58, 12 December 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Delete Account

I want to delete my account. 223.57.212.169 (talk) 00:08, 13 December 2016 (UTC)

How to hide the title of the page

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.


Hello all! Could you please tell me how to hide a page title? There are some pages that I want to remove titles just like at Main Page of Wikipedia Fokebox (talk) 07:39, 13 December 2016 (UTC)

Try inserting the following code in the page you want to be displayed without a title:
{{DISPLAYTITLE:<span style="position: absolute; clip: rect(1px 1px 1px 1px); clip: rect(1px, 1px, 1px, 1px);">{{FULLPAGENAME}}</span>}}
More ways and further details AhmadF.Cheema (talk) 08:21, 13 December 2016 (UTC)
See also: Manual:FAQ#How do I hide the main page title? Ciencia Al Poder (talk) 10:24, 13 December 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Can't register after update to 1.28 and other problems

I updated to mediawiki 1.28 and I also updated all of my extensions, and now I'm suddenly getting this error with large pages with a lots of images and media on them when I try to enter visual editor: it's starts to load but after a while it gives an error message just saying "http" and if I click "OK" I can see the toolbar of the visual editor but only some functions can be used and I cannot save the page because it gives me an error message. Sometimes I'm not even able to click on the save button at all.

I looked at the console of the inspect element tool of my browser and it gives the following error message:

[03189b8de32b5bb492e62d83] /load.php?debug=false&lang=en&modules=startup&only=scripts&skin=vector   BadMethodCallException from line 845 of /var/www/html/includes/session/SessionManager.php: Sessions are disabled for this entry point(anonymous function)

@ load.php?debug=false&lang=en&modules=startup&only=scripts&skin=vector:4

But even on other pages where the visual editor works fine it gives one of the following error messages:

load.php?debug=false&lang=en&modules=startup&only=scripts&skin=vector:4 [d2979c18dcda8575beab441b] /load.php?debug=false&lang=en&modules=startup&only=scripts&skin=vector   BadMethodCallException from line 845 of /var/www/html/includes/session/SessionManager.php: Sessions are disabled for this entry point(anonymous function)

@ load.php?debug=false&lang=en&modules=startup&only=scripts&skin=vector:4
[db7ad58cf5bfe16e19f5edc7] /load.php?debug=false&lang=en&modules=startup&only=scripts&skin=vector   BadMethodCallException from line 845 of /var/www/html/includes/session/SessionManager.php: Sessions are disabled for this entry point(anonymous function) 

@ load.php:4

Also, I use the Mobile Frontend extension and I aren't able to edit on mobile after I updated to 1.28. When I click on the update button it says that it's going to redirect me to the editor but instead it just puts me back on the page and doesn't enters the editor.

On the Mobile Frontend inspect element tool of my browser and it gives the following error message:

[535892abd104e02f9a314008] /load.php?

load.php?debug=false&lang=en&modules=startup&only=scripts&skin=minerva&target=mobile:4 

debug=false&lang=en&modules=startup&only=scripts&skin=minerva&target=mobile   BadMethodCallException from line 845 of /var/www/html/includes/session/SessionManager.php: Sessions are disabled for this entry point

(anonymous function) @ load.php?debug=false&lang=en&modules=startup&only=scripts&skin=minerva&target=mobile:4
[ffe452c05196ce9b2bafeb7d] /load.php?

load.php?debug=false&lang=en&modules=mobile.search|skins.minerva.editor%2Cnotifications%2Cscripts%2…:4 

debug=false&lang=en&modules=mobile.search%7Cskins.minerva.editor%2Cnotifications%2Cscripts%2Ctalk%2Ctoggling%2Cwatchstar&skin=minerva&version=124nslz   BadMethodCallException from line 845 of /var/www/html/includes/session/SessionManager.php: Sessions are disabled for this entry point

(anonymous function) @ load.php?debug=false&lang=en&modules=mobile.search|skins.minerva.editor%2Cnotifications%2Cscripts%2…:4

Innosflew (talk) 11:33, 13 December 2016 (UTC)

People aren't able to register on my wiki either because of this problem. Every time they fill out the registration form and click on register it crashes. Pls help. Innosflew (talk) 09:29, 14 December 2016 (UTC)
The problem you describe for large pages sometimes happens because the parsing puts too much load on processor and memory resources of the server. Check your server logs to see if that isn't happening.
Are things working fine when these two extensions are disabled? AhmadF.Cheema (talk) 09:42, 14 December 2016 (UTC)
The problems with the visual editor on desktop seem to have been fixed by disabling $wgSessionsInObjectCache and $wgVirtualRestConfig['modules']['parsoid']['forwardCookies']. I don't remember why did I enabled them in the first place.
But the problems still persist with the Mobile Front end and at the registration. I'm still not able to enter editor on my mobile version, and people still not able to create accounts on my wiki, and the errors in my inspect element tool still showing at every page. Innosflew (talk) 09:53, 14 December 2016 (UTC)
Also, the way the account creation crashes is that it takes me to a fully white screen with nothing on it, and if I hit F5 on that screen to refresh it takes me back to the registration screen where the following error is displayed: "There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Go back to the previous page, reload that page and then try again."
And as I've said the following error messages are displayed in the inspect elemet tool of my browser on every page on my wiki no matter what I do: https://i.gyazo.com/bed75dbabde8807f81d049cc654fbd10.png Innosflew (talk) 14:52, 14 December 2016 (UTC)
And as you suggested I disabled Visual Editor, Flow(since this requires Parsoid as well), and the Mobile Frontend, and while the error messages that were displayed in the inspect elemet tool of my browser went away people are still not able to register on my wiki. Innosflew (talk) 15:00, 14 December 2016 (UTC)
The issue could be related to this Project:Support desk/Flow/2016/07#h-Can't_login_or_create_user_after_upgrade_to_1.27-2016-07-05T08:20:00.000Z.
Try setting $wgSessionCacheType = CACHE_DB; in your LocalSettings.php. AhmadF.Cheema (talk) 16:12, 14 December 2016 (UTC)
I set it to $wgSessionCacheType = CACHE_DB; and it's still not working. Innosflew (talk) 17:02, 14 December 2016 (UTC)
Btw I found this on Manual:Load.php:
"Code executed via load.php should not rely on the user's session as its results will be cached and sent to other users. Starting from MW 1.28, this is enforced and a "Sessions are supposed to be disabled for this entry point" exception will be thrown if a session access is attempted. See these tips on how to fix."
So according to this the reason I'm getting those error messages in the inspect element tool is because I'm attempting a session access? How can I fix this? Innosflew (talk) 20:39, 14 December 2016 (UTC)
Okay, so I updated my mediawiki core and all of my extensions to the latest master version(1.29.0-alpha) to test it out but the problems persist. Also now I'm also getting errors about the Flow extension:
PHP Notice:  Use of undefined constant CONTENT_MODEL_FLOW_BOARD - assumed 'CONTENT_MODEL_FLOW_BOARD' in /var/www/html/LocalSettings.php on line 213
PHP Notice:  Use of undefined constant CONTENT_MODEL_FLOW_BOARD - assumed 'CONTENT_MODEL_FLOW_BOARD' in /var/www/html/LocalSettings.php on line 214
[6e41278a3968bd2cf8dedf04] /User_talk:Innosflew MWUnknownContentModelException from line 347 of /var/www/html/includes/content/ContentHandler.php: The content model 'CONTENT_MODEL_FLOW_BOARD' is not registered on this wiki.
See https://www.mediawiki.org/wiki/Content_handlers to find out which extensions handle this content model.
Backtrace:
#0 /var/www/html/includes/page/WikiPage.php(225): ContentHandler::getForModelID(string)
#1 /var/www/html/includes/page/WikiPage.php(212): WikiPage->getContentHandler()
#2 /var/www/html/includes/actions/Action.php(96): WikiPage->getActionOverrides()
#3 /var/www/html/includes/actions/Action.php(154): Action::factory(string, WikiPage, RequestContext)
#4 /var/www/html/includes/MediaWiki.php(151): Action::getActionName(RequestContext)
#5 /var/www/html/includes/MediaWiki.php(767): MediaWiki->getAction()
#6 /var/www/html/includes/MediaWiki.php(512): MediaWiki->main()
#7 /var/www/html/index.php(43): MediaWiki->run()
#8 {main}
I don't know what's going on. Innosflew (talk) 22:13, 15 December 2016 (UTC)
Contrary to what the error message claims, page Content_handlers does not mention the content model CONTENT_MODEL_FLOW_BOARD. It's obviously related to the Flow extension. Make sure that you have all related extensions installed!
See also Extension talk:StructuredDiscussions/2016#h-Undefined_constant_CONTENT_MODEL_FLOW_BOARD-2016-09-05T02:31:00.000Z! 83.135.225.133 (talk) 22:37, 15 December 2016 (UTC)
I have everything installed and I see Flow on the Special:Version page. Also opened chrome console and I notices on the talk pages I have this error as well:
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Also, on the latest master version(1.29.0-alpha) I tested out the editor both on Desktop and Mobile version seems to be working fine now, but I'm still getting the session errors in chrome console on every page for some reason:
load.php?debug=false&lang=en&modules=startup&only=scripts&skin=vector:4 [00700a194de2e7c8c28d397f] /load.php?debug=false&lang=en&modules=startup&only=scripts&skin=vector   BadMethodCallException from line 846 of /var/www/html/includes/session/SessionManager.php: Sessions are disabled for this entry point
Also, people are still not able to register on my wiki, and many special pages aren't seem to be working. Innosflew (talk) 22:56, 15 December 2016 (UTC)
BTW have you already tried the debugging instructions here: Manual:How to debug?
The console errors are usually too generic to be of much help. Try setting the following in LocalSettings.php for more detailed error logs.
$wgShowExceptionDetails = true; $wgDebugToolbar = true; $wgShowDebug = true; 
$wgDevelopmentWarnings = true; error_reporting( -1 ); ini_set( 'display_errors', 1);
error_reporting(E_ALL);
AhmadF.Cheema (talk) 04:40, 16 December 2016 (UTC)
@Innosflew Did you manage to fix this? I encounter the same problem: Project:Support desk/Flow/2017/03#h-Error_"Sessions_are_supposed_to_be_disabled_for_this_entry_point"-2017-03-14T17:57:00.000Z Waanders (talk) 18:20, 14 March 2017 (UTC)

Search functionality in mediawiki

Hi,

I am using mediawiki 1.26.3 version and i have a requirement of search functionality. When the user searchers for "sample" in the search box, it is listing down all the pages where the word "sample" is present. When i click on any of the link, it is not showing me where the word "sample" is present in that page. Can anyone help me in suggesting any extension that can suit this.

Thanks Srikanth Kollipara (talk) 12:35, 13 December 2016 (UTC)

Parsoid service for visual editor is not working in windows

Hi,

I am trying to install visual editor with parsoid on mediawiki 1.26.3 version. While starting the parsoid service from the command prompt using "server.js", i am getting the compilation error in server.js file. Any suggestions on resolving this? Srikanth Kollipara (talk) 12:37, 13 December 2016 (UTC)

Statistics

Hello all! Are there any magic word or other way to display total number of created Talk Pages? Fokebox (talk) 14:48, 13 December 2016 (UTC)

Maybe this:
https://www.mediawiki.org/wiki/Special:AllPages?from=&to=&namespace=1 AhmadF.Cheema (talk) 15:00, 13 December 2016 (UTC)
Yes, but I need the number of created talk pages and to have it on the main page Fokebox (talk) 18:34, 13 December 2016 (UTC)
Then try using:
{{PAGESINNAMESPACE:1}}
This will not work by default, will need to enable $wgAllowSlowParserFunctions too.
Also see: Help:Magic words#Statistics. AhmadF.Cheema (talk) 05:05, 14 December 2016 (UTC)
Yes it works and thx for the link about statistics. But there is only strange thins that after putting this magic word the system requires to create template PAGESINNAMESPACE ... I just created an empty page. Fokebox (talk) 14:51, 14 December 2016 (UTC)
What do you mean by "system requires"? Does the magic word not work without creating the empty page? AhmadF.Cheema (talk) 14:56, 14 December 2016 (UTC)
It works. But as soon as I have inserted Template:PAGESINNAMESPACE:1 so in the list of Templates I see that there is a Template:PAGESINNAMESPACE. It all works fine even I don't create this template. So you know if you put the word into brackets {{}} - then wiki creates a link to create a template
You see here the red link - it wants to create a template ) Fokebox (talk) 15:03, 14 December 2016 (UTC)
As said before: "This will not work by default, will need to enable $wgAllowSlowParserFunctions too."
It isn't enabled here, hence why it also doesn't work. 121.219.59.240 (talk) 03:37, 15 December 2016 (UTC)
Yes, I enabled it it works fine. Could you please tell how to make correctly a link to the list with all Talk pages? Fokebox (talk) 08:08, 15 December 2016 (UTC)
You can try something like the following:
<span class="plainlinks">[https://www.mediawiki.org/wiki/Special:AllPages?from=&to=&namespace=1 List of Wiki talk pages]</span>
For more details, see: Help:Links#External links to internal pages AhmadF.Cheema (talk) 09:17, 15 December 2016 (UTC)

adding ldap config to LocalSettings = wiki page wont load

When I add the below config items to the bottom of LocalSettings.php and then attempt to reach my wiki page it will not load. There are no browser error pages or anything just a blank screen. I restart httpd as well after saving LocalSettings but that does not seem to resolve it. I have installed the ldap extension as well.

any ideas?

# LDAP
require_once ('extensions/LdapAuthentication/LdapAuthentication.php');
require_once ('includes/AuthPlugin.php');
$wgAuth = new LdapAuthenticationPlugin();
$wgLDAPDomainNames = array(
  'cos-ldap',
);
$wgLDAPServerNames = array(
  'cos-ldap' => 'cos-ldap',
);
$wgLDAPUseLocal = false;
$wgLDAPEncryptionType = array(
  'cos-ldap' => 'tls',
);
$wgLDAPPort = array(
  'cos-ldap' => 389,
);
$wgLDAPProxyAgent = array(
  'cos-ldap' => 'cn=readonly,dc=example,dc=com',
);
$wgLDAPProxyAgentPassword = array(
  'cos-ldap' => '*****',
);
$wgLDAPSearchAttributes = array(
  'cos-ldap' => 'uid'
);
$wgLDAPBaseDNs = array(
  'cos-ldap' => 'dc=example,dc=com',
);
# To pull e-mail address from LDAP
$wgLDAPPreferences = array(
  'cos-ldap' => array( 'email' => 'mail')
);
# Group based restriction
$wgLDAPGroupUseFullDN = array( "cos-ldap"=>false );
$wgLDAPGroupObjectclass = array( "cos-ldap"=>"posixgroup" );
$wgLDAPGroupAttribute = array("cos-ldap"=>"memberuid" );
$wgLDAPGroupSearchNestedGroups = array( "cos-ldap"=>false );
$wgLDAPGroupNameAttribute = array( "cos-ldap"=>"cn" );
$wgLDAPRequiredGroups = array( "cos-ldap"=>array("cn=ldapwiki,ou=groups,dc=example,dc=com"));
$wgLDAPLowerCaseUsername = array(
  'cos-ldap' => true,

Bwfreas (talk) 16:05, 13 December 2016 (UTC)

maybe I should also stop and ask - is the mediawiki extension compatible on RHEL 7? Bwfreas (talk) 17:02, 13 December 2016 (UTC)
Enable debug mode.
$wgLDAPDebug = 3;
$wgDebugLogGroups['ldap'] = '/tmp/debug.log';
And check logs. Blank page is a code error.
Have a look to my config:
require_once( "$IP/extensions/LdapAuthentication/LdapAuthentication.php" );
$wgAuth = new LdapAuthenticationPlugin();
$wgLDAPDomainNames = array("iRedMail");
$wgLDAPServerNames = array("iRedMail" => "192.168.XX.XX");
$wgLDAPPort = array("iRedMail" => 389);
$wgLDAPEncryptionType = array( "iRedMail" => "clear");
$wgLDAPBaseDNs = array( "iRedMail"=>"o=domains,dc=example,dc=com");
$wgLDAPProxyAgent = array("iRedMail"=>"cn=vmail,dc=example,dc=com");
$wgLDAPProxyAgentPassword = array( "iRedMail"=>"XXXXXXXX");
$wgLDAPUserBaseDNs = array( "iRedMail"=>"o=domains,dc=example,dc=com");
$wgLDAPSearchAttributes = array( "iRedMail" => "mail");
$wgLDAPLowerCaseUsername = array( "iRedMail"=>true);
$wgLDAPUseLocal = true;
$wgGroupPermissions['*']['autocreateaccount'] = true;
$wgLDAPDebug = 3;
$wgDebugLogGroups['ldap'] = '/tmp/debug.log';
Aarango1 (talk) 11:51, 14 December 2016 (UTC)
I added that to the config and saved - refreshed wiki page but there is no file generated in /tmp
# LDAP
require_once ('extensions/LdapAuthentication/LdapAuthentication.php');
require_once ('includes/AuthPlugin.php');
$wgLDAPDebug = 3; $wgDebugLogGroups['ldap'] = '/tmp/debug.log';
Bwfreas (talk) 16:03, 14 December 2016 (UTC)
is ldap extension supported in RHEL 7? 192.31.106.36 (talk) 17:21, 14 December 2016 (UTC)
Check error apache/nginx, if not. Try enabling debug mode on MediaWiki. You should see logs in anywhere for that blank screen.
Let me know what happens to try to help you. Aarango1 (talk) 06:52, 15 December 2016 (UTC)
ive narrowed it down to just these statements that cause the page to not load - when commented out the page works fine
#require_once 'extensions/LdapAuthentication/LdapAuthentication.php';
require_once 'includes/AuthPlugin.php';
#$wgAuth = new LdapAuthenticationPlugin();
#wgLDAPDomainNames = array('coswiki');
Bwfreas (talk) 17:00, 15 December 2016 (UTC)
The first two of your lines are including a file. Make sure that this file does actually exist!
The third line looks ok.
The fourth line is missing the $ sign at the beginning. It should be
$wgLDAPDomainNames = array('coswiki');
Should this not make the wiki show up again, see how to debug! 83.135.225.133 (talk) 19:30, 15 December 2016 (UTC)
thank you i did fix that line missing the $ and that one is not an offender anymore which certainly makes sense
i did verify that the LdapAuthentication.php file however im not finding the AuthPlugin.php anywhere? Bwfreas (talk) 20:48, 15 December 2016 (UTC)
also i did add the
error_reporting( -1 );
ini_set( 'display_errors', 1 );
to LocalSettings.php and refreshed the page but i am not seeing any errors or anything still on the page. I'm pretty much new to this type of thing so I am fumbling around here as best I can with limited knowledge Bwfreas (talk) 20:49, 15 December 2016 (UTC)

[Wed Dec 14 19:54:04.831347 2016] [:error] [pid 16978] [client 166.17.76.79:61366] PHP Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/mediawiki-1.26.3/extensions/LdapAuthentication/LdapAuthentication.php on line 140
[Wed Dec 14 19:56:30.954031 2016] [:error] [pid 16979] [client 166.17.76.103:53469] PHP Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/mediawiki-1.26.3/extensions/LdapAuthentication/LdapAuthentication.php on line 140
[Wed Dec 14 20:01:38.391453 2016] [:error] [pid 16977] [client 166.17.76.103:53538] PHP Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/mediawiki-1.26.3/extensions/LdapAuthentication/LdapAuthentication.php on line 140
[Wed Dec 14 21:19:10.984176 2016] [:error] [pid 16981] [client 166.17.76.103:55951] PHP Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/mediawiki-1.26.3/extensions/LdapAuthentication/LdapAuthentication.php on line 140
[Thu Dec 15 14:58:12.062477 2016] [:error] [pid 16978] [client 166.17.76.103:62886] PHP Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/mediawiki-1.26.3/extensions/LdapAuthentication/LdapAuthentication.php on line 140
[Thu Dec 15 14:58:14.140510 2016] [:error] [pid 16979] [client 166.17.76.103:62887] PHP Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/mediawiki-1.26.3/extensions/LdapAuthentication/LdapAuthentication.php on line 140
[Thu Dec 15 14:58:23.490897 2016] [:error] [pid 16980] [client 166.17.76.103:62891] PHP Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/mediawiki-1.26.3/extensions/LdapAuthentication/LdapAuthentication.php on line 140
[Thu Dec 15 15:15:34.117286 2016] [:error] [pid 18087] [client 166.17.76.103:63068] PHP Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/mediawiki-1.26.3/extensions/LdapAuthentication/LdapAuthentication.php on line 140
[Thu Dec 15 20:37:50.393778 2016] [:error] [pid 18147] [client 166.17.76.103:52674] PHP Parse error: syntax error, unexpected '=' in /var/www/mediawiki-1.26.3/LocalSettings.php on line 138
[Thu Dec 15 20:37:56.701377 2016] [autoindex:error] [pid 18088] [client 166.17.76.103:52675] AH01276: Cannot serve directory /var/www/: No matching DirectoryIndex (index.html,index.html.var,index.php,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Dec 15 20:38:00.554705 2016] [:error] [pid 18088] [client 166.17.76.103:52675] PHP Parse error: syntax error, unexpected '=' in /var/www/mediawiki-1.26.3/LocalSettings.php on line 138
[Thu Dec 15 20:38:05.384054 2016] [:error] [pid 16977] [client 166.17.76.103:52676] PHP Parse error: syntax error, unexpected '=' in /var/www/mediawiki-1.26.3/LocalSettings.php on line 138
[Thu Dec 15 20:44:04.862157 2016] [:error] [pid 18149] [client 166.17.76.103:52923] PHP Parse error: syntax error, unexpected '=' in /var/www/mediawiki-1.26.3/LocalSettings.php on line 138, referer: http://158.188.14.162/mediawiki/index.php/Main_Page
[Thu Dec 15 20:44:09.787671 2016] [:error] [pid 16981] [client 166.17.76.103:52939] PHP Parse error: syntax error, unexpected '=' in /var/www/mediawiki-1.26.3/LocalSettings.php on line 138, referer: http://158.188.14.162/mediawiki/index.php/Main_Page
[Thu Dec 15 20:44:14.842079 2016] [:error] [pid 16980] [client 166.17.76.103:52946] PHP Parse error: syntax error, unexpected '=' in /var/www/mediawiki-1.26.3/LocalSettings.php on line 138, referer: http://158.188.14.162/mediawiki/index.php/Special:AllPages
[Thu Dec 15 20:44:17.155053 2016] [:error] [pid 16977] [client 166.17.76.103:52947] PHP Parse error: syntax error, unexpected '=' in /var/www/mediawiki-1.26.3/LocalSettings.php on line 138, referer: http://158.188.14.162/mediawiki/index.php/Special:AllPages
[Thu Dec 15 20:44:18.682162 2016] [:error] [pid 18149] [client 166.17.76.103:52948] PHP Parse error: syntax error, unexpected '=' in /var/www/mediawiki-1.26.3/LocalSettings.php on line 138, referer: http://158.188.14.162/mediawiki/index.php/Main_Page
[Thu Dec 15 20:45:25.736129 2016] [:error] [pid 16978] [client 166.17.76.103:52955] PHP Fatal error: Class 'LdapAuthenticationPlugin' not found in /var/www/mediawiki-1.26.3/LocalSettings.php on line 137, referer: http://158.188.14.162/mediawiki/index.php/Main_Page
[Thu Dec 15 20:45:28.245284 2016] [:error] [pid 18147] [client 166.17.76.103:52956] PHP Fatal error: Class 'LdapAuthenticationPlugin' not found in /var/www/mediawiki-1.26.3/LocalSettings.php on line 137, referer: http://158.188.14.162/mediawiki/index.php/Main_Page

Bwfreas (talk) 20:58, 15 December 2016 (UTC)

can anyone help intrepret my issues based on those entries in the error_log in /var/log/httpd Bwfreas (talk) 20:59, 15 December 2016 (UTC)
You had a number of issues in your LocalSettings.php file. However, it looks like there at least is no syntax error in it anymore now.
According to Extension:LDAP_Authentication/Configuration it is correct to use a $wgAuth = new LdapAuthenticationPlugin();.
The last issue is
PHP Fatal error: Class 'LdapAuthenticationPlugin' not found in /var/www/mediawiki-1.26.3/LocalSettings.php on line 137
This means that the class LdapAuthenticationPlugin could not be found. Did this class not get autoloaded? 83.135.225.133 (talk) 21:27, 15 December 2016 (UTC)
The LdapAuthenticationPlugin class is defined in the central LdapAuthentication/LdapAuthentication.php file. If you
  1. downloaded the extension in the right version and if
  2. the require_once 'extensions/LdapAuthentication/LdapAuthentication.php'; line correctly is in place, this error will not happen.
My guess is that you did not only add the "#" sign above to create numbers in front of the lines, which you posted. I believe tht you are having these "#" signs in your LocalSettings.php file as well, which effectively deactivates these lines. Make sure to remove these three "#" signs from the three lines! 83.135.225.133 (talk) 21:35, 15 December 2016 (UTC)
I've edited the messages wrapping code between <pre></pre> tags Ciencia Al Poder (talk) 10:16, 16 December 2016 (UTC)
hi folks - let me say I appreciate the feedback here so far - i seriously do
so as of right now when i tail /var/log/httpd/error_log and attempt to load the main page - this is the only error im seeing as of right now
[Fri Dec 16 14:02:23.654444 2016] [:error] [pid 19502] [client 166.17.76.103:64705] PHP Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/mediawiki-1.26.3/extensions/LdapAuthentication/LdapAuthentication.php on line 140
i think/thought i followed the extension install correctly but i am not sure how to tell if that plugin was loaded or how to verify? I am running mediawiki 1.26.3 which i believe when i installed the extension was not an option however it directed me to just use the most recent version - was that correct?
also - is it possible there is a permissions issue anywhere here?
lastly - referring to the last comment - yes I was just commenting lines as a test since as soon as i added the ldap items to LocalSettings.php the site became unloadable so I was just going back in line by line commenting them out to try and see if i could find a culprit and i left them commented when i copied them in here - that is my mistake and I apologize for the confusion Bwfreas (talk) 14:07, 16 December 2016 (UTC)
Try using the 1.26 version. You can download it here:
https://github.com/wikimedia/mediawiki-extensions-LdapAuthentication/archive/REL1_26.zip 83.135.227.123 (talk) 15:16, 16 December 2016 (UTC)
thank you for that! i installed it and just renamed the old LdapAuthentication in extensions to get it out of the way and now the page will at least always load however it doesnt seem like the ldap is working still which im not surprised at this point
i know of /var/log/httpd/error_log, access_log and ssl_access_log is there anywhere else i should be looking or any other possible cause? can you tell me are my config settings right (I know you probably cant speak to some of the specifics on my side but otherwise does it look accurate?) I commented out the LdapAuthenticationPlugin.php because in the 1.26 version that file doesnt exist so I assume it isnt needed?
# LDAP
require_once 'extensions/LdapAuthentication/LdapAuthentication.php';
#require_once 'extensions/LdapAuthentication/LdapAuthenticationPlugin.php';
require_once 'includes/AuthPlugin.php';
$wgAuth = new LdapAuthenticationPlugin();
$wgLDAPDomainNames = array('ldap-server-name');
$wgLDAPServerNames = array('ldap-server-name' => 'ip.of.ldap.server');
$wgLDAPUseLocal = false;
$wgLDAPDebug = 3;
$wgDebugLogGroups['ldap-server-name'] = '/tmp/debug.log';
$wgLDAPEncryptionType = array('ldap-server-name' => 'clear');
$wgLDAPSearchAttributes = array('ldap-server-name' => 'uid');
$wgLDAPBaseDNs = array('ldap-server-name' => 'dc=cos-ldap');
$wgLDAPPreferences = array('ldap-server-name' => array('email' => 'mail', 'realanme' => 'displayname', 'nickname' => 'cn'));
$wgLDAPLowerCaseUsername = array('ldap-server-name' => true);
$wgLDAPGroupUseFullDN = array('ldap-server-name'=>false);
$wgLDAPGroupObjectclass = array('ldap-server-name' => 'posixgroup');
$wgLDAPGroupAttribute = array('ldap-server-name' => 'memberUid');
$wgLDAPGroupNameAttribute = array('ldap-server-name' => 'cn');
[root@cybwiki2 mediawiki]# cd extensions/
[root@cybwiki2 extensions]# cd LdapAuthentication
[root@cybwiki2 LdapAuthentication]# ll
total 108
-rw-r--r--. 1 apache apache 18092 Sep 29  2015 COPYING
-rw-r--r--. 1 apache apache   385 Sep 29  2015 Gruntfile.js
drwxr-xr-x. 2 apache apache  4096 Sep 29  2015 i18n
-rw-r--r--. 1 apache apache 68147 Sep 29  2015 LdapAuthentication.php
-rw-r--r--. 1 apache apache  3463 Sep 29  2015 LdapAutoAuthentication.php
-rw-r--r--. 1 apache apache   211 Sep 29  2015 package.json
-rw-r--r--. 1 apache apache   256 Sep 29  2015 README
drwxr-xr-x. 2 apache apache    51 Sep 29  2015 schema
this is what tails in /tmp/systemd-private-a8d23a4eee284c61bcbdeacbf4fc918f-httpd.service-tuWiCe/tmp
when a user tries to log in
2016-12-16 17:27:01 ip.of.wiki wikidb: 2.1.0 Entering validDomain
2016-12-16 17:27:01 ip.of.wiki wikidb: 2.1.0 User is using a valid domain (cos-ldap).
2016-12-16 17:27:01 ip.of.wiki wikidb: 2.1.0 Setting domain as: cos-ldap
2016-12-16 17:27:01 ip.of.wiki wikidb: 2.1.0 Entering getCanonicalName
2016-12-16 17:27:01 ip.of.wiki wikidb: 2.1.0 Username is: Remigioj
2016-12-16 17:27:01 ip.of.wiki wikidb: 2.1.0 Entering getDomain
2016-12-16 17:27:01 ip.of.wiki wikidb: 2.1.0 Munged username: Remigioj
2016-12-16 17:27:01 ip.of.wiki wikidb: 2.1.0 Entering getCanonicalName
2016-12-16 17:27:01 ip.of.wiki wikidb: 2.1.0 Username is: Remigioj
2016-12-16 17:27:01 ip.of.wiki wikidb: 2.1.0 Entering getDomain
2016-12-16 17:27:01 ip.of.wiki wikidb: 2.1.0 Munged username: Remigioj
2016-12-16 17:27:01 ip.of.wiki wikidb: 2.1.0 Entering authenticate for username Remigioj
2016-12-16 17:27:01 ip.of.wiki wikidb: 2.1.0 Entering getDomain
2016-12-16 17:27:01 ip.of.wiki wikidb: 2.1.0 Entering getDomain
2016-12-16 17:27:01 ip.of.wiki wikidb: 2.1.0 Entering getDomain
2016-12-16 17:27:01 ip.of.wiki wikidb: 2.1.0 Entering Connect
2016-12-16 17:27:01 ip.of.wiki wikidb: 2.1.0 It looks like you are missing LDAP support; please ensure you have either compiled LDAP support in, or have enabled the module. If the authentication is working for you, the plugin isn't properly detecting the LDAP module, and you can safely ignore this message.
2016-12-16 17:27:01 ip.of.wiki wikidb: 2.1.0 Entering strict.
2016-12-16 17:27:01 ip.of.wiki wikidb: 2.1.0 Entering getDomain
2016-12-16 17:27:01 ip.of.wiki wikidb: 2.1.0 Returning true in strict().
2016-12-16 17:27:01 ip.of.wiki wikidb: 2.1.0 Entering allowPasswordChange
2016-12-16 17:27:01 ip.of.wiki wikidb: 2.1.0 Entering getDomain
2016-12-16 17:27:01 ip.of.wiki wikidb: 2.1.0 Entering getDomain
2016-12-16 17:27:01 ip.of.wiki wikidb: 2.1.0 Entering modifyUITemplate
2016-12-16 17:27:01 ip.of.wiki wikidb: 2.1.0 Entering getDomain
2016-12-16 17:27:01 ip.of.wiki wikidb: 2.1.0 Entering getDomain
2016-12-16 17:27:01 ip.of.wiki wikidb: 2.1.0 Entering getDomain
one last point to mention here is that ldap and associated ports are in fact open between this wiki and the actual ldap server as ldap does work from the OS side of the wiki - there is also an entry in the wikis /etc/hosts for the ldap server IP
thanks! Bwfreas (talk) 17:33, 16 December 2016 (UTC)
The message "It looks like you are missing LDAP support; please ensure you have either compiled LDAP support in, or have enabled the module. If the authentication is working for you, the plugin isn't properly detecting the LDAP module, and you can safely ignore this message." happens when the ldap_connect function in PHP is not present. You need to install the ldap extension of php. See Extension:LDAP Authentication/Requirements. Ciencia Al Poder (talk) 10:52, 18 December 2016 (UTC)
thank you Bwfreas (talk) 16:03, 19 December 2016 (UTC)
it appears as though some changes i made relative to firewalld and adding the ldap port to localsettings.php has changed what is happening upon user log in
from the gui now once entering credentials a user sees:
= Database error =
A database query error has occurred. This may indicate a bug in the software.
it still shows "log in" at the top though they can browse all the articles, changes etc of the wiki
in the debug log i see:
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 User is using a valid domain (cos-ldap).
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Setting domain as: cos-ldap
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Entering getCanonicalName
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Username is: jsmith
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Entering getDomain
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Munged username: jsmith
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Entering getCanonicalName
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Username is: jsmith
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Entering getDomain
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Munged username: smith
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Entering authenticate for username jsmith
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Entering getDomain
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Entering getDomain
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Entering getDomain
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Entering Connect
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Entering getDomain
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Using TLS or not using encryption.
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Entering getDomain
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Entering getDomain
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Entering getDomain
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Using servers: ldap://158.188.14.175:389
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Entering getDomain
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 PHP's LDAP connect method returned true (note, this does not imply it connected to the server).
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Entering getSearchString
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Entering getDomain
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Entering getUserDN
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Entering getDomain
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Doing an anonymous bind
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Entering getDomain
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Created a regular filter: (uid=jsmith)
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Entering getBaseDN
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Entering getDomain
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 basedn is not set for this type of entry, trying to get the default basedn.
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Entering getBaseDN
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Entering getDomain
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Using base: dc=cos-ldap
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Setting the LDAPUsername based on fetched wgLDAPSearchAttributes: jsmith
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 userdn is: uid=jsmith,ou=People,dc=cos-ldap
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Entering getDomain
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Binding as the user
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Bound successfully
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Entering getDomain
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Entering getDomain
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Entering getGroups
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Entering getDomain
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Entering getDomain
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Entering checkGroups
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Entering getDomain
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Entering getDomain
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Entering getPreferences
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Entering getDomain
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Retrieving preferences
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Retrieved email (jsmith@cos-ldap) using attribute (mail)
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Retrieved nickname (jsmith) using attribute (cn)
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Authentication passed
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Entering updateUser
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Entering getDomain
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Setting user preferences.
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Setting nickname.
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Setting email.
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 Entering getDomain
2016-12-19 16:49:09 158.188.14.162 wikidb: 2.1.0 User has a token, setting domain in user options. Bwfreas (talk) 17:45, 19 December 2016 (UTC)
looks like the additional issue was located here by a collegue - running the update.php script in /maintenance seems to have cleared the database error and it looks to be functioning Bwfreas (talk) 18:23, 19 December 2016 (UTC)
resolved Bwfreas (talk) 21:31, 19 December 2016 (UTC)
See Manual:Preventing access Ciencia Al Poder (talk) 21:37, 19 December 2016 (UTC)
thank you! Bwfreas (talk) 21:38, 19 December 2016 (UTC)

How to #replace double line feed

I have a text with double line feeds, like this:

 This is 

 some

 Text

MediaWiki renders this as

This is 
<p>some</p>
<p>Text</p>

How can I use #replace to strip out the new lines / paragraphs?

That means I want to have "This is some text" as a result.

I tried this, but it doesn't work:

{{#replace:Text with double line feeds|& #10;|}}
{{#replace:Text with double line feeds|& #13;|}}
{{#replace:Text with double line feeds|& #182;|}}
{{#replace:Text with double line feeds|& #8233;|}}

PS: Had to add a space between "&" and "#" so that it's not parsed. Stefahn (talk) 16:12, 13 December 2016 (UTC)

Section Edit Box is missing Text

I have a recently installed wiki on CentOS 7 (1.26.3), PHP 5.4.16, MariaDB 5.5.47. Installation went smoothly and I satisfied all dependencies but the "Edit" text is missing from the section headers. It shows "[ ]" and if you move the cursor between the brackets it gives you the popup "Edit Section" but the actual "edit" text does not display. I don't see any errors in the Apache logs. Any idea what could be causing this? Thanks. NovaRay (talk) 16:16, 13 December 2016 (UTC)

MediaWiki Site Broken after Crash and Server Upgrade

I have three small, private, MediaWiki sites that were running on a CentOS 6 server. After a server crash, I built a new machine on CentOS 7 but I'm having trouble getting these three sites running again. Other sites using MySQL/MariaDB are working, just not the MediaWiki sites. The version of MediaWiki being used is 1.24. I know I need to upgrade but I figured I'd take one problem at a time.

When I go to one of the restored sites I get an error message saying the wiki-hartfam.mw_page table doesn't exist (full error message below). At first I thought it had to do with the hyphen in the database name, but now I don't think so.

When I look in the /var/lib/mysql/wiki-hartfam/ directory (although it's listed as wiki@002dhartfam because of that hyphen), there is a mw_page.frm file but no MYD or MYI file. In fact, for all of my wiki databases, both on the server and in my backups, the only MYD or MYI files are searchindex. Is this usual? Have I really lost the same files for all three wikis including in all my backups? That seems highly unlikely if not impossible.

So, is the problem that I'm missing files or does it have to do with my switching from CentOS 6 (with MySQL 5.1.x, if I remember correctly) to CentOS 7 (with MariaDB 5.5.50).

The exact error message I'm getting is:

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

Query:
SELECT page_title FROM `mw_page` WHERE page_is_redirect = '0' AND page_namespace = '8' AND (page_title NOT LIKE '%/%' ) AND (page_len > 10000)
Function: MessageCache::loadFromDB(en)-big
Error: 1146 Table 'wiki-hartfam.mw_page' doesn't exist (localhost)

Any help in recovering these sites would be greatly appreciated. HenryHartley (talk) 18:53, 13 December 2016 (UTC)

Solving one issue at a time is the right idea.
What you have actually is a MySQL problem. The searchindex table really is a special table as this is the only table, which uses the MyISAM table engine. All other tables should be InnoDB. The content of these files should be in the idb files. During operation of the server the current content might only be inside the InnoDB tablespace, so that in the worst case these files do not reflect the newest state.
When you access the MySQL server, e.g. with phpmyadmin or using the mysql command on the commandline, which tables are you then seeing in the three databases?
Has InnoDB maybe not been activated?
Next question: How have you copied over the contents from the old to the new server? Using an SQL dump file would be great! 83.135.226.168 (talk) 20:12, 13 December 2016 (UTC)
First, I don't see any idb files. I assume they would be in the same directory as the rest of this database's files. Is that right? I have the searchindex files (MYD, MYI, and frm) and then a long list of .frm files (and one db.opt file).
You ask if InnoDB has been activated. It appears that MariaDB comes compiled with XtraDB as the default InnoDB replacement. Any reason that wouldn't work here? What would I do to check if InnoDB has been activated?
The old server crashed and I am working from backup files. My biggest worry is that what I was doing for backup wasn't sufficient. I had a cron job that created a copy of the mysql directory including all the DB directories. That's what I'm using, copying the files directly from that.
In the mysql command line client, "show tables;" lists all the tables, including mw_page So that's something, anyway. However, when I run "show columns from mw_page;" it says the table doesn't exist. HenryHartley (talk) 16:26, 14 December 2016 (UTC)
OK, good news. The idb file (as I'm sure you know but I didn't) is ibdata1 and is in the directory containing all the separate mysql database directories. Apparently it's shared between all the databases, which seems a bit crazy to me. I restored that file from backup and after a few false starts with file permissions, I got mariadb running. The mysql command line got me to the table content and the site now responds properly. Thank you for pointing me in the right direction.
This is perhaps something that has been brought up elsewhere, but wouldn't it make a lot of sense to have the content from each database have its own idb file? Is that easily done (particularly is it easily done after the fact)? Is there a best-practices document somewhere that talks about this, particularly in terms of MediaWiki practice?
Again, thanks very much for your help. HenryHartley (talk) 17:03, 14 December 2016 (UTC)

Restoring old version of Media Wiki to latest version

We have a backup set, which is extremely old and are unsure of what version of MediaWiki it was built on.

We would like to restore it to the latest version of MediaWiki, we restore the database, but cant find any info on restoring attachments/images/skins, it appears the folder structure has changed from previous versions.

Alternatively, is there a way to find the version of MediaWiki through the SQL database or a file in /www ? 99.236.48.58 (talk) 00:31, 14 December 2016 (UTC)

In recent version at-least, the MediaWiki version can be found written in RELEASE-NOTES, HISTORY.txt, LocalSettings.php (all in root Mediawiki directory). See if these are available in your Wiki backup too. AhmadF.Cheema (talk) 08:23, 14 December 2016 (UTC)

How do i start my own wiki

Help me The Brynda1231 |Talc page 02:12, 14 December 2016 (UTC)
https://en.wikijournal.org/wiki/How_to_create_website_on_MediaWiki Fokebox (talk) 08:38, 15 December 2016 (UTC)
You can get a hosting space, download the latest version of Mediawiki, upload it and then install. JamesPoulson (talk) 02:21, 14 December 2016 (UTC)
WHERE do i get those hosting spaces. The Brynda1231 |Talc page 02:33, 14 December 2016 (UTC)
There is a multitude of hosts although not all are as reliable. If you wish I can guide you through the process. You can email me at james.poulson@gmail.com. JamesPoulson (talk) 11:31, 14 December 2016 (UTC)
You have to take a Hosting, after, you should upload your MediaWiki to your hosting space. Go your website and start install.
You have to install a database, permissions... maybe you should talk with your hosting provider to guide you a bit more. Aarango1 (talk) 11:47, 14 December 2016 (UTC)

How can I get from Extension:Translate to show up in MediaWiki:Sitenotice?

Question in title. JamesPoulson (talk) 02:22, 14 December 2016 (UTC)

Wanted to Highlight the search key in individual Pages

I wanted to highlight the searched key word in individual pages. Once I search I will get a list of all pages containing the text, but after opening that page I am not able to figure out where the search key word in my wiki pages. Is there any way I can solve this.

Thanks in advance. Phani233 (talk) 10:01, 14 December 2016 (UTC)

I don't know of any MediaWiki built-in method for this, but you can use Ctrl+F to search for the particular word on the page. AhmadF.Cheema (talk) 10:27, 14 December 2016 (UTC)
Hit CTRL + F in your browser to search text of the current page Ciencia Al Poder (talk) 10:38, 14 December 2016 (UTC)

Making a namespace like WP:

Hi. I'm running a new wiki at irdocs.org and I want to define a namespace that redirects to Project: Namespace or like that.

as it's been defined in Wikimedia wikis like WP: for Wikipedia or MW: etc.

How should I do it ? Mohammad (talk) 14:24, 14 December 2016 (UTC)

See Manual:$wgNamespaceAliases. AhmadF.Cheema (talk) 14:51, 14 December 2016 (UTC)
I did it, I'm using Persian Namespaces so only works when I search : &#1608;&#1605;:something not when I search : وم:something
though it's not configured correct I think, user can still create a "وم:something" page, it's not auto redirect Mohammad (talk) 15:21, 14 December 2016 (UTC)

Flagged Revs SpecialPages Pending Changes Does Not Exist

I have installed FlaggedRevs and the Special Pages for the extension do not seem to be installed. I am on MW1.27.1 and Mysql 5.6. Doe s anyone have clues on how to install these special pages?

Here is a reference to those pages: https://www.mediawiki.org/wiki/Help:Extension:FlaggedRevs#FlaggedRevs_on_a_wiki

Thank You Pete Peteolsen (talk) 15:19, 14 December 2016 (UTC)

FlaggedRevs Reject Changes Fails

When a user wants to reject a change using FlaggedRevs the reject button fails and a non existent page is called. Does anyone have a fix for this?

Thanks, Pete Peteolsen (talk) 15:22, 14 December 2016 (UTC)

Connection Errors

I am running FileZilla on a Mac Book Pro running the latest version of Sierra. I have been using FileZilla for years to connect to a group of servers. Recently, I am getting connection failures on one of the servers. I deleted and added the site several times. I can manually sftp to the site from a terminal window. However, for some reason, FileZilla will not connects. Here is a log snippet.

michael_lipczynski@cable.comcast.com

Status: Connecting to 10.253.206.13... Response: fzSftp started, protocol_version=7 Command: open "advisor@10.253.206.13" 22 Error: Server unexpectedly closed network connection Error: Could not connect to server Status: Waiting to retry... Status: Connecting to 10.253.206.13... Response: fzSftp started, protocol_version=7 Command: open "advisor@10.253.206.13" 22 Error: Server unexpectedly closed network connection Error: Could not connect to server Status: Disconnected from server Status: Connecting to 10.253.206.13... Response: fzSftp started, protocol_version=7 Command: open "advisor@10.253.206.13" 22 Error: Server unexpectedly closed network connection Error: Could not connect to server Status: Waiting to retry... Status: Connecting to 10.253.206.13... Response: fzSftp started, protocol_version=7 Command: open "advisor@10.253.206.13" 22 Error: Server unexpectedly closed network connection Error: Could not connect to server 68.87.42.115 (talk) 19:59, 14 December 2016 (UTC)

Welcome to the support desk of the MediaWiki software. Your comment (as there is no question) seems to be unrelated to MediaWiki software and hence off-topic here? AKlapper (WMF) (talk) 09:36, 15 December 2016 (UTC)

Tag <PDF> incompatibility between PDFInclude and PDFEmbed

The PDFInclude allows to include PDF-files on a page from any URL.

The PDFEmbed extension allows PDF files (uploaded to your wiki) to be embedded into a wiki page

I have these 2 requires into my LocalSetting.php

but now

when I have <pdf>http://..............pdf</pdf> it is OK : I see the external pdf on my page

when I have <pdf>File:exemple.pdf</pdf> it is not OK : I get an error of URL detect by PDFInclude at line 82 because I suppose it is not PDFEmbed which is running now in this case ?


how to do for the 2 extensions works with this same tag ? Chantoune (talk) 22:45, 14 December 2016 (UTC)

What is "PDFInclude" and where to find info about it? AKlapper (WMF) (talk) 09:35, 15 December 2016 (UTC)
PDFInclude is one availaible mediawiki extension and its code may be implemented in the extension directory
its documentation is here https://www.mediawiki.org/wiki/Extension:PDF_Include
I solve my probleme by changing the tag <pdf> into tag <pdfURL> into the code of PDFInclude.php mediawiki extension
function pdfRegister() {
global $wgParser;
$wgParser->setHook( 'pdfURL', 'pdfInclude' );
return true;
} Chantoune (talk) 11:47, 16 December 2016 (UTC)

Wildcard search in 1.27

I've tried to follow the instructions on https://www.mediawiki.org/wiki/Help_talk:Searching But couldn't get it to work I posted a question on there, but since no-one is likely to answer it I'm posting here. I get the following error message.

Call to undefined method Language::stripForSearch

I tried changing it to stripForSearchCallback which is defined in search/SearchMySQL.php but no luck. Can anyone help? Rammer (talk) 12:28, 15 December 2016 (UTC)

Automatic conversion of time

Hi. Is there any function that, when using numbers as values in a parameter, to convert them to time units? Ex: Say I would like to use |time=1800 which would show up as 1 day and 6 hours. In addition to that, is there any way that the same conversion could be added to another parameter (say, |time2), automatically, but it would first multiply the original number (say by 1.2) then convert it and you would have 1 day and 12 hours? I know it seems nigh impossible, but I've seen magic happen with templates, so maybe something like this exists. Thanks! 188.24.81.118 (talk) 13:19, 15 December 2016 (UTC)

I don't know of such a solution, but I am thinking of Extension:ParserFunctions right now... 83.135.225.133 (talk) 15:45, 15 December 2016 (UTC)

Question?

Hi! I am pretty new to this.. I am planning to create a wiki website.. centered around google world map. The idea is to let users pinpoint different locations and add notes to these locations. Is Mediawiki what I am looking for? Fetjosef (talk) 18:57, 15 December 2016 (UTC)

Mediawiki can be you useful, why not. Aarango1 (talk) 06:30, 16 December 2016 (UTC)

Internationalize Extension:Gadgets/Scripts/SubPages.js

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 want to localize messages in this extension script (Extension:Gadgets/Scripts/SubPages.js). It seems not to be complex code, but I don't know how to internationalize it. Another extension Extension:Gadgets/Scripts/UserRights.js is already done (Tool-link-userrights-readonly at translatewiki). Could anyone help me? Thank you. Darklanlan (talk) 01:33, 16 December 2016 (UTC)

These are not parts of the extension, just code snippets which can be copied to other wikis (e.g. to Commons). Neither of them is internationalized, only the user rights gadget is not used as its functionality is present in MediaWiki core (which is, by design, fully internationalized). Internationalizing these gadgets is complicated and there isn’t one common technique. However, Commons’s version is already internationalized so you can ask i18n on the talk page. Tacsipacsi (talk) 15:22, 17 December 2016 (UTC)
I see. I had a misunderstanding of that. I'll ask it there. Thank you very much. Darklanlan (talk) 15:48, 17 December 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Duplicate Contribution for Deletion

I seem to have created two contributions for the same topic, under slightly different titles. I want to delete the wrong one. How can I do this please? 217.71.190.138 (talk) 09:04, 16 December 2016 (UTC)

Only sysops or other user groups with the delete right can delete pages. You should ask a sysop on the wiki. Some wikis have templates that you can put on pages requesting it's deletion, or ask on a talk page.
Another solution is to make the wrong title redirect automatically to the new one (this doesn't require special rights). See Help:Redirects Ciencia Al Poder (talk) 10:20, 16 December 2016 (UTC)

Non-extant pages producting 404 for /w/index.php

Hello,

I'm running into an issue with a new wiki I'm working on which I've never seen before and can't get to the bottom of.

I'm using the standard mod_rewrite rules as outlined in the docs, and that works fine for extant pages, but when attempting to naviagate to a page which has not yet been created, or e.g. a special page which doesn't exist I get a 404 page for /w/index.php instead of a MediaWiki rendered page.

Not Found

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


Extant page: http://toolbox.cuwcc.org/wiki/Main_Page

Non-extant page: http://toolbox.cuwcc.org/wiki/Does_not_exist

A request to http://toolbox.cuwcc.org/w/index.php works just fine, so I'm feeling pretty confused about what could be causing this.

MediaWiki 1.26, Apache 2, CentOS7 Andrujhon (talk) 11:44, 16 December 2016 (UTC)

When you are doing a request to a non-existent page (e.g. to wiki/Does_not_exist), the server currently ends up trying to display w/index.php and it tells you that this file would not have been found.
When you however view the history of one of your wiki pages, then w/index.php?title=Main_Page&action=history does work.
I am pretty sure that the problem is somewhere in your .htaccess file. Maybe you are missing a RewriteBase or something like that... 83.135.227.123 (talk) 13:45, 16 December 2016 (UTC)

ScriptInstaller

Hi everyone! I was interested ScriptInstaller script, but doesn't work some functions on kkwiki (script page loaded by common.js). Script author currently inactive.

How to fix these three bugs:

1. here installer link doesn't work. Shown Must be installed manually message;

2. Show installed script list link not shown;

3. already installed scripts shown install link, not shown installed message. Please help me. Arystanbek (talk) 12:55, 16 December 2016 (UTC)

Thanks for asking about this -- I wasn't aware of the script installer! I installed it in my global.js and it appears to work on enwiki. I see that the script is invoked but says to do a manual install on kkwiki, but not on enwiki.
I went to my
, though, and saw "Орнату" by the title. Clicking it added the script to my common.js on kkwiki.
So far, good.
The list of installed scripts did not display when I clicked the button, though, as it would on enwiki.
So, clearly there are bugs with using the script on kkwiki.
In fact, looking at the bottom of the script, it appears to only be designed for enwiki and designed to tell you to do a manual installation, otherwise.
However, there is hope.
If you go to the script's page itself (for example), you should see a working "install" beside the title of the page. At least, the link worked for me. MarkAHershberger(talk) 02:26, 17 December 2016 (UTC)
@MarkAHershberger don't have solve any way this problem? Arystanbek (talk) 04:34, 17 December 2016 (UTC)
If you visit the page script page itself, you should get the install script.
I don't have time to work on fixing the whole script, but if you are missing a particular thing, maybe I can find a way to fix that. MarkAHershberger(talk) 16:12, 17 December 2016 (UTC)
Thank you. Arystanbek (talk) 05:00, 18 December 2016 (UTC)

Can't get image thumbnailing to work / ImageMagick 7

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.


We installed MediaWiki here at work (and it's awesome). Images and image uploading work fine, but we can't get image thumbnailing to work. I've installed ImageMagick 7 on the host machine (Windows) and I think I've made all of the correct changes to LocalSettings.php, but whenever we try thumbnailing, Apache crashes. No messages are logged in the error log until it restarts. I know ImageMagick 7 uses magick instead of convert, so I have that change.

Here are the pertinent entries from the PHP file:

$wgSVGConverterPath = ;
$wgUseImageMagick = true;
$wgUseImageResize = true;
$wgTmpDirectory = true;
$wgImageMagickConvertCommand = 'C:/Program Files/ImageMagick-7.0.3-Q16/magick.exe';

I don't actually have a "Tmp" directory defined, but I couldn't find a setting that sets that.

Any idea of what I can check? Frecklefoot (talk) 17:22, 16 December 2016 (UTC)

When I last installed IM under Windows, it also had a convert.exe coming with it. I don't know for certain, but it might be that both, magick.exe and convert.exe just are identical.
Note that your value for $wgTmpDirectory is invalid! It has to be a valid path!
What the line $wgSVGConverterPath = ; does is not clear to me. Defining a variable with an equal sign, but then putting nothing at all behind it looks close to a syntax error. I would just leave this line away. 83.135.227.123 (talk) 18:00, 16 December 2016 (UTC)
Sorry about the $wgSVGConverterPath confusion. I guess it got wikified out. What it's supposed to look like is:
$wgSVGConverterPath = '';
Thanks for the suggestion. I'll try changing $wgTmpDirectory to a path. Frecklefoot (talk) 18:29, 16 December 2016 (UTC)
Okay, I changed $wgTmpDirectory to a valid path, but it still doesn't work. Thanks for pointing it out, though! Frecklefoot (talk) 20:14, 16 December 2016 (UTC)
magick.exe is the wrong executable. There should be a convert.exe file. MarkAHershberger(talk) 01:20, 17 December 2016 (UTC)
"Convert" was deprecated for ImageMagick 7. The new name of the conversion executable is Magick.exe. There is no convert.exe. Frecklefoot (talk) 17:12, 19 December 2016 (UTC)
Actually, in the latest version, there are no less than nine (9) executables, which all have the same size: magick.exe is one of them, but there also are identify, composite, compare and convert.exe.
The difference between magick.exe and convert.exe is 2 bytes out of around 16MB. 83.135.237.233 (talk) 18:41, 19 December 2016 (UTC)
I installed ImageMagick-7.0.3-Q16 and I see six executables and one of them is the uninstaller:
  • dcraw
  • ffmpeg
  • hp2xx
  • imdisplay
  • magick
  • unins000
I was confused that I didn't see convert anywhere, but somewhere I saw that it was changed to magick and convert was gone. It was actually about another user trying to get ImageMagick to work with MediaWiki. I see that the latest version of ImageMagick is now 7.0.4.0. I'll uninstall 7.0.3 and install the new version and see what I get. Frecklefoot (talk) 19:38, 19 December 2016 (UTC)
Okay, installed 7.0.4.0 and saw in the install Wizard that you can choose to "Install legacy utilities (e.g. convert)". Selecting that gives me 14 executables, one of which is, indeed, convert. Apache still crashes when I try to display a thumbnail, however. And nothing is recorded in the error log except for the fact that it crashed and is restarting. I'm sure that just one of my settings is wrong, though. Here are my pertinent settings now:
# Image Converter
$wgSVGConverter = 'ImageMagick';
# Image converter path
$wgSVGConverterPath = '';
## To enable image uploads, make sure the 'images' directory
## is writable, then set this to true:
$wgEnableUploads  = true;
$wgUseImageMagick = true;
$wgUseImageResize = true;
$wgTmpDirectory   = 'D:/xampp/imagetemp';
$wgImageMagickConvertCommand = 'C:/Program Files/ImageMagick-7.0.4-Q16/convert.exe';
# Path to jpegtran utility
$wgJpegTran = 'D:/xampp/common/bin/';
# Path to tidy utility binary
$wgTidyBin = 'D:/xampp/common/bin/';
D:/xampp/common/bin/ doesn't exist, but I don't know if that is related or not. I don't know what the jpegtran utility or tidy utility are. D:/xampp/imagetemp does exist, and I set it was Read-only. I changed it so it was writable, but it keeps getting set back to Read-only. Frecklefoot (talk) 20:11, 19 December 2016 (UTC)
If jpegTran and Tidy are not installed in your system, you can just remove the two lines from your configuration. ImageMagick can also work without them.
It is important that the temp directory actually is working. Does it work, if you remove the line on $wgTmpDirectory so that you just leave $wgTmpDirectory unchanged? MediaWiki should find the right path automatically - at least in theory.
$wgImageMagickConvertCommand should be ok as you have it.
If the above changs alone are not yet solving the problem, then I would set up debugging like so:
$wgDebugLogFile = "D:/xampp/mediawiki-debug.log"; 83.135.237.233 (talk) 00:12, 20 December 2016 (UTC)
Thanks for your reply! I'll give those suggestions a shot when I get some time. Frecklefoot (talk) 17:29, 20 December 2016 (UTC)
SOLVED. A friend noticed that Apache was running as a 32-bit process. The ImageMagick I had installed was 64-bit, so couldn't access it. I installed the 32-bit version of ImageMagick and PRESTO! Thanks for all your help! Turning on the logging was the first step in finding the solution. :) Frecklefoot (talk) 17:07, 22 December 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Help me, blank page after migration to new hosting

I can't understand where is the problem in this migration of my Mediawiki 1.23 from my old hosting to the newone Ovh.

- I have my wiki.sql backup and I Imported it on my new database wikinew. All fine in populating the db

- I uploaded via Ftp the directory mediawiki with all files in www folder from old hosting to the newone in the same position

- I changed the configuration on LocalSettings.php for the access to the newdatabase

But when I try to go to the Index page I have a blank page with only a twitter button. If I make page source I see this code that probably is only a part of the my index page:

"

<a href="https://twitter.com/........." class="twitter-follow-button" data-show-count="true" data-lang="it" data-size="large">Follow @......</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script> <iframe src="http://www.facebook.com/plugins/likebox.php?href=http://www.facebook.com/...&width=300&colorscheme=light&show_faces="

What is wrong? Something with the permission files? Help me! Rafama82 (talk) 23:56, 16 December 2016 (UTC)

See You see a blank page for help. MarkAHershberger(talk) 01:23, 17 December 2016 (UTC)
Ok, in the main page I have this error:
Warning: include(/containers/30123/www/ioleggoletichetta.it/bancadati/extensions/Widgets/smarty_plugins/modifier.validate.php): failed to open stream: No such file or directory in /home/ioleggoljm/www/bancadati/extensions/Widgets/compiled_templates/f638d7e934e1b07e19ae457b51ab33154bb9769d.wiki.Facebook Like BoxOkdef.php on line 33
Warning: include(/containers/30123/www/ioleggoletichetta.it/bancadati/extensions/Widgets/smarty_plugins/modifier.validate.php): failed to open stream: No such file or directory in /home/ioleggoljm/www/bancadati/extensions/Widgets/compiled_templates/f638d7e934e1b07e19ae457b51ab33154bb9769d.wiki.Facebook Like BoxOkdef.php on line 33
Warning: include(): Failed opening '/containers/30123/www/ioleggoletichetta.it/bancadati/extensions/Widgets/smarty_plugins/modifier.validate.php' for inclusion (include_path='.:/usr/local/php5.6/lib/php') in /home/ioleggoljm/www/bancadati/extensions/Widgets/compiled_templates/f638d7e934e1b07e19ae457b51ab33154bb9769d.wiki.Facebook Like BoxOkdef.php on line 33
This containers/30123/www/ioleggoletichetta.it/bancadati/extensions/ is my old hosting, so there is something that point there, how can I modify?
In other pages I think that there is a similar problem with something that is pointing to my old hosting
Warning: include(/containers/30123/www/ioleggoletichetta.it/bancadati/extensions/Widgets/smarty/libs/plugins/modifier.escape.php): failed to open stream: No such file or directory in /home/ioleggoljm/www/bancadati/extensions/Widgets/compiled_templates/d02d6996ee307e0d4742b4b3f68de02468e0f271.wiki.DISQUSOK.php on line 28
Warning: include(/containers/30123/www/ioleggoletichetta.it/bancadati/extensions/Widgets/smarty/libs/plugins/modifier.escape.php): failed to open stream: No such file or directory in /home/ioleggoljm/www/bancadati/extensions/Widgets/compiled_templates/d02d6996ee307e0d4742b4b3f68de02468e0f271.wiki.DISQUSOK.php on line 28
Warning: include(): Failed opening '/containers/30123/www/ioleggoletichetta.it/bancadati/extensions/Widgets/smarty/libs/plugins/modifier.escape.php' for inclusion (include_path='.:/usr/local/php5.6/lib/php') in /home/ioleggoljm/www/bancadati/extensions/Widgets/compiled_templates/d02d6996ee307e0d4742b4b3f68de02468e0f271.wiki.DISQUSOK.php on line 28 Rafama82 (talk) 08:08, 17 December 2016 (UTC)
I can see that in my folder Widgets/compiled_templates there are files .php where there are links to the old histing.... :( How can modify all of them to the new references? Rafama82 (talk) 09:50, 17 December 2016 (UTC)
First, try commenting out the code lines in your LocalSettings.php file which loads the Widgets extension, and see if the issue gets resolved.
For quickly replacing all the mentions of your old hosting with your new hosting, a source code editor (like Atom, Brackets etc.) can be used. AhmadF.Cheema (talk) 12:27, 17 December 2016 (UTC)
Why is it that the path is in these files? Are these temporary files? If so, just deleting them should help... 83.135.224.133 (talk) 12:32, 17 December 2016 (UTC)

PDF

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 all, I am new to working on these Wiki's and would like to add the ability to upload PDF files. I have the upload option enabled but it won't allow PDF files. Your help is greatly appreciated! 97.94.185.172 (talk) 01:56, 17 December 2016 (UTC)

See Manual:$wgFileExtensions. MarkAHershberger(talk) 02:29, 17 December 2016 (UTC)
thanks! 97.94.185.172 (talk) 02:55, 17 December 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Smartsheets on Iframepage?

Offtopic: Smartsheets is unrelated to MediaWiki and this page is about MediaWiki.

Hi all, I am new to Wiki and appreciate all the help. I have setup Iframepage on my Wiki but have it currently set to Youtube. I don't see Smartsheets giving ID's for their pages, the URL is the same on each page, so I am not sure if I can implement Smartsheets into this, has anyone done this? Thanks again!! 97.94.185.172 (talk) 03:26, 17 December 2016 (UTC)

What are Smartsheets? MarkAHershberger(talk) 16:20, 17 December 2016 (UTC)
www.smartsheets.com its a group database site 71.9.45.186 (talk) 21:17, 19 December 2016 (UTC)

When i import a big xml i get connection reset

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 already upped the limit for file size and number of files, but it takes so long that i get connection reset, how can i remove the timeout timer or increase it? If that is the problem ofc :S

I use EasyPHP with Apache MySQL 78.78.41.160 (talk) 14:53, 17 December 2016 (UTC)

no one?`:S 78.78.41.160 (talk) 15:23, 17 December 2016 (UTC)
nvm i used xml splitter and it works 78.78.41.160 (talk) 15:44, 17 December 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Installation doesn't continue it stops at you may use your wiki.

Once the system gives me the localsettings.php file i copy it to the root directory with index.php file then click on you may use your wiki and it just keeps on resending me the php file as if it doesn't find the index file i don't know. If i try to reinstall it actually detecs the localsettings.php file and asks for the upgrade code with i fetch in the localsettings.php fil end write down in the bof it the updates the databases then "you may use your wiki" appears and it keeps on returning me the "use my wiki" link and doesn't go anywhere. I installed the wiki in a sub domain at Affiliate-Wiki.Subvert.biz subvert.biz the main domain is in public_html/ so i put mediawiki in /public_html/mediawiki-1.28.0/ In the localsetting.php file i have

$wgScriptPath = "/index.php";
    1. The protocol and server name to use in fully-qualified URLs

$wgServer = "https://affiliate-wiki.subvert.biz";

i accessed the installation going to affiliate-wiki.subvert.biz/mediawiki-1.28-0/mw-config/indez.php

And when i go to Affiliate-wiki.Subvert.biz it just gives me the installation screen to restart. In the browser it redirects to http://affiliate-wiki.subvert.biz/index.php/index.php?page=DBSettings

it just stalls at the end of the installation or just keeps giving you new localsettings.php files 67.71.189.81 (talk) 20:50, 17 December 2016 (UTC)

You don't include index.php in $wgScriptPath. 121.219.59.240 (talk) 22:31, 17 December 2016 (UTC)

Redirects

Hi. I have a problem with redirects on my wiki: http://dragon-mania-legends-wiki.mobga.me/Special:SpecialPages. The Broken redirects special page doesn't get updated, even if the problem was fixed ago and I ran php updateSpecialPages.php. The same goes for double redirects. Also, the problem that appears at double redirects (the special page showing the double redirect 44 times on the page) also occurs in the list of redirects, where each redirect and the page it redirects to are shown multiple times. I ran fixDoubleRedirects.php, but it didn't solve any problem. What else could I try? │Star-Warden22:46, 17 December 2016 (UTC)

The problem is that the pagelinks table is not being updated, so for MediaWiki the redirects aren't fixed yet. And that's caused by a malfunction in the Manual:Job queue. Looking at [1] there are currently 1660523 (!) pending jobs.
You should first clear that queue of jobs, by executing runJobs.php (probably with a --maxjobs or --maxtime parameter to limit the number of jobs executed, since it may take a while to complete).
Once done, set Manual:$wgRunJobsAsync to false, and see if the number of jobs, when doing edits, doesn't grow without limit...
Just another reason to fix T142751 once and for all. Ciencia Al Poder (talk) 11:44, 18 December 2016 (UTC)
I see that that script is now set to false by default. Shouldn't I just pull the recent changes through git? │Star-Warden18:00, 19 December 2016 (UTC)
Only if you want to run unstable software, otherwise just change the setting in LocalSettings.php as I suggested and wait for the next stable or security release. Ciencia Al Poder (talk) 21:41, 19 December 2016 (UTC)
I am still getting the same issue, even though I ran runJobs.php and set that string to false... │Star-Warden20:21, 19 December 2016 (UTC)
Did you run runJobs.php? Did it run without errors? If you ran it with --maxjobs or --maxtime, you should execute it as many times as needed to bring the number of jobs to 0. The number of jobs has decreased slightly, but still several orders of magnitude over what should be a sane value. Ciencia Al Poder (talk) 21:40, 19 December 2016 (UTC)
I ran it but without any parameters and I received some error with max memory reached or something. I forgot to screenshot it. I remember I ran this same script three or four weeks ago and I didn't get any issues. I am not sure if it's because of setting that string to false or not, but edits aren't updated in real time. It takes a few minutes for new edits to be reflected or new images to be displayed. Isn't there a faster way to run all the jobs? Because bringing a number over 1,5 million to 0 would take an enormous amount of time. │Star-Warden22:24, 19 December 2016 (UTC)
Most of them are repeats from the same pages, so they'll be automatically discarded when picked. The "fastest" way to run those jobs is to run them through this script, either all of them, or in small batches. Using --memory-limit you can increase the memory limit so it doesn't fail with max memory errors (see documentation linked from that script).
You can also run rebuildall.php to "apply" those pending edits, but that won't clear the job queue. Ciencia Al Poder (talk) 22:54, 19 December 2016 (UTC)
I will try to run all the jobs, but it's going to take a while. Is it possible to have multiple people running the same script from different computers? To speed up the process. │Star-Warden10:04, 20 December 2016 (UTC)
I don't think the script is designed to be run in parallel. One single script can run several jobs in parallel with --procs, though. Note also that the database is (usually) a single instance. If it has been weeks since it's not working, it should not be critical to wait a while for the script to complete. Ciencia Al Poder (talk) 11:41, 20 December 2016 (UTC)
Is there a way to have putty rerun the script, automatically, everytime it stops? I keep getting memory exhausted after it ran about 8 thousand jobs and I have to restart it again (usually happens every quarter of an hour). I tried using max with --memory-limit, but it said it wasn't able to allocate the memory needed or something along those lines (can't check right now). │Star-Warden17:44, 20 December 2016 (UTC)
You can create a cron job and execute the script every 15 minutes or so. However, I'd be cautious of not executing the script if it's already running, you may get more memory errors and maybe executing the same job multiple times, so I'd execute them with a --maxtime limit to ensure it finishes before a new instance is run. Ciencia Al Poder (talk) 21:08, 20 December 2016 (UTC)
I am not sure it worked? I added this line when I was presented with the file to edit: */10 * * * * /srv/dml-wiki/maintenance/php runJobs.php --maxtime 900 then I saved with ctrl + x. But I don't see the number of jobs decreasing. I opened the crontab with my user account instead of root using sudo crontab -e and used the one from /bin/nano. Does it take some time for it to start or did I miss a step? │Star-Warden08:09, 21 December 2016 (UTC)
Now that I am looking at the API, it seems that more jobs are added. Was this happening before the cron or once I "set up" the cron? │Star-Warden08:45, 21 December 2016 (UTC)
Some jobs just add more jobs to the table, because are "containers". Also, new edits to the wiki may add new jobs.
You should look at the cron logs to see if they're executed. Ciencia Al Poder (talk) 10:31, 21 December 2016 (UTC)
So, I looked at the log and from here (http://prntscr.com/dm47dw) it seems it's being executed. Yet the API shows more jobs than before. Before it was under 1,63m now it's over 1,63m. Have I added the correct command for the cronjob to run? │Star-Warden10:55, 21 December 2016 (UTC)
I still didn't figure where I was going wrong, so I just disabled the cron job and started running the script manually. │Star-Warden15:17, 21 December 2016 (UTC)
Nevermind. I found the issue. I forgot to add cd before the command. Everything seems to be working fine, for now. By my calculations, it should take about 12 full days for the jobs to hit 0. Thanks a lot for your help! │Star-Warden22:54, 21 December 2016 (UTC)
I have to reopen the topic because the redirects still haven't been fixed. The thing is, the number of jobs won't go below 6 no matter what I do? Any workaround to this job issue or preferably to the redirects? │Star-Warden20:37, 27 January 2017 (UTC)

sending a new ticket

trying to send a new ticket and at bottom it has a passcode
question example is 4 divided by 2 answer is 2 but it then gives you another question , I have tried 10 different formulas and it still doesn't like the answer 108.24.121.119 (talk) 01:32, 18 December 2016 (UTC)
What is a "ticket"? What website is that about? How is MediaWiki related to this question? AKlapper (WMF) (talk) 09:17, 18 December 2016 (UTC)
I am seeing this as well, e.g. when trying to link a page. Even when it is a page here on mediawiki.org. They are obviously unable to fix that. 83.135.224.133 (talk) 01:47, 18 December 2016 (UTC)
Do you mean creating a new topic or replying? it pretty much works. I've been presented with a captcha and it worked. Ciencia Al Poder (talk) 10:30, 19 December 2016 (UTC)

Почему нельзя отредактировать строку поддерживаемых форматов?

Вот тут https://ru.wikipedia.org/wiki/ImageMagick нажимаю править а форматы имчезают сразу! Что за издевательство? Там новый формат появился а я не могу его указать. Morteryler (talk) 15:19, 18 December 2016 (UTC)

How to restrict non logged in users from downloading files

How to restrict non logged in users from downloading files 124.153.69.242 (talk) 06:52, 19 December 2016 (UTC)

See Manual:Image Authorization Ciencia Al Poder (talk) 10:20, 19 December 2016 (UTC)

Issue: Have to log in every few minutes

I have an issue with my MediaWiki installation, which causes to make me log in every few minutes. It is a closed Wiki and I always have to log in two or three times to get it started. When I edit something, I can't just save the changes. When I'm quick, I can use 'Preview' and then save changes. But usually I get an error message telling me that there was some data loss and I have to log out (!) and in again - and only when I'm lucky it works at the first relog.

So far, I read that that most likely is a problem caused by cookies. I checked, re-checked and the checked again, but my browser accepts cookies. The issue is the same with any browser I treid so far.

As you can imagine, this bug is heavily annoying. Does someone have a hint how to solve this? MueheM (talk) 08:07, 19 December 2016 (UTC)

You should at-least indicate the MediaWiki version you are using.
The error could be related to these: Project:Support desk/Flow/2016/07#h-Can't_login_or_create_user_after_upgrade_to_1.27-2016-07-05T08:20:00.000Z, Project:Support desk/Flow/2016/07#h-Login_error_(session_hijacking_protection)-2016-07-11T08:56:00.000Z AhmadF.Cheema (talk) 08:21, 19 December 2016 (UTC)
Ah, okay, sorry. I'm using 1.28.0 on a hosted webspace with PHP 7.0 running. MueheM (talk) 08:28, 19 December 2016 (UTC)
It's possibly related to https://phabricator.wikimedia.org/T147161 as mentioned in the previously linked topics. —TheDJ (Not WMF) (talkcontribs) 12:58, 21 December 2016 (UTC)
Hello, at first thanks for the advice. I followed AhmadF.Cheemas links and came to the same conclusion. Therefore I set
$wgMainCacheType = CACHE_ANYTHING;
$wgSessionCacheType = CACHE_DB;
I have a hosted webspace, so I had to set the parameters into the LocalSettings.php. Alas, there was no change in the sites behavior. I cleaned the cache along with all cookies, but the error is persistent.
Could the problem result from having the Wiki not in its own webspace but in a subdomain? MueheM (talk) 13:44, 22 December 2016 (UTC)
I tried all possible combinations of $wgMainCacheType and $wgSessionCacheType set at CACHE_ANYTHING, CACHE_ACCEL and CACHE_DB, but the problem seems rather unaffected by it. Does someone has any idea what else may cause this problem and how it could be solved? MueheM (talk) 11:05, 4 January 2017 (UTC)
Maybe take a look at the last two comments in this Project:Support desk/Flow/2016/07#h-Can't_login_or_create_user_after_upgrade_to_1.27-2016-07-05T08:20:00.000Z. AhmadF.Cheema (talk) 16:29, 4 January 2017 (UTC)
I did exactly what you advised: made a subfolder 'tmp' (set at 750), added 'session_save_path("tmp");' at the end of the LocalSettings.php.
The error is pretty unimpressed by it. Had someone a hint for me what I could try to find the error step-by-step, perhaps? MueheM (talk) 06:30, 11 January 2017 (UTC)

How can I (completely) delete a Category

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 know a category will disappear on the special page if there are no more references to it, however unused categories are still listet if I use the API to get all categories. I already get them sorted out by using the 'acmin' parameter, however is there a way to really remove unused categories? David Cajus (talk) 10:56, 19 December 2016 (UTC)

Just delete them like any other page. 121.200.232.58 (talk) 01:24, 21 December 2016 (UTC)
when i created a new category, but never created the page, the category still exists-- still listed in Special:Categories.
As a result, it's still listed in user category-tools (such as Extension:CategorySuggest).
How to completely delete? Johnywhy (talk) 19:58, 29 March 2018 (UTC)
Run Manual:cleanupEmptyCategories.php Ciencia Al Poder (talk) 09:23, 3 April 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to NTP client use in centos7 in Proxmox 4.3

In our container Centos 7 server ntp client are configure, but we start ntpd service we got error message "ntpq: read: Connection refused"

How to use ntp server in container. Raushanjsr18 (talk) 12:44, 19 December 2016 (UTC)

This is the support forum for MediaWiki software.
Your question appears to be unrelated to MediaWiki. AhmadF.Cheema (talk) 13:15, 19 December 2016 (UTC)

Mediawiki on Microsoft Windows 2008 R2. Thumbnail problem

Hello, I installed MediaWiki 1.28.0-0 and ImageMagick-7.0.4-0-Q16-x64 on Microsoft Windows 2008 R2 When I try to add some graphic files, i get this error:

Error creatintg thumbnail. Invalid Parameter - "80"

Error code: 4

What does it mean? Is here somebody who set up his wiki on Microsoft Windows 2008 R2 and use different graphics program then ImageMagick? Which program do You recomend? Halkerrr (talk) 14:35, 19 December 2016 (UTC)

Anyone something? Im trying to set up this wiki in my company and i said it will be done by the end of this year. Everything is done except this error. People from ImageMagick said that they cannot help. Halkerrr (talk) 08:57, 20 December 2016 (UTC)
I found [2]. MediaWiki should be working with IM 7 just fine.
Have you configured Imagemagick correctly in LocalSettings.php? See Manual:Image administration for a first overview! 83.135.225.31 (talk) 09:28, 20 December 2016 (UTC)
I checked it couple times, tried different ways. Now it is set up like this:
# Image converter path
$wgSVGConverterPath = 'C:/ImageMagick';
## To enable image uploads, make sure the 'images' directory
## is writable, then set this to true:
$wgEnableUploads  = true;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = 'convert.exe';
Halkerrr (talk) 10:16, 20 December 2016 (UTC)
Do you know how to upload videos 154.76.2.14 (talk) 19:38, 28 December 2016 (UTC)
And this is working?
Note that $wgImageMagickConvertCommand has to contain an absolute path! See Manual:$wgImageMagickConvertCommand! 83.135.225.31 (talk) 10:45, 20 December 2016 (UTC)
Yeah i tried also with absolute path.
It looked like this, does not worked too.
# Image converter path
$wgSVGConverterPath = '';
## To enable image uploads, make sure the 'images' directory
## is writable, then set this to true:
$wgEnableUploads  = true;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = 'C:/ImageMagick/convert.exe';
Halkerrr (talk) 11:04, 20 December 2016 (UTC)
With an absolute path it is correct.
I would now enable debugging by setting Manual:$wgDebugLogFile in LocalSettings.php. It has to point to the debug file, into which MediaWiki should write the log.
Once you have the log file configured, view an image page, on which a thumbnail should get created and afterwards look into the debug log.
It should contain information on the request, e.g. the exact command, which MediaWiki tried to convert the image and also potential output, which happened as a result. 83.135.225.31 (talk) 12:09, 20 December 2016 (UTC)
When i changed to absolute path like in post under, error is like:
unable to load module `C:\ImageMagick\modules\coders\IM_MOD_RL_JPEG_.dll': The specified module could not be found.
@ error/module.c/OpenModule/1302.
convert.exe: no decode delegate for this image format `JPEG' @ error/constitute.c/ReadImage/504.
convert.exe: no images defined `\xampp\tmp/transform_09c80238bf68.jpg' @ error/convert.c/ConvertImageCommand/3258.
Error code: 1
Funny but under this path C:\ImageMagick\modules\coders file IM_MOD_RL_JPEG_.dll is normaly accesible. What do You think is reason for that? Halkerrr (talk) 12:19, 20 December 2016 (UTC)
I ran debug file. Lots of things are written here and actualy i dont know from where is not good :] Please help me analyse it. I paste some code here and please tell me if you need more to diagnose my problem.
MimeMagic::__construct: loading mime types from F:\xampp\apps\mediawiki\htdocs/includes/mime.types
MimeMagic::__construct: loading mime info from F:\xampp\apps\mediawiki\htdocs/includes/mime.info
File::transform: Doing stat for mwstore://local-backend/local-thumb/e/e0/20161129_122524.jpg/320px-20161129_122524.jpg
FileBackendStore::getFileStat: File mwstore://local-backend/local-thumb/e/e0/20161129_122524.jpg/320px-20161129_122524.jpg does not exist.
TransformationalImageHandler::doTransform: creating 320x180 thumbnail at \xampp\tmp/transform_fc36b0e73ae5.jpg using scaler im
TransformationalImageHandler::doTransform: called wfMkdirParents(\xampp\tmp)
{closure}: Running convert -version
wfShellExec: "C:/ImageMagick/convert.exe" -version
LoadBalancer::reuseConnection: this connection was not opened as a foreign connection
[runJobs] refreshLinksPrioritized Plik:20161129_122524.jpg rootJobTimestamp=20161220131333 useRecursiveLinksUpdate=1 triggeringUser={"userId":1,"userName":"Admin"} triggeringRevisionId=56 requestId=67897111edecfa74ac9e4c98 (id=34,timestamp=20161220131334) t=702 good
LoadBalancer::reuseConnection: this connection was not opened as a foreign connection
MediaWiki::preOutputCommit: all transactions committed
MediaWiki::preOutputCommit: pre-send deferred updates completed
[cookie] setcookie: "UseDC", "master", "1482239626", "/", "", "", "1"
[cookie] setcookie: "UseCDNCache", "false", "1482239626", "/", "", "", "1"
Request ended normally
[session] Saving all sessions on shutdown
BitmapHandler::transformImageMagick: running ImageMagick: "C:/ImageMagick/convert.exe" "-quality" "80" "-background" "white" "-define" "jpeg:size=320x180" "F:\xampp\apps\mediawiki\htdocs/images/e/e0/20161129_122524.jpg" "-thumbnail" "320x180!" "-set" "comment" "File source: http://wplspamwiki.vcs.privad.net/mediawiki/index.php/Plik:20161129_122524.jpg" "+set" "Thumb::URI" "-depth" "8" "-sharpen" "0x0.4" "-rotate" "-0" "-sampling-factor" "2x2,1x1,1x1" "\xampp\tmp/transform_fc36b0e73ae5.jpg"
wfShellExec: set OMP_NUM_THREADS=1&& "C:/ImageMagick/convert.exe" "-quality" "80" "-background" "white" "-define" "jpeg:size=320x180" "F:\xampp\apps\mediawiki\htdocs/images/e/e0/20161129_122524.jpg" "-thumbnail" "320x180!" "-set" "comment" "File source: http://wplspamwiki.vcs.privad.net/mediawiki/index.php/Plik:20161129_122524.jpg" "+set" "Thumb::URI" "-depth" "8" "-sharpen" "0x0.4" "-rotate" "-0" "-sampling-factor" "2x2,1x1,1x1" "\xampp\tmp/transform_fc36b0e73ae5.jpg" 2>&1
[thumbnail] thumbnail failed on WPLSPAMWIKI: error 1 "convert.exe: unable to load module `C:\ImageMagick\modules\coders\IM_MOD_RL_JPEG_.dll': The specified module could not be found.
@ error/module.c/OpenModule/1302.
convert.exe: no decode delegate for this image format `JPEG' @ error/constitute.c/ReadImage/504. Halkerrr (talk) 13:43, 20 December 2016 (UTC)
The relevant part is this one:
"convert.exe: unable to load module `C:\ImageMagick\modules\coders\IM_MOD_RL_JPEG_.dll': The specified module could not be found."
Obviously, IM is not yet working correctly... Maybe the guys in the IM forum can help with that! There also are a few hits on Google: https://www.google.de/search?q=%22convert.exe%3A+unable+to+load+module+%60C%3A%5CImageMagick%5Cmodules%5Ccoders%5CIM_MOD_RL_JPEG_.dll%27 83.135.225.31 (talk) 14:20, 20 December 2016 (UTC)

got the internal error, please help!

Dear all: why I log on to the mainpage today got the internal error? how to fix it ?


[e294ef3c831dd19be44a4b71] [no req] MWException from line 2154 of /var/www/html/wiki/includes/GlobalFunctions.php: No writable temporary directory could be found. Please set $wgTmpDirectory to a writable directory. Backtrace:

  1. 0 /var/www/html/wiki/includes/Setup.php(609): wfTempDir()
  2. 1 /var/www/html/wiki/maintenance/doMaintenance.php(97): require_once(string)
  3. 2 /var/www/html/wiki/maintenance/rebuildLocalisationCache.php(181): require_once(string)
  4. 3 {main} Jackeymai (talk) 03:01, 20 December 2016 (UTC)
What is the value of $wgTmpDirectory? Has this value been changed recently? Does it point to a folder, which a) exists and which b) is writable for the webserver user? 83.135.225.31 (talk) 09:30, 20 December 2016 (UTC)

List all files from InstantCommons

Is there any way to get a list from all InstantCommon files I use on my non-WMF wiki?
If possible with a short license information of each file... Stefahn (talk) 10:53, 20 December 2016 (UTC)

Not ready made I think.
I guess if you look at the database, and then cross reference the imagelinks table with the image table, then all the links that are not in both are likely to be foreign repo files.... —TheDJ (Not WMF) (talkcontribs) 12:49, 21 December 2016 (UTC)
Thanks for the idea.
Can I do the comparison with a diff tool like WinMerge? Stefahn (talk) 16:10, 21 December 2016 (UTC)

Hello, I installed MediaWiki 1.27.1 with using PHP 7.0.13. I am unable to save Token (say like mediawiki_en_Token having some value) in cookie once user click on 'Log In' button but without checking checkbox of "Keep me logged in". It is generating and saving when user check the checkbox but not when he do not check it.

Can anyone help me in this regards? Any help would be much appreciated.

Thanks Mohanish2017 (talk) 11:33, 20 December 2016 (UTC)

MediaWiki "keep me logged in" set default true

Hello, I installed MediaWiki 1.27.1 with using PHP 7.0.13. I want to send "keep me logged" as a TRUE set value even if I do not check the checkbox. Can anyone knows about it. Please help me out on this of how it actually works.

Thanks Mohanish2017 (talk) 11:08, 21 December 2016 (UTC)

This is not possible, but you should be able to modify the code in /includes/specials/SpecialUserLogin.php to set the default of the checkbox to true. —TheDJ (Not WMF) (talkcontribs) 12:56, 21 December 2016 (UTC)
I am new to this one so could you please help me where I will need to do amendments (like function name) so It will be very useful for me. Mohanish2017 (talk) 13:21, 21 December 2016 (UTC)
i notice 1.27 Might use the new AuthManager already, so it can be here:
https://github.com/wikimedia/mediawiki/blob/REL1_27/includes/auth/RememberMeAuthenticationRequest.php#L61
Right there. Add something like 'default' => true
or here:
https://github.com/wikimedia/mediawiki/blob/REL1_27/includes/specialpage/LoginSignupSpecialPage.php#L1090TheDJ (Not WMF) (talkcontribs) 08:33, 22 December 2016 (UTC)
Hello, you can use the trick provided here by adding the following code to LocalSettings.php:
$wgHooks['AuthChangeFormFields'][] = function ($requests, $fieldInfo, &$formDescriptor, $action) {
  $formDescriptor['rememberMe'] = ['type' => 'check', 'default' => true];
  return true;
};
Tinss (talk) 20:18, 1 March 2021 (UTC)

Uploading files like doc docx pdf

I used a media wiki in my old job and it was simple to upload documents for others to download / view

I'd just type File:Filename.docx and when i'd save the page there would be a link i'd click the link and i'd get the option to upload a file so when others clicked the link they could download the file i've uploaded.

But i've installed my own media wiki.. and it doesn't work.

I've search all over and nothing seems to answer my question. the php.ini file is set to allow uploads.

any help would be great. 31.187.45.78 (talk) 13:38, 21 December 2016 (UTC)

the code i typed was [ [ file name . docx ] ] ( without spaced. 31.187.45.78 (talk) 13:39, 21 December 2016 (UTC)
sorry.. it's [ [ file: filename . docx ] ] 31.187.45.78 (talk) 13:40, 21 December 2016 (UTC)
You probably need to explicitly allow filenames having these particular file extensions.
The following should work in your LocalSettings.php.
$wgFileExtensions = array_merge(
    $wgFileExtensions, array(
        'pdf', 'doc','docx'
        )
    );
See Manual:$wgFileExtensions. AhmadF.Cheema (talk) 15:15, 21 December 2016 (UTC)

pt and pt-br distiction

I know it's lazy to commission this job to someone else (and chances are that I'm asking this in the wrong place), but could you please send me a link to the discussion where it was decided to set apart pt and pt-br translations? I find this to be a significant inconvenience, specially when you consider the increasing effort to establish a single official orthography for the Portuguese language.

The worst part of it is having to translate every single page twice, which is pretty pointless since the resulting difference is insignificant at best. ArgonSim (talk) 17:17, 21 December 2016 (UTC)

As I said at Extension talk:UniversalLanguageSelector#h-pt_and_pt-br-2017-01-29T22:22:00.000Z, if a message is translated the same way in the two variants, there is no need to translate it twice because MediaWiki uses language fallback to show the existing translation to users who choose the variant.
Also, we need both (and more) if we ever get the real LanguageConverter for Portuguese instead of my gadget LanguageConverter (see pt:WP:Conversor de idiomas, phab:T28121 and pt:WP:Esplanada/propostas/Conversor de idiomas para as variantes do português (30mai2010)).
For the creation of both translations, see the oldest ticket documented at pt:WP:Histórico de configurações. Helder 11:23, 31 January 2017 (UTC)

MediaWiki maintain session across subdomain

Hi I want to maintain session for subdomains in my new mediawiki setup like exactly wikipedia is doing -

https://en.wikipedia.org/wiki/Main_Page https://fr.wikipedia.org/wiki/Wikip%C3%A9dia:Accueil_principal

Wikipedia is maintaining session for all subdomains.

Can anyone give me an idea of how it can be done..?

Thanks Mohanish2017 (talk) 07:00, 22 December 2016 (UTC)

Wikipedia uses Extension:CentralAuth for this. —TheDJ (Not WMF) (talkcontribs) 08:20, 22 December 2016 (UTC)

Changing Logo in Sidebar

I'd like to change the logo in the sidebar on my wiki - http://fnlst.com/pVQR/4L1lU4Db How do I do that? Does that fall into the skin category or do I need to change a template? Google has not aided me in this, I appreciate any assistance! Thanks! 64.195.215.138 (talk) 14:40, 22 December 2016 (UTC)

See Manual:$wgLogo and Manual:FAQ#How do I change the logo.3F AhmadF.Cheema (talk) 15:37, 22 December 2016 (UTC)

ldap auth "failed to bind"?

In setting up mediawiki to authenticate with openldap i seem to be having an issue and was hoping someone could identify it via the config and logs below

mediawiki version is 1.26.3

ldap extension is version for 1.26.3

php-ldap is php-ldap-5.4.16-42.el7.x86_64

2016-12-22 15:02:33 ip.of.ldap.server wikidatabase: 2.1.0 Entering validDomain

2016-12-22 15:02:33 ip.of.ldap.server wikidatabase: 2.1.0 User is using a valid domain (ldap).

2016-12-22 15:02:33 ip.of.ldap.server wikidatabase: 2.1.0 Setting domain as: ldap

2016-12-22 15:02:33 ip.of.ldap.server wikidatabase: 2.1.0 Entering getCanonicalName

2016-12-22 15:02:33 ip.of.ldap.server wikidatabase: 2.1.0 Username is: Freasb

2016-12-22 15:02:33 ip.of.ldap.server wikidatabase: 2.1.0 Entering getDomain

2016-12-22 15:02:33 ip.of.ldap.server wikidatabase: 2.1.0 Munged username: Freasb

2016-12-22 15:02:33 ip.of.ldap.server wikidatabase: 2.1.0 Entering getCanonicalName

2016-12-22 15:02:33 ip.of.ldap.server wikidatabase: 2.1.0 Username is: Freasb

2016-12-22 15:02:33 ip.of.ldap.server wikidatabase: 2.1.0 Entering getDomain

2016-12-22 15:02:33 ip.of.ldap.server wikidatabase: 2.1.0 Munged username: Freasb

2016-12-22 15:02:33 ip.of.ldap.server wikidatabase: 2.1.0 Entering authenticate for username Freasb

2016-12-22 15:02:33 ip.of.ldap.server wikidatabase: 2.1.0 Entering getDomain

2016-12-22 15:02:33 ip.of.ldap.server wikidatabase: 2.1.0 Entering Connect

2016-12-22 15:02:33 ip.of.ldap.server wikidatabase: 2.1.0 Entering getDomain

2016-12-22 15:02:33 ip.of.ldap.server wikidatabase: 2.1.0 Using SSL

2016-12-22 15:02:33 ip.of.ldap.server wikidatabase: 2.1.0 Entering getDomain

2016-12-22 15:02:33 ip.of.ldap.server wikidatabase: 2.1.0 Entering getDomain

2016-12-22 15:02:33 ip.of.ldap.server wikidatabase: 2.1.0 Using non-standard port: 636

2016-12-22 15:02:33 ip.of.ldap.server wikidatabase: 2.1.0 Using servers: ldaps://ip.of.ldap.server:636

2016-12-22 15:02:33 ip.of.ldap.server wikidatabase: 2.1.0 Entering getDomain

2016-12-22 15:02:33 ip.of.ldap.server wikidatabase: 2.1.0 PHP's LDAP connect method returned true (note, this does not imply it connected to the server).

2016-12-22 15:02:33 ip.of.ldap.server wikidatabase: 2.1.0 Entering getSearchString

2016-12-22 15:02:33 ip.of.ldap.server wikidatabase: 2.1.0 Entering getDomain

2016-12-22 15:02:33 ip.of.ldap.server wikidatabase: 2.1.0 Entering getUserDN

2016-12-22 15:02:33 ip.of.ldap.server wikidatabase: 2.1.0 Entering getDomain

2016-12-22 15:02:33 ip.of.ldap.server wikidatabase: 2.1.0 Doing an anonymous bind

2016-12-22 15:02:33 ip.of.ldap.server wikidatabase: 2.1.0 Failed to bind as 2016-12-22 15:02:33 ip.of.ldap.server wikidatabase: 2.1.0 Failed to bind

2016-12-22 15:02:33 ip.of.ldap.server wikidatabase: 2.1.0 userdn is:

2016-12-22 15:02:33 ip.of.ldap.server wikidatabase: 2.1.0 User DN is blank

2016-12-22 15:02:33 ip.of.ldap.server wikidatabase: 2.1.0 Entering strict.

2016-12-22 15:02:33 ip.of.ldap.server wikidatabase: 2.1.0 Entering getDomain

2016-12-22 15:02:33 ip.of.ldap.server wikidatabase: 2.1.0 Returning true in strict().

2016-12-22 15:02:33 ip.of.ldap.server wikidatabase: 2.1.0 Entering allowPasswordChange

2016-12-22 15:02:33 ip.of.ldap.server wikidatabase: 2.1.0 Entering getDomain

2016-12-22 15:02:33 ip.of.ldap.server wikidatabase: 2.1.0 Entering getDomain

2016-12-22 15:02:33 ip.of.ldap.server wikidatabase: 2.1.0 Entering modifyUITemplate


#LDAP

require_once 'extensions/LdapAuthentication/LdapAuthentication.php';

#require_once 'extensions/LdapAuthentication/LdapAuthenticationPlugin.php';

require_once 'includes/AuthPlugin.php';

$wgAuth = new LdapAuthenticationPlugin();

$wgLDAPDomainNames = array('ldap');

$wgLDAPServerNames = array('ldap' => 'ip.of.lap.server');

$wgLDAPUseLocal = false;

$wgLDAPDebug = 3;

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

$wgLDAPEncryptionType = array('ldap' => 'ssl');

$wgLDAPSearchAttributes = array('ldap' => 'uid');

$wgLDAPBaseDNs = array('ldap' => 'dc=ldap');

$wgLDAPPreferences = array('ldap' => array('email' => 'mail', 'realname' => 'uid'));

$wgLDAPLowerCaseUsername = array('ldap' => true);

$wgLDAPGroupUseFullDN = array('ldap'=>false);

#$wgLDAPGroupObjectclass = array('ldap' => 'posixgroup');

#$wgLDAPGroupAttribute = array('ldap' => 'memberUid');

#$wgLDAPGroupNameAttribute = array('ldap' => 'cn');

$wgLDAPPort = array('ldap' => '636');

$wgDebugToolbar=true;


thanks Bwfreas (talk) 15:27, 22 December 2016 (UTC)

Password Reset page hangs for 60 seconds and then gives internal server error 500

Recently upgraded to 1.27 and moved to a new hosted solution. I can login in but the Password reset page hangs for 60 seconds and then throws the following error:

******************************************************

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@escriptionwiki.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

******************************************************

I do see in the error logs that the page is coming back as missing.

[Thu Dec 22 15:31:37 2016] [error] [client 199.4.160.10] File does not exist: /home/escripti/public_html/500.shtml, referer: http://www.escriptionwiki.com/wiki/index.php?title=Special:PasswordReset [Thu Dec 22 15:28:29 2016] [error] [client 199.4.160.10] PHP Warning: file_put_contents(/home/YOUR_USER/public_html/cache/resources/js/b/b3/b5191e7679eef1d0052e2d838fe9a59a32d27198.cache): failed to open stream: No such file or directory in /home/escripti/public_html/wiki/includes/cache/FileCacheBase.php on line 171, referer: http://www.escriptionwiki.com/wiki/index.php?title=Special:UserLogin&returnto=Special%3AVersion

Any help on fixing this would appreciated. 199.4.160.10 (talk) 21:07, 22 December 2016 (UTC)

It seems like you are using Manual:File_cache, but are not allowed to write to the location where the cache is writing (either permissions, or an SELinux ACL restriction issue). Either make sure you can write to it, or disable the file cache. —TheDJ (Not WMF) (talkcontribs) 09:43, 27 December 2016 (UTC)

Recent changes empty after upgrade to 1.27

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.


After my upgrade from 1.23.11 to 1.27.1 my recent changes are empty. Anybody with a hint what to do? Mzeecedric (talk) 23:53, 23 December 2016 (UTC)

I tried rebuilding the recent changes table via maintenance/rebuildall.php but still no changes
Rebuilding recentchanges table:

Rebuilding $wgRCMaxAge=7776000 seconds (90 days)
Clearing recentchanges table for time range...
Loading from page and revision tables...
Inserting from page and revision tables...
Updating links and size differences...
Loading from user, page, and logging tables...
Flagging bot account edits...
Flagging auto-patrolled edits...
Removing duplicate revision and logging entries...
Deleting feed timestamps.
Done.
I also receive an error when running rebuildall:
...
1100
1200
Es ist ein Datenbankabfragefehler aufgetreten.
Abfrage: INSERT IGNORE INTO `page_props` (pp_page,pp_propname,pp_value,pp_sortkey) VALUES ('1287','notoc',,NULL),('1287','noeditsection',,NULL)
Funktion: LinksUpdate::incrTableUpdate
Fehler: 1054 Unknown column 'pp_sortkey' in 'field list' (localhost)
Mzeecedric (talk) 00:29, 24 December 2016 (UTC)
Your database of MediaWiki 1.27 should have the column pp_sortkey in the page_props table. Have you forgotten to run update.php after doing the upgrade? This should have added the missing column...
Merry Christmas to you anyways! 83.135.236.119 (talk) 02:46, 24 December 2016 (UTC)
Merry Christmas! I ran php maintenance/update.php via console. But you're right, the column was missing... After running update.php again the column ist there.
But I still have the problem with missing recent updates, although rebuildall.php was run. Mzeecedric (talk) 22:51, 24 December 2016 (UTC)
In your first post you wrote that the recent changes would be empty. The rebuildall.php script should have added entries to the database table recentchanges.
Is that table still empty now? Or are there now rows in it, but new rows are not getting added? 83.135.224.56 (talk) 00:02, 25 December 2016 (UTC)
Thank you for your reply. The recentchanges table is filled. But still nothing shows in Special:Recent Changes. Changes should be there, there have been quite some changes in December Mzeecedric (talk) 00:01, 27 December 2016 (UTC)
Note also that Recent Changes have a limit of entries to display by date, so if there has been no edit since more than 3 days you need to adjust the filters to display them Ciencia Al Poder (talk) 18:00, 25 December 2016 (UTC)
I finally discovered, that I always took an old backup... changes where from 2015. After manually creating a fresh backup everything was done. Also fixed my backup-script. Sorry for bugging you and thanks for your help anyway! Mzeecedric (talk) 20:49, 27 December 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Anonymous uploads don't show on Special:Log uploads

I allow anons to upload images to website and it works correctly. The recent changes lists the uploads as expected. But special:log doesn't list anons uploads, only registered ones. I checked if they are logged in the database table - and they are, so I guess the software is simply filtering anon uploads. How can this be changed? I have the old v. 1.15.1. Yonidebest (talk) 19:49, 24 December 2016 (UTC)

You first should update the wiki to a supported version. These currently are 1.23, 1.27 and 1.28. 1.23 and 1.27 have long term support with 1.27 being supported two years longer than 1.23.
I think there might be a way to change what Special:Log is displaying using a hook. I have checked the available hooks, but at least on a quick glance I could not find one, which would be run inside that special page so that you could change the SQL query from there... 83.135.224.56 (talk) 22:12, 24 December 2016 (UTC)
Regarding the upgrade, I am afraid an upgrade will cause more damage than good. I have a custom CSS design (which will probably break), custom JS (which will probably not work properly) and Extension:AWC's Forum (which is now obsolete, which means I might loose all the data stored in the forum). I am not a programmer and the site is free so I can't afford to spend any money on such an upgrade, unfortunately.
I was actually thinking of a fix to the PHP file which displays the log, but I don't know what that might be and couldn't find anyone with the same problem (obviously, anon uploads isn't popular). Yonidebest (talk) 07:26, 25 December 2016 (UTC)

Can't log into wiki

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.


Hello! I am admin on the following wiki: https://yourosongcontest.miraheze.org/wiki/Main_Page

https://yourosongcontest.miraheze.org/wiki/Special:Version

and it won't let me log in, i get the following message:

There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Go back to the previous page, reload that page and then try again.

What do I do? :)


Kimmy 37.191.233.142 (talk) 08:15, 25 December 2016 (UTC)

Possibly, this issue: Project:Support desk/Flow/2016/07#h-Can't_login_or_create_user_after_upgrade_to_1.27-2016-07-05T08:20:00.000Z
As miraheze Wikis are maintained by their team, you will probably have to contact them: https://meta.miraheze.org/wiki/Help_center. AhmadF.Cheema (talk) 14:57, 25 December 2016 (UTC)
@37.129.233.142 Hello. I am a system administrator at Miraheze. Please try logging in again after the message, it should work. Reception123 (talk) 16:25, 28 December 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

LocalFileLockError"

Hi, when I try to upload any file, mediawiki show an error like this:

Warning: set_time_limit() has been disabled for security reasons in /home/xxxx/public_html/wiki/includes/GlobalFunctions.php on line 3407 Exception encountered, of type "LocalFileLockError"

I don't change anything.... it appears just for all the files that I try ti upload with all the users.

Thanks.

G. 81.184.42.86 (talk) 00:51, 26 December 2016 (UTC)

This message means that in the PHP configuration, executing function set_time_limit() has been disallowed. The right solution for this problem is to allow this function again.
A workaround would be to set $wgTransactionalTimeLimit to a smaller value: If you set $wgTransactionalTimeLimit to something smaller than the max_execution_time of PHP, then the error also will no longer appear. Note however that this will limit the time, which POST requests can be running before they get aborted. It might be that you actually do not want to set this value too low. See $wgTransactionalTimeLimit for more details! 83.135.239.136 (talk) 02:37, 26 December 2016 (UTC)

Sorry! This site is experiencing technical difficulties.

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.


Hello, My wiki is not on the internet, rather I am editing it locally. It worked perfectly. I moved my wiki from one computer to another. Now when I open it, it says the following message- "Sorry! This site is experiencing technical difficulties.

Try waiting a few minutes and reloading.

(Cannot access the database)"

I am using XXAMP (on both computers), and both computers are windows. Can someone help me? Thanks, Kianlolcat99.

Edit: This is Mediawiki 1.26 Kianlolcat99 (talk) 02:53, 26 December 2016 (UTC)

In LocalSettings.php you have the database credentials, which MediaWiki is using to connect to the database. On the new server these credentials obviously are different from the old one.
Make sure that database name, MySQL username, password and host are correct! 83.135.239.136 (talk) 03:23, 26 December 2016 (UTC)
It could be a problem with the ports. Be sure to check those and check that you haven't changed the MySQL username or password. Reception123 (talk) 16:23, 28 December 2016 (UTC)
Ok I will check them then. When I do both of the things you suggested, I will report what happened. Kianlolcat99 (talk) 22:01, 29 December 2016 (UTC)
83.135.239.136, do I have to update my media wiki version? Kianlolcat99 (talk) 23:02, 29 December 2016 (UTC)
No, to get this problem solved you don't have to update MediaWiki. All you have to do is adjust the database variables in LocalSettings.php. Then MW 1.26 will work again.
However, when you are looking at Version lifecycle you will notice that MW 1.26 no longer is supported. So you in fact should upgrade - in order to keep your system safe. 83.135.232.71 (talk) 23:17, 29 December 2016 (UTC)
What database variables do I have to adjust? Kianlolcat99 (talk) 17:07, 30 December 2016 (UTC)
Manual:Configuration settings#Database settings.
Setting $wgShowSQLErrors to true may also display a more detailed error message.
Be also sure that the database server is running. Ciencia Al Poder (talk) 17:48, 30 December 2016 (UTC)
Kianlolcat99 (talk) 17:13, 20 February 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Issue with uploading files

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.


Dear all,

First of all, happy holidays!

I'm writing for help as I've exhausted google information and still nothing changed.

In short I encountered the message: Could not create directory "mwstore://local-backend/local-public/e/ea". when I tried to upload a file.

Am using Redhat 7 enterprise, with a mediawiki version of mediawiki-1.27.1

I did try a variety of tricks. The owner and group is already apache (redhat version of the ubuntu counterpart of www-data), and the permission is already 755, but the problem sticks.

I checked up the page of https://www.mediawiki.org/wiki/Manual:Configuring_file_uploads and went through step by step, I couldn't find anything obviously wrong. Can anyone give me some advices?

Thanks a lot in advance! Yimingleon (talk) 12:54, 26 December 2016 (UTC)

If permissions are correct (just be sure they're set recursively), problem may be SELinux, that may be blocking the creation of new files/folders for the webserver. See if it's enabled, disable it, and see if the issue persists, then configure it properly. Ciencia Al Poder (talk) 15:49, 26 December 2016 (UTC)
Thanks Ciencia AI poder for answering! I'm not sure if I know how exactly to disable such settings.
I tried modifying /etc/sysconfig/selinux SELINUX=disabled and the old problem seems persists. Yimingleon (talk) 01:11, 27 December 2016 (UTC)
Oh wait, I forgot to reboot my server, and after reboot, the problem solved! It indeed is due to SELinux issues. I think we can call this case closed. Thanks a lot Ciencia AI poder! Yimingleon (talk) 01:29, 27 December 2016 (UTC)
Sorry to bring this issue back. The issue came back surprisingly.
After SELinux disabled, the same issue sticks. Anyone got any idea what else could be the reason?
Thanks a lot in advance! Yimingleon (talk) 10:20, 29 December 2016 (UTC)
Check if it's really disabled ( https://www.centos.org/docs/5/html/5.1/Deployment_Guide/sec-selinux-status-viewing.html ), and check permissions again Ciencia Al Poder (talk) 10:34, 29 December 2016 (UTC)
Thank you again for your prompt response. Here's the detailed results:
root@node1:~$ sestatus
SELinux status: disabled
root@node1:/var/www/mediawiki$ ll
...
drwxr-xr-x. 4 apache apache 4096 Dec 29 18:13 images
...
root@node1:/var/www/mediawiki/images$ ll
total 104
drwxr-xr-x 3 apache apache 4096 Dec 27 09:26 archive
drwxr-xr-x 3 apache apache 4096 Dec 27 09:26 e
-rwxrwxrwx. 1 apache apache 84 Aug 23 04:52 README
root@node1:/var/www/mediawiki$ vim LocalSettings.php
...
$wgUploadPath = "/mediawiki/images";
...
$wgUploadDirectory = "/mediawiki/images"; Yimingleon (talk) 12:31, 30 December 2016 (UTC)
Your folder is in /var/www/mediawiki/images but the configuration says /mediawiki/images
There's a clear mismatch here. Ciencia Al Poder (talk) 16:09, 30 December 2016 (UTC)
Oops, you are right! Yimingleon (talk) 08:29, 31 December 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

What happened to mwusers.com (MediaWiki Forums)?

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.


Does anyone know why mwusers.com closed down? That site was very useful. Is this the remaining user support area, aside from all purpose venues like superuser.com? Weediamiki (talk) 16:47, 26 December 2016 (UTC)

Super late, but looks like it's been moved to https://mwusers.org HouselessOz (talk) 16:57, 10 February 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Page Edits not shown for logged out users

This has not been a problem until recently.

I log into my account on my mediawiki page (my account has admin rights) and make an edit to a page The edit does not show up for other users. If I log out, the edit is not shown - but there is an entry in the page history for the edit. Also I can change image files, and those changes show up for all users.

I have cleared my browser cache, logged out, logged in again. The page edit is not visible unless I am logged in. If I log in, I see the edit.

I don't know what has changed in the site. I am the sole admin. Mick0sky (talk) 17:24, 27 December 2016 (UTC)

also, even when I am logged OUT, I can still see the changes show up in the diffs for the page.
EDIT and I can see the edit in the source tab. Mick0sky (talk) 17:29, 27 December 2016 (UTC)
What MediaWiki version? If it's 1.27 or 1.28, it may be that the Manual:Job queue is not running properly. See how many jobs are pending, and if you see a lot (a hundred or more) consider set $wgRunJobsAsync to false and/or manually call runJobs.php. Ciencia Al Poder (talk) 21:39, 27 December 2016 (UTC)
Ciencia, has there been a change that the job queue now also handles updates of regular pages? Note we are not speaking about an un-updated category here...
Mick0sky, what happens when after editing a page, you purge the cache of that page using action=purge? Does it then still display the old revision? Or is it showing the correct version then? 83.135.234.235 (talk) 00:46, 28 December 2016 (UTC)
Thank you for the replies. Using api.php ? action=query&meta=siteinfo&siprop=statistics
I see:
jobs="0"
I just tried purging of cache and still the old revision is displayed. (only when logged out)
Would an update to recent version of mediawiki be the best option for (attempted) fix? If I did an update would any of these "invisible" edits be lost? Mick0sky (talk) 18:02, 28 December 2016 (UTC)
Version 1.15 is really old and really insecure. Yes, updating it is a good idea!
No edits will be lost in that process. Edits are saved inside the database (e.g. in the database tables text, revision and page). The recent changes table can always be rebuilt again based on the information from other tables.
But, you should make sure that you are having a recent and working(!) backup of the wiki before you start the upgrade.
For details see upgrading! With your PHP version you coul duse MediaWiki 1.23 or 1.26, but not newer versions. And don't hesitate to ask again here, if you have more questions! 83.135.233.127 (talk) 18:19, 28 December 2016 (UTC)
In the meantime would trying to execute rebuildFileCache.php be a reasonable thing to try? Or one of the other scripts in the maintenance directory? Mick0sky (talk) 21:33, 28 December 2016 (UTC)
You could run it, but there are a few things to note: This script rebuilds the file cache. This cache contains rendered HTML of wiki pages. By default, $wgUseFileCache is set to false, so that MediaWiki will not use the file cache in which case running this script does not do anything useful.
If the file cache however is used, then running rebuildFileCache.php might be worth a try. However, I would upgrade anyway. 83.135.233.127 (talk) 21:43, 28 December 2016 (UTC)

After upgrade to 1.27: Invalid session ID

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.


Exception encountered, of type "InvalidArgumentException"
[98bb1df2df19f74ad7903192] /mediawiki/index.php InvalidArgumentException from line 194 of /usr/local/www/mediawiki/includes/session/SessionManager.php: Invalid session ID
Backtrace:
#0 /usr/local/www/mediawiki/includes/session/SessionManager.php(126): MediaWiki\Session\SessionManager->getSessionById(string, boolean, WebRequest)
#1 /usr/local/www/mediawiki/includes/Setup.php(747): MediaWiki\Session\SessionManager::getGlobalSession()
#2 /usr/local/www/mediawiki/includes/WebStart.php(137): require_once(string)
#3 /usr/local/www/mediawiki/index.php(40): require(string)
#4 {main}

The above appears in the browser instead of the main page. Had a look on the source but do not get a clue. Help needed. 91.46.153.157 (talk) 01:31, 28 December 2016 (UTC)

Googling your error message gave me http://www.gossamer-threads.com/lists/wiki/mediawiki/726847 and Manual:$wgPHPSessionHandling, which I have just created for you.
According to SessionManager.php, this error is happening when someone used session_id(). So not using session_id() should solve the issue. 83.135.234.235 (talk) 02:31, 28 December 2016 (UTC)
Instead of using session_id() and other session_* functions, use MediaWiki\Session\SessionManager! 83.135.234.235 (talk) 03:04, 28 December 2016 (UTC)
I cannot make any use out of these hints. Problem is that I do not know what and why there a session_id is set. I cleaned almost everything from LocalSettings.php but this does not make a difference.
I simply do not know where to search for what and edit to what. 91.46.150.148 (talk) 00:36, 29 December 2016 (UTC)
Just to add this:
The wiki is setup for local LAN use; one user; login is never used. Extensions disabled for debugging. Running Xcache. 91.46.150.148 (talk) 00:39, 29 December 2016 (UTC)
I have the same issue. I upgraded from the version packaged with Ubuntu 14.04 to mediawiki-1.28.0
[86eaae7f34e12ec4a0e80b1f] /index.php?title=Special:UserLogin&returnto=Main+Page InvalidArgumentException from line 201 of /var/www/mediawiki-1.28.0/includes/session/SessionManager.php: Invalid session ID
Backtrace:
  1. 0 /var/www/mediawiki-1.28.0/includes/session/PHPSessionHandler.php(209): MediaWiki\Session\SessionManager->getSessionById(string, boolean)
  2. 1 [internal function]: MediaWiki\Session\PHPSessionHandler->read(string)
  3. 2 /var/www/mediawiki-1.28.0/extensions/PageAttachment/session/Session.php(63): session_start()
  4. 3 /var/www/mediawiki-1.28.0/extensions/PageAttachment/RequestHandler.php(91): PageAttachment\Session\Session->startSessionIfNotStarted()
  5. 4 /var/www/mediawiki-1.28.0/includes/Hooks.php(195): PageAttachment\RequestHandler->onBeforeInitialize(Title, NULL, OutputPage, User, WebRequest, MediaWiki)
  6. 5 /var/www/mediawiki-1.28.0/includes/MediaWiki.php(182): Hooks::run(string, array)
  7. 6 /var/www/mediawiki-1.28.0/includes/MediaWiki.php(851): MediaWiki->performRequest()
  8. 7 /var/www/mediawiki-1.28.0/includes/MediaWiki.php(512): MediaWiki->main()
  9. 8 /var/www/mediawiki-1.28.0/index.php(43): MediaWiki->run()
  10. 9 {main} 107.218.141.103 (talk) 07:00, 8 January 2017 (UTC)
I am having the same error , if you change the validateSessionId function , the regex pattern to '/^[-,a-zA-Z0-9]{1,128}$/' it seems to fix that error, but then the wiki does not work, if you click on any page you are asked to login again, and it just gets stuck in a loop. This new session manager does not work. Leon.lewis (talk) 14:31, 3 February 2017 (UTC)
This allows the length of the session id to be beween 1 and 128, which is probabely not, what you want. My php version had a length of 26, so I changed it to the following:
return is_string( $id ) && preg_match( '/^[a-zA-Z0-9_-]{26,}$/', $id ); 2A02:168:6410:2:4170:B902:D894:B0C (talk) 11:57, 25 February 2017 (UTC)
I solved a similar problem. It was a session problem.
My server wasn't configured to handle sessions in php.
I had to edit the php.ini file to handle correctly the sessions with the property "session.save_path".
Actually, in my case, i had to do it on the .htaccess file. Matcafe (talk) 18:35, 2 March 2017 (UTC)
This is a bit different than the session.save_path issue.
I've created T159567 after some tests. Basically, since MediaWiki 1.27, sessions are broken if you have PHP configured with session.auto_start = 1. Please disable session.auto_start in PHP. I've only reproduced the "Invalid session ID" error if session.auto_start = 1 and session.hash_bits_per_character = 6 on MediaWiki 1.27. On 1.26 it silently discards any session data. Ciencia Al Poder (talk) 19:15, 3 March 2017 (UTC)
Thanks Cienacial Al Poder. I also encountered the same situation when I upgraded mediawiki to 1.34 using php 7.3 in debian buster. My php.ini was wrong and corrected with your description. Working fine now. Thanks again. Ranjithsiji (talk) 07:56, 16 July 2020 (UTC)
Thanks for this information. I encountered this when trying to test Mediawiki 1.35.0-rc.2 locally on MAMP. In case it helps anyone else on MAMP, I just had to edit the php.ini file in MAMP/bin/php/(myphpversion)/conf/php.ini and set session.auto_start to 0. Thank you again. Knomanii (talk) 04:40, 23 August 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

CreateWiki logs creations (recenthchanges) on wrong wiki

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.


We have tried to figure this out ourselves but we can't seem to find the exact error so I am asking here. Recently, after the 1.28 upgrade the extension CreateWiki (https://github.com/miraheze/CreateWiki) logs wiki creations on the farmer log on Meta wiki but they appear on the Recent Changes of the wiki that has been created rather than Meta wiki. Before, they all appeared on Meta which we want to happen now. How could we change this?

For more details see https://phabricator.miraheze.org/T1104 Reception123 (talk) 12:28, 28 December 2016 (UTC)

@Ciencia Al Poder any ideas about this? Reception123 (talk) 08:58, 29 December 2016 (UTC)
No idea Ciencia Al Poder (talk) 10:25, 29 December 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

I have used Special:Export and Import to Export Template:Navbox from Wikipedia and import it to my mediawiki site, i have also added Common.css page and added Scribunto plugin, but my navbox is looking broken. I have also made mediawiki on localhost (via wamp) and navbox shows as it should. This is a picture how it looks on my site (https://s23.postimg.org/pl0oki5rf/pic1.png), and this is how it should look like - it's on my localhost (https://s27.postimg.org/7yicpmjxf/pic2.png)

I don't know what could be a problem, because i think i have done everything i already done for my localhost.

Edit: Maybe is because of this (https://s24.postimg.org/ycuhpbu0l/Untitled.png) ? Darkwarrior992 (talk) 14:06, 28 December 2016 (UTC)

For the Module:Navbox error see: Extension talk:Scribunto/2013#c-90.218.183.65-2013-08-06T14:03:00.000Z-Error_with_scribunto AhmadF.Cheema (talk) 17:33, 28 December 2016 (UTC)
Looks like you're missing the styling. Did you copy the appropriate styles (probably kept at MediaWiki:Common.css)? 121.214.40.44 (talk) 11:04, 29 December 2016 (UTC)
I have already imported all styles from Common.css(as i already said in first message), but there is still a problem with navbox... Darkwarrior992 (talk) 20:41, 30 December 2016 (UTC)

WikiForum overwrites $wgCaptchaTriggers when adding a new permission

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.


As the title says WikiForum is overriding $wgCaptchaTriggers . Miraheze's wikis need WikiForum so if anyone could look at this issue that'd be appreciated. More details here: https://phabricator.wikimedia.org/T152929 Reception123 (talk) 16:21, 28 December 2016 (UTC)

@Ciencia Al Poder any ideas about this? Reception123 (talk) 08:58, 29 December 2016 (UTC)
No idea Ciencia Al Poder (talk) 10:26, 29 December 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

SOLVED: Parsoid keeps complaining about invalid domain

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.


Solved, see https://www.mediawiki.org/w/index.php?title=Talk%3AParsoid/2016#h-SOLVED%3A_Parsoid_keeps_complaining_about_invalid_domain-2016-12-30T11%3A01%3A00.000Z

Hi there! I am struggling with setting up Mediawiki (works) with VisualEditor (almost works) and parsoid (doesn't work). I'd appreciate any input on this.

I installed mediawiki and visualeditor on my (debian) server which works fine so far. I cannot configure parsoid in a functional way; whenever i try to save a new article the log contains an entry about invalid domain. I followed all the hints in the manual and the troubleshooting section of the parsoid project, but to no avail.

My config.yaml: http://pastebin.com/sxgQtHkx

My LocalSettings.php: http://pastebin.com/jT3UJfrB

I tried LOTS of possible configurations with hostname, IP address, localhost and whatever. A line of my parsoid.log looks like this:

http://pastebin.com/eyNe8WMk

Any help would be greatly appreciated. It's apache 2.4.10 with php7 and parsoid 0.6.1, btw. Cheers,

  Tim SuperPerforator (talk) 20:09, 28 December 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Multiple LDAP groups Permissions

Someone have a link that explain how can i configure Multilple ldap groups permission inside LocalSettings.php this is my config and it does not work. I can sign in and both groups can edit or write.

$wgLDAPRequiredGroups = array( 'dominio.com'=>array("cn=Wiki Administradores,cn=Users,dc=dominio,dc=com","cn=Wiki Read,cn=Users,dc=dominio,dc=com"));

$wgGroupPermissions['Wiki Read']['edit'] = false; $wgGroupPermissions['Wiki Read']['read'] = true; $wgGroupPermissions['Wiki Read']['createpage'] = false; $wgGroupPermissions['Wiki Read']['createtalk'] = false;


$wgGroupPermissions['Wiki Administradores']['block'] = true; $wgGroupPermissions['Wiki Administradores']['createaccount'] = true; $wgGroupPermissions['Wiki Administradores']['delete'] = true; $wgGroupPermissions['Wiki Administradores']['deletedhistory'] = true; $wgGroupPermissions['Wiki Administradores']['editinterface'] = true; $wgGroupPermissions['Wiki Administradores']['import'] = true; $wgGroupPermissions['Wiki Administradores']['importupload'] = true; $wgGroupPermissions['Wiki Administradores']['move'] = true; $wgGroupPermissions['Wiki Administradores']['patrol'] = true; $wgGroupPermissions['Wiki Administradores']['protect'] = true; $wgGroupPermissions['Wiki Administradores']['rollback'] = true; $wgGroupPermissions['Wiki Administradores']['upload'] = true; $wgGroupPermissions['Wiki Administradores']['reupload'] = true; $wgGroupPermissions['Wiki Administradores']['reupload-shared'] = true; $wgGroupPermissions['Wiki Administradores']['unwatchedpages'] = true; $wgGroupPermissions['Wiki Administradores']['autoconfirmed'] = true; $wgGroupPermissions['Wiki Administradores']['userrights'] = true; $wgGroupPermissions['Wiki Administradores']['edit'] = true; $wgGroupPermissions['Wiki Administradores']['read'] = true; $wgGroupPermissions['Wiki Administradores']['createpage'] = true; $wgGroupPermissions['Wiki Administradores']['createtalk'] = true; $wgGroupPermissions['Wiki Administradores'] = $wgGroupPermissions['sysop']; 190.210.48.78 (talk) 21:04, 28 December 2016 (UTC)

Problems converting files

I have your Media Monkey program. I am using it to convert a ton of files. It gives me an error about "file names are too long and duplicate files". It tells me to edit them, but I see no place to do it. There are a bunch of check boxes, and I am not sure which to check. If I leave everything checked what will it do? Will it remove both files or leave a single non-duplicate? For the file names that it says are too long, will checking it cause the program to shorten it or simply not convert it? Semysig (talk) 05:30, 29 December 2016 (UTC)

What does it have Media Monkey to do with MediaWiki (apart from both starting with "Media-")? Ciencia Al Poder (talk) 10:24, 29 December 2016 (UTC)

Upload files specific to pages

Hi there, I am new to wiki, can we upload files specific to the page we are on? And have a list of the uploads for that page? Also, we are having trouble embedding a PDF on a page. So far it only shows a thumbnail or a link. Any ideas? Thanks! 47.37.154.23 (talk) 06:06, 29 December 2016 (UTC)

From what I know you can only upload using Special:Upload and include the files on a page by doing [[File:Example.jpg]]. For PDF what extension are you using? Reception123 (talk) 08:57, 29 December 2016 (UTC)

Page limit with Firefox only

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.


Hello,

Page: https://et.wikipedia.org/wiki/UEFA_Euroopa_Liiga_2016/17_kvalifikatsiooni_faas_ja_v%C3%A4ljalangemism%C3%A4ngude_ring

Problem: With Firefox, there appears to be templates limit exceeded. It seems to be problem with Firefox only and for EEwiki only.

How to fix this?

Best Regards, LeeMarx 2001:7D0:854D:E680:D801:CC0:4841:BB4 (talk) 07:18, 29 December 2016 (UTC)

There's no limit exceeded, but apparently an unclosed div, table, template or reference Ciencia Al Poder (talk) 10:32, 29 December 2016 (UTC)
Is that for certain? Because it only appears with firefox and is exactly after 500th template used. On other browsers it doesnt say anything about unclosed things. 2001:7D0:854D:E680:D801:CC0:4841:BB4 (talk) 12:05, 29 December 2016 (UTC)
debug=true outputs, in the generated HTML (near the end), the following:
<!-- 
NewPP limit report
Parsed by mw1163
Cached time: 20161229135257
Cache expiry: 2592000
Dynamic content: false
CPU time usage: 5.812 seconds
Real time usage: 6.015 seconds
Preprocessor visited node count: 93654/1000000
Preprocessor generated node count: 0/1500000
Post‐expand include size: 1221196/2097152 bytes
Template argument size: 654251/2097152 bytes
Highest expansion depth: 10/40
Expensive parser function count: 0/500
Lua time usage: 0.905/10.000 seconds
Lua memory usage: 2.72 MB/50 MB
-->
<!-- 
Transclusion expansion time report (%,ms,calls,template)
100.00% 2938.054      1 - -total
 75.70% 2224.130    264 - Mall:Jalgpallimatš
 47.64% 1399.821   1070 - Mall:Str_sub
 11.27%  331.249      2 - Mall:Viited
 10.01%  294.023    562 - Mall:Värav
  8.35%  245.462   1222 - Mall:Riigi_ikoon
  6.71%  197.290     44 - Mall:Cite_web
  4.63%  135.897    132 - Mall:TwoLegResult
  2.76%   81.067    264 - Mall:Algusaeg
  0.77%   22.578    264 - Mall:Väiksem
-->
<!-- Saved in parser cache with key etwiki:pcache:idhash:452802-0!*!0!!et!4!* and timestamp 20161229135251 and revision id 4548485
 -->
It's inside the limits. Ciencia Al Poder (talk) 14:00, 29 December 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Error loading data from server: 500: docserver-http: HTTP 500

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.


So, after trial and error getting parsoid setup, i was finally able to get it and i get this error.

The wiki is hosted on a hosting site and the parsoid server is also hosted elswhere.

Below are my settings for the wiki localsettings.php and the parsoid config file, config.yaml Parsoid is on Ubuntu 14.04.5

LocalSettings.php:

$wgVirtualRestConfig['modules']['parsoid'] = array(
  "url" => "http://wiki_site_ip:8142",
  "domain" => "localhost",
  "prefix" => "localhost" );

Config.yaml

        - # This is the only required parameter,
          # the URL of you MediaWiki API endpoint.
          uri: 'http://mywikisite/w/api.php'
          # The "domain" is used for communication with Visual Editor
          # and RESTBase.  It defaults to the hostname portion of
          # the `uri` property below, but you can manually set it
          # to an arbitrary string.
          domain: 'mywikisite'  # optional

Now im sure one of these must be incorrect? Not sure.

Any help is greatly appreciated! Tormentium (talk) 17:48, 29 December 2016 (UTC)

(I've edited your question so that it looks like reasonable php code... Please confirm that this changes I made match what is in your LocalSettings.php.)
  • domain in your config.yaml should match the domain in the wgVirtualRestConfig.
  • url should LocalSettings should point to the parsoid server.
Would it be possible to share the URL of your wiki? MarkAHershberger(talk) 19:11, 29 December 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

"Template used on this page: " no longer shows up

I have two mediawikis (same version and host), and one of them no longer shows the "Template used on this page:" part during an edit. How can I get that back?

After some more troubleshooting, I also don't seem to have jobs finishing off. Even when I run runJobs.php I end up with a pile left. Tenbergen (talk) 18:03, 29 December 2016 (UTC)

Can you provide the URL of your wiki? MarkAHershberger(talk) 19:04, 29 December 2016 (UTC)
It's http://ccmdb.kuality.ca but it's largely set up to be a private wiki, so without an account there is not much to see. Is there something specific you would look at? Tenbergen (talk) 15:13, 3 January 2017 (UTC)
(Ooo! I have a friend who runs WikEm.org -- It looks like there is a chance you guys could collaborate, if you're interested.)
What is the output of runJobs.php? How often does it run?
The templates used on a page doesn't show up (in my tests) when you're editing only a single section of the page. Maybe you're not editing the whole page? MarkAHershberger(talk) 19:40, 3 January 2017 (UTC)
(WikiEM looks interesting, a much more public use wiki than ours, we really are just documenting a database. I don't know if there is much overlap, though. If your friend thinks there is room for collaboration please ask him/her to contact me at my tenbergen account on wikipedia.)
You are right, the templates show on the bottom when editing the full article. Much relieved.
runJobs is crontabbed to run daily over night. Also, we have 20 unenthusiastic users, so we don't get more than 100 edits/day unless we are on a rare binge. We have two wikis much like that for different projects. On one, the api (https://ccmdb.kuality.ca/api.php?action=query&format=jsonfm&meta=siteinfo&siprop=statistics) gets down to very low or 0 jobs to run when runJobs is done. On the other we always have a few hundered/thousand in the queue. If I run runjobs manually, and then have a look at the jobs table and count job_cmd entries, I have avout 800 refreshlinks jobs in there. If I run refreshlinks manually I end up with about 400 refreshlinks left, but then I get 4277 htmlCacheUpdate ones. we only have 2,725 regular namespace pages, so I wonder if that is every page, category, property etc. If I run runJobs again I am back where I started, with about 800 refreshlink jobs in the table. Tenbergen (talk) 22:55, 3 January 2017 (UTC)
There's something causing those jobs to fail. If running them from the console doesn't get any useful output, try setting a debug log file in case it displays an error message or something. Try also with error_reporting( -1 ); Ciencia Al Poder (talk) 10:17, 4 January 2017 (UTC)

hello my name is damian i just sign up an was a waiting the conf irmation email but i never recieve it can you please help me with this problem

never receive my confirmation email 2601:86:0:C00E:5497:604:8043:7A (talk) 20:57, 29 December 2016 (UTC)

Check your junk/spam folder, double-check that the email entered is valid, wait a few hours. Ciencia Al Poder (talk) 21:07, 29 December 2016 (UTC)
I check my spam nothing can you resend it to jaheemellison@gmail.com 2601:86:0:C00E:5497:604:8043:7A (talk) 21:11, 29 December 2016 (UTC)
I can't since it's generated automatically by the software. Wait a few hours, then you can resend the confirmation email again from your preferences. Note you have to log in. Ciencia Al Poder (talk) 21:15, 29 December 2016 (UTC)

Quick Convert to Table

Hi, is there a way to quickly convert a HTML table to a wiki table, without manually inputting all the |- header and || column dividers?

This is an example of an HTML table I'd like to convert.

Pl.   Team         Pts   W OW  OL L    GF-GA   Diff
1 Sparta Prague    102  30  5  2  7   198-134  +64
2 Trinec            98  29  4  3  8   181-99   +82
3 Plzen             87  25  5  2  12  188-141  +47
4 Vítkovice         84  24  5  2  13  154-116  +38
5 Chomutov          79  23  3  4  14  162-122  +40
6 Slavia Prague     75  22  3  3  16  142-124  +18 Hockeyben (talk) 17:53, 30 December 2016 (UTC)
http://www.tablesgenerator.com/mediawiki_tables
File->Paste table data... Ciencia Al Poder (talk) 16:09, 31 December 2016 (UTC)

There is no Download Link for the LocalSettings.php after installing MW 1.27.1 Install is in a new directory.

Where is the LocalSettings.php file?

One cannot use the previous file since it fails for all sorts of extensions not yet being installed in the new MediaWiki environment.

Using SeaMonkey for the install. Never had a problem previously, since one could cut the file from a specific location and paste it in the wiki root directory. Ken Roy (talk) 20:46, 30 December 2016 (UTC)

Could you tell me what page you're on where you expect the download link to appear? I suspect you aren't going to the last page because the "Download LocalSettings.php" link is in big, bold letters there. MarkAHershberger(talk) 20:57, 30 December 2016 (UTC)
Answering my own question. In frustration, I click the Regenerate LocalSettings (which is flagged as not recommended) when I was done, I did receive the Save As for the LocalSettings.php file.
Not a cool implementation. Instead of having a link for You can Start Using the wiki (might be different, since short term memory often fails me), you should have wording that says "Copy previous LocalSettings.php to wiki root directory, or something like that, Or Regenerate LocalSettings if starting from scratch.
Thanks in advance for considering updating the text.
Ken Ken Roy (talk) 21:19, 30 December 2016 (UTC)
Recorded your request: Phab:T154335 MarkAHershberger(talk) 21:29, 30 December 2016 (UTC)
Mark,
I was on the page that says Install/Upgrade complete. I tried to rename the LocalSettings.php to start over, but it still remembers that I completed the install.
The page had a link that I could start using the Wiki and a button to regenerate the LocalSettings.
Until, I regenerated the LocalSettings.php I did not get a Download link. I was doing a brand new install but using an existing database. That is normally how up do the upgrades every couple of years.
So it could be a problem only when doing an upgrade from a new install.
Ken Ken Roy (talk) 22:16, 30 December 2016 (UTC)
The usual way of doing an upgrade is to copy over the old LocalSettings.php file. It should basically be working, also without changes. Before doing anything in the updated installation, you would first update the extensions to the according version. And after that, you would run the update.php script.
Upgrade tells you that in more detail! It also details updates for the LocalSettings.php file, but as far as extensions are concerned, the changes listed there are optional. 83.135.237.125 (talk) 01:29, 31 December 2016 (UTC)
running the update.php script is not possible when one does not have server access. Ken Roy (talk) 12:38, 31 December 2016 (UTC)
In that case you use the web updater. 83.135.231.138 (talk) 13:04, 31 December 2016 (UTC)
What's wrong with updating the way I am doing it? Where MediaWiki recognizes a previous version of the database and updates the schema? Ken Roy (talk) 18:17, 31 December 2016 (UTC)
There's nothing wrong with that, but that's probably an undocumented way of doing an upgrade. Ciencia Al Poder (talk) 16:41, 1 January 2017 (UTC)
Maybe it's undocumented. I thought the problem would be the missing download link for the LocalSettings.php file - actually there is no need for such a link. You just continue using the old file. 83.135.239.68 (talk) 21:12, 1 January 2017 (UTC)
Or maybe I am just to much accustomed to this existing process already and I just don't see the improvement... 83.135.239.68 (talk) 01:30, 2 January 2017 (UTC)
I normally do not use the existing LocalSettings.php since previous parameters often do not apply. Maybe MW 1.23 did not indicate that I could use the Wiki before the Local Settings.php was completely generated.
It's hard to remember when one only upgrades every 3 or 4 years. It looks like that method in fact is using the web updater at least in that it updates the database but does not require the secret key since there is no LocalSettings.php in place. Ken Roy (talk) 13:15, 2 January 2017 (UTC)
It is kind of an exception that stuff in LocalSettings.php is not backwards-compatible. These exceptions are listed on upgrading, but that you have to change LocalSettings.php during an upgrade normally is not necessary. Jörgi123 (talk) 13:26, 2 January 2017 (UTC)

SVN REL1_16/phase3 upgrade to current version

I have an old mediawiki installation 1.16 checked out via SVN from:

 http://svn.wikimedia.org/svnroot/mediawiki/branches/REL1_16/phase3

I wanted to upgrade to the new version via svn switch (as described in this Wiki) but it seems mediawiki changed to git instead?

What is the best way to upgrade this installation to the current version without re-installing (and without loosing any data)? Nobaq (talk) 14:42, 31 December 2016 (UTC)

That is right, MediaWiki has been switched to use Git instead of SVN.
Since SVN stuff basically only is present in the .svn folders, it should be enough to remove these folders.
Then in an empty folder I would do a git clone and clone the current repository. After that I would do a git checkout of the branch or tag you want. That should give you the content of the MediaWiki Core repository in the correct version. Afterwards, I would follow upgrade for the next steps. (You possibly have to do a few extra steps to download dependencies e.g. for syntax highlighting, but that depends on which version you are upgrading to.) 83.135.231.138 (talk) 15:56, 31 December 2016 (UTC)