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".
Anna Varona (talkcontribs)

I went to the link and made a mistake clicking on my country instead of the 'categories' and uploaded my entries there. How do I know if my photos were entered in the competition?

Malyacko (talkcontribs)

Hi Anna, iIf there is some "Wikiscience competition" somewhere then you'll have to go to that somewhere and bring up your question there. It is not a competition on mediawiki.org, I am afraid. :)

This comment was hidden by AKlapper (WMF) (history)
Reply to "Wikiscience competition"

Access Denied Error when VisualEditor is enabled

3
74.81.182.2 (talkcontribs)

I Know this is really vague, but I am honestly not sure what data would be useful.

I have a working 1.27.4 installation, that I am trying to add VisualEditor to. I 've found a few guides online and have followed them and whenever I add the 'VisualEditor' piece to my LocalSettings.php file I see a 403 Access Denied error when I try to access my wiki by IP address. If I try to access a specific page (ie.e. not just the home page) I get a 500 Error.

I can comment out hte visual editor piece in the LocalSettings.php doc and everythign starts working again, and I CAN access parsoid through IP:8000

Any assistance would be appreciated.

AhmadF.Cheema (talkcontribs)

Appears to be hosting issue.

You server logs should detail the reasons for the 500 errors. Could be due to file permissions problems.

This comment was hidden by AKlapper (WMF) (history)
Reply to "Access Denied Error when VisualEditor is enabled"
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

Reply to "create a download link"
MAzZY (talkcontribs)

Hi team!

I have installed local wiki just for my team and now I want to remove license messages from upload box.

How can I remove this box? See screenshot

https://imgur.com/a/HBkKI

Bttfvgo (talkcontribs)

Hi MAzZY! You can change the text displayed by editing the contents of MediaWiki:Copyrightwarning.

Bawolff (talkcontribs)

In general, if you're not sure how to edit anything in the interface, add ?uselang=qqx (or &uselang=qqx) to the url, and mediawiki will show what pages in the MediaWiki: namespace controls what bit of the interface.

Bttfvgo (talkcontribs)

Super cool!!!

MAzZY (talkcontribs)

Unfortunately nothing of this doesn't help. I still see this text and checkbox

How can I _completely_ remove it?

This comment was hidden by AKlapper (WMF) (history)
This comment was hidden by AKlapper (WMF) (history)
Bttfvgo (talkcontribs)

It might be easier if you can provide a link to your wiki. That'll help us track down the page pulling in the checkbox. Not all wikis come with that option.

Bttfvgo (talkcontribs)

This was submitted as a bug a year ago but it doesn't seem to have been resolved: https://phabricator.wikimedia.org/T140068

Bttfvgo (talkcontribs)

This link looks promising: https://www.mediawiki.org/wiki/Upload_dialog

Reply to "Remove license messages"
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)
Reply to "Upload TXT file"
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

Reply to "Auto login with Username and Password"
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?

Reply to "Fatal exception of type "TypeError""
Baruchgu (talkcontribs)

Hi, I'd like to migrate my wiki DB from old server to new one

old: CentOS 5, MySQL Distrib 5.1.30, for pc-linux-gnu (i686), MediaWiki 1.17

new CentOS 7, MySQL Distrib 5.5.56-MariaDB, for Linux (x86_64), MediaWiki 1.29.2

I ran on old server: mysqldump -u root -pxxx DB > DB.dump.sql

on new : mysql -u root -pxxx -D DB < DB.dump.sql ; withour errors and warnings!

And the Wiki system was down - present some XML or SQL errors.

I succeed to restore the original DB from older backup.

Any suggestions, please!?

Baruchgu (talkcontribs)

Added and $wgShowDBErrorBacktrace = true;

see an see Error: 1054 Unknown column 'page_links_updated' in 'field list'

Ciencia Al Poder (talkcontribs)

You have upgraded MediaWiki, so you need to Manual:Upgrading#Run the update script

Baruchgu (talkcontribs)

No. I installed new MediWiki on new server from scratch. If I still need update script ?

Ciencia Al Poder (talkcontribs)

You UPGRADED from MediaWiki 1.17 to MediaWiki 1.29.2, so yes, you need to run the update script!

Malyacko (talkcontribs)

New versions = new database schemes. Yes, obviously.

Baruchgu (talkcontribs)

also Error: 1054 Unknown column 'page_content_model' in 'field list'

Baruchgu (talkcontribs)

After run php update.php and restore again I got

Error: 1054 Unknown column 'ug_expiry' in 'field list'

Baruchgu (talkcontribs)

Rerun php update.php solved the issue! Thanks ALL!

212.204.84.138 (talkcontribs)

Referring to the document:

Manual:Upgrading

It is suggested that you can back up a MySQL database using the command:

mysqldump --user=wikidb_user --password=wikidb_userpassword wikidb > file.sql

but this isn't entirely accurate. This will not preserve the name of the database name of the wiki. A more robust backup would be:

mysqldump --user=wikidb_user --password=wikidb_userpassword --databases wikidb > file.sql

which tells mysqldump to also include a CREATE DATABASE clause as the first step in the script. Why on earth does the documentation suggest this method?

星耀晨曦 (talkcontribs)

You can edit the document.

212.204.84.138 (talkcontribs)

Well yes (assuming I have edit privileges, which I don't), but the final question is why on earth does the documentation suggest this method. I could gain privileges and start an edit war, but I'm too busy to play that way.

Malyacko (talkcontribs)

Why does software have bugs? Because nobody found and fixed them yet.

But why on earth do you expect to start an edit war by improving docs? This is mediawiki.org.

星耀晨曦 (talkcontribs)

Why this site will have edit war?

2001:16B8:1083:A400:10F1:ADBA:4A02:FA6E (talkcontribs)

He obviously is not convinced of his idea. At least he makes it sound that way.

212.204.84.138 (talkcontribs)

No worries, I forget at times that I'm not in the jungle that is wikipedia where tribal territories can be easily crossed. I probably should get an account, I've participated here enough over the years, I think I'm due for it.

Reply to "Better method for backing up the wiki."

Upgrade from 1.27.1 to 1.30.0 gives me a white screen for a home page.

5
212.204.84.138 (talkcontribs)

Yes, I tested the upgrade with a cloned version of my wiki on localhost and have backups too.

I followed the Upgrading portion of the web documentation fairly faithfully. I ran maintenance/runJobs.php and maintenance/update.php with Apache2 enabled.

Why is this? The Upgrading page mentions nothing of a white page instead of a wiki...

212.204.84.138 (talkcontribs)

Hang on... After I typed this, I look over and see the login screen for the wiki. There is obviously a terrible lag issue.

星耀晨曦 (talkcontribs)

May be a fatal error occurred while running MW but you did not enable display_error option in php.ini, causing the browser to provide a blank page.

Malyacko (talkcontribs)

See Manual:Errors and symptoms#You see a Blank Page

212.204.84.138 (talkcontribs)

Thank you very much. Can one of the 'annointed' please add this link to the upgrading page? I think it would be a value to future readers

Reply to "Upgrade from 1.27.1 to 1.30.0 gives me a white screen for a home page."