Jump to content

Project:Support desk/Flow/2024/11

From mediawiki.org
Latest comment: 4 months ago by 2605:59C0:30CE:CF10:E1D9:48BC:11B4:5C41 in topic Why am I not seeing a banner on my page
This page is an archive.
Please ask questions on the current support desk.

Extracting the content of a damaged database

I am trying to extract the text of the articles from a damaged database. My database does not have users table and other last tables (in alphabetical order) i.e. user, user_autocreate_serial, user_former_groups, user_groups, user_newtalk, user_properties, watchlist, watchlist_expiry. I don't care about the user now, I just want the current text of articles attributed to mediawiki default user. Is there a way to do that? Mshastchi (talk) 04:01, 1 November 2024 (UTC)

Does https://www.mediawiki.org/wiki/Manual:Page_table#Listing_pages_and_relations_with_other_essential_tables help? Bawolff (talk) 17:58, 1 November 2024 (UTC)

How to hide 'notice 1' from MediaWiki:Editnotice-0 in VE?

I can add a message to editors at MediaWiki:Editnotice-0 but in Visual Editor it's headed by 'notice 1'. How to remove this, to have only the plain message? Rob Kam (talk) 14:35, 1 November 2024 (UTC)

Delete the message: MediaWiki:Visualeditor-editnotices-toolAmmarpad (talk) 20:34, 1 November 2024 (UTC)
I deleted it but it comes back with the same "$1 {{PLURAL:$1|notice|notices}}" content? Rob Kam (talk) 01:15, 3 November 2024 (UTC)
Sorry I should say blank it rather than delete. That's edit the message page and save it with nothing (remove the text you see there and save). – Ammarpad (talk) 10:28, 3 November 2024 (UTC)
Thanks. I copied some other text in there and then blanked that. That seems to have got rid of the number. Rob Kam (talk) 22:06, 4 November 2024 (UTC)

How to save a Wikipedia article as an ODT file?

Hello !

I want to save an article with the most common Free and Open Source Software file extension I know of, which is ODT.

I want ODT and not PDF so the file would be easily editable from any common rich text editor.

Wikipedia only allows me to save an article as a webpage or as a PDF file, even for a printable version, hence I ask:

How to save a Wikipedia article as an ODT file?

No conversions, no complex tasks, just simply saving a printable version (in HTML) to an ODT (in XML).

Thank you ! 223.24.170.80 (talk) 16:05, 2 November 2024 (UTC)

copy/paste? Gryllida 10:51, 3 November 2024 (UTC)
When I've saved copy-pastes of Wikipedia articles to different versions of different rich text editors I didn't normally get an accurate result. 223.24.185.101 (talk) 10:13, 5 November 2024 (UTC)

Infobox personal help

hi i create a info box but its showing same code on page when i add it to any page

Documentation

Documentation

This template provides a standard layout for infoboxes.

Usage

To use this template, include the following in your article:

{{Infobox
| name            = 
| image           = 
| image_size      = 
| caption         = 
| property1       = 
| value1          = 
| property2       = 
| value2          = 
| ... (additional properties) ...
}}

Template Code

style="width: 22em;"
'
image = image_size = caption =
property1 = value1 =
property2 = value2 =
... (additional fields as needed) ...

Hasktyle554 (talk) 08:03, 3 November 2024 (UTC)

put the docs into <noinclude> tag? Gryllida 10:50, 3 November 2024 (UTC)

android app or push notifications 🤔

https://phabricator.wikimedia.org/T378545 i am looking for ways to show a push notification for each new Echo notification and better yet for custom triggers. any examples? hints? in linked task i linked to a discussion that is too verbose and unclear. i am looking for steps i can follow to make a app that says "you are logged in as USERNAME" and shows, for example, a new Android push notification for each new Echo notification. i hope you might have some tips. i know for english wikipedia and wikimedia commons, android apps exist.i am interested in this for smaller wikis, be it hosted by wmf or not. thanks 😊 Gryllida 10:47, 3 November 2024 (UTC)

MediaWiki as an Evernote alternative - Personal use?

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.


Hey there,

I use Evernote for personal note taking (life and study notes for technical exams) and as a general repository to store things about my life and family. I was an Evernote premium user until their latest round of price hikes, I downgraded to free and have coped with the horrid free plan ever since.

My question is whether MediaWiki can be configured to serve as a note platform in a similar way, and what features might support this?

For instance, Evernote has the concept of Notebooks to group together related ideas. What would best map across here? Projects? Additionally, is there an easy way to get lists of pages, or would I need to add things as categories to get "List of" pages?

I am open to any suggestions you have! Thank you in advance. OXYLYPSE (talk) 11:20, 3 November 2024 (UTC)

I think using a single talk page with sections works for quick notes and to-dos, and I can use categories for notebooks.
Haven't tried it yet but it's the best I can think of. OXYLYPSE (talk) 11:04, 5 November 2024 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

minervaneue disabled after install

Hello guys. I'm trying to install and run MediaWiki on a second hosting service. MediaWiki installs successfully, but it refuses to use the MinervaNeue skin. Even though all the settings in LocalSettings.php are configured correctly, it still doesn't work. The installer was downloaded from the official MediaWiki site, and the skin is also present. I can't figure out what the problem is. Can anyone please help me?

https://kaszinowiki.org/

I'll translate the error message displayed by the site:

Oops! The default wiki interface, which is set to MinervaNeue according to $wgDefaultSkin, is not available.

The installation includes the following interfaces. For more information on configuring skins and setting the default skin, see Manual: Skin configuration.

  • minervaneue / MinervaNeue (disabled)
  • monobook / MonoBook (enabled)
  • timeless / Timeless (enabled)
  • vector / Vector (enabled)

If you just installed MediaWiki:

  • You likely installed it from Git or in some other way directly from the source. In this case, this is expected. Try installing skins from the MediaWiki skin directory on mediawiki.org in one of the following ways:
Are you sure you added wfLoadSkin( 'MinervaNeue' ); to your LocalSettings.php file? Bawolff (talk) 13:50, 5 November 2024 (UTC)
There's a bug about selecting MinervaNeue directly from the installer. In your LocalSettings.php, look for the line $wgDefaultSkin = 'MinervaNeue'; and change it to $wgDefaultSkin = 'minerva';Ammarpad (talk) 15:40, 5 November 2024 (UTC)
Wow! Thank you Ammarpad! It's working for now! Many thanks! 2A02:AB88:5687:8500:FCEC:DB1:1F2A:2854 (talk) 17:05, 5 November 2024 (UTC)

Why does this wiki have registering disabled?

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 reposting this again after like 2 months because I didn't get an answer but I'm curious to know why the Touhou wiki (https://en.touhouwiki.net/wiki/Touhou_Wiki) has registering disabled. They say you should request an account on their Discord, though I don't have and am not willing to make a Discord account as I will never use it, so I don't see what the point in making the account just to use it to request another account on another platform is. There is nowhere on the Touhou wiki itself to discuss this because you need an account to edit, and I don't know how else to get in touch with the admins. I'm wondering if this is maybe to prevent vandals from coming or from other people to mass create accounts. I've always been looking forward to editing on this wiki, but unfortunately I can't. I will most likely make probably blog post pages about my own fanworks and edit things that are outdated, typos, etc.

And I've never been able to do these because they say you have to request your account be made via Discord.

I'm not asking FOR an account, but just asking why and if there could be an alternate way or something, I dunno.

Thanks! <3

2601:C6:D200:E9B0:C71:F201:A4A6:5316 19:47, 4 November 2024 (UTC)

To answer this question by technical setup, see Manual:Preventing access. As for why they chose to disable account creations, we are unable to assist. Tropicalkitty (talk) 06:22, 5 November 2024 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to hide "Special:ShortUrl" from new pages

Greetings:

I'm running MW v1.40.4 on Ubuntu 22.02 and Nginx 1.26.2

Today after enabling "ShortUrl" extension , I started seeing the "Special:Url/#" on each newly created page.

I read docs on "Extension:ShortUrl" but it's not clear to me how I can hide this value (shorturl) from being displayed under page name.

Any guidance or hints will be greatly appreciated.

--2TA 2tapadm (talk) 05:24, 5 November 2024 (UTC)

That extension doesn't support configuring that.
However you could add the following CSS to MediaWiki:Common.css on your wiki
.title-shortlink-container {display: none}
Bawolff (talk) 13:48, 5 November 2024 (UTC)
Awesome! - That worked beautifully.
Thanks a bunch Bawolff.  :-) 2tapadm (talk) 16:47, 7 November 2024 (UTC)

Upgrade

I am currently running MediaWiki version 1.8 and would like to upgrade to the latest version. Given the significant gap between my current version and the newest one, I’m unsure if it would be best to perform an incremental upgrade or if it would be more efficient and stable to start with a fresh installation and manually migrate my content, configurations, and permissions. 2803:9800:A0BE:8028:A568:9986:CE8A:C4FC (talk) 17:46, 5 November 2024 (UTC)

I have found the information provided here helpful to answer this question: Manual:Upgrading#Frequently asked questions 213.181.100.121 (talk) 13:13, 6 November 2024 (UTC)

Missing category entries

I am in the process of merging my other wikis into one. I can easily import the pages from these other wikis, but they are not added to existing categories until a page is saved. This is becoming a rather large wiki and having to save each and every page to fix the categories has become a large task. Is there a way to mass update the categories with the imported pages? The merged wiki is version 1.41.1. Andrew Branscom (talk) 20:50, 5 November 2024 (UTC)

refreshLinks.php cli script will do this
Although in principle they should be added automatically on import, so maybe you are experiencing some sort of bug. Bawolff (talk) 22:08, 6 November 2024 (UTC)
@Andrew Branscom do you have a job runner ? Cause if u do imports without a continuous job runner in the background, you might be behind on processing background jobs —TheDJ (Not WMF) (talkcontribs) 08:13, 7 November 2024 (UTC)
I have no root access to my server. I do have cPanel access. It sounds like refreshLinks.php is what I need. I see it in the maintenance folder, but am not quite sure how to run it. Forgive me for my ignorance in this. Am I able do it from my cPanel or browser? Andrew Branscom (talk) 01:54, 12 November 2024 (UTC)
You don't need root access but you do need shell (also called ssh or terminal) access.
As a work around, if you only have cpanel, sometimes cpanel lets you set cron scripts which can be used as a work around. Bawolff (talk) 03:06, 12 November 2024 (UTC)
I don't have shell access. I have never done anything with cron scripts. My cPanel has a Cron Jobs section that has frequency fields and a command field, but am unsure exactly what to enter. I should mention that there are other databases on my account, like for a phpBB forum. There are a couple of different PHP versions assigned.
I doubt that I can get much help from my hosting service. Another company bought my hosting service and now has lousy support. There is no longer any phone support
My Wikis have pages with code examples and newer versions of the Wikis changed the GeSHi SyntaxHighlight highlighter to requires the installation of Pygments, which broke my highlighting. The new hosting service refuses to install Pygments. I do not bring this up to ask for help with that, but just as an example of how unhelpful their support has been. The previous company had great support. Andrew Branscom (talk) 03:00, 13 November 2024 (UTC)
I had my hosting service run the refreshLinks.php, but it did not help. Note that the only thing that did not work right after importing the pages is the inclusion on the categories. Search works, recent changes work, etc. It does relink with its categories when the page is saved, but we are talking about several 10s of thousands of pages. Andrew Branscom (talk) 01:27, 22 November 2024 (UTC)

Keyboard shortcuts do not work on non-US keyboard layouts

This is an extremely common, yet serious, accessibility issue; for example alt+shift+e in order to edit will not work if keyboard language is changed to Greek. So one has to switch language first. Is there any solution to this so that the same keyboard key will work irrespective of the keyboard layout language selected? Spiros71 (talk) 22:04, 5 November 2024 (UTC)

Automatic creation of account using GoogleLogin extension

Good day! I was trying to achieve this goal using the Google Login extension:

  1. Automatic creation of accounts for new user while keeping the manual or primary authentication

I was able to achieve the automatic creation of account by following the documentation . There are two options which are the authoritative mode and manual account creation, however both of these disables the primary authentication when enabled . The reason why I wanted to keep the manual login is so that I can still login as an admin. How can I do that?

Thank you in advance. Bluemango1 (talk) 02:57, 6 November 2024 (UTC)

Extension Wikibase installation error (Class 'Wikibase\DataModel\Entity\ItemId' not found)

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


