Jump to content

Project:Support desk/Flow/2023/10

Add topic
From mediawiki.org
Latest comment: 2 years ago by David.bucknor in topic Aria-expanded="false" on page load
This page is an archive.
Please ask questions on the current support desk.

Sitenotice

How does one make a sitenotice appear on mobile phone. We're doing a edit-a-thon like event in Nepali Wiki and majority of our users use mobile. It would be useful to this notice to them. बडा काजी (talk) 15:16, 1 October 2023 (UTC)

You can request for it to be enabled on Nepali wiki. See sample request at phab:T299529Ammarpad (talk) 16:10, 1 October 2023 (UTC)

Request for translating a 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, please can someone with the translation rights, mark this page Edit_check/Configuration for translation? Thanks! Dyolf77 (WMF) (talk) 20:34, 1 October 2023 (UTC)

@Shirayuki: . – Ammarpad (talk) 18:19, 2 October 2023 (UTC)
Thanks! Dyolf77 (WMF) (talk) 14:58, 3 October 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

class option of image doesn't work

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.


Wikitext:

[[File:....png|class="ImageClass"]]


Instead of setting the class of the <img> element,

the codes above generated something like this:

<span class="mw-default-size ImageClass" typeof="mw:File"><a href="....png" class="mw-file-description"><img src="....png" decoding="async" width="512" height="512" class="mw-file-element"></a></span>


And I can't change the size of the image by css Senxiu (talk) 21:54, 1 October 2023 (UTC)

That sounds like its working as intended. Bawolff (talk) 01:08, 2 October 2023 (UTC)
Thank you very much.
So does this mean that I cannot change the class of the generated img element by specifying it in the wiki link?
Perhaps I've misunderstood, but the page Help:Images - MediaWiki said that:
  • class={html class} — (MediaWiki 1.20+) Defines classes (maps to the HTML attribute class="..." of the generated ‎<img /> element).
I've also tried use .ImageClass img but it was the same. I guess it's because the span tag. Senxiu (talk) 01:39, 2 October 2023 (UTC)
! I find that mediawiki support div tag so now it's solved
Thank you Senxiu (talk) 02:06, 2 October 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Problems with images

Hi! I am making an MediaWiki for a project for a school project. When i upload an image, it doesn't show. It says "Error: Could not load image from (location of the file). When i click the link, it shows an Apache error saying "Not found", but the file is on the folder

Screenshots

I am using Ubuntu, running Apache (PHP 8.1) and MariaDB as database


Thanks everyone! Josolilop (talk) 09:29, 2 October 2023 (UTC)

You should consult the access/error logs of your apache webserver. A common cause for this is that you are using mod redirect to capture the traffic and deliver it to index.php, but forgetting to make an exception for the /images directory. But there can be many more causes. —TheDJ (Not WMF) (talkcontribs) 13:11, 3 October 2023 (UTC)

digital archive/ database of photographs

Hi, I am interested in creating a digital archive/ database of photographs taken by anyone around the world. The images will require specific content criteria. The uploading / collection of the images needs to be as easy as possible. once collected the images will need some cataloguing references and possibly have a geographic location. Do you have any service or suggestion which can help my case/ project? Thank you very much for the help. Best regards, C. 2.36.45.33 (talk) 15:04, 2 October 2023 (UTC)

Where do I go to report images that are inappropriate?

Where do I go to report images that are inappropriate? 2601:58B:C681:3810:69A9:74EA:1F54:D05 (talk) 18:17, 2 October 2023 (UTC)

Not here. This is a software project support forum. —TheDJ (Not WMF) (talkcontribs) 19:42, 2 October 2023 (UTC)

Editing exported xml files (wiki-pages) and importing them into the same wiki

I have exported a small collection of articles from my own wiki install so that I can edit them.

When I attempt to import them back into the same wiki using Special:Import, I get ‘No revisions imported’ for each page. I tried deleting the revision ID from each page in the XML file, but that didn’t help.

Then I tried changing the timestamp, but it’s taking much longer to import than it seems like it should & keeps timing out.

Any suggestions on what I need to do in order to reimport an exported XML file back into the same wiki?

MediaWiki 1.39.4

PHP 7.4.33 (apache2handler)

MariaDB 10.4.27

ICU 66.1

Lua 5.1.5

Pygments 2.11.2

Running on XAMPP for Windows Redheadkelly (talk) 23:05, 2 October 2023 (UTC)

This is NOT how you are supposed to use the wiki. Please don't EVER delete revisions from the database, please don't use import to MAKE edits. Revisions should be permanent and should never change their content. The only supported tools for revision deletion is a soft deletion, or the Oversight deletion. —TheDJ (Not WMF) (talkcontribs) 13:05, 3 October 2023 (UTC)
Also, I’m not sure you understand the question. I’m not deleting revisions from the database. I’m importing a version of a page that is different than the existing page. The wiki will record this as an edit made via import. Nothing is being deleted from the database. Redheadkelly (talk) 17:16, 3 October 2023 (UTC)
This is a development wiki that I have installed on my laptop. I am the only user. I’m using it to experiment with my Semantic MediaWiki structure and to create content that I will eventually move to the public site that is actually available on the internet.
I don’t see any reason why I shouldn’t edit pages this way. It is much faster that editing individual pages in the wiki. Redheadkelly (talk) 17:13, 3 October 2023 (UTC)
XML import/export are not intended to be edited this way. If you want to edit via a text editor, i would suggest downloading from the API and then saving it back to the API, or even from the commandline using getText.php and edit.php.
> I don’t see any reason why I shouldn’t edit pages this way
Well i mean its fairly obvious why not given your question is about it not working. Bawolff (talk) 21:15, 3 October 2023 (UTC)
Thanks. That comment was specifically a reply to TheDJ because he didn’t seem to understand that I wasn’t working on a public wiki.
I’m not familiar with using the API. Editing the XML seemed easier that trying to figure out something new. But I’ll check into it. Thanks for the suggestion.
I don’t understand how what I’m attempting to do is any different than downloading newer versions of pages from a different wiki and importing them into my wiki, though. If it’s ok to do that, why isn’t it ok to do this? Redheadkelly (talk) 21:29, 3 October 2023 (UTC)
Its just not the intended usecase, so we don't document/support how to do it. In theory you could do it, but other fields in the file need to be updated in a consistent fashion. Bawolff (talk) 11:32, 4 October 2023 (UTC)

CannotCreateActorException: Failed to create actor ID for user_id=3 user_name="Unknown user"

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 cannot create a new user account. Any ideas?

MW: 1.39, PHP 8.0.27


[ZRu87zhxJUXmQyEDzW9k7gAABm0] /index.php?title=Spezial:Benutzerkonto_anlegen CannotCreateActorException: Failed to create actor ID for user_id=3 user_name="Unknown user"


Backtrace:

from /mnt/web311/c0/90/5510590/htdocs/wiki/includes/user/ActorStore.php(430)

#0 /mnt/web311/c0/90/5510590/htdocs/wiki/includes/user/User.php(2806): MediaWiki\User\ActorStore->acquireActorId()

#1 /mnt/web311/c0/90/5510590/htdocs/wiki/includes/libs/rdbms/database/Database.php(2750): User->{closure}()

#2 /mnt/web311/c0/90/5510590/htdocs/wiki/includes/libs/rdbms/database/DBConnRef.php(103): Wikimedia\Rdbms\Database->doAtomicSection()

#3 /mnt/web311/c0/90/5510590/htdocs/wiki/includes/libs/rdbms/database/DBConnRef.php(664): Wikimedia\Rdbms\DBConnRef->__call()

#4 /mnt/web311/c0/90/5510590/htdocs/wiki/includes/user/User.php(2808): Wikimedia\Rdbms\DBConnRef->doAtomicSection()

#5 /mnt/web311/c0/90/5510590/htdocs/wiki/includes/auth/AuthManager.php(1571): User->addToDatabase()

#6 /mnt/web311/c0/90/5510590/htdocs/wiki/includes/auth/AuthManager.php(1294): MediaWiki\Auth\AuthManager->continueAccountCreation()

#7 /mnt/web311/c0/90/5510590/htdocs/wiki/includes/specialpage/AuthManagerSpecialPage.php(376): MediaWiki\Auth\AuthManager->beginAccountCreation()

#8 /mnt/web311/c0/90/5510590/htdocs/wiki/includes/specialpage/AuthManagerSpecialPage.php(502): AuthManagerSpecialPage->performAuthenticationStep()

#9 /mnt/web311/c0/90/5510590/htdocs/wiki/includes/htmlform/HTMLForm.php(725): AuthManagerSpecialPage->handleFormSubmit()

#10 /mnt/web311/c0/90/5510590/htdocs/wiki/includes/specialpage/AuthManagerSpecialPage.php(435): HTMLForm->trySubmit()

#11 /mnt/web311/c0/90/5510590/htdocs/wiki/includes/specialpage/LoginSignupSpecialPage.php(320): AuthManagerSpecialPage->trySubmit()

#12 /mnt/web311/c0/90/5510590/htdocs/wiki/includes/specialpage/SpecialPage.php(701): LoginSignupSpecialPage->execute()

#13 /mnt/web311/c0/90/5510590/htdocs/wiki/includes/specialpage/SpecialPageFactory.php(1428): SpecialPage->run()

#14 /mnt/web311/c0/90/5510590/htdocs/wiki/includes/MediaWiki.php(316): MediaWiki\SpecialPage\SpecialPageFactory->executePath()

#15 /mnt/web311/c0/90/5510590/htdocs/wiki/includes/MediaWiki.php(904): MediaWiki->performRequest()

#16 /mnt/web311/c0/90/5510590/htdocs/wiki/includes/MediaWiki.php(562): MediaWiki->main()

#17 /mnt/web311/c0/90/5510590/htdocs/wiki/index.php(50): MediaWiki->run()

#18 /mnt/web311/c0/90/5510590/htdocs/wiki/index.php(46): wfIndexMain()

#19 {main} Ufnbg (talk) 07:23, 3 October 2023 (UTC)

  1. That is not a full MediaWiki version number
  2. What kind of database do you use and do other database actions success
  3. why is the user called "unknown user" is that intentional ? —TheDJ (Not WMF) (talkcontribs) 13:04, 3 October 2023 (UTC)
Also, the fact that it uses a space and not an underscore seems pretty suspicious to me Bawolff (talk) 23:12, 3 October 2023 (UTC)
Sorry for the false PHP version above.
  • MediaWiki 1.39.1
  • PHP 8.0.30 (cgi-fcgi)
  • MySQL 5.7.42-log
Other database actions success, I did not observe any problems. The notation "Unknown user" (with space) was not my input (my input was my real first name). Ufnbg (talk) 07:22, 4 October 2023 (UTC)
Probably a database problem with the IDs. There was an entry in the actor-table, but not in the user-table. I deleted the entry and created a new user account. That worked now. Ufnbg (talk) 09:22, 4 October 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

I have two MediaWikis on the same server installed on the domains /de and /en.

My goal is to link them both to a WikiFamily or WikiFarm in order to have a multilinguale wiki and be able to use Interlinks. I have read many documentations but hit a dead-end.

Can someone please provide instructions on how to do so since the documentation is really hard for non-programmers to grasp :/ Ratte1313 (talk) 11:10, 3 October 2023 (UTC)Reply

What I have understood from the manual so far:
I have two fresh installations on the domains wiki.org/de and wiki.org/en with following IDs
/de = mediawiki-mdk_
/en = mediawiki__2-mdk_
  1. I rename the LocalSettings.php to LocalSetting_mediawiki-mdk_.php and LocalSetting_mediawiki__2-mdk_.php in both installation directories to match the WikiID of the installation
  2. I create a new LocalSettings.php in both installations (?!)
  3. Inside the newly created LocalSettings.php I put the following into both directories:
<?php
$wikis = [ '/de' => 'mediawiki-mdk_',
'/en' => 'mediawiki__2-mdk_', ];
if ( defined( 'MW_DB' ) ) {
// Automatically set from --wiki option to maintenance scripts.
$wikiID = MW_DB;
} else {
$path = explode( '/', $_SERVER['REQUEST_URI'] ?? '', 3 )
[1] ?? '';
$wikiID = $_SERVER['MW_DB'] ?? $wikis[ $path ] ?? null;
}
if ( $wikiID ) {
require_once "LocalSettings_$wikiID.php";
} else {
die( 'Unknown wiki.' );
}
The part with MW_DB I dont really get, do I put something in or just leave it like that?
Result: I get a Unknown Wiki error on both wikis. Where did I go wrong? Ratte1313 (talk) 11:52, 3 October 2023 (UTC)

