Jump to content

Project:Support desk/Flow/2023/04

Add topic
From mediawiki.org
This page is an archive.
Please ask questions on the current support desk.

Bot login expiry

I created a bot to do some automatic edits in my own wiki. The bot account is in bot user group. I used the sample code (PHP) in API:Edit#PHP and made the "// Step 4: POST request to edit a page" part in a for loop to do multiple edits. But after a few edits, I get permissiondenied error and the message said that I'm in user group (rather than in bot group). After allowing IP user to edit, I get captcha message, which means that the bot login has already expired. What went wrong? Why the login expired? Teetrition (talk) 08:45, 1 April 2023 (UTC)

Its possible that the wiki in question has $wgSessionCacheType misconfigured or configured to something without enough space. (For example, CACHE_ACCEL, but with too small a setting for apcu.shm_size).
Some people set $wgSessionCacheType = CACHE_DB; to fix this, but it is slower than the alternatives. Bawolff (talk) 10:34, 1 April 2023 (UTC)

How do I change what I automatically get after adding a topic/replying in the DiscussionTools extension?

I was just wondering how, because I feel like that I want to change it. 2A02:C7C:BD2C:B500:30B3:B930:B206:54DC (talk) 18:05, 1 April 2023 (UTC)

I'm not sure specificly what you mean, but it is probably controlled by a system message. Look through the page Special:AllMessages on your wiki to try and find the right one to change. Bawolff (talk) 15:21, 4 April 2023 (UTC)

translate : html span tag appears on translated page

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hi all, I cannot understand why -> https://www.mediawiki.org/wiki/Manual:Image_authorization#Apache_Step_2._Execute_Script_img_auth.php_for_all_Accesses

shows normal display for EN page:

Apache Step 2. Execute Script img_auth.php for all Accesses[modifier]
Apache Step 2.1. Change $wgUploadPath in LocalSettings.php. This is not needed if  Apache step 2.2 is done.

but once translated, a span tag with following anchor appears on the FR page (a < p > tag is inserted before next title such as if its anchor were made redundant):

Apache étape 2. Executer le script img_auth.php pour tous les accès
<span id="Apache_Step_2.1._Change_$wgUploadPath_in_LocalSettings.php._This_is_not_needed_if_Apache_step_2.2_is_done.">
Apache étape 2.1. modifier $wgUploadPath dans LocalSettings.php. Pas utile si l'étape 2.2 Apache a été faite

Same problem for steps 4.1 and 4.2.

On the other side 4.3 and 4.4 are ok.

any idea ? Thanks -- Christian 🇫🇷 FR (talk) 10:30, 2 April 2023 (UTC)

Applying Proposed workaround => ok now.
"This can be worked around by adding nowrap attribute for that translation unit" Christian 🇫🇷 FR 🚨 (talk) 12:01, 4 April 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How do I add a section header to a Portable Infobox? (Discussion about the ‘PortableInfobox’ extension)

Hi,

I was just wondering: How do I add a section header to a Portable Infobox created with the MediaWiki extension ‘PortableInfobox’, as the title says? 2A02:C7C:BD2C:B500:60C2:89B4:A3EC:7DAE (talk) 21:50, 2 April 2023 (UTC)

Err… I need a reply. 2A02:C7C:BD2C:B500:E46A:AC3C:3CD3:14F9 (talk) 10:04, 3 April 2023 (UTC)

Site not found even with URL

Greetings.

I have a problem: I wanted to se my URL for my first wiki. Here's what my LocalSettings.php file looks like:


# This file was automatically generated by the MediaWiki 1.39.3

# installer. If you make manual changes, please keep track in case you

# need to recreate them later.

#

# See docs/Configuration.md for all configurable settings

# and their default values, but don't forget to make changes in _this_

# file, not there.

#

# Further documentation for configuration settings may be found at:

# https://www.mediawiki.org/wiki/Manual:Configuration_settings

## Uncomment this to disable output compression

# $wgDisableOutputCompression = true;

$wgSitename = "Papa's Deluxe Wiki";

$wgMetaNamespace = "Papa's_Deluxe_Wiki";

## The URL base path to the directory containing the wiki;

## defaults for all runtime URL paths are based off of this.

## For more information on customizing the URLs

## (like /w/index.php/Page_title to /wiki/Page_title) please see:

## https://www.mediawiki.org/wiki/Manual:Short_URL

$wgScriptPath = "/~nikopalad67140/wiki";

## The protocol and server name to use in fully-qualified URLs

$wgServer = "//wiki.papadeluxe.com";

$wgCanonicalServer = "https://wiki.papadeluxe.com";

## The URL path to static resources (images, scripts, etc.)

$wgResourceBasePath = $wgScriptPath;

## The URL paths to the logo.  Make sure you change this from the default,

## or else you'll overwrite your logo when you upgrade!

$wgLogos = [

   '1x' => "https://ibb.co/0F2rWbG/logo.png",

   'icon' => "https://ibb.co/0F2rWbG/logo.png",

];

## UPO means: this is also a user preference option

$wgEnableEmail = true;

$wgEnableUserEmail = true; # UPO

$wgEmergencyContact = "";

$wgPasswordSender = "";

$wgEnotifUserTalk = false; # UPO

$wgEnotifWatchlist = false; # UPO

$wgEmailAuthentication = true;

## Database settings

$wgDBtype = "mysql";

$wgDBserver = "wiki";

$wgDBname = "wikipapadeluxe";

$wgDBuser = "root";

$wgDBpassword = "";

# MySQL specific settings

$wgDBprefix = "";

# MySQL table options to use during installation or update

$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary";

# Shared database table

# This has no effect unless $wgSharedDB is also set.

$wgSharedTables[] = "actor";

## Shared memory settings

$wgMainCacheType = CACHE_NONE;

$wgMemCachedServers = [];

## To enable image uploads, make sure the 'images' directory

## is writable, then set this to true:

$wgEnableUploads = false;

#$wgUseImageMagick = true;

#$wgImageMagickConvertCommand = "/usr/bin/convert";

# InstantCommons allows wiki to use images from https://commons.wikimedia.org

$wgUseInstantCommons = false;

# Periodically send a pingback to https://www.mediawiki.org/ with basic data

# about this MediaWiki instance. The Wikimedia Foundation shares this data

# with MediaWiki developers to help guide future development efforts.

$wgPingback = true;

# Site language code, should be one of the list in ./includes/languages/data/Names.php

$wgLanguageCode = "en";

# Time zone

$wgLocaltimezone = "Europe/Berlin";

## Set $wgCacheDirectory to a writable directory on the web server

## to make your wiki go slightly faster. The directory should not

## be publicly accessible from the web.

#$wgCacheDirectory = "$IP/cache";

$wgSecretKey = "b564d730428f48d0882f0ae67283fc844ba41347848b4868501bdb524ff86342";

# Changing this will log out all existing sessions.

$wgAuthenticationTokenVersion = "1";

# Site upgrade key. Must be set to a string (default provided) to turn on the

# web installer while LocalSettings.php is in place

$wgUpgradeKey = "d8e35fccd5b424df";

## For attaching licensing metadata to pages, and displaying an

## appropriate copyright notice / icon. GNU Free Documentation

## License and Creative Commons licenses are supported so far.

$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright

$wgRightsUrl = "";

$wgRightsText = "";

$wgRightsIcon = "";

# Path to the GNU diff3 utility. Used for conflict resolution.

$wgDiff3 = "";

# The following permissions were set based on your choice in the installer

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

## Default skin: you can change the default skin. Use the internal symbolic

## names, e.g. 'vector' or 'monobook':

$wgDefaultSkin = "vector";

# Enabled skins.

# The following skins were automatically enabled:

wfLoadSkin( 'MinervaNeue' );

wfLoadSkin( 'MonoBook' );

wfLoadSkin( 'Timeless' );

wfLoadSkin( 'Vector' );

# End of automatically generated settings.

# Add more configuration options below.


Here's the problem: when I want to test if the URL works, it tells me "Site not found" when I type the URL in the URL bar. The only changes I made are "wgScriptPath", "wgServer", "wgCanonicalServer" and "wgDBName". Can someone help me with this? NikoPalad67140 (talk) 15:32, 3 April 2023 (UTC)

Did you set the A record on the domain name to the right IP address? Bawolff (talk) 22:18, 3 April 2023 (UTC)
What I did was to modify the .htaccess file in order to shorten the URL, then I added "wgArticlePath" to the LocalSettings.php file in order for the change to work. But even with that, the error is still present.
And by the way, what is the record you are talking about? NikoPalad67140 (talk) 06:54, 4 April 2023 (UTC)

How do I fix this MediaWiki 1.39 Internal Error?

New computer. New installation of Ubuntu 22.04, New installation of everything. Yet I am still getting the same error that stumped me last week. I am NOT a PHP or database expert. In fact Mediawiki and PHP are only used here for Mediawiki. Which has worked fine on another computer for a few years. But I am trying to move my database to another computer. Can someone tell me in newbie language how I get past this error.

MediaWiki 1.39 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:


During the installation I did this:

sudo apt install php7.4-intl

sudo apt install php7.4-mbstring

sudo apt install php7.4-xml


And php -m returns this:

steve@bmax:/var/www/html$ php -m

[PHP Modules]

calendar

Core

ctype

date

dom

exif

FFI

fileinfo

filter

ftp

gettext

hash

iconv

intl

json

libxml

mbstring

openssl

pcntl

pcre

PDO

Phar

posix

readline

Reflection

session

shmop

SimpleXML

sockets

sodium

SPL

standard

sysvmsg

sysvsem

sysvshm

tokenizer

xml

xmlreader

xmlwriter

xsl

Zend OPcache

zlib

[Zend Modules]

Zend OPcache


It shows that xml, mbstring and intl are installed.

So, why the error that I am missing these required extensions?

WHY DOES INSTALLING MEDIAWIKI HAVE TO BE SO HARD? SteveRMann (talk) 02:20, 4 April 2023 (UTC)

Sometimes commandline php and webserver php can have different extensions installed (although usually ubuntu does both).
So first off, restart apache (im assuming you are using apache) to make sure changes to php are picked up (run systemctl restart apache2 )
Instead of using php -m to fugure out what modules are loaded, create a file named info.php containing just <?php phpinfo(); and browse to it in your web browser. Bawolff (talk) 10:03, 4 April 2023 (UTC)
Thanks. I solved this speed bump by making sure these extensions were in the php install line. I managed to finish the Mediawiki installation, but now I can't get the old database to move to my new server. I'll start a new thread for that. SteveRMann (talk) 20:10, 12 April 2023 (UTC)

Hiding the sidebar from anonymous (non-logged in) users

Hello,

On my wiki I have a requirement to only show the login link, nothing else.

Obviously I do not just want to hide them cosmeticly.

I've added the following to my LocalSettings.php file to accomplish this:

$wgGroupPermissions['*']['createaccount'] = false;

$wgGroupPermissions['*']['createpage'] = false;

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

$wgGroupPermissions['*']['read'] = false;

This does hide several links, but no the links in the sidebar.

I have found a question from two years ago which had a solution to create the following php file in the extentions directory:

<?php

### Hide Sidebar from anonymous user ###

if ( !defined( 'MEDIAWIKI' ) ) {

        echo "Not a valid entry point";

        exit( 1 );

}

$wgExtensionCredits['other'][] = array(

        'path' => __FILE__,

        'name' => 'HideSidebar',

        'version' => '1.0.1',

        'author' => 'Jlerner',

        'url' => 'https://www.mediawiki.org/wiki/Extension:HideSidebar',

        'description' => 'Allows to hide the sidebar from anonymous users',

);

$wgHooks['SkinBuildSidebar'][] = 'efHideSidebar';

function efHideSidebar($skin, &$bar) {

        global $wgUser;

        // Hide sidebar for anonymous users

        if (!$wgUser->isLoggedIn()) {

                $url = Title::makeTitle(NS_SPECIAL, 'UserLogin')->getLocalUrl();

                $bar = array(

                        'navigation' => array(

                                array('text'   => 'Login',

                                      'href'   => $url,

                                      'id'     => 'n-login',

                                      'active' => '')

                        )

                );

        }

        return true;

}

This then needed to be "required once" with the following line:

require_once "$IP/extensions/HideSidebar/HideSidebar.php";

This broke the wiki...

I have been told that in earlier versions the above 4 lines of $wgGroupPermissions were enough to hide everything from the login page except the login link.


Would it be possible to achieve that again? Techcare.noc (talk) 10:00, 4 April 2023 (UTC)

You could use the updated version https://github.com/mywikis/HideSidebar/blob/main/HideSidebar.hooks.php Bawolff (talk) 15:15, 4 April 2023 (UTC)
I'm now trying to update to Mediawiki 1.40, and had to disable the HideSidebar extention, as update.php does not like it somehow...
I shall revisit this as soon as I am succesfully updated to 1.40... Techcare.noc (talk) 12:31, 1 August 2023 (UTC)

Change from localhost to URL

Hey guys!

I have a problem concerning changing from my local host to an URL. Here's the URL of my localhost:

http://localhost/wiki/index.php/Main_Page


And this is the URL I try to implement:

http://wiki.papadeluxe.com/wiki/Main_Page


I know that it works because when I save an edit on the localhost's main page, it redirects me to the URL I want. Now, when it does redirect, and also if I type in the URL directly, then it gives me the "We're having trouble finding that site" error. Any way I can fix this? NikoPalad67140 (talk) 10:19, 4 April 2023 (UTC)

Like i said on your last post - There is no A record on the DNS entry for wiki.papadeluxe.com
For that matter, it does not appear that papadeluxe.com domain has even been registered [1] [Note: I'm just linking there to show that the domain is currently marked as available. This is not an endorsement of that particular site's services]
In order for this to work, you need to buy the domain in question, and set the A record of it to be your IP address (You also need to make sure that your IP address is accessible over the internet which sometimes is not the case if you're using a home connection). Otherwise there is no way for the world to know that that url is for your website. Bawolff (talk) 15:13, 4 April 2023 (UTC)

the Firmware-Version RUTX_R_00.07.04.1

Hi,

I want to ask whether the Firmware-Version RUTX_R_00.07.04.1 support the wirpas-protocol? 93.241.64.197 (talk) 13:36, 4 April 2023 (UTC)

Hi. This is off-topic for this forum. We only provide help with MediaWiki. Bawolff (talk) 15:07, 4 April 2023 (UTC)

i have a new e-mail than the one i had when i signed up with, how do i update it?

i have a different e-mail now than i do when i first signed on, how do i update it? Loki1mom (talk) 18:00, 4 April 2023 (UTC)

Check your User Preferences. Malyacko (talk) 20:04, 4 April 2023 (UTC)
Go to Special:Preferences#mw-prefsection-personal-emailAmmarpad (talk) 08:38, 5 April 2023 (UTC)

how do i get to facebook from here?

how do i get to facebook from here? Loki1mom (talk) 18:13, 4 April 2023 (UTC)

Not —TheDJ (Not WMF) (talkcontribs) 19:02, 4 April 2023 (UTC)

info: JavaScript no longer operational in Firefox ESR

Using JavaScript in an unsupported browser on an unsupported operating system has been recently unsupported by MediaWiki (T178356).

I notice that since this morning Firefox ESR (Win Vista) is no longer supported for JavaScript operations by MW . No more sortable columns, 'blind' updates are still possible but without the facility of JS => change your laptop. Christian 🇫🇷 FR 🚨 (talk) 10:11, 5 April 2023 (UTC)

Which version is that? I have an ESR version of Firefox too, but haven't noticed anything yet. I'll check later today. Until then, are you seeing anything in the browser console? Mainframe98 talk 10:29, 5 April 2023 (UTC)
Notably, MediaWiki changed the versions that get JavaScript recently, but ESR versions should still get it. (phab:T178356) Mainframe98 talk 10:30, 5 April 2023 (UTC)
Browser reinstall gives Version 52.9.0; will investigate with additional fixes; no hope no more fixes after global restart; "Cet outil ne fonctionne pas sans JavaScript. JavaScript est désactivé ou n’a pas pu s’exécuter, ou bien votre explorateur ne le prend pas en charge." Java on its side is => C:\Program Files\Java\jre1.8.0_271\bin\javaw.exe Christian 🇫🇷 FR 🚨 (talk) 10:34, 5 April 2023 (UTC)
No hope; manual update with last jre-8u361-windows-i586.exe as proposed by site www.java.com offline makes still translations rejected with same msg as above.
Same rejects on other sites: meta, wikidata... and Special:LanguageStats page no longer propose to develop or hide the sections. Christian 🇫🇷 FR 🚨 (talk) 11:37, 5 April 2023 (UTC)
java and javascript are different things. Despite the similar names they have nothing to do with each other. Your JRE version number is irrelevant.
Are you saying your firefox version is 52.9.0? That is not the current firefox ESR release. The current ESR release is 102.9.0. Firefox 52 is from about 6 years ago. Bawolff (talk) 11:55, 5 April 2023 (UTC)
Oh i missed the windows vista part. Firefox 52.9.0 is the last version to work on windows vista.
In principle you are still supposed to be able to do all editing even in older browsers just without javascript, but maybe that doesn't apply to translate extension, I don't know. Bawolff (talk) 11:59, 5 April 2023 (UTC)
you can modify the pages as said above (blind) but all translations via Translate are now impossible. Christian 🇫🇷 FR 🚨 (talk) 12:58, 5 April 2023 (UTC)
This is the About result of the browser. I have given the more details I have and what worked yesterday no longer does today. Just to warn other users. Christian 🇫🇷 FR 🚨 (talk) 11:59, 5 April 2023 (UTC)

SVGエラー

私が作成したwikiに、$wgFileExtensionsを設定し、svgファイルをアップロードしようとすると、「サムネイルの作成エラー」と出て、閲覧ができません。どうしたらよいでしょうか。 Asahi-jp (talk) 16:16, 5 April 2023 (UTC)

Is that the full text of the error?
それはエラーの全文ですか? Bawolff (talk) 05:59, 6 April 2023 (UTC)

DiscussionTools: How do I make it so it won't auto generate a signature when making a new topic?

Does anyone know how? I want to make so you have to type '~~~~' in the source editor. 2A02:C7C:BD2C:B500:6537:3289:B52D:DCB9 (talk) 16:25, 5 April 2023 (UTC)
What's the underlying problem that you would like to solve that you think would be solved by not auto-generating a signature? Malyacko (talk) 03:49, 6 April 2023 (UTC)
I don't know how to do it? 41.57.95.20 (talk) 23:26, 5 April 2023 (UTC)
I don’t like the ‘{{SUBST:}}’ tag. Whenever I have a custom signature marked as {{User:<insert name here>/sig}}, it keeps doing the substitution. 2A02:C7C:BD2C:B500:5912:45B1:126A:E104 (talk) 08:38, 6 April 2023 (UTC)
Set $wgCleanSignatures = false; in LocalSettings.php Bawolff (talk) 13:41, 6 April 2023 (UTC)
I can't seem to find it in Miraheze's ManageSettings thing. 2A02:C7C:BD2C:B500:B9A6:A5A1:8A13:7C22 (talk) 13:50, 6 April 2023 (UTC)
Seems like the support desk is quiet as I haven't got a response in like 7+ hours :/ (oh sorry was i meant to say that my bad) 2A02:C7C:BD2C:B500:6D5E:A275:E78F:56CE (talk) 20:35, 6 April 2023 (UTC)
If you want help with miraheze's managesetting thing, you should ask miraheze support, not us. Bawolff (talk) 20:40, 6 April 2023 (UTC)
Okay. 2A02:C7C:BD2C:B500:2DB1:1D83:3263:2B7B (talk) 13:47, 6 April 2023 (UTC)

Echo Extension: Having issue with installation on MediaWiki 1.32.2

Hi all, I have installed the echo extension and followed the instructions from Extension:Echo - MediaWiki. However, I am facing an error after running the update script. I am still new to MediaWiki and PHP. Appreciate any help on this.


MediaWiki Version: 1.32.2

Branch installed: REL1_32


Logs after running update.php:

_____________________________________

[0b36702eafec2f350ef3876f] [no req]   Wikimedia\Rdbms\DBQueryError from line 1506 of E:\Apache24\htdocs\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  event_id  FROM `echo_event` LEFT JOIN `echo_notification` ON ((notification_event=event_id))   WHERE notification_user IS NULL  ORDER BY event_id ASC LIMIT 500

Function: BatchRowIterator::next

Error: 1146 Table 'datawiki.echo_notification' doesn't exist (local)

Backtrace:

#0 E:\Apache24\htdocs\includes\libs\rdbms\database\Database.php(1476): Wikimedia\Rdbms\Database->makeQueryException(string, integer, string, string)

#1 E:\Apache24\htdocs\includes\libs\rdbms\database\Database.php(1236): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)

#2 E:\Apache24\htdocs\includes\libs\rdbms\database\Database.php(1703): Wikimedia\Rdbms\Database->query(string, string)

#3 E:\Apache24\htdocs\includes\utils\BatchRowIterator.php(219): Wikimedia\Rdbms\Database->select(array, array, array, string, array, array)

#4 E:\Apache24\htdocs\includes\utils\BatchRowIterator.php(182): BatchRowIterator->next()

#5 E:\Apache24\htdocs\extensions\Echo\maintenance\removeOrphanedEvents.php(52): BatchRowIterator->rewind()

#6 E:\Apache24\htdocs\maintenance\Maintenance.php(1698): RemoveOrphanedEvents->doDBUpdates()

#7 E:\Apache24\htdocs\maintenance\update.php(216): LoggedUpdateMaintenance->execute()

#8 E:\Apache24\htdocs\maintenance\doMaintenance.php(94): UpdateMediaWiki->execute()

#9 E:\Apache24\htdocs\maintenance\update.php(249): require_once(string)

#10 {main} Exmbit (talk) 02:58, 6 April 2023 (UTC)

First of all, why do you run a 46 month old insecure outdated MediaWiki version? Malyacko (talk) 03:48, 6 April 2023 (UTC)
Well, I can look to upgrade the version but I am afraid we might lose the data or break the application. Based on Manual:Upgrading - MediaWiki, I can back up the data first before attempting to upgrade the version to 1.35 followed by 1.39 Exmbit (talk) 05:20, 6 April 2023 (UTC)
When I upgraded, I thought I broke my wiki. I couldn't even read my mainpage. However, it turned out to be two extensions that were incompatable, and not teally that big of a deal. My suggestion is to do the upgrade. I know it's scary.
#.) Warn your users for a week first.
#.) Have a version of your localsettings.php handy that is barebones, with most of your extensions commented off and a basic skin as the default.
#.) Slowly activate your extensions just one or two at a time. You will probably have at least one of them mangle your wiki. I had 2.
#.) Upgrade any offending extensions.
#.) Now do the same with your skins. I had to replace my Darkvector skin with HIVE so that I could have a dark skin.
The upgrade is worth it, and if you do it this way it should be fairly pain-free, and completed in 72 hours or less. I have a large complicated wiki, and I almost had a heart attack when I saw my shredded and mangled wiki, with overlapping text-wall errors everywhere. If you restart your extensions in slow increments, per above, you will save yourself the adrenaline. The upgrade rocks. -𝘼𝙧𝙘𝙝𝙖𝙣𝙜𝙚𝙡💀 06:55, 7 April 2023 (UTC)

Search suggestions not working on desktop, only mobile

Typing into the search box whilst on the MinervaNeue mobile skin whilst on a PC or smartphone instantly brings up a list of pages that match what's being typed, as wanted and expected.


However, using the default Vector-2022 skin, or the legacy Vector skin, either doesn't bring up a drop-down list of suggestions at all, or just one that reads "No match was found.".


I thought installing Elasticsearch and the CirrusSearch extension would help, as that is what Wikipedia uses, but the same issue persists. I have verified CirrusSearch is definitely working through API calls and checking if search suggestions still work on mobile skin, which they do. The issue still persists on desktop Vector skin. If it helps, any Javascript or CSS related pages like MediaWiki:Common.js and MediaWiki:Vector.css on my wiki are copies of their Wikipedia counterparts. There are also no Javascript errors that pop up in the browser's console whilst searching, which has me stumped on what the issue could be, but I'll leave a link to my wiki below if you can spot something that I'm not seeing.


URL: https://wikis.redgreenblue.art/WikipediNyah/Main_Page

Special:Version output:

MediaWiki 1.39.2
PHP 8.1.7-1ubuntu3.3 (apache2handler)
MariaDB 10.6.12-MariaDB-0ubuntu0.22.10.1
ICU 71.1
Lua 5.1.5
Pygments 2.11.2
Elasticsearch 7.10.2

Thanks for any help in advance! ElementalLagomorph (talk) 06:36, 6 April 2023 (UTC)

Okay something semi-related to this issue popped up, running sudo apt upgrade changed the version of Elasticsearch from 7.10.2 to 7.17.9 which is not the version explicitly stated as a requirement by Extension:CirrusSearch. Should I downgrade?
Also, the main issue that this thread is for (search suggestions dropdown list / autocomplete not showing up on Vector skins, when it does on MinervaNeue), is still also happening. I've tried blanking out the aforementioned .css and .js pages and that wasn't the issue, I've also tried installing the SecureLinkFixer extension and other SSL related stuff to rule out any https problems, and I've run a few maintenance scripts like runJobs.php to no avail - if there's anything at all anyone else can think of trying, please let me know! Thanks ^^ ElementalLagomorph (talk) 05:05, 7 April 2023 (UTC)
Hoo boy, we've been spending most of the past couple days trying to troubleshoot this now and yet still to no avail. We've thankfully come to the conclusion that this issue is only affecting the main search bar at the top of every page on the Vector skin, as the lower search bar on Special:Search in the Vector skin does display search suggestions.
Here are some additional things I've tried today:
- Downgrading Elasticsearch back to 7.10.2 and running sudo apt-mark hold elasticsearch (preventing it from upgrading again)
- Enabling the Headers directive module in Apache with sudo a2enmod headers
- Adding
<Location "/wikis/WikipediNyah/rest.php">
Header set Content-Type "application/json"
</Location>
to the Apache config to force rest.php to return content with the expected application/json in its Content-Type header rather than text/html; charset=UTF-8
- Adding more extensions and lines to LocalSettings.php , including the new additions of:
wfLoadExtension( 'AdvancedSearch' );
wfLoadExtension( 'WikibaseCirrusSearch' );
$wgCirrusSearchServers = [ 'localhost' ];
$wgCirrusSearchElasticQuirks = [ 'optimize_type_weight' ];
$wgRestAPIAdditionalRouteFiles[] = "$IP/extensions/CirrusSearch/includes/Api/SearchRestRoute.php";
$wgCachePages = false;
$wgRestPath = "{$wgScriptPath}/rest.php";
$wgShowExceptionDetails = true;
$wgDebugLogFile = "/var/log/mediawiki/debug.log";
$wgDebugLogGroups['exception'] = '/var/log/mediawiki/exception.log';
- Adding the following Rewrite Rule to the Apache config:
RewriteRule ^/wikis/WikipediNyah/rest.php/v1/(.*)$ /wikis/WikipediNyah/rest.php/$1 [L,QSA]
I am currently of the suspicion that this issue has something to do with how I've set up Short URLs and other redirects in the rest of the Apache config. Typing "Test" into the top search bar and looking at the Network tab shows me that the search bar is trying to get
https://wikis.redgreenblue.art/wikis/WikipediNyah/rest.php/v1/search/title?q=Test&limit=10 which just spits out raw HTML of the Main Page of the wiki.
Without the "wikis." subdomain, https://redgreenblue.art/wikis/WikipediNyah/rest.php/v1/search/title?q=Test&limit=10 spits out a MediaWiki page with the Internal Error of:
/wikis/WikipediNyah/rest.php/v1/search/title?q=Flye&limit=10 TypeError: array_merge(): Argument #2 must be of type array, null given
If it helps, the expected Short URL version of the site that the Apache config redirects to is not supposed to have /wikis/ at the end of the https://wikis.redgreenblue.art/ domain name, as that would be redundant. Removing the /wikis/ from the top link above and going to https://wikis.redgreenblue.art/WikipediNyah/rest.php/v1/search/title?q=Test&limit=10 understandably just provides an un-created MediaWiki page for "Rest.php/v1/search/title".
If you guys need ANY additional information at all, such as the entire contents of the Apache config file, please feel free to ask, as I'm once again totally stumped at the moment. I am willing to share nearly everything if it'd help getting this solved. If this thread needs to be moved elsewhere such as a bug on the Phabricator, I'm all ears too. Thanks once again! ElementalLagomorph (talk) 10:01, 7 April 2023 (UTC)
Issue fully solved after entering my website's URL into the third-party MediaWiki ShortURL Builder at https://shorturls.redwerks.org/ , seeing that this service couldn't connect to my site due to a broken SSL chain, setting up my Apache config to use the fullchain.cer file instead of just the main certificate for my site, following the aforementioned site's instructions to further rewrite my Apache configuration from scratch, and completely removing deprecated options from LocalSettings.php (which included $wgUsePathInfo = true; and most of the ones I listed in my previous reply above - if you're wondering how those settings even got into my LocalSettings.php file, it was a mixture of trusting outdated information from ChatGPT, and cursory searches of similar MediaWiki issues which all had replies from years ago).
So I'm not sure whether it was the broken SSL chain, a slightly-misconfigured Apache configuration, or deprecated settings in the LocalSettings.php, but yes, after nearly two days of non-stop troubleshooting, we are finally done. :D ElementalLagomorph (talk) 14:48, 7 April 2023 (UTC)

