# Project talk:Support desk

Archives

Please don't post requests for support on this talk page, do that on the actual Support desk instead.

Previous discussion was archived at Project talk:Support desk/Archive 1 on 2016-09-21.

## New Wikimedia Developer Support channel (test pilot)

1

Hi, https://discourse-mediawiki.wmflabs.org/ has just been announced.

As explained at Discourse#One_place_to_seek_developer_support, Project:Support desk has been until now the only channel whose main purpose is to offer support for developers and other technical contributors. As maintainers of the Support desk, you are invited to check the new Wikimedia Developer Support test pilot. Your feedback will be key to decide the next steps of this pilot and its relationship with Support desk.

While in Discourse (the software used in this new space) users get more permissions automatically as they make useful contributions to the project, I think that those of you maintaining the Support desk could be assigned directly the Moderator role there. If you are interested, create a new user in the Discourse instance and ping me.

Also, what would be the best way to proceed advertising Wikimedia Developer Support here at the Support desk? Reasonable options could go from not announce it (to avoid confusion to users landing here) to direct developers to invite developers to use the test pilot space instead (which would bring more traffic and therefore better conditions for a good test).

Reply to "New Wikimedia Developer Support channel (test pilot)"

## How to implement OTP...

2
Summary by MarkAHershberger

How to implement OTP enable login...

## How to get Parsoid always running on Windows Server 2012 so ViaualEditor Works

8

Hi, I'm really struggling getting Parsoid running on Windows Server 2012 R2 ans stay running when I close the command prompt window

I can Get Visual Editor working when I run in CMD (or PowerShell):

node bin\server.js ("node bin\server.js &" or "node bin\server.js > stdout.txt 2> stderr.txt &")

Visual Editor runs when I leave this window open, however as soon as I close it, log off or anything that terminates it, Visual Editor stops working.

How am I able to run this command and keep it working and not have it rely on my profile also?

I have copied "C:\Users\%UserName%\node_modules" to the Root of the C:\ and it works running it from there so it's no longer profile reliant. However I still can't get it to run without closing a the window.

I have setup a windows domain account that doesn't have desktop access so it can run scheduled tasks if required but I am not successfully got it running allowing wiki to work, or without flooding the task manager with loads of node.exe's, so I'm still stuck on the always running part

You should look at running parsoid as a service.

Thanks, this isn't working for me? I did the parts:

The recommended way to install node-windows is with npm, using the global flag:

npm install -g node-windows

Then, in your project root, run:

npm link node-windows

