Hello, how can I activate to upload and "txt" file to my wiki? Thank you.
Upload TXT file
Please note that allowing txt files (and basically any kind of text files) is a potential security problem for the users of your wiki.
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.
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?
I upload on my wiki file.txt and receive that message
I add to "LocalSettings.php" "$wgVerifyMimeType = false;", but anyway I ca not upload txt file.
Remove license messages
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
Hi MAzZY! You can change the text displayed by editing the contents of MediaWiki:Copyrightwarning.
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.
Unfortunately nothing of this doesn't help. I still see this text and checkbox
How can I _completely_ remove it?
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.
This was submitted as a bug a year ago but it doesn't seem to have been resolved: https://phabricator.wikimedia.org/T140068
Access Denied Error when VisualEditor is enabled
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.
Auto login with Username and Password
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
Fatal exception of type "TypeError"
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
#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)
The mw-config web upgrade shows that it completed the upgrade successfully, but I can't reach any pages. Any ideas?
Restore from old server
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!?
Added and $wgShowDBErrorBacktrace = true;
see an see Error: 1054 Unknown column 'page_links_updated' in 'field list'
You have upgraded MediaWiki, so you need to Manual:Upgrading#Run the update script
You UPGRADED from MediaWiki 1.17 to MediaWiki 1.29.2, so yes, you need to run the update script!
New versions = new database schemes. Yes, obviously.
also Error: 1054 Unknown column 'page_content_model' in 'field list'
After run php update.php and restore again I got
Error: 1054 Unknown column 'ug_expiry' in 'field list'
Rerun php update.php solved the issue! Thanks ALL!
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?
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. :)
Better method for backing up the wiki.
Referring to the document:
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?
You can edit the document.
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.
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.
Why this site will have edit war?
He obviously is not convinced of his idea. At least he makes it sound that way.
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.
Upgrade from 1.27.1 to 1.30.0 gives me a white screen for a home page.
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...
Hang on... After I typed this, I look over and see the login screen for the wiki. There is obviously a terrible lag issue.
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.
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
A Whole Lot Of Missing Kit Numbers
As I scroll down the one to many kits with the generation column in numerical order, I noticed the generation column ends at 4.9, name of Daniel. I then reverse the generation numerical order column to see the second part of the kit numbers, but I am not getting all the numbers. There are a whole lot of missing kit numbers in between forward and reverse scroll.
Viewing in forward scroll, with the generation column in forward numerical order, I see generations 1 through 4.9 (Daniel). I then reverse the generation numerical order and see 7.4 through 5.7 (Helen Mejia). I am not able to see the continuation of the generation column numerical order 4.9 to 5.7.
I am not aware of cousin matches that may fall in this gray area. Can you please take a look and fix
This forum is specifically for MediaWiki support, and your request is unrelated to it. You will have to make your query at the relevant forum.