Jump to content

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

"Allow all users" level invisible for already protected pages, forcing workarounds

1
Justarandomamerican (talkcontribs)

I recently noticed that the default protection level has become invisible on my wiki, forcing unprotection to come in the form of an expiry being set, an API POST request, or a system administrator such as myself running protect.php. The wiki is running MediaWiki 1.41. If needed, I can provide a URL.

Reply to ""Allow all users" level invisible for already protected pages, forcing workarounds"

StopForumSpam for MW 1.39

7
2003:C2:3F30:C500:B1DF:7BBC:6DC1:6C15 (talkcontribs)

The documentation Extension:StopForumSpam tells me I need MW >= 1.42

The Extension distributor offers me to download a 1.39 version of StopForumSpam, but it won't work:

[aee6dcdb88c9254bcdeef759] /wiki/Quantenfiler Error: Interface 'MediaWiki\Extension\AbuseFilter\Hooks\AbuseFilterBuilderHook' not found

Backtrace:

from /var/www/test/mediawiki/extensions/StopForumSpam/includes/Hooks.php(40)
#0 /var/www/test/mediawiki/includes/AutoLoader.php(244): require()
#1 [internal function]: AutoLoader::autoload()
....

is there a way to make it work with MW 1.39? If not, why d

2003:C2:3F30:C500:B1DF:7BBC:6DC1:6C15 (talkcontribs)

o you offer to download a 1.39 version?

Bawolff (talkcontribs)

the extension page says what the latest version needs, older versions may support older mediawiki.

The error message might more be about your version of Extension:AbuseFilter than mediawiki.

2003:C2:3F30:C500:1DB:91B4:A37F:C3BA (talkcontribs)

Good idea but the error message above is what I got after installing AbuseFilter, 1.39 version via ExtensionDistributor.

This post was hidden by Bawolff (history)
Bawolff (talkcontribs)
2003:C2:3F29:3100:1ED:CF42:21E0:CE3B (talkcontribs)

As i told TheDJ in another topic. You may or may not correct it. I won't learn pabricator. I am a user not your domestique.

Reply to "StopForumSpam for MW 1.39"

recent changes "Atom" with filter="all-discussions"

3
2003:C2:3F30:C500:8CB3:19C8:DFBE:85B2 (talkcontribs)

... submits:

https://xxxxxxxxxxxx/mediawiki/api.php?namespace=all-discussions&urlversion=2&days=7&limit=50&action=feedrecentchanges&feedformat=atom

... and crashes:

    "error": {
        "code": "badvalue",
        "info": "Unrecognized value for parameter \"namespace\": all-discussions.",
        "*": "See https://xxxxxxxxxxxx/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes."
    }

but works when I remove the namespace filter.

Is there an extension or update that we are missing?

MW 1.39.6

TheDJ (talkcontribs)

Difficult to say. Does a similar query work on Wikipedia ? If it doesn’t, please file a ticket in phabricator.

2003:C2:3F29:3100:1ED:CF42:21E0:CE3B (talkcontribs)

Works in Wikipedia.


You may or may not correct it. I won't learn pabricator. I am a user not your domestique.

Reply to "recent changes "Atom" with filter="all-discussions""
Vpilot6 (talkcontribs)

Good day, I'm running MediaWiki 1.39.7.

I would dearly appreciate any assistance in enabling and configuring atom feature found on the Watchlist page. If there is a section on the MediaWiki site, I have not been able to find it.

Thank you very much!

Bill

Bawolff (talkcontribs)
Vpilot6 (talkcontribs)

When any user clicks the 'Atom' button, they receive this error:

error on line 2 at column 6: XML declaration allowed only at the start of the document.

Sure enough, looking at the page's source code, line 1 of the xml is blank. I'm trying to determine what's adding the blank line at the front. I haven't touched the MW code.

Bawolff (talkcontribs)

Check your LocalSettings.php to make sure you dont have any text before the <?php at the start of the file, and there is no ?> at the end.

Reply to "Atom Feeds"
Yanzhengli (talkcontribs)

I noticed that the main page of mediawiki.org is divided into several parts, and this is not a table I suppose. How can I do this. Using an Add-on?

Malyacko (talkcontribs)

No, by inspecting the CSS/HTML/PHP code, especially in the Vector-2022 skin.

TheDJ (talkcontribs)
Reply to "Area Split"

XML Export to Confluence and SharePoint

1
Khmwikiusr (talkcontribs)

Just been scratching on the surface of what extension there are available for MediaWiki but while I'm looking at moving couple of thousands pages over from Confluence to MediaWiki and then utilise MediaWiki as central content creator to then be able to either export of feed Confluence and SharePoint with XML data for automtic content creation. Are there any attempts already around this or middleware which can either pull from MediaWiki or simply just tap into the sql database?

Reply to "XML Export to Confluence and SharePoint"

Include Header/Footer in Word/Pdf exports

1
Khmwikiusr (talkcontribs)

To what extend is it possible to have pre-defined document header and footer to be included when exporting documents to either Word or Pdf which which must include various meta data such as Document Cretion Date, Document Update, Revision, Document Owner, Document Classification, etc., based on that these tags can easily be pulled if exists in MediaWikie (or added if not included)?

Reply to "Include Header/Footer in Word/Pdf exports"

Preferences Fatal Exception

3
2601:C2:1900:FB30:31E5:12E7:7231:F8C0 (talkcontribs)

hello, i am an editor on the Miraheze wiki Excellent Music Wiki under the name ToTheEdge when i changed my clientside skin from vector to another skin i cannot remember the name of as of now when i went to go change it back it presented me with this error message: [c3a1a7d8e2ee79b9d39613c7] 2024-06-25 21:51:35: Fatal exception of type "MWException"

2601:C2:1900:FB30:31E5:12E7:7231:F8C0 (talkcontribs)

i have no permissions besides autoconfirmed on this wiki, i just assumed due to this being a MW Exception that this would be the place to resolve it

Bawolff (talkcontribs)

Hi, please ask at miraheze support.

Reply to "Preferences Fatal Exception"
Sanrodrigues51 (talkcontribs)

Hello, due to data protection laws, I need to hide the username in publications and make a MediaWiki public. I am using MediaWiki 1.28, how can I do this?

TheDJ (talkcontribs)

Due to data protection laws, you should also upgrade your MediaWiki version (it's 8 years old and no longer supported).

Bawolff (talkcontribs)
Reply to "Hide the username"

Documentation about MW_CONFIG_CALLBACK

2
Osnard (talkcontribs)

I only found

Special wrapping setups can now define MW_CONFIG_FILE to load a config file other than LocalSettings.php. This is like MW_CONFIG_CALLBACK but works in some cases where MW_CONFIG_CALLBACK will not work.

on MediaWiki 1.17 release notes.

Is there any documentation about those constants used in includes/Setup.php. E.g. MW_USE_CONFIG_SCHEMA_CLASS, MW_USE_LOCAL_SETTINGS_LOADER, MW_SETUP_CALLBACK or MW_CONFIG_FILE. Or examples?

Where do they need to be defined? In auto-prepend-file in the php.ini?

Bawolff (talkcontribs)

i think the only docs are the code comments in includes/Setup.php and includes/BootstrapHelperFunctions.php

Sometimes these defines are used in alternate entry points like the installer or maintenance scripts. So i suppose you could make a wrapper index.php script.

Reply to "Documentation about MW_CONFIG_CALLBACK"