The Wayback Machine - https://web.archive.org/web/20160325120214/https://www.mediawiki.org/wiki/Project:Support_desk

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 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".

حيدر محمد علي

By clicking "Add topic", you agree to our Terms of Use and agree to irrevocably release your text under the CC BY-SA 3.0 License and GFDL
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?

Reply to "Upload TXT file"
Ssquma (talkcontribs)

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)."

Reply to "wikibase retorna un valor nulo"

Embeded videos in MultimediaViewer extension

3
Innosflew (talkcontribs)

Could it be possible somehow to embed videos(e.g. YouTube videos, Vimeo videos etc.) in the Multimedia Viewer similarly to Wikia?

Malyacko (talkcontribs)

If someone writes the code to connect/embed Extension:TimedMediaHandler...

Innosflew (talkcontribs)

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.

Reply to "Embeded videos in MultimediaViewer extension"
Yanpas (talkcontribs)

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?

121.219.12.53 (talkcontribs)

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.

Reply to "Pausing GIFs"
Iantresman (talkcontribs)

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?

Reply to "Embedding 3rd-party images"
Iantresman (talkcontribs)

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?

Ciencia Al Poder (talkcontribs)

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

Iantresman (talkcontribs)

Found it! (The Wikitext Editor). It's the " " bottom right. Thank you

Reply to "Removing editor formatting"
2A02:810D:85C0:D44:71C1:6421:51CB:97E0 (talkcontribs)

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?

TheDJ (talkcontribs)

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.

2A02:810D:85C0:D44:71C1:6421:51CB:97E0 (talkcontribs)

Okay, thank you. I can not look something like this at my provider or i do not know where. My Provider is "Strato".

2A02:810D:85C0:D44:71C1:6421:51CB:97E0 (talkcontribs)

Should i downgrade the wiki?

87.123.63.39 (talkcontribs)

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).

2A02:810D:85C0:D44:71C1:6421:51CB:97E0 (talkcontribs)

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

87.123.63.39 (talkcontribs)

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.

2A02:810D:85C0:D44:2542:BD9:B9B0:7C85 (talkcontribs)

for testing I have deleted the Confirm Account text in the Local Settings. Now i have this...

87.123.23.242 (talkcontribs)

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.

2A02:810D:85C0:D44:B00D:5CE9:D57F:A258 (talkcontribs)

Thanks for your replay. I dont have a StartProfiler.php file in my MediaWiki installation. Only a StartProfiler.sample

87.123.23.242 (talkcontribs)

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.

2A02:810D:85C0:D44:90C7:22DA:1924:419F (talkcontribs)

I was looking in this file but i don't find something like that

2A02:810D:85C0:D44:90C7:22DA:1924:419F (talkcontribs)

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 )

);

}

}

2A02:810D:85C0:D44:297D:72FA:DB5A:2207 (talkcontribs)

No more an idea?

87.123.48.229 (talkcontribs)

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.

2A02:810D:85C0:D44:6C6E:6170:34BB:A777 (talkcontribs)

I do not know if I have activated it. Where can i see this?

2A02:810D:85C0:D44:6C6E:6170:34BB:A777 (talkcontribs)

I started the update script again and now it is completely gone. The error is still there...

2A02:810D:85C0:D44:E819:EEDF:1486:C938 (talkcontribs)

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 ;

Reply to "Nach Update leere Seite"

MediaWiki:Centralnotice-template-wm2016registrationv1

4
Renessaince (talkcontribs)

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

Malyacko (talkcontribs)

How do you expect some interface setting on some third-party website to influence your personal MediaWiki installation on your server?

Renessaince (talkcontribs)

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?

Malyacko (talkcontribs)

Sorry, I misunderstood - I thought the "installed software" section refers to your own installation.

Reply to "MediaWiki:Centralnotice-template-wm2016registrationv1"

Please document how to use 'abusefilter-revert'

1
MarcoAurelio (talkcontribs)

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.

Reply to "Please document how to use 'abusefilter-revert'"

Navigation menu

Personal tools

Variants

Views

More

In other languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.