Hello, how can I activate to upload and "txt" file to my wiki? Thank you.
Project:Support desk
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.
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.
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?
Que tal, tengo un problema, en mi instalación de mediawiki en las páginas que usan el módulo wikibase siempre me manda este error
"Error de Lua en Módulo:Ficha_de_persona en la línea 35: attempt to index field 'wikibase' (a nil value)."
Could it be possible somehow to embed videos(e.g. YouTube videos, Vimeo videos etc.) in the Multimedia Viewer similarly to Wikia?
If someone writes the code to connect/embed Extension:TimedMediaHandler...
Do you how can I use the TimedMediaHandler extension to embed YouTube and Vimeo videos and videos from other hosting services into my wiki? As far I've seen it only talks about videos that are hosted on your own server, like for example .ogg video files uploaded through the Upload File function, but I don't see a part talking about embeding videos that are hosted else where like the YouTube videos.
Reading wiki article with gif animation somewhere on the page sometimes is uncomfortable. Often GIF distracts you from text. I suggest adding play/pause JavaScript wrapper. What do you think about this? Do you find it useful? Should I open new ticket on phabricator?
It isn't possible to pause a GIF, you would have to generate a separate image of the current frame instead, which would require a fairly modern browser.
I can embed images from Wiki Commons using InstantCommons, Flikr images (with Extension:Flickrm), and videos using the Extension:YouTube, and there appears to be a number of other Category:Image_extensions.
But are there also extensions that would let me embed images from (a) Google Photos (b) Google Drive (c) Google Photospheres (d) Geograph (e) Panoramio?
When I paste text into this editing box, sometimes it appears with extra formatting such as a large font size, or bold text (because the source text has the same formatting). I see no editor "Help" link, no formatting options beyond bold/italics, no option to edit the source, and no option to paste without formatting.
How do I remove the extra formatting?
You may try switching to wikitext editor before pasting, or pasting the contents first on a text editor that doesn't support formatting, then copying again and pasting to the wiki
Hallo,
Hallo,
ich wollte mein Wiki von 1.24.1 auf 1.26.2 updaten. Ich bin nach Anleitung vorgegangen.
1. Alle Dateien und Datenbank gesichert
2. Das aktuelle Wiki hochgeladen und alle Dateien ersetzt
3. Meine alte LocalSettings.php wieder hochgeladen
4. /mw-config/index.php ausgeführt und das Upgrade gestartet.
Gleich nach dem ersten Schritt bekam ich eine weiße Seite. Nun geht nichts mehr. Weder das Wiki, noch kann ich auf die Update Seite. Immer bekomme ich eine weiße Seite. Hat jemand Rat?
A white page means that the php execution is failing. Check the logs of your http server. Probably it's a permission error or something like that.
Okay, thank you. I can not look something like this at my provider or i do not know where. My Provider is "Strato".
Should i downgrade the wiki?
Downgrades are not supported. If you have already updated the database, then a downgrade will break things. What you in this case could do, is to restore your backup from before the update.
However, have a look at blank page. There is a description on how you can get more information on the error message in your wiki! That is what I would try (instead of restoring from backup).
Thanks!
Here is the Error
Catchable fatal error: Argument 2 passed to ConfirmAccountUISetup::defineSpecialPages() must be of the type array, null given, called in /mnt/webv/d2/31/56960431/htdocs/mediawiki-1.24.1/extensions/ConfirmAccount/ConfirmAccount.php on line 50 and defined in /mnt/webv/d2/31/56960431/htdocs/mediawiki-1.24.1/extensions/ConfirmAccount/frontend/ConfirmAccountUI.setup.php on line 29
This error is caused by the ConfirmAccount extension. Please update it to the version for MediaWiki 1.26 and see, if that helps!
Generally when you do a MediaWiki update, you should also update the extensions you use.
See Manual:Upgrading#Files_remaining_that_may_cause_errors! What you now have are a few notices. These notices come from your Profiler settings. You are obviously using a TransactionProfiler. Removing the StartProfiler.php file should improve that.
Thanks for your replay. I dont have a StartProfiler.php file in my MediaWiki installation. Only a StartProfiler.sample
The sample file usually is unused. Then maybe you have profiling set up in LocalSettings.php. Search the file for the string "profil" (without "e" or "ing" at the end). That way you should find some variable definitions, e.g. $wgProfiler or similar, which might be the ones activating the TransactionProfiler.
I was looking in this file but i don't find something like that
In this File on line 304 i find this..
$by = $this->expectBy[$expect];
The complete block
$n = $this->expect[$expect];
$by = $this->expectBy[$expect];
$this->logger->info(
"[{$wgRequest->getMethod()}] Expectation ($expect <= $n) by $by not met:\n$query\n" .
wfBacktrace( true )
);
}
}
No more an idea?
Hmm, do you maybe have SQL debugging activated? TransactionProfiler makes it sound like it might get activated by that as well... I have not checked that, though.
I do not know if I have activated it. Where can i see this?
I started the update script again and now it is completely gone. The error is still there...
No one any idea?
In Firebug i see this error: "SyntaxError: missing ; before statement"
This is line 304: $by = $this->expectBy[$expect];
the last sign is a ;
Why I still see alien translation of the m:MediaWiki:Centralnotice-template-wm2016registrationv1 if I have be-tarask interface enabled both on WikiData and Meta?
Installed software: MediaWiki 1.27.0-wmf.18 (b5f0323) 23:12, 23 сакавіка 2016 HHVM 3.12.1 (srv) MariaDB 10.0.22-MariaDB-log ICU 4.8.1.1 Elasticsearch 1.7.5 LuaSandbox 2.0.12 Lua 5.1.5
How do you expect some interface setting on some third-party website to influence your personal MediaWiki installation on your server?
Who saya about personal installation. I'm just visiting WikiData and see centralnotice, which should be displayed in my interface language, but it doesn't. What's the translation intended for then?
Sorry, I misunderstood - I thought the "installed software" section refers to your own installation.
Hi,
Is there a way to get the caption of an image using the Wikimedia API?
Thanks!
Hello. I have looked for a page (Extension:AbuseFilter) where documentation wrt. using Special:AbuseFilter/revert/<filter#>, but couldn't find any. In which form we should enter the timestamp, etc. for the page to work? Thanks.