Ordnance Survey maps integration

Can anyone tell me whether it is possible to use Ordnance Survey maps in Mediawiki. The Maps extension is good (not that I could ever get Google maps service to work) but I was hoping to have OS maps as an additional layer. OS maps seem to be everywhere else except Mediawiki. I have a site on Miraheze, which always keep everything up to date. Is this even possible, or am I just barking up the wrong tree? Thanks. TheBorderman (talk) 13:25, 6 April 2023 (UTC)

What is "Ordnance Survey"? Please also link to their API. Have you brought this up in a Miraheze forum first? Malyacko (talk) 04:51, 7 April 2023 (UTC)
Ordnance Survey is the national mapping agency in the UK, which has been around for over 200 years. I asked on Miraheze but was directed to ask at Mediawiki.
This is what I'm after: english-lake-district.info/lake-district-map-3d.html - (won't let me add links for spam reasons) click on the Ordnance Survey map option on the left hand side and zoom in all the way.
This is the map I'd like to use: beta.ordnancesurvey.co.uk/products/25k-raster - but don't know if it's possible in Mediawiki. TheBorderman (talk) 18:20, 7 April 2023 (UTC)
It would depend on the map extension you are using. There are a bunch, you might have better luck asking the author of the map extension in question. Bawolff (talk) 17:23, 8 April 2023 (UTC)

How do I make it so that the wiki looks different on April Fools Day without changing page contents?

Title says it all. Also, please don’t say ‘CSS’. I already know that. 2A02:C7C:BD2C:B500:2DB1:1D83:3263:2B7B (talk) 14:11, 6 April 2023 (UTC)