Unable to delete file from mediawiki

Hi,

I am trying to delete one file from MW 1.39.4. I get below error.

/wiki/index.php?title=File:Img-upload-test-01.JPG&action=delete Error: Cannot access protected property WikiFilePage::$mTitle


I see there is permission for images folder is 777 and expecting its not a filesystem issue. Some thing to be enabled/disabled from MW ?


OS RHEL 7.9

MediaWiki 1.39.4

PHP 8.0.25 (apache2handler)

MySQL 8.0.26

ICU 71.1

Lua 5.1.5

Pygments 2.11.2

Elasticsearch 7.10.2


Thanks - GT Testergt1302 (talk) 12:21, 3 October 2023 (UTC)

"Cannot access protected property WikiFilePage::$mTitle"
Hmm. that wouldn't be good and indicates a programming error. How did you delete ? You went from File:Img-upload-test-01.JPG and selected the "Delete" entry from the page menu ? This took you to the special delete form I assume ? Which options did you select in the delete form ? —TheDJ (Not WMF) (talkcontribs) 13:17, 3 October 2023 (UTC)
Hi,
Same steps as you said (?title=File:Img-upload-test-01.JPG&action=delete) , and I selected the Reason as "other reason" and wrote text 'not required' in the additional reason box, then clicked on the delete button.
Then it shows the internal error page. Testergt1302 (talk) 13:59, 3 October 2023 (UTC)
Does it still happen after disabling all extensions? Bawolff (talk) 21:18, 3 October 2023 (UTC)
I disabled all the extensions and tried. it was deleted. But which one could be the conflict ?
is there easy way to find it instead of enabling it one by one( i have 70+ extensions). Testergt1302 (talk) 07:40, 4 October 2023 (UTC)
It's hard to say, but I'd do a a binary search instead. Enable half, retest, if it occurs it is in that half. Then split again and again, till you find a culprit and report back to the extension maintainer. —TheDJ (Not WMF) (talkcontribs) 09:17, 4 October 2023 (UTC)
Ok. found the culprit is 'Favorites' extension. The extension page shows as 'unmaintained'. Is there an alternative to this? Testergt1302 (talk) 09:28, 4 October 2023 (UTC)

Error 500 on mobile devices following upgrade

Hi

I upgraded to 1.40.1 at the weekend. Everything is working fine on desktops. Mobile devices, however, can get to Recent Changes but get an error 500 when attempting to browse to an article. I have turned on debug logging and got the following:


[GlobalTitleFail] RequestContext::getTitle called with no title set.

#0 /home/frheritage/www/festipedia/1.40.0/includes/context/ContextSource.php(92): RequestContext->getTitle()

#1 /home/frheritage/www/festipedia/1.40.0/extensions/MobileFrontend/includes/MobileContext.php(312): ContextSource->getTitle()

#2 /home/frheritage/www/festipedia/1.40.0/extensions/MobileFrontend/includes/MobileContext.php(300): MobileContext->redirectMobileEnabledPages()

#3 /home/frheritage/www/festipedia/1.40.0/extensions/MobileFrontend/includes/MobileFrontendHooks.php(612): MobileContext->shouldDisplayMobileView()

#4 /home/frheritage/www/festipedia/1.40.0/includes/HookContainer/HookContainer.php(338): MobileFrontendHooks::onSpecialPageInitList()

#5 /home/frheritage/www/festipedia/1.40.0/includes/HookContainer/HookContainer.php(137): MediaWiki\HookContainer\HookContainer->callLegacyHook()

#6 /home/frheritage/www/festipedia/1.40.0/includes/HookContainer/HookRunner.php(3746): MediaWiki\HookContainer\HookContainer->run()

#7 /home/frheritage/www/festipedia/1.40.0/includes/specialpage/SpecialPageFactory.php(1212): MediaWiki\HookContainer\HookRunner->onSpecialPage_initList()

#8 /home/frheritage/www/festipedia/1.40.0/includes/specialpage/SpecialPageFactory.php(1227): MediaWiki\SpecialPage\SpecialPageFactory->getPageList()

#9 /home/frheritage/www/festipedia/1.40.0/includes/specialpage/SpecialPageFactory.php(1571): MediaWiki\SpecialPage\SpecialPageFactory->getAliasList()

#10 /home/frheritage/www/festipedia/1.40.0/includes/specialpage/SpecialPage.php(149): MediaWiki\SpecialPage\SpecialPageFactory->getLocalNameFor()

#11 /home/frheritage/www/festipedia/1.40.0/includes/specialpage/SpecialPage.php(134): SpecialPage::getTitleValueFor()

#12 /home/frheritage/www/festipedia/1.40.0/extensions/UrlShortener/includes/Hooks.php(32): SpecialPage::getTitleFor()

#13 /home/frheritage/www/festipedia/1.40.0/includes/HookContainer/HookContainer.php(338): MediaWiki\Extension\UrlShortener\Hooks::onWebRequestPathInfoRouter()

#14 /home/frheritage/www/festipedia/1.40.0/includes/HookContainer/HookContainer.php(137): MediaWiki\HookContainer\HookContainer->callLegacyHook()

#15 /home/frheritage/www/festipedia/1.40.0/includes/HookContainer/HookRunner.php(4508): MediaWiki\HookContainer\HookContainer->run()

#16 /home/frheritage/www/festipedia/1.40.0/includes/WebRequest.php(209): MediaWiki\HookContainer\HookRunner->onWebRequestPathInfoRouter()

#17 /home/frheritage/www/festipedia/1.40.0/includes/WebRequest.php(387): WebRequest::getPathInfo()

#18 /home/frheritage/www/festipedia/1.40.0/includes/Setup.php(452): WebRequest->interpolateTitle()

#19 /home/frheritage/www/festipedia/1.40.0/includes/WebStart.php(92): require_once(string)

#20 /home/frheritage/www/festipedia/1.40.0/index.php(44): require(string)

#21 {main}


Thoughts? Prh47bridge (talk) 14:53, 3 October 2023 (UTC)

Did you update the extensions as well ? —TheDJ (Not WMF) (talkcontribs) 15:20, 3 October 2023 (UTC)
This looks like a developer warning not an error. It is probably not connected to your issue or even a problem at all.
Please check your *php* error log (Assuming you are getting a blank page with the 500). Bawolff (talk) 21:18, 3 October 2023 (UTC)
Thanks. It seems there is an updated version of MobileFrontend for 1.40. That fixes the issue. Since there was nothing in the release notes, I assumed that all the extensions that worked for 1.40.0 would also work for 1.40.1. Is there an easy way of finding out which extensions have been updated for a minor release? Prh47bridge (talk) 23:21, 3 October 2023 (UTC)
Extensions only target the major (1.40) branch. All of them should be fine.
Some of them may have updates, but any updates would be bugfixes not compatibility fixes. Bawolff (talk) 11:29, 4 October 2023 (UTC)

Aria-expanded="false" on page load

Hi all,

I have an index page with multiple sections and am attempting to set it up so that when you load the page, the sections are collapsed and not expanded.

The page automatically opens with span aria-expanded = "true" and I'm wondering if there is a straight forward way to set this to false on load so you can click into each section and expand the headings.

I've tried some manual js in the common.js page but no luck.

Any ideas on this one?

Thanks in advance. David.bucknor (talk) 16:25, 3 October 2023 (UTC)

Can you give more context? What is generating these sections? where do they come from? Bawolff (talk) 21:16, 3 October 2023 (UTC)
I've just added a new thread for this but essentially it's a list on index page using '#' to trigger the iterations of items as if they were <li>. See below - you basically should only see Titles on page load and then the list items aren't visible until title is clicked to expand.
e.g.
<h3>Title</h3>
#[[Link One]]
#[[Link Two]]
<h3>Title 2</h3>
#[[Link One]]
#[[Link Two]] David.bucknor (talk) 09:48, 18 January 2024 (UTC)

Can a wiki be taken down for illegal activity?

Came across this, and the sections both advocating for and guiding on how to have sex with animals particularly stuck out to me.

<link redacted> 2600:1700:2130:2870:1F0D:84B7:5B6A:1FBA (talk) 18:03, 3 October 2023 (UTC)

Please contact the publisher/hoster of that wiki. Wikis are just software and can be run by anyone. We have no authority over what people use the software for. Illegal activity should be reported to your local law enforcement. —TheDJ (Not WMF) (talkcontribs) 19:16, 3 October 2023 (UTC)

Question about possibly outdated Manual:Upgrading

Hello. I use a homemade update script that updates my MediaWiki instances according to my use case. This usually works quite well, but after the latest update to 1.40.1 I received an error after my script completed:

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

NOTE: Do not run maintenance scripts directly, use maintenance/run.php instead!

     Running scripts directly has been deprecated in MediaWiki 1.40.

     It may not work for some (or any) scripts in the future.

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