Then ran the .vbs file with the code in it (with my edits and as it is to make sure typo's etc):

var Service = require('node-windows').Service;
// Create a new service object
var svc = new Service({

name:'Hello World',
description: 'The nodejs.org example web server.',
script: 'C:\\path\\to\\helloworld.js'

});

// Listen for the "install" event, which indicates the
// process is available as a service.
svc.on('install',function(){
svc.start();
});

svc.install();


My Edits:

var Service = require('node-windows').Service;
// Create a new service object
var svc = new Service({

name:'WikiMedia Parsoid Service',
description: 'The nodejs.org example web server.',
script: 'C:\\node_modules\\parsoid\\bin\\server.js'

});

// Listen for the "install" event, which indicates the
// process is available as a service.
svc.on('install',function(){
svc.start();
});

svc.install();


But I get the error each time:

---------------------------
Windows Script Host
---------------------------
Script:    C:\Users\alacey\Desktop\TEST.vbs
Line:    1
Char:    23
Error:    Syntax error
Code:    800A03EA
Source:     Microsoft VBScript compilation error
---------------------------
OK
---------------------------


Am I missing something obvious here?

Kind regards

It says it is erroring out on character 23 of line 1. Make sure you aren't using smartquotes there and that it is just a regular, ascii apostrophe.

Also, make sure you have node-windows installed.

Let me know if neither of those fixed it.

I've retyped the characters in case copy and paste did anything and made sure node-windows by running it again in the I said above was installed with the results below,

npm install -g node-windows

+ node-windows@0.1.14

added 5 packages in 1.433s

but it still doesn't work and returns the same error message

Try the other answers from the link I gave above. One of them should work. Unfortunately, I don't have any experience with node.js running as a service under windows.

No worries, thanks for your assistance so far @MarkAHershberger, I will use the Task Scheduler on start up to run the node.exe, it runs the node.exe averagely that 34 times but not loads more it seems, so they will do as it is working.

Many thanks

Reply to "How to get Parsoid always running on Windows Server 2012 so ViaualEditor Works"

## Mediawiki 1.23.3 site not working

2

Hi,

We had used mediawiki 1.23.3 and we have stopped using it for sometime now. But when i tried to use the site recently it's not working as expected. Is there any general reason that might be causing this like is this related the version of mediawiki. My mediawiki site looks like below. Even if i try to navigate any of the following links say 'main page' or 'login', it's throwing the "HTTP Error 404.0 - Not Found".

Kindly help me with this as am not able to find a reason to why it's not working properly.

---------------------------------------------------------------------------------------------------------------

### Personal tools

• 127.0.0.1
• Talk for this IP address

• Special page

### Actions

• Main page
• Recent changes
• Random page
• Help

### Tools

• Special pages
• Printable version
• Disclaimers

-----------------------------------------------------------------------------------------------------------------------------

Thanks & regards,

Sethu

Reply to "Mediawiki 1.23.3 site not working"

## Changing MathML font size to match surrounding text

2

I noticed that Wikipedia does a good job rendering formulas so that their size matches the surrounding text.

https://en.wikipedia.org/wiki/Asymptote#Vertical_asymptotes

However, a default MediaWiki install with the Math extension render formulas substantially larger than the surrounding text:

http://wiki.orthogonaldevices.com/index.php/ER-301/Limiter

How can one alter the rendered font size of MathML?

I don't have an immediate answer for your question ("How can one alter the rendered font size of MathML?") but I will point out that Wikipedia is using mathoid which is not part of the default MW install with the Math extension.

Reply to "Changing MathML font size to match surrounding text"

## Error with MobileFrontend

3
Summary by MarkAHershberger

I get this full error log version 1.29.1: Only when mobile front end is enabled:

[db99bfb7fb2c5122cb162fb4] /mediawiki-1.29.1/ MWException from line 561 of /misc/26/000/343/282/2/user/web/antimalwareprogram.co/mediawiki-1.29.1/includes/cache/localisation/LocalisationCache.php: LocalisationCache::readJSONFile: Invalid JSON file: /misc/26/000/343/282/2/user/web/antimalwareprogram.co/mediawiki-1.29.1/extensions/MobileFrontend/i18n/en.jsonBacktrace:#0 /misc/26/000/343/282/2/user/web/antimalwareprogram.co/mediawiki-1.29.1/includes/cache/localisation/LocalisationCache.php(900): LocalisationCache->readJSONFile(string)#1 /misc/26/000/343/282/2/user/web/antimalwareprogram.co/mediawiki-1.29.1/includes/cache/localisation/LocalisationCache.php(462): LocalisationCache->recache(string)#2 /misc/26/000/343/282/2/user/web/antimalwareprogram.co/mediawiki-1.29.1/includes/cache/localisation/LocalisationCache.php(379): LocalisationCache->initLanguage(string)#3 /misc/26/000/343/282/2/user/web/antimalwareprogram.co/mediawiki-1.29.1/includes/cache/localisation/LocalisationCache.php(294): LocalisationCache->loadSubitem(string, string, string)#4 /misc/26/000/343/282/2/user/web/antimalwareprogram.co/mediawiki-1.29.1/languages/Language.php(2582): LocalisationCache->getSubitem(string, string, string)#5 /misc/26/000/343/282/2/user/web/antimalwareprogram.co/mediawiki-1.29.1/includes/cache/MessageCache.php(918): Language->getMessage(string)#6 /misc/26/000/343/282/2/user/web/antimalwareprogram.co/mediawiki-1.29.1/includes/cache/MessageCache.php(873): MessageCache->getMessageForLang(Language, string, boolean, array)#7 /misc/26/000/343/282/2/user/web/antimalwareprogram.co/mediawiki-1.29.1/includes/cache/MessageCache.php(814): MessageCache->getMessageFromFallbackChain(Language, string, boolean)#8 /misc/26/000/343/282/2/user/web/antimalwareprogram.co/mediawiki-1.29.1/includes/Message.php(1257): MessageCache->get(string, boolean, Language)#9 /misc/26/000/343/282/2/user/web/antimalwareprogram.co/mediawiki-1.29.1/includes/Message.php(842): Message->fetchMessage()#10 /misc/26/000/343/282/2/user/web/antimalwareprogram.co/mediawiki-1.29.1/includes/Message.php(934): Message->toString(string)#11 /misc/26/000/343/282/2/user/web/antimalwareprogram.co/mediawiki-1.29.1/includes/title/MalformedTitleException.php(49): Message->text()#12 /misc/26/000/343/282/2/user/web/antimalwareprogram.co/mediawiki-1.29.1/includes/title/MediaWikiTitleCodec.php(312): MalformedTitleException->__construct(string, string)#13 /misc/26/000/343/282/2/user/web/antimalwareprogram.co/mediawiki-1.29.1/includes/Title.php(3415): MediaWikiTitleCodec->splitTitleString(string, integer)#14 /misc/26/000/343/282/2/user/web/antimalwareprogram.co/mediawiki-1.29.1/includes/Title.php(355): Title->secureAndSplit()#15 /misc/26/000/343/282/2/user/web/antimalwareprogram.co/mediawiki-1.29.1/includes/MediaWiki.php(84): Title::newFromURL(NULL)#16 /misc/26/000/343/282/2/user/web/antimalwareprogram.co/mediawiki-1.29.1/includes/MediaWiki.php(140): MediaWiki->parseTitle()#17 /misc/26/000/343/282/2/user/web/antimalwareprogram.co/mediawiki-1.29.1/includes/MediaWiki.php(777): MediaWiki->getTitle()#18 /misc/26/000/343/282/2/user/web/antimalwareprogram.co/mediawiki-1.29.1/includes/MediaWiki.php(523): MediaWiki->main()#19 /misc/26/000/343/282/2/user/web/antimalwareprogram.co/mediawiki-1.29.1/index.php(43): MediaWiki->run()#20 {main}


The problem is a corrupted en.json file. You can see this from this bit of the message:

Invalid JSON file: .../extensions/MobileFrontend/i18n/en.json


Thank you! It works now!

## Mediawiki installation not getting launched

2

when i access this link on browser,

it just shows the php text and php is not getting executed.

http://localhost:8080/mediawiki/mw-config/index.php

Hi! In that case your webserver is not configured properly. Have a look at http://php.net/manual/en/install.php

Reply to "Mediawiki installation not getting launched"

2

Is there anyway to link an internal link where it bring me straight to the pdf file, instead of the page that contains the link of the pdf file? i have tried: file:MynewFile.pdf

But it brings me to the page that has the MynewFile.pdf.

## No My Watchlist showing up for non admin user

2

I am struggling in letting the non admin users to see and manage their watchlists.

If I log on with non admin users, I can see only two buttons on the upper right corner, one is the username and another is Log out. There is no My Watchlist and other buttons. If I click the username, it will display a page showing Permission Error. Accessing https://puls.calamp.com/wiki/special:watchlist directly also display Permission Error.

Admin users don't have this issue.

How can I fix the problem? Thanks.

What are the settings for wgGroupPermissions?

 \$wgGroupPermissions['user']['editmywatchlist']= true;

to your LocalSettings.php does that help?

## Migration of 1000 files from sharepoint to mediawiki.

3

we have to migrate 1000 files from sharepint to mediawiki as content(like wiki page) not as link.

Is there any way to do this?

Moreover file format may be pdf,ppt,excel and docx.

So need to do migration in bulk in mediawiki as automated process.

If you want to upload all those files I recommend using the ImportImages.php maintenance script of MediaWiki. Be aware that MediaWiki does not allow the creation of sub directories within its file repo. In a first step you will need to fetch the files from SharePoint and put them all into one directory. You might have to resolve naming conflicts, e.g. "sharepoint/Website1/Lib/Some_File.docx" --> "mediawiki/Website1_Lib_Some_File.docx", "sharepoint/Website2/Lib/Some_File.docx" --> "mediawiki/Website2_Lib_Some_File.docx"

If you want to actually convert the files to wiki pages you might want to hire someone. See Professional_development_and_consulting.

This comment was hidden by MacFan4000 (history)