I am using MediaWiki 1.35.7 and have installed Wikibase (https://releases.wikimedia.org/wikibase/1.35/). I followed the manual (https://www.mediawiki.org/wiki/Wikibase/Installation), but an error occurred as follows:

[cd1b429df3be39f9eec3d03d] [no req]   Error from line 47 of /volume1/web/mediawiki/extensions/Wikibase/lib/WikibaseLib.entitytypes.php: Class 'Wikibase\DataModel\Entity\ItemId' not found
Backtrace:
#0 /volume1/web/mediawiki/extensions/Wikibase/repo/includes/WikibaseRepo.php(695): require()
#1 /volume1/web/mediawiki/extensions/Wikibase/repo/includes/WikibaseRepo.php(410): Wikibase\Repo\WikibaseRepo::getDefaultEntityTypes()
#2 /volume1/web/mediawiki/extensions/Wikibase/repo/includes/WikibaseRepo.php(460): Wikibase\Repo\WikibaseRepo::newInstance()
#3 /volume1/web/mediawiki/extensions/Wikibase/repo/includes/RepoHooks.php(115): Wikibase\Repo\WikibaseRepo::getDefaultInstance()
#4 /volume1/web/mediawiki/includes/HookContainer/HookContainer.php(329): Wikibase\Repo\RepoHooks::onSetupAfterCache()
#5 /volume1/web/mediawiki/includes/HookContainer/HookContainer.php(132): MediaWiki\HookContainer\HookContainer->callLegacyHook(string, array, array, array)
#6 /volume1/web/mediawiki/includes/HookContainer/HookRunner.php(3417): MediaWiki\HookContainer\HookContainer->run(string, array)
#7 /volume1/web/mediawiki/includes/Setup.php(694): MediaWiki\HookContainer\HookRunner->onSetupAfterCache()
#8 /volume1/web/mediawiki/maintenance/doMaintenance.php(91): require_once(string)
#9 /volume1/web/mediawiki/maintenance/update.php(253): require_once(string)
#10 {main}


In LocalSettings.php, I have added

# Load Wikibase Repository
$wgEnableWikibaseRepo = true;
require_once "$IP/extensions/Wikibase/repo/Wikibase.php";
require_once "$IP/extensions/Wikibase/repo/ExampleSettings.php";
# Load Wikibase Client

$wgEnableWikibaseClient = true;
require_once "$IP/extensions/Wikibase/client/WikibaseClient.php";
require_once "$IP/extensions/Wikibase/client/ExampleSettings.php";

and in composer.local.json,

{
	"extra": {
		"merge-plugin": {
			"include": [
				"extensions/Wikibase/composer.json"
			]
		}
	}
}

I've tried many other solutions, but none of them worked. 네단뵤르 (talk) 09:26, 6 November 2024 (UTC)

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

Need Answer

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.


Why i cant sign in? 2401:7400:6014:8A9E:1805:59E6:D4CE:3350 (talk) 10:23, 6 November 2024 (UTC)

You haven't provided to us what wiki you are referring to. In general, if you can't sign in/create an account on a specific wiki, it may be disabled by a sysop/system administrator (using procedures at Manual:Preventing access). Tropicalkitty (talk) 18:09, 6 November 2024 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Create a custom landing page for different accounts

Hi,

I'm running a restricted Wiki for multiple groups (students, teachers, parents). I'd like every group (or user) to have a different main page displayed. Is this possible? I tried Extension:PersonalisedHomepage, however this extension doesn't seem to fit my needs. I'd be grateful for any kind of support here.

Thanks! Qgj dev (talk) 17:01, 6 November 2024 (UTC)

@Qgj dev This is likely not possible by default. Either you find some extension which supports this feature, or you need to adjust or write code to get such functionality. Malyacko (talk) 17:26, 10 November 2024 (UTC)

Deployed 1.42.3 all working except Special Pages

Hi there, just migrated to a new install from an old 1.23 install on a new server. All is working well, however Special Pages link is not working, returning the follwoing error:

[f0c1431567ef45fb1bd894a1] /index.php/Special:SpecialPages ArgumentCountError: Too few arguments to function MediaWiki\Specials\SpecialRenameUser::__construct(), 0 passed in /var/www/html/mediawiki-1.42.3/vendor/wikimedia/object-factory/src/ObjectFactory.php on line 240 and exactly 8 expected

Backtrace:

from /var/www/html/mediawiki-1.42.3/includes/specials/SpecialRenameUser.php(46)

#0 /var/www/html/mediawiki-1.42.3/vendor/wikimedia/object-factory/src/ObjectFactory.php(240): MediaWiki\Specials\SpecialRenameUser->__construct()

#1 /var/www/html/mediawiki-1.42.3/vendor/wikimedia/object-factory/src/ObjectFactory.php(149): Wikimedia\ObjectFactory\ObjectFactory::getObjectFromSpec()

#2 /var/www/html/mediawiki-1.42.3/includes/specialpage/SpecialPageFactory.php(1501): Wikimedia\ObjectFactory\ObjectFactory->createObject()

#3 /var/www/html/mediawiki-1.42.3/includes/specialpage/SpecialPageFactory.php(1539): MediaWiki\SpecialPage\SpecialPageFactory->getPage()

#4 /var/www/html/mediawiki-1.42.3/includes/specials/SpecialSpecialPages.php(64): MediaWiki\SpecialPage\SpecialPageFactory->getUsablePages()

#5 /var/www/html/mediawiki-1.42.3/includes/specials/SpecialSpecialPages.php(53): MediaWiki\Specials\SpecialSpecialPages->getPageGroups()

#6 /var/www/html/mediawiki-1.42.3/includes/specialpage/SpecialPage.php(719): MediaWiki\Specials\SpecialSpecialPages->execute()

#7 /var/www/html/mediawiki-1.42.3/includes/specialpage/SpecialPageFactory.php(1669): MediaWiki\SpecialPage\SpecialPage->run()

#8 /var/www/html/mediawiki-1.42.3/includes/actions/ActionEntryPoint.php(504): MediaWiki\SpecialPage\SpecialPageFactory->executePath()

#9 /var/www/html/mediawiki-1.42.3/includes/actions/ActionEntryPoint.php(145): MediaWiki\Actions\ActionEntryPoint->performRequest()

#10 /var/www/html/mediawiki-1.42.3/includes/MediaWikiEntryPoint.php(199): MediaWiki\Actions\ActionEntryPoint->execute()

#11 /var/www/html/mediawiki-1.42.3/index.php(58): MediaWiki\MediaWikiEntryPoint->run()

#12 {main}

Any ideas on this, i;ve tried numerous things to work around, but no joy. Appreciate any guidance. Thanks SCW-Tech (talk) 21:30, 6 November 2024 (UTC)

Do you have any extensions enabled ? Did you try disabling them yet ? —TheDJ (Not WMF) (talkcontribs) 21:42, 6 November 2024 (UTC)
In particular, make sure you dont have the old renameuser extension installed which is not compatible with 1.42. Bawolff (talk) 22:05, 6 November 2024 (UTC)
Thanks for coming back to me, have a number of extensions, tried disabling a lot of them that i would say possible could break things, will review again this morning and disable 'everything' and work back :) Dont think i have the old RenameUser extension present. Keep you updated and thanks. SCW-Tech (talk) 07:46, 7 November 2024 (UTC)
Bloody hell... fresh pair of eyes this morning and seen that RenameUser extension was being loaded: wfLoadExtension( 'Renameuser' ); commented this out now and all looks to be working. Sigh. Funny thing is that was default instaleld with the wiki, i didnt install it independently, which is why i didnt think to check it. Thanks for your help, much aprpeciated, hopefully all is good now. WIll give it a final onceover today. SCW-Tech (talk) 07:53, 7 November 2024 (UTC)

(Help) Auto-creation of local account failed after renaming user account

Hi, my google login is working just fine not until i renamed a user account in Special:renameuser . Im getting Auto-creation of a local account failed: You have not specified a valid username each time i try to login as new user. This is my current. configuration:


$wgAuthManagerConfig = [

'primaryauth' => [

GoogleLogin\Auth\GooglePrimaryAuthenticationProvider::class => [

'class' => GoogleLogin\Auth\GooglePrimaryAuthenticationProvider::class,

'sort' => 0

]

],

'preauth' => [],

'secondaryauth' => []

];

$wgInvalidUsernameCharacters = ':~';

$wgUserrightsInterwikiDelimiter = '~';

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

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

$wgGLAuthoritativeMode = true; Bluemango1 (talk) 07:40, 7 November 2024 (UTC)

Template Styles Fatal Error

My search-fu can't seem to find a solution.

I'm trying to upgrade my Mediawiki installation from 1.39.3 to 1.42.3. Probably shouldn't matter but I'm using the official container.

I've run the installer/upgrader and the database was updated and whatnot.

I've upgraded all the skins and templates to the appropriate versions for 1.42 but I can't seem to get around an issue with TemplateStyles.

I get a fatal error:

https://fxide.io/TemplateStyles_mediawiki_error.txt

Disabling the extension makes the site work correctly but with the <templatestyles blah blah> stuff inline as expected.

I thought it might be related to jumping too many versions?

Or is it something else?

I'm testing the upgrade on a VM so it's not a big deal to tear it all down and add an intermediate upgrade step but if I can I'd like to avoid that (time constrained).

Docs say LTS to LTS is ok or did I misread?

Did I miss a "new and exciting" configuration step?

Missing something obvious?

Anyone have any insights?


Thanks a bunch! FXWorks (talk) 16:28, 7 November 2024 (UTC)

@FXWorks: Are you sure you've got the right extension versions? It looks like it might not be using the 1.42 compatible version of TemplateStyles. Sam Wilson 02:01, 8 November 2024 (UTC)
You are the second person to report something like this, so it might be an issue in the extension. Bawolff (talk) 05:45, 8 November 2024 (UTC)
Bawolff (talk) 05:58, 8 November 2024 (UTC)
As a work around, you can use composer to change the wikimedia/scoped-callback package in TemplateStyles extension to version 4.0.0 (Using a command like composer require wikimedia/scoped-callback:4.0.0 run inside the extension/TemplateStyles directory).
Hopefully a new version of the extension will be issued soon. Bawolff (talk) 06:05, 8 November 2024 (UTC)
fix worked. Thanks! Fabioski01 (talk) 00:10, 9 November 2024 (UTC)
Just to double confirm - the work around worked for me also.
Now to debate whether or not to apply this to my production site or wait for an update/fix to the template. FXWorks (talk) 15:21, 12 November 2024 (UTC)
Thanks for the attention to this @Samwilson and @Bawolff
I did use the download version picker widget linked from the official web page for the template. The filename is
TemplateStyles-REL1_42-1a2e46c.tar.gz
Short on cycles at the moment, may try the composer work around later.
Thank you! FXWorks (talk) 15:03, 8 November 2024 (UTC)
Having the same exact problem. I get extensionDependencyError: TemplateStyles is not compatible with the current MediaWiki core (version 1.42.3), it requires: >= 1.43.\n in
even if I downloaded the 1.42 stable. Fabioski01 (talk) 00:05, 9 November 2024 (UTC)
@Fabioski01: - that is a different problem and likely unrelated. Are you sure you downloaded the right version? What is the filenane of your download. Bawolff (talk) 01:55, 9 November 2024 (UTC)
TemplateStyles-REL1_42-1a2e46c Fabioski01 (talk) 12:12, 9 November 2024 (UTC)
I am experiencing the same symptoms and have not been able to resolve them yet.
The system I was using previously used the official Docker 1.40.0 and worked well.
The latest test used the official Docker 1.42.3 and a Fatal error occurred when updating. If I just disable the TemplateStyles extension, MediaWiki works normally.
Since I couldn't run composer because I was running it with the Docker version, I tried a different way.
So I created a separate Debian Docker and installed mediawiki 1.42.3 in /var/lib/ and installed all the necessary packages. However, the TemplateStyles extension does not work either. I thought the version of TemplateStyles was the problem, so I also installed TemplateStyles 1.40.0, but it didn't work.
As Bawolff suggested, I downgraded from $IP/extension/TemplateStyles to scoped-callback:4.0.0 and it worked normally. I haven't confirmed yet whether it works with the official Docker. 183.103.159.229 (talk) 04:17, 14 November 2024 (UTC)

School Blocking Workaround

So my school blocked Wikimedia Commons, is there a workaround? Visaa11 (talk) 23:01, 7 November 2024 (UTC)

If Wikipedia/upload.wikimedia.org is not blocked, all the images on commons are available on Wikipedia.
Otherwise standard anti-censorship stuff applies - archive.org, google cache, tor, etc. Bawolff (talk) 05:44, 8 November 2024 (UTC)

1.39.1 to 1.39.8 Errors

We're attempting to upgrade to 1.39.8 using a hardened Canasta Image via Docker in a Kubernetes Container. We got it to finally go through in our staging environment, with three new errors presenting:

CommentStreams Internal Error When attempting to delete or edit the action cannot be completed and this internal error pops up:

TypeError at /var/www/mediawiki/w/includes/dao/DBAccessObjectUtils.php from /var/www/mediawiki/w/includes/dao/DBAccessObjectUtils.php(36) 0 /var/www/mediawiki/w/includes/dao/DBAccessObjectUtils.php(53): DBAccessObjectUtils::hasFlags() 1 /var/www/mediawiki/w/includes/page/WikiPageFactory.php(133): DBAccessObjectUtils::getDBOptions() 2 /var/www/mediawiki/w/includes/api/ApiBase.php(1057): MediaWiki\Page\WikiPageFactory->newFromID() 3 /var/www/mediawiki/w/canasta-extensions/CommentStreams/includes/ApiCSCommentBase.php(57): ApiBase->getTitleOrPageId() 4 /var/www/mediawiki/w/includes/api/ApiMain.php(1904): MediaWiki\Extension\CommentStreams\ApiCSCommentBase->execute() 5 /var/www/mediawiki/w/includes/api/ApiMain.php(879): ApiMain->executeAction() 6 /var/www/mediawiki/w/includes/api/ApiMain.php(850): ApiMain->executeActionWithErrorHandling() 7 /var/www/mediawiki/w/api.php(90): ApiMain->execute() 8 /var/www/mediawiki/w/api.php(45): wfApiMain() 9 {main}

Semantic MediaWiki When enabled has an "upgrade key error." I used the online updater which seems to have worked (not for SMW but our database updated). I would like to run the setupStore maintenance script but unsure of how to do this via a Dockerfile.

Moving a Page Internal Error When attempting to move a page this internal error pops up: /w/index.php?title=Special:MovePage&action=submit LogicException: This ParserOutput contains no text! But it does work if you deselect the box 'Leave a redirect behind' Kimmywingz (talk) 14:34, 8 November 2024 (UTC)

these seem likely related specificly to hardened canasta, and you might have better luck asking the hardened canasta people. Bawolff (talk) 01:57, 9 November 2024 (UTC)

Update img_size etc in Image table

If Image sizes have been changed outside of Mediawiki is there anyway to update the dimensions in the image table (img_size, img_width, img_height)? I tried rebuild all and refreshimagemetadata with no luck.

The photos seem to work fine even with changed dimensions but the information reflected on the file page is incorrect. It gives the wrong image dimensions. Anrake (talk) 10:29, 9 November 2024 (UTC)

using MW 1.39 Anrake (talk) 10:33, 9 November 2024 (UTC)
Manual:refreshImageMetadata.php maybe Bawolff (talk) 16:16, 9 November 2024 (UTC)
With the —force option —TheDJ (Not WMF) (talkcontribs) 22:21, 9 November 2024 (UTC)
wow - that's brilliant. Force did the trick. Thank you !! Anrake (talk) 08:28, 10 November 2024 (UTC)

export mdiawiki article to xml without multilingual support (English only)

I use archlinux MediaWiki engine, but without support for multi-language.

It's possible to export mediawiki article from mediawiki.org website without tags for multi-language support ?

Christopher Kszwaba (talk) 12:00, 9 November 2024 (UTC)

It depends on what exactly you mean, but try exporting the /en subpage. Bawolff (talk) 16:15, 9 November 2024 (UTC)

List does not appear in the category page

Hi, I would like to add the page "Helsinki" to the list of pages, but when I edit the category list, I don't see the list:

https://wiki.worldnakedbikeride.org/wiki/Category:Northern_hemisphere_ride_locatio


Can anyone help? I tried even with AI assistance, but no luck Cyclorbit (talk) 13:38, 9 November 2024 (UTC)

See help:Categories for how categories work. Bawolff (talk) 16:14, 9 November 2024 (UTC)

need help with installing SocialProfile extension

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 stuck on the part where you run the update script. I tried using PuTTy and entered

php maintenance/run.php update

but it responded with

Could not open input file: maintenance/run.php

can anyone tell me what I'm doing wrong? I'm not experienced in any of this kind of things, and I really want the SocialProfile extension on my MediaWiki website. Tang Empire (talk) 19:44, 9 November 2024 (UTC)

Make sure to be in the correct folder when running the php command, so the file path and file both exist. Malyacko (talk) 17:25, 10 November 2024 (UTC)
could you give an example? I do not quite understand. I also can't find anything with "maintenance/run" in my files, which file am I supposed to run?
I'm trying to follow Manual:Update.php btw Tang Empire (talk) 22:00, 10 November 2024 (UTC)
You need to use the cd comman to change to the directory of your wiki. E.g. if your wiki was installed in /var/www/html you would run cd /var/www/html before running the update.php command. Bawolff (talk) 01:25, 11 November 2024 (UTC)
ok this might be a stupid question but what do you exactly mean by where the wiki is installed? like is it a file or...? Tang Empire (talk) 02:06, 11 November 2024 (UTC)
It would be a directory in the system. When you installed mediawiki you probably had to put mediawiki's files somewhere. Whereever that is. (This can vary a lot between hosts. Most common is /var/www/html or /home/yourusername/public_html but it really can be anywhere) Bawolff (talk) 03:02, 11 November 2024 (UTC)
oh, I understand. so how do I find out what mine is called? I host my website on Hostinger, and my files just exist in the "file manager", there isn't really more information. Tang Empire (talk) 17:44, 11 November 2024 (UTC)
ok nevermind, I found mine and succeeded. thank you guys Tang Empire (talk) 00:37, 12 November 2024 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

css style page turned into an article

On sinhala wikipedia i tried manually importing Help:Your first article/styles.css from here to there si:උදවු:Your first article/styles.css. But it turned into to an article type page. Never happened to me before. Can someone fix this? can an admin please change the content model of this page si:උදවු:Your first article/styles.css VihirLak007 (talk) 19:55, 9 November 2024 (UTC)

@VihirLak007 This page is for 3rd party MediaWiki installations. Please ask technical questions about Wikimedia websites on meta:Tech instead, as the side bar on this oage says. Thanks. Malyacko (talk) 17:24, 10 November 2024 (UTC)
I think that is because it was in the help namespace instead of template.
You can use si:Special:ChangeContentModel (not sure if you have to be an admin to do it) Bawolff (talk) 01:22, 11 November 2024 (UTC)

What is Luastandalone?

I tried to create a page for Template:Documentation on my wiki, but when I went onto the page, my browser had what is essentially the browser equivalent of a seizure. I would be extremely thankful for any and all proper support.

This is the fatal error that occurred.

Angrythewikipedian (talk) 17:54, 10 November 2024 (UTC)

It seems you imported content that requires the Extension:Scribunto which runs the Lua language using a binary compiler which it refers to a LuaStandalone —TheDJ (Not WMF) (talkcontribs) 20:12, 10 November 2024 (UTC)
I do have Scribunto, but what's next? Where is LuaStandalone? Angrythewikipedian (talk) 21:03, 11 November 2024 (UTC)

Lockdown Extension - how to lock down associated media

Hello. We have the lockdown extension installed and working perfectly. However we found out that any media associated with the locked down page is not locked down. Non member users can find that pdf or other media file from special pages or just via a search. Does anyone know how to control that?

Here's a video that makes it clear: https://www.youtube.com/watch?v=28JKnzI1L0Y Compumatter (talk) 04:14, 11 November 2024 (UTC)