My script typically runs "php update.php" according to the instructions still listed here (https://www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script) as of 10/3/2023. I am a novice so do not wish to attempt to update the wiki erroneously, but guidance/an update of that page to current best practices would be much appreciated. Mercurialmusic (talk) 00:35, 4 October 2023 (UTC)

The page is a bit outdated, but either way works. You can ignore the warning for now if you want. Bawolff (talk) 11:27, 4 October 2023 (UTC)
Is this the page that explains it? Manual:Run.php. Should it be ./maintenance/run update? Jonathan3 (talk) 12:37, 4 October 2023 (UTC)

Diff wikimedia article contents are not viewable

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, when i open any article as -> https://diff.wikimedia.org/fr/2023/09/07/wikiconvention-francophone-2023-a-abidjan-ce-quil-faut-savoir-avant-dy-aller/ i get systematically -> Oops! That page can’t be found
Although the list of all posts in -> https://diff.wikimedia.org/wp-admin/edit.php shows articles exist but clicking on View leads to Oops.
Strange... Any idea ? Thanks. --Christian 🇫🇷 FR (talk) 07:51, 4 October 2023 (UTC)
@Wladek92 This support desk is for the MediaWiki software itself. For specific Wikimedia websites (which do not even run MediaWiki), please file bug reports instead, as that's unrelated to MediaWiki software support. Thanks: How to report a bug Malyacko (talk) 19:16, 6 October 2023 (UTC)
Looks a bit like all non-english posts are broken... I have filed https://phabricator.wikimedia.org/T348111TheDJ (Not WMF) (talkcontribs) 09:11, 4 October 2023 (UTC)
seem accessible now.--Christian 🇫🇷 FR (talk) 15:29, 4 October 2023 (UTC)
again out of order this morning ! --Christian 🇫🇷 FR (talk) 08:15, 6 October 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

MariaDB not available during installation

As in the subject line. I have got installed and running MariaDB but the only available option I have got is SQLite. Am I missing something? 92.13.193.143 (talk) 21:42, 4 October 2023 (UTC)

Your php probably doesn't have mysql/mariadb support enabled in that case. —TheDJ (Not WMF) (talkcontribs) 11:46, 5 October 2023 (UTC)

Debugging Lua modules in MediaWiki

Hello. I'm fairly new to module scripting in Lua and I'm trying to transfer and modify a Lua module for unit conversion for Czech Wikivoyage in Incubator from English Wikivoyage. The issue is I'm not sure which parts are which. The module in question resides in incubator:Module:Wy/cs/Convert (with submodules /data and /text). This is for example valid option names in the text submodule:

-- Valid option names.
local en_option_name = {
	-- ["local text for option name"] = "en name used in this module"
	["$"] = "$",
	["abbr"] = "abbr",
	["adj"] = "adj",
	["comma"] = "comma",
	["debug"] = "debug",
	["disp"] = "disp",
	["frac"] = "frac",
	["input"] = "input",
	["lang"] = "lang",
	["lk"] = "lk",
	["order"] = "order",
	["qid"] = "qid",
	["qual"] = "qual",
	["qualifier"] = "qual",
	["round"] = "round",
	["sigfig"] = "sigfig",
	["sing"] = "adj",                   -- "sing" is an old alias for "adj"
	["sortable"] = "sortable",
	["sp"] = "sp",
	["spell"] = "spell",
	["stylein"] = "stylein",
	["styleout"] = "styleout",
	["tracking"] = "tracking",
}

I'm not sure which part is internal to the module. I would like to use Czech names in the options, but it's confusing. For now, I left it in English form. Polda18 [] 10:54, 5 October 2023 (UTC)

Image has correct colors in SVG, but wrong colors in PNG thumbnail.

I created an SVG image which looks correct in Inkscape and Firefox. And, when I select it to be uploaded to my Wiki, the generated preview looks correct. However, when I actually upload it, and MediaWiki generates a thumbnail, the colors are wrong.

Here is the correct uploaded SVG image: http://www.thealmightyguru.com/Wiki/images/c/c2/Hall_of_mirrors_effect_-_Diagram.svg

Here is the wrong generated PNG thumbnail: http://www.thealmightyguru.com/Wiki/index.php?title=File:Hall_of_mirrors_effect_-_Diagram.svg

I've tried saving the SVG through different graphics editors, each results with slightly different SVG files, and they always look correct in the editor and browser. But, every time I upload to my Wiki, the generated PNG tumbnail has the wrong colors. I've also tried uploading the same image to another Wiki on a different version and it causes the same color problem there too, so I assume something is wrong with my SVG image, but I don't know how to identify it.

Any help would be appreciated. TheAlmightyGuru (talk) 13:48, 5 October 2023 (UTC)

What's the SVG renderer you use ? —TheDJ (Not WMF) (talkcontribs) 18:33, 5 October 2023 (UTC)
Thanks for the reply. I'm using IMagickExt because my web host won't allow ImageMagick. Here are the relevant values in my LocalSettings.php:
$wgUseImageMagick = false;
$wgSVGConverter = 'ImagickExt';
$wgImageMagickConvertCommand = "/usr/bin/convert";
I've been using the same version of MediaWiki for some time, and I've never had a problem with colors before. TheAlmightyGuru (talk) 16:56, 6 October 2023 (UTC)
For anyone suffering the same problem, the bug appears to be with ImageMagick itself.
I downloaded ImageMagick v6.9.12.97 directly from their web site, installed it, and every SVG image I convert with it has the same magenta and green color problem. Luckily, I was able to convince my web host to upgrade to version 7 of ImageMagick, and it's fixed in that version. TheAlmightyGuru (talk) 20:40, 6 October 2023 (UTC)

No notifications for new or edited topics on Discussion pages with $wgUsersNotifiedOnAllChanges

After adding email addresses to the $wgUsersNotifiedOnAllChanges section on our Special:ManageWiki/settings#mw-section-notifications page, we get expected email notifications except for added or edited topics on Discussion pages.

Shouldn't "Users Notified On All Changes" include Discussion pages?

MediaWiki 1.39.5

PHP 7.4.33

Miraheze site Mike46V (talk) 20:03, 5 October 2023 (UTC)

Media Viewer is not Neurodivergent-friendly

I'm unable to read the text when there is an animated image playing on loop, unless I cover it up. Is there a way to pause it? Brownian motion - Wikipedia Parallax - Wikipedia 98.103.244.82 (talk) 21:41, 6 October 2023 (UTC)

Your web browser may have an option in its accessability settings. Bawolff (talk) 00:11, 7 October 2023 (UTC)
Relevant phab task is https://phabricator.wikimedia.org/T85838, Our web interface doesn't currently have method but it looks like potentially some browsers offer the feature natively P858snake (talk) 06:27, 7 October 2023 (UTC)

Unable to receive new password to my account

Hello support desk,

I forgot my password and am trying to make a new one but I am unable to receive a link on my Gmail for me to make a new one. I need this for my Wikimedia account so I can log on and complete a module for a Later Indigenous Literature class that I am taking in college. This should be an extremely easy process so I do not understand what is going on. Please reply as soon as possible. Thank you very much. 2601:C2:C381:A9C0:EEB7:3316:DE54:BAE2 (talk) 03:30, 7 October 2023 (UTC)

Please check spam folder. Also ensure you're really checking the right email account – Ammarpad (talk) 07:14, 7 October 2023 (UTC)
Nillakashnillakash19@gmail.com 37.111.206.30 (talk) 07:28, 8 October 2023 (UTC)
Send me new password forgetting nillakashnillakash19@gmail.com
That gmail isnhoneer@gmail.com 37.111.206.30 (talk) 07:30, 8 October 2023 (UTC)
Are you the same person? No one can do it for you, you've to do it yourself. Go to the password reset page (e.g https://en.wikipedia.org/wiki/Special:PasswordReset) and provide the email there. – Ammarpad (talk) 08:33, 8 October 2023 (UTC)

How to render or "zoom" a specific part of an image?

Hello, I want to know if there is a possible way to render a specific part of an image that you are calling instead of just rendering the whole image itself. I think ive seen on Wikipedia once where there was a new uploaded image or something derived from a main image but I don't know if there is a whole linking procedure other than screen capturing the part of the image you want and then reuploading it and putting links of their respective pages. Also I don't want to just be having to upload more images than necessary. Thanks Guillaume Taillefer (talk) 17:08, 8 October 2023 (UTC)

It's easiest to just take the original, cut it and upload it separately. That's mostly what Wikipedia does as well (the templates are only administrative) —TheDJ (Not WMF) (talkcontribs) 18:13, 9 October 2023 (UTC)

commercial use?

Can I also charge money to let users see my wiki? 188.194.232.39 (talk) 17:09, 8 October 2023 (UTC)

See the software license Malyacko (talk) 09:36, 9 October 2023 (UTC)
I think the answer is just "Yes". Jonathan3 (talk) 13:02, 9 October 2023 (UTC)
You can use mediawiki for any purpose, including commercial ones.
The only restriction is if instead of just using mediawiki software to make a wiki, you modify the mediawiki program itself, and distribute those modifications, there are certain restrictions, but even then you are still allowed to sell the changes. Bawolff (talk) 21:39, 10 October 2023 (UTC)

Means to block/avoid automated mediawiki content scraping?

I'm an admin of a public wiki that provides its content under a CC BY-NC-SA 4.0 license.

Since some commercial AI/large language models like OpenAI's chat gpt have/are or may be trained with data from the public internet (and Chat GPT Plus/GPT-4/Dall-E requires a paid license and is thus commercial) and companies use this data commercially, wouldn't any usage of data scraped from mediawikis with a Non Commercial usage infringe that usage terms/license?

I guess I can't do anything about users that paste content from my wiki to Chat-GPT or other Chat-Bot AIs (because people don't care about copyright licenses) either, besides making certain or all pages only available to limited user groups?

Are there any means to block access to automated content scrapers besides using a disallow rule in robtos.txt (which most like will be ignored anyway ..) UsualyWeJustSayPlease (talk) 17:50, 9 October 2023 (UTC)

There is indeed robots.txt. And you can put all content behind a paywall ? —TheDJ (Not WMF) (talkcontribs) 18:12, 9 October 2023 (UTC)
I'm fine having the content BY-NC-SA 4.0 for human users or used/shared with the same license, preferably with a credit/source, so a paywall would only make sense if the license isn't a BY-NC-SA 4.0
But something that requires a captcha before displaying article content could help? Or do content scrapers use an API read access? Then a captcha most likely wouldn't help? UsualyWeJustSayPlease (talk) 18:27, 9 October 2023 (UTC)
Maybe try using a service like cloudflare that has options to limit automated bots.
However there is no magic solution where you'll be able to stop anyone who tries hard enough. Bawolff (talk) 21:37, 10 October 2023 (UTC)

Magic variable "number of people watching the current page"?

Is there a magic variable to embed the number of people watching the current page?


[perhaps this is too database-query-expensive, but I needed to ask. On my new intranet wiki I would print the number of watchers in the page footer, this is even a different issue and task.] Wikinaut (talk) 22:10, 9 October 2023 (UTC)

There's a list of magic words here: Help:Magic_words. I don't think there's anything useful for you.
What about Extension:WatchAnalytics or something from Category:Watchlist extensions? Jonathan3 (talk) 22:16, 9 October 2023 (UTC)
I already consulted both. No magic variable. Wikinaut (talk) 22:17, 9 October 2023 (UTC)
No variable AFAIK, only "Number of page watchers' on the "Page information" page, e.g. https://www.mediawiki.org/w/index.php?title=Help:Tables&action=info Malyacko (talk) 04:26, 10 October 2023 (UTC)
You could probably write a short extension for this. Jonathan3 (talk) 10:49, 10 October 2023 (UTC)
Äh: yes! Good idea.
(added to my to-do list) Wikinaut (talk) 12:00, 10 October 2023 (UTC)

Update error from 1.16 to 1.5 version

I think the error is mine ... 1.16 is newer that 1.5 ....

Hello,

I have a very old mediawiki version to upgrade. From Update page (Manual:Upgrading) I saw I have to pass from 1.16 to 1.5. Ok i do it.

So when I run php5.6 maintenance/update.php I have on error with Class "Title"


```

# php5.6 maintenance/update.php

PHP Notice:  Use of undefined constant CACHE_NONE - assumed 'CACHE_NONE' in /var/www/wiki.descartes-avocats.com/mediawiki-1.5/LocalSettings.php on line 81

PHP Notice:  Undefined variable: wgCacheEpoch in /var/www/wiki.descartes-avocats.com/mediawiki-1.5/LocalSettings.php on line 134

PHP Fatal error:  Class 'Title' not found in /var/www/wiki.descartes-avocats.com/mediawiki-1.5/maintenance/commandLine.inc on line 177

```


Before I correct an error about Namespaces : http://www.techpository.com/mediawiki-fix-parse-error-syntax-error-unexpected-t_namespace-expecting-t_string-namespace-php/


Thanks for you're advice.


Aukfood Aukfood (talk) 15:16, 10 October 2023 (UTC)

Both are insanely old. Why are you using 1.16??? That is like a decade out of date. Bawolff (talk) 21:35, 10 October 2023 (UTC)

REST query parameters not working correctly

On my wiki, rest query parameters (such as "older_than") are either ignored, or when they are required ("q"), a "missingparam" failureCode is returned even when they are clearly and explicitly supplied.

I can't link to my wiki because of the spam-filter, but see details on phab:T348546, where I was told that it may have to do with RewriteCond/RewriteRule and that the support desk may be of help.


Any help, from pinpointing the problem to solving it entirely, would be greatly appreciated. Thanks! צמא לדעת (talk) 07:21, 11 October 2023 (UTC)

You seem to use a Short URL setup. This setup is likely forwarding query parameters to index.php but has not such forwarding defined for the rest.php endpoint ? What's your webserver and what does your redirect config for shorturl look like ? —TheDJ (Not WMF) (talkcontribs) 11:20, 11 October 2023 (UTC)
I just got shell access to the server, in order to get some things in place, although I'm not experienced and just starting to find my way.
From what I gather, the webserver is Apache. Relevant lines from .htaccess seem to be:
DirectoryIndex /w/index.php
RewriteEngine On
RewriteRule ^.*rest\.php(.*)$ %{DOCUMENT_ROOT}/w/rest.php?title=$1 [L]
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^(.*)$ %{DOCUMENT_ROOT}/w/index.php [L] צמא לדעת (talk) 12:40, 11 October 2023 (UTC)
Got it. the "?title=$1" was superfluous. Thanks for pointing me in the right direction. צמא לדעת (talk) 13:54, 11 October 2023 (UTC)

Bot "writeapi" permissions

Hi, I have a question about bot permissions. I created a bot using Special:BotPasswords for my extension that would use the bot to log in via API to edit a specific page. For testing, I gave the bot all permissions. The bot was created under a user account that is member of 'bot' group and from Special:ListGroupRights I can see that the 'bot' group has 'writeapi' permission enabled. However every time the extension's code gets executed I get an error code 'writeapidenied'. My question is, how to give the bot permission to API edit? When I remove the $wgGroupPermissions['*']['writeapi'] = false; from by LocalSettings.php it works fine however I need the configuration to stay like this:

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

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

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

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

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

$wgGroupPermissions['*']['createtalk']      = false; Jachym16 (talk) 08:49, 11 October 2023 (UTC)

Did you check that the bot user is indeed a member of that bot group by clicking the list of members in Special:ListGroupRights ? —TheDJ (Not WMF) (talkcontribs) 11:17, 11 October 2023 (UTC)
Well, the bot is created under my user account and the account is in the 'bot' group. Jachym16 (talk) 20:40, 14 October 2023 (UTC)
With botpasswords check what grants it has in addition to rights. Usually you can select them when creating a bot password Bawolff (talk) 01:17, 15 October 2023 (UTC)
Yes, for testing purposes, I gave the bot all permissions. It seems like it has no effect on it. Jachym16 (talk) 18:58, 16 October 2023 (UTC)
Can you check writeapi is listed in Special:listgrants ? Bawolff (talk) 20:17, 16 October 2023 (UTC)
Yes, it is listed in "Basic rights". Jachym16 (talk) 10:09, 19 October 2023 (UTC)

Hide Text from certain user groups

