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".
Tang Empire (talkcontribs)

Sometimes when I upload a new version of a file, it doesn't change to the new version on pages. Sometimes it changes on one device but not another. Anyone know how to fix this?

Malyacko (talkcontribs)

By emptying your web browser cache.

Reply to "File doesn't update"

MediaWiki Mobile Access

2
Nexovia (talkcontribs)

I have recently installed MediaWiki and tried accessing it to my android mobile so how can I access that wiki and open it on my mobile?

Malyacko (talkcontribs)

This post does not describe any problem... (In case that you run software like MediaWiki on a local server and cannot access your local server from other devices, then that's a problem unrelated to MediaWiki itself and best brought up in an internet forum instead.)

Reply to "MediaWiki Mobile Access"

Doesn't recognize my original or new name, new e-mail address, and passwords

2
KramdenII (talkcontribs)

I keep trying to sign into Closing Logos. When I enter my e-mail address (which has changed from the previous one) and request a new password, I receive no e-mail. Then I try to establish a new account name and use the temporary password to create a new password, but it keeps coming in as "not identified."

What's the problem? Has Closing Logos kept me from signing back in again? I don't recall making any bad comments; if I disagree with something I just overlook it.

Please tell me what I can do about this. Thanks.

Malyacko (talkcontribs)

Only "Closing Logos" knows (whatever and whoever that is), and we are neither "Closing Logos" nor do we have anything to do with them, so we cannot help.

Reply to "Doesn't recognize my original or new name, new e-mail address, and passwords"

How to make tabbers with long titles not expand infobox

1
Tang Empire (talkcontribs)

Hi. I am using version 1.41.1. I have a problem. When I add tabbers to infoboxes and the titles are long, it will expand the infobox itself. How do I make it not like that but instead maintain the same infobox size while you can scroll through the titles? I tried doing

<tabber style="overflow:auto; max-width:300px; background:transparent;">

but it does not seem to work.

Reply to "How to make tabbers with long titles not expand infobox"

Problems with updating Mediawiki LDAP

9
MSchmitt0815 (talkcontribs)

I am trying updating LDAP. Having difficulty understanding what belongs where and how... following the Description as good as i can.

Please Help.

When i run the maintenance/update.php script it says to me Found invalid JSON in file: /var/www/html/ldap.json

At the end of the Script it prints:

BadMethodCallException from line 506 of /var/www/html/mediawiki/includes/session/SessionProvider.php: MediaWiki\Session\SessionProvider::preventSessionsForUser must be implemented when canChangeUser() is false

#0 /var/www/html/mediawiki/includes/session/SessionManager.php(453): MediaWiki\Session\SessionProvider->preventSessionsForUser()

#1 /var/www/html/mediawiki/includes/user/User.php(886): MediaWiki\Session\SessionManager->preventSessionsForUser()

#2 /var/www/html/mediawiki/extensions/AbuseFilter/includes/FilterUser.php(57): MediaWiki\User\User::newSystemUser()

#3 /var/www/html/mediawiki/extensions/AbuseFilter/includes/FilterUser.php(48): MediaWiki\Extension\AbuseFilter\FilterUser->getUser()

#4 /var/www/html/mediawiki/extensions/AbuseFilter/maintenance/NormalizeThrottleParameters.php(151): MediaWiki\Extension\AbuseFilter\FilterUser->getUserIdentity()

#5 /var/www/html/mediawiki/extensions/AbuseFilter/maintenance/NormalizeThrottleParameters.php(484): MediaWiki\Extension\AbuseFilter\Maintenance\NormalizeThrottleParameters->normalizeParameters()

#6 /var/www/html/mediawiki/maintenance/includes/LoggedUpdateMaintenance.php(49): MediaWiki\Extension\AbuseFilter\Maintenance\NormalizeThrottleParameters->doDBUpdates()

#7 /var/www/html/mediawiki/maintenance/update.php(197): LoggedUpdateMaintenance->execute()

#8 /var/www/html/mediawiki/maintenance/includes/MaintenanceRunner.php(703): UpdateMediaWiki->execute()

#9 /var/www/html/mediawiki/maintenance/doMaintenance.php(100): MediaWiki\Maintenance\MaintenanceRunner->run()

#10 /var/www/html/mediawiki/maintenance/update.php(298): require_once('/var/www/html/m...')

#11 {main}

PHP Notice:  Uncommitted DB writes (transaction from MediaWiki\Extension\AbuseFilter\Maintenance\NormalizeThrottleParameters::doDBUpdates) in /var/www/html/mediawiki/includes/libs/rdbms/database/TransactionManager.php on line 586

PHP Notice:  DB transaction writes or callbacks still pending (MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::providerChangeAuthenticationData, MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::providerChangeAuthenticationData, MediaWiki\User\User::saveSettings, MediaWiki\User\User::saveSettings, MediaWiki\User\User::clearSharedCache) in /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php on line 3344


My ldap.json:

1 {

"internet.adress": {

¦ "connection": {

¦ ¦ "server": "First-Domain-Controller",

¦ ¦ "port": "389",

¦ ¦ "user": "CN=firstUser,OU=Device-User,OU=Benutzer,Some=SomeUser,One=OneUser",

¦ ¦ "pass": "SomeChars",

¦ ¦ "enctype": "clear",

¦ ¦ "options": {

¦ ¦ ¦ "LDAP_OPT_DEREF": 1

¦ ¦ },

¦ ¦ "basedn": "Some=SomeUser, One=OneUser",

¦ ¦ "userbasedn": "OU=Benutzer,Some=SomeUser,One=OneUser",

¦ ¦ "groupbasedn": "OU=SafetyGroups,Some=SomeUser,One=OneUser",

¦ ¦ "searchattribute": "samaccountname",

¦ ¦ "usernameattribute": "samaccountname",

¦ ¦ "realnameattribute": "cn",

¦ ¦ "emailattribute": "mail",

¦ ¦ "grouprequest": "MediaWiki\\Extension\\LDAPProvider\\UserGroupsRequest\\UserMemberOf::factory",

¦ ¦ "presearchusernamemodifiers": [ "spacestounderscores", "lowercase" ],

¦ ¦ "SyncMechanismRegistry": {

¦ ¦ ¦ ¦ "mappedgroups": "MediaWiki\\Extension\\LDAPGroups\\SyncMechanism\\MappedGroups::factory",

¦ ¦ ¦ ¦ ¦ "allgroups": "MediaWiki\\Extension\\LDAPGroups\\SyncMechanism\\AllGroups::factory"

¦ ¦ }

¦ },

¦ "userinfo": [],

¦ "authorization": []

}

}

For more Information just ask.

Greetings

Malyacko (talkcontribs)

Which exact MediaWiki version? Which exact version of which exact extension related to LDAP?

MSchmitt0815 (talkcontribs)

MediaWiki Version: 1.41

The Extension would be LDAPAuthentication2 Version: 1.39 and LDAPProvider Version: 1.39

MSchmitt0815 (talkcontribs)

Thanks for the fast reply!!!

Osnard (talkcontribs)

The error message Found invalid JSON in file: /var/www/html/ldap.json indicates a syntax error in the file /var/www/html/ldap.json. Try using a tool like jsonlint or use a code editor with syntax-checker like VSCode to compose the file.

I did this with the snippet you provided above:

{
    "internet.adress": {
        "connection": {
            "server": "First-Domain-Controller",
            "port": "389",
            "user": "CN=firstUser,OU=Device-User,OU=Benutzer,Some=SomeUser,One=OneUser",
            "pass": "SomeChars",
            "enctype": "clear",
            "options": {
                "LDAP_OPT_DEREF": 1
            },
            "basedn": "Some=SomeUser, One=OneUser",
            "userbasedn": "OU=Benutzer,Some=SomeUser,One=OneUser",
            "groupbasedn": "OU=SafetyGroups,Some=SomeUser,One=OneUser",
            "searchattribute": "samaccountname",
            "usernameattribute": "samaccountname",
            "realnameattribute": "cn",
            "emailattribute": "mail",
            "grouprequest": "MediaWiki\\Extension\\LDAPProvider\\UserGroupsRequest\\UserMemberOf::factory",
            "presearchusernamemodifiers": [
                "spacestounderscores",
                "lowercase"
            ],
            "SyncMechanismRegistry": {
                "mappedgroups": "MediaWiki\\Extension\\LDAPGroups\\SyncMechanism\\MappedGroups::factory",
                "allgroups": "MediaWiki\\Extension\\LDAPGroups\\SyncMechanism\\AllGroups::factory"
            }
        },
        "userinfo": [],
        "authorization": []
    }
}

Be aware that SyncMechanismRegistry is not a valid key in this config. It is a global variable configuration $LDAPGroupsSyncMechanismRegistry and I don't think you need to set it at all.

MSchmitt0815 (talkcontribs)

Good Morning,

i copied your snippet and fitted it for my need in extension to that i use jsonlint. And my Json file seems correct. I tried some more config variations and nothing seems to work.


Do you got another hint or direction which i can try/go?


Greetings and big Thanks

MSchmitt0815 (talkcontribs)

Ps: Do you need additional information?

Osnard (talkcontribs)

Does it still tell you Found invalid JSON in file:...? If so, check if the webserver user can read the file.

MSchmitt0815 (talkcontribs)

Good Evening,

after a good day of work i finally got it workin. Many thanks for your help.

The User wasnt allowed to read, so i made him.

I had to use a bit of a modification of your config file to get it running. It is now possible to login localy, but otherwise not.

When i run the CheckLogin.php script it promptly says ‘FAILED’. When I try to login it says to me that the username or password is incorrect and i should try it again.

When i run ShowUserInfo.php with which i want to login:

cn => someuser

distinguishedname => CN=someuser,OU=Some-User,OU=User,DC=pko,DC=ac

displayname => someuser

name => someuser

samaccountname => someuser

userprincipalname => someuser@address

objectcategory => CN=Person,CN=Schema,CN=Configuration,DC=Thin,DC=Other

dn => CN=someuser,OU=Some-User,OU=Benutzer,DC=Thin,DC=Other


And i still get the Error when running maintenance/update.php script

BadMethodCallException from line 506 of /var/www/html/mediawiki/includes/session/SessionProvider.php: MediaWiki\Session\SessionProvider::preventSessionsForUser must be implemented when canChangeUser() is false

If additional information is needed i am happy to supply.


Thanks for all your much needed help!!!

In regards

Reply to "Problems with updating Mediawiki LDAP"

Edit button error - Viual Editor doesnt load

4
NaomiFromThisDay (talkcontribs)

I moved the wiki to a new server location and now when you click on the edit button you get an error and it doesnt open up.

[36608ab44f7e307376a5e9ba] Exception caught: Could not open '/home/user_13589/tmp_zswknl/mw-GlobalIdGenerator1021-UUID-128'.

For the moving proceedure I simply moved the files and database and changed LocalSettings to reflect the new server location. I also moved the temp file to outside of the website folders and relinked. The temp folder has the same permissions as it did on the other server.

This file '/home/user_13589/tmp_zswknl/mw-GlobalIdGenerator1021-UUID-12' does not exist in this location - it also isn't on the old server either. I wonder if there is another step I need to run to ensure everything works as it should? Or to recreate these missing files!

I can see visual editor is in the extensions folder and this is set

wfLoadExtension( 'VisualEditor' ); is set in the settings

On the help on here it says I will need to configure the parasoid settings but I can't find anything about parasoid in the file structure and no mention of any of the folders it says the file should be located.

  • /etc/mediawiki/parsoid/config.yaml

Is parasoid something I need to install somewhere? I feel as if there's a setup script or something I should be running?

Bawolff (talkcontribs)

Just delete /home/user_13589/tmp_zswknl/mw-GlobalIdGenerator1021-UUID-128 . The error means wrong permissions, but file will be recreated if deleted.

NaomiFromThisDay (talkcontribs)

Thanks for your suggestion, but that file does not exist in that location, nothing to delete! In that location I have the following files instead:

mw-GlobalIdGenerator-UID-nodeid

mw-GlobalIdGenerator-UUID-128

mw-GlobalIdGenerator1120-UID-nodeid

mw-GlobalIdGenerator1120-UUID-128

mw-GlobalIdGenerator2838-UID-nodeid

mw-GlobalIdGenerator2838-UUID-128

I tried temporarily moving them all but that did not change the outcome, I still get the same error message.

NaomiFromThisDay (talkcontribs)

I removed the line in LocalSettings which defined the temp directory and all seems to work now.

// $wgTmpDirectory = "/home/my/path/was/heref";

Reply to "Edit button error - Viual Editor doesnt load"

How do I change the colour?

2
MWQs (talkcontribs)

Can I make just slight modifications to the existing skins? I like the layout and functionality of vector (or whichever one it is that matches most Wikipedias?) but I want to give it some themed colours to suit our own

wikiCan I locate the file for that skin (where?) and just change a few he codes? Or is it more complicated than that?

Ciencia Al Poder (talkcontribs)

Do not touch installation files for this. That would complicate your upgrades.

Instead, generate override stylesheets on the wiki, as described in Manual:Interface/Stylesheets. You would create MediaWiki:vector.css or MediaWiki:vector-2022.css (depending on your vector skin) with the styles to override, usually just colors. You'd have to copy the entire selector to override and modify the colors as you wish, removing other rules that you don't want to modify.

Note that changes may not be applied immediately due to caching. You better try it yourself live on the page by using the browser's development tools, or in your personal stylesheet and using the preview button.

Reply to "How do I change the colour?"
AEroles (talkcontribs)

I forgot my password for an Internal wiki however I still have access to the LocalSettings.php and the database. I am the main admin for the site. What can I do to either retrieve my password or create a new account?

Osnard (talkcontribs)
Reply to "I forgot my password"

Media Wiki Installing error

10
Nexovia (talkcontribs)

I am facing this problem and I have tried opening php.ini file and deleting ; this from extension I am using Xampp local host for all process can somone help to get out fro this.

MediaWiki 1.41 internal error

Installing some PHP extensions is required.

Required components

You are missing a required extension to PHP that MediaWiki requires to run. Please install:

Malyacko (talkcontribs)

You need to install the PHP intl extension. I am not sure how to rephrase the error message to make it clearer, please elaborate what is unclear.

Nexovia (talkcontribs)

The problem as I has mentioned is the exact problem it says for installation of php so how could I do it.

Bawolff (talkcontribs)

What happened when you deleted the ; ?

Did you restart xampp? You have to restart for changes to take effect

Nexovia (talkcontribs)

I have restarted xamppp but it's not working.

Malyacko (talkcontribs)

It is still not clear to me: Did you successfully install the PHP intl extension?

Nexovia (talkcontribs)

I am confused in actually how to install it I have't installed it yet.

Malyacko (talkcontribs)

That depends on your operating system. Please refer to PHP documentation as this question is not related to MediaWiki itself but to PHP (which MediaWiki uses).

Nexovia (talkcontribs)

From where can I get help of this topic at all.

Malyacko (talkcontribs)

In a PHP support forum. Or maybe from your hosting provider if you have one.

Reply to "Media Wiki Installing error"
2003:C2:3F21:FD00:29DF:84AE:2326:3100 (talkcontribs)
Reply to "Importing gadgets"