Project:Support desk

About this board

Welcome to the MediaWiki Support desk. This is a place where you can ask any questions you have about installing, using or administrating the MediaWiki software.

(Read this message in a different language)

See also

Before you post

Post a new question

  1. To help us answer your questions, please indicate which version of MediaWiki you are using, as found on your wiki's Special:Version page:
  2. If possible, add $wgShowExceptionDetails = true;error_reporting( -1 );ini_set( 'display_errors', 1 ); to LocalSettings.php in order to make MediaWiki show more detailed error messages.
  3. Please include the web address (URL) to your wiki if possible. It's often easier for us to identify the source of the problem if we can see the error directly.
  4. To start a new thread, click the box with the text "Start a new topic".

Need Help with URL Customization: Eliminating /main_page Redirection and Designing a Wikipedia-style Dashboard on mydomain.com

1
Davisvawiz (talkcontribs)

Hello! Kindly help me customize the URL from 'mydomain.com/main_page' to 'mydomain.com' so that the home page does not redirect to 'main_page'. I would like to create a dashboard similar to Wikipedia on the home page. I have already used the code '$wgArticlePath = "/$1";' which helped customize the URLs, but the home page URL, which is supposed to be 'mydomain.com', is automatically redirecting to 'mydomain.com/main_page'. How can I modify the configuration to achieve the desired setup? Thank you!

Reply to "Need Help with URL Customization: Eliminating /main_page Redirection and Designing a Wikipedia-style Dashboard on mydomain.com"

Protect for admin only

3
Davisvawiz (talkcontribs)

Hello, i kindly request you to help me protect some of my pages like home page and privacy policy to be only editable by admins only. i used this code

$wgNamespaceProtection[NS_MAIN] = ['sysop'];

$wgGroupPermissions['sysop']['edit'] = false;

in my local setting php and it locked me for editing anything that is already in the site.

this code does not work either

$wgFlaggedRevsProtection = array('sysop' => true);

kindly help.

Rgds

Davis Wanyonyi

TheDJ (talkcontribs)
Davisvawiz (talkcontribs)

Thank You!!!!

Reply to "Protect for admin only"

Internal links showing redirect destination, how to disable?

4
Summary by JeremiPlazas

That worked for anyone who's wondering. The DisplayTitle extension ends up by default following the redirects for internal links. If you don't want this behavior, for 1.39 and up you need to set

$wgDisplayTitleFollowRedirects = false;

Thanks for the help!

JeremiPlazas (talkcontribs)

Hi all,

We've just upgraded our wikis from 1.35 to 1.39. I've noticed that internal links now behave differently.

Let's say we have a page containing a person's information: People/Patrul Rinpoche

We have some redirects setup for that page including the page: Patrul Rinpoche

Now when referencing that page on other pages, we'd like to just write: [[Patrul Rinpoche]] and have it stay that way, showing the link without the People/ part. But it automatically changes the text of the link to People/Patrul Rinpoche.

Any way to prevent that behavior?

Thanks in advance!

Bawolff (talkcontribs)

That's odd. That is not something mediawiki does. Do you have any extensions installed that might affect that. (E.g. maybe displaytitle extension might affect that, not sure)

JeremiPlazas (talkcontribs)

Oh interesting. It happened recently, we assumed it was core but it was maybe one of the extension updates that did it. Thanks!

JeremiPlazas (talkcontribs)

That worked for anyone who's wondering. The DisplayTitle extension ends up by default following the redirects for internal links. If you don't want this behavior, for 1.39 and up you need to set

$wgDisplayTitleFollowRedirects = false;

Thanks for the help!

I would like to post an article that is to be checked, vetted , then posted as a due contribution to cryptography, encryption, and mathematics

2
Marcus .a madison (talkcontribs)

Any african Americans interested in posting on this topic with content created prior to the year2020, January. I will be posting within the next 24. Hours in the event of an absence of contributors on this topic from the african american community.10:53 pm.2024 april.