Can i restrict access to certain content on a page based on user groups? 112.135.16.49 (talk) 10:12, 11 October 2023 (UTC)

Is Manual:Preventing access helpful? Jonathan3 (talk) 14:04, 11 October 2023 (UTC)
Or maybe Manual:User group CSS and JavaScript. Jonathan3 (talk) 14:06, 11 October 2023 (UTC)
tl,dr: No. See security issues with authorization extensions.
There do exist some solutions to sorta address this (e.g. Extension:WikiTextLoggedInOut, which I maintain), but none of them are truly secure as far as I'm aware. At least WikiTextLoggedInOut is compatible with parser caching these days, but that's about it. It, and similar extensions, are more of a "just for fun" thing than "this will protect my sensitive data from people who shouldn't be authorized to view such data". Jack Phoenix (Contact) 11:33, 13 October 2023 (UTC)

Changing to another OIDC provider

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 use the OIDC Connect extension, and I would like to change my OIDC provider. In my LocalSettings.php I have set $wgOpenIDConnect_MigrateUsersByEmail to true. After changing the relevant settings (clientID, cientsecret, providerURL and preferred_username), I can login, but a new user is created with the username User (User1, User2, etc. in case of other users) and MediaWiki does not recognize that the users are the same (even the preferred_username values and emails retrieved from the id_token are the same). I also tried to delete the contents of the openid_connect table (docu says for $wgOpenIDConnect_MigrateUsersByEmail that "ff a user already exists in the database with the same email address as the authenticated user and has null values for subject and issuer, use this user, setting the subject and issuer in the database to those of the authenticated user. This is useful when the wiki previously used a different authentication mechanism.").

Here is my configuration:

$wgPluggableAuth_Config['Blabla'] = [

    'plugin' => 'OpenIDConnect',

    'data' => [

        'providerURL' => 'https://my-new-provider/',

        'clientID' => 'my-new-client-id',

        'clientsecret' => 'my-new-client-secret',

        'preferred_username' => 'something-company-specific',

        'scope' => [ 'openid', 'profile', 'email' , 'something-company-specific' ],

    ]

];

$wgOpenIDConnect_UseRealNameAsUserName = false;

$wgOpenIDConnect_UseEmailNameAsUserName = true;

$wgOpenIDConnect_MigrateUsersByUserName = false;

$wgOpenIDConnect_MigrateUsersByEmail = true;

$wgOpenIDConnect_ForceLogout = false;

$wgOpenIDConnect_RedirectURI = 'https://my.wiki.installation/index.php/Special:PluggableAuthLogin';


I also checked, that "email" and "something-company-specific" claims can be found in the id_token.

Wiki Version: 1.39.4

OpenID Connect Version: 7.0.1

PluggableAuth Version: 7.0.0

What I am doing wrong? Vajdaz (talk) 18:15, 11 October 2023 (UTC)