How are you limiting that one page to the particular user group? The lockdown extension can "restrict access to specific namespaces and special pages to a given set of user groups", but it doesn't say anything about individual pages.
Anyway, it sounds like the issue is that you need to apply the same restriction to the File pages that you want to restrict. In MediaWiki there's no specific connection between a file and the page it's used on (i.e. it's not like files are 'attached' to pages when you upload them). Sam Wilson 06:33, 11 November 2024 (UTC)
As Sam said, Media files are not "associated" with pages, they are used on pages. The same media file can be used on multiple pages, and none of them "ownes" the media file. Because of theat, access restrictions to a regular page cannot directly apply to media files. Instead, the media file (or rather, the file description page in the File namespace) would have to have access restrictions imposed.
Also, keep in mind that access restrictions to the file description page don't prevent access to file file itself if the user knows the media URL, which is easy to construct based on the file name. To prevent this, you have to apply Image_authorization. DKinzler (WMF) (talk) 06:38, 12 November 2024 (UTC)

Extension about message box

There is a extension that adds a little message icon where you can receive messages, and it automatically messages you after you've made your 1st, 10th, 100th, etc. edit. But I can't remember the name of the extension, does anyone here know? Tang Empire (talk) 00:56, 12 November 2024 (UTC)

Seems like Extension:EchoAmmarpad (talk) 05:43, 12 November 2024 (UTC)

Orphan parentheses in message 838

In message 838, there is only the opening parenthesis present. Is this by design or a typo? Please note that the German translation brings the closing parenthesis as well while other 14 translations follow the original text and do not include the closing parenthesis. Alfa80 (talk) 06:37, 12 November 2024 (UTC)

I've moved the parenthesis to be within the translation unit. It did look like a typo. Sam Wilson 09:11, 12 November 2024 (UTC)

Permisos sysop como administrador

¡Buen día y GRACIAS por la atención!

Soy fundador de una wiki colaborativa. Cuando quiero editar, agregando código CSS desde la página "Common.css", y no me deja por no tener permisos como administrador.

No sé cómo solucionar esta cuestión.

Las líneas de código que comparto a continuación pertenecen al archivo "LocaSetting.php" =>

// Permisos para la extensión Widgets

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

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

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

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

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

$wgGroupPermissions['sysop']['comment-delete'] = true; // Si la extensión lo permite

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

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

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


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

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


¡Nuevamente GRACIAS! 181.29.134.107 (talk) 14:45, 12 November 2024 (UTC)

Hiding parameters when they are empty

I got a infobox looking like this

{|type="hide-lonely-labels"; style="float: right; padding: 5px; background: #eaecf0; border: 3px solid #000000; width: 25%; margin-left: 3px" ! colspan="2"; style="text-align: center;" | <span style="font-size: larger;">{{{name|}}}</span> |- | colspan="2"; style="text-align: center;" | [[File:{{{image|}}}|250px]] |- |- style="vertical-align:top;" ! style="text-align: left;"|'''Created by''' | {{{created_by|}}} |- |- style="vertical-align:top;" ! style="text-align: left;"| '''Release date''' | {{{release_date|}}} |- |- style="vertical-align:top;" ! style="text-align: left;"| '''Candidates''' | {{{candidates|}}} |- |- style="vertical-align:top;" ! style="text-align: left;"| '''Parties''' | {{{parties|}}} |- |- style="vertical-align:top;" ! style="text-align: left;"| '''Historical result''' | {{{historical_result|}}} |- |- style="vertical-align:top;" ! style="text-align: left;"| '''Canon result''' | {{{canon_result|}}} |}

How do I hide release date, candidate, parties, historical result, and canon result if they are empty? 2001:1C04:3B16:5400:79BB:BEC6:AC51:4E3D (talk) 15:09, 12 November 2024 (UTC)

See #if from help:Extension:ParserFunctions (you need to have the extension installed if you dont already) Bawolff (talk) 20:47, 13 November 2024 (UTC)

MediaWiki + Visual Editor Problems

Hi guys,

i've got a problem with my MediaWiki Installation.

I installed MediaWiki 1.39, activated Visual Editor, but it doesn't work.

curl test with redirect works also.

curl 'http://localhost/mediawiki/rest.php/v3/page/Hauptseite_IT-Doku_Klinikmed_-_IT/html'

<a href="http://localhost/mediawiki/rest.php/v1/page/Hauptseite_IT-Doku_Klinikmed_-_IT/html">here</a>.</p>

curl 'http://localhost/mediawiki/rest.php/v1/page/Hauptseite_IT-Doku_Klinikmed_-_IT/html'

works also.

But start Visual Editor from MediaWiki, i always get a 404 error, see also apache2 access.log

::1 - - [12/Nov/2024:16:47:41 +0100] "GET /mediawiki/rest.php/localhost/v3/page/html/Thinclient/44678?redirect=false&stash=true HTTP/1.1" 404 542 "-" "VisualEditor-MediaWiki/1.39.9"

127.0.0.1 - - [12/Nov/2024:16:47:41 +0100] "GET /mediawiki/api.php?action=visualeditor&format=json&paction=parse&page=Thinclient&uselang=de&formatversion=2&oldid=44678 HTTP/1.1" 200 881 "http://localhost/mediawiki/index.php?title=Thinclient&veaction=edit&section=2" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0"


Everything's seems to be configured correctly, but i get a 404 error.

My LocalSettings.php:

# DebugLog

$wgDebugLogFile = "/var/log/mediawiki-debug.log";

$wgLogPrefix = 'restbase: ';

$wgDebugLogGroups['restbase'] = '/var/log/mediawiki/restbase.log';

$wgDebugLogGroups['VisualEditor'] = '/var/log/mediawiki/VisualEditor.log';

$wgDebugLogGroups['Parsoid'] = '/var/log/mediawiki/Parsoid.log';

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

## names, ie 'vector', 'monobook':

$wgDefaultSkin = "vector";

# Enabled skins.

# The following skins were automatically enabled:

wfLoadSkin( 'CologneBlue' );

wfLoadSkin( 'Modern' );

wfLoadSkin( 'MonoBook' );

wfLoadSkin( 'Vector' );

# VisualEditor

wfLoadExtension( 'VisualEditor' );

# wfLoadExtension( 'Parsoid', 'vendor/wikimedia/parsoid/extension.json' );

$wgDefaultUserOptions['visualeditor-editor'] = "visualeditor"; // Setzt VisualEditor als Standard

$wgVisualEditorEnableWikitext = true;

$wgDefaultUserOptions['visualeditor-enable'] = 1;

$wgHiddenPrefs[] = 'visualeditor-enable';

$wgVisualEditorEnableWikitext = true;

$wgVisualEditorParsoidURL = 'http://localhost/mediawiki/rest.php';

$wgVisualEditorRestbaseURL = 'http://localhost/mediawiki/rest.php/v1/page/';  // Direkt auf `v1` verweisen

$wgVirtualRestConfig['modules']['parsoid'] = [

   'url' => 'http://localhost/mediawiki/rest.php'  // URL zur Parsoid REST-API

]; 77.87.191.179 (talk) 15:51, 12 November 2024 (UTC)

Could be a virtual host issue in your webserver config maybe. Bawolff (talk) 20:46, 13 November 2024 (UTC)

Hiding empty brackets on infoboxes

Hey there I am trying to make an infobox for one of the wikis I am a part off, but I can't for the life of me figure out how to hide brackets if they have no text. Is there a trick to it? Thanks in advance. Appelmonkey (talk) 20:34, 12 November 2024 (UTC)

Use {{{Fieldname|}}} with that bar/pipe symbol. Jonathan3 (talk) 20:41, 12 November 2024 (UTC)
See also Help:Templates#Default_valuesTheDJ (Not WMF) (talkcontribs) 11:13, 13 November 2024 (UTC)

Deleted Actor Table - No Backup

I was trying to purge thousands of spam actors on my MediaWiki database in the actor table. I accidentally deleted the dozen or so real people and now the entire site is broken. I have no backup of the table or database. How can I possible restore the information even if manually readding the few rows? 2600:1700:FA40:11B0:4590:DF24:5DB0:8CF7 (talk) 03:53, 13 November 2024 (UTC)

Thankfully, hosting provider had backups and was able to do a full restore. 2600:1700:FA40:11B0:F864:19B4:604:95F7 (talk) 05:20, 13 November 2024 (UTC)
If anyone is able to provide help on how to purge users from the User list, that would be helpful. They're gone from everywhere inclusive of spam pages they created...but still show on the Special:ListUsers page. 2600:1700:FA40:11B0:F864:19B4:604:95F7 (talk) 06:00, 13 November 2024 (UTC)

Trying to Upgrade

1.26 to 1.35.14 ( on the way to latest update)

Uploaded the files, went to /mw-config/index.php - changed the language to en from en-gb, then got :

[de00b84bcce814fa958844d2] /wiki3/mw-config/index.php Error from line 408 of /home/universe/public_html/wiki3/extensions/IntraACL/includes/GlobalFunctions.php: Call to undefined function wfProfileIn()

Backtrace:

#0 /home/universe/public_html/wiki3/extensions/IntraACL/includes/GlobalFunctions.php(372): haclfInitContentLanguage(string)

#1 /home/universe/public_html/wiki3/extensions/IntraACL/includes/GlobalFunctions.php(48): haclfInitNamespaces()

#2 /home/universe/public_html/wiki3/LocalSettings.php(199): enableIntraACL()

#3 /home/universe/public_html/wiki3/includes/installer/Installer.php(661): require(string)

#4 /home/universe/public_html/wiki3/includes/installer/WebInstallerExistingWiki.php(29): Installer::getExistingLocalSettings()

#5 /home/universe/public_html/wiki3/includes/installer/WebInstaller.php(269): WebInstallerExistingWiki->execute()

#6 /home/universe/public_html/wiki3/mw-config/index.php(82): WebInstaller->execute(array)

#7 /home/universe/public_html/wiki3/mw-config/index.php(40): wfInstallerMain()

#8 {main}


How to fix? BKCSTL (talk) 13:52, 13 November 2024 (UTC)

See MediaWiki 1.25#Less invasive profiling and file a bug report at https://github.com/mediawiki4intranet/IntraACL if that's still in their latest code. Malyacko (talk) 14:18, 13 November 2024 (UTC)
So, I would need to create a startprofiler.php (copy from startprofiler.sample) and add the suggested code? BKCSTL (talk) 14:51, 13 November 2024 (UTC)
No, that is not what Malyacko is suggesting and it won't help. Bawolff (talk) 20:40, 13 November 2024 (UTC)
Would it be easier to install latest version and import previous contents? BKCSTL (talk) 14:27, 13 November 2024 (UTC)
it is always an option, but it is hard to do without preserving full authorship records (all users would have to recreate their account before importing) and some of the state is not exportable. I'd always favour a normal upgrade where possible. —TheDJ (Not WMF) (talkcontribs) 14:36, 13 November 2024 (UTC)
The IntraAcl extension is not compatible with mediawiki 1.35. Maybe there is a newer version available you could download. If not you have to disable the extension. Bawolff (talk) 20:43, 13 November 2024 (UTC)

group permission

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 I'm trying to use the mediawiki api using R.

I have tried to delete a page in my wiki. I got an error message saying that I'm not an administrator. But this is not the case.  A fresh installation also produced the same result. The administrator account seems to be assigned only limited rights.

If I assign the 'delete' option to the sysop group in the localsettings, this is not applied. However, if I assign delete for all user groups (*) it works. But this is too insecure as solution.

Can someone please help me or give me hints on how to solve this. Larslaki (talk) 17:34, 13 November 2024 (UTC)

Are you sure that your account is actually an administrator? If you go to Special:preferences (or Special:listusers ) what groups does it say you are a member of?
If you are using the api, are you using either bot passwords or oauth? If so you need to take grants into account. Bawolff (talk) 20:40, 13 November 2024 (UTC)
Thank you for your help!
Yes it is administrator. I'm not using bot passwords. I used action=login with password and username for an user which is administrator.
It seems that the login via api is somehow limiting the rights. If I'm checking the user information getting after API login it is also described as admin but with a different set of rights (only 10 including the right to edit but not delete).
How to login and keeping the rights which are visible for admins on the User group rights page? Larslaki (talk) 22:17, 13 November 2024 (UTC)
Do you have any auth related extensions installed? When logged in via the api is the set of implicit groups different than a normal login? (E.g. check with api.php?action=query&meta=userinfo&uiprop=rights|groups|implicitgroups ). Do you have any groups setup that revoke rights (check on Special:ListGroupRights ). You could also check if the rights you have correspond exactly to something on Special:listGrants, although based on your description grants shouldnt be in use. Bawolff (talk) 03:50, 14 November 2024 (UTC)
it seems like. that is the output:
{
"batchcomplete": "",
"query": {
   "userinfo": {
       "id": 0,
       "name": "84.140.150.49",
       "anon": "",
       "groups": [
           "*"
       ],
       "implicitgroups": [
           "*"
       ],
       "rights": [
           "read",
           "edit",
           "createpage",
           "createtalk",
           "writeapi",
           "viewmywatchlist",
           "editmywatchlist",
           "viewmyprivateinfo",
           "editmyprivateinfo",
           "editmyoptions"
       ]
   }
}
}
This is the same list I get within R after login and asking for user rights for the user.
But I'm not clear were it comes from. I had used some type of extension but not using them anymore and deleted them. Could they have changed the rights beyond their use? Larslaki (talk) 07:42, 14 November 2024 (UTC)
That output is saying you are not logged in (See the word "anon" in it), which would explain why you don't have the rights. Bawolff (talk) 08:34, 14 November 2024 (UTC)
> I used action=login with password and username.
I'm pretty sure, you need to use a cookiejar to keep track of cookies between requests if you use this flow. Not having one would explain the behaviour described. —TheDJ (Not WMF) (talkcontribs) 12:11, 14 November 2024 (UTC)
ah ok now I tried again and I was surely logged in and used your code frome above, The result now is different and it showes me all option for me as administrator. That means that my login via R and API is not working properly or the cookies are not managed well as the second answer suggest.
Than I will try to figure out how to loggin properly. If you have any suggestions for this I would be very grateful!
Thank you so far a lot!!!!! Larslaki (talk) 14:20, 14 November 2024 (UTC)
I have solved it. A proper login and making some other request was only possible with using a cookie.
Thank you for help. Larslaki (talk) 13:06, 18 November 2024 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to get access code token from oauth2/access_token?

I'm now developing an application which needs an auth code from the Extension:OAuth. I have already got a code from oauth2/authorize, so according to the docs, I need to send a POST request to oauth2/access_token.

So the url I posted was oauth2/access_token, andwith all the parameters in the body:

{'grant_type': 'authorization_code', 'code': code, 'client_id': consumerKey, 'redirect_uri': redirectUri, 'code_verifier': codeVerifier, 'code_challenge_method': 'S256'}.

But it keeps mentioning me:

{"error":"invalid_request","error_description":"The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.","hint":"Check the `grant_type` parameter","message":"The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed."}

I don't know whether or not this is something with the cookies (just like the login part) or something else. But firstly I put them in the query string, but with the same result...

Thanks! Creamycd (talk) 03:38, 14 November 2024 (UTC)

How to avoid "No 'Access-Control-Allow-Origin' header is found" when running CORS request against the REST API?

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.


While rewriting Manual:CORS I did some tests of my own, using a local wiki to query the API of another local wiki. What I did not manage to get working is the request against the REST API using mw.ForeignRest, whether setting the 'anonymous' option to true or false. The example I provided there works for me fine, but when I substitute my local wiki for Wikimedia Commons, the request is blocked and the browser says that "No 'Access-Control-Allow-Origin' header is present on the requested resource". Any ideas what could be the matter? I have no such issues with anonymous and authenticated requests made to the Action API or with internal requests to the REST API. Cavila 09:39, 14 November 2024 (UTC)

After delving further, I found that $wgAllowCrossOrigin, which is false by default, needs to be set to true to enable CORS for the REST API. I will add it to the documentation. Cavila 10:07, 14 November 2024 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Administrator can't edit sitewide css after upgrade

I just upgraded to the latest stable wiki.

My user is part of the "administrator" (sysop) and "bureaucrat" user group.


top of page says: You do not have permission to edit this page, for the following reason: You do not have permission to edit this CSS page because it may affect all visitors. 99.192.96.81 (talk) 13:47, 14 November 2024 (UTC)

See Interface administrator. You need to promote your user to 'interface admin' group. – Ammarpad (talk) 14:13, 14 November 2024 (UTC)

Referencing an uploaded image in CSS

I see on some other Mediawiki's, like Minecraft, that in their Vector.CSS they use:

--vector-tabs: url('filepath://Vector-tabs.png');

and that seems to autotranslate to the complete path in the downloaded CSS:

--vector-tabs: url(/images/Vector-tabs.png?0ceb5);

but when I use that on my Mediawiki, I just get back the same text

Vector.css:

--base-background: url('filepath://AdventureRoadBackground.png');

returns:

--base-background: url(filepath://AdventureRoadBackground.png);

I checked, and File:AdventureRoadBackground.png does indeed exist.

Is there a hook that needs to be written, a setting to be flipped, or an extension to install to get this translation to work?

MediaWiki 1.40.0

www.cubieversewiki.com AllenKll (talk) 17:46, 14 November 2024 (UTC)

That does sound like an extension, however I've never heard of any extension to do that. Maybe its something custom to their site. Bawolff (talk) 18:13, 14 November 2024 (UTC)

Adding an appearance menu like Wikipedia has

Could anybody point me in the right direction on how to add the same appearance menu that Wikipedia has next to articles to a Wiki (including the dark mode)? The furthest I have gotten is enabling Vector-2022 and the Gadgets extension. I couldn't figure out which gadgets to import. There doesn't seem to be any official documentation (that I could find). I'm also not sure if I have to change anything else in LocalSettings.php to get it working. Hyperwombat (talk) 21:28, 14 November 2024 (UTC)

I finally figured out that it's enabled by default in MediaWiki 1.43, but not in the current stable version (don't know if it could be enabled somehow in 1.42). The only thing I still have to figure out is how to make it default to the text size "standard" instead of "small" for all users. Hyperwombat (talk) 06:05, 15 November 2024 (UTC)
Okay, the font size can be changed in skin.json under "DefaultUserOptions". Problem solved. Leaving all of this here in case someone else tries to figure this out. Hyperwombat (talk) 06:24, 15 November 2024 (UTC)
For the record, we strongly discourage people from editing skin.json. If you want to change this, you should set $wgDefaultUserOptions['vector-font-size'] = 1 in your LocalSettings.php See manual:$wgDefaultUserOptions for more details. Bawolff (talk) 15:20, 15 November 2024 (UTC)
Thank you for pointing that out. That's a cleaner solution. I was looking for a way to do that in LocalSettings.php, but I was looking in the wrong place (Skin:Vector#Configuration). Hyperwombat (talk) 20:13, 15 November 2024 (UTC)

I would like to know if it's possible to link my new account with the google account. (Is also the account that I add for my account on MediaWiki too)

If it is, can you send me a link or if it is already on settings list and I didn't see it, may you give me an " 101 idiot course " please?

Thank you for your time, good luck with your donations request and congratulation for your resilience and a heroic job ! Hopefighter (talk) 07:42, 15 November 2024 (UTC)

Hi, this depends on which website you are referring to. If you mean this website or Wikipedia, then no.
If you want to set this up for your own website, see Extension:OpenID Connect Bawolff (talk) 15:17, 15 November 2024 (UTC)
Thank you ! Hopefighter (talk) 10:16, 20 November 2024 (UTC)

Npm package installation

Hello,

I would to know if it possible to install package in Wikibase especially in extension development (for example: Special Page).

In my case, I have an extension where it is developed in Vue and I would like for example to install this kind of library: https://primevue.org/

I try with the ResourceLoader but no successful, it is not possible to install via NPM ?

Do you know how to do and if it is possible ?

Thanks a lot. Antoine7812 (talk) 08:06, 15 November 2024 (UTC)

Generally people who use npm add some sort of build step to integrate the npm result into resource loader. Bawolff (talk) 09:34, 18 November 2024 (UTC)

Hello,

I have added the code

var timer = setInterval(function() { ... } }, 100);

