Project:Support desk

About this board

Welcome to MediaWiki.org's Support desk, where you can ask MediaWiki questions!

There are also other places where to ask :

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".
Previous page history was archived for backup purposes at Project:Support_desk/old on 2015-07-30.
 

I am getting error while I importing Space page.

4
Dev687 (talkcontribs)
Bawolff (talkcontribs)
Dev687 (talkcontribs)
Dev687 (talkcontribs)
Reply to "I am getting error while I importing Space page."
Sachinpatel393 (talkcontribs)

this error when i open some templates after import,

also Module:Documentation module installed.


Lua error in Module:Documentation at line 138: message: type error in message cfg.main-div-classes (string expected, got nil).

Backtrace:

  1. (tail call): ?
  2. [C]: in function "error"
  3. Module:Documentation:35: in function "message"
  4. Module:Documentation:138: ?
  5. (tail call): ?
  6. mw.lua:511: ?
  7. (tail call): ?
  8. [C]: in function "xpcall"
  9. MWServer.lua:99: in function "handleCall"
  10. MWServer.lua:313: in function "dispatch"
  11. MWServer.lua:52: in function "execute"
  12. mw_main.lua:7: in main chunk
  13. [C]: ?

let me know how can i go ahead.


thanks

MarkAHershberger (talkcontribs)

Where are you seeing the error?

Bawolff (talkcontribs)

it means something is wrong with Module:Documentation/config (missing main-div-classes, although it does have main-div-class)

Sachinpatel393 (talkcontribs)
TiltedCerebellum (talkcontribs)

I think they are asking for a URL, so they can see the problem themselves and look at the software version, php version, mysql version as stated people should post at the top-right of this support page to include. Very tough to help anyone without this information.

MarkAHershberger (talkcontribs)
MarkAHershberger (talkcontribs)

@Sachinpatel393 on this page you need to insert

cfg['main-div-classes'] = 'template-documentation iezoomfix'

or change

cfg['main-div-class'] = 'ts-doc-doc'

to

cfg['main-div-classes'] = 'ts-doc-doc'
Sachinpatel393 (talkcontribs)

@TiltedCerebellum

version used:

Mediawiki : 1.34.2

mysql: Ver 15.1 Distrib 10.3.17-MariaDB, for Linux (x86_64) using readline 5.1

php: PHP 7.3.22 (cli) (built: Sep 1 2020 09:44:58) ( NTS )

OS: centos 8 hosting with nginx.


hello @MarkAHershberger


tried your above solution with one time change that one time to your given,


and one time rechange back to old then add/insert your given line.


but seems nothing changed yet.


still seems getting errors for most of templates:

here are two examples:


https://blackwiki.org/index.php?title=Template:Cite_book

https://blackwiki.org/index.php?title=Template:Cite_web


let me know if any way to fix this.

Thanks

MarkAHershberger (talkcontribs)

The message is different now. It is complaining about a different missing setting: view-link-display

On Wikipedia's version of Module:Documentation/config, you can see this:

-- cfg['view-link-display']
-- The text to display for "view" links.
cfg['view-link-display'] = 'view'

You should put something similar in your own config page.

Reply to "getting this issue script error"

Suggestion: Exclusion search filters

1
79.249.157.65 (talkcontribs)

I suggest a feature for the revision history viewer that allows excluding selected tags.

I am not sure if this is already possible somehow. I looked inside Help:User contributions and some more pages, but could not find any way to exclude it.

Reply to "Suggestion: Exclusion search filters"

Good place to ask general questions

11
RIT RAJARSHI (talkcontribs)

I have too many "general questions" about MediaWiki software (not exactly support related questions). What is a good place to ask these questions?

PS. I have tried the unofficial MediaWiki forum https://mwusers.org/ that I obtained from Communication/ but it appears frozen :(

~~~~

Ammarpad (talkcontribs)

