Project:Support desk

Jump to: navigation, search

About this board

Not editable

vde   Welcome to MediaWiki.org's Support desk, where you can ask MediaWiki questions!

There are also other places where to askCommunication: IRCCommunication#Chat, mailing listsMailing lists, Q&A etc.

Before you post

Post a new question

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

How to install and run HHVM on my wiki?

4
Innosflew (talkcontribs)

How can I install HHVM and then make my Mediawiki use it?

AKlapper (WMF) (talkcontribs)

Does HHVM/Vagrant help?

Zoranzoki21 (talkcontribs)

No. User asked for without Vagrant

Zoranzoki21 (talkcontribs)

I too have this question.. But without Vagrant.

Bullet list spacing

2
YYwiki (talkcontribs)

How can I control the spacing between bullets in a bullet list - making it smaller or bigger?

AhmadF.Cheema (talkcontribs)

Use the following in your Mediawiki:Common.css if you want to change the spacing for all bullet points,

ul > li {
	padding-left: 50px;
}

To change only for some bullet points, include the following in your Mediawiki:Common.css,

.newbp ul > li {
	padding-left: 50px;
}

and then when needed, include the bullet points inside a div element with newbp class. For example,

<div class="newbp">
* foo
* bar
</div>

If by "spacing between bullets", you meant the vertical spacing between rows of list items, use the above techniques with the .CSS code mentioned at Spacing between bullet list rows and How do I set vertical space between list items?.

What approach to use for Active Directory login?

4
PSIDWiki (talkcontribs)

I have been going around in circles with trying to get this to work. I had installed 1.29.1 then I read that active directory works better with 1.26.3. Extension:LDAP Authentication

So I removed 1.29.1 and downloaded and setup 1.26.3. So I go to setup the ldap options and I see that I have to use AuthPlugin so I go to this site AuthPlugin where it says it is deprecated and for backwards compatibility up to version 1.27 and to use Manual:SessionManager and AuthManager.

What is the recommended approach to use where I can have users login with their active directory credentials and I can add them to a group to just be able to edit?

Thank you

MarkAHershberger (talkcontribs)

You're right that the situation is confusing right now.

The version for 1.29.x may work depending on your needs or not. Try it and then ask for help here if you run into problems.

If it fails and you need this immediately, go with 1.26.x and Extension:LDAP Authentication since that will most likely work.

Finally, we are working on a replacement for the LDAP authentication. You can follow our progress: LDAP hub.

PSIDWiki (talkcontribs)

Hi Mark,

Thank you for the reply. I'm trying to use 1.26.x since I have to have it completed by today.

I'm running this on

MediaWiki 1.26.3

IIS 8.5

php 7.0 (I think this needs to change since I'm using 1.26.3)

mySQL 5.5.57

Windows Server 2012 R2

Here is what I have in LocalSettings.php for connecting to Active Directory:

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

$wgAuth = new LdapAuthenticationPlugin();

$wgLDAPDomainNames = array( "TMP" );

$wgLDAPServerNames = array( "TMP" => "tmp01.ab.cde.fghi.edu" );

$wgLDAPSearchStrings = array( "TMP" => "TMP\\USER-NAME" );

$wgLDAPEncryptionType = array( "TMP" => "tls" );

$wgLDAPUseLocal = false;

$wgMinimalPasswordLength = 1;

$wgLDAPBaseDNs = array( "TMP" => "dc=tmp01,dc=ab,dc=cde,dc=fghi,dc=edu" );

$wgLDAPSearchAttributes = array( "TMP" => "sAMAccountName" );

$wgLDAPRetrievePrefs = array( "TMP" => "true" );

$wgLDAPPreferences = array('TMP' => array( 'email' => 'mail','realname' => 'displayname'));

$wgLDAPDebug = 3; //for debugging LDAP

$wgShowExceptionDetails = true; //for debugging MediaWiki

$wgDebugLogFile = "C:\inetpub\wwwroot\NewWiki\w\debug.log" ;

$wgDebugLogGroups["ldap"] = "C:\inetpub\wwwroot\NewWiki\w\debugldap.log" ;

$wgLDAPProxyAgent = array(

'TMP' => 'cn=TMP\userLDAP,dc=tmp01,dc=ab,dc=cde,dc=fghi,dc=edu',

);

$wgLDAPProxyAgentPassword = array(

'TMP' => 'tmpLDAPpassword',

);

I know that the ldap server has a certificate and it is not self signed but from a third party. Do I still need to use openssl and create a cert file? If so where do I put this file in a windows server 2012 computer? Should I use SSL?

All I want to do is have my users use their current login information to log into my MediaWiki setup and just allow them to edit. I need to give myself and another user top level control. Anyone else who uses the site will just be a user and just viewing the wiki.

Thank you again for your help. I look forward to hearing from you.l

This comment was hidden by Jörgi123 (history)
128.119.146.130 (talkcontribs)

I am trying to log-in to edit my page with no luck. the email address associated with my log-in is ******@mit.edu This may need to be updated to my new university affiliation ******@umass.edu which may be causing a problem.

Malyacko (talkcontribs)

Log in on which page exactly? Full URL welcome. Plus the exact error message you get, as you imply that your account is "blocked" for reasons we do not know.

Change the URL of "Help" link in sidebar

7
Jprakash402 (talkcontribs)

My wiki's "help" link is pointing to mediawiki's site but not our internal wiki. Can anyone help how to change that particular URl to point out to our own wiki?

Fokebox (talkcontribs)

Go Mediawiki:Sidebar and change it

Jprakash402 (talkcontribs)

Thanks, Fokebox for your reply..:)

