Project:Support desk

Jump to: navigation, search

About this board

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, mwusers (unofficial forum) 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".

Hire someone to customize Media Wiki for me

2
MichaelSel (talkcontribs)

Hello,

I was wondering if there's a service available (or maybe an individual) that can help me setup a Media Wiki with custom Special Pages and all that?

My PHP is existent, and I am struggling to get what I need out of Media Wiki.

Thanks!

Best

Michael

AhmadF.Cheema (talkcontribs)

See Professional development and consulting#Individual professional developers and consultants.

Reply to "Hire someone to customize Media Wiki for me"

PHP Warning: posix_uname() has been disabled for security reasons in /includes/GlobalFunctions.php on line 1496

1
2A04:2413:8300:8480:4C8A:204B:9AD4:1FFF (talkcontribs)

PHP Warning: posix_uname() has been disabled for security reasons in /includes/GlobalFunctions.php on line 1496

Is the following fix safe/ok?

/includes/GlobalFunctions.php

put

if ( function_exists( 'posix_uname' ) ) {

// This function not present on Windows

$uname = /*posix_uname()*/ false;

} else {

instead of

if ( function_exists( 'posix_uname' ) ) {

// This function not present on Windows

$uname = posix_uname();

} else {

Reply to "PHP Warning: posix_uname() has been disabled for security reasons in /includes/GlobalFunctions.php on line 1496"
Emircan Yıldızoğlu (talkcontribs)

.

Reply to "."
QW-IT (talkcontribs)

I upgraded from 1.29.2 and my home page shows the above error. When adding $wgShowExceptionDetails = true; to LocalSettings.php it shows:

[WjJJfceL4-oH1A7c06pIeQAAAEs] index.php?title=Main_Page TypeError from line 4711 of /home/../includes/parser/Parser.php: Argument 2 passed to Parser::setHook() must be callable, string given, called in /home/../includes/StubObject.php on line 111

Backtrace:

#0 /home/../includes/StubObject.php(111): Parser->setHook(string, string)

#1 /home/../includes/StubObject.php(137): StubObject->_call(string, array)

#2 /home/../LocalSettings.php(181): StubObject->__call(string, array)

#3 /home/../includes/Setup.php(855): wfMathtag()

#4 /home/../includes/WebStart.php(114): require_once(string)

#5 /home/../index.php(40): require(string)

#6 {main}

The mw-config web upgrade shows that it completed the upgrade successfully, but I can't reach any pages. Any ideas?

Ciencia Al Poder (talkcontribs)

This looks like at least one of your installed extensions is not compatible with your MediaWiki version. When upgrading MediaWiki, be sure to upgrade your extensions as well.

Reply to "Fatal exception of type "TypeError""
Sms.keval (talkcontribs)

How can I auto login user with username and password.

For example If I hit to this URL, how wikimedia will login the user?

URL - http://localhost/mediawiki/

POST Method - username=abc&password=abc

Ciencia Al Poder (talkcontribs)

Currently you'll need 2 requests: One to get a valid login token, and a second to provide the credentials with the previous login token and session cookie. If you want to do it programmatically you should use Api:Login

Reply to "Auto login with Username and Password"
Summary by Ciencia Al Poder

Old topic, please create a new one

Rp2dph19md4hzea (talkcontribs)

Hello, how can I activate to upload and "txt" file to my wiki? Thank you.

87.123.63.39 (talkcontribs)

See Manual:Configuring_file_uploads#Configuring_file_types.

Please note that allowing txt files (and basically any kind of text files) is a potential security problem for the users of your wiki.

Rp2dph19md4hzea (talkcontribs)

Hello, I add on file LocalSettings.php

# Add new types to the existing list from DefaultSettings.php

$wgFileExtensions[] = 'txt';

But when upload TXT file on site I receive error

The file extension "..." does not correspond to its MIME-type (chemical / x-mdl-rgfile).

and upload is stooped, can you consult? Thank you.

87.123.58.10 (talkcontribs)

If you want to upload files with MIME type chemical / x-mdl-rgfile, then you will have to allow this MIME type. Does Manual:MIME type detection help?

Rp2dph19md4hzea (talkcontribs)

I upload on my wiki file.txt and receive that message

Rp2dph19md4hzea (talkcontribs)

I add to "LocalSettings.php" "$wgVerifyMimeType = false;", but anyway I ca not upload txt file.

Rp2dph19md4hzea (talkcontribs)

The problem is in TXT file encoding, I create a demo TXT file http://r.ournet.biz/1RAQ9bk and I can upload that file to my wiki, but another TXT file http://r.ournet.biz/22KgdIV I can not upload, why?

This comment was hidden by 87.123.57.206 (history)
This comment was hidden by AhmadF.Cheema (history)
Ycsoft (talkcontribs)

Hello -I am currently in version 1.25.3 on a hosted server (http://yan.clot.free.fr/wiki/index.php?title=Accueil) -I am trying to create a page where the user could click on a link to download a file. (for example, on a page dedicated to the hike, the user could download a rando.gpx file which he could then load into his GPS to view a trace) -I have an example of this type of link in mediawiki (https://www.mediawiki.org/wiki/Extension:MaintenanceShell), but I can not implement it (see my page http://yan.clot.free.fr/wiki/index.php?title=Cap_du_Dramont) -Can anyone help me ? Greetings

Ciencia Al Poder (talkcontribs)

This is not something MediaWiki can do directly, because that is a direct link to a file on the server. You should configure it on the webserver.

I see the .gpx file is served with Content-Type: text/plain. You probably want to tell the webserver (apache, apparently), to serve it with an appropriate content-type, which apparently should be "application/gpx+xml". See this little guide that I found: http://www.htaccess-guide.com/adding-mime-types/

With this change, normally the browser won't understand how to open that type of file and offer it for download directly.

Reply to "create a download link"
Paulo.adrp (talkcontribs)

Hello everyone, good morning.

I recently installed MediaWiki Software on my localhost for testicles. I'd like to know more stuff before activating it on my site.

1ª I would like to know how I can edit the template of my MediaWiki, and I speak the tags in HTML, I can not find, where it is. I want to add some things on the homepage and login and on other pages as well. I'm using the MonoBook theme.

2ª I would also like to know where I can edit the CSS of my theme.

3ª I would like to know if it is possible to put the same editor as the Wikipedia encyclopedia.

Thank you in advance.

Ciencia Al Poder (talkcontribs)
  1. You should be more specific about what do you want to do. The "main page" is a page like any other, you can edit it. If you want to add something to the existing interface, there are some Hooks you can use to add specific HTML to certain places. Editing the existing PHP files is generally discouraged.
  2. See Manual:Interface/Stylesheets
  3. See Extension:VisualEditor
Reply to "Edit MediaWiki HTML and CSS template"
190.140.177.39 (talkcontribs)

Hi. Do I need server access in order to install VisualEditor?

AhmadF.Cheema (talkcontribs)

To run the required parsoid service, you will need SSH access (unless your hosting provider can install and run it for you).

OR you could try using VisualEditor/Installation on a shared host option which will limit the editor use, but wouldn't require "server access" on your host.

This comment was hidden by AhmadF.Cheema (history)
Reply to "Visual Editor"
Summary by AhmadF.Cheema

Missed removing .catlinks { display: none; } from MediaWiki:Common.css.

SeventhDragonMercur (talkcontribs)

I have a following problem: My categorys are not shown at the bottom of my pages, why is this and how do I fix this?

SeventhDragonMercur (talkcontribs)

I fixed it. Somehow there where ".catlinks { display: none; }" in the common.css by default