See the related discussion at Extension talk:OpenID Connect/2023#h-Switching_providers_leads_to_duplicated_users-20230530031800. Deleting the rows in the openid_connect table and setting $wgOpenIDConnect_MigrateUsersByEmail = true; should work provided that the user table contains an email address for the desired user and the email claim is correct and matches that email address. You could check the debug log to track the login flow. See Manual:How to debug. Look for lines beginning with PluggableAuth and OpenIDConnect in the debug log. Cindy.cicalese (talk) 20:21, 11 October 2023 (UTC)
The logs show that the Email could not be determined correctly. The log line is like:
[OpenIDConnect] Real name: My Name, Email: , Subject: xxxxxxxxxxxx, Issuer: https://my.identity.provider/
Then later:
[OpenIDConnect] No user found with matching subject and issuer.
[OpenIDConnect] Using gid attribute for preferred username.
[OpenIDConnect] Preferred username:
[OpenIDConnect] Available username: User5
[PluggableAuth] Authenticated new user: User5
This looks like the fields could not be read from the id_token correctly. But I am quite sure that the token contains this data. I walked through the code flow manually and analyzed the received token. Both, email and gid were included in the id_token of the Bearer token that I got from the identity provider (which is AzureAD, if that may be worthful information).
How can I analyze in more depth what the extension extracts from the token and where the data gets lost? Vajdaz (talk) 16:47, 12 October 2023 (UTC)
Agreed that it does not seem to be returning the email correctly. The logging statement you show comes from https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/OpenIDConnect/+/6b550e6603182c3bb1c5f943154e998fb483c34b/includes/OpenIDConnect.php#232. You could try also logging the following objects to see what is being received:
$oidc->requestUserInfo()
$oidc->getAccessTokenPayload()
$oidc->getIdTokenPayload()
That should hopefully give you more of an idea of what the issue might be. Cindy.cicalese (talk) 17:29, 12 October 2023 (UTC)
Lots of thanks for the hints. I finally could identify the problem. The authentication implementation does not use the id_token from the Bearer token to retrieve user data. A call to $oidc->requestUserInfo() requests the user info endpoint to provide the requested field (if provided in the optional argument) or the whole set of user data from the response. It turns out, that in the response of my new AzureAD user info endpoint the email field is missing. The token got from the code flow authentication contains it.
However, my email address can be found in the fields "upn" and "unique_name" of the response. Unluckily there is no way to map the email info to another field.
Is this a misconfiguration of my identity provider? Or is this a flaw in the authentication algorithm? With Jenkins I did not had such an issue when migrating to AzureAD. Seems that Jenkins retrieves the info about an authenticated user from the id_token received from the identity provider during the authentication, not via requests to the user info endpoint afterwards. Vajdaz (talk) 19:53, 12 October 2023 (UTC)
It does sound like a misconfiguration of your identity provider to me. Cindy.cicalese (talk) 21:16, 12 October 2023 (UTC)
I found this:
https://learn.microsoft.com/en-us/azure/active-directory/develop/userinfo
"Consider using an ID token instead
The information in an ID token is a superset of the information available on UserInfo endpoint. Because you can get an ID token at the same time you get a token to call the UserInfo endpoint, we suggest getting the user's information from the token instead of calling the UserInfo endpoint. Using the ID token instead of calling the UserInfo endpoint eliminates up to two network requests, reducing latency in your application."
or
"To customize the information returned by the identity platform during authentication and authorization, use claims mapping and optional claims to modify security token configuration."
Which I interpret as Microsoft says, if you want performant and customizable claim usage, use the id_token durindmg authentication/authorization.
Is there any chance to change this in OIDC Connect? Otherwise I see no chance to make it work with the current setup of ny identity provider.
Other projects seem to have the same issue with Microsoft:
https://github.com/penpot/penpot/issues/1460
Or look at this:
https://github.com/MicrosoftDocs/azure-docs/issues/62965
Question:
"So does that mean that the Graph OIDC Userinfo Endpoint Will not Return the optional claims mapped in the app manifest? The clients will be using the OIDC Userinfo Endpoint to validate what roles they claims for"
Answer:
"That's correct. Only the ID token and access token contain that information. If they wish to collect roles via api call however they can call Graph for that information." Vajdaz (talk) 23:34, 12 October 2023 (UTC)
I am not a php hacker, but looking on the code I asked myself, what would be if using getVerifiedClaims() instead of requestUserInfo()? Vajdaz (talk) 00:13, 13 October 2023 (UTC)
That actually sounds reasonable. Did you try it? Cindy.cicalese (talk) 12:44, 13 October 2023 (UTC)
Yes, I just did. With following patch it worked with AzureAD. And this change saves a couple of http requests. If you are unsure which claims can be found in the ID token and which one you can request only from user info endpoint, you could make a separate function, that first tries to retrieve the value from the ID token (with getVerifiedClaims()) and if the return value is null, it falls back to requestUserInfo(). That would make thinks more performant and more robust.
diff --git a/includes/OpenIDConnect.php b/includes/OpenIDConnect.php
index e5526b5..89effca 100644
--- a/includes/OpenIDConnect.php
+++ b/includes/OpenIDConnect.php
@@ -220,10 +220,10 @@ class OpenIDConnect extends PluggableAuth {
                        $this->getLogger()->debug( 'Redirect URL: ' . $redirectURL );
                        if ( $oidc->authenticate() ) {
-                               $realname = $oidc->requestUserInfo( 'name' );
-                               $email = $oidc->requestUserInfo( 'email' );
+                               $realname = $oidc->getVerifiedClaims( 'name' );
+                               $email = $oidc->getVerifiedClaims( 'email' );
-                               $this->subject = $oidc->requestUserInfo( 'sub' );
+                               $this->subject = $oidc->getVerifiedClaims( 'sub' );
                                $this->authManager->setAuthenticationSessionData( self::OIDC_SUBJECT_SESSION_KEY, $this->subject );
                                $this->issuer = $oidc->getProviderURL();
@@ -369,9 +369,9 @@ class OpenIDConnect extends PluggableAuth {
                if ( $this->getData()->has( 'preferred_username' ) ) {
                        $attributeName = $this->getData()->get( 'preferred_username' );
                        $this->getLogger()->debug( 'Using ' . $attributeName . ' attribute for preferred username.' . PHP_EOL );
-                       $preferred_username = $oidc->requestUserInfo( $attributeName );
+                       $preferred_username = $oidc->getVerifiedClaims( $attributeName );
                } else {
-                       $preferred_username = $oidc->requestUserInfo( 'preferred_username' );
+                       $preferred_username = $oidc->getVerifiedClaims( 'preferred_username' );
                }
                if ( is_string( $preferred_username ) && strlen( $preferred_username ) > 0 ) {
                        // do nothing Vajdaz (talk) 16:17, 13 October 2023 (UTC)
Something like this (this one I did not test):
diff --git a/includes/OpenIDConnect.php b/includes/OpenIDConnect.php
index e5526b5..58e7fd1 100644
--- a/includes/OpenIDConnect.php
+++ b/includes/OpenIDConnect.php
@@ -220,10 +220,10 @@ class OpenIDConnect extends PluggableAuth {
                        $this->getLogger()->debug( 'Redirect URL: ' . $redirectURL );
                        if ( $oidc->authenticate() ) {
-                               $realname = $oidc->requestUserInfo( 'name' );
-                               $email = $oidc->requestUserInfo( 'email' );
+                               $realname = $oidc->getAttributeValue( 'name' );
+                               $email = $oidc->getAttributeValue( 'email' );
-                               $this->subject = $oidc->requestUserInfo( 'sub' );
+                               $this->subject = $oidc->getAttributeValue( 'sub' );
                                $this->authManager->setAuthenticationSessionData( self::OIDC_SUBJECT_SESSION_KEY, $this->subject );
                                $this->issuer = $oidc->getProviderURL();
@@ -369,9 +369,9 @@ class OpenIDConnect extends PluggableAuth {
                if ( $this->getData()->has( 'preferred_username' ) ) {
                        $attributeName = $this->getData()->get( 'preferred_username' );
                        $this->getLogger()->debug( 'Using ' . $attributeName . ' attribute for preferred username.' . PHP_EOL );
-                       $preferred_username = $oidc->requestUserInfo( $attributeName );
+                       $preferred_username = $oidc->getAttributeValue( $attributeName );
                } else {
-                       $preferred_username = $oidc->requestUserInfo( 'preferred_username' );
+                       $preferred_username = $oidc->getAttributeValue( 'preferred_username' );
                }
                if ( is_string( $preferred_username ) && strlen( $preferred_username ) > 0 ) {
                        // do nothing
@@ -450,4 +450,13 @@ class OpenIDConnect extends PluggableAuth {
                }
                return null;
        }
+
+       private function getAttributeValue( $attributeName ) {
+               $value = $oidc->getVerifiedClaims( $attributeName );
+                if ( $value ) {
+                        return $value;
+                }
+                return $oidc->requestUserInfo( $attributeName );
+       }
+
} Vajdaz (talk) 16:29, 13 October 2023 (UTC)
Looks good. Would you be wiling to submit the patch to gerrit? If you have not done so before, see Gerrit/Tutorial/tl;dr. Cindy.cicalese (talk) 03:22, 14 October 2023 (UTC)
https://gerrit.wikimedia.org/r/c/mediawiki/extensions/OpenIDConnect/+/965852
I changed the new function name becuase there was an existing function named getAttributes which would have caused some confusion if calling the new one getAttributeValue.
It this gets pulled, will the change be available for all supported MediaWiki versions? Vajdaz (talk) 09:35, 14 October 2023 (UTC)
Thank you!
Yes, if it is merged, I will backport it to the REL1_39, REL1_40, and REL1_41 branches. Cindy.cicalese (talk) 15:51, 14 October 2023 (UTC)
The current test failure is unrelated to the patch. I will fix it in another patch then rebase this one - hopefully in the next few days. I will also test this patch and merge/backport if I can confirm it works for other sites.
In the meantime, could you please create a task related to this in Phabricator and link to this discussion? You can create it in the backlog of https://phabricator.wikimedia.org/project/view/862/. Then, please update the commit message in gerrit to add:
Bug: TXXXXXX
before the Change-Id line, where TXXXXXX is the number of the new task.
Thank you! Cindy.cicalese (talk) 23:22, 14 October 2023 (UTC)
For people with a similar problem, who land here googling for a solution: OpenID Connect extension 7.0.2 contains a fix that makes authentication work with Microsoft AzureAD, too.
Thanks, Cindy, for supporting me! Vajdaz (talk) 18:35, 15 October 2023 (UTC)
Thank you for providing a solution! Cindy.cicalese (talk) 20:19, 15 October 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to force reload of code?

I have patched some code in the CirrusSearch extension (specifically, in the file /w/extensions/CirrusSearch/includes/Query/PrefixSearchQueryBuilder.php). I know that's not the best way to do things, but I had no other option.

However, no change is taking effect. I have removed "wfLoadExtension( 'CirrusSearch' );" from my settings file, and confirmed that it is indeed not showing up on Special:Version, before putting it back. But still, the old code must be running somehow.

How do I force Mediawiki to recognize the changes I did? צמא לדעת (talk) 01:23, 12 October 2023 (UTC)

Solved. Was just an issue of containerization... צמא לדעת (talk) 13:26, 12 October 2023 (UTC)

Adding multiple users to a group

Is there a way to add a list/csv file of existing users to a new group? ChasFortna (talk) 15:45, 12 October 2023 (UTC)

The third item on https://duckduckgo.com/?q=mediawiki+Is+there+a+way+to+add+a+list%2Fcsv+file+of+existing+users+to+a+new+group%3F seems as though it might work for you: Extension:ImportUsers :-) Jonathan3 (talk) 22:14, 14 October 2023 (UTC)

Hello,

sometimes I have to link to slavic Wikipedia articles. When I copy the link from the browser (Google Chrome), cyrillc letters in the URL are automatically converted to %HH, where HH is the hexadecimal value of the byte. (This conversion seems to be done in any case of copying URLs from the browser.) When I enter this copied URL into the link editor window of the source editor and try to save the link, I receive the error message 'Der angeforderte Seitentitel enthält ungültige Zeichen: "%HH"' (which means: the requested page title contains invalid signs). I usually solve this by either saving an empty or fragmentary link which I edit manually, or by going back to the Wikipedia and copying the article name from the heading. Entering cyrillic letters into the link editor window is unproblematical!

I wish somebody would change the behaviour of the link editor to accept hex codes.

Best wishes from Germany!

Winfried (Schrödter)

MediaWiki: 1.35.1, PHP: 7.3.33 (fpm-fcgi), MariaDB: 10.4.31-MariaDB, ICU: 69.1 Wschroedter (talk) 16:21, 12 October 2023 (UTC)

See for example Project:Support desk/Flow/2016/09#h-Urlencode_Problem-2016-09-11T18:26:00.000Z.
(Also note that 1.35.1 is an outdated and insecure version, please upgrade for your safety.) Malyacko (talk) 18:03, 12 October 2023 (UTC)
The Project:Support desk/Flow/2016/09#h-Urlencode_Problem-2016-09-11T18:26:00.000Z is different, it is about double encoding. (Thanks for the reminder to update. My service person is not available.) -W. Wschroedter (talk) 07:52, 13 October 2023 (UTC)

PHP version upgrade

You are using an unsupported PHP version (PHP 5.6.18). MediaWiki 1.35 needs PHP 7.3.19 or higher (and not 7.4.0 - 7.4.2).


How would I make that big of a jump 73.190.42.13 (talk) 16:51, 12 October 2023 (UTC)

Depends on your operating system; you could ask in a PHP forum.
Your version is 92 months old and your version has been unsupported and end-of-life for 58 months.
MediaWiki 1.35 will only be supported for another 2 months, after that it is end-of-life and too old. Malyacko (talk) 17:59, 12 October 2023 (UTC)

move wiki to other platform

is it possible to migrate our wiki from Linux to windows 208.73.191.1 (talk) 20:36, 12 October 2023 (UTC)

Yes it is. Feel free to ask specific questions. Sam Wilson 03:00, 13 October 2023 (UTC)

Url

Hello, I wanted to change the link http://localhost to http://exemple.fr to go to my other computer. I tried to change the domain name on the hosts file then I stopped Apache and MySQL to restart I saw that it worked on the base computer (that I created the wiki) so I went to see on my other computer if it worked and it did not. Can you please help me?

To sum up, I'd like to change the domain name to XAMPP and register (without paying) and make my Mario wiki "public". Elementress2306 (talk) 22:49, 12 October 2023 (UTC)

That's not how domain names and the like work.
You need a registrar to make your domain accessible and usable by everyone else and that costs money; maybe just a bit, or maybe a bit more, depending on the TLD, what registrar you choose, and everything else.
I could equally well point "wikipedia.org" on my computer to my localhost by editing my hosts file and when I'd enter "wikipedia.org" on the search bar, I'd see my silly test wiki with a few test-only pages instead of the real Wikipedia with its millions of articles. That, of course, has no effect on anyone else but me, and surely you agree it'd be silly if anyone could simply claim any (existing) domains like that. Jack Phoenix (Contact) 11:30, 13 October 2023 (UTC)

As I said before I can’t create a new account and I don’t know what else to do

I just want to create my own content if possible so I need an account but I don’t why I can’t do it 188.211.14.92 (talk) 11:50, 13 October 2023 (UTC)

What exactly are you trying to do? This isn't generally a place for you to "create your own content" Bawolff (talk) 17:58, 13 October 2023 (UTC)

Deprecated: Creation of dynamic property MediaWiki\Extension\PluggableAuth\BeginAuthenticationRequest::$password is deprecated in /var/www/mediawiki/includes/session/Session.php on line 576

after updating wiki we are seeing that for some users after login.

we use 1.39.5 (f78a5fb) 06:10, October 10, 2023

PHP 8.2.7 (apache2handler) RobFantini (talk) 14:11, 13 October 2023 (UTC)

This is because you have configured your PHP to report PHP deprecation warnings. This is not a configuration that you should be using in a production environment.
Change your error reporting into something like:
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
or something like:
error_reporting(E_ALL ^ E_DEPRECATED);TheDJ (Not WMF) (talkcontribs) 14:39, 13 October 2023 (UTC)

after login: Internal error .. Argument #2 ($subject) must be of type string, array given

after updating wiki we are seeing that for some users after login. we use 1.39.5 (f78a5fb) 06:10, October 10, 2023

Note some users can login , others not.

here is the full error:

[c1f8b982694f124ffaf407db] /mediawiki/index.php?title=Special:UserLogin&returnto=Special%3ARecentChanges TypeError: preg_match(): Argument #2 ($subject) must be of type string, array given Backtrace: from /var/www/mediawiki/includes/parser/Sanitizer.php(1899)

#0 /var/www/mediawiki/includes/parser/Sanitizer.php(1899): preg_match()
#1 /var/www/mediawiki/extensions/PluggableAuth/includes/PrimaryAuthenticationProvider.php(194): Sanitizer::validateEmail()
#2 /var/www/mediawiki/extensions/PluggableAuth/includes/PrimaryAuthenticationProvider.php(163): MediaWiki\Extension\PluggableAuth\PrimaryAuthenticationProvider->updateUserRealNameAndEmail()
#3 /var/www/mediawiki/includes/auth/AuthManager.php(606): MediaWiki\Extension\PluggableAuth\PrimaryAuthenticationProvider->continuePrimaryAuthentication()
#4 /var/www/mediawiki/includes/specialpage/AuthManagerSpecialPage.php(374): MediaWiki\Auth\AuthManager->continueAuthentication()
#5 /var/www/mediawiki/includes/specialpage/AuthManagerSpecialPage.php(504): AuthManagerSpecialPage->performAuthenticationStep()
#6 /var/www/mediawiki/includes/htmlform/HTMLForm.php(729): AuthManagerSpecialPage->handleFormSubmit()
#7 /var/www/mediawiki/includes/specialpage/AuthManagerSpecialPage.php(435): HTMLForm->trySubmit()
#8 /var/www/mediawiki/includes/specialpage/LoginSignupSpecialPage.php(320): AuthManagerSpecialPage->trySubmit()
#9 /var/www/mediawiki/includes/specialpage/SpecialPage.php(701): LoginSignupSpecialPage->execute()
#10 /var/www/mediawiki/includes/specialpage/SpecialPageFactory.php(1428): SpecialPage->run()
#11 /var/www/mediawiki/includes/MediaWiki.php(316): MediaWiki\SpecialPage\SpecialPageFactory->executePath()
#12 /var/www/mediawiki/includes/MediaWiki.php(904): MediaWiki->performRequest()
#13 /var/www/mediawiki/includes/MediaWiki.php(562): MediaWiki->main()
#14 /var/www/mediawiki/index.php(50): MediaWiki->run()
#15 /var/www/mediawiki/index.php(46): wfIndexMain()
#16 {main} RobFantini (talk) 23:17, 13 October 2023 (UTC)
I also posted the error to https://www.mediawiki.org/wiki/Extension_talk:PluggableAuth RobFantini (talk) 00:18, 14 October 2023 (UTC)

Table Alignment

Well, i have 2 different tables, and i want them across from each other but i don't know how to align them correctly. Can someone help me? 2601:840:4481:2770:5CFC:35B4:54A9:4309 (talk) 21:02, 14 October 2023 (UTC)

There are some ideas here: https://duckduckgo.com/?q=html+have+2+different+tables%2C+and+i+want+them+across+from+each+other+but+i+don%27t+know+how+to+align+them+correctly :-) Jonathan3 (talk) 22:08, 14 October 2023 (UTC)

Uploaded covers showing in landscape

I have uploaded some covers to books from an iPhone and although the photos are portrait they are showing as landscape on Library Thing. Any advice for amending them to portrait?

thanks

Jim Brown 2A00:23C7:91BB:4901:808:D356:5A15:1155 (talk) 10:29, 16 October 2023 (UTC)

Hi Jim, please see "Post a new question" in the sidebar and provide sufficient information. Also, which file format? Malyacko (talk) 10:57, 16 October 2023 (UTC)

Error Installation.

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, community. I am doing my first installation of Mediawiki, but after trying and following several cooking recipes, it tells me that the php I am using is a very old version. However, I installed version 7. I'm on a CentOS server.


Thank you, Enzoly (talk) 15:46, 17 October 2023 (UTC)

@Enzoly Hi, please see "Post a new question" in the sidebar and provide exact MW and PHP version information. Malyacko (talk) 17:56, 17 October 2023 (UTC)
Php 7.0 is indeed very old...
Also keep in mind that commandline and webserver can have different versions of php Bawolff (talk) 03:02, 20 October 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Monthly Contributions

So I have been trying to get my wiki filled out by someone other than myself for months. I reached out to the community where my wiki revolves around and we decided to do in-game rewards for contributions. I need to verify that they're not just filling in gibberish ofc.


I was wondering if there is a way to look at the top monthly contributors? All I can find is how to find myself. Is there an extension or script I could use? 76.115.73.207 (talk) 23:18, 17 October 2023 (UTC)

Maybe Extension:Contribution Scores. Jonathan3 (talk) 18:39, 18 October 2023 (UTC)
Special:ActiveUsers maybe Bawolff (talk) 03:00, 20 October 2023 (UTC)

VisualEditor breaks categories tag

VisualEditor automaticly convert [[Category:System]] to [[index.php?title=Category:Linux]]

There is the same bug in 1.40.1, 1.39.5, 1.39.4.

PHP Version => 8.0.27 AnotherUser002 (talk) 09:10, 18 October 2023 (UTC)

[[Category:Linux]] to [[index.php?title=Category:Linux]] AnotherUser002 (talk) 09:20, 18 October 2023 (UTC)
In Firefox Developer Tools, I input ve.init.target.originalHtml and find <link rel="mw:PageProp/Category" href="./index.php?title=Category:Mediawiki" id="mwXw"/>
Received html from Parsoid seems Wrong. AnotherUser002 (talk) 09:41, 18 October 2023 (UTC)
I have seen similar behavior in cases where the $wgArticlePath was misconfigured. Can you please share its value? Osnard (talk) 10:19, 18 October 2023 (UTC)
I never configure the variable, it keeps the default value AnotherUser002 (talk) 11:05, 18 October 2023 (UTC)
LocalSettings.php is uploaded to [1]https://paste.centos.org/view/0d394ea8 AnotherUser002 (talk) 11:56, 18 October 2023 (UTC)
Adding $wgArticlePath = "/$1"; to LocalSettings.php, the bug temporarily disappeared.
We still dont know what caused this bug AnotherUser002 (talk) 12:44, 18 October 2023 (UTC)
From your LocalSettings.php I can see you have $wgScriptPath = "";, which is not recommended.
Maybe consider to set up URLs as described here: Manual:Short_URL Osnard (talk) 13:36, 18 October 2023 (UTC)
I've changed $wgScriptPath, thank you for the advise.
To add, I never changed $wgScriptPath and $wgArticlePath before. They are just the default vaule if you install mediawiki by its internal installer, and there is even not an option to change it when installing. AnotherUser002 (talk) 14:43, 18 October 2023 (UTC)

List of all values of an unnamed parameter passed by a template

Hello,

Suppose a simple template that has an unnamed parameter:

Template:Colour

Colour of the day: [[w:en:{{{1}}}|{{{1}}}]]


It is used in several pages, with different values for the parameter:

Page 1: {{colour|Green}}

Page 2: {{Colour|gamboge}}

Page 3: {{Colour|Crimson}}

Page 4: {{colour|green}}

Page 5: {{colour|Zaffre}}


I'd like to have the list of all pages into which Template:Colour is transcluded, with the corresponding values of the unnamed parameter:

  • Page 1 : Green
  • Page 2 : gamboge
  • Page 3 : Crimson
  • Page 4 : green
  • Page 5 : Zaffre


How can this list be obtained? Thanks in advance. Korg (talk) 10:47, 18 October 2023 (UTC)

two ways. Really only one way. Add tracking categories to the template that conditionally get added based on the value. Then wait a while to make sure all usages have been update. —TheDJ (Not WMF) (talkcontribs) 11:53, 18 October 2023 (UTC)
Thanks for your reply! Could you please give an example?
There would be an indefinite number of values. Korg (talk) 14:50, 18 October 2023 (UTC)
I wonder whether you could achieve this (something like it) using DPL3 - https://help.fandom.com/wiki/Extension:DPL3/Parameters:_Controlling_output_volume#include_contents_related_to_templates Jonathan3 (talk) 17:54, 18 October 2023 (UTC)
Try this:
{{#dpl:
uses=Template:Color
|include={color}:1
|format=,*[[%PAGE%|%TITLE%]]: ,\n,
}}
I think that gives you exactly what you need :-) The extension is Extension:DynamicPageList3. Jonathan3 (talk) 18:31, 18 October 2023 (UTC)
The uses line is self explanatory. The "1" in the include line means to include the value of the first unnamed parameter from the color (colour!!) template call. The format line has four comma-separated parts. Only the middle two are used - the second part is the beginning of each list item (it creates the page link), and the third part is at the end of each list item (just a line return to make the * turn into an HTML bullet). Jonathan3 (talk) 18:37, 18 October 2023 (UTC)
Thank you for this solution! DPL3 looks powerful.
Unfortunately, it is not installed on Wikimedia wikis. (There is Extension:DynamicPageList (Wikimedia), but it is only installed in a small number of projects.)
Also, there may be performance issues, as I'm not sure it would handle well cases where the template would be in thousands of pages (in the configuration settings, the default value for "maxResultCount" is only 500).
In any case, thanks for the information about this extension!
I was thinking of using a tool like Quarry, that could have access to page content. I don't know if it exists.
Perhaps a bot could do this?
PS: I have changed the template name :) Korg (talk) 19:48, 19 October 2023 (UTC)
You're welcome. The categories idea is probably the best then. You could make them hidden categories I suppose.
It's colour in the UK and color in the USA... you can take your pick if your country doesn't have a rule about it! :-) Jonathan3 (talk) 20:35, 19 October 2023 (UTC)
For categories, I suppose the solution would be to add a category to the template, like [[Category:Pages with the following value: {{{1}}}]], and then create all the categories?
While this is a good solution for a small number of values, it doesn't seem to be a practical one if there are a (very) large number of values. Or maybe I'm missing something...
In French, the word is "couleur", and I just learned that in Old French there are different spellings, including "color" and "colour" :-) Korg (talk) 12:33, 24 October 2023 (UTC)
"While this is a good solution for a small number of values, it doesn't seem to be a practical one if there are a (very) large number of values."
I see what you mean. You could get away without adding any text to the category page. The pages would still get categorised. The only thing is that the link to the category page at the bottom of the (normal) page will be a red link. Jonathan3 (talk) 10:27, 25 October 2023 (UTC)
Yes, that would be an interesting workaround, but how to have a list of pages with the different values?
(e.g.: Page 1 - Value A, Page 2 - Value B, Page 3 - Value C, etc.)
I would have thought there would be a tool that could do this quite easily... Korg (talk) 09:53, 29 October 2023 (UTC)
I would suggest Extension:Cargo but if you can't use DPL3 maybe you can't use Cargo either.
Extension:CategoryTree is bundled with MediaWiki. It could display a list of pages within a category (e.g. the category "Green"). Jonathan3 (talk) 15:44, 29 October 2023 (UTC)
Thanks! Yes, unfortunately Cargo is not installed on Wikimedia wikis either.
CategoryTree can indeed display a list of pages within a category, but only if the category exists.
(I'm continuing with the idea of using uncreated categories for a large number of values).
For a small number of values, the proposed solutions are good, so thank you for that.
But I also had in mind examples of cases where the number of values can be quite large.
Here is a concrete example: en:Template:Botanist (Link count). Sorry if I wasn't more explicit. Korg (talk) 22:09, 29 October 2023 (UTC)
@TheDJ: In addition to tracking categories, what other solution did you have in mind? Korg (talk) 15:00, 27 November 2023 (UTC)

UniversalLanguageSelector

Hello there Guys


I have an issue here with the ULS extension.

I have a set of pages in 3 different languages (DE, FR, IT), however, when selecting one of the languages using the drop-down menu provided by the extensions the content of the page that is already available in such language is not being automatically displayed. The language of the interface is being changed but not the content of the page.

I know that I have to first have the page available in such language. I have also configured the extension with "$wgTranslatePageTranslationULS = true;" which is supposed to allow the display of the content of the page in the selected language automatically.


Can anyone tell me why is this not working properly?

Any suggestion is welcome.


Thanks in advance.

Cheers. NerysG (talk) 12:01, 18 October 2023 (UTC)

Problem after update with TreeAndMenu

Hello,

get this error message after updating to 1.39.2.1078 with PHP8

Do you have an idea ? (I'm sorry for my bad English)


Deprecated: TreeAndMenu's extension.json or skin.json does not have manifest_version, this is deprecated since MediaWiki 1.29 in /volume1/web_packages/mediawiki/includes/debug/MWDebug.php on line 381

/mediawiki/index.php?title=QM_Handbuch Error: Call to a member function setFunctionHook() on null

Backtrace:

from /volume1/web_packages/mediawiki/extensions/TreeAndMenu/TreeAndMenu_body.php(24)

#0 /volume1/web_packages/mediawiki/includes/Setup.php(532): TreeAndMenu->setup() Madeby24 (talk) 13:13, 18 October 2023 (UTC)

I'm not looking forward to upgrading to 1.39, but will have to, and have watched this topic!
I can't help you, sorry. Does the extension work, apart from showing that deprecation warning? Jonathan3 (talk) 18:41, 18 October 2023 (UTC)
You need a newer version of TreeAndMenu extension. Bawolff (talk) 03:00, 20 October 2023 (UTC)
Hello,
so my MediaWiki is running again, but my content is not there, here it shows. This page does not contain any text at the moment.
Edit:
I have seen that my database is called /mysqld10.sock.
But with MariaDB it is /mysqld.sock.
I assume this is due to the update. But I can't adjust the database via MariaDB? But I am also worried about simply resetting now. Madeby24 (talk) 07:40, 20 October 2023 (UTC)
Mediawiki does not control the mariadb socket name. If you updated mariadb it might have changed. Bawolff (talk) 09:29, 20 October 2023 (UTC)
And what can I do now ? Madeby24 (talk) 10:35, 20 October 2023 (UTC)
@Bawolff
Hello,
so my MediaWiki is running again, but my content is not there, here it shows. This page does not contain any text at the moment. 31.150.112.87 (talk) 07:39, 20 October 2023 (UTC)

Software integration

Hi, as a fleet software provider

I need to talk to tech support about API integration to read data from your devices 197.133.250.99 (talk) 13:46, 18 October 2023 (UTC)

Welcome to the MediaWiki Support desk!
Your questions sounds like you may be asking on the wrong place. If you actually want to learn about MediaWiki APIs, please take a look at the official documentation. Osnard (talk) 14:15, 18 October 2023 (UTC)

Setting up shared user database, can't login

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 two wikis, a), which has been running for years, and b), with which I want to use a)'s user, and usergroups. b) is configured as a private wiki, logins required, registration off. I've set the configuration as per Manual:Shared database, but I'm getting the error;

Auto-creation of a local account failed: Automatic account creation is not allowed.

When trying to login on wiki b).