Actually, it will be more of a hard coding if I directly put the URL for Help.

I want to change the target URL of the specific keyword that is being used for Help..

Could you pls let me know how can I do that?

Example:

* navigation

** mainpage|mainpage

I want to change the target URL of above mainpage but don't wanna replace it with URL..

If there is no alternative I can go with the above suggested idea

Jprakash402 (talkcontribs)

and one more question....

Does URL hard coding results in any translation related issues?

AhmadF.Cheema (talkcontribs)

See the examples at Manual:Interface/Sidebar#Links for the different ways links can be added to the sidebar.

TheDJ (talkcontribs)

You make something like ** mainpage-url|main page And then you can add the destination to MediaWiki:Mainpage-url, for instance "Project:Main page"

See also Manual:Interface/Sidebar.

Jprakash402 (talkcontribs)

Thanks all for your reply...

Special:AllMessages This did the trick to change the target URL

I have edited the particular target URL from that example...:)

High cpu and ram usage on wikimedia server

3
79.178.3.212 (talkcontribs)

Hello,

TL;DR: How to set timeout on the mySQL from the wiki?

Longer explanation:

Every now or themy wikimedia stop working, after some hours of debugging I realise that when google starts to crawl my wiki, it's make a storm and there are more then 100 CGI processes that runs without being terminated.

Every process is about 30 MB but so many kllls the ram and when it's happends the CPU raise too.

When I opened the mySql manager I was able to see that most there are also 100+ open conecctions on sleeping state.

I tried to terminated them but it wasn't release the processes on the Wiki server.

Is here a way to control the timeout so the CGI process will be closed after a minute or to to close the mySql connection after a minute?

Is there a way too deeply debug what wxactly goes wrong?

Ciencia Al Poder (talkcontribs)

The problem is not mysql not closing connections, but PHP not closing its instances.

AFAIK, running PHP as CGI should have a PHP process open all the time, which gets recycled periodically (after X requests). Maybe the server is losing connection with the PHP process somehow and opens a new one, leaving the old process open. You should check error logs or windows event viewer for abnormal PHP errors that leave orphaned PHP processes.

109.66.49.69 (talkcontribs)

Thank you for the direction, I'm still figuring it out, but thanks for the direction.

I'll update whe I'll succeed to solve it ( or not ). XD

Errors generated when running maintenance/refreshLinks.php

5
Txantimedia (talkcontribs)

I'm running

Product Version
MediaWiki 1.29.1
PHP 7.1.10 (apache2handler)
MySQL 5.6.38
ICU 59.1

Each time I run maintenance/refreshLinks.php, I get this error a few times. (I removed some of the path for privacy reasons.)

Warning: A non-numeric value encountered in /includes/parser/CoreParserFunctions.php on line 901

It occurs at between 4700 and 4800 and between 12300 and 12400.

I did some research on this error. Apparently, it's related to php7.1. I found this discussion on Github - https://github.com/dompdf/dompdf/issues/1272 that seems to indicate the use of values related to css, like "auto" that are non-numeric. (Perhaps the use of "null" instead of 0?)