been quiet in the support desk since 7+ hours ago 2A02:C7C:BD2C:B500:6D5E:A275:E78F:56CE (talk) 20:36, 6 April 2023 (UTC)
CSS
(This is an ask silly questions get silly answers sort of thing. You don't say how you want to change it or what you want to change, so the best anyone is going to be able to tell you is broad generic answers like "css") Bawolff (talk) 20:43, 6 April 2023 (UTC)
But like how the Scratch Wiki does it? 2A02:C7C:BD2C:B500:C45B:BBA5:7552:E489 (talk) 21:08, 6 April 2023 (UTC)
You can ask "Scratch Wiki"? Malyacko (talk) 04:50, 7 April 2023 (UTC)

cutting and pasting urls with images

When I cut and paste a URL from my browser window, then into a social media post, the URL is converted into a clickable field with an image, typically the first image on the page, and a short description or summary of the contents of the page. This works perfectly with, say, a Wikipedia article. However, when I do this with an article from my own wiki, the image does not appear. We have tested this with several users, and verious articles, and compared the markup on each.


What might cause this and how is it fixed? -𝘼𝙧𝙘𝙝𝙖𝙣𝙜𝙚𝙡💀 23:27, 6 April 2023 (UTC)

The image is provided by PageImages extension. You then need to set up Manual:$wgSkinMetaTags in your LocalSettings.php (to add the title and card type). – Ammarpad (talk) 10:37, 7 April 2023 (UTC)
Page images is now installed.
Ok, I don't know how to set up skinmetatags. I don't even know what they are. I have several skins on my wiki. I don't see how a user's choice of wikiskin can prevent or cause a social media platform to use an image from a raw link or display it. What do I need to do? -𝘼𝙧𝙘𝙝𝙖𝙣𝙜𝙚𝙡💀 20:43, 8 April 2023 (UTC)
Will do! Thank you!
Done, but I don't know jack about SkinMetaTags or what I am supposed to do with them. (See Above) -𝘼𝙧𝙘𝙝𝙖𝙣𝙜𝙚𝙡💀 07:53, 8 April 2023 (UTC)
Find your 'LocalSettings.php' file.
Add this at the end of the file: $wgSkinMetaTags = ['og:title', 'og:type', 'twitter:card'];Ammarpad (talk) 17:32, 10 April 2023 (UTC)
Will do! -𝘼𝙧𝙘𝙝𝙖𝙣𝙜𝙚𝙡💀 21:29, 10 April 2023 (UTC)
Sadly, it did not work. You can see the results [https://starships-rpg.com/toggwiki/index.php/Helpdesk_issues HERE]. Running latest 3.9 software. -𝘼𝙧𝙘𝙝𝙖𝙣𝙜𝙚𝙡💀 22:05, 10 April 2023 (UTC)
I can tell you guys are busy. Is it possible for me to get tbe Wikipedia setting? I can see Wikipedia's image okay. -𝘼𝙧𝙘𝙝𝙖𝙣𝙜𝙚𝙡💀 21:07, 12 April 2023 (UTC)
You didn't (properly) install PageImages extension: https://starships-rpg.com/toggwiki/index.php/Special:Version. Here's the Wikipedia config: https://noc.wikimedia.org/wiki.php?wiki=enwiki#wgSkinMetaTagsAmmarpad (talk) 10:31, 13 April 2023 (UTC)
PageImages is not installed on toggwiki, thats why I took the screenshot. Here is where: https://fascipedia.org/index.php/Special:Version
I copied over these configs and I will have a look at them. Thank you very much. I will let you know how this turns out, thanks again. -𝘼𝙧𝙘𝙝𝙖𝙣𝙜𝙚𝙡💀 20:32, 13 April 2023 (UTC)
Nope, still not working
I even removed the Twitter Card config, so it was '''exactly''' the same. Still no-go.. -𝘼𝙧𝙘𝙝𝙖𝙣𝙜𝙚𝙡💀 05:55, 14 April 2023 (UTC)
Are you sure you follow the installation procedure as explained here: Extension:PageImages#Installation. Did you run the initialization script? – Ammarpad (talk) 11:47, 14 April 2023 (UTC)
Yes, I am sure. But I am going to start the whole thing over from scratch. Redownload it, everything. Things happen, and any number of things may go awry, but I'm guessing it won't happen twice in a row. I will update you when done. -𝘼𝙧𝙘𝙝𝙖𝙣𝙜𝙚𝙡💀 20:49, 14 April 2023 (UTC)
You were correct. I was wrong. The script was not run. My provider does not offer shell access. Can i run the script some other way? Maybe upload it to a different folder? -𝘼𝙧𝙘𝙝𝙖𝙣𝙜𝙚𝙡💀 09:07, 15 April 2023 (UTC)
Maybe Extension:MaintenanceShell can help. (Read disclaimer before use). – Ammarpad (talk) 16:53, 15 April 2023 (UTC)
MaintanenceShell installed and ran initImageData.php without a hitch. But once it was running, initImageData crashed with a Generic server error. I don't understand why this has to be so complicated. Iv'e been coding software for over 35 years, and I don't even understand the basics of what this extension is doing. When I post a raw link to social media, there is always a thumbnail, except not when its my wiki. Most of these sites are not even wikis, so I don't get this. I also don't like to install things if I don't know what they are doing. Can you help me understand? Is there another extension that does the same thing? Can I do this manually? Thank you in advance, here is my version info, perhaps its incompatable with something I have installed. https://fascipedia.org/index.php/Special:Version -𝘼𝙧𝙘𝙝𝙖𝙣𝙜𝙚𝙡💀 21:50, 15 April 2023 (UTC)

Internal errors on all wiki pages

As the topic says, an old wiki of mine seems to be giving an internal error on every page.


http://adventure.shoutwiki.com/wiki/Main_Page


It is, far as I can tell, the same error on every page. The content is still intact when I go to 'edit', but I'm not sure what caused this as there has been no edits in a long time. TalynAmbereye (talk) 11:17, 7 April 2023 (UTC)

You're using MediaWiki with incompatible version of Extension:Lingo (and possibly other extensions). You should downgrade Lingo or upgrade MediaWiki. – Ammarpad (talk) 11:24, 7 April 2023 (UTC)
Ah, I see. Uhm, to be honest I'm not sure how to do that, it's been a long time since I've done anything in Mediawiki, and I don't remember how to mess with the file structure TalynAmbereye (talk) 11:51, 7 April 2023 (UTC)
Since this is a shoutwiki hosted wiki, you should probably contact shoutwiki support. Bawolff (talk) 14:46, 7 April 2023 (UTC)

How to de-index my discussion page from Google SERP results?

What can I do to prevent Google searches from indexing my talk page? I'm new here and actually don't have any pages published yet, as I've made some beginner's mistakes, although searches for my name show the discussion page in the results, which doesn't make any sense... Thanks! Fernando Ariani (talk) 14:42, 7 April 2023 (UTC)

set $wgNamespaceRobotPolicies[NS_TALK] = 'noindex'; in LocalSettings.php and/or adjust your robots.txt file.
See Manual:$wgNamespaceRobotPolicies for more details. Bawolff (talk) 15:52, 7 April 2023 (UTC)
Thanks a lot Bawolff!
I'll try... Fernando Ariani (talk) 14:16, 8 April 2023 (UTC)
Sorry, but I can't find the page to edit this code.
Where should I find LocalSettings.php? Fernando Ariani (talk) 14:23, 8 April 2023 (UTC)
Is this your own wiki or someone else's wiki or wikimedia?
If this is someone else's wiki, you can maybe place __NOINDEX__ on a page (whether that works depends on config). Bawolff (talk) 17:20, 8 April 2023 (UTC)
Hi Bawolff,
It's. mine. Anyway, I don't know how, but for some reason it seems that it is already disallowed on both pages, as you see bellow..
Thanks a lot for your attention!!
Cheers,
Fernando
==Basic information==
Display title User:Fernando Ariani
Default sort key Fernando Ariani
Page length (in bytes) 0
Namespace ID 2
Namespace User
Page ID 0
Page content language en - English
Page content model wikitext
User ID 17759662
Indexing by robots Disallowed
Number of page watchers Fewer than 30 watchers
Number of redirects to this page 0
Number of subpages of this page 0 (0 redirects; 0 non-redirects)
Page views in the past 30 days 6
==Basic information==
Display title User talk:Fernando Ariani
Default sort key Fernando Ariani
Page length (in bytes) 0
Namespace ID 3
Namespace User_talk
Page ID 0
Page content language en - English
Page content model wikitext
Indexing by robots Disallowed
Number of page watchers Fewer than 30 watchers
Number of redirects to this page 0
Number of subpages of this page 0 (0 redirects; 0 non-redirects)
Page views in the past 30 days 1

Fernando Ariani (talk) 18:43, 9 April 2023 (UTC)

Very weird this interface.... Fernando Ariani (talk) 18:44, 9 April 2023 (UTC)
Note that, once the page has been indexed by search engines, disallowing it may not remove it from search indexes until some time. You can manually remove it if you create an account on Google search console and manually send a request for removing that URL from the index. Ciencia Al Poder (talk) 18:56, 9 April 2023 (UTC)
Thanks for your help, but I can't upload the verification file to my page, and therefore I can't do it from GSC (which I am very familiar to procedures I have to make eventually on my Domain's URLS 189.60.153.89 (talk) 13:20, 11 April 2023 (UTC)
It's me! I wasn't logged... Fernando Ariani (talk) 13:21, 11 April 2023 (UTC)
p.s. You should find LocalSettings.php in the mediawiki directory on your web server. Bawolff (talk) 21:34, 9 April 2023 (UTC)
Thanks for your patience Bawolff, but I explored every directory I could find, but didn't see this option, so far... 189.60.153.89 (talk) 13:21, 11 April 2023 (UTC)
It's me! I wasn't logged... Fernando Ariani (talk) 13:22, 11 April 2023 (UTC)

Video Usage and Monetization

Hi team,

I am looking for license clarification. I made a video with files from Wiki Commons for a song I wrote and posed it on YouTube. I put the licenses and attributions in a comment. The video is free to watch on YouTube. Can I monetize income from commercial clicks or sale of merchandise linked on the video or commented by me on the YouTube platform?

Thank you! Smccarl (talk) 20:49, 7 April 2023 (UTC)

Generally yes.
Different files have different license requirements and some are stricter than others. Usually this means you might have to credit the author of the files you used in a specific way. Sometimes they require that derrived works also have to be released under the same terms. All files on wikimedia commons do allow commercial use. Anyways the rules can be a bit complicated and depend on which files you use.
anyways, this particular page is more for technical help. For licensing help i would suggest asking at c:Commons:Help desk and include a list of all files used (or at least their licenses) Bawolff (talk) 21:23, 7 April 2023 (UTC)

Can not edit main page that is hacked by self-registered users

Hello,


I get this error when I click on the edit tab:


Exception encountered, of type "TypeError"


I found that I have many unautherised users. I created the site many years ago and forgot to secure it. Where in the SQL DB I can prevent self-regiseterd users?


Also, where in the DB I can remove/edit the contents they changed?


I found the pmpage table and removed the unwanted pages, and similarly the unwanted users from pmuser. I need to edit the page contents, and need to prevent self-registration please. I also need to return the web interface editing not from the DB only.


Thank you for your support


Manal Mehelal (talk) 13:29, 8 April 2023 (UTC)

See manual:restricting access.
Is the TypeError a js error or a php error? If its the latter set $wgShowExceptionDetails=true; in LocalSettings.php
We discourage people from directly editing the database. You may caue referential integrity issues. Bawolff (talk) 17:22, 8 April 2023 (UTC)
Thank you. Also, how to stop self-registered users and user contributions? It is a self-managed wiki,
here is the details of the Editing Exception
Exception encountered, of type "TypeError"
[229da518] /index.php?title=Main_Page&action=edit TypeError from line 3350 of /home/manalorama/patmine.manalhelal.com/includes/EditPage.php: implode(): Argument #2 ($array) must be of type ?array, string given
Backtrace:
#0 /home/manalorama/patmine.manalhelal.com/includes/EditPage.php(3350): implode(array, string)
#1 /home/manalorama/patmine.manalhelal.com/includes/EditPage.php(2581): EditPage->showStandardInputs()
#2 /home/manalorama/patmine.manalhelal.com/includes/EditPage.php(582): EditPage->showEditForm()
#3 /home/manalorama/patmine.manalhelal.com/includes/actions/EditAction.php(58): EditPage->edit()
#4 /home/manalorama/patmine.manalhelal.com/includes/MediaWiki.php(490): EditAction->show()
#5 /home/manalorama/patmine.manalhelal.com/includes/MediaWiki.php(287): MediaWiki->performAction(Article, Title)
#6 /home/manalorama/patmine.manalhelal.com/includes/MediaWiki.php(714): MediaWiki->performRequest()
#7 /home/manalorama/patmine.manalhelal.com/includes/MediaWiki.php(508): MediaWiki->main()
#8 /home/manalorama/patmine.manalhelal.com/index.php(41): MediaWiki->run()
#9 {main} Mehelal (talk) 14:42, 9 April 2023 (UTC)
Exception is probably related to an extension related to page editing. Make sure your extensions are the correct version for your version of mediawiki.
See the link i linked to for how to configure access control. You probably want settings
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['user']['edit'] = false; Bawolff (talk) 17:11, 9 April 2023 (UTC)
I do not know how to make sure that there are any extensions in the first place. Can you please give some instructions. Thank you very much for your support Mehelal (talk) 17:59, 12 April 2023 (UTC)
Which extensions you are using should be listed at Special:Version and can be configured in LocalSettings.php (look for wfLoadExtension lines) Bawolff (talk) 22:29, 12 April 2023 (UTC)
These are the only ones I can find, and I disabled them all. I still get the same error:
# The following extensions were automatically enabled:
#wfLoadExtension( 'Cite' );
#wfLoadExtension( 'CiteThisPage' );
#wfLoadExtension( 'PdfHandler' );
#wfLoadExtension( 'SpamBlacklist' );
#wfLoadExtension( 'TitleBlacklist' );
#wfLoadExtension( 'WikiEditor' );
In wordpress there is wp_admin page from which there is a Dashboard that extensions, pages, everything can be edoted, versions and updates and so forth. Is there a similar page for MediaWiki?
Thank you very much for your support, Mehelal (talk) 23:25, 30 April 2023 (UTC)

Problem with Database-Update to 1.39.3

Hi!

I hope that issue is easy for a specialist - just not for me.

In the process of upgrading to Mediawiki from 1.35 to 1.39.3 with mw-config I started the database-update. An error 1091 occures:


"Table revision contains rev_text_id field. Dropping...

An error occurred:

Error 1091: Can't DROP INDEX `user_timestamp`; check that it exists

Function: Wikimedia\Rdbms\Database::sourceFile( /home/www/mediawiki_kempedia_3903/maintenance/archives/patch-revision-actor-comment-MCR.sql )

Query: ALTER TABLE `revision`

DROP INDEX user_timestamp,

DROP INDEX page_user_timestamp,

DROP INDEX usertext_timestamp,

DROP COLUMN rev_text_id,

DROP COLUMN rev_comment,

DROP COLUMN rev_user,

DROP COLUMN rev_user_text,

DROP COLUMN rev_content_model,

DROP COLUMN rev_content_format"


In deed the table revision show only following indices in phpmyadmin:

Indizes


The indices the system want to drop don't exist.

Can anybody help me? What can I do?

Best regards

Rainer Rainerhamm (talk) 07:59, 9 April 2023 (UTC)

Sorry, here are the requested data:
Can't anybody help? Rainerhamm (talk) 14:07, 13 April 2023 (UTC)
phab:T331608 might be the same bug Malyacko (talk) 15:04, 13 April 2023 (UTC)
Yes, it looks similar.
Now I am at a loss, because there is no reaction an no support.
I tried to update to 1.38.6. That was successful.
Update from 1.38.6 to 1.39.3 brings the same error.
What can I do???? Rainerhamm (talk) 14:25, 27 April 2023 (UTC)
Did you find a solution ? Crashone (talk) 10:17, 2 July 2023 (UTC)
I just ran into this issue and added my experience to T331608. Let's hope for someone who perhaps has a clue about what to do in this situation. For me, the update to 1.39.6 fails. [[kgh]] (talk) 17:58, 7 February 2024 (UTC)

Updating problems from 1.38.6 to 1.39.3

Hi,

My 1.38.6 wiki website has following settings:

MediaWiki 1.38.6
PHP 8.0.28 (cgi-fcgi)
MySQL 5.7.34
ICU 57.1
Pygments 2.2.0
Lua 5.1.5

I have tried to update from 1.38.6 to 1.39.3 and after launching update script I have following error:

[da4be340e3d9f5d22d8537fc] / Wikimedia\Rdbms\DBQueryError: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading or after adding a new extension?

Please see https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Upgrading and https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:How_to_debug for more information.

Error 1146: Table 'wikijournal_org.ru__revision_actor_temp' doesn't exist (127.0.0.1)

Function: MessageCache::loadFromDB(ru)-small

Query: SELECT /*! STRAIGHT_JOIN */ rev_id,rev_page,rev_timestamp,rev_minor_edit,rev_deleted,rev_len,rev_parent_id,rev_sha1,comment_rev_comment.comment_text AS `rev_comment_text`,comment_rev_comment.comment_data AS `rev_comment_data`,comment_rev_comment.comment_id AS `rev_comment_cid`,actor_rev_user.actor_user AS `rev_user`,actor_rev_user.actor_name AS `rev_user_text`,temp_rev_user.revactor_actor AS `rev_actor`,page_namespace,page_title,page_id,page_latest,page_is_redirect,page_len FROM `ru__page` JOIN `ru__revision` ON ((page_id = rev_page)) JOIN `ru__revision_comment_temp` `temp_rev_comment` ON ((temp_rev_comment.revcomment_rev = rev_id)) JOIN `ru__comment` `comment_rev_comment` ON ((comment_rev_comment.comment_id = temp_rev_comment.revcomment_comment_id)) JOIN `ru__revision_actor_temp` `temp_rev_user` ON ((temp_rev_user.revactor_rev = rev_id)) JOIN `wikijournal_org`.`ru__actor` `actor_rev_user` ON ((actor_rev_user.actor_id = temp_rev_user.revactor_actor)) WHERE page_is_redirect = 0 AND page_namespace = 8 AND (page_title NOT LIKE '%/%' ESCAPE '`' ) AND (page_len <= 10000) AND (page_latest = rev_id)

Backtrace:

from /var/www/admin/www/mediawiki-1.38.6/includes/libs/rdbms/database/Database.php(1606)

#0 /var/www/admin/www/mediawiki-1.38.6/includes/libs/rdbms/database/Database.php(1590): Wikimedia\Rdbms\Database->getQueryException(string, integer, string, string)

#1 /var/www/admin/www/mediawiki-1.38.6/includes/libs/rdbms/database/Database.php(1564): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)

#2 /var/www/admin/www/mediawiki-1.38.6/includes/libs/rdbms/database/Database.php(1173): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)

#3 /var/www/admin/www/mediawiki-1.38.6/includes/libs/rdbms/database/Database.php(1813): Wikimedia\Rdbms\Database->query(string, string, integer)

#4 /var/www/admin/www/mediawiki-1.38.6/includes/libs/rdbms/database/DBConnRef.php(69): Wikimedia\Rdbms\Database->select(array, array, array, string, array, array)

#5 /var/www/admin/www/mediawiki-1.38.6/includes/libs/rdbms/database/DBConnRef.php(320): Wikimedia\Rdbms\DBConnRef->__call(string, array)

#6 /var/www/admin/www/mediawiki-1.38.6/includes/cache/MessageCache.php(569): Wikimedia\Rdbms\DBConnRef->select(array, array, array, string, array, array)

#7 /var/www/admin/www/mediawiki-1.38.6/includes/cache/MessageCache.php(447): MessageCache->loadFromDB(string, NULL)

#8 /var/www/admin/www/mediawiki-1.38.6/includes/cache/MessageCache.php(370): MessageCache->loadFromDBWithLock(string, array, NULL)

#9 /var/www/admin/www/mediawiki-1.38.6/includes/cache/MessageCache.php(1112): MessageCache->load(string)

#10 /var/www/admin/www/mediawiki-1.38.6/includes/cache/MessageCache.php(1040): MessageCache->getMsgFromNamespace(string, string)

#11 /var/www/admin/www/mediawiki-1.38.6/includes/cache/MessageCache.php(1011): MessageCache->getMessageForLang(Language, string, boolean, array)

#12 /var/www/admin/www/mediawiki-1.38.6/includes/cache/MessageCache.php(953): MessageCache->getMessageFromFallbackChain(Language, string, boolean)

#13 /var/www/admin/www/mediawiki-1.38.6/includes/language/Message.php(1491): MessageCache->get(string, boolean, Language)

#14 /var/www/admin/www/mediawiki-1.38.6/includes/language/Message.php(968): Message->fetchMessage()

#15 /var/www/admin/www/mediawiki-1.38.6/includes/language/Message.php(1071): Message->format(string)

#16 /var/www/admin/www/mediawiki-1.38.6/includes/Title.php(715): Message->text()

#17 /var/www/admin/www/mediawiki-1.38.6/includes/MediaWiki.php(142): Title::newMainPage()

#18 /var/www/admin/www/mediawiki-1.38.6/includes/MediaWiki.php(162): MediaWiki->parseTitle()

#19 /var/www/admin/www/mediawiki-1.38.6/includes/MediaWiki.php(870): MediaWiki->getTitle()

#20 /var/www/admin/www/mediawiki-1.38.6/includes/MediaWiki.php(563): MediaWiki->main()

#21 /var/www/admin/www/mediawiki-1.38.6/index.php(53): MediaWiki->run()

#22 /var/www/admin/www/mediawiki-1.38.6/index.php(46): wfIndexMain()

#23 {main}

Could you please help me with this, what shall I do to fix the problem? Fokebox (talk) 10:49, 10 April 2023 (UTC)

Can you try upgrading to lesser version (say 1.39.1) and then upgrading to 1.39.3 from there ? Tinss (talk) 21:33, 11 April 2023 (UTC)
This way seems to be working, except couple of things.
1) I have several localizations using shared Database and files of the website. (en.mywikiste.org, ru.mywikisite, en.mywikiste ect.), so first of all when launching update.php. I have a warning:
Some of your configuration settings caused a warning:
* SharedDB is deprecated: since 1.21 In new code, use the $wiki parameter to
  LBFactory::getMainLB() to access remote databases. Using
  LBFactory::getMainLB() allows the shared database to reside on separate
  servers to the wiki's own database, with suitable configuration of
  $wgLBFactoryConf
Please correct the issue before running update.php again.
If you know what you are doing, you can bypass this check
using --skip-config-validation.
So I have run the script php update.php --skip-config-validation.
And all databases where updated fine, except english version of the website, so when I go to my en.mywikisite.org I have the same error:
[71d8c5828b85d0578d561e3a] / Wikimedia\Rdbms\DBQueryError: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading or after adding a new extension?
Please see https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Upgrading and https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:How_to_debug for more information.
Error 1146: Table 'wikijournal_org.en__revision_actor_temp' doesn't exist (127.0.0.1)
Function: MessageCache::loadFromDB(en)-small
Query: SELECT /*! STRAIGHT_JOIN */ rev_id,rev_page,rev_timestamp,rev_minor_edit,rev_deleted,rev_len,rev_parent_id,rev_sha1,comment_rev_comment.comment_text AS `rev_comment_text`,comment_rev_comment.comment_data AS `rev_comment_data`,comment_rev_comment.comment_id AS `rev_comment_cid`,actor_rev_user.actor_user AS `rev_user`,actor_rev_user.actor_name AS `rev_user_text`,temp_rev_user.revactor_actor AS `rev_actor`,page_namespace,page_title,page_id,page_latest,page_is_redirect,page_len FROM `en__page` JOIN `en__revision` ON ((page_id = rev_page)) JOIN `en__revision_comment_temp` `temp_rev_comment` ON ((temp_rev_comment.revcomment_rev = rev_id)) JOIN `en__comment` `comment_rev_comment` ON ((comment_rev_comment.comment_id = temp_rev_comment.revcomment_comment_id)) JOIN `en__revision_actor_temp` `temp_rev_user` ON ((temp_rev_user.revactor_rev = rev_id)) JOIN `wikijournal_org`.`ru__actor` `actor_rev_user` ON ((actor_rev_user.actor_id = temp_rev_user.revactor_actor)) WHERE page_is_redirect = 0 AND page_namespace = 8 AND (page_title NOT LIKE '%/%' ESCAPE '`' ) AND (page_len <= 10000) AND (page_latest = rev_id)
Backtrace:
from /var/www/admin/www/mediawiki-1.38.6/includes/libs/rdbms/database/Database.php(1606)
#0 /var/www/admin/www/mediawiki-1.38.6/includes/libs/rdbms/database/Database.php(1590): Wikimedia\Rdbms\Database->getQueryException(string, integer, string, string)
#1 /var/www/admin/www/mediawiki-1.38.6/includes/libs/rdbms/database/Database.php(1564): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)
#2 /var/www/admin/www/mediawiki-1.38.6/includes/libs/rdbms/database/Database.php(1173): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#3 /var/www/admin/www/mediawiki-1.38.6/includes/libs/rdbms/database/Database.php(1813): Wikimedia\Rdbms\Database->query(string, string, integer)
#4 /var/www/admin/www/mediawiki-1.38.6/includes/libs/rdbms/database/DBConnRef.php(69): Wikimedia\Rdbms\Database->select(array, array, array, string, array, array)
#5 /var/www/admin/www/mediawiki-1.38.6/includes/libs/rdbms/database/DBConnRef.php(320): Wikimedia\Rdbms\DBConnRef->__call(string, array)
#6 /var/www/admin/www/mediawiki-1.38.6/includes/cache/MessageCache.php(569): Wikimedia\Rdbms\DBConnRef->select(array, array, array, string, array, array)
#7 /var/www/admin/www/mediawiki-1.38.6/includes/cache/MessageCache.php(447): MessageCache->loadFromDB(string, NULL)
#8 /var/www/admin/www/mediawiki-1.38.6/includes/cache/MessageCache.php(370): MessageCache->loadFromDBWithLock(string, array, NULL)
#9 /var/www/admin/www/mediawiki-1.38.6/includes/cache/MessageCache.php(1112): MessageCache->load(string)
Other wikis work fine meanwhile.
2) All interwiki links disappeared, they showb basically on the top-right corner of the page.
Your help will be appriciated! Fokebox (talk) 13:25, 12 April 2023 (UTC)
So the main issue on the english version of my wiki remains the same:
[623a7c71a787e1640a0512b6] / Wikimedia\Rdbms\DBQueryError: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading or after adding a new extension?
Please see https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Upgrading and https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:How_to_debug for more information.
Error 1146: Table 'wikijournal_org.en__revision_actor_temp' doesn't exist (127.0.0.1) Fokebox (talk) 13:31, 12 April 2023 (UTC)
And what is interesting while updating I see this in the logs:
...revision_actor_temp doesn't exist.
Running maintenance/updateRestrictions.php...
Migration is not needed.
done.
So I guess somehow the table is not being created. May that's the reason of the issue? Fokebox (talk) 13:43, 12 April 2023 (UTC)
Since you have many DBs, could it be that your config fails to point to the right DB in console mode and ends up upgrading only the russian version and not the english version ?
And in the dumps you're giving me, it seems the update script is running from a 1.38.6 codebase ... shouldn't it be 1.39.x ? Tinss (talk) 03:09, 13 April 2023 (UTC)
I have made finally successful upgrade. The problem I believe was in cache as I kept both folders on server. As I have deleted the previous version folder all errors are gone!
Now I have only final concers - missing interwiki links. Don't know what to do to make them on a page as usual. Fokebox (talk) 09:26, 13 April 2023 (UTC)
Yes, I have also noticed that the error refers to the previous version. Anyway I have made a back up and later will retry to upgrade MW again and let you know what I have. Fokebox (talk) 07:43, 13 April 2023 (UTC)
And one more thing. As I have special settings for my wiki farm. When I launch the update.php I have following warning:
root@mail:/var/www/admin/tools# ./update_wikis_2023.sh
Run update script for all wikis...
Warning: Undefined array key "SERVER_NAME" in /var/www/admin/www/mediawiki-1.39.0/LocalSettings.php on line 383
Some of your configuration settings caused a warning:
* SharedDB is deprecated: since 1.21 In new code, use the $wiki parameter to
  LBFactory::getMainLB() to access remote databases. Using
  LBFactory::getMainLB() allows the shared database to reside on separate
  servers to the wiki's own database, with suitable configuration of
  $wgLBFactoryConf
Please correct the issue before running update.php again.
If you know what you are doing, you can bypass this check
using --skip-config-validation.
Two things here are unclear.
  • "SERVER_NAME" i on line 383 I have as follows:
$uri = strtolower( $_SERVER['SERVER_NAME'] ); // Get the calling URI
Previously this line was okay for upgrading.
  • As I have shared tables for my wiki farm as follows:
$wgSharedDB = "wikijournal_org";
$wgSharedPrefix = "ru__";
So I don't know why while upgrading I have a notification: SharedDB is deprecated: since 1.21 Fokebox (talk) 09:48, 13 April 2023 (UTC)

References

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


<nowiki>

<ref>bla bla bla</ref>

<ref>blo blo blo</ref>


<references />


ergibt bei mir

<ref>bla bla bla</ref>

<ref>blo blo blo</ref>


und nicht, wie gewünscht

bla bla bla

blo blo blo


Wie muß ich <references /> richtig schreiben??

Vielen Dank für Hilfe

</nowiki> 2003:E7:A720:8C15:6DB3:43B2:5BAD:9F3E (talk) 12:22, 10 April 2023 (UTC)

Please see "Post a new question" in the sidebar for info to provide, plus also provide your exact version of the Cite extension installed. Malyacko (talk) 22:30, 10 April 2023 (UTC)
Version 38.4
MySQL / MariaDB
Wiki is closed type (no URL)
<ref>Paul Arthur Merkel: ''Die Basalte des Grossen und Kleinen Teuchelberg und des Langholz'' (1895) [https://archive.org/details/diebasaltedesgr00merkgoog/page/n3 Digitalisat]</ref> Abrape (talk) 22:48, 10 April 2023 (UTC)
Version 38.4 does not exist. And my question was which exact version of Cite is installed. Please do answer all questions instead of ignoring some. Thanks. Malyacko (talk) 09:33, 11 April 2023 (UTC)
Did you install extension:Cite Bawolff (talk) 23:05, 10 April 2023 (UTC)
I did install extension:Cite now
It's working fine !
Thank Malyacko and Bawolff for Help Abrape (talk) 09:39, 11 April 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

None of the SMW extensions are working in mediawiki docker image

Hi,

We are trying to add SMW extensions into MW docker image of MQ version 1.39x & php 8.

facing issues when trying to add any of the smw extension.

As I unable to add semantic-media-wiki , so none of the smw extension are working.

composer require mediawiki/semantic-media-wiki:^4.1.1

added in localsettings.php

enableSemantics('{http://app-xyz.com}');

wfLoadExtension( 'SemanticMediaWiki' );


Function: SMW\SQLStore\TableBuilder\MySQLTableBuilder::doUpdateFieldType

#79 64.16 Query: ALTER TABLE `smw_object_ids` DROP PRIMARY KEY

#79 64.16

#79 64.16 #0 /var/www/html/includes/libs/rdbms/database/Database.php(1602): Wikimedia\Rdbms\Database->getQueryException('Can't DROP 'PRI...', 1091, 'ALTER TABLE `sm...', 'SMW\\SQLStore\\Ta...')

#79 64.16 #1 /var/www/html/includes/libs/rdbms/database/Database.php(1576): Wikimedia\Rdbms\Database->getQueryExceptionAndLog('Can't DROP 'PRI...', 1091, 'ALTER TABLE `sm...', 'SMW\\SQLStore\\Ta...')

#79 64.16 #2 /var/www/html/includes/libs/rdbms/database/Database.php(952): Wikimedia\Rdbms\Database->reportQueryError('Can't DROP 'PRI...', 1091, 'ALTER TABLE `sm...', 'SMW\\SQLStore\\Ta...', false)

#79 64.16 #3 /var/www/html/includes/libs/rdbms/database/DBConnRef.php(103): Wikimedia\Rdbms\Database->query('ALTER TABLE `sm...', 'SMW\\SQLStore\\Ta...', 0)

#79 64.16 #4 /var/www/html/includes/libs/rdbms/database/DBConnRef.php(293): Wikimedia\Rdbms\DBConnRef->__call('query', Array)   

#79 64.16 #5 /var/www/html/extensions/SemanticMediaWiki/src/SQLStore/TableBuilder/MySQLTableBuilder.php(231): Wikimedia\Rdbms\DBConnRef->query('ALTER TABLE `sm...', 'SMW\\SQLStore\\Ta...')

#79 64.16 #6 /var/www/html/extensions/SemanticMediaWiki/src/SQLStore/TableBuilder/MySQLTableBuilder.php(201): SMW\SQLStore\TableBuilder\MySQLTableBuilder->doUpdateFieldType('`smw_object_ids...', 'smw_id', 'FIRST', 'INT UNSIGNED NO...', 'INT(11) UNSIGNE...')

#79 64.16 #7 /var/www/html/extensions/SemanticMediaWiki/src/SQLStore/TableBuilder/MySQLTableBuilder.php(131): SMW\SQLStore\TableBuilder\MySQLTableBuilder->doUpdateField('`smw_object_ids...', 'smw_id', 'INT(11) UNSIGNE...', Array, 'FIRST', Array)

#79 64.16 #8 /var/www/html/extensions/SemanticMediaWiki/src/SQLStore/TableBuilder/TableBuilder.php(159): SMW\SQLStore\TableBuilder\MySQLTableBuilder->doUpdateTable('`smw_object_ids...', Array)

#79 64.16 #9 /var/www/html/extensions/SemanticMediaWiki/src/SQLStore/Installer.php(229): SMW\SQLStore\TableBuilder\TableBuilder->create(Object(SMW\SQLStore\TableBuilder\Table))

#79 64.16 #10 /var/www/html/extensions/SemanticMediaWiki/src/SQLStore/SQLStore.php(452): SMW\SQLStore\Installer->install(Object(SMW\Options))

#79 64.16 #11 /var/www/html/extensions/SemanticMediaWiki/src/Store.php(488): SMW\SQLStore\SQLStore->setup(Object(SMW\Options))  

#79 64.16 #12 /var/www/html/includes/installer/DatabaseUpdater.php(547): SMW\Store::setupStore(true, Object(SMW\Options))       

#79 64.16 #13 /var/www/html/includes/installer/DatabaseUpdater.php(515): DatabaseUpdater->runUpdates(Array, true)

#79 64.16 #14 /var/www/html/maintenance/update.php(202): DatabaseUpdater->doUpdates(Array)

#79 64.16 #15 /var/www/html/maintenance/includes/MaintenanceRunner.php(309): UpdateMediaWiki->execute()

#79 64.16 #16 /var/www/html/maintenance/doMaintenance.php(85): MediaWiki\Maintenance\MaintenanceRunner->run()

#79 64.16 #17 /var/www/html/maintenance/update.php(312): require_once('/var/www/html/m...')

#79 64.16 #18 {main}

------


pls suggest any solution. Pooja2425 (talk) 14:45, 10 April 2023 (UTC)

I think you cut off the beginning of that error message. Bawolff (talk) 21:25, 10 April 2023 (UTC)
@Bawolff
...hit_counter table already exists.
#79 61.19 ...page table does not contain page_counter field.
#79 61.34 ...ldap_domains table already exists.
#79 61.50 ...mathoid table already exists.
#79 61.66 ...mathlatexml table already exists.
#79 62.13 ...have math_png field in mathoid table.
#79 62.28 ...oathauth_users table already exists.
#79 62.60 ...have module field in oathauth_users table.
#79 63.06 ...oathauth_users table does not contain secret field.
#79 63.69
#79 63.69 === Semantic MediaWiki ====================================================
#79 63.69
#79 63.69 Semantic MediaWiki:                                                   4.1.1
#79 63.69 MediaWiki:                                                           1.39.3
#79 63.69
#79 63.69 --- Database setup --------------------------------------------------------
#79 63.69
#79 63.69 Storage engine:                                                SMWSQLStore3
#79 63.69 Database (type/version):                                     mysql (8.0.31)
#79 63.69
#79 63.69 Checking version requirement ...
#79 63.69    ... done.
#79 63.69
#79 63.69 ------------------------------------------------------ Core table(s) ------
#79 63.69
#79 63.69 Checking table smw_object_ids ...
#79 63.85    Table already exists, checking structure ...
#79 64.00    ... changing type of field smw_id from 'INT UNSIGNED NOT NULL AUTO_INCREMENT' to 'INT(11) UNSIGNED NOT NULL KEY AUTO_INCREMENT' ... Wikimedia\Rdbms\DBQueryError from line 1618 of /var/www/html/includes/libs/rdbms/database/Database.php: Error 1091: Can't DROP 'PRIMARY'; check that column/key exists
#79 64.16 Function: SMW\SQLStore\TableBuilder\MySQLTableBuilder::doUpdateFieldType
#79 64.16 Query: ALTER TABLE `smw_object_ids` DROP PRIMARY KEY
#79 64.16
#79 64.16 #0 /var/www/html/includes/libs/rdbms/database/Database.php(1602): Wikimedia\Rdbms\Database->getQueryException('Can't DROP 'PRI...', 1091, 'ALTER TABLE `sm...', 'SMW\\SQLStore\\Ta...')
#79 64.16 #1 /var/www/html/includes/libs/rdbms/database/Database.php(1576): Wikimedia\Rdbms\Database->getQueryExceptionAndLog('Can't DROP 'PRI...', 1091, 'ALTER TABLE `sm...', 'SMW\\SQLStore\\Ta...')
#79 64.16 #2 /var/www/html/includes/libs/rdbms/database/Database.php(952): Wikimedia\Rdbms\Database->reportQueryError('Can't DROP 'PRI...', 1091, 'ALTER TABLE `sm...', 'SMW\\SQLStore\\Ta...', false)
#79 64.16 #3 /var/www/html/includes/libs/rdbms/database/DBConnRef.php(103): Wikimedia\Rdbms\Database->query('ALTER TABLE `sm...', 'SMW\\SQLStore\\Ta...', 0)
#79 64.16 #4 /var/www/html/includes/libs/rdbms/database/DBConnRef.php(293): Wikimedia\Rdbms\DBConnRef->__call('query', Array)   
#79 64.16 #5 /var/www/html/extensions/SemanticMediaWiki/src/SQLStore/TableBuilder/MySQLTableBuilder.php(231): Wikimedia\Rdbms\DBConnRef->query('ALTER TABLE `sm...', 'SMW\\SQLStore\\Ta...')
#79 64.16 #6 /var/www/html/extensions/SemanticMediaWiki/src/SQLStore/TableBuilder/MySQLTableBuilder.php(201): SMW\SQLStore\TableBuilder\MySQLTableBuilder->doUpdateFieldType('`smw_object_ids...', 'smw_id', 'FIRST', 'INT UNSIGNED NO...', 'INT(11) UNSIGNE...')
#79 64.16 #7 /var/www/html/extensions/SemanticMediaWiki/src/SQLStore/TableBuilder/MySQLTableBuilder.php(131): SMW\SQLStore\TableBuilder\MySQLTableBuilder->doUpdateField('`smw_object_ids...', 'smw_id', 'INT(11) UNSIGNE...', Array, 'FIRST', Array)
#79 64.16 #8 /var/www/html/extensions/SemanticMediaWiki/src/SQLStore/TableBuilder/TableBuilder.php(159): SMW\SQLStore\TableBuilder\MySQLTableBuilder->doUpdateTable('`smw_object_ids...', Array)
#79 64.16 #9 /var/www/html/extensions/SemanticMediaWiki/src/SQLStore/Installer.php(229): SMW\SQLStore\TableBuilder\TableBuilder->create(Object(SMW\SQLStore\TableBuilder\Table))
#79 64.16 #10 /var/www/html/extensions/SemanticMediaWiki/src/SQLStore/SQLStore.php(452): SMW\SQLStore\Installer->install(Object(SMW\Options))
#79 64.16 #11 /var/www/html/extensions/SemanticMediaWiki/src/Store.php(488): SMW\SQLStore\SQLStore->setup(Object(SMW\Options))  
#79 64.16 #12 /var/www/html/includes/installer/DatabaseUpdater.php(547): SMW\Store::setupStore(true, Object(SMW\Options))       
#79 64.16 #13 /var/www/html/includes/installer/DatabaseUpdater.php(515): DatabaseUpdater->runUpdates(Array, true)
#79 64.16 #14 /var/www/html/maintenance/update.php(202): DatabaseUpdater->doUpdates(Array)
#79 64.16 #15 /var/www/html/maintenance/includes/MaintenanceRunner.php(309): UpdateMediaWiki->execute()
#79 64.16 #16 /var/www/html/maintenance/doMaintenance.php(85): MediaWiki\Maintenance\MaintenanceRunner->run()
#79 64.16 #17 /var/www/html/maintenance/update.php(312): require_once('/var/www/html/m...')
#79 64.16 #18 {main}
------ Pooja2425 (talk) 06:42, 11 April 2023 (UTC)
I tried to install semantic-media-wiki extension with composer same way in Virtual machine.
Then its installed easily. only issue is coming when trying same steps in MW docker image Pooja2425 (talk) 06:46, 11 April 2023 (UTC)

What is this wiki about?

What is this wiki about? 89.236.231.57 (talk) 15:31, 10 April 2023 (UTC)

Read Project:AboutAmmarpad (talk) 17:27, 10 April 2023 (UTC)
About what? If you say something I would be able to help you 41.116.95.128 (talk) 09:55, 11 April 2023 (UTC)

Add captions to specific parts of an image?

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


I'm wondering if there exists any modules or extensions that would allow for captions to be added to specific parts of an image. For example, see this danbooru image: https://danbooru.donmai.us/posts/3584920?q=parent%3A3584919 Omicron Man (talk) 22:21, 10 April 2023 (UTC)

I guess Extension:FileAnnotations although its not maintained. I think there is a gadget version.
Extension:ImageMap supports tooltips on hover i think. Bawolff (talk) 23:08, 10 April 2023 (UTC)
@Omicron Man Wikimedia Commons uses the following Gadget to provide this functionality commons:Help:Image-Annotator, Although I don't know how portable it is to other installations of MediaWiki. P858snake (talk) 08:25, 11 April 2023 (UTC)
Create a account with a different name and everything 41.116.95.128 (talk) 09:27, 11 April 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Is 39 supposed to list the 'pagename' as a template in page preview?

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


When I use the {{PAGESIZE:pagename}} magic word parser function to only retrieve the byte size of a page, with or without the optional |R, is the value for pagename supposed to appear in the "Templates used in this preview:" drop-down at the bottom of the source editor?


For example, if I go to my User namespace page on a wiki, type {{PAGESIZE:User:<my user page>}} using the source editor, then select "Preview" to see the changes on the page, when I scroll to the bottom and check "Templates used in this preview", it will show my user page is used as a template. But I didn't call it as a template through transclusion using {{User:<my user page>}}. I used a MediaWiki magic word.


I don't know if this is intentional or something wrong with the version of the wiki I am using, which is MediaWiki Version 1.39. I also don't know if a question like this goes here or somewhere else - sorry if I posted in the wrong place if this is the wrong place. Snowyamur9889 (talk) 06:34, 11 April 2023 (UTC)

Originally these were only transclusions of template contents indeed, but it does a bit more now. Whenever a page depends on another page/entity for the purpose of rendering, it will be listed there. That means that if something changes about your user page (like its pagesize), the page using the information will be notified that it has changed and it should update itself. So yes, this is intentional, you made the output of your page depend on {{User:<my user page>}}. You have 'transcluded' some information that is based on one page into another page. —TheDJ (Not WMF) (talkcontribs) 10:57, 11 April 2023 (UTC)
I see, that makes a lot of sense. Thanks for the clear explanation and quick response! Snowyamur9889 (talk) 21:05, 11 April 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

New directory management when upgrading

According to https://www.mediawiki.org/wiki/Manual:Upgrading one should extract the new version tarball in a new directory. Let us assume that my current path (where LocalSettings.php is located) is /home/mywiki/public_html. Do I create a new subfolder to public_html, i.e. /public_html/new or can I create /home/mywiki/public_html_new, add tarball + images + updated extensions + LocalSettings.php, etc, then run php /home/mywiki/public_html_new/maintenance/update.php and then rename directories as public_html → public_html_old and public_html_new → public_html?

In case something goes wrong, would swapping those directories be enough to work? I guess if dB changes were made, this will not be enough, so I would have somehow to reimport old version mysql dump? Spiros71 (talk) 12:25, 11 April 2023 (UTC)

I think I usually create a new directory alongside the current one, copy/download the extensions etc, swap the folders, then run update.php. Maybe I should swap the last two steps, but I suspect the whole thing will break for a minute or so either way.
If it all went wrong during update.php you might need to start again from a database backup. Jonathan3 (talk) 22:24, 12 April 2023 (UTC)

Unable to setup Short URL (404)

Hello. I installed and configured WikiMedia on my Debian 11 with success.

Product Version
MediaWiki 1.39.3
PHP 7.4.33 (cli)
MariaDB 10.5.18

After the installation i wanted to use short URL to hide the index.php from the site URL, but encountered issues after following the guide provided here [2].

Here is a summary of what is acutally in place :

Project Tree Structure

MediaWiki path : /var/www/chronicles.jikowiki.fr/

Content :

  1. api.php
  2. autoload.php
  3. cache
  4. CODE_OF_CONDUCT.md
  5. composer.json
  6. composer.local.json-sample
  7. COPYING
  8. CREDITS
  9. docs
  10. docker-compose.yml
  11. extensions
  12. FAQ
  13. HISTORY
  14. images
  15. img_auth.php
  16. index.php
  17. includes
  18. INSTALL
  19. jsduck.json
  20. languages
  21. load.php
  22. LocalSettings.php
  23. maintenance
  24. mw-config
  25. opensearch_desc.php
  26. README.md
  27. RELEASE-NOTES-1.39
  28. rest.php
  29. resources
  30. SECURITY
  31. skins
  32. tests
  33. thumb_handler.php
  34. thumb.php
  35. UPGRADE
  36. vendor

Apache VirtualHost Configuration

I did a redirection from http to https.

<VirtualHost *:80>
        ServerName chronicles.jikowiki.fr
        ServerAlias www.chronicles.jikowiki.fr

        Redirect permanent / https://chronicles.jikowiki.fr/
</VirtualHost>

<VirtualHost *:443>
        ServerName chronicles.jikowiki.fr
        ServerAlias www.chronicles.jikowiki.fr
        DocumentRoot /var/www/chronicles.jikowiki.fr

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        SSLEngine on
        SSLCertificateFile    "/etc/letsencrypt/live/chronicles.jikowiki.fr/fullchain.pem"
        SSLCertificateKeyFile "/etc/letsencrypt/live/chronicles.jikowiki.fr/privkey.pem"
        SSLStrictSNIVHostCheck Off
        SSLCipherSuite RC4-SHA:AES128-SHA:HIGH:!aNULL:!MD5

        RewriteEngine On
        RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
        RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
        RewriteRule ^(.*)$ %{DOCUMENT_ROOT}/index.php [L]

        RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
        RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
        RewriteRule ^/?images/thumb/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/thumb.php?f=$1&width=$2 [L,QSA,B]

        RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
        RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
        RewriteRule ^/?images/thumb/archive/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/thumb.php?f=$1&width=$2&archived=1 [L,QSA,B]
</VirtualHost>

LocalSettings.php

Here is the part that i changed with the Short URL tutorial.

$wgScriptPath = "";
$wgArticlePath = "/$1";
$wgEnableUploads = true;
$wgGenerateThumbnailOnParse = false;

The Error

404 Not Found
The requested URL was not found on this server.

Apache/2.4.56 (Debian) Server at chronicles.jikowiki.fr Port 443

What do I want

I would like to change the URL from https://chronicles.jikowiki.fr/index.php/Accueil to https://chronicles.jikowiki.fr/Accueil

Could you help me to fix those problems ? 109.9.64.172 (talk) 12:34, 11 April 2023 (UTC)

Change database of wiki

Hello, i want to move my wiki's database to a new database. The server remains the same, the system files are not moved. I just want to change the database. I have now made a backup of the database, simply created a new database, imported my backup there, entered everything in the local settings and replaced the file. Unfortunately my wiki doesn't work that way. Can someone help me? Please don't be confused by the link, version 1.39 is running


[3] Brender86 (talk) 19:25, 12 April 2023 (UTC)

The error sounds like you might not have copied the entire db over.
Did the name of the database change? Maybe that might effect the wiki id, which maybe might confuse mediawiki, i am not sure. Bawolff (talk) 22:27, 12 April 2023 (UTC)
Hm okay, i will check this. I can Copy the Database again...
The name of the Database ist different, yes... Brender86 (talk) 03:20, 13 April 2023 (UTC)
Hm, I copied another backup complete database again. Unfortunately, the mistakes remain. I then only adjusted the database settings.
$wgDBtype = "mysql";
$wgDBserver = "";
$wgDBname = "";
$wgDBuser = "";
$wgDBpassword =
did I forgot something? The rest stays the same, doesn't it? Brender86 (talk) 18:23, 13 April 2023 (UTC)
Do you mean you literally have those as the empty string? Because that's probably not a valid value.
Taking another look at your error message, what is the value of $wgDBprefix ? are you sure it is correct? Bawolff (talk) 18:32, 13 April 2023 (UTC)
I made a complete backup of the database with the MyOOS Dumper. Then a new database with a different name was created by my provider and the backup was imported there again. The database is not empty in my opinion? The $wgDBprefix value doesn't change when I copy the database, does it? Brender86 (talk) 18:37, 13 April 2023 (UTC)
Ah no! Its not a empty string. I have filled up with my data... Brender86 (talk) 18:38, 13 April 2023 (UTC)
Briefly, you had an error message about a missing table named "wikitext", which sounds like a DBprefix issue, but now your error message is back to the original one.
Can you compare the contents of slot_roles table in your original and current database? (Select * from slot_roles)
Normally at the very least, the first row is an item with a role_id of 1 and a role_name of 'main'. Can you verify that is in your backup and in your new database?
Also to check - you are using the same version of mediawiki between the old and the new server? [If not, did you run update.php] Bawolff (talk) 18:47, 13 April 2023 (UTC)
Sorry, I changed the database for a short time and the wikitext table is missing there. But it has nothing to do with this matter.
The wiki is still on the same server! I just want to move the database to another one.
The slot_roles table is actually empty in the new database! In the old database, the first line exists with the 1.
Why is that? Is the backup not done correctly or imported?
What is the best way to proceed now? Brender86 (talk) 18:58, 13 April 2023 (UTC)
it works now. I only imported one table again, now it works. Very funny! thank you!!!!! Brender86 (talk) 19:09, 13 April 2023 (UTC)

Unable to move a database from old to new server.

I finally got Mediawiki installed and get the "first page" on my browser.


When I try to import my database dump from the old server being replaced, I get this error:

MediaWiki internal error.

Original exception: [a34454491edf73167caf4c72] 2023-04-12 19:28:27: Fatal exception of type "Wikimedia\Rdbms\DBQueryError"

Exception caught inside exception handler.


I suspect that the structure of the old v new database is the difference, but what I know about databases is substantially less than what I know about Mediawiki.

Any tips what I've done wrong this time would be appreciated.

The original Mediawiki version is 1.32.0

The target server Mediawiki version is: 1.39.3 SteveRMann (talk) 20:20, 12 April 2023 (UTC)

You can get a better error message. I think the changes to LocalSettings.php you need for that are in Manual:Common errors and symptoms.
Here are some useful pages: Manual:Upgrading, Manual:Moving a wiki, Manual:Installing MediaWiki, Manual:Restoring a wiki from backup.
Maybe you didn't run update.php, a script that updates the database for the new version. Jonathan3 (talk) 22:17, 12 April 2023 (UTC)
Thank. update.php did make a significant difference.
It looks like most of the pages are OK with a few problems. Some images and templates made it to the new installation. And some pages did not make the move at all.
But, I am in a better place now.
Here are the steps I took:
After installing Apache, PHP and Mediawiki on my new PC, I got the "Mediawiki Installed" when I went to http://192.168.1.63/wiki/index.php
Next, I made a database backup, on the existing server:
sudo mysqldump --default-character-set=binary --user=steve --password=***** wikidb > /home/steve/tmp/dump_of_wikidb.sql
Move this dump file to a shared folder on the network.
sudo mv /home/steve/tmp/dump_of_wikidb.sql /mnt/z/dump_of_wikidb.sql
On the new server, using mysqladmin, destroy the existing database:
mysqladmin -u wikiuser -p drop wikidb
Create a new database
mysqladmin -u wikiuser -p create wikidb
Import the data to the new database
sudo mysql -u wikiuser -p wikidb < dump_of_wikidb.sql
Then
php /var/www/html/wiki/maintenance/update.php
Did I get something in the wrong sequence or did I leave out a step? Any ideas why some pages didn't make the move, or my images or templates? SteveRMann (talk) 16:23, 13 April 2023 (UTC)
Possibly related to Project:Support desk/Flow/2022/12#h-Pages_seem_to_be_gone-20221203122000, although i thought recent versions of 1.39 had improved the situation. Bawolff (talk) 18:35, 13 April 2023 (UTC)
Whoosh- right over my head. I know so little about databases that I am dangerous in there.
But the summary is almost verbatim fits my problem:
"This is a critical bug in MediaWiki 1.39, triggered when upgrading directly from 1.32 or older. Upgrade to LTS version 1.35 first."
It also got me to thinking, instead of moving to a new server and upgrading at the same time, why not install V1.32 on my new server first, copy the V 1.32 wiki to the new server, then do the upgrades to V1.35 then V 1.39 on the new server.
Now, I need to find older versions of Mediawiki...
"To users of MediaWiki versions version 1.36, 1.37 and 1.34 and earlier: These versions are no longer supported. Please update to a newer version of MediaWiki."
I really don't want to risk corrupting my existing Wiki that has thousands of ages and hundreds of image files by updating it in place.
I've started a new thread (Project:Support desk/Flow/2023/04#h-Upgrade_from_1.32.0_and_pages_are_missing?-20230413212000) because my issue has progressed. I was able to move most of my pages to the new Wiki, but not all. SteveRMann (talk) 18:56, 13 April 2023 (UTC)
Old versions of mediawiki are available at https://releases.wikimedia.org/mediawiki/
Its always a good idea to make a backup first just in case. Bawolff (talk) 22:37, 13 April 2023 (UTC)
It was a slow grind, but I have finally made the transition to the new server. My missing pages, images and templates were all due to one line in the LocalSettings.php:
$wgCapitalLinks = false;
It turns out that all the missing stuff began with a lower-case letter. SteveRMann (talk) 20:09, 14 April 2023 (UTC)

Fatal error authenticating user.

Hi,

We are setting up Mediawiki for the first time and trying to integrate with Azure for SAML authentication. Following is the environment detail.

MediaWiki-1.39.2

PHP-8.1.17 (fpm-fcgi)

MariaDB-10.6.12-MariaDB

ICU-67.1

Lua-5.1.5

I have installed latest SimpleSAML version - 2.0.3 at /var/simplesaml of our dabian server.

Extension version are as follows.

PluggableAuth-6.2 (68bec9b) 05:51, 28 March 2023

SimpleSAMLphp-5.0.1 (dcf0acb) 14:53, 28 March 2023

Issue:

I have been successfully able to bring up the portal and login using local accounts.

Integrated with Azure IDP and SimpleSAMLphp test with IDP returns all correct attributes.

I have verified that FQDN of media wiki server is specified correctly.

However, when I try to logon using Azure AD user, it takes me to IDP, successfully process logon and then returns to mediawiki specialpage https://my.server.com/wiki/Special:PluggableAuthLogin with error Fatal error authenticating user.

If I then click on login again it logs me in with same error on the front page but then I can continue browsing other pages mediawiki server as usual.

I enabled debug and I see few errors.

  • [PluggableAuth] Getting PluggableAuth instance
  • [PluggableAuth] Could not get authentication plugin instance.
  • [PluggableAuth] In execute()
  • [PluggableAuth] Getting PluggableAuth instance
  • [PluggableAuth] Could not get authentication plugin instance.

[PluggableAuth] ERROR: return to URL is null or empty

[DBQuery] LCStoreDB::get [0s] 127.0.0.1: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:pluggableauth-fatal-error' LIMIT 1

Can someone please assist with troubleshooting. Thanks. Ddave4489 (talk) 04:22, 13 April 2023 (UTC)

json comments should not be highlighted

On page -> https://www.mediawiki.org/wiki/Extension:Graph/Interactive_Graph_Tutorial if we look at first transcluded source text, we see that comments are interpreted in a strange way (sometimes single letters, other times groups). Since code is to be highlighted (here as Json), there is no uses to explore comments.

<syntaxhighlight lang="json">
{

// <translate nowrap><!--T:5--> We want to use Vega 2, and specify image size</translate>...

Any idea ? Thanks. -- Christian 🇫🇷 FR (talk) 06:24, 13 April 2023 (UTC)

Looks like support for comments in JSON is included in Pygments 2.12+, deploying that to Wikimedia sites is tracked as phab:T334433. Taavi (talk!) 09:24, 13 April 2023 (UTC)
thanks, will add the reference in Phab. Christian 🇫🇷 FR 🚨 (talk) 09:37, 13 April 2023 (UTC)

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Interwiki links are not shown after upgrade from 1.36.6 to 1.39.0.

MediaWiki 1.39.0
PHP 8.0.28 (cgi-fcgi)
MySQL 5.7.34

I used to have them just like in Wikipedia. Here there are shown at my MW 1.36.6 and now I don't see them at all. Any ideas how to resolve the issue?

Mediawiki interlinks at main page
Fokebox (talk) 10:48, 13 April 2023 (UTC)
I guess I know it happens. I look through the HTML code and see some bugs, the code incorrectly closes the tags, see screenshot. Any ideas how to fix it?
Some bugs in HTML code at MW 1.39.0
Fokebox (talk) 13:27, 13 April 2023 (UTC)
Why do you feel that is incorrect? Bawolff (talk) 14:07, 13 April 2023 (UTC)
Indeed html is correct, but then I don't know why the links are not there!? Fokebox (talk) 14:17, 13 April 2023 (UTC)
Meanwhile I tried to install other skin "Timeless" and interwiki links are there and workd fine. I don't know, may be something wrong with my Vector-2022 skin then?! Fokebox (talk) 15:15, 13 April 2023 (UTC)
Well, I am not sure. But anyway HTML code is there, but interwiki links are not at the page. Any advices how to understand what causes the problem? Fokebox (talk) 14:15, 13 April 2023 (UTC)
You need to install Extension:UniversalLanguageSelector for language links to appear and work properly in Vector-2022. – Ammarpad (talk) 21:12, 13 April 2023 (UTC)
Developers surprise as always. Basically I don't need this extension, but need interwiki links. I tried to install UniversalLanguage selector to my wiki farm, but its behaviour is quite strange:
  • Yes, the interwiki box appeared, once the extension is installed I see the links to other pages and while using the site the interwiki box is empty, no links displayed.
  • The language selector works fine when user is logged in, i.e. when I go to my english localisation (en.mywikiwebsite.org) the site in english, but as soon as user logged out, the english site works in Russian, in spite of that $wgLanguageCode set appropriate to each localization. Fokebox (talk) 09:49, 14 April 2023 (UTC)
As a developer, i also think vector-2022's dependency on ULS to show language links is rediculous.
I think uls does some stuff to try and give logged out users a preference. I think it can be configured. Bawolff (talk) 10:28, 14 April 2023 (UTC)
Can we do anything with this? Fokebox (talk) 13:19, 25 April 2023 (UTC)
Can we do anything with this? I have several bugs with ULS extension. I don't need this extension, but need interwiki links. I would install ULS if it worked fine for my wiki farm. Fokebox (talk) 07:05, 18 April 2023 (UTC)
You could create a feature request to not make Vector2022 depend on ULS. Malyacko (talk) 07:55, 19 April 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Page Layout with Templates?

Hello folks. On my wiki I'd like to recreate page layouts, but with different content. I'd rather not have to copy/paste the code all the time so wondering if that's something I can do with Templates?

image.

bold text -

text text test


Return to entry index

[[Category:]] [[Category:]]

My wiki URL is [4] and I'm running 1.39.3 with PHP 8.0.28 (litespeed). JoeyPajamas (talk) 11:04, 13 April 2023 (UTC)

Yes.
See help:templates Bawolff (talk) 21:55, 16 April 2023 (UTC)

Upgrade from 1.32.0 and pages are missing?

My problem is similar to this one: Project:Support desk/Flow/2022/12#h-Pages_seem_to_be_gone-20221203122000, but the solution is completely beyond my knowledge of databases.

I am trying to move a personal wiki to a new server. But I don't want to risk the only working copy of the wiki by doing an upgrade in place.

I thought I could just clone the existing wiki to a new computer then safely do the upgrade there. But, I can't do that since Version 1.32 is no longer available.

I tried upgrading it to Version 1.35, and some of my pages and some of my images and templates are missing.

Again, my knowledge of databases ends at the end of this sentence.

What can I do to recover my missing pages, images and templates short of manually copying the page markups and images from the old database? SteveRMann (talk) 21:20, 13 April 2023 (UTC)

FOUND IT!!!
I compared my old v new LocalSettings.php files. My old file had this entry:
#Disable first-letter capitalization of page names
$wgCapitalLinks = false;
When I put this into my new LocalSettings.php file, my missing pages appeared. Notably, my missing pages started with a lower-case letter. SteveRMann (talk) 02:29, 14 April 2023 (UTC)
LocalSettings.php is one of the files you should just copy across, before running update.php, I think.
Though I'd like to see what a modern LocalSettings.php looks like. Jonathan3 (talk) 18:19, 14 April 2023 (UTC)
I saw little difference from my installation from five years ago. SteveRMann (talk) 20:03, 14 April 2023 (UTC)

MediaWiki 1.39 requires PHP 7.4.3 or higher; you are using PHP 7.3.17.

my site is displaying this error after upgrading MediaWiki 1.32 to 1.39 and Lampp 7.4.27 to 7.4.30-1

**********************************

MediaWiki 1.39 internal error

MediaWiki 1.39 requires PHP 7.4.3 or higher; you are using PHP 7.3.17.

Supported PHP versions

Please consider upgrading your copy of PHP. PHP versions less than v7.3.0 are no longer supported by the PHP Group and will not receive security or bugfix updates.

If for some reason you are unable to upgrade your PHP version, you will need to download an older version of MediaWiki from our website. See our compatibility page for details of which versions are compatible with prior versions of PHP.

********************************************

why is this happening? The only php that exists on this server is the version 7.4.3 version present in the lampp stack. I'm positive there are no other versions of php on installed on this webserver.

Also, I did unpack mediawiki within a subfolder of the /lampp/htdocs folder per these instructions.

https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki_on_XAMPP

Could there be a something i am overlooking?

Software Versions

MediaWiki 1.39

xampp-linux-x64-7.4.30-1

Red Hat Enterprise Linux 8.7 (Ootpa) 35.140.104.55 (talk) 03:26, 14 April 2023 (UTC)

Can you create a page named info.php, containing just <?php phpinfo(); and place it in the web directory and browse to it. It should display what version of php your web server is using. Bawolff (talk) 04:05, 14 April 2023 (UTC)
Hi Bawolff,
I got a chance to revisit this issue. I just learned that joomla is where that instance of PHP 7.3.17 is from. I am still not sure why Media wiki is trying to use that version of PHP rather than the one installed on lampp 35.140.104.55 (talk) 21:18, 25 April 2023 (UTC)
MediaWiki does not control what version of php is in use. It is controlled by your web server. Bawolff (talk) 06:46, 26 April 2023 (UTC)

require_once "$IP/extensions/.../FileName.php";

Is the above still compatible with MW 1.39 for adding an extension? Spiros71 (talk) 07:12, 14 April 2023 (UTC)

It is up to the extension if it supports that. We do not reccomend extensions support that anymore, but if the ext does it will still work. Bawolff (talk) 10:30, 14 April 2023 (UTC)

Is there a program like MediaWiki just without version control?

Is there a program like MediaWiki just without version control?


Everything is basically the same, but just there are no versions; any article can have only one version/mode/state after being edited (generally there is no limit on editing the article but other versions aren't available and aren't stored anywhere). 2A10:8012:19:AD67:81FC:8744:739A:CC41 (talk) 13:30, 14 April 2023 (UTC)

why would you want that? just use FeatherWiki 149.233.57.31 (talk) 13:41, 14 April 2023 (UTC)
There are several reasons. Old versions may be so inaccurate or wrong to the level it might offend or defame the reader ; I don't want any trace to that, not even in version difference ; furthermore, a courthouse or a lawsuit may push me to vanish something from anywhere in my website. There are more reasons but I just don't want to discuss this here. It's not the purpose of this post. 2A10:8012:19:AD67:81FC:8744:739A:CC41 (talk) 13:50, 14 April 2023 (UTC)
See https://www.nuclino.com/alternatives/mediawiki-alternative. (I don't know whether they have exactly what you want, but you can start your research there). – Ammarpad (talk) 21:31, 14 April 2023 (UTC)
Some CMSs arent versioned Bawolff (talk) 22:39, 14 April 2023 (UTC)
Do you mean to CMSs with MediaWiki syntax? If so please give one example. 2A10:8012:19:AD67:2CFD:3FC6:E921:7E72 (talk) 00:23, 15 April 2023 (UTC)
No, i just meant cms's in general. Probably the best you will do is markdown.
Very few projects outside of mediawiki use mediawiki syntax Bawolff (talk) 01:08, 15 April 2023 (UTC)
Maybe you could run Manual:DeleteOldRevisions.php continuously. Jonathan3 (talk) 23:17, 14 April 2023 (UTC)
@Jonathan3 thanks but I'd rather something which includes MediaWiki syntax (or almost identical syntax) but just without all that versioning mechanism. 2A10:8012:19:AD67:2CFD:3FC6:E921:7E72 (talk) 00:24, 15 April 2023 (UTC)

Can I mute the "Your edit was saved." notification?

Can I mute the "Your edit was saved." notification?

Mine is a single-user wiki and I know when I have saved an edit. SteveRMann (talk) 20:14, 14 April 2023 (UTC)

This is old but appears to answer the question: https://stackoverflow.com/questions/31315505/how-to-disable-your-edit-was-saved-popup#31432300 Jonathan3 (talk) 23:13, 14 April 2023 (UTC)
Thanks, but there is no Common.css file. There are two common.css files, so I'll try there.
Adding the code to:
/var/www/html/wiki/resources/src/mediawiki.skinning/toc/common.css does the trick.
But, apparently this is not the right way. How do I turn on editing access to MediaWiki:Common.css? SteveRMann (talk) 02:16, 15 April 2023 (UTC)
MediaWiki:Common.css is an on wiki page that can be edited by those with the correct permissions. On single-user wiki's that would generally be someone in the bureaucrat group aka first user.
See also: Manual:Interface/StylesheetsTheDJ (Not WMF) (talkcontribs) 09:26, 17 April 2023 (UTC)

About changing alphabet letter in Wikipedia platform due to new alphabet rules

Dear all. I'm a new administrator of small Kaa.wikipedia.org from recent times. I have a question about changing letter on Wikipedia because of changes in Karakalpak alphabet by the government (+specialists) in 2016. Can I write it here or is there another special place for such kind of questions? Thank you in advance. Qaraqalpaqpan (talk) 04:24, 15 April 2023 (UTC)

It depends on your exact question. It might be here if it's about MediaWiki, it might be https://meta.wikimedia.org/wiki/Tech if it's about the configuration of Wikimedia wikis, it might be in Phabricator if it requires server-side code changes. Please ask your question; don't ask to ask. :) Malyacko (talk) 05:19, 15 April 2023 (UTC)
Dear Malyacko, thank you for your reply and explanation. I'll try to describe the issue here first. Could you read it and advice me: where it's better to ask for support? My text is here:
Dear Global admins. I'm a local administrator (from december 2022) in a small kaawiki.
I'd like to ask your help about the current usage of the letter «Ii».
Until 2016 year in Karakalpak alphabet the capital letter for «i» (small) was «İ».
And that time it was established in kaawiki configuration (it's working until now) that, if user writes [[italiya]] (with small «i») in the text, the internal link goes to the page İtaliya.
It was correct as per rules of that time.
But in 2016 government and Karakalpak linguists accepted to use «Ii» form instead of «İi».
So now all pages, which starts with «İ» we are moving to new pages with «I».
But that old rule [[italiya]] ===> İtaliya is still working and making uncomfortable the editing process.
Is it possible to fix so that, if we link by writing [[italiya]], it goes to the page Italiya (not to İtaliya)?
Or can you explain how to correct it (if it is possible for me)?
Thank you in advance. Qaraqalpaqpan (talk) 11:52, 15 April 2023 (UTC)
In general, if you talk about Wikimedia wikis and not your own MediaWiki installation, then meta:Tech is the place to ask questions. Malyacko (talk) 16:54, 15 April 2023 (UTC)
Thank you for your kind support, I hope it will be very helpful in solving this issue Qaraqalpaqpan (talk) 02:53, 16 April 2023 (UTC)
I think this should be reported to phabricator, in the section for tags add "mediawiki-internationalization".
If possible, in the phabricator task link to any discussions on kaawiki about this subject. It helps the people processing the task to know that the change won't take the kaawiki community by surprise.
The actual change is a very easy change for a developer to make. Bawolff (talk) 13:40, 15 April 2023 (UTC)
Dear Bawolff, thank you for your attention to this issue. I will consider your advice also. And try to solve the issue in the near future. Good luck. Qaraqalpaqpan (talk) 02:55, 16 April 2023 (UTC)

Help me!I cannot access a special desk on my extension

debug details:

  • [error] [b8b2adacbf9d9e89816c3bbe] [no req] PHP Notice: Trying to access array offset on value of type bool
  • Start request GET /wiki2/index.php/Special:HaitunSettingsIP: ::1HTTP HEADERS:HOST: localhostCONNECTION: keep-aliveCACHE-CONTROL: max-age=0UPGRADE-INSECURE-REQUESTS: 1USER-AGENT: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Safari/537.36 XiaoBai/10.4.5312.1827 (XBCEF)ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9SEC-FETCH-SITE: noneSEC-FETCH-MODE: navigateSEC-FETCH-USER: ?1SEC-FETCH-DEST: documentACCEPT-ENCODING: gzip, deflate, brACCEPT-LANGUAGE: zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7,zh-TW;q=0.6COOKIE: ETj8_2132_saltkey=Z78zUa0u; mw_installer_session=42fa1587fd13ba6a233a470a9ea4366d; cgyPHP_wiki_cgyPHP_wikiUserName=CgyPHP(end headers)
  • [session] SessionManager using store SqlBagOStuff
  • [localisation] LocalisationCache using store LCStoreDB
  • [objectcache] MainWANObjectCache using store EmptyBagOStuff
  • [session] SessionBackend "uld7r9mgcbk92m2net0pbag10qt7eb8d" is unsaved, marking dirty in constructor
  • [session] SessionBackend "uld7r9mgcbk92m2net0pbag10qt7eb8d" save: dataDirty=1 metaDirty=1 forcePersist=0
  • [cookie] already deleted setcookie: "cgyPHP_wiki_cgyPHP_wiki_session", "", "1649999731", "/", "", "", "1", ""
  • [cookie] already deleted setcookie: "cgyPHP_wiki_cgyPHP_wikiUserID", "", "1649999731", "/", "", "", "1", ""
  • [cookie] already deleted setcookie: "cgyPHP_wiki_cgyPHP_wikiToken", "", "1649999731", "/", "", "", "1", ""
  • [cookie] already deleted setcookie: "forceHTTPS", "", "1649999731", "/", "", "", "1", ""
  • [session] SessionBackend "uld7r9mgcbk92m2net0pbag10qt7eb8d" data dirty due to dirty(): MediaWiki\Session\SessionManager->getSessionForRequest/MediaWiki\Session\SessionManager->getInitialSession/MediaWiki\Session\Session->getToken/MediaWiki\Session\Session->set/MediaWiki\Session\SessionBackend->dirty
  • [session] SessionBackend "uld7r9mgcbk92m2net0pbag10qt7eb8d" save: dataDirty=1 metaDirty=0 forcePersist=0
  • ParserFactory: using default preprocessor
  • [DBQuery] Wikimedia\Rdbms\DatabaseMysqlBase::open [0.002s] localhost: SET group_concat_max_len = 262144, `sql_mode` = ''
  • [DBReplication] Cannot use ChronologyProtector with EmptyBagOStuff
  • [DBReplication] Wikimedia\Rdbms\LBFactory::getChronologyProtector: request info {"IPAddress": "::1","UserAgent": "Mozilla\/5.0 (Windows NT 6.3; WOW64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/87.0.4280.66 Safari\/537.36 XiaoBai\/10.4.5312.1827 (XBCEF)","ChronologyProtection": false,"ChronologyPositionIndex": 0,"ChronologyClientId": false}



extension.json file:
{
	"name": "Haitun",
	"author": [
		"Losit Galan", 
		"Damer Reter", 
		"Golor Solder", 
		"Deasit Lober", 
		"Saler Badem", 
		"Dovey Silor", 
		"Translateors"
	],
	"url": "https://www.mediawiki.org/wiki/Extension:Haitun",
	"descriptionmsg": "haitun-desc",
	"manifest_version": 2, 
	"type": "mediawiki",
	"license-name": "GPL-2.0-or-later",
	"version": "6.4.51",
	"autoload_classes": {
		"HaitunDatabase": "HaitunDatabase.php",
		"HaitunPermissions": "HaitunPermissions.php",
		"SpecialHaitunSettings": "SpecialHaitunSettings.php"
	},
	"specialpages": {
		"HaitunSettings": {
			"name": "HaitunSettings",
			"class": "SpecialHaitunSettings",
			"group": "users",
			"restriction": "haitun", 
			"file": "SpecialHaitunSettings.php"
		}
	},
	"Hooks": {
		"DisplayHaitunMedalImageOnUserPage": [
			{
				"function": "onDisplayHaitunMedalImageOnUserPage",
				"class": "HaitunHooks",
				"file": "includes/HaitunHooks.php"
			}
		]
	},
	"ResourceModules": {
		"haitun.styles": {
			"styles": [
				"styles/theme_base.css"
			],
			"position": "top"
		}
	},
	"MessagesDirs": {
		"en": {
			"haitun-desc": ["Haitun extension"]
		}
	},
	"AvailableRights": [
		"haitun"
	]
}

74.82.60.23 (talk) 05:30, 15 April 2023 (UTC)

Please help me 72.52.87.53 (talk) 23:49, 15 April 2023 (UTC)
Well the extension.json file you posted looks quite incorrect. Lots of the keys are keys that dont exist Bawolff (talk) 00:37, 16 April 2023 (UTC)

Someone edited out all of my references and replaced them with their own

I wrote a history of the Telecaster between 1950-1952 on the Telecaster page in 2019.

All good. One person went in and edited the references, and on the 19-20 October 2022, someone else deleted them altogether.

https://en.wikipedia.org/w/index.php?title=Fender_Telecaster&action=history&offset=&limit=100

He removed my references and altered my text linking to other sources which bear no information on what I was writing.

Mjdestroyerofworlds has gone through everything I wrote in the 1950-1952 section, and destroyed not only the order of the reference material built deleted my references altogether and repeatedly listed Bacon as the only reference. But the information is now lacking truth.

I originally wrote it all and have the reference material to prove it.

What should I do? I dont want to revert to June 2022. I just want to write my section with the correct reference material. How did someone delete my references? Meclazine (talk) 09:34, 15 April 2023 (UTC)

Hi. This is the wrong place for this type of question. Try asking somewhere like w:WP:TEAHOUSE Bawolff (talk) 13:43, 15 April 2023 (UTC)

Failure to structure the mediawiki on my PC.

Today, when I attempt to access the Localhost (which is installed the Mediawiki 1.38). I'm informed that I lack some necessary extension from php.

Though I've tried ages, following the official instruction (remove the semicolon of the required extensions in the php.ini). I still failed in the end.

It's hard to express my appreciation to the helpers.

Detail information

MediaWiki 1.38 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:

Which operating system and what method did you use to install php? Bawolff (talk) 13:37, 15 April 2023 (UTC)
1.I use the Windows 10 22H2 Version.
2.I installed php through the zip file on the official website. 120.230.71.61 (talk) 14:46, 15 April 2023 (UTC)
After un-commenting the lines in php.ini to enable those extensions, you should restart your webserver (apache) or the php-fpm process, depending on your setup. You may also have several php.ini files for different php processes. If in doubt, check Manual:Php.ini Ciencia Al Poder (talk) 15:53, 15 April 2023 (UTC)
What web server setup are you using and which official website is this?
Are the .dll files for this extensions present? Bawolff (talk) 16:31, 15 April 2023 (UTC)

Custom thumbnail appearance not working

Hi, I'm an administrator on the french Wikinews version. Following a community decision, we have established a custom appearance for thumbnail images (you can see the code here). However, we have recently noticed that it is no longer working and I have been unable to find an explanation in the MediaWiki documentation. That's why I am reaching out here. SleaY (talk) 14:13, 15 April 2023 (UTC)

Hi, I'm another admin of French WN. The right link for the CSS : this one ;) To add something useful, it is not related to our wiki but we can find issues like that on Spanish WN, French WP, etc. May that's related to an order of styles importance, or snippet which disallow custom settings for thumbnail ? AirSThib 🌌 Cyclist stars cafeteria 🚴 14:19, 15 April 2023 (UTC)
This is due to phab:T314318. The html structure of thumbnails has changed, so CSS changing them will have to be adapted. Bawolff (talk) 16:38, 15 April 2023 (UTC)
This sounds more on-topic for meta:Tech instead. Malyacko (talk) 16:51, 15 April 2023 (UTC)

Every page shows "From <wiki>" before content

On every page of my wiki, it says "From MyWiki" before the content starts. When trying to edit, the "From MyWiki" text is grey and can't be edited. It shows in my wiki since my recent update to 1.39.x. 2003:CB:4F12:5F42:1846:7B19:AD09:95C3 (talk) 15:21, 15 April 2023 (UTC)

Edit the page MediaWiki:Tagline
Some skins disable this. So it could mean you need to update your skin, or you switched skins in the upgrade. Bawolff (talk) 16:32, 15 April 2023 (UTC)
Thanks a lot! It worked 2003:CB:4F12:5F42:88E2:6E36:4A15:344B (talk) 16:33, 15 April 2023 (UTC)

upgrade from 1.38.6 to 1.39.3

After upgrade I get error: Error 1146: Table KitwarePublicWikiDB.linktarget doesn't exist. I tried to restore the mysql db from a previous dump, but that did not help. I can revert back to 1.38.6, using the same database, and everything works. Just can't upgrade.

I did run ./maintenance/php update.php after the upgrade.

mysql-server:

 Installed: 8.0.32-0ubuntu0.20.04.2

PHP 7.4.3-4ubuntu2.18

https://vtk.org/Wiki/Main_Page


-Thanks for any help. KWsys (talk) 21:40, 15 April 2023 (UTC)

Command is php maintenance/update.php not ./maintenance/php update.php, however if you did the latter you would get an error message.
Was there any errors outputted by update.php? What you are describing sounds like what would happen if update.php failed to run. Bawolff (talk) 22:55, 15 April 2023 (UTC)
Thanks - yes typo. The update did run.
When I revert back to ver 1.38.6 and run the update - I get the same error, but the wiki renders correctly.
Thanks again!!
I get the following:
Table revision contains rev_text_id field. Dropping...Wikimedia\Rdbms\DBQueryError from line 1618 of /projects/public_wiki/PublicWiki/includes/libs/rdbms/database/Database.php: Error 1091: Can't DROP 'user_timestamp'; check that column/key exists
Function: Wikimedia\Rdbms\Database::sourceFile( /projects/public_wiki/PublicWiki/maintenance/archives/patch-revision-actor-comment-MCR.sql )
Query: ALTER TABLE `revision`
DROP INDEX user_timestamp,
DROP INDEX page_user_timestamp,
DROP INDEX usertext_timestamp,
DROP COLUMN rev_text_id,
DROP COLUMN rev_comment,
DROP COLUMN rev_user,
DROP COLUMN rev_user_text,
DROP COLUMN rev_content_model,
DROP COLUMN rev_content_format
#0 /projects/public_wiki/PublicWiki/includes/libs/rdbms/database/Database.php(1602): Wikimedia\Rdbms\Database->getQueryException()
#1 /projects/public_wiki/PublicWiki/includes/libs/rdbms/database/Database.php(1576): Wikimedia\Rdbms\Database->getQueryExceptionAndLog()
#2 /projects/public_wiki/PublicWiki/includes/libs/rdbms/database/Database.php(952): Wikimedia\Rdbms\Database->reportQueryError()
#3 /projects/public_wiki/PublicWiki/includes/libs/rdbms/database/Database.php(3302): Wikimedia\Rdbms\Database->query()
#4 /projects/public_wiki/PublicWiki/includes/libs/rdbms/database/Database.php(3241): Wikimedia\Rdbms\Database->sourceStream()
#5 /projects/public_wiki/PublicWiki/includes/libs/rdbms/database/DBConnRef.php(103): Wikimedia\Rdbms\Database->sourceFile()
#6 /projects/public_wiki/PublicWiki/includes/libs/rdbms/database/DBConnRef.php(807): Wikimedia\Rdbms\DBConnRef->__call()
#7 /projects/public_wiki/PublicWiki/includes/installer/DatabaseUpdater.php(718): Wikimedia\Rdbms\DBConnRef->sourceFile()
#8 /projects/public_wiki/PublicWiki/includes/installer/DatabaseUpdater.php(843): DatabaseUpdater->applyPatch()
#9 /projects/public_wiki/PublicWiki/includes/installer/DatabaseUpdater.php(547): DatabaseUpdater->dropField()
#10 /projects/public_wiki/PublicWiki/includes/installer/DatabaseUpdater.php(511): DatabaseUpdater->runUpdates()
#11 /projects/public_wiki/PublicWiki/maintenance/update.php(202): DatabaseUpdater->doUpdates()
#12 /projects/public_wiki/PublicWiki/maintenance/includes/MaintenanceRunner.php(309): UpdateMediaWiki->execute()
#13 /projects/public_wiki/PublicWiki/maintenance/doMaintenance.php(85): MediaWiki\Maintenance\MaintenanceRunner->run()
#14 /projects/public_wiki/PublicWiki/maintenance/update.php(312): require_once('/projects/publi...')
#15 {main} KWsys (talk) 00:57, 16 April 2023 (UTC)

Upgrading wiki farm from 1.38 to 1.39

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


I have wiki farm using one shared database and one files system. Starting from 1.39 I have following warning when running update php script:
SharedDB is deprecated: since 1.21 In new code, use the $wiki parameter to
  LBFactory::getMainLB() to access remote databases. Using
  LBFactory::getMainLB() allows the shared database to reside on separate
  servers to the wiki's own database, with suitable configuration of
  $wgLBFactoryConf

Please correct the issue before running update.php again.
If you know what you are doing, you can bypass this check
using --skip-config-validation.

I do have $SharedDB at my LocalSettings.php as I run wiki farm. I have this warning starting from 1.39. Please let me know shall ignore this message? Basically if I run update.php --skip-config-validation the script updates the database.

Current wiki for my wiki farm website:

MediaWiki 1.39.0
PHP 8.0.28 (cgi-fcgi)
MySQL 5.7.34
ICU 57.1
Fokebox (talk) 08:38, 16 April 2023 (UTC)
Huh, not a particularly good error message as LBFactory::getMainLB() is not a replacement for wgSharedDB.
It wont cause a problem right now. There may be problems in future versions of mediawiki.
Doesn't feel good we are deprecating that, given how much it is promoted as the reccomended approach, and without a migration path, and the fact you really can't stop using that feature once you start. ☹️ Bawolff (talk) 09:15, 16 April 2023 (UTC)
Yes, it is a quite strange warning for me, as till 1.38.6 my wiki farm with all its databases were successfully updated without warning. But at 1.39 now I see this message: that SharedDB is deprecated. Fokebox (talk) 09:42, 16 April 2023 (UTC)
I was just about to file an angsty bug report about this, when i found out krinkle beat me to it https://phabricator.wikimedia.org/T308536
Basically the whole warning is a misunderstanding. It can be safely ignored and future versions won't emit the warning. Bawolff (talk) 16:47, 16 April 2023 (UTC)
Note that there's a more recent release of MediaWiki 1.39 than the 1.39.0 you're using, which removes the deprecation notice. You're using an outdated version with some known vulnerabilities. Ciencia Al Poder (talk) 19:13, 16 April 2023 (UTC)
I plan to upgrade to 1.39.3 soon and let you know if I have this warning Fokebox (talk) 19:25, 16 April 2023 (UTC)
Issue resolved with MW 1.39.3 Fokebox (talk) 07:10, 17 April 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Category index doesn't work

I have long time issues after migrating my MediaWiki page from one server to another. From web root to subdirectory. It has been fixed by various kludges, and somehow works.


I have recently found out, some images missing, category index doesn't show anything despite there are a hundred pages associated with various categories.


I have tried:


cd /var/www/mediawiki

php maintenance/rebuildall.php


it solved image issues. Category index missing, or must be hardlinked because there is still somewhere old links to previous server.


Check out webpage https://eh.hajes.org/Index and click on the category automotive for example. There should be many pages alphabetically.


For example https://eh.hajes.org/ABS where is

[[Category:automotive]]


Any suggestions, please?


How to get rid off of cross-links to old non-existing server. Is it possible to check SQL manually as we do in WordPress, please? Haj3s29a (talk) 10:23, 16 April 2023 (UTC)

Typically this should be fixed by refreshLinks.php
If that is not working, i would suggest looking at php error log for errors, abd failing that, the mediawiki debug log. Ensure also the job queue is working correctly. Bawolff (talk) 16:03, 16 April 2023 (UTC)
Oh,i see that https://eh.hajes.org/Category:Automotive is populated so it was probably populated before changing $wgCapitalLinks. refreshLinks.php should fix Bawolff (talk) 16:14, 16 April 2023 (UTC)
thanks, will try Haj3s29a (talk) 04:45, 17 April 2023 (UTC)
it worked, thanks Haj3s29a (talk) 16:13, 16 May 2023 (UTC)

I'm going mad - MediaWiki ShortUrl - impossible to achieve

Hello everyone,

I have issues with setting shorturls on my mediawiki instance.

I run a VPS with Apache2. I edited everything as in the tutorial but I get errors.

Here is my .htaccess. Media wiki is installed in var/www/html/w/ and I want a redirect like Wikipedia website/wiki/article.


RewriteEngine On

RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L]

RewriteRule ^/?$ %{DOCUMENT_ROOT}/w/index.php [L,QSA]

RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f

RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d

RewriteRule ^/?w/images/thumb/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/w/thumb.php?f=$1&width=$2 [L,QSA,B]

RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f

RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d

RewriteRule ^/?w/images/thumb/archive/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/w/thumb.php?f=$1&width=$2&archived=1 [L,QSA,B]


I'm exhausted, I don't know what to do. Also the LocalSettings.php were modified as per the tutorial.


Thanks to whoever can help. Ciao12349 (talk) 11:31, 16 April 2023 (UTC)

Where you put the .htaccess file ? It should be in var/www/html/ not var/www/html/w . Recommended us the https://shorturls.redwerks.org/ to generate the .htaccess . Have you make LocalSettings.php configuration changes like below :
$wgScriptPath = "/w";
$wgArticlePath = "/wiki/$1";
$wgUsePathInfo = true; Lotusccong (talk) 13:27, 16 April 2023 (UTC)
Hey!! Thanks for the reply. Yes, I put htaccess in var-www-html and copied the htaccess from the redwerks tool.
Still nothing. The LocalSettings.php was already set like you said. :( Losing hope Ciao12349 (talk) 13:45, 16 April 2023 (UTC)
Try on this ?
RewriteEngine On
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L]
RewriteRule ^/*$ %{DOCUMENT_ROOT}/w/index.php [L]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^/?images/thumb/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/thumb.php?f=$1&width=$2 [L,QSA,B]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^/?images/thumb/archive/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/thumb.php?f=$1&width=$2&archived=1 [L,QSA,B]
RewriteRule ^/([a-z]*)/(.*)$ %{DOCUMENT_ROOT}/w/index.php [L,QSA] Lotusccong (talk) 15:03, 16 April 2023 (UTC)
Trying. Will let you know soon.
DOMAIN IS http://wagmi.wiki Ciao12349 (talk) 17:19, 16 April 2023 (UTC)
Have you checked that apache has .htaccess enabled? It would be somewhat unusual but apache can be configured to disable .htaccess
If you have a link to your wiki, i would suggest including it. Bawolff (talk) 16:36, 16 April 2023 (UTC)
Yes, it has htaccess enabled in apache2.conf Ciao12349 (talk) 17:16, 16 April 2023 (UTC)
Somebody can help? Thanks. 80.73.235.203 (talk) 18:35, 17 April 2023 (UTC)

Hunk #1 failed at 1

What does this mean? 93.138.150.163 (talk) 18:55, 16 April 2023 (UTC)

I'm getting this while trying to do `patch -p1 --dry-run -i` from 1.35.9 to 1.35.10 right after it says checking images/.htaccess
Hunk #1 FAILED at 1
1 out of 1 hunk FAILED 93.138.150.163 (talk) 18:56, 16 April 2023 (UTC)
Have you searched? https://stackoverflow.com/questions/14282617/hunk-1-failed-at-1-whats-that-mean, https://unix.stackexchange.com/questions/681508/how-to-resolve-error-about-patching-hunk-failed etc. Malyacko (talk) 20:47, 16 April 2023 (UTC)
it probably means you have a different .htaccess in inages than the one from mediawiki. Bawolff (talk) 21:54, 16 April 2023 (UTC)

HATA MESAJI

Merhaba

ara sıra aldığım bir hata ve bir türlü çözemiyorum.


1:26:14 Illegal storage access...

01:26:14 Unhandled Base::Exception caught in GUIApplication::notify.

The error message is: Illegal storage access! Please save your work under a new file name and restart the application!

01:26:14 Unhandled std::exception caught in GUIApplication::notify.

The error message is: invalid string position

01:26:15 Unhandled std::exception caught in GUIApplication::notify.

The error message is: invalid string position

01:26:15 Unhandled std::exception caught in GUIApplication::notify.

The error message is: invalid string position

01:26:15 Unhandled std::exception caught in GUIApplication::notify.

The error message is: invalid string position


Lütfen yardımcı olun... Cemosman (talk) 22:26, 16 April 2023 (UTC)

This forum is for support with the web application MediaWiki. You are likely in the wrong place as your question suggests that it is about a different software package than MediaWiki. —TheDJ (Not WMF) (talkcontribs) 09:09, 17 April 2023 (UTC)

Search for a extension

Edit page is blank, while the content shows

Hi ,

I am using Mediawiki 1.30 . I am facing an issue that the content is shown. But when I try edit the content , the edit page shows blank. I don't know. why?

I am new to media wiki. Kindly help. 182.74.99.117 (talk) 12:33, 17 April 2023 (UTC)

please enable php error reporting and check your php error log. See How to debug for details. Bawolff (talk) 15:20, 17 April 2023 (UTC)

How does a user report a problem?

Page for California congressional district 30 (Adam Shiff) show Bob Wilson as first incumbent…from Chula Vista in San Diego County! 216.235.112.203 (talk) 17:44, 17 April 2023 (UTC)

You can change it yourself or leave a note at https://en.wikipedia.org/wiki/Talk:California%27s_30th_congressional_district
See also https://en.wikipedia.org/wiki/Help:Contents Bawolff (talk) 18:19, 17 April 2023 (UTC)

How to create message macro(?)

Hello, I'm not sure if thats what this is called. I want to make it so that, for example, if I typed text such as !-awesome example-! , Itll be red and bold using the simple span html thing, but i wont have to paste in the span html into my document i can just do !-text here-! Anything to make it easier to remember for frequent use, thanks Hidsus (talk) 02:41, 18 April 2023 (UTC)

The way to do this is to create a template such as {{important}} (at Template:Important) with the contents <strong style="color:red">{{{1}}}</strong>, which you can then call with {{important|awesome example}} to render your text. There's no simple way to do it with the bang-hyphen delimiter, sorry. Sam Wilson 05:35, 18 April 2023 (UTC)

How to write text boxes like mediawiki.org main page?

Hi!

Want to know how do I write/design text boxes like the one that you can see in this screenshot:

https://drive.google.com/file/d/1Q1W4An3I2XbAg13Jws0CG5UpPGfDLxZq/view?usp=share_link

I have Mediawiki 1.38 installed.

Thanks for help! Enheca (talk) 05:36, 18 April 2023 (UTC)

https://meta.wikimedia.org/wiki/Small_wiki_toolkits/Starter_kit/Mainpage_customization Malyacko (talk) 08:00, 19 April 2023 (UTC)

I am trying to connect with someone who can help with developers that are hacking people. Where can I find this kind of help?

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


I am trying to connect with someone who can help with developers that are hacking people. Where can I find this kind of help? 2607:FB91:2F55:DB44:A889:892D:2F4:1069 (talk) 05:41, 18 April 2023 (UTC)

I'm not sure if I even posted this correctly.
If not please let me know what you do. I just use my phone I don't write this stuff so I'm really lost here. 2607:FB91:2F55:DB44:A889:892D:2F4:1069 (talk) 05:45, 18 April 2023 (UTC)
Can you describe the issue you are having further, specifically how it is in the context of mediawiki? What you wrote is too vague to know how to direct you. Bawolff (talk) 05:47, 18 April 2023 (UTC)
My IP address is blocked on your page. I an on the same IP address as the people who are hacking me for the last 4 +!years and I can't get any help to stop them. They have stolen my identity my SS check I can't have anything electronic. I'm not sure how I even got here. But when I saw you had blocked the IP address because they went following your guidelines at least you knew they were not doing things like they should.
I just need help. I can't even get thepolice to help me bI can't get and keep evidence to provide the Police. 2607:FB91:2F55:DB44:A889:892D:2F4:1069 (talk) 05:55, 18 April 2023 (UTC)
I hope I replied correctly 2607:FB91:2F55:DB44:A889:892D:2F4:1069 (talk) 05:56, 18 April 2023 (UTC)
They are installing a lot of meta apps on my device 2607:FB91:2F55:DB44:A889:892D:2F4:1069 (talk) 06:02, 18 April 2023 (UTC)
Your ip blocked because wikipedia decided to basically block all t-mobile cell phones. It doesn't have anything to do with your situation.
Also, respectfully, it seems very likely you are misunderstanding whatever is happening with you. Bawolff (talk) 06:05, 18 April 2023 (UTC)
I'm sorry to have bothered you.
Do you have any suggestions on what I can do to escape from these hackers?
Google offers nothing they won't even talk to me about it. 2607:FB91:2F55:DB44:A889:892D:2F4:1069 (talk) 06:10, 18 April 2023 (UTC)
I wish I knew how to explain it to you where yo could understand but I don't speak your language. 2607:FB91:2F55:DB44:A889:892D:2F4:1069 (talk) 06:11, 18 April 2023 (UTC)
I know they take over my email address my phone everything. They usebny name to do everything they are doing 2607:FB91:2F55:DB44:A889:892D:2F4:1069 (talk) 06:12, 18 April 2023 (UTC)
Thanks for your help.
Have a good evening. 2607:FB91:2F55:DB44:A889:892D:2F4:1069 (talk) 06:14, 18 April 2023 (UTC)
So no one will tell me how or where to start to break free from a hacker.
Y'all are like cops.
No one will help an outsider.
Thanks 2607:FB91:2F55:DB44:A889:892D:2F4:1069 (talk) 06:24, 18 April 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

site down

hi! my site has been fine lately but suddenly in a short time I realize that it has suffered a down, I do not understand what is happening I have checked the files of the site and mediawiki does not seem to be missing anything, I checked if the problem is from the domain and it is pointing to the server, I do not understand this fall of this 403 error, I have reviewed the logs of the web hosting and it does not say anything, what could be happening? this happens in all browsers.


my wiki is: https://www.jardinplumaazul.tk/estela Uvas magicas (talk) 07:18, 18 April 2023 (UTC)

You changed URLs? It redirects to /daisy. Check file .htaccess wargo (talk) 08:23, 18 April 2023 (UTC)
yes, that redirect Is the config for the short url. Uvas magicas (talk) 13:43, 18 April 2023 (UTC)
Now it is working. wargo (talk) 21:03, 18 April 2023 (UTC)
Yes, I was able to realize that last night someone was able to hack the site redirecting it to a false window with a non-existent url, I don't know how that happened, I still think that can continue, I don't know if it's a mediawiki problem, or the hosting, but I hope this doesn't create a problem for the long Uvas magicas (talk) 22:40, 18 April 2023 (UTC)

"Page not linked to Wikidata" at the bottom of an imported InfoBox template from Wikipedia

I am having a slight problem with infoboxes. I imported the fictional character template from Wikipedia, with all the required templates. Unfortunately, even though the infobox shows up and loads the labels and images, it has a text at the bottom which says that the page is not linked to wikidata. How can I remove this? I suppose I'd have to modify the wikidata module, but it seems too complicated for what it is, so I guess there's an easier method.


I am using MediaWiki 1.39, with Wikibase, TemplateStyles and other extensions for the infoboxes. ALEX LAREDO12345mmmmmmmm (talk) 08:54, 18 April 2023 (UTC)

Extension:Graph down?

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hi, I'm from the french speaking Wikipedia. I think Extension:Graph is down. We have also experienced problems with coords not working too (on https://fr.wikipedia.org/wiki/Chambéry for exemple). Thanks in advance. Espandero (talk) 09:26, 18 April 2023 (UTC)
@Espandero This page is for MediaWiki questions. For Wikimedia wikis configuration, see meta:Tech instead. Thanks. Malyacko (talk) 07:47, 19 April 2023 (UTC)
@Malyacko: as mentionned, my question regarded Extension:Graph, which is a MediaWiki problem. I know what is going on now thanks to TheDJ's answer.
I think the problem with the coords was probably from MediaWiki as well, maybe linked with the Graph problem (I think it is resolved but it probably had to do with javascript). Espandero (talk) 07:59, 19 April 2023 (UTC)
Same -> https://www.mediawiki.org/wiki/Extension_talk:Graph/Demo#Graphs_not_displayed_on_tablette_(...nor_laptop)
--Christian 🇫🇷 FR (talk) 10:19, 18 April 2023 (UTC)
See https://en.wikipedia.org/wiki/Wikipedia:Village_pump_(technical)#Graph_extension_disabled_per_immediate_effectTheDJ (Not WMF) (talkcontribs) 12:32, 18 April 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

translators: how to grep the page sources rather than using search box ?

Hi all,

Here is my use case :

1. open -> https://www.mediawiki.org/wiki/Manual:$wgConfigRegistry?oldid=4421291
2. open tab Modify
3. look at

<translate><!--T:3--> Registry of factory functions to create {{ll|Manual:Config.php|Config}} objects.</translate>

4. I want to adapt tvar to the new form:

<translate><!--T:3--> Registry of factory functions to create {{ll|Manual:Config.php|Config}} objects.</translate>

5. I wonder if there are still other sources where '...' is present to extend the replacement.

How to do that ? 

If I use the search box, I get rather a list of topics related to what I m interedted in.
But I need to go deeper and access the wiki code to make a kind of 'grep' with regex on wiki pages. 
It is halfway between translator and source developper needs.
and i guess i should use a developper access but then, how do i move in the system ?
 
Any idea ? Thanks.

-- Christian 🇫🇷 FR (talk) 10:15, 18 April 2023 (UTC)

structured discussions: where is the link to article ?

Hi all, I want to reference article 13 of the discussion page -> https://www.mediawiki.org/wiki/Extension_talk:Graph/Demo but due to the new form of discussions, I no longer see the menu on my laptop for the link (previous 'Copy the link') and if i use the title of the TOC, i lost the reference when the title changes. How to solve that permalink ? Thanks.

-- Christian 🇫🇷 FR (talk) 10:33, 18 April 2023 (UTC)

Hidden contents menu layout problems at Vector-2022

I have recently updated my wiki to MW 1.39.3:

Product Version
MediaWiki 1.39.3
PHP 8.0.28 (cgi-fcgi)
MySQL 5.7.34

What I have noticed, that when I hide contents menu and scroll the page down, then click the menu sign the contents itself is out of the menu box, see screenshot what I mean:


Is there a way to fix this bug? Fokebox (talk) 11:10, 18 April 2023 (UTC)

MediaWiki requires the PSR-3 logging library to be present

MediaWiki requires the PSR-3 logging library to be present. This library is not embedded directly in MediaWiki's git repository and must be installed separately by the end user. Please see the instructions for installing libraries on mediawiki.org for help on installing the required components.

Fatal error: MediaWiki requires the PSR-3 logging library to be present. This library is not embedded directly in MediaWiki's git repository and must be installed separately by the end user. Please see the instructions for installing libraries on mediawiki.org for help on installing the required components. in D:\xampp\htdocs\mediawiki-1.38.2\includes\Setup.php on line 132

this message appears without evident modifications. I try to use composer but it didn't change anything. Is there a way to fix it? Thanks a lot. Basilew33 (talk) 14:14, 18 April 2023 (UTC)

It should be included automatically if you got your mediawiki from Download. Normally you only have to install it yourself if using git.
Did you download the tar file or the zip file? 7zip on windows has issues with tar files that have long file names, so try the zip file instead if you were using the tar download. Bawolff (talk) 15:07, 18 April 2023 (UTC)
Hello thanks for your answer.
In fact my mediawiki worked on d:\xampp for a few months without problem. A few day ago i received suddenly this message.
I have also a version 1.39.3 working on e:\xampp. Basilew33 (talk) 15:31, 18 April 2023 (UTC)
on e:\ it works fine.
I have also used composer
d:\xampp\htdocs\mediawiki-1.38.2\vendor>composer require psr/log
./composer.json has been updated
Running composer update psr/log
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Writing lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Generating optimized autoload files
9 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
No security vulnerability advisories found
Using version ^1.1 for psr/log Basilew33 (talk) 15:34, 18 April 2023 (UTC)
I would not reccomend calling composer require, since it is best to rely on the composer.json provided with mediawiki. (Just saying generally. I dont think that caused any problems for you)
Generally this error happens if Psr\Log\LoggerInterface doesn't exist. If composer installed it, i am at a loss. Bawolff (talk) 15:39, 18 April 2023 (UTC)
this the php file where the error occurs :
if ( !interface_exists( LoggerInterface::class ) ) {
$message = (
'MediaWiki requires the <a href="https://github.com/php-fig/log">PSR-3 logging ' .
"library</a> to be present. This library is not embedded directly in MediaWiki's " .
"git repository and must be installed separately by the end user.\n\n" .
'Please see the <a href="<nowiki>https://www.mediawiki.org/wiki/Download_from_Git'</nowiki> .
'#Fetch_external_libraries">instructions for installing libraries</a> on mediawiki.org ' .
'for help on installing the required components.'
);
echo $message;
trigger_error( $message, E_USER_ERROR );
} Basilew33 (talk) 15:43, 18 April 2023 (UTC)
Hello Bawolff, i found the solution in setup.php. as i have 2 mediawikis i comment a line in this file and doing it i also comment the line use... it works fine now. Your help really gave me the clue. Thanks a lot. Basilew33 (talk) 07:36, 20 April 2023 (UTC)

Hello,

we are using MediaWiki for company internal purposes e.g. our organigram, process flows etc.

We are currently using Viflow, where processes and organigrams can be designed an embedded into websites. every process has its own unique link. But how can I embed the link within Media Wiki AND preview the "picture"/preview Organigram / process flow? Is there any way to make that possible?

Or do I have to create a picture of each process, include picture and link separately (which makes it uncomfortable to maintain - every time the process changes, I have to change the picture).

Thanks! 91.26.127.226 (talk) 06:23, 19 April 2023 (UTC)

Many social sites display a small excerpt and an image of the external link when posted. However, MediaWiki doesn't provide this functionality, and I don't know of any extension that would implement that.
However, you can embed any external image into MediaWiki by pasting the URL directly on a page (without any other markup), but this will only work for URLs that end in a common image format extension (.png, .gif, jpg), and whitelisted URLs by default. Check Manual:$wgEnableImageWhitelist for instructions.
Basically, you may be able to copy the URL of the picture of the organigram and paste on MediaWiki without the need to upload it. The image will be requested directly from your browser to the original URL (MediaWiki doesn't proxy the request). Ciencia Al Poder (talk) 11:48, 19 April 2023 (UTC)

[New MediaWiki user] Cannot run installation - Fatal error in setup file

Hello guys.

This is my first installation of MediaWiki. I created subdomain for it but after uploading the files and entering the address I can see only

this:

MediaWiki 1.39.3

LocalSettings.php not found.

Please set up the wiki first.


If i click on the link:

http://wiki.salamanderguild.cz/domains/wiki.salamanderguild.cz/mw-config/index.php


Fatal error: Uncaught Error: Call to undefined function putenv() in /data/web/virtuals/274312/virtual/www/domains/wiki.salamanderguild.cz/includes/Setup.php:288 Stack trace: #0 /data/web/virtuals/274312/virtual/www/domains/wiki.salamanderguild.cz/includes/WebStart.php(86): require_once() #1 /data/web/virtuals/274312/virtual/www/domains/wiki.salamanderguild.cz/mw-config/index.php(38): require('/data/web/virtu...') #2 {main} thrown in /data/web/virtuals/274312/virtual/www/domains/wiki.salamanderguild.cz/includes/Setup.php on line 288 Vousatýr (talk) 16:36, 19 April 2023 (UTC)

Check your php.ini file for the disabled_functions directive, and make sure that putenv() isn't on it. Bawolff (talk) 16:40, 19 April 2023 (UTC)

Graph extension disabled

Yesterday the Wikimedia Foundation noted that in the interests of the security of our users, the Graph extension was disabled. This means that pages that were formerly displaying graphs will now display a small blank area. To help readers understand this situation, communities can now define a brief message that can be displayed to readers in place of each graph until this is resolved. That message can be defined on each wiki at MediaWiki:Graph-disabled. Wikimedia Foundation staff are looking at options available and expected timelines. For updates, follow the public Phabricator task for this issue: T334940

-- MediaWiki message delivery (talk) 17:36, 19 April 2023 (UTC)

How recover your docker connection to the DB

Hi,

So recently we've changed our ISP, and so did my machines IP addresses.

I have a MediaWiki setup via docker (with a mariadb container), on another machine. The problem is that the wiki container can't seem to reconnect with the database container.

I was able to re-configure the LocalSettings file in order to update the wgServer address, but now it seems that i can't find my pages when i login. When I arrive on the main page, they ask me to recreate it.

I opened the ports of the mariadb container to make sure that the pages exists, and they seem to still do.

Is there a know procedure to restore my containers back (I use Portainer btw) or a way for me to retrieve the texts on the pages?

Thank you. ATrashInTheWorld (talk) 21:50, 19 April 2023 (UTC)

Hi!

Unfortunately interwiki links has dependancy from ULS extension from MW 1.39. ULS extension works not so properly at my wiki farm, And it is quite strange that only Vector-2022 skin has this dependancy as other skins displays interwiki language links correctly.

Now I have two issues with ULS at my wiki farm:

MediaWiki 1.39.3
PHP 8.0.28 (cgi-fcgi)
MySQL 5.7.34
  • I have different localisations of my wiki farm that has common shared database and common files of mediawiki. All localisations made just like in wikipedia: ru.mywikifarm.org - Russian, en.mywikifarm.org - English, es.mywikifarm.org - Spanish etc. The $wgLanguageCode is determined for every localisation, i.e for English it is $wgLanguageCode = "en";, for $wgLanguageCode = "ru"; is for Russian etc. The issue is that the language of all website is correct for logged in user, but when it is a guest (non logged-in user) all localisations are in Russian, i.e. en.mywikifarm.org - is in Russian, es.mywikifarm.org - is in Russian etc. When I switch off ULS extension then all works fine for logged in user and for guests (non logged-in users). And I don't know how to solve this issue. Anybody can help to resolve it?
  • The second issue is following: When ULS extension is on! I do see the interwiki box showing the number of languages at my Vector-2022 skin, but when I click the box - sometimes the links are shown, and sometimes the box is empty, in spite of that HTML code is fine - I see at HTML this links and text. But it works all strange, sometimes there are links and sometimes there aren't any. And it is difficult to say why it happening and how to debug this.
Sometimes the links are shown. Basically after switching on the extension
And then they disappears suddenly. Basically after using the website, after logging-in/logging-out, editing pages etc.

Fokebox (talk) 06:37, 20 April 2023 (UTC)

Using references on a custom wiki

Hi, we have a custom mediaWiki page and would like to use a references list like on Wikipedia. I have tried to follow https://en.wikipedia.org/wiki/Template:Reflist, but it doesn' work. {{Reflist}} just shows Template:Reflist in red saying the page doesn't exist. Should I enable some setting? Or install some library/template? If so, how can I do that? Thank you. BJongCC (talk) 08:04, 20 April 2023 (UTC)

Customize URL

Hi, how can I customize the url of my wiki? Lomeno 24 (Contact me here) 09:35, 20 April 2023 (UTC)

see Manual:Short URL Taavi (talk!) 09:48, 20 April 2023 (UTC)
Thanks Lomeno 24 (Contact me here) 09:50, 20 April 2023 (UTC)
If you mean the "localhost" part, you need to buy a domain name, change the A record to your server's ip address and change $wgServer. For the part after localhost, do the short url page. Bawolff (talk) 11:31, 20 April 2023 (UTC)

Mediawiki SSO with Azure AD Authentication

Hi,

We are using MW1.39.x docker image. We are referring https://medium.com/vivritiengineering/mediawiki-and-azure-single-sign-on-e3fbc13d1f46 article

for sso with azure AD.


But we are unable to login or authenticate. Please suggest. Pooja2425 (talk) 13:16, 20 April 2023 (UTC)

Please first provide debug information. Malyacko (talk) 16:08, 20 April 2023 (UTC)
hi @Malyacko
SimpleSAML\Error\Error: UNHANDLEDEXCEPTION
Backtrace:
2 public/_include.php:28 (SimpleSAML_exception_handler)
1 vendor/symfony/error-handler/ErrorHandler.php:541 (Symfony\Component\ErrorHandler\ErrorHandler::handleException)
0 [builtin] (N/A)
Caused by: Exception: Database error: could not find driver
Backtrace:
13 src/SimpleSAML/Store/SQLStore.php:65 (SimpleSAML\Store\SQLStore::__construct)
12 src/SimpleSAML/Store/StoreFactory.php:53 (SimpleSAML\Store\StoreFactory::getInstance)
11 src/SimpleSAML/SessionHandler.php:142 (SimpleSAML\SessionHandler::createSessionHandler)
10 src/SimpleSAML/SessionHandler.php:44 (SimpleSAML\SessionHandler::getSessionHandler)
9 src/SimpleSAML/Session.php:330 (SimpleSAML\Session::getSession)
8 src/SimpleSAML/Session.php:260 (SimpleSAML\Session::getSessionFromRequest)
7 src/SimpleSAML/Utils/Auth.php:42 (SimpleSAML\Utils\Auth::isAdmin)
6 src/SimpleSAML/Utils/Auth.php:58 (SimpleSAML\Utils\Auth::requireAdmin)
5 modules/admin/src/Controller/Federation.php:395 (SimpleSAML\Module\admin\Controller\Federation::metadataConverter)
4 vendor/symfony/http-kernel/HttpKernel.php:163 (Symfony\Component\HttpKernel\HttpKernel::handleRaw)
3 vendor/symfony/http-kernel/HttpKernel.php:75 (Symfony\Component\HttpKernel\HttpKernel::handle)
2 vendor/symfony/http-kernel/Kernel.php:202 (Symfony\Component\HttpKernel\Kernel::handle)
1 src/SimpleSAML/Module.php:234 (SimpleSAML\Module::process)
0 public/module.php:14 (N/A) Pooja2425 (talk) 13:07, 24 April 2023 (UTC)
"Caused by: Exception: Database error: could not find driver"
https://stackoverflow.com/questions/43263649/symfony-an-exception-occured-in-driver-could-not-find-driver-with-mysql Malyacko (talk) 13:30, 24 April 2023 (UTC)
HI @Malyacko
Thanks for replying, Now we are getting below error.
As we are following https://medium.com/vivritiengineering/mediawiki-and-azure-single-sign-on-e3fbc13d1f46 article and we have set reply url in azure portal
https://app.example.com/simplesaml/module.php/saml/sp/saml2-acs.php/default-sp
so getting error. do we need to change reply url ??
SimpleSAML\Error\Error: ACSPARAMS
Backtrace:
5 modules/saml/src/Controller/ServiceProvider.php:202 (SimpleSAML\Module\saml\Controller\ServiceProvider::assertionConsumerService)
4 vendor/symfony/http-kernel/HttpKernel.php:163 (Symfony\Component\HttpKernel\HttpKernel::handleRaw)
3 vendor/symfony/http-kernel/HttpKernel.php:75 (Symfony\Component\HttpKernel\HttpKernel::handle)
2 vendor/symfony/http-kernel/Kernel.php:202 (Symfony\Component\HttpKernel\Kernel::handle)
1 src/SimpleSAML/Module.php:234 (SimpleSAML\Module::process)
0 public/module.php:14 (N/A)
Caused by: SAML2\Exception\Protocol\UnsupportedBindingException: Unable to find the SAML 2 binding used for this request.
Backtrace:
6 vendor/simplesamlphp/saml2/src/SAML2/Binding.php:117 (SAML2\Binding::getCurrentBinding)
5 modules/saml/src/Controller/ServiceProvider.php:200 (SimpleSAML\Module\saml\Controller\ServiceProvider::assertionConsumerService)
4 vendor/symfony/http-kernel/HttpKernel.php:163 (Symfony\Component\HttpKernel\HttpKernel::handleRaw)
3 vendor/symfony/http-kernel/HttpKernel.php:75 (Symfony\Component\HttpKernel\HttpKernel::handle)
2 vendor/symfony/http-kernel/Kernel.php:202 (Symfony\Component\HttpKernel\Kernel::handle)
1 src/SimpleSAML/Module.php:234 (SimpleSAML\Module::process)
0 public/module.php:14 (N/A)
please suggest Pooja2425 (talk) 14:45, 25 April 2023 (UTC)

Image alias

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Is it possible to create image alias?

I mean having 2 names for 1 image.

For example having those 2 links targeting the same file:

[[Image:javascript.png]]
[[Image:js.png]]
NikusPokus (talk) 13:58, 20 April 2023 (UTC)
Yes. See help:redirect Bawolff (talk) 14:02, 20 April 2023 (UTC)
Thanks, redirection works for pages.
But how to get it work for images? NikusPokus (talk) 14:05, 20 April 2023 (UTC)
It should work the same for images as normal pages. Bawolff (talk) 15:10, 20 April 2023 (UTC)
It was a bit more complicated than for pages, but I got it right.
Thanks for your help.
  1. go to the url `wiki/File:ImageAlias.jpg`
  2. click on create
  3. add the following redirection:
#REDIRECT [[File:Image.jpg]]
NikusPokus (talk) 16:47, 21 April 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

false information posted

Can you tell me how I can get false information removed? Matt baiamonte (talk) 15:22, 20 April 2023 (UTC)

You would have to contact the website where it is posted.
If this is on wikipedia, try emailing info-en@wikimedia.org Bawolff (talk) 16:00, 20 April 2023 (UTC)

Many of the citation templates "don't have documented parameters"

A while back I had imported many Citation templates from wikipedia (such as Cite web, Cite book, Cite Journal, Cite conference, etc). Recently though for some reason while editing an article on my wiki, when trying to use these templates, every one I tried to use (except Cite book for some reason it still has "documented parameters") said:

This template has no documented parameters and may be intended for use without them.

Which is weird because before every one of them had parameters to input. I've tried readding Template:Documentation, Template:Cite web, and the Module/Citation/CS1, but nothing changed, every time I would try to put in those citation templates it gave no parameters, even though if you go to their respective pages they list all the parameters, etc. If anyone wants to check out its on http://wwii-archives.org Guillaume Taillefer (talk) 23:20, 20 April 2023 (UTC)

Is extension:TemplateData installed? Bawolff (talk) 04:25, 21 April 2023 (UTC)
Yes, you know what let me try to update it and I'll see Guillaume Taillefer (talk) 17:56, 21 April 2023 (UTC)
No redownloading it and replacing the old TemplateData didn't do anything, it still shows that message Guillaume Taillefer (talk) 18:14, 21 April 2023 (UTC)
Still do not know what to do here Guillaume Taillefer (talk) 21:40, 23 April 2023 (UTC)
Is there someone who knows how to resolve this issue? I don't think it will be practical for any user to constantly have to reconsult the template page to know what the parameters are Guillaume Taillefer (talk) 15:46, 12 May 2023 (UTC)

my account was mysteriously renamed and then deleted. i want it back. please help.

my account was mysteriously renamed and then deleted. i want it back. please help. 98.197.104.199 (talk) 04:25, 21 April 2023 (UTC)

you haven't told us which account that would be and on which website...... But this forum is for support with a software package, so I doubt you are in the right place. —TheDJ (Not WMF) (talkcontribs) 14:51, 21 April 2023 (UTC)

rest

https://www.jardinplumaazul.tk/estela/rest.php in my wiki the file rest.php show error 500 and i don't know how to fix, help Uvas magicas (talk) 05:59, 21 April 2023 (UTC)

See manual:How to debug Bawolff (talk) 03:44, 22 April 2023 (UTC)

Size of upload limit

Our wiki has different maximum file upload size limits for different users (10 or 20 MB), but we don't know on what this depends on.

Does somebody has an idea?

Thank you! 195.88.117.25 (talk) 08:44, 21 April 2023 (UTC)

Please paste your LocalSettings.php.
It usually depends on LocalSettings.php or php.ini Bawolff (talk) 20:56, 21 April 2023 (UTC)
Thank you very much! 195.88.117.25 (talk) 06:42, 24 April 2023 (UTC)

How can I do it, please?


Sorry, I'm a newbie.


Regards Marcis20X (talk) 10:25, 21 April 2023 (UTC)

add where ? and to which website ? —TheDJ (Not WMF) (talkcontribs) 14:50, 21 April 2023 (UTC)

Fetch HTML for a word's definition

I have a project where I need to parse the word definitions of over 200,000 words. I use the following link to fetch the definition: "https://en.wiktionary.org/wiki/<my-word>" example: https://en.wiktionary.org/wiki/run, https://en.wiktionary.org/wiki/apple


But fetching the pages over HTTP doesn't seem like a great idea. I need your help in getting the raw html for all words. I was checking the wiki dumps but I wasn't sure which file should I be using and also the format of the files wasn't very user-friendly.


It would be really great if you could help me with this.


Thanks 🙌 122.172.84.102 (talk) 05:12, 22 April 2023 (UTC)

API:Main page Malyacko (talk) 18:43, 22 April 2023 (UTC)
https://en.wiktionary.org/api/rest_v1/#/Page%20content/get_page_definition__term_ or dumps, or maybe a kiwix zim file. Bawolff (talk) 21:26, 22 April 2023 (UTC)

Colored when JS and CSS are displayed

I would like to colorize the JS and CSS when displayed. They are colored when edited, but not when displayed. 2400:4152:6600:2900:E51F:69D1:2FE1:FA74 (talk) 06:44, 22 April 2023 (UTC)

Is extension:SyntaxHighlight installed? Bawolff (talk) 06:47, 22 April 2023 (UTC)
Yes, installed. 2400:4152:6600:2900:E51F:69D1:2FE1:FA74 (talk) 06:56, 22 April 2023 (UTC)
Does it work for the <syntaxhighlight> tags? Bawolff (talk) 15:14, 22 April 2023 (UTC)

How do I fix this error?

Hi, I need advice on how to fix the error in the database, as I need to create several user accounts to use as bots. Lomeno 24 (Contact me here) 04:32, 23 April 2023 (UTC)

@Lomeno 24 Hi, please read and follow "Post a new question" in the sidebar. After that, please see Manual:How_to_debug. Thanks! Malyacko (talk) 10:06, 23 April 2023 (UTC)

Offline Self hosted Server

I want to be able to upload anything and everything regardless of "security issues". The only person or persons that can access the server are through lan on my property. I am using Mediawiki as a organizational tool for myself. Is there any configuration I can set that would allow this? Wildfirebill (talk) 23:58, 23 April 2023 (UTC)

$wgVerifyMimeType = false; Bawolff (talk) 00:28, 24 April 2023 (UTC)
Ok will I have to add the file types such as "exe; zip; 7z; etc" Wildfirebill (talk) 00:55, 24 April 2023 (UTC)
anyway around the exe file not being able to upload without zipping it? Wildfirebill (talk) 16:30, 24 April 2023 (UTC)

Attempted to upgrade Mediawiki from 1.35 to 1.39 through Softaculous and now there is an error

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hi

MediaWiki version 1.39 now on the server but database is 1.35 PHP version 7.4.33 Database type and version MySQL 15.1 i believe ( i had a friend who offered me guidance to access terminal to check versions, but i forgot note down the version of the database )

I attempted to run an upgrade through Softaculous, from 1.35 to 1.39

it got to the screen where it said

I then attempted to click on the link and it came up with this error

Anyone have any ideas? This is now beyond my technical experience as I'm not a programmer.

the website won't load now www.beyondangkor.org as according to the tech support at my hosting they said Softaculous has actually upgraded to 1.39 but it seems the database files are not at that version.

I was misled when I had started the wizard, as in the wizard on Softaculous it didn't actually state that it was "upgrading" it called it a "check" of some sort, so I had originally thought it was doing a back up (as it asked how i wanted to back up "full backup") and inadvertently it actually ran the server upgrade for mediawiki.


is there a way to fix this? would it be best to upgrade the database OR would it be better to downgrade the server from 1.39 to 1.35?

I've tried reading up on the errors, and ways to upgrade the database but it is all very confusing for me now.

I tried addressing the social profile error by changing the way extensions are loaded as it was using the older php command

require_once "$IP/extensions/SocialProfile/SocialProfile.php" ; require_once( "$IP/extensions/SocialProfile/UserStats/EditCount.php" );

to wfLoadExtension( 'SocialProfile' ); wfLoadExtension( 'EditCount' );

and that didn't work, so I removed the wfLoadExtension( i added for Social profile and re-instated the original require once line but now it comes up with a different error when i try to open up www.beyondangkor.org Fatal error: Uncaught Exception: Unable to open file /home/beyondan/public_html/skins/Modern/skin.json: filemtime(): stat failed for /home/beyondan/public_html/skins/Modern/skin.json in /home/beyondan/public_html/includes/registration/ExtensionRegistry.php:199 Stack trace: #0 /home/beyondan/public_html/includes/GlobalFunctions.php(86): ExtensionRegistry->queue('/home/beyondan/...') #1 /home/beyondan/public_html/LocalSettings.php(167): wfLoadSkin('Modern') #2 /home/beyondan/public_html/includes/Setup.php(218): require_once('/home/beyondan/...') #3 /home/beyondan/public_html/includes/WebStart.php(86): require_once('/home/beyondan/...') #4 /home/beyondan/public_html/index.php(44): require('/home/beyondan/...') #5 {main} thrown in /home/beyondan/public_html/includes/registration/ExtensionRegistry.php on line 199

and when i try to run the upgrade link from the softaculous


I have not made any other changes in the localsettings or anywhere else


Any guidance would be very much appreciated. B1Bayon (talk) 16:13, 24 April 2023 (UTC)

It seems like SocialProfile is not compatible with your version of PHP. Suggest disabling it temporarily to complete the update and then look further into SocialProfile
Now your skin used is not supported, so just remove the different skin temporarily and use the default skin instead. —TheDJ (Not WMF) (talkcontribs) 09:57, 25 April 2023 (UTC)
Hi TheDJ,
I removed the skin, and the "social profile error" appeared
I disabled the Social Profile in the local settings for the time being,
and I was able to run the database upgrade through the Softaculous, and it looks like it is upgraded.
Now when i open www.beyondangkor.org a different error comes up
Deprecated: Use of SkinTemplateNavigation hook (used in replaceTabs) was deprecated in MediaWiki 1.39. [Called from MediaWiki\HookContainer\HookContainer::run in /home/beyondan/public_html/includes/HookContainer/HookContainer.php at line 137] in /home/beyondan/public_html/includes/debug/MWDebug.php on line 381
Deprecated: Use of SkinTemplateNavigation hook (used in CargoRecreateDataAction::displayTab) was deprecated in MediaWiki 1.39. [Called from MediaWiki\HookContainer\HookContainer::run in /home/beyondan/public_html/includes/HookContainer/HookContainer.php at line 137] in /home/beyondan/public_html/includes/debug/MWDebug.php on line 381
Deprecated: Use of SkinTemplateNavigation hook (used in CargoHooks::addPurgeCacheTab) was deprecated in MediaWiki 1.39. [Called from MediaWiki\HookContainer\HookContainer::run in /home/beyondan/public_html/includes/HookContainer/HookContainer.php at line 137] in /home/beyondan/public_html/includes/debug/MWDebug.php on line 381 49.198.120.176 (talk) 23:01, 25 April 2023 (UTC)
So after reviewing the above, I realise it is something to do with the "Cargo" Extension.
So I've just downloaded the updated Cargo, and this error now appears
Fatal error: Cannot access non-public property Parser::$mStripState in /home/beyondan/public_html/includes/debug/DeprecationHelper.php on line 202 B1Bayon (talk) 12:00, 26 April 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Make my wiki display search thumbnails

Vector 2022 has image thumbnails that appear during searches.

They are not appearing on my wiki, however.

Can anyone help me figure out why and how I can fix that. This is the closest thing I've been able to find, but it still doesn't seem to be the solution.

Manual:Hooks/SearchResultProvideThumbnail#Parameters

Thanks Blackstonewasright (talk) 02:55, 25 April 2023 (UTC)

You are looking for Extension:PageImagesTheDJ (Not WMF) (talkcontribs) 09:54, 25 April 2023 (UTC)

Lot of spam accounts

We have a captcha on register page on cs.wv, but still a lot of spam accounts are being registered. How is it possible? Is there any other settings we may use to lower this number? Juandev (talk) 08:41, 25 April 2023 (UTC)

For wikimedia wikis, better to ask on meta:Tech Bawolff (talk) 06:50, 26 April 2023 (UTC)

Preloaded templates

Hi!

I know that extension Extension:Page_Forms allows to create a form where user can specify a preloaded template for the page. My question is it possible to make links (like in the navigation tab template) to non-existing page that will use specified template while being created?

For example a have a links:

* [[Link 1]]
* [[Link 2]]
* [[Link 3]]

And I want to start creating relevant pages with certain template. How to implement that? Fokebox (talk) 09:05, 25 April 2023 (UTC)

Website error

Good day, My new website Url https://en.nigeriaschool.org/wiki/Main_Page

Installed on shared hosting.


I just installed this site new.. the only thing i did was


Change the url from index to wiki/main_page


Enable Mobile View


close regristration as per under construction everything is working fine... But Now i cant install any new extention cause once i donwload the file on extensions.. And i try to activate it from localsetting, my website wont load any more.. i have tried diffrent extension.. Same error... dont know where it is from..


Here are the only code i added


# Enabled skins.

# The following skins were automatically enabled:

wfLoadSkin( 'MinervaNeue' );

wfLoadSkin( 'MonoBook' );

wfLoadSkin( 'Timeless' );

wfLoadSkin( 'Vector' );

# End of automatically generated settings.

# Add more configuration options below.

# Enable pretty URLs

$wgArticlePath = "/wiki/$1";

# Enable URL rewriting

$wgUsePathInfo = true;

$wgTmpDirectory = "/home/thebnade/tmp_yizitn";

# Allow only logged-in users to view and edit pages

$wgGroupPermissions['*']['read'] = true;

$wgGroupPermissions['user']['read'] = true;

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

$wgGroupPermissions['user']['edit'] = true;

$wgGroupPermissions['*']['createaccount'] = false;

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

$wgGroupPermissions['sysop']['delete'] = true;

$wgGroupPermissions['sysop']['protect'] = true;

$wgGroupPermissions['sysop']['block'] = true;

$wgGroupPermissions['sysop']['userrights'] = true;

$wgGroupPermissions['sysop']['upload'] = true;

$wgGroupPermissions['sysop']['import'] = true;

$wgGroupPermissions['sysop']['importupload'] = true;

$wgAddGroups['sysop'] = array( 'Chima' );



Then on .htaccess


# Enable URL rewriting

RewriteEngine On

# Rewrite URLs to remove index.php

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php?title=$1 [L,QSA] Thatnewman (talk) 12:47, 25 April 2023 (UTC)

<?php
# This file was automatically generated by the MediaWiki 1.39.3
# installer. If you make manual changes, please keep track in case you
# need to recreate them later.
#
# See docs/Configuration.md for all configurable settings
# and their default values, but don't forget to make changes in _this_
# file, not there.
#
# Further documentation for configuration settings may be found at:
# https://www.mediawiki.org/wiki/Manual:Configuration_settings
# Protect against web entry
if ( !defined( 'MEDIAWIKI' ) ) {
exit;
}
## Uncomment this to disable output compression
# $wgDisableOutputCompression = true;
$wgSitename = "NigeriaSchool";
$wgMetaNamespace = "NigeriaSchool";
## The URL base path to the directory containing the wiki;
## defaults for all runtime URL paths are based off of this.
## For more information on customizing the URLs
## (like /w/index.php/Page_title to /wiki/Page_title) please see:
## https://www.mediawiki.org/wiki/Manual:Short_URL
$wgScriptPath = "";
## The protocol and server name to use in fully-qualified URLs
$wgServer = "http://en.nigeriaschool.org";
## The URL path to static resources (images, scripts, etc.)
$wgResourceBasePath = $wgScriptPath;
## The URL paths to the logo.  Make sure you change this from the default,
## or else you'll overwrite your logo when you upgrade!
$wgLogos = [
'1x' => "$wgResourceBasePath/resources/assets/change-your-logo.svg",
'icon' => "$wgResourceBasePath/resources/assets/change-your-logo-icon.svg",
];
## UPO means: this is also a user preference option
$wgEnableEmail = true;
$wgEnableUserEmail = true; # UPO
$wgEmergencyContact = " ##Censore##
$wgPasswordSender = " ##Censore##
$wgEnotifUserTalk = true; # UPO
$wgEnotifWatchlist = true; # UPO
$wgEmailAuthentication = true;
## Database settings
$wgDBtype = ##Censore##
$wgDBserver = ##Censore##
$wgDBname = ##Censore##
$wgDBuser = ##Censore##
$wgDBpassword = ##Censore##
# MySQL specific settings
$wgDBprefix = ##Censore##
# MySQL table options to use during installation or update
$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary";
# Shared database table
# This has no effect unless $wgSharedDB is also set.
$wgSharedTables[] = "actor";
## Shared memory settings
$wgMainCacheType = CACHE_NONE;
$wgMemCachedServers = [];
## To enable image uploads, make sure the 'images' directory
## is writable, then set this to true:
$wgEnableUploads = true;
#$wgUseImageMagick = true;
#$wgImageMagickConvertCommand = "/usr/bin/convert";
# InstantCommons allows wiki to use images from https://commons.wikimedia.org
$wgUseInstantCommons = false;
# Periodically send a pingback to https://www.mediawiki.org/ with basic data
# about this MediaWiki instance. The Wikimedia Foundation shares this data
# with MediaWiki developers to help guide future development efforts.
$wgPingback = true;
# Site language code, should be one of the list in ./includes/languages/data/Names.php
$wgLanguageCode = "en";
# Time zone
$wgLocaltimezone = "America/New_York";
## Set $wgCacheDirectory to a writable directory on the web server
## to make your wiki go slightly faster. The directory should not
## be publicly accessible from the web.
#$wgCacheDirectory = "$IP/cache";
$wgSecretKey = ##Censore##
# Changing this will log out all existing sessions.
$wgAuthenticationTokenVersion = "1";
# Site upgrade key. Must be set to a string (default provided) to turn on the
# web installer while LocalSettings.php is in place
$wgUpgradeKey = ##Censore##
## For attaching licensing metadata to pages, and displaying an
## appropriate copyright notice / icon. GNU Free Documentation
## License and Creative Commons licenses are supported so far.
$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
$wgRightsUrl = "";
$wgRightsText = "";
$wgRightsIcon = "";
# Path to the GNU diff3 utility. Used for conflict resolution.
$wgDiff3 = "/usr/bin/diff3";
## Default skin: you can change the default skin. Use the internal symbolic
## names, e.g. 'vector' or 'monobook':
$wgDefaultSkin = "vector";
wfLoadExtension( 'MobileFrontend' );
# Enabled skins.
# The following skins were automatically enabled:
wfLoadSkin( 'MinervaNeue' );
wfLoadSkin( 'MonoBook' );
wfLoadSkin( 'Timeless' );
wfLoadSkin( 'Vector' );
# End of automatically generated settings.
# Add more configuration options below.
# Enable pretty URLs
$wgArticlePath = "/wiki/$1";
# Enable URL rewriting
$wgUsePathInfo = true;
$wgTmpDirectory = "/home/thebnade/tmp_yizitn";
# Allow only logged-in users to view and edit pages
$wgGroupPermissions['*']['read'] = true;
$wgGroupPermissions['user']['read'] = true;
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['user']['edit'] = true;
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['sysop']['edit'] = true;
$wgGroupPermissions['sysop']['delete'] = true;
$wgGroupPermissions['sysop']['protect'] = true;
$wgGroupPermissions['sysop']['block'] = true;
$wgGroupPermissions['sysop']['userrights'] = true;
$wgGroupPermissions['sysop']['upload'] = true;
$wgGroupPermissions['sysop']['import'] = true;
$wgGroupPermissions['sysop']['importupload'] = true;
$wgAddGroups['sysop'] = array( 'Chima' ); Thatnewman (talk) 12:55, 25 April 2023 (UTC)
You could fix the line: $wgScriptPath = ""; Malyacko (talk) 13:52, 25 April 2023 (UTC)
You'd need to show us LicalSettings.php with the error.
Please enable php errors by following instructions at manual:How to debug Bawolff (talk) 06:48, 26 April 2023 (UTC)

HitCounter is not working

I can see it installed at special pages/version but it is not appearing at the bottom of the screen...


Installed software

Product Version
MediaWiki 1.32.0
PHP 7.4.33 (apache2handler)
MySQL 5.7.39-42-log

Kan00n11 (talk) 13:50, 25 April 2023 (UTC)

Wrapping a mediawiki site with a third party login interface

Hi I am exploring ways of controlling access to various namespaces in MediaWiki as I gather it is not really designed with security and granular access control in mind.

Is it possible to "whitelist" entire template namespaces (or blacklist other template namespaces)?

I had in mind a fairly rigorous structure where each page in the main space was built out of transcluded templates from whilelisted or non-whitelisted template spaces. for example, the main page "Cat Story" would contain:

{{Part 1|Cat Story}}
{{Part 2|Cat Story}}

which in turn generates two templates: [[Template:Cat Story]] which will be in a whitelisted "Template" namespace, and will contain the text:

"'The Cat Sat on the Mat' is not much of a story, but"

and [[Securetemplate:Cat Story}} which will be in a non-whitelisted "Securetemplate" namespace, and will contain the text:

"'the Cat Sat on the Dog's Mat' — Now THAT is a story."

Registered visitors who visit to the page "Cat Story" would see:

"'The Cat Sat on the Mat' is not much of a story, but 'the Cat Sat on the Dog's Mat' — Now THAT is a story."

whereas unregistered visitors with only whitelisted access would see:

"'The Cat Sat on the Mat' is not much of a story, but ... SORRY! To see the punchline, you have to log in, which you can do <here>"

Does that make sense as a concept? ElectricRay (talk) 15:02, 25 April 2023 (UTC)

You are right, MediaWiki is not designed to prevent access to content, but too easily share and collaborate on it.
You can checkout Manual:$wgWhitelistRead and Extension:Lockdown.
But I think for the use case you have shared, you might need to create a custom extension. BeforeParserFetchTemplateRevisionRecord may be a good hook to bind on. Osnard (talk) 05:46, 26 April 2023 (UTC)
Be sure to disable (or split) parser cache if doing something like this.
Be wary of other extensions that may break your access control, things like the recent changes RSS feed, search, etc. Bawolff (talk) 06:41, 26 April 2023 (UTC)
Thanks for your help and advice. FYI I have found a way of doing this by using two wikis and transcluding between them. ElectricRay (talk) 14:01, 15 May 2023 (UTC) The open access one raw-transcludes to the restricted one, and you just wrap more secure content around that. ElectricRay (talk) 14:01, 15 May 2023 (UTC)

Using Hooks ParserFirstCallInit in extension.json?

I am using MW 1.35.5 and PHP 7.4.33 and MariaDB 10.3.

I am debugging a simple tag extension for <haskell> and <hask>, but I get different results depending whether I do the following in my wikitext:

This works (substituting <syntaxhighlight lang="haskell" inline> when the following text is <hask>xyz</hask>):

<hask /> bla bla bla <hask>xyz</hask>


This doesn't work (no substitution occurs):

bla bla bla <hask>xyz</hask>


In other words, the <hask> code works ONLY if something "primes" it. Otherwise, the <hask>xyz</hask> is unchanged. HowardBGolden (talk) 21:24, 25 April 2023 (UTC)

Here is the include/SyntaxHighlightHaskellAlias code:
<?php
class SyntaxHighlightHaskellAlias
{
  public static function onParserFirstCallInit(Parser $parser)
  {
   $parser->setHook( 'haskell', [ self::class, 'renderHaskellTag' ] );
   $parser->setHook( 'hask', [ self::class, 'renderHaskTag' ] );
  }
  public static function renderHaskellTag( $input, array $args, Parser $parser, PPFrame $frame )
  {
   $output = $parser->recursiveTagParse('<syntaxhighlight lang="haskell">' . $input . '</syntaxhighlight>', $frame );
   return $output;
  }
  public static function renderHaskTag( $input, array $args, Parser $parser, PPFrame $frame )
  {
   $output = $parser->recursiveTagParse('<syntaxhighlight lang="haskell" inline>' . $input . '</syntaxhighlight>', $frame );
   #return 'dingdong';
   return $output;
  }
} HowardBGolden (talk) 21:30, 25 April 2023 (UTC)
You can try Parser::recursiveTagParseFully. But maybe there is another, better solution. Rather than creating an alias for the syntaxhighlight tag, you could wrap it in a template.
Like {{Hask|xzy}}. Within the template you can use the {{#tag:}} parserfunction to delegate to syntaxhighlight.
Be aware that syntaxhighlight itself has a very good VisualEditor integration, while neither a custom wrapper tag, nor a template do have that. Osnard (talk) 05:57, 26 April 2023 (UTC)
Parser::recursiveTagParseFully would not be the correct thing to do in this situation since full rendering is not expected in that place.
are you sure its not an issue with syntaxhighlight? Bawolff (talk) 06:37, 26 April 2023 (UTC)
Based on replies by User:Osnard and User:Bawolff I think it may be better for me to use Extension:MassEditRegex to replace all <hask>...</hask> and <haskell>...</haskell> tags with the Extension:SyntaxHighlight wikitext equivalents. I will test this out on my development wiki. (Any help using Extension:MassEditRegex would be welcome! TIA!) HowardBGolden (talk) 14:42, 26 April 2023 (UTC)

Urgent help

I installed mediawiki on the computer and wrote many pages, templates, categories, etc. in it, after a while I reinstalled the computer and copied the wiki folder to a flash card.

After reinstalling I could not access the old material from the previous computer in any way.

Is there a way to access the material? The material is very important to me and I invested a lot of time in it. מוטל'ה (talk) 21:38, 25 April 2023 (UTC)

MediaWiki stores its content in a database (usually MySQL, maybe SQlite), which is not necessarily located in the "wiki folder". If you didn't backup the database as well, you may have lost your data. Osnard (talk) 05:41, 26 April 2023 (UTC)

Upgrade from 1.38.4 to 1.39.3

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hello Anyone and Everyone,
I am attempting an update, as the subject of this message suggests, and have run into a few issues.
I'm concerned that my use of some extensions may have resulted in a larger problem within my mediawiki installation, specifically Flagged Revisions. I would definitely like the feedback of an expert.
Two obvious issues, that may be symptoms, but require fixing are:
1) After update.php is run, uploaded files still go to my old media wiki image folder. As suggested by mediawiki i use symlinks on my linux server to point apache to the active version of mediawiki. I have looked everywhere to find how the path to the old image folder is still being used but have come up empty handed.
2) The version of media wiki does not reflect 1.39.3 in the Special:Version Page, it is still 1.38.4. This is how i know something weird is going on.
I have backups of files and databases and have attempted a few different update paths, none have worked.
Anyone's assistance would be welcome.
Thanks for taking the time to assist. Gpascucci (talk) 22:29, 25 April 2023 (UTC)
It might be a cache problem. When I updated from 1.38.4 to 1.39.3 I also had errors reffering to old version of mediawiki, but as soon as old folder with MW was completely removed the problem resolved. Fokebox (talk) 07:05, 26 April 2023 (UTC)
This doesn't sound flaggedrevs/extension related.
> As suggested by mediawiki i use symlinks on my linux server to point apache to the active version of mediawiki.
Can you be more specific? It sounds like you are still using the old version of mediawiki. Bawolff (talk) 06:44, 26 April 2023 (UTC)
Hello @Fokebox, @Bawolff,
In my case I used the symlink "/var/www/mywebsite" to point to "/var/www/mediawiki-newverision" and then left my old version /var/www/mediawiki-oldversion" on the file system in case i had to rollback my changes.
Well, as @Fokebox speculated, once i removed my oldversion folder from the syatem, everything updated accordingly. I went weeks wondering what was going on and and it wasn't until i removed the directory did i see my version actually update.
Seems odd for it to cash for so long..
Thanks for helping me out! Gpascucci (talk) 21:33, 29 April 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Mediawiki and LDAP. It doesn't show login box after running update.php

Hello,

I've installed Mediawiki 1.39.2, xamp 8.2.0 and extensions 1.39 over Microsoft Windows. I want to integrate to Active Directory.

After running update.php (which ran apparently ok), mediawiki doesn't let me login in, even with administrator user. It shows always this message:

"Las credenciales proporcionadas no se han podido autentificar."

I tested CheckLogin.php and ShowUserInfo.php. Both ran ok.

D:\xampp\php>php d:\xampp\htdocs\mediawiki\extensions\LDAPProvider\maintenance\CheckLogin.php --domain domino.local --username wikisoludepa

Password:XXXXXXXXX

OK

D:\xampp\php>php d:\xampp\htdocs\mediawiki\extensions\LDAPProvider\maintenance\ShowUserInfo.php --domain dominio.local --username marisolb

cn => marisolb

................

dn => CN=marisolb,CN=Users,DC=dominio,DC=local

I don't see error at the output of update.php.

I enabled debug and this is the output of trying to login. Can someone please help me to find the problem?

Thanks in advance.

.....................................................................................

[authentication] Login failed in primary authentication because no provider accepted

..................................................................................

[authevents] Login attempt

......................................................

[DBQuery] MediaWiki::preOutputCommit [0s] localhost: COMMIT

MediaWiki::preOutputCommit: primary transaction round committed

MediaWiki::preOutputCommit: pre-send deferred updates completed

MediaWiki::preOutputCommit: session changes committed

[DBReplication] Wikimedia\Rdbms\LBFactory::shutdown: finished ChronologyProtector shutdown

[DBReplication] LBFactory shutdown completed

.................................................................................

OutputPage::sendCacheControl: no caching **

[DBQuery] MediaWiki::restInPeace [0.002s] localhost: COMMIT

...................................................................

[DBReplication] LBFactory shutdown completed

Request ended normally

[session] Saving all sessions on shutdown

[resourceloader] Failed to find echo-badge-count (es)

[resourceloader] Failed to find templatedata-doc-subpage (es) Marisol6B (talk) 01:53, 26 April 2023 (UTC)

What other extensions do you have installed? Can you please give details about their versions too?
Maybe check the LDAP related logs. Osnard (talk) 05:39, 26 April 2023 (UTC)
Hello Osnard,
We have the extensions that were included on mediawiki-1.39.2. They are:
wfLoadExtension( 'CodeEditor' );
wfLoadExtension( 'Gadgets' );
wfLoadExtension( 'MultimediaViewer' );
wfLoadExtension( 'OATHAuth' );
wfLoadExtension( 'PdfHandler' );
wfLoadExtension( 'SecureLinkFixer' );
wfLoadExtension( 'TextExtracts' );
wfLoadExtension( 'VisualEditor' );
wfLoadExtension( 'WikiEditor' );
After following instructions at this link Manual:Active Directory Integration, we downloaded and enabled the following extensions (version 1.39):
  wfLoadExtension( 'PluggableAuth' );
  wfLoadExtension( 'LDAPProvider' );
  wfLoadExtension( 'LDAPAuthentication2' );
  wfLoadExtension( 'LDAPAuthorization' );
  wfLoadExtension( 'LDAPUserInfo' );
  wfLoadExtension( 'LDAPGroups' );
I thank you the help you can give us in advance.
Regards Marisol6B (talk) 19:51, 26 April 2023 (UTC)
I think we need more information from the logs. Current logs only show
Login failed in primary authentication because no provider accepted
Please check LDAP_hub#Debugging. Osnard (talk) 06:23, 27 April 2023 (UTC)
Hello Osnard,
Thanks for your reply.
I followed the instructions at LDAP_hub#Debugging.
I ran these 3 commands and all of them executed succesfully:
php d:\xampp\htdocs\mediawiki\extensions\LDAPProvider\maintenance\ShowUserInfo.php --domain domain.local --username marisolb
cn => marisolb
.....................
dn => CN=marisolb,CN=Users,DC=dominio,DC=local
php d:\xampp\htdocs\mediawiki\extensions\LDAPProvider\maintenance\ShowUserGroups.php --domain domain.local --username marisolb
Full DNs:
        CN=WikiADM,CN=Users,DC=dominio,DC=local
.........................................................
php d:\xampp\htdocs\mediawiki\extensions\LDAPProvider\maintenance\CheckLogin.php --domain dominio.local --username marisolb
Password:XXXXXXXXX
OK
Then, i enabled this configuration at LocalSettings.php file:
$LDAPProviderCacheType = CACHE_NONE;
$wgDebugLogGroups['PluggableAuth'] =
$wgDebugLogGroups['LDAP'] =
$wgDebugLogGroups['MediaWiki\\Extension\\LDAPProvider\\Client'] =
$wgDebugLogGroups['LDAPGroups'] =
$wgDebugLogGroups['LDAPUserInfo'] =
$wgDebugLogGroups['LDAPAuthentication2'] =
$wgDebugLogGroups['LDAPAuthorization'] = "$IP/debugldap.log";
But no debugldap.log is generated. I restarted Apache service, but no debugldap.log file is created. Am i setting something wrong?
The only debug file i can get is the one configured as follows:
$wgShowExceptionDetails = true;
$wgDebugToolbar = true;
$wgShowDebug = true;
$wgDevelopmentWarnings = true;
$wgDebugLogFile = "$IP/debug.log";
At this file i get the error you saw before:
Login failed in primary authentication because no provider accepted
I appreciate your help. I don't know where to look for the error. Php scripts seem to work properly. It seems a problem with Apache or something else i don't understand.
Thanks in advance. Marisol6B (talk) 03:42, 28 April 2023 (UTC)
Can you please share the (redacted) contents of "$IP/debugldap.log"? Osnard (talk) 06:55, 28 April 2023 (UTC)
Hello Osnard,
The problem is that "$IP/debugldap.log" wasn't created. I go through http://localhost:8081/mediawiki/index.php?title=Especial:Entrar&returnto=Especial%3AEntrar
I configured LocalSettings.php file as follows:
$LDAPProviderCacheType = CACHE_NONE;
$wgDebugLogGroups['PluggableAuth'] =
$wgDebugLogGroups['LDAP'] =
$wgDebugLogGroups['MediaWiki\\Extension\\LDAPProvider\\Client'] =
$wgDebugLogGroups['LDAPGroups'] =
$wgDebugLogGroups['LDAPUserInfo'] =
$wgDebugLogGroups['LDAPAuthentication2'] =
$wgDebugLogGroups['LDAPAuthorization'] = "$IP/debugldap.log";
But that logfile wasn't created.
Maybe that file is created if the login page appears but in my case, i can't access the login page. I always get the:
"Las credenciales proporcionadas no se han podido autentificar." message.
Something is blocking the login page, i can't find the cause.
Thanks,
Regards Marisol6B (talk) 16:29, 28 April 2023 (UTC)
$IP is probably not writeable by the webserver user. Try to place the debug file into $IP/cache/debugldap.log or /tmp/debugldap.log. Osnard (talk) 07:29, 2 May 2023 (UTC)
Hello Osnard,
Thanks very much for your help on this. I tried the following paths:
d:\temp\debugldap.log
$IP/cache/debugldap.log
$IP/debugldap.log
but none of them worked. The debugldap.log file isn't created.
This installation is over Microsoft Windows. The webserver httpd is running with the user SYSTEM.
I checked that SYSTEM user can write and read on those directories.
It seems like if this code isn't executed or it'snt taked into account:
$LDAPProviderCacheType = CACHE_NONE;
$wgDebugLogGroups['PluggableAuth'] =
$wgDebugLogGroups['LDAP'] =
$wgDebugLogGroups['MediaWiki\\Extension\\LDAPProvider\\Client'] =
$wgDebugLogGroups['LDAPGroups'] =
$wgDebugLogGroups['LDAPUserInfo'] =
$wgDebugLogGroups['LDAPAuthentication2'] =
$wgDebugLogGroups['LDAPAuthorization'] = "$IP/debugldap.log";
The strange is that php scripts find the LDAP configuration and work properly.
If i go through the web browser, then it seems it'snt finding the LDAP configuration.
What else can i try?
Regards. Marisol6B (talk) 03:21, 4 May 2023 (UTC)
Debugging LocalSettings.php I can see that this code isn't never executed:
  if ($wikiRequestSafe) { $LDAPAuthentication2AllowLocalLogin = true;   }
Because $wikiRequestSafe is empty. Marisol6B (talk) 03:48, 4 May 2023 (UTC)

Possibility of searching for certain content only?

Hello everyone,

I am a fairly new user of the MediaWiki and I was wondering if someone here knows a solution to what I am trying to achieve, since I am inexperienced and don't know which possibilities this software has to offer.

My wiki contains pages about many parts of a machine. Each page includes a table with past experiences about the part, especially which problems they have caused. One column contains the symptoms which have occurred at the time.

Would there be a possibility of implementing a search just for this symptom column of all the tables of each page or a way to tag the symptoms in the column so that they can be all displayed on a different page (preferably this)?

Thank you so much in advance for any advice!

Best regards 2A02:3032:20D:C12D:AC34:3EA1:EB00:41A6 (talk) 09:16, 26 April 2023 (UTC)

Error after upgrade from 1.35.9 to 1.39.3

Upgraded from 1.35.9 to 1.39.3 but all pages are showing this error:

InvalidArgumentException: WikiPage constructed on a Title that cannot exist as a page: Special:Badtitle


All the pages have this error but the main page does load. Any idea what this error means? Oldmanwaterfall (talk) 15:49, 26 April 2023 (UTC)

Protection of a category and all pages within that category

Is there a way to put the category: example in full protection and all the pages that are in this category will be under full protection? Sokote zaman (talk) 19:52, 26 April 2023 (UTC)

Not in mediawiki core. You would need to make an extension.
There is a feature for all pages using a template. Bawolff (talk) 02:21, 27 April 2023 (UTC)
Please give more guidance
What template or extension should I use?@Bawolff Sokote zaman (talk) 21:18, 30 April 2023 (UTC)

How to create a "sanitized" test environment?

The Haskell wiki (https://wiki.haskell.org) is small and lightly used, but I'd like to create a test version of the full database that doesn't leak any secrets (e.g., login credentials) for use by volunteers that don't need administrator access to the secrets. Only a few test user accounts would be needed. Is there a checklist or tool to create this kind of environment? Thanks. HowardBGolden (talk) 20:47, 26 April 2023 (UTC)

Where is the icon explainer page?

I'm reading Another Eden Wiki and I am frustrated that the icons for the various elements are like a black box, no alt text, and the names of the png files don't offer any clue as to what they are about. I would like a page that shows all the icons (elements mostly, but also item properties) so I can look up what I am seeing. This website was absolutely not designed to be accessible. Which one is earth? Air? Water? Fire? Thunder? Crystal? 98.147.251.188 (talk) 01:13, 27 April 2023 (UTC)

Hi,
You should direct this query to another eden wiki. We dont know what the icons mean any more than you do. Bawolff (talk) 02:19, 27 April 2023 (UTC)

Upgraded MW 1.35-1.39, upgraded all relevant extensions, upon upgrading Cargo I get a Fatal Error

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Upgraded MW 1.35-1.39, upgraded all relevant extensions (which solved the other issue that was posted the other day), upon upgrading Cargo I get a Fatal Error

Product Version MediaWiki 1.39.3 PHP 7.4.33 (litespeed) MariaDB 10.3.35-MariaDB-cll-lve ICU 63.1 Lua 5.1.5

Recently upgraded the Extensions that were causing errors in my wiki, along with the Cargo Extension. Upon upgrading each extension, different error messages disappeared from the wiki.

However after completing the Cargo Extension Upgrade, along with running the php update.php command I now get a Fatal Error as shown below on certain pages of my wiki.

www.beyondangkor.org and https://beyondangkor.org/index.php/Prasat_Preah_Ko_(Prasat_Bakong) as an example

(some pages work fine e.g. https://beyondangkor.org/index.php/Category:Architectural_Art_Styles) Just my main page, and individual site listings

Fatal error: Cannot access non-public property Parser::$mStripState in /home/beyondan/public_html/includes/debug/DeprecationHelper.php on line 202


I checked the deprecationhelper.php on line 202 and this is what it shows

trigger_error( "Cannot access non-public property $qualifiedName", E_USER_ERROR );


however I do not know what this refers to or means,

Much appreciated in advance :) B1Bayon (talk) 04:29, 27 April 2023 (UTC)

The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

fatal error during installation MediaWiki 1.39.3

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hi,

during the installation of MediaWiki I get the following fatal error:

<b>Fatal error</b>:  Class MediaWiki\Parser\Parsoid\Config\SiteConfig contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Wikimedia\Parsoid\Config\SiteConfig::getMWConfigValue) in <b>C:\inetpub\wwwroot\mediawiki\includes\parser\Parsoid\Config\SiteConfig.php</b> on line <b>64</b><br />


Configuration:

- Windows Server 2016 with IIS 10

- PHP 7.4.33

- MariaDB 10.11 MHTobi (talk) 06:06, 27 April 2023 (UTC)

Solution:
I've downloaded the zip again. The new zip were 10MB greater than the old one (1 Day old). MHTobi (talk) 08:50, 27 April 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

MediaWiki 1.39.0-rc.0: Fatal exception of type "TypeError"

I just upgraded Mediaiki to version 1.39 on the website https://www.vbu-ffm.de/UntermainWiki/index.php/Hauptseite.

After installation via https://www.vbu-ffm.de/UntermainWiki/mw-config/index.php I got the error message:

[415f8c982325b1e0fde16358] 2023-04-26 15:42:13: Fataler Ausnahmefehler des Typs „TypeError“

Fatal exception of type "TypeError"

What can I do? HorstVBU (talk) 08:48, 27 April 2023 (UTC)

Don't run insecure outdated release candidate versions like 1.39.0-rc.0 but supported software versions, and get a stacktrace by following Manual:How to debug Malyacko (talk) 11:42, 27 April 2023 (UTC)
After installing "MediaWiki 1.39.3" I got the same error:
[0873bd4746a1a88e42170754] 2023-04-29 15:16:59: Fataler Ausnahmefehler des Typs „TypeError“
When I enable $wgShowExceptionDetails then it shows the same as before:
[eed8b0e6ea1709a178d38b0d] /UntermainWiki/index.php TypeError: MediaWiki\Session\BotPasswordSessionProvider::__construct(): Argument #1 ($grantsInfo) must be of type MediaWiki\Permissions\GrantsInfo, array given, called in /.../UntermainWiki/vendor/wikimedia/object-factory/src/ObjectFactory.php on line 247
Backtrace:
from /.../UntermainWiki/includes/session/BotPasswordSessionProvider.php(47)
#0 /.../UntermainWiki/vendor/wikimedia/object-factory/src/ObjectFactory.php(247): MediaWiki\Session\BotPasswordSessionProvider->__construct(array)
#1 /.../UntermainWiki/vendor/wikimedia/object-factory/src/ObjectFactory.php(152): Wikimedia\ObjectFactory\ObjectFactory::getObjectFromSpec(array, array)
#2 /.../UntermainWiki/includes/session/SessionManager.php(477): Wikimedia\ObjectFactory\ObjectFactory->createObject(array)
#3 /.../UntermainWiki/includes/session/SessionManager.php(536): MediaWiki\Session\SessionManager->getProviders()
#4 /.../UntermainWiki/includes/session/SessionManager.php(243): MediaWiki\Session\SessionManager->getSessionInfoForRequest(WebRequest)
#5 /.../UntermainWiki/includes/WebRequest.php(843): MediaWiki\Session\SessionManager->getSessionForRequest(WebRequest)
#6 /.../UntermainWiki/includes/session/SessionManager.php(164): WebRequest->getSession()
#7 /.../UntermainWiki/includes/Setup.php(448): MediaWiki\Session\SessionManager::getGlobalSession()
#8 /.../UntermainWiki/includes/WebStart.php(86): require_once(string)
#9 /.../UntermainWiki/index.php(44): require(string)
#10 {main} HorstVBU (talk) 15:47, 29 April 2023 (UTC)

Categories not working

Hello,

I would like to ask for advice regarding the display of categories.

I add a category to the page, but this information is not displayed in the Сategories page (I use WampServer for Windows 10.).


I carefully reviewed the previous case:

Project:Support desk/Flow/2016/06#h-Categories_not_working-MediaWiki_1.27_internal_error-2016-06-30T16:44:00.000Z


The rebuildall.php and runJobs.php files were run as recommended by the experts - it didn't help.


I'm a little confused by the fact that when I view the window, Review your changes \ Wikitext I see that CMW automatically adds a colon before the text:

''':'''Category:Additive manufacturing (AM)


I don't add that colon when I link to a category.

Perhaps this is the problem - in the automatic addition of a colon and, accordingly, in blocking the display of that category on the Categories page?

Can anyone advise what to do?


Thank you in advance. Euroexp (talk) 10:51, 27 April 2023 (UTC)

Perhaps there is confusion between adding a category and linking to one? What happens if you add using the wikitext editor? Bawolff (talk) 14:53, 27 April 2023 (UTC)
Thank you so much for the answer.
After reading your post I tried another edit, and it solved my problem.
Before this, I used the Edit tab to add a page to a category. I used two square brackets and I got a service window asking me to enter a wikilink. And this link was always automatically preceded by a colon.
After I read your post, I tried to edit in the Edit Source tab. I enter all the links in the required format and everything works for me.
Thank you for your help. And sorry if my problem was very simple and I couldn't figure it out first!
Thank you again! Euroexp (talk) 16:30, 27 April 2023 (UTC)

it can't install when I download

when I download I didn't see it folder install I use Mac please help me Mfarah375 (talk) (talk) 14:01, 27 April 2023 (UTC)

Downloaded what exactly (name)? From where (URL)? Please also see "Post a new question" in the sidebar. Thanks. Malyacko (talk) 17:13, 27 April 2023 (UTC)

Page still showing in search after deletion

Hello,

I had a page called Interview:Chat with John Doe

Then created a namespace Interview: in local settings.

Now if I delete the Interview:Chat with John Doe it still stays in the search results and I can't get rid of it.

I have tried deleting it and recreating in the proper namespace but it still shows in the search results for the main namespace.

Does anyone have any advice on getting rid of the page in the search bar until someone types in the namespace Interview:

Thanks! GrizzlyBee (talk) 15:57, 27 April 2023 (UTC)

Try running cleanupTitles.php Bawolff (talk) 16:51, 27 April 2023 (UTC)
Thanks Bawolff - worked perfectly. GrizzlyBee (talk) 07:42, 28 April 2023 (UTC)

Is there a way to list all pages from the shell (maintenance)

I want to get the title of ALL pages, then i could view them with view.php and count the size

[maintenance]$ php ./view.php "Foobar"|wc -c

so i would get a list like

echo "Article: $title uses $bytes bytes\n"

maybe with creation date/last updated? ZootleBoot (talk) 18:53, 27 April 2023 (UTC)

Not out of the box. You would have to make your own.
Keep in mind that size of page and actual size on disk can be different. Bawolff (talk) 00:02, 28 April 2023 (UTC)

Add LDAP group with Administrator rights

OS: Fedora 38 (all below packages from Fedora repo)

Webserver: Nginx 1.24

DB: MariaDB 10.5.18

MediaWiki version: 1.39.3 (All plugins from MediaWiki plugin download for 1.39)

LDAP Authentication2: 2.0.0

LDAPAuthorization: 1.1.0

LDAPGroups: 1.03

LDAPProvider: 1.0.5

LDAPSyncAll: 1.0.0

LDAPUserInfo: 1.0.0

PluggableAuth: 6.2


I have the LDAP settings apparently working - I can log in using our local LDAP server and the groups are mapped into mediawiki.


What I'm trying to do is map a specific LDAP group to have administrative rights (ex: being able to edit MediaWiki:Loginprompt page).


However, even after manually assigning "Administrator" to a user, they still cannot do administrative functions like above.


Is there a setting or something I can add to LocalSetup.php or ldap.json file to help with this?

Example:

When I installed MediaWiki, manually added user "Alisonken1" as administrator

After getting LDAP working, login as "KenRoberts" using domain credentials

Update LocalSettings.php to include "ITAdmin" group with same rights as "sysop" (plus some others from Administrator listing)

Check group permissions and "ITAdmin" has same permissions as "Administrator"

User page indicates "KenRoberts" is "ITAdmin" group

Manually update "KenRoberts" and add to "Administrator" group

User page indicates "KenRoberts" now part of "ITAdmin", "Administrator" groups

User "KenRoberts" still cannot do Administrator actions like "Alisonken1" can.

In order to do administrator tags, comment LDAP extensions and login locally as "Alisonken1" - after finishing admin tasks, uncomment LDAP extensions so others can log in again.

edit: Add example, O/S and plugin info Alisonken1 (talk) 21:28, 27 April 2023 (UTC)

I don't think this is related to LDAP. Apparently the LDAP based group sync does work. That's all the plugin does. When it comes to _enforcing_ the permissions assigned to a group that's completely MediaWiki core. Osnard (talk) 06:58, 28 April 2023 (UTC)

Oracle functions missing, have you compiled PHP with the --with-oci8 option

When i access few pages in medaiwki i am getting below error


"Cannot access the database: Oracle functions missing, have you compiled PHP with the --with-oci8 option? (Note: if you recently installed PHP, you may need to restart your webserver and database"


Do i need to setup anything. i just rebooted linux machine after that i am facing this issue. Santoshkaif (talk) 17:00, 28 April 2023 (UTC)

sorry but the oracle database don't is compatible with mediawiki since the version 1.34. Uvas magicas (talk) 22:42, 28 April 2023 (UTC)
New versions of mediawiki dropped oracle support. On old version of mediawiki you need to install the oracle php extension.gg Bawolff (talk) 20:39, 1 May 2023 (UTC)
may i know from where i can install oracle php extension and what kind of extensions i have to install Santoshkaif (talk) 11:15, 3 May 2023 (UTC)
@Bawolff could you please help with official link to " install the oracle php extension" . i will need to provide steps to linux team. Santoshkaif (talk) 13:00, 4 May 2023 (UTC)
See Manual:Oracle for (outdated) information. Please ask in an Oracle forum for Oracle details. Malyacko (talk) 16:53, 4 May 2023 (UTC)
actually we are mysql in our application but i am not sure why error is throwing with "oracle compiler error" Santoshkaif (talk) 15:16, 5 May 2023 (UTC)
What is the value of $wgDBtype in LocalSettings.php ? Bawolff (talk) 19:45, 5 May 2023 (UTC)
$wgDBtype = "mysql"; it is 90.139.101.2 (talk) 08:51, 8 May 2023 (UTC)
Can you post your full LocalSettings.php with passwords/secret keys redacted? Bawolff (talk) 19:49, 9 May 2023 (UTC)

Cant access media wiki anymore

version is 1.34.0
When it try to access it it only shows a blank page 84.115.223.124 (talk) 14:22, 29 April 2023 (UTC)
Hat sich die PHP-Version geändert (ZB von 7.xx auf 8.xx)? HorstVBU (talk) 16:01, 29 April 2023 (UTC)
not sure, its from a project i wasnt involved in. I tried it with different php versions but the result is the same 84.115.223.124 (talk) 18:23, 29 April 2023 (UTC)
Manual:How to debugTheDJ (Not WMF) (talkcontribs) 14:27, 29 April 2023 (UTC)

Fedora 38 and Mediawiki 1.39.3-1

Hello - I just rebuilt my Fedora 37 system into a Fedora 38 system. Mediawiki upgraded from 1.38.6-1. Did the normal backup/restore procedure for both content and database with no issues. However, whenever I try to access the site with a browser, I get something like this:

[ZE2yd42_R1IQsuyHvTpPzAAAAM8] /wiki/index.php?title=Special:SpecialPages MWException: Error: invalid magic word '='

Backtrace:

from /usr/share/mediawiki/includes/MagicWord.php(129)

#0 /usr/share/mediawiki/includes/MagicWordFactory.php(231): MagicWord->load()

#1 /usr/share/mediawiki/includes/MagicWordArray.php(85): MagicWordFactory->get()

#2 /usr/share/mediawiki/includes/MagicWordArray.php(287): MagicWordArray->getHash()

#3 /usr/share/mediawiki/includes/parser/Parser.php(3079): MagicWordArray->matchStartToEnd()

#4 /usr/share/mediawiki/includes/parser/PPFrame_Hash.php(276): Parser->braceSubstitution()

#5 /usr/share/mediawiki/includes/parser/Parser.php(2955): PPFrame_Hash->expand()

#6 /usr/share/mediawiki/includes/parser/Parser.php(962): Parser->replaceVariables()

#7 /usr/share/mediawiki/includes/parser/Parser.php(4928): Parser->preprocess()

#8 /usr/share/mediawiki/includes/language/MessageCache.php(1308): Parser->transformMsg()

#9 /usr/share/mediawiki/includes/language/Message.php(1452): MessageCache->transform()

#10 /usr/share/mediawiki/includes/language/Message.php(1009): Message->transformText()

#11 /usr/share/mediawiki/includes/language/Message.php(1053): Message->format()

#12 /usr/share/mediawiki/includes/OutputPage.php(1048): Message->text()

#13 /usr/share/mediawiki/includes/OutputPage.php(1095): OutputPage->setHTMLTitle()

#14 /usr/share/mediawiki/includes/specialpage/SpecialPage.php(676): OutputPage->setPageTitle()

#15 /usr/share/mediawiki/includes/specials/SpecialSpecialpages.php(37): SpecialPage->setHeaders()

#16 /usr/share/mediawiki/includes/specialpage/SpecialPage.php(701): SpecialSpecialpages->execute()

#17 /usr/share/mediawiki/includes/specialpage/SpecialPageFactory.php(1428): SpecialPage->run()

#18 /usr/share/mediawiki/includes/MediaWiki.php(316): MediaWiki\SpecialPage\SpecialPageFactory->executePath()

#19 /usr/share/mediawiki/includes/MediaWiki.php(904): MediaWiki->performRequest()

#20 /usr/share/mediawiki/includes/MediaWiki.php(562): MediaWiki->main()

#21 /usr/share/mediawiki/index.php(50): MediaWiki->run()

#22 /usr/share/mediawiki/index.php(46): wfIndexMain()

#23 {main}


I get this same error for every page, none of my own content appears. Has anyone seen this before? 2601:18A:C400:2BB:EBCB:716F:FBC6:4F0E (talk) 00:27, 30 April 2023 (UTC)

Sometimes this can happen if LocalisationCache doesn't get cleared during upgrade.
Try making an edit (to update mtime) of LocalSettings.php. try running rebuildLocalisationCache.php Bawolff (talk) 04:00, 30 April 2023 (UTC)
Bawolff - Thank you so much for your excellent advice, my wiki is working and happy now. Details follow.
To rebuild the localization cache I did these 2 commands:
cd /var/www/html/wiki/maintenance/
php rebuildLocalisationCache.php
and the last line of output was:
468 languages rebuilt out of 469
It did not fix the problem. Having been a victim of 'Murphy's Law' too many times to count, I thought maybe the problem might be in the one language that did not rebuild. So I did this:
php rebuildLocalisationCache.php --force
All the languages were rebuilt and the wiki now works normally. Thanks again and I hope this info helps someone else in the future. 2601:18A:C400:2BB:EBCB:716F:FBC6:4F0E (talk) 14:43, 30 April 2023 (UTC)

Source editing not working after upgrade to 1.39

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


I have just recently upgraded from 1.35 to 1.39 and I cannot now access "edit source". I suspect this is something to do with settings in the localsettings.php file. I get a “This page isn’t working [Site] is currently unable to handle this request. HTTP ERROR 500.” warning. this is what i have in the local settings file as my configuration options.

Any help would be appreciated. Thanks ElectricRay (talk) 19:21, 30 April 2023 (UTC)

i have resolved the problem by disabling the charinsert extension. i didn't use this anyway. ElectricRay (talk) 21:35, 30 April 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.