Is there something I'm missing about the shared db process? Why would b) be trying to create an account automatically? Is it trying to create account details into its own db? I have tried allowing specifically automatic account creation, to be hit with a similar error.

Config in LocalSettings on b)

$wgSharedDB = 'a';

$wgSharedTables[] = array('user','user_groups','actor'); Kirrus (talk) 13:59, 18 October 2023 (UTC)

For anyone else running into this, the issue is that you can't define wgSharedTables like this. As per https://stackoverflow.com/a/71922504/, it is in effect creating an array within an array. Kirrus (talk) 13:56, 19 October 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Need to Create a new page

Im trying to create a new page but I'm unable to login with my credentials. Even I tried to reset my password but couldn’t . 185.219.141.75 (talk) 23:48, 18 October 2023 (UTC)

Wikipedia-like template

Hello. I have a question. Can I install wikimedia as a WordPress theme on my host? I want a Wikipedia-like template to install on my host. Profitsaghs (talk) 05:34, 19 October 2023 (UTC)

How to install wikimedia on the host? Profitsaghs (talk) 06:21, 19 October 2023 (UTC)
Do you mean you have a Wordpress website and want a Wikipedia-style theme for it? Jonathan3 (talk) 09:04, 19 October 2023 (UTC)
yes Profitsaghs (talk) 07:08, 21 October 2023 (UTC)
I want to implement wikimedia on my WordPress site. It is possible ? Profitsaghs (talk) 07:09, 21 October 2023 (UTC)
For Wordpress themes, please ask in a Wordpress forum. You cannot install "Wikimedia" as it is an organization and people, maybe you meant the "MediaWiki" software. Malyacko (talk) 03:07, 22 October 2023 (UTC)

Redirect Module:Citation/CS1's fields to en.wikipedia.org's article

Hello,

I imported Module:Citation/CS1 (and its dependencies) to my local mediawiki installation, but many fields' names are embedding a hyperlink toward their definitions.

e.g. ISSN:1234-5678 => "ISSN" will be a hyperlink toward the local ISSN article.


The problem is that these definitions don't exists on my local mediawiki, so the field is displayed in red color.


Is it possible to configure the module so that hyperlink are made toward en.wikipedia.org's articles ?


I tried some modification of Module:Citation/CS1/Configuration, but it does not work:

['ISSN'] = {

parameters = {'issn', 'ISSN'},

link = 'https://en.wikipedia.org/wiki/ISSN',

redirect = 'ISSN (identifier)',

q = 'Q131276', X4rtqd6941 (talk) 08:21, 20 October 2023 (UTC)

HTTP X-Content-Type-Options: nosniff

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 using the Windows IIS server and this situation appeared on the MediaWiki installation page. How do I activate it to be able to upload images correctly? In the IIS? WikiUser22222 (talk) 15:45, 20 October 2023 (UTC)

What "situation"? Please follow "Post a new question" in the sidebar. Malyacko (talk) 03:08, 22 October 2023 (UTC)
I want to know where I can find this on the Windows IIS server. If you know of a link here on MediaWiki indicating how to resolve it, please let me know. This happened when I was installing MediaWiki on the IIS server. It's a message indicating that it's not secure or something similar. I went to look for information on other sources about this WikiUser22222 (talk) 04:09, 22 October 2023 (UTC)
What is "this"? What is "it"? Again: Please do follow "Post a new question" in the sidebar. Please provide version info. Please provide steps to reproduce some problem. Malyacko (talk) 16:10, 22 October 2023 (UTC)
MediaWiki 1.42.0-alpha (f98ae5f), PHP 8.1, MariaDB 11.3, I installed the MS upload extension on it, however, when I upload an image, it gives a token error, I believe that's the issue. WikiUser22222 (talk) 16:40, 22 October 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

sorry! we could not process your edit due to a loss of session data.

Hi,

we have upgraded from Mediawiki 1.35.3 to latest LTS Mediawiki 1.39.4. And we setup LDAP/Kerberos auth with following extensions.

wfLoadExtension( 'LDAPProvider' );

wfLoadExtension( 'PluggableAuth' );

wfLoadExtension( 'LDAPAuthentication2' );

wfLoadExtension( 'Auth_remoteuser' );

But, getting below Error after we idle for sometime. Please advise to resolve the session data loss issue.


Sorry! We could not process your edit due to a loss of session data.

You might have been logged out. Please verify that you're still logged in and try again. If it still does not work, try logging out and logging back in, and check that your browser allows cookies from this site. SanjayKSahu (talk) 15:48, 20 October 2023 (UTC)

Help to define user rights and permissions in a specific way

What I would like to create is an environment for registering academic projects.

The idea would be for everyone to be able to create an account on the wiki, and then create a page for the project.

But once the page was created, only the person who created it could edit it. Then person who created it could designate other users to edit it too, but only selected people could edit the page.

I was looking at Extension:UserProtect but it doesn't seem to do this. Like the pages will not be blocked for editing for all users by default from what I understand. Rdm15000 (talk) 02:05, 21 October 2023 (UTC)

I'm not aware of an extension that currently implements 'protect by owner'. This is mostly because pages don't have owners, so someone would have to extend the data model and all the classes with that information. Creator is not useful for this, as users can and often do disappear for a a variety of reasons and the concept of creator is not transferable. —TheDJ (Not WMF) (talkcontribs) 09:41, 24 October 2023 (UTC)

Login issue

I've successfully set up my wiki. Now, when I wanna log into my admin account, I'm told that the login information was wrong, even when I copy it directly from the local settings php document. Marvin9078 (talk) 11:26, 21 October 2023 (UTC)

omg, I thought the logindata for the data base was the one for the wiki Marvin9078 (talk) 12:53, 21 October 2023 (UTC)

Account creation error

Please help!

I have a database error whenever I want to create an account.

Wiki version 1.40.1

MySQL (newest version I guess)

PHP version should also be the newest

Database error - Wikiprovement (cybereule.de) <-- link to my wiki (pls dont share)

Just create new account an you will see it. Marvin9078 (talk) 12:06, 23 October 2023 (UTC)

Please see Manual:How to debug and provide a stacktrace Malyacko (talk) 10:28, 24 October 2023 (UTC)
Did it. Here is the error message:
[a4bc09069231abec69ba3036] /Marvin/index.php?title=Special:SpecialPages 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 'k54236_CybereuleDB.oathauth_users' doesn't exist
Function: MediaWiki\Extension\OATHAuth\OATHUserRepository::findByUser
Query: SELECT module,data FROM `oathauth_users` WHERE id = 0 LIMIT 1
Backtrace:
from /var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/includes/libs/rdbms/database/Database.php(1524)
#0 /var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/includes/libs/rdbms/database/Database.php(1508): Wikimedia\Rdbms\Database->getQueryException()
#1 /var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/includes/libs/rdbms/database/Database.php(1482): Wikimedia\Rdbms\Database->getQueryExceptionAndLog()
#2 /var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/includes/libs/rdbms/database/Database.php(855): Wikimedia\Rdbms\Database->reportQueryError()
#3 /var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/includes/libs/rdbms/database/Database.php(1629): Wikimedia\Rdbms\Database->query()
#4 /var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/includes/libs/rdbms/database/Database.php(1638): Wikimedia\Rdbms\Database->select()
#5 /var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/includes/libs/rdbms/database/DBConnRef.php(119): Wikimedia\Rdbms\Database->selectRow()
#6 /var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/includes/libs/rdbms/database/DBConnRef.php(362): Wikimedia\Rdbms\DBConnRef->__call()
#7 /var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/extensions/OATHAuth/src/OATHUserRepository.php(102): Wikimedia\Rdbms\DBConnRef->selectRow()
#8 /var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/extensions/OATHAuth/src/Special/OATHManage.php(84): MediaWiki\Extension\OATHAuth\OATHUserRepository->findByUser()
#9 /var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/vendor/wikimedia/object-factory/src/ObjectFactory.php(240): MediaWiki\Extension\OATHAuth\Special\OATHManage->__construct()
#10 /var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/vendor/wikimedia/object-factory/src/ObjectFactory.php(149): Wikimedia\ObjectFactory\ObjectFactory::getObjectFromSpec()
#11 /var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/includes/specialpage/SpecialPageFactory.php(1323): Wikimedia\ObjectFactory\ObjectFactory->createObject()
#12 /var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/includes/specialpage/SpecialPageFactory.php(1361): MediaWiki\SpecialPage\SpecialPageFactory->getPage()
#13 /var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/includes/specials/SpecialSpecialpages.php(58): MediaWiki\SpecialPage\SpecialPageFactory->getUsablePages()
#14 /var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/includes/specials/SpecialSpecialpages.php(47): SpecialSpecialpages->getPageGroups()
#15 /var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/includes/specialpage/SpecialPage.php(701): SpecialSpecialpages->execute()
#16 /var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/includes/specialpage/SpecialPageFactory.php(1475): SpecialPage->run()
#17 /var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/includes/MediaWiki.php(327): MediaWiki\SpecialPage\SpecialPageFactory->executePath()
#18 /var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/includes/MediaWiki.php(923): MediaWiki->performRequest()
#19 /var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/includes/MediaWiki.php(576): MediaWiki->main()
#20 /var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/index.php(50): MediaWiki->run()
#21 /var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/index.php(46): wfIndexMain()
#22 {main} Marvin9078 (talk) 13:09, 24 October 2023 (UTC)
How did you install OATHAuth and which exact docs did you follow?
Did you forget to run your application's database schema updater after upgrading or after adding a new extension? Malyacko (talk) 14:31, 24 October 2023 (UTC)
Its updated. It works now! Thank you very much. Have a nice day! Marvin9078 (talk) 14:20, 27 October 2023 (UTC)

Hi, I am not using ElasticSearch/CirrusSearch and want to use the extension RelatedArticles just with the manual parser functions but they just dont show up on the page..

I am running 1.40


My LocalSetting looks like this:

wfLoadExtension( 'RelatedArticles' );

$wgRelatedArticlesFooterAllowedSkins = ['citizen'];

$wgRelatedArticlesFooterWhitelistedSkins = ['citizen'];

$wgRelatedArticlesDescriptionSource = 'textextracts';

$wgRelatedArticlesUseCirrusSearch = false;

$wgRelatedArticlesOnlyUseCirrusSearch = false; Ratte1313 (talk) 16:49, 23 October 2023 (UTC)

VisualEditor in 1.40.x breaks category tags

Upgraded a 1.39.4 to 1.40.0 or 1.40.1

When editing with the VisualEditor, category tags like [[Category:System]] are converted to and saved as [[index.php?title=Kategori:System]]. This of course breaks the page categorising. It's possible to re-edit the page, re-categorise it and it works but it will break again on the next edit with the VisualEditor.

The WikiText editor does not exhibit this behaviour. It correctly handles and saves the category tags when editing.

Restored the 1.39.4 from backup and tried re-installing 1.40.0 and 1.40.1 a few times, but the upgrade to 1.40.0 or 1.40.1 produces this unwanted behaviour all times.

Here's rest of the software versions.

Produkt Version
MediaWiki 1.39.4
PHP 8.2.9 (cgi-fcgi)
MariaDB 10.10.2-MariaDB
ICU 71.1
Lua 5.1.5
Pygments 2.16.1

Browser used is Chrome Version 116.0.5845.110 (Officiell version) (arm64) on MacOS. Olarp (talk) 08:02, 24 October 2023 (UTC)

I'm pretty sure I've seen this issue reported before, but I can't find if it was specific to that VE version, or if it was a configuration issue. —TheDJ (Not WMF) (talkcontribs) 09:03, 24 October 2023 (UTC)
Found this thread, it's very similar.
Help talk:VisualEditor/User guide/Flow export#h-Visual_Editor_adds_"index.php?title="_in_front_of_every_file_link_when_saving-20221201222400
I tried the setting $wgUsePathInfo = true;
This thankfully fixes the VisualEditor behaviour and the category tags work now. Unfortunately it introduces a new problem instead, the site logo in the top corner breaks. The logo is loaded from /logos/logo.png but setting $wgUsePathInfo = true; makes it try to load it from index.php/Logos/logo.png which doesn't work.
Any ideas? Olarp (talk) 09:21, 24 October 2023 (UTC)
Settings for logo:
$wgLogos = [ '1x' => "$wgResourceBasePath/images/logo.png" ];
$wgFavicon = "$wgResourceBasePath/images/done.ico";
Fokebox (talk) 14:24, 24 October 2023 (UTC)

How delete

How delete this shit [2] Gryadka (talk) 17:52, 24 October 2023 (UTC)

We are unable to delete that image. If there’s anything violating Imgur’s rules, you should send a report to them.
See also: Project:Copyrights and Copyright Tropicalkitty (talk) 22:28, 24 October 2023 (UTC)
Read "Post a new question" in the sidebar and change your tone Malyacko (talk) 08:45, 25 October 2023 (UTC)

upgrade postgres 9.6 to postgres 15 ?

Can i get steps to upgrade postgres 9.6 to postgres 15 in linux ? 12.4.17.2 (talk) 16:30, 25 October 2023 (UTC)

Not a lot of people here use postgres, so i fear no such steps exist. But im sure a postgres specific place has some generic steps that can be adapted for your specific situation. —TheDJ (Not WMF) (talkcontribs) 17:08, 25 October 2023 (UTC)

Extract page and maintain image reference?

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 everyone,


I am trying to extract a large number of files and also maintain any reference to an image within the page. I'm currently using a bash script to extract the html from 200+ pages, from multiple categories, from an endpoint similar to:


wikiURL/api.php?action=query&origin=*&prop=extracts&format=json&titles=pageName


I'm hoping to see a url reference like wikiURL/pageName#/media/File:image.jpg, but there is no img tag, or mention of the media file in the html. I do see in the response:


"\"exlimit\" was too large for a whole article extracts request, lowered to 1.\nHTML may be malformed and/or unbalanced and may omit inline images. Use at your own risk. Known problems are listed at https://www.mediawiki.org/wiki/Extension:TextExtracts#Caveats."


Following to the caveats I see: Inline images are stripped from the response (even in HTML mode).


If it isn't possible to maintain the image reference through this method, is there another option that will? DrpepperUser (talk) 16:57, 26 October 2023 (UTC)

If you want full html use action=parse
You could also look at prop=images. Bawolff (talk) 13:12, 28 October 2023 (UTC)
Thank you so much for your response. I did end up using parse after another option failed, so very much appreciate it! DrpepperUser (talk) 22:36, 9 November 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

On the support of non-ISO 639 languages by Extension:Translate

As far as we know, Extension:Translate (and for that matter, Special:AllMessages) does not support languages without an official ISO 639 code. This goes double for most online-developed conlangs, mine included. For such unsupported efforts, is there a workaround we can implement?

(Filing on behalf of Miraheze Community noticeboard visitor "Kaeru2193", who pondered on the matter last month.) --Slgrandson (talk) 23:30, 27 October 2023 (UTC)

Maybe $wgExtraLanguageCodes can help. Bawolff (talk) 13:09, 28 October 2023 (UTC)

Private wiki

I want to create a private wiki with my collaborators, can anyone help me with this?

Also I want to know what is the file size limit to upload in a wiki. Pranat28 (talk) 10:02, 28 October 2023 (UTC)

@Pranat28 See Manual:Installing MediaWiki and Manual:Preventing access. See Manual:Configuring file uploads. Malyacko (talk) 13:37, 28 October 2023 (UTC)

Table of contents button broken without javascirpt

ArchWiki recently updated and the for example button on this page https://wiki.archlinux.org/title/Mpv no longer works without javascript. It working without javascript always amazed me and I would like it back. 91.184.123.227 (talk) 15:28, 28 October 2023 (UTC)

I get this error when running "php run.php update"

#!/usr/bin/env php
PHP Warning:  session_id(): Cannot change session id when headers already sent in C:\xampp\htdocs\w\includes\session\SessionBackend.php on line 819
Warning: session_id(): Cannot change session id when headers already sent in C:\xampp\htdocs\w\includes\session\SessionBackend.php on line 819
MediaWiki 1.40.0 Updater

Your composer.lock file is up to date with current dependencies!
...

How to remove this error? Ryoya3 (talk) 02:46, 29 October 2023 (UTC)

Make sure you are running php with the cli binary, not the cgi binary. Bawolff (talk) 03:14, 29 October 2023 (UTC)
> php -v
PHP 7.4.30 (cli) ...
It seems that I am already using CLI in my environment. Ryoya3 (talk) 04:26, 29 October 2023 (UTC)

Error when saving a page

Hi,

whenever I want to save a page on my wiki it says: [3a543c869d30bb51730b192f] Exception caught: Provided specification is not an array.

I have found a conversation stating the exact same problem on the web: ⚓ T346080 Can't save edits using VisualEditor on beta cluster: "Exception caught: Provided specification is not an array." (wikimedia.org)

They made a patch: Use FallbackContentHandler instead of UnknownContentHandler (Ifbf68e45) · Gerrit Code Review (wikimedia.org)

My problem is that I just do not know how to use it, since it's not documented well. Can someone please help me? Is it the right patch, and if, how can I use it?


Wiki version 1.40.1

MySQL (newest version I guess)

PHP version should also be the newest Marvin9078 (talk) 09:33, 29 October 2023 (UTC)

Given that, it seems you have removed an extension that previously provided a custom content model handling. You have to figure out which extension is that and then edit LocalSettings.php to do something similar to the patch you link to. – Ammarpad (talk) 08:55, 31 October 2023 (UTC)
As far as I know we didn't remove any extension. Might it be that the problem the patch was made for doesn't have the same cause as the error from my wiki?
The patch is also for a different version right? Marvin9078 (talk) 10:52, 31 October 2023 (UTC)
Please see Manual:How to debug. Also enable $wgShowExceptionDetails = true; and get the full exception trace. – Ammarpad (talk) 14:18, 31 October 2023 (UTC)
@Ammarpad
it is a small popup window which says:
Something went wrong
[47307ae07942f4e6963df84a] Exception caught: Provided specification is not an array.
It is not an error page. The setting for backtrace is already anabled. I am not getting shown any more details, thus dont know what to do. Marvin9078 (talk) 13:57, 4 November 2023 (UTC)
@Ammarpad did you receive that message? Marvin9078 (talk) 13:07, 8 November 2023 (UTC)
If the wiki is public, please link to it. Also check yourdomain/w/api.php?action=help&modules=edit to see if it works or if exception would be logged. – Ammarpad (talk) 07:42, 9 November 2023 (UTC)
Main Page - Wikimprovement (cybereule.de) thats my wiki, it should be public
I will see if sth is logged later Marvin9078 (talk) 05:16, 10 November 2023 (UTC)
@Ammarpad
Hey, I'm back,
searched through the error log files on the server and I found something!
Some things might be there twice because I tested it multiple times
[Wed Nov 15 13:19:37.519626 2023] [fcgid:warn] [pid 832608] [client 2003:cf:af3a:bf00:54f:9f8:c3ba:6cf9:0] mod_fcgid: stderr: PHP Warning:  file_exists(): open_basedir restriction in effect. File(/bin/bash) is not within the allowed path(s): (/var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/:/tmp/:/var/lib/php/sessions:/var/www/vhosts/hosting185038.ae8c1.netcup.net/tmp) in /var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/includes/shell/CommandFactory.php on line 119, referer: https://cybereule.de/Marvin/api.php?action=help&modules=edit
[Wed Nov 15 13:19:54.421877 2023] [fcgid:warn] [pid 831407] [client 2003:cf:af3a:bf00:54f:9f8:c3ba:6cf9:0] mod_fcgid: stderr: PHP Warning:  file_exists(): open_basedir restriction in effect. File(/bin/bash) is not within the allowed path(s): (/var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/:/tmp/:/var/lib/php/sessions:/var/www/vhosts/hosting185038.ae8c1.netcup.net/tmp) in /var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/includes/shell/CommandFactory.php on line 119, referer: https://cybereule.de/Marvin/api.php?action=help&modules=edit
[Wed Nov 15 13:27:46.536117 2023] [fcgid:warn] [pid 833560] [client 2003:cf:af3a:bf00:54f:9f8:c3ba:6cf9:0] mod_fcgid: stderr: PHP Warning:  include(/var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/vendor/composer/../wikimedia/parsoid/src/Ext/Poem/PoemProcessor.php): Failed to open stream: No such file or directory in /var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/vendor/composer/ClassLoader.php on line 578, referer: https://cybereule.de/Marvin/index.php?title=Sleep&action=edit&redlink=1
[Wed Nov 15 13:27:46.536196 2023] [fcgid:warn] [pid 833560] [client 2003:cf:af3a:bf00:54f:9f8:c3ba:6cf9:0] mod_fcgid: stderr: PHP Warning:  include(): Failed opening '/var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/vendor/composer/../wikimedia/parsoid/src/Ext/Poem/PoemProcessor.php' for inclusion (include_path='/var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/vendor/pear/console_getopt:/var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/vendor/pear/mail:/var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/vendor/pear/mail_mime:/var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/vendor/pear/net_smtp:/var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/vendor/pear/net_socket:/var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/vendor/pear/net_url2:/var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/vendor/pear/pear-core-minimal/src:/var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/vendor/pear/pear_exception:.:/usr/local/php82/share/php82') in /var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/vendor/composer/ClassLoader.php on line 578, referer: https://cybereule.de/Marvin/index.php?title=Sleep&action=edit&redlink=1
[Wed Nov 15 13:28:01.073163 2023] [fcgid:warn] [pid 832671] [client 2003:cf:af3a:bf00:54f:9f8:c3ba:6cf9:0] mod_fcgid: stderr: PHP Warning:  include(/var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/vendor/composer/../wikimedia/parsoid/src/Ext/Poem/PoemProcessor.php): Failed to open stream: No such file or directory in /var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/vendor/composer/ClassLoader.php on line 578, referer: https://cybereule.de/Marvin/index.php?title=Sleep&action=edit&redlink=1
[Wed Nov 15 13:28:01.073214 2023] [fcgid:warn] [pid 832671] [client 2003:cf:af3a:bf00:54f:9f8:c3ba:6cf9:0] mod_fcgid: stderr: PHP Warning:  include(): Failed opening '/var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/vendor/composer/../wikimedia/parsoid/src/Ext/Poem/PoemProcessor.php' for inclusion (include_path='/var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/vendor/pear/console_getopt:/var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/vendor/pear/mail:/var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/vendor/pear/mail_mime:/var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/vendor/pear/net_smtp:/var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/vendor/pear/net_socket:/var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/vendor/pear/net_url2:/var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/vendor/pear/pear-core-minimal/src:/var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/vendor/pear/pear_exception:.:/usr/local/php82/share/php82') in /var/www/vhosts/hosting185038.ae8c1.netcup.net/httpdocs2/Marvin/vendor/composer/ClassLoader.php on line 578, referer: https://cybereule.de/Marvin/index.php?title=Sleep&action=edit&redlink=1 Marvin9078 (talk) 12:38, 15 November 2023 (UTC)
mod_fcgid: stderr: PHP Warning:  file_exists(): open_basedir restriction in effect. File(/bin/bash) is not within the allowed path(s).
Your host is not allowing this php web application to inspect the filesystem. This is generally a security feature deployed by webhosters who only have users hosting their own very simple php applications, instead of complex PHP apps like magento, Wordpress and MediaWiki.
It can be that you can specify some configuration in your webserver to lift this restriction, but it can also be that your web host needs to reconfigure this.
/vendor/composer/../wikimedia/parsoid/src/Ext/Poem/PoemProcessor.php): Failed to open stream: No such file or directory in
This likely means that you are missing this file. Either this composer installed file is missing or it doesn't have the proper permissions to read it, or maybe you installed an extension that was not compatible with the main mediawiki core versions. I personally always advise to disable all extensions, make the site work without extensions and then re-add the extensions, so that you can separate your concerns. —TheDJ (Not WMF) (talkcontribs) 10:48, 16 November 2023 (UTC)
Yo, it works!
Heres what I did:
I copied the PoemProcessor.php file from a different previously setup wiki into /vendor/wikimedia/parsoid/src/Ext/Poem and the error vanished.
It might happen that other problems are still to be seen, because I don't have a clue what caused this file not to have existed.
But having done that, I can now save pages! Marvin9078 (talk) 15:50, 25 November 2023 (UTC)