I thought I"d report it here. Should I have posted it on phabricator?

TheDJ (talkcontribs)

You can report this on phabricator and label it with the project tag "NewPHP"

Txantimedia (talkcontribs)

Thanks. I'll open a ticket.

Malyacko (talkcontribs)

phab:T180403

Install CentralAuth on a single windows development system using XAMPP?

3
Sau226 (talkcontribs)

I am currently running a XAMPP webserver and MySQL database on Windows 10 and have successfully installed MediaWiki? How do I set up CentralAuth on Windows (all the instructions are for Linux)?

Gerdesj (talkcontribs)

I've just done a quick read through the CentralAuth doc and it looks pretty OS agnostic. In general "/" in Unix land translates to "C:\" in Windows land (not really true but good enough for now). The bits that describe running "$ mysql" should also work in Windows by running mysql from a cmd prompt. I think that if you are running "XAMP" then you are actually using MariaDB and not MySQL (both are named after Monty's daughters and both of them will work here)

Sau226 (talkcontribs)

Thanks. I'll try and figure it out

Is there a way to make the TOC hidden by default?

7
Summary by 197.218.92.17
Txantimedia (talkcontribs)

I don't mean to get rid of it. I would refer that TOCs were displayed hidden with the show link being used to expand them. I've poked around through the manual and faq, but I haven't found anything about that. I guess another way to word this (which I've also searched for) is to have TOCs displayed collapsed by default, and opened by the viewer when desired. I do not want to use __NOTOC__. I want the TOC to be available, just not taking up the entire page before the article begins.

I could swear I saw this at Wikipedia somewhere, but I can't seem to find it.

Seb35 (talkcontribs)

I don’t have a complete answer but there is Manual:Table of contents where possibly there is a link to your desired feature. For Wikipedia, when you close the TOC, it is saved (in a cookie) and the next TOCs are then closed (well, it’s JavaScript, so it is closing when you open the page); when you re-open the TOC, it will then appear opened, etc.

Txantimedia (talkcontribs)

Thanks, @Seb35. I was not aware of the cookie setting. That would explain why I've seen it collapsed before. I looked through the Manual and the FAQ several times and didn't find the answer. I also found a template Template:TOC hidden, but it has no documentation, and the template code is beyond confusing.

The cookie info is useful.

#toc ul{

display.none;

}

Will permanently hide the TOC. That is NOT what I want.

197.218.92.17 (talkcontribs)

Nope, the CSS won't permanently hide the table of contents, a user can still click the show / hide link to show it.

Txantimedia (talkcontribs)

I put that code in MediaWiki:Common.css, and it didn't do anything. I put it in my personal common.css, and it didn't do anything. Perhaps I'm missing something?

Seb35's suggestion works though. If I close it, the next time I open the page, the TOC is closed.

Seb35 (talkcontribs)

I tried the CSS 197 gave, it works mostly but the word 'show' (or 'hide') is not always consistent with the real state.

If it does not work after you modified MediaWiki:Common.css, perhaps you need to force a hard refresh of the browser (Ctrl+F5 or Ctrl+R depending on the browser).

Txantimedia (talkcontribs)

That's probably true, but I like your fix better anyway. If you want it hidden when you open a page, hide it before you leave.

Request for comments on my articles for a corporate intranet wiki

1
Gerdesj (talkcontribs)

I'm in the process of putting together a series of articles aimed at a corporate intranet (I've seen a fair few in my time and I am a consultant for various things for a lot of companies - my personal focus is really as a Linux sysadmin and IT security in general). The end goal is on end-to-end lifecycle management of a wiki (hence why I cover OS installation) and reproducibility, to get a useful MW up and running quickly and safely in a largely Windows/AD world.

I have made this lot my company's official wiki installation documentation, hence it will be kept up to date and not be left to gather dust (we are ISO 9000/27000 accredited - we do docs!). This is a bit of an experiment but I think it could work well - the whole point of a wiki is not simply shouting into the void. I could have kept these articles hidden away on my wiki or share and I'd rather share.

  • I have made some decisions and I am open to criticism of them
  • Could someone tell me where this lot might be best placed on MW
  • Requests for features

Either post here or for more involved discussions, dump that on the Discussion Page for the root article. Feature requests - put them directly into the top level page under "Status"

The articles are currently here: User:Gerdesj/Intranet (I'll update this link when they move)

Cheers

Jon