TheDJ (talkcontribs)

This is not a place for posting articles.

Reply to "I would like to post an article that is to be checked, vetted , then posted as a due contribution to cryptography, encryption, and mathematics"
Shb06202 (talkcontribs)

I want to make it so that only logged-in users can download the files I uploaded on MediaWiki. How can I do that?

Reply to "download permission"

Error: Table 'flow_revision' doesn't exist in ContributionsQuery

3
Davisvawiz (talkcontribs)

How do i fix this

Deprecated: Caller from MediaWiki\Revision\RevisionStore::getRevisionSizes ignored an error originally raised from Flow\Formatter\ContributionsQuery::queryRevisions: [1146] Table 'path_wiki.flow_revision' doesn't exist in /home/path/public_html/mydomain.com/includes/debug/MWDebug.php on line 386

Bawolff (talkcontribs)

Either disable the flow extension, or make sure that all its tables are created (presumably with update.php)

Davisvawiz (talkcontribs)

i removed the extension and the error was gone. Thank you!

Reply to "Error: Table 'flow_revision' doesn't exist in ContributionsQuery"
179.190.246.0 (talkcontribs)

Im creating a table, it has values and color associated with each value like:

{| class="wikitable"

| style="background-color:#fcff2f;" | 1

| style="background-color:#67fd9a;" | 2

| style="background-color:#34cdf9;" | 3

| style="background-color:#34cdf9;" | 3

| style="background-color:#67fd9a;" | 2

| style="background-color:#fcff2f;" | 1

| style="background-color:#fcff2f;" 1

| style="background-color:#34cdf9;" | 3

| style="background-color:#67fd9a;" | 2

|}

There is a way to create "macro" variables or something like that to store the style, so i can store color value and change it only one time. the way im doing now is changing manualy each value. im looking to a way like this:


variable yellow-> style="background-color:#fcff2f;"

variable green-> style="background-color:#67fd9a;"

variable blue-> style="background-color:#34cdf9;"

{| class="wikitable"

| yellow | 1

| green | 2

| blue | 3

etc...

|}

Reply to "Help with classes"

How to make infobox sections not appear if not filled?

3
Tang Empire (talkcontribs)

I am using MediaWiki version 1.41.1, and I added a infobox template. My problem is, whenever a section is not filled with text, it will still appear but blank, (but I want it to be not visible completely). I have figured out a bit, but still cannot get the full picture. Here is a wiki page of mine for reference and code: Germany - Heterodontosaurus Balls (heterodontosaurus-balls.com)

All help is appreciated greatly ❤️

Bawolff (talkcontribs)
Tang Empire (talkcontribs)
Reply to "How to make infobox sections not appear if not filled?"
Cindymetzdowey (talkcontribs)

I just wanted to say thank you for all the years you have been providing me/us/the community with so much valid information. I have been using Wikipedia for years to gain information on education, receive knowledge, no how, history, music artists, movie artists and so so much more. This is a brilliant site and I hope you continue all the hard work you put into this page, it is magnificent. I actually just read up on the Georgia Guidestones, very interesting article. Thank you, thank you, thank you for your information,. Blessings.

Reply to "Thank you"

Question about file types and user rights

3
89.108.148.55 (talkcontribs)

Is there a way to assign the rights to upload different types based on the user group?

For example to let "user" can only upload .jpg while "sysop" can upload .jpg and .pdf

Can I do something like this in the LocalSettings.php?

Bawolff (talkcontribs)
170.211.126.186 (talkcontribs)

I was wondering the same but except for “defaultuser” to view webpages normally and “defaultadmin” to be able to edit the webpage after a login via a login Ul panel that if “defaultadmin” logs into, it puts it in a user action log and gives the permissions temporarily until the “defaultadmin” logs out or closes the webpage with a browser cookie to store the permissions until the browser (or webpage) is closed.

Reply to "Question about file types and user rights"