from Extension talk:MobileFrontend/2020#h-How_to_Customize_Mobile_Menu_Links-2020-07-27T20:33:00.000Z

in a Mobile.js file to add a custom link in mobile menu. But where do I place / register this JS? Do I need additional code or other settings? (I use V 1.42) Kyebert (talk) 10:37, 15 November 2024 (UTC)

mediawiki blank after I tried to set $wgMaxUploadSize

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 tried to change max upload size to 1GB, but since my mediawiki doesn't load anymore. Also adding

error_reporting( -1 );

ini_set( 'display_errors', 1 );

to localsettings doesn't bring anything up 2A02:8109:AB89:6700:6D9E:C49D:3004:3387 (talk) 13:51, 15 November 2024 (UTC)

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

OpenID Connect Extension - Infinite Redirects

I'm looking for some help debugging an issue with OIDC. Like the title, I'm experiencing a redirect loop after my SSO provider redirects to Special:PluggableAuthLogin. My SSO provider and Special:PluggableAuthLogin redirect back and forth to each other infinitely.

It looks like my SSO provider (Keycloak) is sending the correct query parameters back to PluggableAuthLogin.

I'm running: MW 1.39.10; PluggableAuth 7.1.0 (db07c04); OpenID Connect 8.0.3 (0cd85ca)

Here is a debug log too: Extension talk:OpenID Connect/2024#h-Redirect_Loop_-_MediaWiki_1.39.10_-_OpenID_Connect_8.0.3-20241112174000 HadleySo (talk) 18:53, 15 November 2024 (UTC)

Solved it - there was a issue in the web server config for Manual:Short_URL. A few other Special pages were not working either. HadleySo (talk) 19:52, 17 November 2024 (UTC)

British English has non-English

So I just updated my wiki to 1.42.3 and as my personal preferences is set to British English, I noticed that "Read" and "Edit" are now "Kà" and "Àtúnṣe" respectively. Up-on looking in languages\i18n at the en-gb.json I can see a fair few misplaced localisations for example:

"sunday": "Aad", "print": "Ìtẹ̀jáde", "view": "Ìwò", "viewcontribs": "Wo àwọn àfikún", "skin-view-view": "Kà", "skin-view-edit": "Àtúnṣe", "create": "Da", "skin-view-create": "Da", "delete": "Ìyọkúrò", "viewdeleted_short": "Ìwò Template:PLURAL\n:$1", "protect": "Ìdáàbò", "protect_change": "Ìyípadà", "skin-action-unprotect": "Ìyípadà ìdáàbòbò", "newpage": "Páàjì titun", "newpage-desc": "Bẹ̀rẹ̀ páàjì titun lórí àkòrí tí wọ́n ṣẹ̀ṣẹ̀ bèrè fún", "view-missing-pages": "Wo àwọn páàjì tí a kò rí", "talkpagelinktext": "Sọ̀rọ̀", "personaltools": "Àwọn irinṣẹ́ tèmi"

This is a bug right? 86.12.56.30 (talk) 09:40, 16 November 2024 (UTC)

This was mentioned on this page recently. It's nearly impossible to find anything here but I think this might be the bug report: T375487. Jonathan3 (talk) 22:27, 16 November 2024 (UTC)

Trying to get citations going

Hello, I've been trying to get citations going on my MediaWiki, but it's been an endless struggle of importing extensions, models and other dependencies. After getting to this error:

"Import failed: The content model 'sanitized-css' is not registered on this wiki. See https://www.mediawiki.org/wiki/Content_handlers to find out which extensions handle this content model."

I've downloaded the TemplateStyles contentHandler, but whenever I load it in LocalSettings.php, the wiki stops loading entirely, displaying only a blank white page. The documentation (Extension:TemplateStyles) says...

"The CSS page must be created first. By default any subpage in the Template namespace with a title ending in ".css" will be created with the "Sanitized CSS" content model if it contains no syntax errors."

...but I have no idea what this means.

Do I have to import additional CSS styles from wikipedia or is the CSS file auto generated? I can't figure out what to do next. 2001:9E8:934E:D800:11FA:DCEF:26B:FE36 (talk) 12:31, 16 November 2024 (UTC)