Search results: how to add more result lines per page, how to show more characters?

I am looking for a way to show more result lines and more characters when searching. I am using Vector 2022, the latest MediaWiki 1.40.1. Michaelbeijer (talk) 15:03, 29 October 2023 (UTC)

No one? Michaelbeijer (talk) 18:18, 30 October 2023 (UTC)
You can change the number of result shown to you by default, upto 500, at Special:Preferences#mw-prefsection-searchoptions.
You cannot change the number of characters shown in the result snippet. The number is hardcoded. – Ammarpad (talk) 07:20, 31 October 2023 (UTC)
Thanks! That's a real pity. There surely must be a way, though? Michaelbeijer (talk) 00:19, 1 November 2023 (UTC)
Yes, if on your own wiki. You can modify these two class constants to tweak the output. They may not be exactly what you want though, also take note of Manual:Upgrading#How hard is it to upgrade?Ammarpad (talk) 11:37, 1 November 2023 (UTC)

Shortcut for entering HTML tags

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 use blockquote tag a lot. Is there a shorter way to include blockquote tags? Zeyn1 (talk) 08:35, 30 October 2023 (UTC)

You could use Extension:WikiEditor/Toolbar customization if you're using that editor. Jonathan3 (talk) 16:11, 30 October 2023 (UTC)
I'm using mostly "Edit source" option, I don't think this will work with source editing. Can this be done with templates? Zeyn1 (talk) 16:22, 30 October 2023 (UTC)
It will work. Just enable that extension and follow the instructions to add a new button to the toolbar. Jonathan3 (talk) 16:27, 30 October 2023 (UTC)
You could create a template with a short name like Template:bq, with contents <blockquote>{{{1|}}}</blockquote>, and use it like {{bq|Quoted paragraph here.}}. Jonathan3 (talk) 16:30, 30 October 2023 (UTC)
Thanks! This template was what I needed. Zeyn1 (talk) 07:55, 31 October 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

false

Need help logging in 173.18.201.75 (talk) 22:06, 30 October 2023 (UTC)

I’m not sure which wiki you are referring to.
In general, if a wiki’s settings for logging in is set to false then it likely users can only read a wiki. Otherwise click forgot password. Tropicalkitty (talk) 22:11, 30 October 2023 (UTC)

non English character in url

My page name is in VIetnamese so the url slug would look like this: /C%C3%B4ng_ngh%E1%BB%87_11_K%E1%BA%BFt_n%E1%BB%91i_tri_th%E1%BB%A9c_B%C3%A0i_5:_V%E1%BA%ADt_li%E1%BB%87u_phi_kim_lo%E1%BA%A Thang925 (talk) 11:08, 31 October 2023 (UTC)

I want to convert it like this: "Việt Nam" to "Viet-Nam". Most CMS i use automatically do this I dont understand why mediawiki dont Thang925 (talk) 11:10, 31 October 2023 (UTC)
Which 'page' are your referring to and on which wiki? please be more specific or link to it directly if public. – Ammarpad (talk) 14:14, 31 October 2023 (UTC)
We assume you might have a different page named Viet-Nam.
You could create a redirect see help:redirect
You can also enable unrestricted display title to change the display title, see help:Magic Words.
All modern browsers support auto converting percent encoding, so you can make links be /Việt_Nam instead of the percent encoded version. Bawolff (talk) 02:15, 3 November 2023 (UTC)

trying to retrieve an old MediaWiki (LordzHub

Trying to find out if there is anyway to restore data from this MediaWiki:


https://web.archive.org/web/20220112212231/https://lordzhub.com/index.php/Main_Page


Would mean alot to us to restore this data 114.122.103.242 (talk) 17:22, 31 October 2023 (UTC)

Do you have a database backup? Unless you do the answer is probably no.
I would suggest contacting the former operator of that wiki. Perhaps they have a backup.
maybe wikiteam has a copy, you could try asking them https://wiki.archiveteam.org/index.php/WikiTeam Bawolff (talk) 16:06, 4 November 2023 (UTC)