It would be good to read Manual:FAQ entirely first. Then also look for all the resources in Project:Help. If after all that something specific is not clear please ask about it here.

RIT RAJARSHI (talkcontribs)
RIT RAJARSHI (talkcontribs)

1. Which operating system I need to use MediaWiki software?

Does it work with Windows or Linux or Both? Is there any difference in Installation method in different OS?

Can I use MediaWiki itself as an Operating system?

2. Can I tell each Wiki pages a "file"?

Just like .DOCX file or .XML file or .HTML file, can I tell an wiki page (or its revision permalinks) a file? What extension name is used by these files?

3. Can I use MediaWiki software for Offline applications?

Such as Document processing software like Microsoft Office? Or for making offline Quiz or exam sheets? Or writing a Book with chapters and subchapters and inter-chapter hyperlinks etc.

4. How the WikiCode is interpreted into Machine Language?

How the computer knows the meaning of angular brackets, curly brackets etc commands and syntax?

5. How the Wiki markup input is converted into a Browser-readable (HTML?) output?

And also, which Wikimarkup input gives what Browser-readable (HTML?) outputs?

6. What are differences between PHP and Wiki Markup?

If they are different, then how WikiCodes are converted into PHP?

7. Is there automated installation files?

Such as .EXE files (Windows) or .MSI (Windows) or .APK (android) installation files that can install MediaWiki into my computer?

8. What desktop applications/ mobile applications are available that uses MediaWiki?

Is there any desktop applications or Mobile applications that uses MediaWiki?


I have many more questions I am not sure where I should ask them.

MarkAHershberger (talkcontribs)
RIT RAJARSHI (talkcontribs)
MarkAHershberger (talkcontribs)

1. Which operating system I need to use MediaWiki software? Does it work with Windows or Linux or Both?

Many people run MediaWiki under Windows, but the primary target is Linux. Patches to make the system work better in Windows are accepted.


Is there any difference in Installation method in different OS?

Not really. I mean, there is Running MediaWiki on Windows, but I didn't use it this past year when I set up MediaWiki for a client on Windows.


Can I use MediaWiki itself as an Operating system?

No.


2. Can I tell each Wiki pages a "file"?

In MediaWiki, wiki pages are entries in the database, not files on disk. If you want files on disk you can use other wiki software or the git remote for MediaWiki.


3. Can I use MediaWiki software for Offline applications? Such as Document processing software like Microsoft Office? Or for making offline Quiz or exam sheets? Or writing a Book with chapters and subchapters and inter-chapter hyperlinks etc.

Sure, some people run MediaWiki on the computer as a tool to do any of these things. I mean it is possible, but if you want to write a book, other tools are better.


4. How the WikiCode is interpreted into Machine Language? How the computer knows the meaning of angular brackets, curly brackets etc commands and syntax?

5. How the Wiki markup input is converted into a Browser-readable (HTML?) output? And also, which Wikimarkup input gives what Browser-readable (HTML?) outputs?

See Parsoid and related pages.


6. What are differences between PHP and Wiki Markup? If they are different, then how WikiCodes are converted into PHP?

PHP is a computer language. Wikitext is a markup language. For an explanation of the differences, see this Stack Overflow question: Programming Language vs Markup Language vs Scripting Language


7. Is there automated installation files? Such as .EXE files (Windows) or .MSI (Windows) or .APK (android) installation files that can install MediaWiki into my computer?

There is no stand-alone installer for MediaWiki. It relies on PHP already being installed.


8. What desktop applications/ mobile applications are available that uses MediaWiki? Is there any desktop applications or Mobile applications that uses MediaWiki?

It isn't clear what you mean by "use". If you mean "work with" and not "runs on", then there are several such as the Wikimedia apps.
RIT RAJARSHI (talkcontribs)

Thank you extremely @MarkAHershberger for your detailed answer. And very satisfactory.

I learnt many interesting things.

RIT RAJARSHI (talkcontribs)

Is it possible to use MediaWiki software without knowledge of PHP?

