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
158.174.9.83 (talkcontribs)

Hi,

How can I change the text appearing on the browser tab for the main page of my Wiki?

As an example, please look at the main page of Wikipedia: https://en.wikipedia.org/wiki/Main_Page

The text on the browser tab is not "Main page - Wikipedia", but instead a customized text: "Wikipedia, the free encyclopedia". How is this achieved?

Any help is highly appreciated!

158.174.9.83 (talkcontribs)

Oh, well, the title changed by itself when I added text to the main page and saved it. It changed from "Main page - Wiki Name" to just "Wiki Name" which happened to be the title that I wanted. Problem solved.

Reply to "Change browser tab title of main page"
Joshkking (talkcontribs)

Has anyone figured out a way to take the collapsible elements CSS class (that comes with mediawiki) and add an expand/collapse all function to it?

Thanks, Josh

68.119.83.109 (talkcontribs)

I felt it had been long enough to warrant a subtle bump :)

216.165.139.220 (talkcontribs)

Yes, I'd also like to see this.

Reply to "Expand All with Collapsibles?"

Upgraded to 1.29 and cannot access login page.

1
205.213.22.2 (talkcontribs)

Greetings! I just upgraded to 1.29 and can access the wiki and have been able to browse pages etc... I am unable to get to the special pages for login and account creation. I'm wondering where to start looking for troubleshooting.

Reply to "Upgraded to 1.29 and cannot access login page."
Bty0808 (talkcontribs)

Users inserted into groups created by extensions, lose the privilege after logging in. Any idea of ​​what might be happening? MW1.27.

2003:CC:ABC4:B200:B04F:35F4:C93D:A079 (talkcontribs)

It is possible to revoke group rights...

But: What exactly do you mean with "they lose their privileges"? First the user is not logged in. At that point user A is member of a group, and after user A logs in, user A no longer is member of this group?

Bty0808 (talkcontribs)

Exactly.

When user inserted to Admin and bureaucrat this not happen, but with groups created in extensions, for example, widget editor (Widget Extension), editor or reviewer or autoreviewer (FlaggedRevs Extension)

Ciencia Al Poder (talkcontribs)

Also, what extension is adding users to groups automatically?

Reply to "User groups resetting after relogin"

Controlling how blank values are displayed in a template

3
SFLord (talkcontribs)

Mediawiki Version: 1.31.0-wmf.4 (477691b)

PHP: any

Database:

A template is used in the Kabiye wiki called Ɛyaa sɔsaa which is the Kabiye Famous Persons' template. The address of the template is and the wiki address is

The signature of a famous person should only be shown if such (a signature) exists. At present, a contributor can enter a file name for a signature, but if this value is left blank, the message [[File:|190px]] is displayed which is unsatisfactory... This is the final value that is entered.

All text on the wiki is in the Kabiye language, with the exception of some French and English words, so for example the title of the Ɛyaa sɔsaa template is Modèle:Ɛyaa sɔsaa - a mixture of French & Kabiye. The Wiki went live - (came out of the incubator) about 2 months ago.