I also get this error when attempting to use a "Template:Citation":
"Lua error in Module:Citation/CS1/Configuration at line 2083: attempt to index field '?' (a nil value)." 2001:9E8:934E:D800:11FA:DCEF:26B:FE36 (talk) 15:11, 16 November 2024 (UTC)
Do you just want to get citations like this[1] working?
  1. You just need to use the bundled Extension:Cite.
  2. Jonathan3 (talk) 22:24, 16 November 2024 (UTC)

    I am also in need of the relevant templates, e.g. Template:Cite journal 2001:9E8:9363:C400:5867:A606:6EC9:FCFC (talk) 12:09, 17 November 2024 (UTC)
    It might be easier for you to work out exactly what you need, and create your own templates based on that :-) Jonathan3 (talk) 15:06, 17 November 2024 (UTC)
    Yes, that's what I plan on doing, since there doesn't seem a quick way to debug this. I just found it hard to believe that the dependencies can get so messy so easily with mediawiki. 2001:9E8:9363:C400:5867:A606:6EC9:FCFC (talk) 17:47, 17 November 2024 (UTC)

    how can I report a website powered by mediawiki

    <redacted>

    this mod page contains pedophilic mods for the sims 4, including beastiality, toddlers, and children, i've never encountered something like this before and i am not sure how to report it but surely this cannot be allowed?? 104.32.115.44 (talk) 18:43, 16 November 2024 (UTC)

    Report it to your local police, obviously. Clump (talk) 19:10, 16 November 2024 (UTC)
    MediaWiki is open-source software, which means that is can be freely used by anyone for any purpose, and the developers of the software have no control over it. There's nothing anyone here can do about it. * Pppery * it has begun 21:38, 16 November 2024 (UTC)

    Play success noise when tick box

    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.


    This is really low priority but does anybody know how to play a sound file when you tick a checkbox? It's a Page Forms form but I'm asking here as it seems more of a generic question. I tried some Javascript but something in MediaWiki seems to stop it working. Thanks. Jonathan3 (talk) 22:20, 16 November 2024 (UTC)

    I should add that I used Extension:Widgets, which seemed to add the JavaScript to the page all right, but it just didn't work. Jonathan3 (talk) 00:10, 17 November 2024 (UTC)
    Do you have a link to what you tried? Bawolff (talk) 09:32, 18 November 2024 (UTC)
    I've tried so many things that I don't know where to start. I've got it working on a plain HTML document but not within MediaWiki. document.querySelector("input[type='checkbox']") returns null (as an example what I can't get to work). I think if I could get querySelector or anything similar to work I'd be cooking on gas again. Jonathan3 (talk) 00:34, 19 November 2024 (UTC)
    Did you try running it after the page finished loading? Take a look at How to make JavaScript execute after page load? on StackOverflow. Hyperwombat (talk) 19:31, 19 November 2024 (UTC)
    I'll look into that. Thank you very much. Though it's not an external script so the "defer" parameter doesn't help. Maybe some of the rest of that page will help.
    The odd thing is that the JavaScript works fine on a plain (non-MW) page, Widgets adds it to the page fine (as usual), but just this time it's not working.
    I should add that an "alert" within the script tag works fine, so the JS is loading and executing. Jonathan3 (talk) 21:44, 19 November 2024 (UTC)
    It all works fine when I just use MediaWiki:Common.js! I tried that in the first place and should have persisted instead of trying Widgets! Sorry for the trouble. Jonathan3 (talk) 22:22, 19 November 2024 (UTC)
    The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

    How to remove unused languages

    Dear all,

    I run a small private Wiki for my personal use. As the "languages/i18n/" directory is one of the biggest and I need to spare some disk space, I'd like to remove all languages but mine.

    What's the best way to do that?

    Can I just remove directories with unused languages?

    Should I expect any problem at the next Mediawiki update?

    Thanks

    Ciao,

    Max Mpolito1969 (talk) 23:25, 16 November 2024 (UTC)

    I don't know but wonder about what would happen on the preferences page. There are loads of languages to choose there. I don't know how to remove the options, but noticed this: Manual:$wgLanguageCode#Disable_user_selection_of_language. Jonathan3 (talk) 15:13, 17 November 2024 (UTC)
    Its important that english is still present, as english is used as a fallback for any messages that are missing in the other language. Bawolff (talk) 09:30, 18 November 2024 (UTC)

    Notice and Notification

    Hello how can i add notice and notification icons on top of the site same aa screenshot https://prnt.sc/cV8pbunxRudS Hasktyle554 (talk) 03:35, 17 November 2024 (UTC)

    Install Extension:Echo. – Ammarpad (talk) 07:34, 17 November 2024 (UTC)

    Possible backend dashboards for administrators?

    I am trying to find a way to create a backend dashboard for admins similar to WordPress. Is this possible? If so, how could I create one. Test1234567890987654321 (talk) 10:48, 17 November 2024 (UTC)

    Have a look at Extension:Admin Links. I've never used it but think it's along the lines of what you want. Jonathan3 (talk) 15:08, 17 November 2024 (UTC)

    Missing translation

    We cannot translate the category "Hooks removed in MediaWiki 1.37.0" because this text is not added on Special:Translate of Mediawiki (see any language on Statistiques des groupes de messages — MediaWiki) Mahabarata73 (talk) 15:48, 17 November 2024 (UTC)

    Fixed. * Pppery * it has begun 04:35, 18 November 2024 (UTC)

    salut je me nomme bokoba veroly

    mon compte je n'arrive pas a à me connecté sur un ordinateur

    je ne sais quoi fais je mais mon code mais rien 2C0F:EF58:1602:AF00:C4B:7070:E5E8:28E2 (talk) 16:35, 17 November 2024 (UTC)

    Missing translations

    There is no translation pages for Category:NukeDeletePage extensions — MediaWiki.

    I tried to create a page in french Category:NukeDeletePage extensions/fr — MediaWiki but this page is not linked to the english page and some texts are in English when they should be in French.

    Could someone fix all this ? Mahabarata73 (talk) 17:40, 17 November 2024 (UTC)

    How to customize the top bar menu location.

    I have been trying to add custom menu items in the top bar location (where discussion, edit source, view history etc are located) but I cannot find a way to do this. Test1234567890987654321 (talk) 18:03, 17 November 2024 (UTC)

    Does Manual:Hooks/SkinTemplateNavigation::Universal help? Bawolff (talk) 09:28, 18 November 2024 (UTC)

    installation/configuration of Cradle

    I cannot find detailed instructions for adding the Cradle package to my local mediawiki. Help!

    The https://github.com/magnusmanske/cradle/blob/master/README.md does not help me -- directory locations are not specified, and I would need more help in creating OAuth cert

    tks. Dewey209 (talk) 23:10, 17 November 2024 (UTC)

    Why did i get banned

    I can’t edit 2605:4A80:F001:60D0:8919:5845:C201:68FC (talk) 00:17, 18 November 2024 (UTC)

    This is a different website from whatever website you are complaining about. You are not banned here, as evidenced by the fact you made this post. You would have to ask at whatever website you are banned at. Bawolff (talk) 09:26, 18 November 2024 (UTC)

    Specify licenses

    Hello everyone!

    I have been trying for some time to specify licenses for uploaded files in my Mediawiki project so that the media viewer also indicates that they have this license. I would be very happy about a general instruction! (I have already tried to create the sources correctly as explained here) Agatnor (talk) 18:02, 18 November 2024 (UTC)

    mediaViewer might depend on extension:CommonsMetadata for license support. Bawolff (talk) 20:48, 19 November 2024 (UTC)
    Thanks for the answer! I have installed the extension, unfortunately it has not solved my problem. What I am missing is the author and license information in the media viewer, as it can be found in “normal” images (bottom left). I honestly don't know how to create something like this correctly, so I would be very happy to receive an answer! Agatnor (talk) 16:46, 28 November 2024 (UTC)

    Adding "Printable version" to Navigation menu

    Is this possible? Currently I have this in MediaWiki:Sidebar. MW 1.39, Timeless theme.

    * navigation
    ** mainpage|mainpage-description
    ** recentchanges-url|recentchanges
    ** randompage-url|randompage
    * SEARCH
    * TOOLBOX
    

    Spiros71 (talk) 21:02, 18 November 2024 (UTC)

    how can a wikipedia user log in

    I am a wikipedia user (contributor) my username comes up as in another wiki, ok, I reset my password and that came to my account, but I get "Can't create local account, username in use" Ali_Kayn 103.51.113.102 (talk) 04:05, 19 November 2024 (UTC)

    Which website are you trying to log into? Bawolff (talk) 20:47, 19 November 2024 (UTC)

    Create tick-boxes that add "incategory:foo" to a seach bar

    Mediawiki allows to make union-category searches, but it requires the user to write "incategory:foo1" "incategory:foo2" etc.

    I would like to make a special page so that user can tick boxes to automatically add "incategory" commands to the search bar.

    What would be the best solution for that ? X4rtqd6941 (talk) 09:24, 19 November 2024 (UTC)

    Why am I not seeing a banner on my page

    I recently installed the WikidataPageBanner extension. I am not sure where to put but when I tried inputting this $wgWPBImage = "address_to_random_image"; in my LocalSettings.php file, nothing happened. I tried to set a banner for a singular page but that also didn't work. Test1234567890987654321 (talk) 17:55, 19 November 2024 (UTC)

    Same. 2605:59C0:30CE:CF10:E1D9:48BC:11B4:5C41 (talk) 18:23, 18 December 2024 (UTC)

    Restore a page

    FuzzyBot deleted a page Category:ApiFeedContributions::feedItem extensions/fr — MediaWiki because empty.

    But there is (was ?) a link.

    Could someone restore this page ? Mahabarata73 (talk) 18:42, 19 November 2024 (UTC)

    Could anybody compare these, or recommend one of them, for MW 1.39?


    SimpleTooltip worked fine in the past, but I wonder whether to use either of the others now.

    I've taken the liberty of pinging some people who I think are involved. Thanks! Jonathan3 (talk) 21:36, 19 November 2024 (UTC)

    I think RegularTooltips is good, but of course I'm biased. I don't know of any problems with it. Yaron Koren (talk) 02:53, 20 November 2024 (UTC)
    Thank you.
    I've just seen from the talk page of SimpleTooltip that there's yet another version, by @Fanra, at https://github.com/fanra/simpletooltip purely to get rid of a deprecation warning in MW1.38. The main extension says 1.39+ so I imagine events have overtaken the original need for the fork.
    On that note, "SimpleTooltip" says 1.39+ but "SimpleTooltip (Universal-Omega)" says 1.38+ so maybe the same applies to this version too.
    If so, then it's going to be a comparison between SimpleTooltip and RegularTooltips! Jonathan3 (talk) 15:00, 20 November 2024 (UTC)
    @Jonathan3: Unfortunately I'm not active in the MediaWiki space anymore because of my new Job. But the SimpleTooltip extension is still maintained by @Planetenxin Fannon (talk) 05:54, 22 November 2024 (UTC)

    Chat

    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.


    So, yall know the social, right? The one on the homepage, it's not working, it says I have to use my email, but I already entered my information and got the email from CON, but, it's still saying I can't use it, even thought put in my info! It's so confusing, so if you can help me, please do so. 47.200.112.5 (talk) 01:13, 20 November 2024 (UTC)

    Welcome to the MediaWiki Support Desk!
    Here you can ask questions about the MediaWiki software and its extensions. Your request seems unrelated. Can you please be more specific? Osnard (talk) 07:11, 20 November 2024 (UTC)
    The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

    Table of content and/or annotation

    Does MediaWiki support any form of internal links?

    I am trying to create:

    1. Table of content for some pages with internal link to anchors inside the page.
    2. Table of annotation with links to parts of the page. 85.187.27.11 (talk) 10:09, 20 November 2024 (UTC)
    Yes, you can link to something on the same page by putting a # sign followed by the section of what you are trying to link to. e.g. If you have ==Section== on a page [[#Section]] will link to it. You can also link to any element that has an id attribute in the same fashion. Bawolff (talk) 11:33, 20 November 2024 (UTC)
    See also help:LinksTheDJ (Not WMF) (talkcontribs) 12:22, 21 November 2024 (UTC)

    Show different versions of a page

    I am trying to create different versions of a page. For example with colored title and without colored title.

    Is it possible to create a links to different versions of the history of a page? 85.187.27.11 (talk) 10:18, 20 November 2024 (UTC)

    Yes, just click "View history" then on any of the revisions listed there. Here's an old version of mediawiki.org's main page: https://www.mediawiki.org/w/index.php?title=MediaWiki&oldid=669341.
    Is this what you mean? Jonathan3 (talk) 15:03, 20 November 2024 (UTC)

    Translations of categories not shown on category pages

    I give an example of this problem :

    look at this page Category:Variables/fr

    In the "Sous-catégories" section, all the links are in English with a "/fr" at the end.

    But if you follow the links (for example the first one "Actions variables/fr") you will see that most of them have been translated.

    It would be a great improvement if this section showed the translated texts rather than the English texts. Mahabarata73 (talk) 15:48, 20 November 2024 (UTC)

    How to change my username?

    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 would like to know how to change my username ApoyoHispano (talk) 16:31, 20 November 2024 (UTC)

    In terms of your own wiki setup, please see Manual:Renameuser.
    On other wikis, such as MediaWiki.org and other Wikimedia projects, see Special:GlobalRenameRequest. A email address may be required to be added in your user preferences for this. Tropicalkitty (talk) 03:28, 21 November 2024 (UTC)
    The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

    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 looking for any autoconfirmed user to fix a page.

    On this page Wikitext - MediaWiki, in the "User documentation" section, the first link arrives on meta.mediawiki.org pages (according to the language) instead of mediawiki.org pages.

    See Help:Wikitext examples - Meta for a better understanding of this issue.

    In another way of speaking :

    <code>[[m:Special:MyLanguage/Help:Wikitext examples|Help:Wikitext examples]]</code>

    should be replaced by :

    <code>[[Special:MyLanguage/Help:Wikitext examples|Help:Wikitext examples]]</code>

    ("m:" needs to be removed). Mahabarata73 (talk) 17:39, 20 November 2024 (UTC)

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

    Colour Wheel Unfound

    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 find the colour wheel anywhere on Inkscape. I have seen on the help panel that it should be below the "fill" section, but nothing there. I don't have any way to change the colours of my design other than by picking the pre selected colour palettes on the bottom of the screen. 2001:8003:E4B9:8400:15F0:D710:905:E999 (talk) 05:33, 22 November 2024 (UTC)

    Hi there! This is the support desk for issues relating to the MediaWiki software. I think you are in the wrong place. ToadetteEdit (talk) 08:03, 22 November 2024 (UTC)
    The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

    MobileFrontend content not showing under headers

    Hi,

    Content is not shown in the mobile version of my wiki under any header. This happens with all skins, including Minerva which is the mobile default. If no headers (only "paragraph" text) are present in the page, then the entire page is shown correctly (including templates or figures). Fabioski01 (talk) 10:44, 22 November 2024 (UTC)

    Undocumented Parameters

    I tried to make an infobox for the first time (copying it from another public domain wiki) but it told me that it had no parameters despite them being in the code. I even made a documentation page with the parameters but it didn't do anything. Can someone with more knowledge about the endless labyrinth of MediaWiki software help? MarinaTheRanger (talk) 14:00, 22 November 2024 (UTC)

    Where is it telling you there is no parameters?
    If this is visual editor is extension:TemplateData set up? Bawolff (talk) 15:55, 22 November 2024 (UTC)
    Oh. It was that simple??
    Aw, man. Thanks. MarinaTheRanger (talk) 15:57, 22 November 2024 (UTC)

    Problem after update

    i have updated my MediaWiki box (Ubuntu 18.04 with MediaWiki 1.35 & PHP 5 to Ubuntu 22.04 with MediaWiki 1.42 & PHP 8.1.2).

    Everything seems to be fine first, but after a while i detected that "Special Pages" does not work any more.

    There is the following error (german version) - can someone help me please with it?


    Interner Fehler

    [cdbf838bee0ee8981cfaa93f] /wiki/index.php?title=Spezial:Spezialseiten Wikimedia\Assert\ParameterAssertionException: Bad value for parameter $title: should not be empty unless namespace is main

    Backtrace:

    from /var/www/html/wiki/vendor/wikimedia/assert/src/Assert.php(72)

    #0 /var/www/html/wiki/includes/title/TitleValue.php(215): Wikimedia\Assert\Assert::parameter()

    #1 /var/www/html/wiki/includes/title/TitleValue.php(169): MediaWiki\Title\TitleValue::assertValidSpec()

    #2 /var/www/html/wiki/includes/specialpage/SpecialPage.php(173): MediaWiki\Title\TitleValue->__construct()

    #3 /var/www/html/wiki/includes/specialpage/SpecialPage.php(156): MediaWiki\SpecialPage\SpecialPage::getTitleValueFor()

    #4 /var/www/html/wiki/includes/specialpage/SpecialPage.php(837): MediaWiki\SpecialPage\SpecialPage::getTitleFor()

    #5 /var/www/html/wiki/includes/specials/SpecialSpecialPages.php(83): MediaWiki\SpecialPage\SpecialPage->getPageTitle()

    #6 /var/www/html/wiki/includes/specials/SpecialSpecialPages.php(53): MediaWiki\Specials\SpecialSpecialPages->getPageGroups()

    #7 /var/www/html/wiki/includes/specialpage/SpecialPage.php(719): MediaWiki\Specials\SpecialSpecialPages->execute()

    #8 /var/www/html/wiki/includes/specialpage/SpecialPageFactory.php(1669): MediaWiki\SpecialPage\SpecialPage->run()

    #9 /var/www/html/wiki/includes/actions/ActionEntryPoint.php(504): MediaWiki\SpecialPage\SpecialPageFactory->executePath()

    #10 /var/www/html/wiki/includes/actions/ActionEntryPoint.php(145): MediaWiki\Actions\ActionEntryPoint->performRequest()

    #11 /var/www/html/wiki/includes/MediaWikiEntryPoint.php(199): MediaWiki\Actions\ActionEntryPoint->execute()

    #12 /var/www/html/wiki/index.php(58): MediaWiki\MediaWikiEntryPoint->run()

    #13 {main}


    Kind regards,

    Jo Jo Air (talk) 15:10, 22 November 2024 (UTC)

    Does it still happen if all extensions are disabled? Bawolff (talk) 15:54, 22 November 2024 (UTC)

    Extension:Popups

    There is a problem with this page and I don't have enough experience to solve it.

    The text begins with "The Popups (known in Special:Version as Previews)".

    But if you follow the link to the Special:Version page, you will see that there is no "Previews" on this page (nor "Popups" by the way).

    I thought of 2 solutions:

    • remove the wrong text on the Extension:Popups page
    • add, in the right table (I don't know which one) of the Special:Version page, the information about this (important) extension.

    I think that the best solution is the second one but I don't know who can do it.

    If you think solution 1 is better, I can make the change if needed. Mahabarata73 (talk) 22:45, 22 November 2024 (UTC)

    Correct, the link is to this wiki's own Special:Version page, and neither is installed here, but it should really be referring to a description of the Special:Version page on the wiki in which that extension is installed. Given the context, perhaps a better link would be to Manual:Developing extensions#Registering features with MediaWiki. Clump (talk) 23:18, 22 November 2024 (UTC)
    Yes, that would be better. But maybe too technical, I think the link should go to a more general help page, for example this one Help:Special_pages#General_information or, on the same page with another anchor, this one Help:Special_pages#V
    But is it a true information ? On Wikipédia, l'encyclopédie libre, Popups/Previews extension is installed (as on all wikipedia websites). But there is no Previews/Popups extension listed on Version — Wikipédia
    Do you know of a wiki where this extension is installed and the Special:Version page of that wiki displays it ? Mahabarata73 (talk) 14:23, 27 November 2024 (UTC)
    It is installed on the french wikipedia---search for "Previews". Clump (talk) 14:54, 27 November 2024 (UTC)
    I found it : on the french wikipedia, Popups extension name is "Aperçus".
    On english wikipedia, name is "Previews"
    On German wikipedia, name is "Popups".
    I just improved the french translation, it closes the topic, thanks for your answers. Mahabarata73 (talk) 14:12, 2 December 2024 (UTC)

    Problem with VisualEditor and infobox

    Every time I edit a portable infobox on visual editor, it automatically adds this code to the front of the page which messes up the format:

    <aside class="portable-infobox noexcerpt pi-background pi-theme-default pi-layout-stacked">

    ==<span style="font-size:16px; line-height:120% !important; text-align: center; display: block; padding-top:2px"><big></big> <span style="font-size:80%;"> </span></span>==

    </aside><span></span>

    <span></span>

    does anyone know how to fix this? Tang Empire (talk) 16:46, 23 November 2024 (UTC)

    Extension:OpenBadges's Special:BadgeView not working.

    I ran the update script but it still says database error...

    /index.php/Special:BadgeView 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 'u585674696_3tRFj.bqyo_openbadges_assertion' doesn't exist

    Function: MediaWiki\Pager\IndexPager::buildQueryInfo (BadgesPager)

    Query: SELECT obl_name,obl_badge_image,assertion.obl_badge_id AS `badge_id`,obl_badge_evidence FROM `bqyo_openbadges_assertion` `assertion`,`bqyo_openbadges_class` `class` WHERE obl_receiver = 1 ORDER BY obl_name LIMIT 51

    Backtrace:

    from /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/libs/rdbms/database/Database.php(1236)

    #0 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/libs/rdbms/database/Database.php(1220): Wikimedia\Rdbms\Database->getQueryException()

    #1 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/libs/rdbms/database/Database.php(1194): Wikimedia\Rdbms\Database->getQueryExceptionAndLog()

    #2 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/libs/rdbms/database/Database.php(679): Wikimedia\Rdbms\Database->reportQueryError()

    #3 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/libs/rdbms/database/Database.php(1383): Wikimedia\Rdbms\Database->query()

    #4 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/libs/rdbms/database/DBConnRef.php(119): Wikimedia\Rdbms\Database->select()

    #5 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/libs/rdbms/database/DBConnRef.php(351): Wikimedia\Rdbms\DBConnRef->__call()

    #6 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/pager/IndexPager.php(467): Wikimedia\Rdbms\DBConnRef->select()

    #7 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/pager/IndexPager.php(289): MediaWiki\Pager\IndexPager->reallyDoQuery()

    #8 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/pager/IndexPager.php(839): MediaWiki\Pager\IndexPager->doQuery()

    #9 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/pager/TablePager.php(308): MediaWiki\Pager\IndexPager->isNavigationBarShown()

    #10 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/extensions/OpenBadges/includes/specials/SpecialBadgeView.php(26): MediaWiki\Pager\TablePager->getNavigationBar()

    #11 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/specialpage/SpecialPage.php(728): SpecialBadgeView->execute()

    #12 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/specialpage/SpecialPageFactory.php(1621): MediaWiki\SpecialPage\SpecialPage->run()

    #13 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/MediaWiki.php(357): MediaWiki\SpecialPage\SpecialPageFactory->executePath()

    #14 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/MediaWiki.php(960): MediaWiki->performRequest()

    #15 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/MediaWiki.php(613): MediaWiki->main()

    #16 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/index.php(50): MediaWiki->run()

    #17 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/index.php(46): wfIndexMain()

    #18 {main}

    I hope I didn't just dox myself, but please help, I've been trying to figure this out for so long and I don't know what to do... Tang Empire (talk) 18:39, 23 November 2024 (UTC)

    You likely installed Extension:OpenBadges. But after installing this, you need to run the maintenance update.php script, to create the database tables this extension needs, and likely this was not done (or it failed for some reason). What does the update script end with ? Can you find a reference to "openbadges" in its output ? The extension also hasn't been updated by it's author for a while, so possibly it simply lost compatibility with the current version of MediaWiki. —TheDJ (Not WMF) (talkcontribs) 13:00, 25 November 2024 (UTC)
    I think it might have just lost compatibility, because I ran the update script 3 times and still it doesn’t work. But I will try again.
    Edit: I tried it again and it still didn't work. I found some refernces to OpenBadges in the script output, here it is.
    ...openbadges_class table already exists.
    Creating openbadges_assertion table...Wikimedia\Rdbms\DBQueryError from line 123 6 of /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/l ibs/rdbms/database/Database.php: Error 1005: Can't create table `u585674696_3tRF j`.`bqyo_openbadges_assertion` (errno: 150 "Foreign key constraint is incorrectl y formed")
    Function: Wikimedia\Rdbms\Database::sourceFile( /home/u585674696/domains/heterod ontosaurus-balls.com/public_html/extensions/OpenBadges/includes/../sql/OpenBadge sAssertion.sql )
    Query: CREATE TABLE `bqyo_openbadges_assertion` (
    obl_id int NOT NULL PRIMARY KEY auto_increment,
    obl_timestamp binary(14) NOT NULL,
    obl_receiver int(10) unsigned NOT NULL REFERENCES user(user_id),
    obl_badge_id int NOT NULL REFERENCES openbadges_class(obl_badge_id),
    obl_badge_evidence varchar(255),
    obl_expiration binary(14)
    ) /*wgDBTableOptions*/ Tang Empire (talk) 03:31, 26 November 2024 (UTC)
    Right. So this is from OpenBadges/sql/OpenBadgesAssertion.sql. It says that the reference to the user table or the reference to the open badges class table is incorrect
    I suspect that in that file, user() and openbadges_class() need to be prefixed with /*_*/ This ensures that MediaWiki will apply the table prefix when doing that table lookup. So I would suggest modifying that file like that, rerun the update.php and then please report back if that works, and then I'll modify that extension with that change. The extension has not seen much support in the last 5 years it seems, so even if the DB update works after this, it might be that other parts are still broken. —TheDJ (Not WMF) (talkcontribs) 10:00, 26 November 2024 (UTC)
    alright, I ran the update script again and this time with modifications, and it said
    ...openbadges_class table already exists.
    Creating openbadges_assertion table...Wikimedia\Rdbms\DBQueryError from line 1236 of /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/libs/rdbms/database/Database.php: Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '
    obl_badge_id int NOT NULL REFERENCES /*openbadges_class(obl_badge_id)*/,
    o...' at line 4
    Function: Wikimedia\Rdbms\Database::sourceFile( /home/u585674696/domains/heterodontosaurus-balls.com/public_html/extensions/OpenBadges/includes/../sql/OpenBadgesAssertion.sql )
    Query: CREATE TABLE `bqyo_openbadges_assertion` (
    obl_id int NOT NULL PRIMARY KEY auto_increment,
    obl_timestamp binary(14) NOT NULL,
    obl_receiver int(10) unsigned NOT NULL REFERENCES /*user(user_id)*/,
    obl_badge_id int NOT NULL REFERENCES /*openbadges_class(obl_badge_id)*/,
    obl_badge_evidence varchar(255),
    obl_expiration binary(14)
    ) /*wgDBTableOptions*/ Tang Empire (talk) 00:22, 27 November 2024 (UTC)
    I said prefix, you wrapped it.
    NOT NULL REFERENCES /*_*/user(user_id),
    NOT NULL REFERENCES /*_*/openbadges_class(obl_badge_id), —TheDJ (Not WMF) (talkcontribs) 09:23, 28 November 2024 (UTC)
    My apologies. Thank you so much, the Special:BadgeView page now works Tang Empire (talk) 15:34, 28 November 2024 (UTC)
    But there is another problem, it seems like the Special:BadgeView page displays all badges no matter if issued to you or not. Maybe it’s because I created these badges before the extension got fixed? Tang Empire (talk) 00:47, 29 November 2024 (UTC)

    Tabs in Special:Preferences not working

    My wiki is up to date and so are the extensions. I cannot for the life of me figure out how to fix this, and it's affecting other users. This has also been affecting certain extensions to where they also won't function correctly.

    The page opens to User Profile, however the Appearance, Edit, and the rest of the tabs are non-functional.

    Any help is appreciated. Meguumin (talk) 00:25, 24 November 2024 (UTC)

    Open your browser's console and look for errors. – Ammarpad (talk) 12:53, 24 November 2024 (UTC)
    This sounds like a component is throwing a Javascript error, which interrupts the setup of some of the other javascript components. Please check your browser console for errors. —TheDJ (Not WMF) (talkcontribs) 12:53, 25 November 2024 (UTC)

    how to create a page on wiki

    how to create a page on wiki Snchechaninbh (talk) 05:45, 24 November 2024 (UTC)

    The fastest way is type in the search box and click on the redlink in the "Create the page..." to open the editing box in order to create the page. ToadetteEdit (talk) 07:06, 24 November 2024 (UTC)

    Attempting to get citations going

    Hey y'all,

    I'm struggling to get the wikipedia citation system going, i've installed all the extensions and dependencies (Scribuntu and TemplateStyles) and imported the "Category:Citation Style 1 templates" category directly from wikipedia (yes, I do need all its functionality).

    Still, Lua is throwing this error every time a formatted citation is attempted to be printed out:

    • Lua error in Module:Citation/CS1/Configuration at line 2083: attempt to index field '?' (a nil value).

    you can also see the traceback an the page directly.

    (e.g., http://psychopragmatics.com/index.php/Template:Cite_journal)

    Is anyone experienced with citations and lua and knows how to fix this?

    Thanks and love! 2001:9E8:9379:5500:EDEB:DAEA:294:EE9D (talk) 15:01, 24 November 2024 (UTC)

    I'm only guessing from a few minutes of curiosity but it looks like you took the module from https://commons.wikimedia.org/wiki/Module:Citation/CS1/Configuration. Line 2083 is for _, limit_t in ipairs (mw.ext.data.get ("CS1/Identifier limits.tab").data) do which I think is https://commons.wikimedia.org/wiki/Data:CS1/Identifier_limits.tab but doesn't exist on your wiki (yet). Jonathan3 (talk) 20:32, 24 November 2024 (UTC)
    Which probably means you don't have a data namespace setup to import Data:CS1/Identifier_limits.tab into. That wouldn't be strange, as data namespace is a pretty rare configuration for most installs. —TheDJ (Not WMF) (talkcontribs) 12:56, 25 November 2024 (UTC)
    I've imported the Configuration:
    wikipedia.org/wiki/Module%3ACitation%2FCS1%2FConfiguration
    (from wikipedia, not from commons.wikipedia).
    I also created the namespace, but I have to idea what to do next.
    Importing Identifier_limits.tab doesn't make much sense to me, (although I tried to do so: http://psychopragmatics.com/index.php/Data:CS1/Identifier_limits.tab) since it is not even on the main wikipedia, where I exported all the other dependencies from. 2A00:20:300E:CEE4:A893:CBA4:105E:25B9 (talk) 11:25, 29 November 2024 (UTC)
    I've missed a JSON dependency (extensions as well as config). Still doesn't work after installing it, though. 2A00:20:300E:CEE4:308E:53EF:14E6:546A (talk) 13:25, 29 November 2024 (UTC)

    How to create a dropdown instead of menu on ULS

    I am trying to create a dropdown of languages instead of the large menu that appears when using UniversalLanguageSelector. Is there a way to achieve this? Test1234567890987654321 (talk) 11:28, 25 November 2024 (UTC)

    Missing texts to be translated for Extension:RelatedArticles

    On this page Extension:Articlesconnexes — MediaWiki, you can see at the top that all french translations have been made ("Cette page est une version traduite de la page Extension:RelatedArticles et la traduction est terminée à 100 %.")

    But if you look inside the page, you will see many sections in English : these sections are not on Traduire — MediaWiki.

    Could you add all the missing sections ? Mahabarata73 (talk) 19:22, 25 November 2024 (UTC)

    Hello ! Anybody can say me if there are a way for an automatic search for red links ? It's possible to create a function for this if it doesn't exist ?


    When I see an article with red links. If there are articles about the topic available in another language than English.

    I create an interlanguage link.


    I'm unable to translate into English because I'm not a native speaker of this language and my translations could be too literal.

    I can translate from English into French but not the reverse.


    Therefore , if such function exist. It can help me and others for my tasks. Anatole-berthe (talk) 02:29, 26 November 2024 (UTC)

    Special:WantedPagesTheDJ (Not WMF) (talkcontribs) 10:14, 26 November 2024 (UTC)
    You can use Special:WantedPages to get a list of all local redlinks. Osnard (talk) 10:15, 26 November 2024 (UTC)
    Thanks ! The special page is a good idea but it contain only the top 500.
    There are not any other possibility ? Anatole-berthe (talk) 04:23, 28 November 2024 (UTC)
    It shows all. If there are more than 500 you need to turn the page. Osnard (talk) 07:20, 28 November 2024 (UTC)
    I found the function to turn the page. We can only advance per 500 if I'm right.
    Ex : I can go to 500-1000 and 1000-1500 but not 500-1500 or 1000-2000. Anatole-berthe (talk) 13:32, 28 November 2024 (UTC)
    I turned the pages. I can go max to the 5000th result and not beyond. Anatole-berthe (talk) 13:36, 28 November 2024 (UTC)
    If you want it in a different form, you need to write a tool against the replica databases on toolforge and optimize performance to suit your specific usecase. —TheDJ (Not WMF) (talkcontribs) 21:18, 28 November 2024 (UTC)
    I'm far to be a good developper. I know nearly nothing about programming.
    Which programming language can I use for that ? Anatole-berthe (talk) 23:05, 28 November 2024 (UTC)

    Help:Redirects

    This page begins (second line) with a text in English not between ‎<translate> tags so we cannnot translate it in other languages.

    Could someone with the appropriate rights (the English page is protected) fixes it ? Mahabarata73 (talk) 16:59, 26 November 2024 (UTC)

    Done Bawolff (talk) 03:21, 2 December 2024 (UTC)

    Access to specific pages for specific users.

    Given the wiki at https://easthope.ca/FOTGISdirectors .

    MediaWiki 1.41.4 PHP 7.4.33 (litespeed) ICU 63.1 MariaDB 10.5.25-MariaDB-cll-lve-log

    Some pages have sensitive data. Refer to these as "financial" pages.

    Some users should have edit access to financial pages. Edit includes read as a special case.

    All other users should not be able to read financial pages. Reading is a precondition of editing. Therefore "not read" implies "not edit".

    Can this be arranged? If so, how?

    Thanks, ... Peter E. PeterEasthope (talk) 17:05, 26 November 2024 (UTC)

    I would reccomend using 2 separate wikis for that usecase. Mediawiki does not work well with complex read access control. Bawolff (talk) 01:43, 27 November 2024 (UTC)
    Thanks Bawolff. I'll create a "financial" wiki. ... P. PeterEasthope (talk) 17:40, 27 November 2024 (UTC)

    Help:Tables

    In this page, in the section Help:Tables#Note_about_large_tables_(noresize_class), the title is between ‎<translate> tags but not the text after this title which means we cannot translate it.

    Some items of the table (after this text) could also be translated if someone adds the same tags.

    Could someone with the appropriate rights (the page is protected) fixes that ? Mahabarata73 (talk) 17:30, 26 November 2024 (UTC)

    Done Bawolff (talk) 03:21, 2 December 2024 (UTC)
    Thanks for the first part, but could someone add "translate" tags for the table in this section ? (the title "Shopping List" and all the values: "Areallyreallyreallyreallylongstringwillcauseyourtableto", "Pie", "Buns", etc.)? Mahabarata73 (talk) 14:27, 2 December 2024 (UTC)

    A few days ago I wanted to create a French page for the page . So I created the page .

    But these 2 pages are not linked : on the English page, there is no link to the French page.

    Could someone fixes that ?

    And could someone explains to me how to create a page in another language when the link "Translate this page" is not visible at the top of a page ? Mahabarata73 (talk) 17:50, 26 November 2024 (UTC)

    Please do not create translated versions manually, they indeed will not be properly linked. If the Translate this page link is not there then someone with translationadmin rights first needs to mark it for translation. Help:Extension:Translate/Page translation administration describes the underlying workflow. Clump (talk) 20:59, 26 November 2024 (UTC)
    Sorry : if you look at this Extension:StructuredDiscussions/fr, you will see, in the categories, many red links. I only followed one of them and created the page then, when looking to the English page, saw the missing link with the french page. I was thinking that an automate will fix that. Sorry for my mistake.
    How to fix that ? The link you gave me is very interesting but it is for administrators and I'm not one. Where could I find a translate administrator to ask him to fix my mistake ? I wrote several other topics on this support desk about translation issues, and none have an answer so I suspect it is not the good place. Mahabarata73 (talk) 15:09, 27 November 2024 (UTC)

    2 categories with the same object

    The 2 categories Category:Global Objects variables and Category:Global object variables are clearly the same and should, I think, be merged.

    The first one has only one item but is difficult to fix because it requires special rights (several pages are protected). But it seems better to fix this one rather than the other category with many items.

    I propose :

    • to change the name of the section "Global Objects" on the Manual:Configuration settings - MediaWiki page (protected) into "Global object" (one uppercase to change and a "s" to remove)
    • to improve the Manual:$wgConf page (protected) by changing, in the template SettingSummary, the section tag "Global Objects" into "Global object"
    • fix the Manual:$wgAutoloadLocalClasses page (not protected), either by changing the wrong section tag in the template SettingSummary (currently "Miscellaneous settings" but should be "Global object" according to Manual:Configuration settings - MediaWiki, or fix this previous manual by moving the $wgAutoloadLocalClasses variable from the section "Global object" to the section "Miscellaneous settings"
    • option: improve, if needed, Manual:Global object variables - MediaWiki where the global object $wgConf is not listed and fix inconsistencies between this page and the Manual:Configuration_settings (according to the first manual there are hundred of global variables but the second manual only shows two. According to the first manual all configuration setting variables seems to be global so why to have, in the second manual, a section with only two global variables if all variables on this page are global ?)
    • option (I don't know if an automate will do it): delete all empty Category:Global Objects variables pages (English and translated pages) Mahabarata73 (talk) 13:41, 27 November 2024 (UTC)

    Cannot load editor or preference tabs after update to 1.42.3

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


    I updated from 1.41.3 to 1.42.3 today, with no errors reported by MediaWiki following the update. Viewing the wiki is working fine as far as I can tell, but I'm unable to load either the Visual Editor or the Wikitext Editor; if I go to my preferences page, I also can't switch tab (it loads "User profile", but clicking on any of the others has no effect).

    When going into the browser console, I see this message:

    The resource from “http://10.0.0.19/wiki/load.php?lang=en-gb&modules=startup&only=scripts&raw=1&safemode=1&skin=vector” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).

    as well as a 500 response to the GET request for that URL.

    It appears at least once on all pages; on the preferences page or on edit pages it appears twice. It appears regardless of what skin I have enabled (since preferences won't let me load the "Appearance" tab, I have to change by disabling Vector and switching the default skin in LocalSettings.php), and I have updated my skins to make sure they are the most recent available version.

    When I go to that resource URL, I WAS also getting this error:

    [8214b8572551d262133baaf6] /wiki/load.php?lang=en-gb&modules=startup&only=scripts&raw=1&safemode=1&skin=vector Error: Class "ResourceLoaderSkinModule" not found Backtrace: from /home/murdo/.murdomaclachlan/wiki/mediawiki/includes/ResourceLoader/ResourceLoader.php(417)

    #0 /home/murdo/.murdomaclachlan/wiki/mediawiki/includes/ResourceLoader/ResourceLoader.php(453): MediaWiki\ResourceLoader\ResourceLoader->getModule()
    #1 /home/murdo/.murdomaclachlan/wiki/mediawiki/includes/ResourceLoader/StartUpModule.php(170): MediaWiki\ResourceLoader\ResourceLoader->preloadModuleInfo()
    #2 /home/murdo/.murdomaclachlan/wiki/mediawiki/includes/ResourceLoader/StartUpModule.php(425): MediaWiki\ResourceLoader\StartUpModule->getModuleRegistrations()
    #3 /home/murdo/.murdomaclachlan/wiki/mediawiki/includes/ResourceLoader/Module.php(839): MediaWiki\ResourceLoader\StartUpModule->getScript()
    #4 /home/murdo/.murdomaclachlan/wiki/mediawiki/includes/ResourceLoader/Module.php(808): MediaWiki\ResourceLoader\Module->buildContent()
    #5 /home/murdo/.murdomaclachlan/wiki/mediawiki/includes/ResourceLoader/Module.php(951): MediaWiki\ResourceLoader\Module->getModuleContent()
    #6 /home/murdo/.murdomaclachlan/wiki/mediawiki/includes/ResourceLoader/ResourceLoader.php(686): MediaWiki\ResourceLoader\Module->getVersionHash()
    #7 /home/murdo/.murdomaclachlan/wiki/mediawiki/includes/ResourceLoader/ResourceLoader.php(786): MediaWiki\ResourceLoader\ResourceLoader->getCombinedVersion()
    #8 /home/murdo/.murdomaclachlan/wiki/mediawiki/includes/ResourceLoader/ResourceLoaderEntryPoint.php(53): MediaWiki\ResourceLoader\ResourceLoader->respond()
    #9 /home/murdo/.murdomaclachlan/wiki/mediawiki/includes/MediaWikiEntryPoint.php(199): MediaWiki\ResourceLoader\ResourceLoaderEntryPoint->execute()
    #10 /home/murdo/.murdomaclachlan/wiki/mediawiki/load.php(42): MediaWiki\MediaWikiEntryPoint->run()
    #11 {main}
    

    From my understanding ResourceLoaderSkinModule was removed in an earlier version, so I have no idea what was trying to access it.

    However, I'm now getting the same error but for a "ResourceLoaderOOUIIconPackModule" class instead. When I go looking for this, it seems to be a file that should be under "includes/ResourceLoader/", but this file simply doesn't exist on my system. I even re-downloaded the 1.42.3 files to double check and it's not there. As far as I can tell it too has been removed. MollyMaclachlan (talk) 16:56, 28 November 2024 (UTC)

    Update: I can get into the Wikitext editor if I click the "reload the page" link on it. Hadn't tried that yet because I thought it worked the same as manually reloading the page, but evidently not. I still cannot access the Visual Editor or the other preferences tabs. MollyMaclachlan (talk) 17:12, 28 November 2024 (UTC)
    Do you have any extensions from an earlier version? Try disabling all extensions and reenable them one-by-one to see which is at fault. Bawolff (talk) 01:43, 29 November 2024 (UTC)
    Yep, looks like it was an outdated version of the Popups extension causing it. Thank you! MollyMaclachlan (talk) 12:27, 29 November 2024 (UTC)
    The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

    I installed Extension:CentralAuth, facing error

    Error to logging in.

    MediaWiki internal error.

    Original exception: [39270e243b909456d43524e7] 2024-11-29 09:42:13: Fatal exception of type "Wikimedia\Rdbms\DBQueryError"

    Exception caught inside exception handler.

    Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information. Centella Gold (talk) 09:42, 29 November 2024 (UTC)

    I suggest you set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information. Rich Farmbrough (talk) 10:52, 30 November 2024 (UTC)

    Account deletion

    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 recently created my Wiki page; however, contributor named William Graham has requested for speedy deletion for no good reason!

    May I know why?

    If anyone can advise on how to perfectly create my Wiki page so that it remains visible then I will be grateful.

    Please help! Dr. Mojibul Haque (talk) 16:26, 30 November 2024 (UTC)

    what do you mean? Dr. Mojibul Haque (talk) 18:08, 30 November 2024 (UTC)
    There's a big red banner explaining why. Clump (talk) 19:41, 30 November 2024 (UTC)
    The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.