MarkAHershberger (talkcontribs)

You can use a mediawiki installation without knowing PHP. This site is running MediaWiki and you're using it right now. It is even possible to install MediaWiki without knowing PHP. But knowing PHP helps.

RIT RAJARSHI (talkcontribs)

Okay thanks then I will try to install and learn the MediaWiki software. Thank you so much.

Reply to "Good place to ask general questions"

Customize the name of the talk pages in the tab

2
Sokote zaman (talkcontribs)

Hello

Good time

How can I customize the name of the talk pages for each page?

I mean the talk pages next to the logo

thanks

MarkAHershberger (talkcontribs)

It isn't clear what you mean. Could you be more specific?

Reply to "Customize the name of the talk pages in the tab"

migration MediaWiki to a new server, but don't know how to change the old configuation

4
96.45.36.254 (talkcontribs)

Hi,


The MediaWiki 1.30 was run on the Synology, and it had been migrated to 1.31 in a CentOS 8.

The MariaDB and new pages are good. However, there are 2 links don't work because the links use old /MedaiWiki directory, but the new directory is /mediawiki31. Please check the pic.


I think the information may be stored in the DB, how to change it to the correct directory?


screen shot https://www.dropbox.com/s/lpvlslbp03o7004/mediawiki_link_config.png?dl=0


thank you,


Bruce

Bawolff (talkcontribs)
96.45.36.254 (talkcontribs)

hi Bawolff,


Thank you so much for your help.


However, I did not know the admin password, and the email is not correct.


How to reset the admin's password?


Thank you,


Bruce

Ammarpad (talkcontribs)
Reply to "migration MediaWiki to a new server, but don't know how to change the old configuation"

Close access pages, not namespace

2
Sokote zaman (talkcontribs)

Hello

Good time

I want to block access to a series of pages so that only certain groups can view those pages

please guide me

Thanks

Malyacko (talkcontribs)
Reply to "Close access pages, not namespace"
Jasonba (talkcontribs)

We are experiencing issue with printing the foot note. The foot note just does not print when the content spans more than 1 page when printing.

Even thought we have tried the print.css with the following margin settings:

margin: 0;

margin-bottom: 0;

margin: auto;


Please advise on what we can do to get the foot note printed on every page.

Note: the foot note is just a single line of text.


Thank you!

MarkAHershberger (talkcontribs)
Jasonba (talkcontribs)

I will give it a try and let you know.

Thanks!

Reply to "Print foot note"
Waanders (talkcontribs)

Now that we have migrated from MW 1.27.1 to version MW 1.27.7 we need to perform two steps to log out. After clicking "log off" you get a page with message "If you wish to log out please continue to the log out page." and a link containing a token. I think it has something to do with https://phabricator.wikimedia.org/T25227. Is it possible to merge this to one step?

MarkAHershberger (talkcontribs)

MediaWiki 1.27 is no longer supported. Please upgrade to at least MW 1.31.

Waanders (talkcontribs)

Sure, we're working hard on it, but in the meantime we'll be using version 1.27 for a while.

Gustavo Borges Matos (talkcontribs)

I believe not, friend

Reply to "Two steps log out"

GE enbrighten Jasco Z-Wave Motion Switch - motion : inactive

2
Summary by MarkAHershberger

This is a support forum for MediaWiki. You probably want SmartThings support.

174.114.124.191 (talkcontribs)

I just bought a new GE enbrighten Jasco Z-Wave Motion Switch, it work great until I added it to my Hubitat. I can't get Hubitat to recognized the motion, it keeps telling me that the motion is inactive. I changed all sort of the setting and can't seam to get it to work. I google and it seams that that are others out there in the same boat. Apparently GE Jasco Z-Wave Motion Switch has change the firmware from 5.38 to 5.39 and now does not work. Can anyone help me out and get this to work, please and thank you in advance.

  • motion : inactive
MarkAHershberger (talkcontribs)