We would value any help as to how to change the template so as to only display a signature if one has been supplied. My best guess would be that some conditional statement needs to be included in the [[File: statement and have searched the existing help entries - but with no joy...

Any suggestions would be greatly valued.

I am using a Windows 7 PC and Google Chrome Version 61.0.3163.100 to update the Kabiye wikipedia.

Clump (talkcontribs)

Your use of #if is not correct. Instead of {{#if: [[File:{{{E-nesi ñɩɣʋ}}}|190px]]}}, use {{#if:{{{E-nesi ñɩɣʋ|}}}|[[File:{{{E-nesi ñɩɣʋ}}}|190px]]}}

SFLord (talkcontribs)

Clump

Thanks for your help to resolve this problem. Of course the #if conditional statement has to test for the existence of E-nesi ñɩɣʋ and then ensure that it is displayed if a value has been given.

A subsequent issue is that the Ɛyaa sɔsaa template contains 2 statements referring to the pixcel size - the first controls the image size and is the 3rd value to be added, the second is the one which is now controlled by the conditional #if statement.

We rarely, if ever, do not supply an image for a famous person, however it is frequently the case that a signature cannot be found. If an image is supplied, but no signature and the first px value is left blank, the template will by default use the px value in the final statement, but the warning:

Warning: [null Euclid] is calling Modèle:Ɛyaa sɔsaa with more than one value for the "px" parameter. Only the last value provided will be used. When previewing the page (in this case its the page to do with Euclid...) and the message:

Pages utilisant des arguments dupliqués dans les appels de modèle

is displayed, when the page is published.

The temporary resolution is to remove the first px statement from the template for those famous person pages which have no signature. I will almost certainly remove the first px statement from the Ɛyaa sɔsaa template file, but will check with the sponsor of the Kabiye wiki first.

Reply to "Controlling how blank values are displayed in a template"
Aschroet (talkcontribs)

Hi, when receiving mails from MW (e. g. when a watched page has been changed) i get only plain text mails. On installations of MW at WP, Commons, or here those mails contain clickable links. Is there an easy way to enable this feature or do i need to adapt the code for that? How is that done on WP or Commons?

Ciencia Al Poder (talkcontribs)

Try setting $wgAllowHTMLEmail, although the page says "As of MW 1.23, HTML email is not yet used by MediaWiki itself", maybe it now supports it and the page is outdated.

Aschroet (talkcontribs)

Already tried that. It did not work.

Reply to "HTML emails from mediawiki"
Evolution and evolvability (talkcontribs)

Hi! As WikiJournals expand on Wikiversity (v:WikiJMed, v:WikiJSci, v:WikiJHum), the need to format references from DOI or PMID codes is becoming more important. Is it possible to enable the Citoid extension?

TheDJ (talkcontribs)

It already is installed, as far as I understand, you just need to configure it to match the preferences of your wiki installation. Please see VisualEditor/Citation_tool and Citoid#Configure_Citoid_on_a_Citoid-enabled_wiki.

Reply to "Wikiversity Citoid"

Where can I find print.css in Skin Vector?

2
84.181.43.252 (talkcontribs)

Hi,

I use the Skin Vecrot in my MediaWiki and I want to adjust the look & feel of the print page. Where can I find the CSS to manipulate it?

Thank you very much for your feedback

TheDJ (talkcontribs)

The easiest way to adapt a stylesheet like that, is by adding stylerules to MediaWiki:Print.css of your wiki installation. These rules will then be used by all skins.

Reply to "Where can I find print.css in Skin Vector?"
Alex cmx (talkcontribs)

How can i configure the database to escape this error: 1267 Illegal mix of collations: utf8 vs cp1251?

I wanted to use cirillic symbols on the wiki.

So, when i create internal link beginnig with the letter "И" or 'и', error raises =>


[ec79bc2b15920b64df7b2aeb] /index.php?title=%D0%A1%D1%81%D1%8B%D0%BB%D0%BA%D0%B8&action=submit Wikimedia\Rdbms\DBQueryError from line 1075 of /home/htasu/hta.su/docs/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?  

Query: SELECT page_id,page_len,page_is_redirect,page_latest,page_content_model,page_namespace,page_title FROM `page` WHERE (page_namespace = '0' AND page_title = 'Интернет') 

Function: LinkHolderArray::replaceInternal

Error: 1267 Illegal mix of collations (utf8_bin,IMPLICIT) and (cp1251_general_ci,COERCIBLE) for operation '=' (htasu.mysql)

Backtrace:

#0 /home/htasu/hta.su/docs/includes/libs/rdbms/database/Database.php(933): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)

#1 /home/htasu/hta.su/docs/includes/libs/rdbms/database/Database.php(1269): Wikimedia\Rdbms\Database->query(string, string)

#2 /home/htasu/hta.su/docs/includes/parser/LinkHolderArray.php(343): Wikimedia\Rdbms\Database->select(string, array, string, string)

#3 /home/htasu/hta.su/docs/includes/parser/LinkHolderArray.php(270): LinkHolderArray->replaceInternal(string)

#4 /home/htasu/hta.su/docs/includes/parser/Parser.php(4927): LinkHolderArray->replace(string)

#5 /home/htasu/hta.su/docs/includes/parser/Parser.php(1368): Parser->replaceLinkHolders(string)

#6 /home/htasu/hta.su/docs/includes/parser/Parser.php(454): Parser->internalParseHalfParsed(string, boolean, boolean)

#7 /home/htasu/hta.su/docs/includes/content/WikitextContent.php(330): Parser->parse(string, Title, ParserOptions, boolean, boolean, NULL)

#8 /home/htasu/hta.su/docs/includes/content/AbstractContent.php(497): WikitextContent->fillParserOutput(Title, NULL, ParserOptions, boolean, ParserOutput)

#9 /home/htasu/hta.su/docs/includes/page/WikiPage.php(2071): AbstractContent->getParserOutput(Title, NULL, ParserOptions)

#10 /home/htasu/hta.su/docs/extensions/SpamBlacklist/SpamBlacklistHooks.php(37): WikiPage->prepareContentForEdit(WikitextContent)

#11 /home/htasu/hta.su/docs/includes/Hooks.php(186): SpamBlacklistHooks::filterMergedContent(RequestContext, WikitextContent, Status, string, User, boolean)

#12 /home/htasu/hta.su/docs/includes/EditPage.php(1652): Hooks::run(string, array)

#13 /home/htasu/hta.su/docs/includes/EditPage.php(2066): EditPage->runPostMergeFilters(WikitextContent, Status, User)

#14 /home/htasu/hta.su/docs/includes/EditPage.php(1493): EditPage->internalAttemptSave(NULL, boolean)

#15 /home/htasu/hta.su/docs/includes/EditPage.php(637): EditPage->attemptSave(NULL)

#16 /home/htasu/hta.su/docs/includes/actions/EditAction.php(59): EditPage->edit()

#17 /home/htasu/hta.su/docs/includes/actions/SubmitAction.php(38): EditAction->show()

#18 /home/htasu/hta.su/docs/includes/MediaWiki.php(499): SubmitAction->show()

#19 /home/htasu/hta.su/docs/includes/MediaWiki.php(293): MediaWiki->performAction(Article, Title)

#20 /home/htasu/hta.su/docs/includes/MediaWiki.php(862): MediaWiki->performRequest()

#21 /home/htasu/hta.su/docs/includes/MediaWiki.php(523): MediaWiki->main()

#22 /home/htasu/hta.su/docs/index.php(43): MediaWiki->run()

#23 {main}
MarkAHershberger (talkcontribs)

Could you give the results of "show create table page" from your database? It would also help to know your MediaWiki version, MySQL version and PHP version.

Alex cmx (talkcontribs)

php version is 5.6.6

mediawiki is 1.29.1

mySQL is mysqlnd 5.0.11

MarkAHershberger (talkcontribs)

Is this a fresh install or did you upgrade from another version? It looks like your MySQL is pretty old and should be upgraded, too.

Alex cmx (talkcontribs)

it's fresh install. I've just started experimenting in web, so i don't understand many things...

MarkAHershberger (talkcontribs)

Is this on shared hosting? Do you have access to phpMyAdmin or something similar?

Alex cmx (talkcontribs)

sorry, mysql version is 5.7.17, and yes i have access to phpMyAdmin

This comment was hidden by 2003:CC:ABCA:4500:14DA:EB6A:80B5:3D6E (history)
2003:CC:ABCA:4500:6C82:D7A8:4772:450D (talkcontribs)

Which tables and columns are using cp1251 as a collation? I think these tables and columns are problematic.

Is there only the new MediaWiki installation inside that database? Or is there also something else in it and you may be using both systems together? If it is only this new wiki, I would empty the database, then make sure the collation for new tables is utf8_general_ci and then let MediaWiki install its things into the database again.

However, I am still unsure, for why the tables had not been created with fitting collations right away. I think the installer should offer utf8 and binary only, not cp1251. utf8 and binary both are ok, but a mix with cp1251 should not be there.

This comment was hidden by Ciencia Al Poder (history)
Reply to "Configure"
2601:647:4601:BF60:FD9E:CE8E:BAE9:66C8 (talkcontribs)

Black background with white text. Rather than turning on a color invert app or something, it would be nicer to have a built in option like that.

Reply to "Can we get a dark/night mode?"