Jump to content

Project:Support desk/Flow/2021/11

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


How to upload an epub file

I am trying to upload some epub files to a private media wiki server. I have added the

$wgFileExtensions[] = 'epub';

to LocalSettings.php. When I try to upload I get the error:


File extension ".epub" does not match the detected MIME type of the file (application/zip).


Even when I select "Ignore any warnings" it refused to upload.


What can I do?

Lbundle (talk) 00:51, 1 November 2021 (UTC)

You could set Manual:$wgVerifyMimeType to false. This has security implications but should be fine if private server.
Personally i think we should be less strict with zip files. JAR is no longer a threat. Bawolff (talk) 08:52, 1 November 2021 (UTC)

How to change fonts on Sindhi Wikipedia for entire site

Hi, the current fonts on Sindhi Wikipedia are not good enough, so I want to change the fonts on Sindhi Wikipedia for entire site, how can I do that.? JogiAsad (talk) 15:02, 1 November 2021 (UTC)

Welcome to the support desk for the MediaWiki software. For Wikimedia sites, please see meta:Requesting_wiki_configuration_changes. Also make sure to explain what exactly the problem is, on which URLs, which text, with which browser(s) on which operating systems. Thanks. Malyacko (talk) 15:08, 1 November 2021 (UTC)
Thanks JogiAsad (talk) 15:43, 1 November 2021 (UTC)
You can change them by editing MediaWiki,:common.css if you are an admin Bawolff (talk) 19:34, 1 November 2021 (UTC)
suppose if I ask local interface admin to do this
font-family: Georgia, "Calibri", Times, "sans-serif";
be changed to
font-family: Georgia, "MB Sindhi Sahat ", MB Sindhi Sahat , "MB Sindhi Sahat ";
??? JogiAsad (talk) 05:43, 2 November 2021 (UTC)
No, see phab:T294773. Malyacko (talk) 13:56, 2 November 2021 (UTC)
I am admin but I can't edit it, bcz this right is given to local Interface admin, this right should also be given to general admin bcz sometimes local admin are not active on small wikis, in there absence if this right may be given to admins also then they can fix some issues. JogiAsad (talk) 05:40, 2 November 2021 (UTC)
No, see "Requests" on meta:Interface administrators what to do instead. Malyacko (talk) 13:57, 2 November 2021 (UTC)

PluggableAuth extension how to receive $_POST hidden data without show form to user?

Hi, I created a simple authentication extension that works in conjunction with PluggableAuth for the user to login automatically. Currently, I need two parameters: a username and a token. These parameters are generated by an external system that sends the data by hidden input. I can get the url data and authenticate correctly. But for security reasons I want to pass this data via $_POST and not via $_GET. But I cannot receive this data and store it in the session so that I can retrieve it in my authentication class. Basically, the user receives a link from a wiki page and Pluggableauth does the checks. But I can't find what code I can use to save the post in the session and retrieve it later. Does anyone have any examples of how to do this? Thanks!


Edit2: For example, the user accesses the wiki only through an ERP software that directs them to a certain page, already sending the username and a verification token via $_POST, without any user interaction during login/authentication. An example page would be www.minhawiki.com/something. However I can't get the $_POST data as the original landing page www.minhawiki.com/something is not loaded as PluggableAuth directs first to Special:UserLogin, then to PluggableAuthLogin and then to the authentication extension. In none of these steps can I capture the $_POST data. I can only access the data if the system sends it directly to Special:UserLogin but that way I can't authenticate the user or redirect to the landing page

@Cindy.cicalese BarbaRuivaRK (talk) 19:39, 1 November 2021 (UTC)

Did you try using AuthManager::setAuthenticationSessionData()/AuthManager::getAuthenticationSessionData()? You can see an example at https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/OpenIDConnect/+/refs/heads/master/src/OpenIDConnect.php#228. Cindy.cicalese (talk) 13:40, 3 November 2021 (UTC)
Yes, I tried and I can't get the values ​​coming from $_POST. The idea is that there is no user interaction. It is to be a system integrated with an ERP where it is responsible for sending the username and a token via $_POST to a wiki page and then the authentication system checks the data and then redirects to the original landing page BarbaRuivaRK (talk) 14:26, 3 November 2021 (UTC)

PortableInfoboxes is unusuable, can this error be solved?

When trying to edit any page using the PortableInfoboxes extension, I get this error:

Call to undefined method ObjectCache::getMainWANInstance()

It would seem that this means the extension is accessing something that is no longer supported, and that many others have had this issue with no helpful responses. However, I have been able to see that this extension works for some people... how do I fix this? I have not been able to find any way to deal with this issue, which prevents me from making any edits to the wiki. 2600:1700:629A:E080:4DA6:4F79:E722:618C (talk) 22:13, 1 November 2021 (UTC)

What is Extension:PortableInfoboxes? Please provide a link and see "Post a new question" in the sidebar. Thanks. Malyacko (talk) 01:09, 2 November 2021 (UTC)
I guess this is probably about Extension:PortableInfobox.
OP: what version of MediaWiki are you using? You say that many others have had this issue with no helpful responses — could you link to those discussions? Sam Wilson 01:57, 2 November 2021 (UTC)
I am using version 1.36.2 I believe? It should work with the extension.
Here are some of the topics ive been able to find:
Project:Support desk/Flow/2021/07#h-PortableInfoboxes_Extension_error-2021-07-01T03:59:00.000Z
Extension talk:PortableInfobox#h-Fatal_exception_of_type_"Error"-2021-05-11T19:38:00.000Z
Usually the response is that other people using the extension have had no issues, and it hasn't been very helpful in my search. 2600:1700:629A:E080:CC19:98B0:78B6:E537 (talk) 22:21, 2 November 2021 (UTC)
I think it should be using \MediaWiki\MediaWikiServices::getInstance()->getMainWANObjectCache() instead
Have you tried filing a bug at https://github.com/lkucharczyk/mediawiki-PortableInfobox/issues i dont see anyone else complaining about this issue Bawolff (talk) 02:21, 2 November 2021 (UTC)
I haven't I guess it seemed like a long shot since some of the issues have gone a few months without response. I should definitely try it though... 2600:1700:629A:E080:CC19:98B0:78B6:E537 (talk) 22:22, 2 November 2021 (UTC)

Help please! I just broke my wiki, trying to change Manual:$wgPasswordResetRoutes

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 wanted to change my tiny personal wiki (that ONLY I have access to). I wanted to remove the Login / Reset password based on Username, so folks couldn't gork me for fun.

I found this page: https://www.mediawiki.org/wiki/Manual:$wgPasswordResetRoutes

And as a result I added this to my LocalSettings.php:

$wgPasswordResetRoutes
[
'username' => false,
'email' => true,
]

But immediately got this error:

Parse error: syntax error, unexpected '=>' (T_DOUBLE_ARROW), expecting ']' in [redacted]/LocalSettings.php on line 222


I'm a novice to MediaWiki operation. I've tried lots of variations on the above, INCLUDING COMMENTING IT ALL OUT, and it STILL won't let me in.

I get the impression that the error lodged something in the wiki's database (or whatever) that's now effectively broken it.

I have MediaWiki v. 1.35.1

Help please?? I can't get into my wiki at all now.

Edit P.S.: Can some one tell me the right way to phrase $wgPasswordResetRoutes so it doesn't gork my wiki?

Why would there be a www.mediawiki.org/wiki/Manual page whose instructions immediately and permanently crash a wiki?

Thanks! RedKnight7 (talk) 15:15, 2 November 2021 (UTC)

You have a syntaxerror in your LocalSettings.php
In the directory, you can use php -l LocalSettings.php to check for syntaxerrors on your settings file. Make sure you don't have syntax errors. —TheDJ (Not WMF) (talkcontribs) 15:34, 2 November 2021 (UTC)
Did you read what I said? Even commenting it out or removing it - restoring back to what it was before I touched it - still gives the exact same error. Yikes it's scary! RedKnight7 (talk) 15:42, 2 November 2021 (UTC)
Check you've saved the file after editing it :-) Jonathan3 (talk) 16:12, 2 November 2021 (UTC)
Thanks, btdt, laugh... but yes. I even triple-checked by downloading the updated file (where I commented out the new code that breaks my wiki) to my PC. I confirmed that it is no longer there.
And my wiki is still completely broken. The entire site or trying to access any page on it gives that error. Even though the offending command is completely gone from LocalSettings.php now.
How can this be? RedKnight7 (talk) 16:16, 2 November 2021 (UTC)
Maybe type it in again but put the equals sign between the variable name and the [ ] - that missing equals is likely what caused the error.
Maybe type some obvious nonsense earlier in the file to see whether it causes an error :-) Maybe somehow you have two MediaWiki installations and are editing the wrong one. Jonathan3 (talk) 16:25, 2 November 2021 (UTC)
Also a semicolon after the ] Jonathan3 (talk) 16:26, 2 November 2021 (UTC)
Maybe you've not successfully commented it out at all. If you use an editor like Notepad++ it'll make it easy to see using different text colours. Though you did say that completely removing it didn't stop the same error appearing... Jonathan3 (talk) 16:28, 2 November 2021 (UTC)
Thanks for trying to help but gosh, isn't it clear that it's not my LocalSettings.php any more? At this point I've completely commented it out, I've completely stripped it out, I even replaced LS.php with a backup copy from February. And I STILL get the same error about a double-arrow at line 222, which doesn't even exist in that file any more. And No, there isn't a second wiki on my site. The only change I did was to the LS.php, which I've since reversed.
Can we cut to the chase please -
How can an LS.php entirely break a wiki's php such that it doesn't even matter what the LS.php is any more? How can it be fixed? Please god don't say re-install everything from top to bottom. I have no idea how to do that.
This is so saddening. It's already so much work and hunting and pecking to try to improve even the smallest thing, like that Password Reset idea. And then I apparently kill my wiki by following simple instructions on a MediaWiki page. RedKnight7 (talk) 17:06, 2 November 2021 (UTC)
I always blame caching when I can't understand something. Maybe somehow you're getting an old version? Maybe try on a different device that's never seen the error message. Jonathan3 (talk) 17:16, 2 November 2021 (UTC)
It's located on a SiteGround server. Were you thinking it was on my PC or something? I've tried hitting Control-F5 (I'm using Win10) which would rightly upload an old image I re-uploaded. But it doesn't help here. FWIW using your idea, I tried logging on with my phone (which I haven't done in months). It too gives the error. RedKnight7 (talk) 17:49, 2 November 2021 (UTC)
News flash: I am finding that if I access my wiki through specific pages, it does work just fine. E.g. [site]/wiki/index.php?title=[a specific page]
Ten out of 12 of these work just fine, if addressed directly, or via links already on my pages. And I can edit them just fine. (That's 10 out of 12 of a recent project page and subpages. I haven't checked my dozens of other older pages.)
But [site]/wiki/index.php?title=Main_Page (my home page) still gives the error, and the page I had been working on at the time I edited my LS.php also gives the error, plus one other I haven't touched in a week.
Hmm. RedKnight7 (talk) 18:08, 2 November 2021 (UTC)
Another update: I called my host provider and did what they call a complete backup of everything; the backup was from 12 hours ago (which is fine).
It did not fix the problem!
So I have to wonder if it could be some kind of cache issue. But where? On the host server? On my PC? I've completely closed an opened my browser several times. Also used ^F5. No joy. I don't know how the host service caches stuff, or if it even does. RedKnight7 (talk) 18:31, 2 November 2021 (UTC)
Note, for server side frontend caching (e.g. varnish, cloudflare, cloudfront, etc) try bypassing the caching by ending &x=1234 at the end of the url.
This type of caching is usually not on by default (and mw has to be configured special for it to work properly) so that may or may not do anything. Bawolff (talk) 19:14, 2 November 2021 (UTC)
That worked! All the pages that previously gave the error (same as in OP) load okay, with &x=1234 appended.
But if I try to load them yet again without &x=1234, they show the error again. Edit - if I keep reloading them, some are showing okay now without the x=1234.
Could you please say a little more about what level (where) the caches are? Yet I don't know how to permanently flush caches with the error-causing page. Are they just on my host (SiteGround), or spread out all over (third party site caching for ISPs)?
Anyway thanks! - at least now I'm seeing that all is not lost.
And many thanks @Johnathan3 again for trying to hold my hand. Isn't it so weird that the erroneous page would persist as the cached one?? This probably explains how at first, many stayed broke no matter what I did. Then a bunch got better, though I effectively didn't do anything, at least at the point in time they got better (I had fixed LS.php much earlier). And now almost all of them seem okay (fingers crossed). RedKnight7 (talk) 19:34, 2 November 2021 (UTC)
So its most likely your host (caching proxy middle boxes near the client used to be a thing in like the 90s, but they are extremely rare now). You can verify by checking if the site is broken on multiple computers using different internet connections.
Most hosts have this sort of thing as an opt-in feature, as frontend caches can sometimes subtley break things.
Typically the cached entries expire after some time. There is usually a way to manually clear (purge) but it varries depending on the product involved. Sometimes you can use an http purge request (e.g. from linux/mac command line:
curl 'https://url.to.my.site.com/index.php?title=...' -X PURGE
but that doesn't always work . Bawolff (talk) 01:15, 3 November 2021 (UTC)
Ok, lets take a step back.
What is the current error message you are getting? Is it the same as the original one?
What is the current contents of your LocalSettings.php? Can you put the entire thing (redacting any passwords or secret key variables) on to a pastebin so we can see it?
If there are pages that work, and you can edit those pages (not just view) and have the edits show up, then it is some sort of caching issue and not LocalSettings.php
If you can, linking to your wiki might also be helpful. Bawolff (talk) 19:10, 2 November 2021 (UTC)
I searched for "Siteground aggressive caching" and there's some information here: https://www.siteground.com/kb/siteground-dynamic-caching-configuration/ "Our Dynamic caching is a full-page caching mechanism powered by NGINX that’s enabled and running by default on all SiteGround servers. Applications that send the appropriate headers to allow caching will achieve unbeatable website loading speed. ... After this initial request, the SiteGround Dynamic Cache will store your page content in the server’s memory and subsequent requests to the same pages will be handled directly from it as shown ..." I don't know whether it's relevant but it might be a start. Jonathan3 (talk) 22:49, 2 November 2021 (UTC)
Most likely what's happening is by default mediawiki sends the cache-control header to prevent caching from happening (Unless $wgUseCdn is set, the default is to set no cache headers). However when LocalSettings.php has an error, no header is set at all. I'm going to guess that siteground interprets no header at all to mean, "it is ok to cache".
Usually these type of systems also refuse to cache 500 status code responses. Maybe siteground doesn't follow that convention either. Bawolff (talk) 04:35, 3 November 2021 (UTC)
Hey Bawolff, am I understanding correctly - if my MW is working properly, then any time I update a page, it is refreshed in their cache as a matter of course ("automatically")?
IOW it was a problem with the gorked LS.php and MW not running at all that caused it to not refresh the cache... which led to my "apparently-systemic" crash.
That sound right? It would take a load off my mind to know that this is true.
I wordsmith and do lots of little edits, and haven't noticed anything not immediately updating (when MW is working okay). RedKnight7 (talk) 15:50, 4 November 2021 (UTC)
Thank you! I would not have thought to search on that. Obviously it's suspect. At least now I what to look for ... and look out for. I'll call them about it. RedKnight7 (talk) 23:12, 2 November 2021 (UTC)
I only searched using the word "aggressive" as I thought it might turn up some complaints :-) Jonathan3 (talk) 22:15, 3 November 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

"permissiondenied" on wikimedia 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.


if this is not the right place to ask this, tell me, I'll delete it.

I am using the mediawiki api to upload a file. I am sending a mutlipart POST request to

   https://commons.wikimedia.org/w/api.php?format=json&action=upload&filename=xxx

I am using oAuth2 , so in the header I include my `Autherzation: Bearer accessToken123` and in the body I include my CSRF token, as well as my multipart file, all as per documentation.

However, the response I get from the server is the following:

 "error": {
   "code": "permissiondenied",
   "info": "The action you have requested is limited to users in one of the groups: *, Users.",
   "*": "See https://commons.wikimedia.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes."
 },
 "servedby": "mw1448"

This would be quite self-explainatory by itself, however when I check my rights/groups with

   https://commons.wikimedia.org/w/rest.php/oauth2/resource/profile

I get the following:

"sub":xxxx,"username":"xxxxx","editcount":7,"confirmed_email":true,"blocked":false,"registered":"xxxx", "groups":["*","user","autoconfirmed"], "rights":["read","writeapi","viewmyprivateinfo","abusefilter-view","abusefilter-log","upload","upload_by_url","reupload-own","purge","reupload","autoconfirmed","editsemiprotected","skipcaptcha","abusefilter-log-detail","transcode-reset"], "grants":["basic","uploadfile","uploadeditmovefile","privateinfo"],"realname":"","email":"xxxx"

As you can see I am both a part of the required groups and also have the neccessairy `upload` right. The error message is quite clear, so I don't know what I am missing. It is not the CSRF token or access token, supplying these wrong results in a different error message. Any help is appreciated. UnderwhelmingToaster (talk) 09:03, 3 November 2021 (UTC)

Do you have edit and upload grants configured for your oauth app config. Bawolff (talk) 16:33, 3 November 2021 (UTC)
@Bawolff If i view the key under meta.wikimedia.org/wiki/Special:OAuthConsumerRegistration/list, the Applicable grants are:
  • Interact with media
Upload new files; Upload, replace, and move files
  • Access private data about you
Access private information
Is this not sufficient? UnderwhelmingToaster (talk) 08:01, 8 November 2021 (UTC)
You might need "Create, edit, and move pages" since uploading an image involves creating a new page. Bawolff (talk) 10:31, 8 November 2021 (UTC)
This was indeed the problem, thanks :) UnderwhelmingToaster (talk) 11:01, 9 November 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

In which file drop down field logic is mentioned for mediawiki

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.


In which file drop down field logic is mentioned for mediawiki ?


In our case, the drop down field is 'Product Version'. We want to load the product versions from one specific folder locations.

F.e

Navigation\mediawiki\


in the above path, we have created the below folders.

  • V1
  • V2

We want to load such folder names as DROP down field value. How can we populate such Drop dwon field? in which fie, we need to write the logic? AshwiniUpasani (talk) 09:16, 3 November 2021 (UTC)

@AshwiniUpasani Please stop asking the same thing again and again. Instead, please reply to answers. See Project:Support desk/Flow/2021/10#h-In_mediawiki_page,_how_the_drop_dwon_get_populated_having_product_versions_?-2021-10-29T08:38:00.000Z and Project:Support desk/Flow/2021/10#h-Drop_down_list_for_MediaWiki_Page-2021-10-29T08:48:00.000Z. Malyacko (talk) 09:44, 3 November 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Error updating Postgres database to MediaWiki 1.37

MediaWiki Version 1.36.2 > 1.37 beta

Debian 10.11, Postgres 11.13, PHP 7.3

I'm encountering error when upgrade script tries to update database to new version using web interface:

Changing column type of 'watchlist.wl_namespace' from 'integer' to 'INT'

An error occurred:

Error 23505: Error:  can not create unique index "wl_user_namespace_title"

DETAIL:  Key (wl_namespace, wl_title, wl_user)=(0, Parijata_-_liść1.jpg, 4) is duplicated.

Function: PostgresUpdater::changeField

Query: ALTER TABLE "watchlist" ALTER wl_namespace TYPE INT USING 0

Of course it's duplicated because there are similar rows which differ in wl_namespace only, so when script tries to set it to zero an error occures.

Could you give me an idea of any workaround, please? MarcinKol (talk) 15:21, 3 November 2021 (UTC)

I would suggest filing a bug at phabricator for this one. Bawolff (talk) 03:47, 4 November 2021 (UTC)
Same here. Upgrade from Version 1.35.1 to 1.36.2. Database PostgreSQL 12 PHP 7.4. Did you write a bugreport? 2003:C9:9F20:A00:5E87:9CFF:FE93:E24D (talk) 15:27, 18 November 2021 (UTC)
Found! T286779 works for me. Thanks! 2003:C9:9F20:A00:5E87:9CFF:FE93:E24D (talk) 18:05, 18 November 2021 (UTC)

Text-overflow:ellipsis and no-wrap for tables

In my case, the first few letters in the table cells are often enough for the reader, so I want to truncate the columns when needed to fit the screen, along with the cell content using ellipsis ("Abcde...") instead of wrapping the text in multiple lines.

Is there a tool for this function or do I have to apply the necessary CSS to the table (which may require div wraps or additional markup)?

I haven't seen any wiki site using this table style (the full cell content is often important), but is there any practical reason to advise against it?

Here's a GIF illustration (not wiki) of what I'm trying to achieve:

https://gifyu.com/image/ef7H 180.190.110.112 (talk) 18:10, 3 November 2021 (UTC)

I think you can just add the CSS to MediaWiki:Common.css Jonathan3 (talk) 22:13, 3 November 2021 (UTC)

Both password and Reset password not working?

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.


Update / Fix: After @Bawolff's recommend, I googled Manual:How to debug/Login problems and tried logging in using incognito - and it worked. Which told me it was probably my browser's cookies. So I deleted all the cookies in my local Win10 Chrome for my wiki site and voila, no more problem. Thanks everyone!


What the title says. I didn't change my password but my usual one quit working. So I used Reset Password and typed in what it said ... and it still doesn't work. I keep getting a message that it's wrong that inevitably leads to the error message:

There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Please resubmit the form.

Fortunately I'm not panicked because it's my tiny personal wiki that only has two accounts for me. The one with problems is my User account, but the admin account has no issues and can log on okay. (But I do all edits with the User account, so folks won't see the admin username.)

If I try to google this, all I get are a zillion hits about how to reset my password. Can someone point me in the right direction? I'm using MW 1.35.1.

P.S. In case it matters: Yesterday I had problems that I later id'd as due to host-server caching problems, thanks to helpful people here. I have manually flushed the server cache to make sure that's not a problem. RedKnight7 (talk) 18:46, 3 November 2021 (UTC)

I had this once but can't remember how it resolved itself - there are LocalSettings.php cache settings you can change - search for something like "mediawiki session hijack cache error". Jonathan3 (talk) 22:12, 3 November 2021 (UTC)
Thanks, sigh... I commented out everything I tried. I give up for the day:
#See https://www.mediawiki.org/wiki/Project%3ASupport%20desk/Flow/2016/07#h-Login_error_%28session_hijacking_protection%29-2016-07-11T08%3A56%3A00.000Z
#$wgSessionCacheType = CACHE_DB;
#Made no difference, sigh
#11/3/21: Okay re: Login problem, let's try this from https://www.mediawiki.org/wiki/Project%3ASupport%20desk/Flow/2017/08#h-There_seems_to_be_a_problem_with_your_login_session%3B_this_action_has_been_cancel-2017-08-09T16%3A43%3A00.000Z
#$wgCookieSecure = false;
#Nope.
#11/3/21 ok made folder and try this from https://www.mediawiki.org/wiki/Project%3ASupport%20desk/Flow/2010/09#h-%5BRESOLVED%5D_Login_Problem-2010-09-05T02%3A08%3A00.000Z
#session_save_path("temp");
#Nope
#11/3/21 ok try this from https://stackoverflow.com/questions/45575435/mediawiki-login-cancelled-to-prevent-session-hijacking
#$wgMainCacheType = CACHE_MEMCACHED;
#Crashes wiki
RedKnight7 (talk) 23:57, 3 November 2021 (UTC)
Ok, i see you already tried $wgSessionCacheType = CACHE_DB;
That normally fixes the most common cause. If its not that, probably something wrong with how cookies are set. Try looking in browser dev console. Mediawiku debug log may or may not have useful info. Bawolff (talk) 03:46, 4 November 2021 (UTC)
Hi, OMG it WORKED!
I wasn't sure what you were even talking about... what "browser dev console"? The browser on my PC? Something on my SiteGround site tools? Cookies on my PC ... or ones on the host server? I have no idea where any of this would be on the host server, or if there even is such a thing.
So I googled "Mediawiki browser dev console" and the top hit was Manual:How to debug/Login problems. One of the first bullets here was "Does it persist after clearing cookies for the wiki domain? When logging in in incognito mode?"
At which point it hit me... Remember I said I could log in with my Admin account just fine, but not Editor account? Well, I had been logging into the Admin account incognito (Win10 Chrome) so it would not confuse my non-incognito Editor logon. So I tried logging into the Editor account incognito... and it worked!
So then, given what the Manual said, it seemed quite possible that my cookies (on my own PC browser) were causing the problem. So I deleted all cookies associated with my tiny wiki website... and Bam, I can log in just fine! (not incognito) Problem fixed... it was just my local cookies!
Wow this week has been a wringer for me. First on Monday I appear to have completely gorked my wiki due to a simple LocalSettings.php typo... but after hours of frustration, it turns out it wasn't my wiki's problem at all... it was my host's aggressive caching retaining the broke wiki (for up to 12 hours!)... who'd have thought that all my desperate fixes were thereby having zero effect? How is anybody supposed to know this? lol
Then Wednesday I can't log in to my own site. Did I break something trying to deal with the caching problem? So I'm randomly trying crap (shown above) that I have no idea what it is, to fix I know not what. And ultimately, again, it has nothing to do with my actual wiki... it's the cookies on my own PC. What in the heck do they have to do with the logon to a site on a completely separate server? Again, how can this even matter, and how is anybody supposed to know this?
Anyway, you've rescued me twice now, @Bawolff. Seriously, can I send you some cash via PayPal or something? And @Jonathan3 and others here have tried to help mightily. Many thanks for all your aid!
Wow MediaWiki and websites in general can be so obtuse. (And of course it's not just MW's problem; it goes for any web work.) It's as if you have to become fluent in 20 different languages and areas of knowledge to do one thing. Nobody told me that before I decided to make my own tiny website, ha ha.
Edit: I updated the OP to put the solution up top. RedKnight7 (talk) 12:49, 4 November 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Translation tools

When mediawiki is going to get the new tools available in beta in wikipedia ? I am especially interested in the translation tools to help translate the content of my site. Monstr6 (talk) 20:32, 3 November 2021 (UTC)

All of these tools are available. However many of them require extensions to be installed.
Content translation is a bit of a weird one though. Does Content translation/Developers/Setup help? Bawolff (talk) 03:42, 4 November 2021 (UTC)
Thanks for the info ... Maybe I dont know the right repository for all extensions ? Monstr6 (talk) 15:06, 4 November 2021 (UTC)

Error 406 on some sites

Hi, I'm only an end user but suffer from the problem to be unable to edit quite a few of my pages, there's an error 406. Forum: https://organindex.de

Software Version MediaWiki 1.34.1 PHP 7.4.22 (fpm-fcgi) MySQL 5.7.34-37-log ICU 65.1

I even created a list of those faulty pages: https://organindex.de/index.php?title=Kategorie:Defekt

Any clue what's going on here? Thansk! Martin 2A01:598:81BF:CC7E:3A43:290E:591A:4028 (talk) 20:37, 3 November 2021 (UTC)

406 is an unusual error. Assuming it is happening on normal web browsers, i would say server misconfiguration (probably not at the mediawiki layer but at the webserver layer) Bawolff (talk) 03:40, 4 November 2021 (UTC)
Thanks. These error message indeed redirects (here, oh, I triggered the abusefilter here ("linkspam"), please google "easyname+faq+406", also in english). Probably a firewall problem.
But only a few sites are affected, for the majority there is no problem. And the blocking for edits seems to bei inifinite. Is it possible that only "heavy users" (as I am) are affected? What could have lead to this? Too many hits? Is the solution to turn the firewall off? Thanks again. 2A01:598:B9A9:505:1124:2323:6CD4:F43E (talk) 04:54, 4 November 2021 (UTC)
If I look at your list, it seems that all pages that are not editable seem to be page titles with a comma in them, which seems like a likely culprit. There might be a rule somewhere in your web server that is not properly query parameters with comma's in it, for whatever reason. This is very particular to your web server setup and/or hosting platform, so without details on that it's very difficult to say.
I suggest you get my theory for confirmation and then try to work from that, slowly going through each of the layers of your server to then pinpoint the layer that is messing up. —TheDJ (Not WMF) (talkcontribs) 10:42, 4 November 2021 (UTC)
No, the commas are not the culprit, we have them regularly in the titles. But it's of help to know that it is not related to mediawiki but the server config. I also thought that perhaps a faulty backup could have caused this? I see no rule whether a site is affected or not. The problem is I'm not an admin there and so can't investigate further. But I collect your tips for forwarding. Martin 2A01:598:81BA:B9DD:1E45:435:5ED:E4A9 (talk) 11:21, 4 November 2021 (UTC)
Anyone? 89.244.118.114 (talk) 11:59, 9 November 2021 (UTC)
Ah, I just noticed: the problem are linked external sites with PHP (or some other skripts).
E.g.
http[s]://www.euleorgelbau.de/front_content.php?idart=106
but also (afaics)
htt[p]://orgbase.nl/scripts/ogb.exe?database=ob2&%250=2008372&LGE=NL&LIJST=lang (rmeove brackets, I got a linkspam block)
If they are removed all is fine (as it was on creation date!) Is this perhaps a server security feature setting? It has really nothing to do with mediawiki. But I have no clue in this thematics.. Martin 80.187.105.91 (talk) 15:03, 9 November 2021 (UTC)

LDAP Integration.

Hello,

I am trying to setup LDAP auth which will allow only users which belong to a group to be able to login to mediawiki page.


I am new to this and I don't really know if this enough or not for this type of auth.


Please help me out if this conf is ok or what am I missing to make it work.


Thank you!


This s my ldap.jso config:


{

        "ad.local": {

                "connection": {

                        "server": "ad.local",

                        "port": "3268",

                        "user": "CN=MediawikiAuth,OU=Wiki,OU=Users,DC=ad,DC=local",

                        "pass": "test123#",


                        "enctype": "clear",

                        "options": {

                                "LDAP_OPT_DEREF": 1

                        },

                        "basedn": "dc=ad,dc=local",

                        "userbasedn": "dc=ad,dc=local",

                        "groupbasedn": "dc=ad,dc=local",

                        "searchattribute": "samaccountname",

                        "usernameattribute": "samaccountname",

                        "realnameattribute": "displayname",

                        "emailattribute": "mail",

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

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

                },

"authorization": {

"rules": {

"groups": {

"required": { "WIKI" }

                        }

                }

        }

}


and my localsettings.php


// Safe IP or not (for bypassing external login via AD)

$safeIPs = array('127.0.0.1','localhost');

$ipsVars = array('HTTP_X_FORWARDED_FOR','HTTP_X_REAL_IP','REMOTE_ADDR');

foreach ($ipsVars as $ipsVar) {

if (isset($_SERVER[$ipsVar]) && mb_strlen($_SERVER[$ipsVar]) > 3 ) { $wikiRequestIP = $_SERVER[$ipsVar]; break; }

}

$wikiRequestSafe = (isset($wikiRequestIP) && ( in_array($wikiRequestIP,$safeIPs) ));


// Private Wiki. External LDAP login. Default NS requires login.

$wgEmailConfirmToEdit = false;

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

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

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

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

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

$wgBlockDisablesLogin = true;


// Load LDAP Config from JSON

$ldapJsonFile = "/var/www/ldap.json";

$ldapConfig = false;

if (is_file($ldapJsonFile) && is_dir("$IP/extensions/LDAPProvider")) {

  $testJson = @json_decode(file_get_contents($ldapJsonFile),true);

  if (is_array($testJson)) {

#   $ldapConfig = true;

  } else {

    error_log("Found invalid JSON in file: $IP/ldap.json");

  }

}

// Activate Extension

if ( $ldapConfig ) {


  wfLoadExtension( 'PluggableAuth' );

  wfLoadExtension( 'LDAPProvider' );

  wfLoadExtension( 'LDAPAuthentication2' );

  wfLoadExtension( 'LDAPAuthorization' );

  wfLoadExtension( 'LDAPUserInfo' );

  wfLoadExtension( 'LDAPGroups' );


 $LDAPProviderDomainConfigs = $ldapJsonFile;

 $wgPluggableAuth_ButtonLabel = "Log In";


  if ($wikiRequestSafe) { $LDAPAuthentication2AllowLocalLogin = true; }

} Synack99 (talk) 10:44, 4 November 2021 (UTC)

Broken redirects - gateway timeout

{{{text}}}

MW 1.31.15, PHP 7.2 (productive wiki) - also MW 1.35.4 PHP 7.4 (test wiki)

The special page "broken redirects" always used to run veeery long but it finally came to an end and served the results. For a few weeks now we are encountering a gateway timeout after approx. 30-60 seconds (prod) or 300 seconds (test). This is curious because all relevant timeout settings (Apache & PHP) are 30 seconds and never did matter nor did I ever make a change ... Only thing I changed recently was moving from mod_php to php_fpm (which has its own ini file, yes, but uses the same timeouts). Next thing I don't understand, why does it run very much longer in the test wiki ignoring the timeout settings ...

Here at mediawiki.org, the "broken redirects" page shows a cached page. Very good idea! How can I achieve this? 2003:C2:3F22:8200:245E:7224:C646:1623 (talk) 12:13, 4 November 2021 (UTC)

Its related to the size of your wiki.
See manual:$wgMiserMode and manual:updateSpecialPages.php Bawolff (talk) 16:24, 4 November 2021 (UTC)
Excellent! Works. 1000 Thanks! 2003:C2:3F22:8200:BDB0:2F72:D12F:EB85 (talk) 10:29, 8 November 2021 (UTC)

Deleting users

Is there an easy way to delete all inactive users or those who never contributed? I have a wiki which was inactive for 10 years and more than 10K users, most of them are fake/ghosts and never contributed .... Thanks Monstr6 (talk) 15:09, 4 November 2021 (UTC)

Fortunately there is - Manual:removeUnusedAccounts.php. Jonathan3 (talk) 18:12, 4 November 2021 (UTC)

Hey folks, how can I help?

Wanna make the internet a better place. Codylodge (talk) 13:00, 5 November 2021 (UTC)

Hi, How_to_contribute Malyacko (talk) 23:02, 5 November 2021 (UTC)
@Codylodge If you want to contribute on wikipedia then see this VisualEditor ↠Tanbirzx () 19:01, 6 November 2021 (UTC)
@Tanbirzx That's a team project page and not particularly helpful? Malyacko (talk) 11:24, 10 November 2021 (UTC)
@Malyacko Oh i am sorry, that is my mistake. ↠Tanbirzx () 18:36, 10 November 2021 (UTC)
If you're interested in contributing to wikipedia, https://en.wikipedia.org/wiki/Wikipedia:Contributing_to_Wikipedia is probably a much better page than the visual editor page. Bawolff (talk) 00:50, 8 November 2021 (UTC)

Lesson learned: Can't fix a gorked LocalSettings.php; whole wiki hosed? Might only be temporary; host server caching

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, this is a cautionary tale that I, an amateur web dev, hope will help others.

A few days ago I made a typo in my LocalSettings.php (LS.php) that appeared to completely break my wiki. No matter how I tried to fix it - even reverting to a LS.php from 6 months before and even doing a backup of my entire site via a host-server utility - did not appear to fix what was a simple typo. Every page I checked gave the same LS.php error. Here are the gory details if you want to see.

To jump to the end of a long day of hair-pulling: Thanks to @Jonathan3, @TheDJ, and especially @Bawolff, I found that actually my host provider (SiteGround or SG) was using aggressive server caching. Which is to say that when I typo'd my LS.php, the mistake was cached, and future external page calls only returned the broken file. Desperate, I opened a lot of wiki pages to see which ones worked. All this did was serve them with the cached broken page too, since they all use my LS.php.

After some hours, my various pages gradually magically got better, apparently without me doing anything. (I had applied LS.php fix hours before.) This is because the apparently-fixed pages refreshed their cache page over the course of hours.

On to the fixes:

  • Bawolff said try "bypassing the caching by ending &x=1234 at the end of the url.

This type of caching is usually not on by default (and mw has to be configured special for it to work properly) so that may or may not do anything." This worked fine for me and was my first solid clue as to my super-baffling problem. (Experientially it's a real mind bender because you know you fixed the typo - but everything still appears to stay broken!) But &x=1234 is only a bandaid... you still get the cached page if you don't use it. And of course, other people trying to access your site will not know to add &x=1234.

  • Jonathan3 sent me a page about SG using caching. You can search on your host's name and caching or aggressive caching to see if it has it (or just use &x=1234 to see if it fixes it).
  • In SG's Site Tools (modern equivalent of the old cPanel), there's a place to manually flush the cache for my whole site (Speed / Caching / Dynamic Caching / Flush Cache). But of course, this is a hassle to do every time you update a page.
  • Bawolff added relative to LS.php:
Most likely what's happening is by default mediawiki sends the cache-control header to prevent caching from happening (unless $wgUseCdn is set, the default is to set no cache headers). However when LocalSettings.php has an error, no header is set at all. I'm going to guess that siteground interprets no header at all to mean, "it is ok to cache".
Usually these type of systems also refuse to cache 500 status code responses. Maybe siteground doesn't follow that convention either.
Note that this is saying, it's only a problem with LS.php (or some similar "supra Mediawiki" file). IOW when MediaWiki is working correctly, it refreshes the cache for any wiki pages you update. Thus ordinarily you don't have to worry about your host's caching; updated wiki pages will be re-cached. But when the LS.php (or similar uber-file) breaks, you do have to worry about caching. Fixes to LS.php can effectively appear to have no effect.
  • I talked extensively with SG tech support but they were unapologetic. Even when I explained the nightmare it caused to unaware clients, they said caching "is enabled by default because we would like to ensure the websites hosted on our platforms benefit from optimal response time." They have a plug-in called "SG Optimizer" that specifically refreshes any updated pages (nice!) but wouldn't you know it, it's only for WordPress (not MediaWiki). Everybody else has to use clunky all-or-none approaches; there's no way to refresh the cache only for updated pages. Also their Site Tools don't simply let you turn it off (why not??), although I think you can submit a ticket to request it.

So this is just a cautionary tale that can really trip up a novice. For special files like LS.php, caching can keep showing an error that and make your whole site seem to be unable to be fixed. SG's caching can last up to 12 hours!

But it only applies to special files like LS.php. Ordinarily - when MediaWiki is working right - it automatically refreshes cached pages for any wiki page you up date.

I'm sure there are other amateurs like me who get walloped hard by this very perplexing problem. Hope this helps. RedKnight7 (talk) 14:26, 5 November 2021 (UTC)

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

Wikiseo setting

Hello I am new here please I want to make some settings to my wikiseo.

{{#seo:

|title=Your page title
|titlemode=append
|keywords=these,are,your,keywords
|description=Your meta description
|image=Uploaded_file.png
|image_alt=Wiki Logo

}}


Where will I get the file to use in the

image=Uploaded_file.png

Will I upload it on my Wiki site or I will upload it on my Server.

And secondly what will be in the Image alt. Will I just leave it as Wiki Logo Zamaniiiipusu (talk) 09:15, 6 November 2021 (UTC)

Hi, what is "wikiseo"? Please see "Post a new question" in the sidebar first. Malyacko (talk) 14:19, 6 November 2021 (UTC)
I haven't used that extension, but im pretty sure its upload to your wiki. Bawolff (talk) 17:49, 6 November 2021 (UTC)

Wiki title on google

Hello why does my wiki have this on google

Instead of

Mediawiki

It is like this

- mediawiki

https://paste.pics/aab51d683723fae517185fe43da02444 Zamaniiiipusu (talk) 09:21, 6 November 2021 (UTC)

You need to ask Google for this. See also phab:T289634. Malyacko (talk) 14:18, 6 November 2021 (UTC)

can't log in

I'm logged in on Edge. But I tried to log in on Chrome. I know my password. The website said it was the wrong password. I changed my password. I still can't log in. What do I do next? Reluctantspy (talk) 01:54, 7 November 2021 (UTC)

I guess the new password just took awhile. I'm logged in now. had to create a new account with a new name to access this help page.
But now I have a new problem. I have 1 review for my book but it was posted before I sent the books out. How does that happen? And there is no actual review. Just a star rating. Reluctantspy (talk) 02:10, 7 November 2021 (UTC)
I think you're in the wrong place. Note, we are not associated with librarything if that's what you're talking about. Bawolff (talk) 07:50, 7 November 2021 (UTC)

timestamp of the last contribution

Hello,


I would like to know if there is something that displays the timestamp of the last contribution of a user


Thank you 77.152.229.29 (talk) 14:38, 7 November 2021 (UTC)

The bottom of any page in MediaWiki has "Last edited: date, time" —TheDJ (Not WMF) (talkcontribs) 18:06, 7 November 2021 (UTC)
@TheDJ: Thank you very much for this answer but I was looking for a way to display in a text the timestamp of the last contribution of a user for example the timestamp of my last contribution. 77.152.229.29 (talk) 16:43, 8 November 2021 (UTC)
You cannot currently do that, because there is no cache invalidation for that pattern (the rendering page would have to be informed each time the listed editor makes an edit) —TheDJ (Not WMF) (talkcontribs) 19:02, 8 November 2021 (UTC)
Ok, thank you ! 77.152.229.29 (talk) 16:53, 9 November 2021 (UTC)

Configuring LocalSettings: CSS not loading

Yes I know its a common issue but after browsing a few threads I still didn't get it to work. I am not a skilled sysadmin :(


I tried setting up a propper domain name using noip /ddns. Worked fine. Then I tried to change my default index landing page and added a .htaccess file. It did change my landing page but broke my site --> CSS not loading anymore.

Deleting the htaccess file didn't undo the error.


Inspecting the site I get the following error:


Refused to apply style from 'http://eidoswiki.ddns.net/eidosWiki/load.php?lang=en&modules=skins.vector.styles.legacy&only=styles&skin=vector' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

I believe it has to do something with my LocalSettings. I changed the wgServer variable. Any pointers into the right direction are very much appreciated :) Kind regards 2003:C1:F20:F65D:28D4:C742:D930:E1E4 (talk) 18:06, 7 November 2021 (UTC)

It looks like something is still wrong with rewrite rules. Are you sure you fully deleted .htaccess?
http://eidoswiki.ddns.net/eidosWiki/load.php is being redirected to your landing page. It should not be. Bawolff (talk) 00:48, 8 November 2021 (UTC)
I have indeed removed the htaccess file in question. It still does not work.
I changed the $wgServer var back to its ip aka "http----://123.123.123.123". I still have no clue why it is still redirecting tho...
The only other htaccess files I could find were in subdirectories of the wiki root folder (which as far as I know are there by default) 2003:C1:F20:F605:D19E:2FA8:A350:639 (talk) 15:55, 8 November 2021 (UTC)
(Please ignore the extra lines in the link, but I tripped the anti link spam somehow :P) 2003:C1:F20:F605:D19E:2FA8:A350:639 (talk) 15:56, 8 November 2021 (UTC)

Add revision comment after save

Is it possible to add a revision comment (to be seen in page history etc) if none was typed at the time of the edit? Thanks. Jonathan3 (talk) 22:08, 7 November 2021 (UTC)

Not without manual db intervention.
Sometimes people use tags for after the fact annotations. Bawolff (talk) 00:44, 8 November 2021 (UTC)

I have a category which has gone past the 200 mark. My media wiki shows the first 200 pages:

 The following 200 pages are in this category, out of 238 total.

However it shows only the following below that:

(previous page) ()


The "next page" is not showing and I would like to fix it.

I am on media wiki 1.36.1 with PHP 7.45.25 and PostgreSQL 13.4. Also I have Cargo 3.0 installed


Thanks Lbundle (talk) 01:19, 8 November 2021 (UTC)

Try running recountCategories.php (do it one time for each --mode). If that doesn't fix it, run:
updateCollation.php --force Bawolff (talk) 07:33, 8 November 2021 (UTC)
I have tried all the recountCategories and updateCollation and it did not help. The problem seems to be in the code generated:
(previous page) (
                        <a href="/wiki/index.php?title=Category:Books&amp;amp;pagefrom=Lewis+Carroll+in+Numberland%0Alewis+carroll+in+numberland#mw-pages" title="Category:Books"></a>
                        )
It seems to generate the right code, but somehow is missing the "next page" between <a> and </a>. Is my installation faulty?Lbundle (talk) 14:42, 8 November 2021 (UTC)
Oh weird. I have no idea. If the message was missing the output should be different. I guess its some sort of weird bug.
You could try adding &uselang=qqx to end of page to figure out message name, and see what the corresponding mediawiki namespace page is set to Bawolff (talk) 07:28, 10 November 2021 (UTC)
Hi Bawolff,
I have added ?uselang=qqx and the next page link does show up as 'next-page'. Also if I choose French as a language it shows the page link. Anything with a fallback to English seems to fail. I have checked in i18n/en.json for any obvious problems and all the translations seem to be there. This is a mystery.
In the meantime I have $wgCategoryPagingLimit set to 1000 to mitigate the issue for now.
Lbundle (talk) 13:29, 10 November 2021 (UTC)

Using copy of Wikipedia template 'Tlg' on fandom.com yields Lua error

I was trying to implement Wikipedia's 'Template link general' template (and related templates), along with the required modules. Everything went smoothly until I tried using the template, at which point it resulted in this error message: "Lua error in Module:Template_link_general at line 119: attempt to concatenate local 'titlePart' (a nil value).". (When using {{tlc}} as follows: {{tlc|=}}.)

I tried using {{tlg}} and I'm not too sure what the result means in terms of if I've done things right, but it ({{tlg|=}}) yielded: {{'''Template:=/doc'''}} formatted as seen here. This is the name of the page that it was being used on (the template's ({{=}}) documentation page).

I asked on Wikipedia's 'Teahouse' (for a related but not identical issue), Wikipedia's 'Live Help Channel'-thing, and Wikipedia's help desk until someone helpfully pointed out that asking here would probably be a better idea, so here I am!

I should also point out that I'm not entirely sure if I'm using the correct (or at least proper) template for the job. I was really just trying to replicate a style I saw on Wikipedia and it was done using these templates, although I'm not sure what these are actually meant for. So, another solution could be to find a work around to achieve the same effect through a different method? (If that makes even a lick of sense!)

Either way, any help is greatly appreciated!

I would give the name of the wiki but its kinda cringy so I'm hoping I might not need to (though it seems that I will have to) as to not embarrass myself!

Anyway I've rambled enough, so I'll leave it to you experts! - Pigeon <3 Thatgaypigeon (talk) 11:19, 8 November 2021 (UTC)

P.S. Sorry for the bad and unreadable formatting :/ Thatgaypigeon (talk) 11:28, 8 November 2021 (UTC)
Replied at https://en.wikipedia.org/w/index.php?title=Wikipedia:Help_desk&oldid=1054183500#Use_of_'Tlg'_template_on_fandom.com_causes_Lua_error after coming here to see the wrong usage of the templates which wasn't posted to Wikipedia. An unnamed parameter cannot contain an ordinary equals sign. You can write {{tlc|1==}} or {{tlc|{{=}}}}. It's the same with {{tlg}}. PrimeHunter (talk) 15:19, 8 November 2021 (UTC)
Oh, got it. Thank you so much! <3 Thatgaypigeon (talk) 13:14, 9 November 2021 (UTC)

We have users want to link to files directly on the LAN into the wiki pages. Is there any ways to do that? Frizzow (talk) 06:05, 9 November 2021 (UTC)

Help_talk:Links#How_to_link_with_a_local_file?TheDJ (Not WMF) (talkcontribs) 09:35, 9 November 2021 (UTC)

Incorrect or missing CAPTCHA.

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.


https://wikisquare.win/index.php/Watch_Out:_How_wizardofozslot.org_spartacus_Is_Taking_Over_and_What_to_Do_About_It want to create account even answering correct it is sayinh Incorrect or missing CAPTCHA. Suneetrana1989 (talk) 02:51, 10 November 2021 (UTC)

You have to ask site admin of that wiki. We cant help. Bawolff (talk) 07:26, 10 November 2021 (UTC)
ok.Thanks Suneetrana1989 (talk) 07:42, 10 November 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

help with some error

what usually cause this

Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Uses TemplateStyles.tab. Thatnewman (talk) 06:20, 10 November 2021 (UTC)

Its caused by not having extension:JsonConfig (warning, its a bit of a pain to get working) Bawolff (talk) 07:25, 10 November 2021 (UTC)

HElp with index.php

I changed my inde.php to wiki

it was like this before

https://en.wikipedia.org/index.php/Main_Page

and now it is like this

https://en.wikipedia.org/wiki/Main_Page


but the problem is both of them are working...


If you check wikipedia own here https://en.wikipedia.org/index.php/Main_Page it said file not found... How do i set mine to that way??? Thatnewman (talk) 07:13, 10 November 2021 (UTC)

However,
https://en.wikipedia.org/w/index.php/Main_Page is found
You can move index.php to a different place, but its important it still exists somewhere. Bawolff (talk) 07:24, 10 November 2021 (UTC)
How How do I move the file without it causing problem.... Which path do you think i should move it to...On shared hosting Thatnewman (talk) 07:34, 10 November 2021 (UTC)
You need to make sure $wgScriptPath (and possibly htaccess stuff) corresponds to whereever you move it, otherwise you can just move the mediawiki directory. Bawolff (talk) 05:45, 11 November 2021 (UTC)
How do I set up this https://en.wikipedia.org/w/index.php/Main_Page I mean Thatnewman (talk) 07:28, 10 November 2021 (UTC)

Main Page title hide

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 hide my Main Page Title last month ..... today I Imported some template .. now it is back..what can i do? Thatnewman (talk) 07:19, 10 November 2021 (UTC)

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

MediaWiki "broken" - professionel help wanted.

I have been running a Mediawiki for several years. Sadly I have never bothered to acquaint myself with how to back it up or update it. The Wiki cannot access the information in the database, although the database itself seems intact. Help (also payed help) would be gratly appreciated.

Tillman RembertRover (talk) 10:16, 10 November 2021 (UTC)

Hi, please see "Post a new question" in the sidebar. Please share error messages instead of paraphrasing them, and please share where exactly these messages come from, and how you get to conclusions. Thanks a lot! Malyacko (talk) 11:23, 10 November 2021 (UTC)

Migration from Sharepoint to Mediawiki

Hi Team, Is there any migration tool available that will covert from Sharepoint site contents to Mediawiki format? Please suggest valuable solution for the same. Thanks 1.39.78.247 (talk) 10:37, 10 November 2021 (UTC)

Hi Team,
There is a ticket(#2021110810004251) has been raised for the same query. Please help us
Thanks 1.39.78.247 (talk) 10:54, 10 November 2021 (UTC)
(There is no "team", we are communities.) Ticket where (URL)? Please provide sufficient context - thanks. Malyacko (talk) 11:22, 10 November 2021 (UTC)

Is there any way to output Markdown in MediaWiki?

MediaWiki 1.36.1

I save the MediaWiki input containing Markdown just as I would save any other MediaWiki page but I need it to output the Markdown just an Markdown would be outputted anywhere else which supports Markdown (say, GitHub). 49.230.139.94 (talk) 12:51, 10 November 2021 (UTC)

Maybe this unmaintained extension?
Extension:Markdown Jonathan3 (talk) 16:23, 10 November 2021 (UTC)

Hi Team,

If we want to remove any link like download as pdf from my side bar menu.

pls suggets how to remove that one.

MediaWiki 1.35.3
PHP 7.4.23 (apache2handler)
MySQL 8.0.26
Lua 5.1.5

Pooja2425 (talk) 13:47, 10 November 2021 (UTC)

Is this something that's in the Mediawiki:Sidebar page? Jonathan3 (talk) 16:21, 10 November 2021 (UTC)
yes @Jonathan3 i need to remove a single link from mediawiki side bar .
pls suggest any solution. Pooja2425 (talk) 09:52, 11 November 2021 (UTC)
Remove the collections extension (if you dont want it) Bawolff (talk) 05:43, 11 November 2021 (UTC)
HI @Bawolff,
By Removing Collection extension it removed the all links under Print/export .
I just need to remove one single link ie.
You can hide with css in mediawiki:common.css (although i dont know what the selector is) Bawolff (talk) 19:55, 11 November 2021 (UTC)
Try this in MediaWiki:Common.css:
#coll-download-as-rl {
  display: none;
}
I've not checked it but from looking at https://wiki.openoffice.org/wiki/Help:Books, which uses the Collection extension, it looks like it might work. Jonathan3 (talk) 23:03, 15 November 2021 (UTC)

What is wrong with this API.php call?

While logged on to my wiki, one of my Javascripts does the following:

``` 

var xhr = new XMLHttpRequest();

var url = "/wiki4/api.php";

var params = {action: "purge", titles: title, format: "json"};

xhr.open ('POST', url, true);                                               

xhr.setRequestHeader("Content-Type", "application/json;charset=UTF-8");

xhr.send(JSON.stringify( params ));

```


I get back HTML (instead of json) and the contenst is the Mediawiki Api help.


What am I doing wrong? 2003:E7:5705:8000:1D2E:F0CF:5268:FE93 (talk) 17:54, 10 November 2021 (UTC)

You are sending the arguments as json. This is not supported. Send as application/x-www-form-urlencoded Bawolff (talk) 05:42, 11 November 2021 (UTC)

How can people give money to wikimedia

I am severely disabled. I have limited resources. Thus I rely on the generosity of the open source movement to survive. I contribute where I can. But one thing I can do is contribute money. Its not much and usually happens by money I have saved from my food budget (this is not a bad thing - I need autophagy to heal myself - but it helps keep me going by thinking I am contributing to an external project)

When I am asked to, and if I can, I contribute money to wikipedia but that's not wikimedia, and wikimedia supports a lot of things I use. Yet try as i might I can see how to give money when I can to wikimedia. I am sure you probably raise money from charitable foundations, companies etc, and I'm just a user but I want to help and sometimes money is all I can give

I have searched on how to contribute and there is no obvious route to giving money. Could wikimedia set up a https://en.wikipedia.org/wiki/Liberapay account so I could contribute via that? I would prefer to not use tools such as Patreon - who whilst a great company, they do charge a tax on every contribution

Sorry for not logging in. I am trying to remember my user identity on here and if I can add it to this after I manage to log in I will. Thank you for your time. Kate 82.6.141.57 (talk) 13:45, 11 November 2021 (UTC)

Hi and thanks! :) Please see https://donate.wikimedia.org/ , as this page is more about questions how to use the MediaWiki software instead. Malyacko (talk) 15:11, 11 November 2021 (UTC)
Wikimedia supports wikipedia and other things. The wikipedia brand is put first because it is more recognizable. Bawolff (talk) 19:53, 11 November 2021 (UTC)

Fatal error in update

I upgraded from MediaWiki version 1.31 to version 1.35/1.36, and I got various errors. When I tried to replace the files in my AbuseFilter, I got this:


Fatal error: Uncaught Error: Class 'MediaWiki\Extension\AbuseFilter\FilterUser' not found in /home/gjlxrtap/public_html/mw19/extensions/AbuseFilter/includes/ServiceWiring.php:104 Stack trace: #0 /home/gjlxrtap/public_html/mw19/vendor/wikimedia/services/src/ServiceContainer.php(125): require() #1 /home/gjlxrtap/public_html/mw19/includes/MediaWikiServices.php(410): Wikimedia\Services\ServiceContainer->loadWiringFiles(Array) #2 /home/gjlxrtap/public_html/mw19/includes/MediaWikiServices.php(248): MediaWiki\MediaWikiServices::newInstance(Object(GlobalVarConfig), 'load') #3 /home/gjlxrtap/public_html/mw19/includes/exception/MWExceptionHandler.php(129): MediaWiki\MediaWikiServices::getInstance() #4 /home/gjlxrtap/public_html/mw19/includes/exception/MWExceptionHandler.php(184): MWExceptionHandler::rollbackMasterChangesAndLog(Object(Error), 'mwe_handler') #5 /home/gjlxrtap/public_html/mw19/includes/exception/MWExceptionHandler.php(156): MWExceptionHandler::handleException(Object(Error), 'mwe_handler') #6 [internal function]: MWExc in /home/gjlxrtap/public_html/mw19/extensions/AbuseFilter/includes/ServiceWiring.php on line 104 Newman2 (talk) 14:47, 11 November 2021 (UTC)

What exactly does "trying to replace the files in my AbuseFilter" mean? Please be very specific. Malyacko (talk) 15:10, 11 November 2021 (UTC)
I'm going to guess that you have copied the old extension folder across to your new version of MediaWiki. How about downloading the AbuseFilter extension's latest version instead? Jonathan3 (talk) 22:58, 15 November 2021 (UTC)

How to use Google Analytics for my wiki?

Hey everyone. Hope all is well.

I currently opened a new account for google analytics to track my wiki. I was able to install and configure the HTML extension to my wiki and added the script what was given by google analytics. Now i am confused as to how to track each page on my wiki. not sure where to go from here. Can someone please help and provide instructions? I've checked several sources online for this but im not the most tech-savy person so a lot of the instructions are quite confusing to me.

TIA Thepainking (talk) 18:29, 11 November 2021 (UTC)

Hi, please see "Post a new question" in the sidebar, and link to the exact extension this is about. Malyacko (talk) 20:35, 11 November 2021 (UTC)

Error after update 1.26.4 to 1.35.4

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

After update my MediaWiki to 1.35.4 i get the following error:


[d2973f697a062572400be24f] /WikiCallisto/ Wikimedia\Assert\ParameterTypeException from line 105 of /var/www/html/callisto.com.br/web/WikiCallisto/vendor/wikimedia/assert/src/Assert.php: Bad value for parameter $legacyEncoding: must be a string


Backtrace:

#0 /var/www/html/callisto.com.br/web/WikiCallisto/includes/Storage/SqlBlobStore.php(175): Wikimedia\Assert\Assert::parameterType(array, boolean, string)

#1 /var/www/html/callisto.com.br/web/WikiCallisto/includes/Storage/BlobStoreFactory.php(114): MediaWiki\Storage\SqlBlobStore->setLegacyEncoding(boolean)

#2 /var/www/html/callisto.com.br/web/WikiCallisto/includes/Revision/RevisionStoreFactory.php(127): MediaWiki\Storage\BlobStoreFactory->newSqlBlobStore(boolean)

#3 /var/www/html/callisto.com.br/web/WikiCallisto/includes/ServiceWiring.php(1026): MediaWiki\Revision\RevisionStoreFactory->getRevisionStore()

#4 /var/www/html/callisto.com.br/web/WikiCallisto/vendor/wikimedia/services/src/ServiceContainer.php(447): Wikimedia\Services\ServiceContainer->{closure}(MediaWiki\MediaWikiServices)

#5 /var/www/html/callisto.com.br/web/WikiCallisto/vendor/wikimedia/services/src/ServiceContainer.php(416): Wikimedia\Services\ServiceContainer->createService(string)

#6 /var/www/html/callisto.com.br/web/WikiCallisto/includes/MediaWikiServices.php(1120): Wikimedia\Services\ServiceContainer->getService(string)

#7 /var/www/html/callisto.com.br/web/WikiCallisto/includes/cache/MessageCache.php(540): MediaWiki\MediaWikiServices->getRevisionStore()

#8 /var/www/html/callisto.com.br/web/WikiCallisto/includes/cache/MessageCache.php(445): MessageCache->loadFromDB(string, NULL)

#9 /var/www/html/callisto.com.br/web/WikiCallisto/includes/cache/MessageCache.php(368): MessageCache->loadFromDBWithLock(string, array, NULL)

#10 /var/www/html/callisto.com.br/web/WikiCallisto/includes/cache/MessageCache.php(1108): MessageCache->load(string)

#11 /var/www/html/callisto.com.br/web/WikiCallisto/includes/cache/MessageCache.php(1034): MessageCache->getMsgFromNamespace(string, string)

#12 /var/www/html/callisto.com.br/web/WikiCallisto/includes/cache/MessageCache.php(1005): MessageCache->getMessageForLang(Language, string, boolean, array)

#13 /var/www/html/callisto.com.br/web/WikiCallisto/includes/cache/MessageCache.php(947): MessageCache->getMessageFromFallbackChain(Language, string, boolean)

#14 /var/www/html/callisto.com.br/web/WikiCallisto/includes/language/Message.php(1304): MessageCache->get(string, boolean, Language)

#15 /var/www/html/callisto.com.br/web/WikiCallisto/includes/language/Message.php(862): Message->fetchMessage()

#16 /var/www/html/callisto.com.br/web/WikiCallisto/includes/language/Message.php(954): Message->toString(string)

#17 /var/www/html/callisto.com.br/web/WikiCallisto/includes/Title.php(661): Message->text()

#18 /var/www/html/callisto.com.br/web/WikiCallisto/includes/MediaWiki.php(131): Title::newMainPage()

#19 /var/www/html/callisto.com.br/web/WikiCallisto/includes/MediaWiki.php(151): MediaWiki->parseTitle()

#20 /var/www/html/callisto.com.br/web/WikiCallisto/includes/MediaWiki.php(902): MediaWiki->getTitle()

#21 /var/www/html/callisto.com.br/web/WikiCallisto/includes/MediaWiki.php(543): MediaWiki->main()

#22 /var/www/html/callisto.com.br/web/WikiCallisto/index.php(53): MediaWiki->run()

#23 /var/www/html/callisto.com.br/web/WikiCallisto/index.php(46): wfIndexMain()

#24 {main}


Does anyone know what went wrong with the update?

Thank you in advance for your help. Cwrulez (talk) 00:25, 12 November 2021 (UTC)

The issue emerges from an extension calles "WikiCallisto". Unfortunately this extension is not described on mediawiki.org. I also didn't find any information about it on the web. It is probably some customization made specifically for callisto.com.br.
The extension probably just has compatibility issues with the new MediaWiki version.
You may check the file /var/www/html/callisto.com.br/web/WikiCallisto/extension.json or /var/www/html/callisto.com.br/web/WikiCallisto/WikiCallisto.php to find out about potential maintainers. Osnard (talk) 09:14, 12 November 2021 (UTC)
Hi Osnard, thanks for your reply.
But "WikiCallisto" is not a extension.
var/www/html/callisto.com.br/web/WikiCallisto/ is a MediaWiki root.
-> Files not found:
var/www/html/callisto.com.br/web/WikiCallisto/extension.json
and
/var/www/html/callisto.com.br/web/WikiCallisto/WikiCallisto.php
-> "/var/www/html/callisto.com.br/web/WikiCallisto/extensions"  dir list:
- CategoryTree
- Cite
- CiteThisPage
- CodeEditor
- ConfirmEdit
- Gadgets
- ImageMap
- InputBox
- Interwiki
- LocalisationUpdate
- MultimediaViewer
- Nuke
- OATHAuth
- PageImages
- ParserFunctions
- PdfHandler
- Poem
- Renameuser
- ReplaceText
- Scribunto
- SecureLinkFixer
- SpamBlacklist
- SyntaxHighlight_GeSHi
- TemplateData
- TextExtracts
- TitleBlacklist
- VisualEditor
- WikiEditor
Any suggestions to fix this problem?
Thank you in advance for your help. Cwrulez (talk) 12:19, 12 November 2021 (UTC)
Problem fixed ;)
-> change this line in "LocalSettings.php"
$wgLegacyEncoding = true;
to
#$wgLegacyEncoding = true;
Nice !!!! Cwrulez (talk) 19:16, 12 November 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to give MediaWiki webpages a minimal length correctly?

MediaWiki 1.36.1.

I have added a sticky "Call now" bar to my website.

It should appear horizontally, in the bottom of the viewport, in all webpages.

My problem

My problem is that in very "short" webpages (for example, in search pages were there are no search results) the sticky call now button doesn't stick to the bottom of the viewport.

Image examples

  • ibb.co/56sdm3k (sticking to the bottom)
  • ibb.co/X7GNQvv (doesn't stick to the bottom)

My question

How to solve that problem?

I thought about using CSS to give all MediaWiki webpages some minimal-height, maybe. 49.230.139.94 (talk) 03:22, 12 November 2021 (UTC)

If you're using position:fixed css on the call now button, and none of the parent elements have transform, perspective, or filter css properties set, it shouldn't matter how big the page is. Bawolff (talk) 03:15, 13 November 2021 (UTC)
Thanks, I should explore that approach. 49.230.140.152 (talk) 05:46, 13 November 2021 (UTC)
@Bawolff there is a problem with fixed positioning in that usecase --- you may want to check the following discussion in SitePoint, from today:
sitepoint.com/community/t/how-to-make-a-position-fixed-bar-not-to-cover-the-footer/377614 49.230.140.152 (talk) 15:45, 13 November 2021 (UTC)

Creating wikidata

Hello is it possible to clone Wikidata with the Dumps files.. I want to create a data wiki like wikidata.. And i am thinking of downloading the dump... Will it work.. or is there another way?? Thatnewman (talk) 10:54, 12 November 2021 (UTC)

yes, but it can be a bit of an involved process. Checkout also WBStack. Bawolff (talk) 03:13, 13 November 2021 (UTC)

Errorwhile updating to 1.35.4

When updating from 1.34.4 to 1.35.4 an error is occuring:


Set the local repo temp zone container to be private.

Purging caches...done.

LogicException from line 406 of /var/www/websitepath/includes/cache/MessageCache.php: Process cache for 'en' should be set by now.

#0 /var/www/websitepath/includes/cache/MessageCache.php(1108): MessageCache->load('en')

#1 /var/www/websitepath/includes/cache/MessageCache.php(1034): MessageCache->getMsgFromNamespace('Seconds-abbrev/...', 'en')

#2 /var/www/websitepath/includes/cache/MessageCache.php(1005): MessageCache->getMessageForLang(Object(LanguageEn), 'seconds-abbrev', true, Array)

#3 /var/www/websitepath/includes/cache/MessageCache.php(947): MessageCache->getMessageFromFallbackChain(Object(LanguageEn), 'seconds-abbrev', true)

#4 /var/www/websitepath/includes/language/Message.php(1304): MessageCache->get('seconds-abbrev', true, Object(LanguageEn))

#5 /var/www/websitepath/includes/language/Message.php(862): Message->fetchMessage()

#6 /var/www/websitepath/includes/language/Message.php(954): Message->toString('text')

#7 /var/www/websitepath/languages/Language.php(4637): Message->text()

#8 /var/www/websitepath/maintenance/update.php(206): Language->formatTimePeriod(0.41333699226379)

#9 /var/www/websitepath/maintenance/doMaintenance.php(107): UpdateMediaWiki->execute()

#10 /var/www/websitepath/maintenance/update.php(253): require_once('/var/www/websitepa...')

#11 {main}


MediaWiki: 1.35.4

PHP: 7.3.31

Mysql:

+-------------------------+-------------------------+

| Variable_name           | Value                   |

+-------------------------+-------------------------+

| innodb_version          | 5.7.36                  |

| protocol_version        | 10                      |

| slave_type_conversions  |                         |

| tls_version             | TLSv1,TLSv1.1,TLSv1.2   |

| version                 | 5.7.36-0ubuntu0.18.04.1 |

| version_comment         | (Ubuntu)                |

| version_compile_machine | x86_64                  |

| version_compile_os      | Linux                   |

+-------------------------+-------------------------+


I hope someone can help me. 2A02:810D:47C0:2D2D:885:9953:362D:1259 (talk) 16:40, 12 November 2021 (UTC)

Do you have any custom Localization cache of Message cache config set that's not the default? Bawolff (talk) 03:12, 13 November 2021 (UTC)
There is a Phabricator task about it phabricator:T258860 and this message is seen on MediaWiki 1.35, 1.36, 1.37 in various contexts and seems to be caused by timeouts (and memcached down from one reporter). One context is CirrusSearch described on task T288233 where is solved for 1.37.
Waiting for a more robust resolution, perhaps the workaround for CirrusSearch [1] could work for the update script maintenance/update.php around line 206:
 		$time2 = microtime( true );
+		try {
+			wfMessage( 'ok' )->text();
+		} catch ( \LogicException $e ) {
+			// The first failure should trigger the fallback mode, this second
+			// try should work (and not throw the LogicException deep in the updates).
+			wfMessage( 'ok' )->text();
+		}
 
 		$timeDiff = $lang->formatTimePeriod( $time2 - $time1 );
 		$this->output( "\nDone in $timeDiff.\n" );
~ Seb35 [^_^] 14:18, 14 November 2021 (UTC)
I also met this problem and also this resolution did not work.
Deduplicating ar_rev_id...
LogicException from line 406 of D:\EndWiki\includes\cache\MessageCache.php: Process cache for 'zh-cn' should be set by now.
#0 D:\EndWiki\includes\cache\MessageCache.php(1108): MessageCache->load('zh-cn')
#1 D:\EndWiki\includes\cache\MessageCache.php(1034): MessageCache->getMsgFromNamespace('Mainpage', 'zh-cn')
#2 D:\EndWiki\includes\cache\MessageCache.php(1005): MessageCache->getMessageForLang(Object(LanguageZh_hans), 'mainpage', true, Array)
#3 D:\EndWiki\includes\cache\MessageCache.php(947): MessageCache->getMessageFromFallbackChain(Object(LanguageZh_hans), 'mainpage', true)
#4 D:\EndWiki\includes\language\Message.php(1304): MessageCache->get('mainpage', true, Object(LanguageZh_hans))
#5 D:\EndWiki\includes\language\Message.php(862): Message->fetchMessage()
#6 D:\EndWiki\includes\language\Message.php(954): Message->toString('text')
#7 D:\EndWiki\includes\Title.php(661): Message->text()
#8 D:\EndWiki\maintenance\populateArchiveRevId.php(213): Title::newMainPage()
#9 D:\EndWiki\maintenance\populateArchiveRevId.php(118): PopulateArchiveRevId::makeDummyRevisionRow(Object(Wikimedia\Rdbms\MaintainableDBConnRef))
#10 D:\EndWiki\maintenance\deduplicateArchiveRevId.php(46): PopulateArchiveRevId::checkMysqlAutoIncrementBug(Object(Wikimedia\Rdbms\MaintainableDBConnRef))
#11 D:\EndWiki\maintenance\includes\LoggedUpdateMaintenance.php(45): DeduplicateArchiveRevId->doDBUpdates()
#12 D:\EndWiki\includes\installer\DatabaseUpdater.php(1153): LoggedUpdateMaintenance->execute()
#13 D:\EndWiki\includes\installer\DatabaseUpdater.php(554): DatabaseUpdater->runMaintenance('DeduplicateArch...', 'maintenance/ded...')
#14 D:\EndWiki\includes\installer\DatabaseUpdater.php(517): DatabaseUpdater->runUpdates(Array, false)
#15 D:\EndWiki\maintenance\update.php(181): DatabaseUpdater->doUpdates(Array)
#16 D:\EndWiki\maintenance\doMaintenance.php(107): UpdateMediaWiki->execute()
#17 D:\EndWiki\maintenance\update.php(260): require_once('D:\\EndWiki\\main...')
#18 {main}
MediaWiki 1.35.5
PHP 7.4.27
MySQL 8.0.27
Do you know other way to solve this? Thanks! Awosoem (talk) 06:59, 7 January 2022 (UTC)

Instantly move up the translation page

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


On Special:Translate, where the largest number of messages is used, there is an unpleasant bug. If you reach the lowest messages, the page flips you to the top of the page, and then you don't know where you left off. Can you fix this problem? DDPAT (talk) 22:39, 12 November 2021 (UTC)

@DDPAT 2.0 We here cannot; developers could with good instructions to reproduce. Please see How to report a bug - thanks. Malyacko (talk) 08:34, 13 November 2021 (UTC)
Does this also apply to that tool? DDPAT (talk) 00:40, 14 November 2021 (UTC)
To understand the issue, developers need to know your platform and software:
  • browser: Firefox/Chrome/Edge/Safari… + version
  • type of device: smartphone/computer/tablet…
  • preferably operating system: Windows, MacOS, Android, Linux…
Could you create a screencast to capture a video of the issue?
(Personnally, when I open Special:Translate and go to the end of the page, more translation units are loaded during a few seconds, then appears after and the page remains where it is without moving.) ~ Seb35 [^_^] 13:36, 14 November 2021 (UTC)
I have a Windows 10 Pro computer. I use Google Chrome with constantly updated versions. I will make the video a little later and drop it here (if I can without the use of video services). DDPAT (talk) 13:41, 14 November 2021 (UTC)
I don't know how to share videos here, and I also can't upload to some Wikimedia. DDPAT (talk) 17:05, 14 November 2021 (UTC)
Can you upload it on Phabricator with this form?
If you never logged in on Phabricator, you can use your Wikimedia account: on Phabricator, click on 'Log in' to top right, click on 'Log In or Register with MediaWiki', you will be redirected to MediaWiki.org website, click on 'Authorize', then you should be able to upload the file with the link above.
(I hope your file will be accepted there, else I guess it should be accepted on Commons.) ~ Seb35 [^_^] 18:06, 14 November 2021 (UTC)
Well, the download was successful. Here is the link. DDPAT (talk) 18:14, 14 November 2021 (UTC)
I was able to reproduce it with Firefox 94 on Linux (Debian), so it’s probably reproductible with the video on multiple browsers. I remark it is only on the first tab (“List”) but there is no issue on the other tabs “Page” or “Review”.
Do you want to open the bug yourself on Phabricator, or I do it? (If you want, it is this form from “Report a Software Bug” on top right.) ~ Seb35 [^_^] 18:49, 14 November 2021 (UTC)
Yes, if possible, create a request yourself, because I do not understand its form. DDPAT (talk) 18:53, 14 November 2021 (UTC)
The task is created: phabricator:T295655. You should receive email notifications when there are new comments.
I identified the issue (see my comment on the task); this behaviour was created to open the first “transation unit” (=message to be translated) on small pages (less than 100 translation units) like this page. In my opinion, this behaviour is fine in this case. ~ Seb35 [^_^] 20:12, 14 November 2021 (UTC)
The patch is merged! It will be included in the deployment tomorrow on mediawiki.org, see MediaWiki 1.38/wmf.9. ~ Seb35 [^_^] 07:41, 15 November 2021 (UTC)
Deployed on mediawiki.org! ~ Seb35 [^_^] 17:03, 17 November 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

When to use namespace & repurpose the Project namespace.

Hi! I am thinking of using MediaWiki for my company's internal knownledge management system. One of the use cases is to document every project we have done throughout the years. The most straightforward way is probably to create a page in the Main namespace for each project and stick it to a Projects category, but I am also tempted to repurpose the built-in Project namespace to create pages like Project:ProjectCode, since it seems so intuitive to do so. I also want to create pages representing elements in our organization chart, so maybe something like Organization:OrgName.

My question here is two-fold:

  1. When should I use namespace instead of category to categorize my pages? What differences does it make? I know namespace pages (as in not Main namespace) get difference names and URLs. Also namespaces are often used for authorization purpose, and are more difficult to create (require specific privilege). But is there any other factor I should consider?
  2. In case of namespace, is there any problem if I repurpose the built-in Project namespace for my own use? As far as I know the Project namespace is supposed to be used for information about the Wiki itself, but otherwise it has no special feature or mechanic compared to the Main namespace, so it should be safe to use, but also somehow feels wrong to me.

Thank you for your time! 27.72.96.31 (talk) 05:28, 13 November 2021 (UTC)

For 1) up to you. Namespaces are a bit more heavyweight in that you can select them at search, and recentchanges, etc.you can also customize them easier. Pages can only be in one namespace but can be in many categories. But there is no right or wrong answer here.
2) you can use project however you want - there's really nothing special about it beyond being builtin. Keep in mind its not $wgContentNamespaces by default (but you can add it) Bawolff (talk) 22:30, 13 November 2021 (UTC)
If you want to reuse the namespace 'Project', be aware this namespace is parametrised by $wgMetaNamespace, defaulting to the site name; you should probably set this parameter to 'Project' to force the use of the word 'Project'.
On the French-speaking Wikipedia, there is a use of a namespace 'Projet' a bit similar to yours, used for thematic coordination about the editorial contents of the main namespace (see main page of this namespace); in their case, it’s an extra namespace 'Projet', distinct of 1 letter from the built-in namespace 'Project'. ~ Seb35 [^_^] 10:08, 14 November 2021 (UTC)
Thank you for your help! 2402:800:61CF:62F6:6429:BEE1:E06A:D019 (talk) 12:07, 15 November 2021 (UTC)

Ver. 1.36.2; Search won't work.

Every time I attempt to search something, it comes up as "[YY9vrwBz@QnRZ2kdX3h6MQAAACs] 2021-11-13 07:56:31: Fatal exception of type "Wikimedia\Rdbms\DBQueryError" "


Any help? Thanks. 96.33.180.250 (talk) 07:58, 13 November 2021 (UTC)

See Manual:How to debug to get a stacktrace. Malyacko (talk) 08:33, 13 November 2021 (UTC)

What would be a good printed book for MediaWiki theming?

I have some basic knowledge in:

  • HTML
  • JavaScript
  • CSS

I need to custom the Timeless skin a bit.

The main reason I want to custom Timeless is because it lacks support for Adsense, which Vector-Minerva have (but which I don't use).

I think I need to develop a more general and basic understanding of MediaWiki theming in general before I come to make changes in core theme.

I am having a hard time reading the MediaWiki English documentation from a computer screen; I am not a native speaker of English or any other Germanic language, I have an elementary and limited understanding of PHP and I find the "large" (already-compiled?) PHP files of the Timeless skin quite "heavy" to deal with. 49.230.140.152 (talk) 13:31, 13 November 2021 (UTC)

In terms of books - there is nothing really specific to mediawiki skinning that i am aware of, so generic books on html css and php are probably the best.
Maybe try printing out the skin files so you can read a hard copy version. I know this isn't the most helpful, but try changing random things and see what happens in order to learn how different parts work. Bawolff (talk) 22:26, 13 November 2021 (UTC)
I do HTML and CSS for about 12 years and JavaScript for about 6 years, my problem is only with PHP and the theming standards in MediaWiki.
I think that the idea to print the Timeless skin files is great, I should try it !
I will say though that I am not sure what even to print; for example, what are the most basic skin files for any MediaWiki skin?
Also, must I learn about another MediaWiki topic such as hooks, before I learn about MediaWiki theming? 49.230.140.152 (talk) 02:39, 14 November 2021 (UTC)
I have created two different new topics from my questions above:
Project:Support desk/Flow/2021/11#h-What_are_the_most_basic_skin_files_for_any_MediaWiki_skin?-2021-11-15T09:53:00.000Z
Project:Support desk/Flow/2021/11#h-What_should_I_learn_about_first,_hooks_or_skin_architecture?-2021-11-15T09:54:00.000Z 49.230.28.2 (talk) 09:55, 15 November 2021 (UTC)

InfoBoxes impossible to "install"...

I've tried to install the infobox template forever but it won't work. I have tested another template from another wiki page and that don't work either. Both give the lua errors.
For example: Lua error in package.lua at line 80: module 'Module:TNT' not found. Template:En-WP attribution notice (on the Template:infobox webpage)
and: Lua error in Modul:TNT at line 158: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Documentation.tab.
What is this and how am I suppose to solve this? One additional weird thing is that the other "info-box-type"-template from the other wiki does not "use" as much templates as my import according to the edit tab.
One thing I've noticed is that my lua version is 5.1.4 when every other wiki's I stumble upon use 5.1.5. I tried to install lua 5.1.5 but it didn't change the number...
Please help, I'm ripping my hair out... 193.11.104.21 (talk) 14:14, 13 November 2021 (UTC)
I think 5.1.4 vs 5.1.5 might be a windows vs linux thing. Bawolff (talk) 22:15, 13 November 2021 (UTC)
https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Scribunto/+/739050 Bawolff (talk) 03:35, 16 November 2021 (UTC)
Even though Scribunto is updated and having the 5.1.5 engine of lua the Special:Version tab still says it's running lua 5.1.4!? Where does it grab that version??!!! 193.11.104.21 (talk) 18:20, 13 November 2021 (UTC)
Please see "Post a new question" in the sidebar. Please describe how you "installed" something from... somewhere? Malyacko (talk) 19:32, 13 November 2021 (UTC)
Ok, I've read it but I won't post link to it. Ask what you want to see and I shall send you a screenshot of it.
OS: Windows Server 2012 Datacenter (64-bit)
MediaWiki = 1.36.2
PHP = 7.3.32 (cgi-fcgi)
MySQL = 5.5.45
ICU = 64.2
Lua = 5.1.4
When I install "something" from "somewhere" I go to their Special:Export page and specify a template for example Template:PlayerTemplate and I check the box for "Include templates" and "Save as file". I then upload it with the Special:Import page on my wiki. 193.11.104.21 (talk) 20:08, 13 November 2021 (UTC)
So first of all, if you want to use the TNT extension,you have to install Extension:JsonConfig and configure commons as a foreign data namespace. (Unfortunately the docs on doing that are a bit lackluster)
Are you getting both of these errors still? Because they kind of contradict each other (one is saying module:TNT is missing, the other is saying its there but has an error). Bawolff (talk) 22:20, 13 November 2021 (UTC)
I have installed Extension:JsonConfig. "Configure commons as a foreign data namespace.", don't understand that.
No, I'm not right now it's only the Lua error in Modul:TNT at line 158: Missing JsonConfig extension; Cannot load ... that's the problem. (On the page for the Template:PlayerTemplate)
The infobox page has an additional text: "Template:En-WP attribution notice".
I get this red box when I go to the Module:TNT page. "fX01s0G" on imgur
The Template:PlayerTemplate also has a error that says: Lua error in Module:WikidataIB at line 665: attempt to index field 'wikibase' (a nil value).
The thing I said before that bothers me is that my importation of the template PlayerTemplate uses much more Templates than the one on the origin wiki... 193.11.104.21 (talk) 22:52, 13 November 2021 (UTC)
Who is "their" in "their Special:Export page"? Where does "Configure commons as a foreign data namespace." come from / what displays that where? What "origin wiki"? How do you get to the conclusion in your last sentence (links)? Why is https://imgur.com/fX01s0G a 404 error? Why haven't you installed Wikibase if you'd like to use a module depending on it? Malyacko (talk) 12:27, 14 November 2021 (UTC)
Oh, wait. That link should've been https://imgur.com/a/fX01s0G 193.11.104.21 (talk) 19:01, 14 November 2021 (UTC)
Their = The special:Export page on the page mentioned below.
It comes from the comment above from Bawolff, I didn't understand what he meant.
Origin wiki: 2b2t.miraheze.org
This (ibb.co JktP5Bz)is a picture of "used templates" in the template "PlayerTemplate" from 2b2t wiki. And this (ibb.co HGcj6Gt) is from my importation of the template "PlayerTemplate" onto my wiki. N.B. Mall (Swedish) = Template (English), Modul (Swedish) = Module (English.
Don't know, maybe because imgur is trash.
I have installed Wikibase...
The main problem right now seems to be the "Lua error in Module:TNT at line 158: Missing JsonConfig extension; Cannot load [link, cant post because of "linkspam"]." error that I seem to have on multiple templates. 193.11.104.21 (talk) 18:58, 14 November 2021 (UTC)
Sorry for the spam. I fixed the Wikibase problem, it wasn't fully initialized. I still have the "Missing JsonConfig extension" problem though. 193.11.104.21 (talk) 19:25, 14 November 2021 (UTC)
Follow example at: Extension:JsonConfig#Supporting_Wikimedia_templates Bawolff (talk) 03:48, 16 November 2021 (UTC)
@Bawolff
I pasted those line of codes into LocalSettings.php and now I get this error: "Lua error in Modul:TNT at line 166: Missing Commons dataset I18n/Module:TNT.tab.". Now when I try to go onto pages I get error 500 - Internal server error. Often I can just reload the page and it works but when I try to import xml files through the "Special:Import"-page I get the 500 error and can't go past it... 193.11.104.21 (talk) 15:09, 16 November 2021 (UTC)
How to debug Bawolff (talk) 16:20, 16 November 2021 (UTC)
(I can't "sub"-reply so that's why I'm tagging you instead.)
@Bawolff
It's an error from IIS, I don't think I can solve that with editing debugging settings in the mediawiki folder...
Nevertheless, I've already applied the lines of code from the PHP errors part of the "How to debug"-page. 193.11.104.21 (talk) 23:03, 16 November 2021 (UTC)
webserver 500s are commonly (but not exclusively) caused by php errors. IIS should also have some sort of logfile somewhere. Bawolff (talk) 01:11, 17 November 2021 (UTC)
@Bawolff
Yeah, yeah. I've looked in the logs but those doesn't say much more. They just say "500 0 0 5314" or "500 0 0 2991" in the end of the line of the error. I just say that the site seems to be more unstable when I apply the changes to the LocalSettings.php you told about.
Whatever, that's not the main problem... I still can't understand the "Lua error in Module:TNT at line 166[...]".
And I think there is something wrong with the navbar/styles.css that I suppose would be handling the infoboxes position on the page. The "PlayerTemplate" is the only infobox working and it's on the left side of the page...
Why is it this difficult to just install a simple infobox? 193.11.104.21 (talk) 01:31, 20 November 2021 (UTC)
What should I do to fix the "Lua error in Module:TNT at line 166: Missing Commons dataser I18n/Module:TNT.tab"? 193.11.104.21 (talk) 15:58, 29 November 2021 (UTC)
Have you tried the instructions at Extension:JsonConfig#Supporting_Wikimedia_templates? Bawolff (talk) 17:37, 29 November 2021 (UTC)
Yes. I've done it. 193.11.104.21 (talk) 22:33, 29 November 2021 (UTC)
I still haven't figured it out but to make it easier for you to help me I've decided to attach a link to the text of my LocalSettings.php so you have something to examine...
pastebin.com/11vKvshb
Thx in advance. 193.11.104.21 (talk) 12:17, 10 December 2021 (UTC)
(Please don't post your passwords in public.) Malyacko (talk) 15:35, 10 December 2021 (UTC)
@Malyacko
Whatever. Report/delete the topic then, this has just been a waste of time. The troubleshooting done by the community is as bad as Stack Overflow. What more do you want to work with? The whole site?? 193.11.104.21 (talk) 19:41, 19 December 2021 (UTC)
Nobody on the internet is going to troubleshoot your site for free. At best we'll provide links to documentation and suggestions of what to investigate next.
If you want someone to do all the work for you, you'll have to pay someone. Professional development and consulting has a list of people who do that sort of thing (before anyone accuses me of trying to upsell, i am not one of the people on that list). Bawolff (talk) 20:55, 19 December 2021 (UTC)
@Bawolff
@Malyacko
Is no one going to troubleshoot my site for free? Then what is this support desk for? If my whole computer explodes when I install mediawiki? I feel like installing infobox templates is a pretty general problem, isn't it?
I get the feeling that my error codes and logs are not enough for you to give me any helpful info on what to do. To work with the whole site was a rhetorical question. Malyacko just seem to ask a whole bunch of questions without even understanding the problem or contributing and therefore I asked if he wanted the whole site.
I have been trying to get this to work for like 6 months and this was the last resort because I hoped that you could at least point me in the right direction... I have started over and over again and followed the tutorials you linked to multiple times. I have read them so many times I could probably write the articles by memory.
At least understand my frustration...
You don't even answer my questions. For example when you (Bawolff) wrote "Configure commons as a foreign data namespace." and I didn't understand what that meant and asked you Malyacko comes out of nowhere and asks "Where does "Configure commons as a foreign data namespace." come from [...]" and that was that.
The last straw was when no one could even skim read like 40 lines in my LocalSettings.php to at least rule it out, because right now the problem can be caused by "anything" located "anywhere".
Malyacko could sure search for one password I missed to censor but couldn't say if the configuration file had any obvious flaws or problems...
Thank you Bawolff for being the only active member in this support desk and with the help you could provide without a fee. 193.11.104.21 (talk) 16:31, 29 January 2022 (UTC)

Le code LaTeX ne passe plus dans les titres des tables des matières des pages de mes travaux de recherche et des pages de discussion associées

Bonjour,


Cf. titre.


Dans les titres des corps de mes pages de mes travaux de recherche et des pages de discussion associées, le code LaTeX s'affiche correctement, par contre ce n'est plus le cas concernant ceux des tables des matières qui en découlent.


Certaines tables des matières contenant du code LaTeX avaient déjà dégénéré et la table des matières de la page de discussion d'une des pages d'un de mes travaux de recherche a dégénérée suite à une compilation.


Est-ce provisoire et transitoire ?


Pouvez-vous résorber le problème ?


Dorénavant, devra-t-on toujours fournir des titres sans code LaTeX, afin que les tables des matières soient lisibles ?


Dans mon cas, ça va être très difficile, sauf à créer des titres à rallonge ou des titres relativement courts mais très imprécis. 77.140.106.198 (talk) 23:22, 14 November 2021 (UTC)

77.140.106.198 (talk) 23:24, 14 November 2021 (UTC)
Please see "Post a new question" in the sidebar. Malyacko (talk) 08:19, 15 November 2021 (UTC)

Hide authors on pages

Is there a way to hide authors of pages be default? Lumengl (talk) 06:05, 15 November 2021 (UTC)

First of all, where exactly do you see authors? Please read "Post a new question" in the sidebar. Malyacko (talk) 08:19, 15 November 2021 (UTC)
He'll mean the standard "This page was last modified at ... by ..." message in the footer.
Here's an extract from Manual:Footer:
lastmod
edit MediaWiki:Lastmodifiedat. If $wgMaxCredits is enabled then edit MediaWiki:Lastmodifiedatby. You may also want to edit MediaWiki:othercontribs that shows other contributors. (6518) Jonathan3 (talk) 22:53, 15 November 2021 (UTC)
Based on your last message, I guess you found how to remove the authors (by setting $wgMaxCredits = 0;), but if you want to remove the whole sentence you can either hide it with CSS (add #footer-info-credits { display: none; } in your MediaWiki:Common.css) or blank the message MediaWiki:Lastmodifiedat. ~ Seb35 [^_^] 12:52, 16 November 2021 (UTC)

Visually Appealing Story Pages

Hi! This might be a big css ask, but for story text on my wiki, https://grandorder.wiki/Category:Story , I was wondering if there was any way I can have the individual pages like https://grandorder.wiki/Cosmos_in_the_Lostbelt_0:_Prologue/Story be centered on the page while keeping the text left-aligned, along with a black gradient on both sides to cover the empty space that would result from centering the page. A way to change the background color of the middle portion where the content would go would also be great. BlameLib (talk) 06:33, 15 November 2021 (UTC)

Something like this test image: https://postimg.cc/xJMfkFfF?
This should be achievable simply by the following code:
<div style="background-color: bisque;">
<div style="margin: auto; width: 75%; background-color: burlywood; padding: 10px;">
/* PAGE CONTENT */
</div>
</div>
To do the same with all pages in a category, you'll have to make use of Ciencia Al Poder's snippet. Copy the code from there into your MediaWiki:Common.js page.
After that, in your MediaWiki:Common.css page, include something similar to the following:
body.cat-Story #bodyContent { background-color: bisque; }
body.cat-Story #mw-content-text {
	margin: auto;
	width: 75%;
	background-color: burlywood;
	padding: 10px;
}
AhmadF.Cheema (talk) 11:23, 15 November 2021 (UTC)
Thanks, this is perfect! BlameLib (talk) 14:26, 15 November 2021 (UTC)

Can we upload page[.txt file] in the mediawiki based on the location of the page [.txt file]

In our case we have the below situation.

  • We want to upload the page based on the below condition.
  • If the page [.txt file] does not exists in the Location1, then upload the page [.txt file] from the Location2.


In our case, we are upload the page using below functionality.

{{snippet:repository=|fielname=Navigation\Home\Product_Documentation.txt|branch={{#urlget:version}}}}


In the above scenario, if the txt file does not exist in location, then take from another location.


We want the conditional upload of the file in the page creation. AshwiniUpasani (talk) 06:49, 15 November 2021 (UTC)

What "functionality" is that line above, and how does that work? You need to provide way more background. Malyacko (talk) 08:18, 15 November 2021 (UTC)
Maybe this: Extension:Git2Pages. If the extension doesn't let you do what you need, then I guess you'd need to use a modified version or something different. Jonathan3 (talk) 23:07, 15 November 2021 (UTC)
Maybe you want Extension:ParserFunctions to make a conditional template? Bawolff (talk) 03:10, 16 November 2021 (UTC)
It is Extension:Git2Pages. We are using this. Please do let me know, can we do a conditional file upload in that. AshwiniUpasani (talk) 05:53, 16 November 2021 (UTC)
If snippet returns nothing when there's nothing at the file location then you could try something like:
{{#if: {{snippet:...filename=...Location1...}} | {{snippet:...filename=...Location1...}} | {{snippet:...filename=...Location2...}} }}
Or if it says something like "File not found" then:
{{#ifeq: {{snippet:...filename=...Location1...}} | File not found | {{snippet:...filename=...Location2...}} | {{snippet:...filename=...Location1...}} }}
This is pure guesswork. I can see why it probably won't work, but it might be worth trying. Jonathan3 (talk) 10:02, 16 November 2021 (UTC)

How can I add Dropdown menu with dynamic values in the mediawiki page

How can I add Dropdown menu with dynamic values in the mediawiki page ?


In which Js file/php file I can define the logic AshwiniUpasani (talk) 06:50, 15 November 2021 (UTC)

Editing random JS or PHP files is not how it works; in general. You could look into extensions however, like Extension:Semantic Forms Select. Malyacko (talk) 08:18, 15 November 2021 (UTC)

What are the most basic skin files for any MediaWiki skin?

I ask this assuming that there are theming files which all skins make use of. 49.230.28.2 (talk) 09:53, 15 November 2021 (UTC)

I don't think anyone will list file names here. See Manual:Skins. Malyacko (talk) 14:46, 15 November 2021 (UTC)
Aren't there just up to, say, 5 files which all skins share?... 49.230.28.2 (talk) 00:28, 16 November 2021 (UTC)
if all skins had the exact same file, we wouldn't bother including it in the Skin. However the core of the skin is usually a file named includes/Skin<Skinname>.php and includes/<Skinname>Template.php - e.g. in Timeless https://github.com/wikimedia/mediawiki-skins-Timeless/blob/master/includes/SkinTimeless.php and https://github.com/wikimedia/mediawiki-skins-Timeless/blob/master/includes/TimelessTemplate.php
Perhaps what you are looking for is some of the MediaWiki core skin library files in https://github.com/wikimedia/mediawiki/tree/master/includes/skins (Particularly Skin.php and SkinTemplate.php) Bawolff (talk) 03:09, 16 November 2021 (UTC)

What should I learn about first, hooks or skin architecture?

I want to learn how to custom my website's skin thoroughly.

What should I learn about first, hooks (the general MediaWiki hooks system) or the skin's architecture? 49.230.28.2 (talk) 09:54, 15 November 2021 (UTC)

It depends what you prefer :) and what type of customisations you want on your website.
For the skin, you can read Manual:Skinning Part 1 even if it is now a bit outdated.
For the hooks, their goal is to provide specific features quite independent of the design provided by the skin (*), so if you have an idea of a non-existent feature (there are already plenty of extensions providing features), you can see how similar extensions implemented the idea and adapt it, and/or you can walk in the list of hooks to see what hooks fit best for your idea. (But I’m not aware of a dedicated tutorial about this.)
(*) Although skins can use hooks, but it’s a minor use. ~ Seb35 [^_^] 12:30, 15 November 2021 (UTC)

Hi! Is there a way to have all my categories on the sidebar?

I'm not a programmer and don't speak code, so please, if anyone has an answer in simple English. MsHiller (talk) 20:49, 15 November 2021 (UTC)

Yes, I think this is possible using Extension:CategoryTree or Extension:TreeAndMenu. Jonathan3 (talk) 22:46, 15 November 2021 (UTC)
Yes there is.
You have to create an infobox template page. Then you put everything in the template page you want to have in your sidebar.
Then on any page you have you do this bracket { to open the Infobox but you use two of them and type the word Infobox after it. 1. { double Infobox {{Infobox 2. This mark....
Tell ya what. Hit me up on messenger I'll give you the script. Karlpajak (talk) 23:21, 16 November 2021 (UTC)
Sounds helpful. So the script is? MsHiller (talk) 15:54, 18 November 2021 (UTC)

Is there any way to customize login page for users?

Hello!


I really want to change how the login screen looks like for users. Today it looks like a normal Wikipage with the login window in it, but I want to change it so that the login window is the only thing visible. I want it to have the same simplicity as for example the wordpress login screen. Does anyone know how I can edit the login page?


Down below is an example from wordpress.


https://www.google.com/search?q=wordpress+login+page+for+users&rlz=1C1VDKB_svSE929SE929&sxsrf=AOaemvIACaVSf7s7lnqvs5fuN1IOhqsJiw:1637074424565&source=lnms&tbm=isch&sa=X&ved=2ahUKEwiju6-8kZ30AhWMzYsKHSd0BTAQ_AUoAXoECAIQAw&biw=1920&bih=937&dpr=1#imgrc=lsSkM0lGnA7mvM SebastianMortensen (talk) 14:58, 16 November 2021 (UTC)

You could probably do something custom with a skin.
if you enable manual:$wgAllowSiteCSSOnRestrictedPages you can adjust with MediaWiki:common.css. see manual:CSS Bawolff (talk) 15:08, 16 November 2021 (UTC)
Hello @SebastianMortensen
if you are still looking for the solution of customizing login screen then follow this link hope so it will help you a lot. and if you are using WordPress for other websites you can easily customize the login screen for user in WordPress using the best WordPress login plugin LoginPress. It helps you to customize the login page same as you shared in the examples. You can also import pre-designed templates of login screen as well without any coding language. Daniyalalii (talk) 18:44, 15 October 2022 (UTC)

edit problem

I added a photo to our page and it replaced the entire 44 car photo gallery. How do I undo or re-do this? MorinReiff (talk) 16:04, 16 November 2021 (UTC)

never mind, found the fix myself. thanks anyway MorinReiff (talk) 16:20, 16 November 2021 (UTC)

Mediawiki SSO: Table ‘simplesamlphp_kvatore’ already existed

Mediawiki 1.32.2 Php: 7.3.28 apache2handler Mariadb:10.2.33

Simplesamlphp extension: 1.35 (github)

Pluggableauth extension: 1.35(github) Simplesamlphp software:1.19.3

I’n trying to implement SSO in Azure AD for on prem

[acb3c984ef5311d0f7784f6f] /index.php/Special:PluggableAuthLogin PDOException from line 175 of E:\Apache24\htdocs\simplesamlphplib\lib\SimpleSAML\Store\SQL.php: SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'SimpleSAMLphp_kvstore' already exists Backtrace:

0 E:\Apache24\htdocs\simplesamlphplib\lib\SimpleSAML\Store\SQL.php(175): PDO->exec(string) 1 E:\Apache24\htdocs\simplesamlphplib\lib\SimpleSAML\Store\SQL.php(78): SimpleSAML\Store\SQL->initKVTable() 2 E:\Apache24\htdocs\simplesamlphplib\lib\SimpleSAML\Store.php(52): SimpleSAML\Store\SQL->__construct() 3 E:\Apache24\htdocs\simplesamlphplib\lib\SimpleSAML\SessionHandler.php(138): SimpleSAML\Store::getInstance() … .”


Anyone familiar with this error? My user id has just received CREATE Command permmission to create the table and once the access has been granted it shows that the table has already existed. Do you think i should drop the table and re-run again? I will need to get approval before do any changes on our database. Is there anything i need to be cautious when setting this up.

Let me know if its a different case.

Thanks Frizzow (talk) 03:40, 17 November 2021 (UTC)

The MediaWiki extension SimpleSAMLphp does not maintain itself a database, and according to the paths it it the library SimpleSAMLphp which triggers this error, so you should search in their documentation.
Make working the library is 80% of the work (they have a test to verify it is working independently of MediaWiki), then, when it works, the MediaWiki extension can be connected through the library. ~ Seb35 [^_^] 08:16, 17 November 2021 (UTC)
MediaWiki
1.32.2
PHP
7.3.28 (apache2handler)
MariaDB
10.2.33-MariaDB-log
PluggableAuth= 1.35
SimpleSAMLPhp=1.35
Checking your PHP installation
Yes
Required
PHP Version >= 7.1. You run: 7.3.28
Yes
Required
Date/Time Extension
Yes
Required
Hashing function
Yes
Required
ZLib
Yes
Required
OpenSSL
Yes
Required
XML DOM
Yes
Required
RegEx support
Yes
Required
JSON support
Yes
Required
Standard PHP Library (SPL)
Yes
Required
Multibyte String Extension
Yes
Optional
cURL (required if automatic version checks are used, also by some modules.
Yes
Optional
Session Extension (required if PHP sessions are used)
Yes
Optional
PDO Extension (required if a database backend is used)
no
Optional
LDAP Extension (required if an LDAP backend is used)
no
Optional
predis/predis (required if the redis data store is used)
no
Optional
Memcache or Memcached Extension (required if a Memcached backend is used)
Yes
Recommended
technicalcontact_email option set
Yes
Required
auth.adminpassword option set
What I have tested:
1. The table above shows only 3 things are not available when I'm checking my PHP installation. We are not using LDAP extension and we did not setup for predis or memcache and not sure whether we need to install either two.
2. E:\Apache24\htdocs\simplesamlphplib\lib\SimpleSAML\Store\SQL.php: SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'SimpleSAMLphp_kvstore' already exists- this error only displayed when I change the datastore type from 'phpsession' to 'sql' in the config.php file. If I change back to phpsession, it will shows a different error to my wiki page"
[57e819a89ff1f7965dc9f1f6] /index.php/Special:PluggableAuthLogin InvalidArgumentException from line 203 of E:\Apache24\htdocs\includes\session\SessionManager.php: Invalid session ID".
My configuration in config.php file are as below:
'store.type' => 'sql',
'store.sql.dsn' => 'mysql:host=xxx;port=xxxxdbname=xxxx',
'store.sql.username' => 'xxx',
'store.sql.password' => 'xxxx',
3. I have tested the authentication for default-sp and it redirects me to IDP. After entering my credentials, I've been redirected back to the test page with list of attributes. But, in simplesatlphpinstallation page, it already shows SAML 2.0 IDP as green and checked.
4. As for PHP Sanity page, everything is green and no error display.
5. In the federation tab, it shows our SAML 2.0 SP metadata and SAML 2.0 IdP Metadata (Trusted). It looks fine and I exchange the Metadata to IDP(Azure) and it has reflected in this page.
6. When I declare the PluggableAuth and SimpleSAMLphp extensions in localsettings.php, it was able to update in special version page. But now, I've commented out the code below since the library itself not working by showing E:\Apache24\htdocs\simplesamlphplib\lib\SimpleSAML\Store\SQL.php: SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'SimpleSAMLphp_kvstore' already exists
  1. PluggableAuth
  2. wfLoadExtension( 'PluggableAuth' );
  3. $wgPluggableAuth_EnableAutoLogin = false;
  4. $wgPluggableAuth_EnableLocalLogin = false;
  5. $wgPluggableAuth_EnableLocalProperties = false;
  6. $wgPluggableAuth_ButtonLabelMessage = "Login";
  7. $wgPluggableAuth_Class = 'SimpleSAMLphp';
  8. $wgGroupPermissions['*']['createaccount'] = true;
  9. $wgGroupPermissions['*']['autocreateaccount'] = true;
  1. SimpleSAMLphp
  2. wfLoadExtension( 'SimpleSAMLphp' );
  3. $wgSimpleSAMLphp_InstallDir = "E:\Apache24\htdocs\simplesamlphplib";
  4. $wgSimpleSAMLphp_AuthSourceId = "default-sp";
  5. $wgSimpleSAMLphp_RealNameAttribute = [ 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname','http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname'];
  6. $wgSimpleSAMLphp_EmailAttribute = 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/mail';
  7. $wgSimpleSAMLphp_UsernameAttribute = 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/uid';
I'm not sure what else could be the misconfiguration in the simplesamlphp library that can cause the table to recreate. :(
User:Seb35 Frizzow (talk) 06:13, 21 November 2021 (UTC)
I’m sorry, I have no idea how to solve it. In my case I used SQLite, perhaps you can try, it’s quick and simple: in config.php: 'store.type' => 'sql','store.sql.dsn' => 'sqlite:/tmp/sessions.sqlite',. In any case, store.type=phpsession is reported as non-working.
EDIT: well, /tmp is on Linux, obviously you have to adapt it on Windows. ~ Seb35 [^_^] 17:05, 2 December 2021 (UTC)

Disable default image linking

Hi there, i need disable link on images when i write something like <nowiki>[[file:imgname.png|200px]]</nowiki>. I need it to work as <nowiki>[[file:imgname.png|200px|link=]]</nowiki> but i have more than 1000 images on my wiki, and adding 'link=' for all of it is terrible way.

I want to set images links only manual. for example if i set link='somesite' it must be linked. if link parameter not setted, it must be similar to "link="

Help me please

P.s. search give no answer. Graf.yura (talk) 07:17, 17 November 2021 (UTC)

If you have some php experience manual:hooks/ImageBeforeProduceHTML should allow you to dynamically override the link parameter (ie the link-url, link-title and/or no-link of $frameParams argument) Bawolff (talk) 17:27, 17 November 2021 (UTC)

Issue with LocalisationCache giving back blank responses

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 getting an error running 1.19 where the LocalisationCache appears to be giving me back a blank when calling getItem, and I can't work out where it's supposed to be getting the data from. Language.php is throwing an error because the call to getItem to get the 'namespaceNames' is coming back with a blank string, I think, and it's crashing on the line where it tries to combine it with wgExtraNamespaces.

I thought it was getting it from the l10n_cache table in my database, but I deleted the namespaceNames entry from it, and it didn't restore it, so I am stumped in an almighty way.

I experimented with removing the reference to $this->namespaceNames from the line in Language.php, however that generated a ton more errors such as "" is not a valid magic word for "forcetoc" so I think there is a cache file or something somwhere that has gotten stuck with a bunch of blank entries, but I can't work out from the Mediawiki code where that is. Abates (talk) 07:38, 17 November 2021 (UTC)

Update: I have managed to resolve this by running rebuildLocalisationCache.php --force to rebuilt the cache. Abates (talk) 09:20, 17 November 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Hello everyone!


Is there a way to find all pages, which has links in it, that are leading to a page which not has been created?

You know ... the links which are appearing in red color (by default) and when you click them, you´ll get lead to the creation of that page.


I have a few "placeholder" links in my wiki, but struggling to find all of them, so a function for that would be awesome.


Kind regards Hattabatatta (talk) 08:08, 17 November 2021 (UTC)

Perhaps not exactly what you requested, but you might be interested by the special page Special:WantedPages, which lists non-existent pages ranked by number of links toward them. ~ Seb35 [^_^] 08:40, 17 November 2021 (UTC)
Not exactly what I requested, but SO helpful anyway.
Many many thanks! Hattabatatta (talk) 11:07, 17 November 2021 (UTC)
The api can also do more complex queries that can be helpful.
If you know the target of the placeholder like try special:whatlinkshere Bawolff (talk) 17:22, 17 November 2021 (UTC)

How to show latest version selected for mediawiki, if someone hits the URL for the MediaWiki page

In our case, we have one dropdown list, which contains the product versions as below :


V1

V2

V3

V4


Now,we wnat when some one hits the URL for Product [F.e http://localhost/ovsmu/index.php/Product_Documentation_Beta], then lastest version which is V4 should be auto select on the URL hit.


how can we achieve such scenario ? AshwiniUpasani (talk) 08:46, 17 November 2021 (UTC)

"The token parameter must be set" when attempting to upload to commons

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


Hi all

I am integrated Mediawiki OAuth2 into a Node application. Everything is working fine (login, data retrieval) except uploading a file to commons. When I attempt to upload I get this error:

The "token" parameter must be set.

The token parameter is set and I have checked the CSRF token (using checktoken API) and it is valid.

I am using axios 0.21.4 and this is my code:

   const filePath = path.join(__dirname, publicVideoPath);
   const file = fs.createReadStream(filePath);
   
   const uploadParams = new FormData();
   uploadParams.append('file', file, { knownLength: fs.statSync(filePath).size });
   uploadParams.append('filename', title);
   uploadParams.append('text', text.join('\r\n'));
   uploadParams.append('token,', csrfToken);
   uploadParams.append('author', author);
   uploadParams.append('comment', comment);
   uploadParams.append('client_id', CLIENT_ID);
   uploadParams.append('client_secret', CLIENT_SECRET);
   axios({
   headers: {
       'Content-Length': uploadParams.getLengthSync(),
       Authorization: `Bearer ${accessToken}`,
       ...uploadParams.getHeaders(),
   },
   method: 'post',
   url: 'https://commons.wikimedia.org/w/api.php?action=upload&format=json',
   data: uploadParams,
   })
   .then(res => {
       console.log(res);
   })
   .catch(err => {
       console.log(err);
   });


I prefer not use any extra libraries as I want to keep the code as lightweight as possibly and I am already using axios in other parts of the application. Khr2003 (talk) 10:08, 17 November 2021 (UTC)

One possible problem, you typoed the name as token,. BDavis (WMF) (talk) 16:53, 19 November 2021 (UTC)
@BDavis (WMF)
Thanks a lot for this. I am both embarrassed and relieved to say that this what caused the issue. Khr2003 (talk) 02:22, 20 November 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Restrict Left Images to paragraph

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.  How can I restrict an image tagged with |left, to just the paragraph it sits in?

For example, on my page, the image moves everything, including the next title, to it's right.  I want the "Terminator Skins" section to start under the image.  For reference, this page can be found at https://alienshooter.org/Terminator 62.31.154.248 (talk) 13:19, 17 November 2021 (UTC)

try adding <br style="clear:both"> after the image before tge start of text. Bawolff (talk) 17:13, 17 November 2021 (UTC)
Perfect, thank you! :) 62.31.154.248 (talk) 08:48, 18 November 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

The content model 'Scribunto' is not registered on this wiki.

I followed the instructions on the wiki, i installed scribunto in the extension folder, and wrote:


wfLoadExtension( 'Scribunto' ); $wgScribuntoDefaultEngine = 'luastandalone';


at the end like it says in the guide on mediawiki, but when i try to import something it tells me:

The content model 'Scribunto' is not registered on this wiki. See https://www.mediawiki.org/wiki/Content_handlers to find out which extensions handle this content model.


how do i register scribunto on the wiki? Thankyou 87.21.186.185 (talk) 13:23, 17 November 2021 (UTC)

Does Special:Version list scribunto as installed? Bawolff (talk) 19:52, 17 November 2021 (UTC)

Upgraded Mediawiki, all appears intact except it throws an error when trying to log in as admin.

I recently upgraded my Mediawiki from 1.27.x to the latest stable 1.36.2 using the .zip archive of the installation. Database schema appeared to have updated successfully while going through the web-updater. After uploading the /images directory to restore all missing content, the wiki appears to be all intact. However quickly I found that I was prevented from logging into the admin account initially by a 520 (unknown) error, then after some localSettings.php adjustments, a 'this action has been cancelled as a precaution against session hijacking' error, this was possible by adding $wgSessionCacheType set to CACHE_DB. I have not been able to get further than this.

I'm fairly certain my password is correct, because when I enter it wrong the wiki states as such (wrong username/password), it's when I use the correct password it doesn't know what to do and blocks it. I tried running through the [Manual:How to debug/Login problems] page, but I feel I've exhausted all the common checks, apart from maybe the PHP handling, but I'm not sure how to change those on my server.

The wiki is HTTPS-only and currently secured according to my web-browser. I was able to stay logged in prior to the upgrade, even with HTTPS enabled. Account creation and editing had been disabled to prevent spam accounts from ruining the wiki (the reason for the upgrade was to be able to install extensions to round up and destroy said spam accounts).


If anybody can help tell me how to fix the session/log-in issue, I would appreciate it!


Wiki's Special:Version stats:

Mediawiki: 1.36.2

PHP: 7.4.15 (cgi-fcgi)

MySQL: 8.0.26-0ubuntu0.20.04.2

Database type: INNODB (Not absolutely sure, only discerned from the information_schema table next to my Mediawiki database) 88.104.227.132 (talk) 14:53, 17 November 2021 (UTC)

Can you try deleting all your cookies to see if tgat has an affect? Bawolff (talk) 17:10, 17 November 2021 (UTC)
Deleted the cookies from my browser and even force-refreshed the page and still no change.
Response: 'There seems to be a problem with your login session; this action has been cancelled as a precaution against session hijacking. Please resubmit the form.' 88.104.227.132 (talk) 20:31, 17 November 2021 (UTC)
Generally speaking this type of error is caused by cookies being mismatched. Usually either deleting cookies (to fix client side) or setting session cache to CACHE_DB (for server side) fixes it.
If not that its a bit unclear. You can try using different computer web browser to see if that helps.try disabling any auth related mw extensions. Try enabling mw debug log to see if that says anything interesting. Bawolff (talk) 01:45, 18 November 2021 (UTC)
Oho! I'm successful, managed to finally log into the wiki!
The solution was to change $wgSessionCacheTypeto CACHE_DB as you stated. Although annoyingly, the initial change led to a 520 error at first, it was only the second time round that it just worked. While logged in, I can also claim that the session has been persistent so far, and I can do edits to pages and preferences too!
Thank you for your help Bawolff! 88.104.227.132 (talk) 16:49, 18 November 2021 (UTC)
Often this implies that there is a cache misconfiguration (e.g. the main cache type forgets things too fast) it can potentially also cause slownewss. Bawolff (talk) 17:06, 18 November 2021 (UTC)

"No interwiki prefix" error message when Importing template (despite prefix was given)

Hello, I am using MediaWiki v1.36. I tried to import the templates


de.wikipedia.org/wiki/Vorlage:Literatur

and

de.wikipedia.org/wiki/Vorlage:Internetquelle


via XML, but when i try to import them, i get a "No Interwiki prefix" error message. Since I am providing the correct prefix, I suspect the error message is caused by a different issue.


The Scribunto Extension is installed and loaded via the LocalSettings.php on my MediaWiki.


I hope someone can help. Mirghon (talk) 15:08, 17 November 2021 (UTC)

Are you importing via file or interwiiki transfer? Bawolff (talk) 17:09, 17 November 2021 (UTC)
i exported the wikipedia templates via XML and tried to reimport those Mirghon (talk) 07:52, 18 November 2021 (UTC)
it might be that your accidentally triggering the import by interwiki feature instead of import by file. Bawolff (talk) 08:11, 18 November 2021 (UTC)
how do I switch between the 2 if i have the user authority to use both? Mirghon (talk) 09:28, 18 November 2021 (UTC)

Error 1146 in SQL Database when using Math-Extension

Hey guys!

I recently installed my first Wiki and need to use mathematical formulas.

So I installed the Math-Extension to get that functionality. I followd the instructions and used the Web-Updater due to lack of access to the server by myself (hostet at www.strato.de).

I just want to display some simple formulas, no complicated stuff. But when I edit a page and insert a formula, I get the error message "Error HTTP 500" in the visual editor during the saving-process. In the code editor with activated debug-commandline "$wgShowExceptionDetails = true;" there is some further explanation:

Error 1146: missing Table "<db-name>.<prefix>mathoid"

Can anybody tell me how to fix that or how to set up the Math-Extension properly? As I said I'm new to the mediawiki-game and don't get the issue... TKaeter (talk) 21:32, 17 November 2021 (UTC)

try running update.php CLI script. It can usually fix missing tables. Bawolff (talk) 01:46, 18 November 2021 (UTC)
Thanks for that hint. Can you describe how to do that exactly? I can't find any information about a CLI-script... TKaeter (talk) 08:16, 18 November 2021 (UTC)
There are instructions at Upgrading#Run_the_update_script Bawolff (talk) 08:44, 18 November 2021 (UTC)
I cannot run the skript using PuTTY. This is, what I got:
domain> cd maintenance
domain> php update.php
X-Powered-By: PHP/7.3.31
Content-Type: text/html
This script has to be run from the command line
I'm really frustrated -.- TKaeter (talk) 16:45, 18 November 2021 (UTC)
Your php binary is probably named someone else. Try doing
php-cli update.php
Otherwise you need to ask your host or use the web updater instead. Bawolff (talk) 17:04, 18 November 2021 (UTC)
I tried the web updater. Unfortunately no success -.-
I'll ask my hoster, if there are any restrictions in running php-scripts. I have no other clue than that.
Thanks for your efforts! TKaeter (talk) 22:16, 18 November 2021 (UTC)
Maybe even at the command line you're running the web version (or whatever it's called) of php instead of the command line version. I think "php --version" would tell you (look for "cli"). If so, then you could just find the right cli version on your server and type "/path/to/php update.php". Jonathan3 (talk) 08:22, 19 November 2021 (UTC)
> Maybe even at the command line you're running the web version (or whatever it's called)
Just fyi its called the cgi version. Bawolff (talk) 08:55, 19 November 2021 (UTC)

Arabic numerals on Sindhi Wikipedia

Hi, I want to draw your attention towards a problem on Sindhi Wikipedia that Arabic numbers are showing on whole wiki, each page, each section is in arabic digits its hard to understand and digits are too small to comprehension, Persho-Arabic_Sindhi numbers are not widely used nowadays and its very hard to comprehended. on the behalf of Sindhi Wikipedia community and as an admin I request to change the arabic numbers with either perso-Sindhi numbers or to English digits. suppose ١٤٬٧٨٦ is arabic number (١٤٬٧٨٦ shows the current articles of sdwiki on special page). HERE IS THE CONSENSUS PAGE and VOTES FOr THIS CHANGE REQEUEST
Reference: https://meta.wikimedia.org/wiki/Talk:Requesting_wiki_configuration_changes#Request_for_English_numbering_on_Sindhi_Wikipedia
https://phabricator.wikimedia.org/T268203 JogiAsad (talk) 23:02, 17 November 2021 (UTC)
@JogiAsad You already received an answer months ago in https://meta.wikimedia.org/wiki/Talk:Requesting_wiki_configuration_changes#Request_for_English_numbering_on_Sindhi_Wikipedia. Why was this reposted? Malyacko (talk) 08:03, 18 November 2021 (UTC)
Phabricator is the place to request this type of change. We at the support desk can't do anything about this. (Sorry. It sounds like there has been much back and forth on this topic which i imagine has been frustrating.)
Also just a note - the term "arabic numerals" in english more commonly refers to 1234567890 then the arabic letter style numerals, so it can be a bit of a confusing term in english. Bawolff (talk) 01:30, 18 November 2021 (UTC)
I've attempted to give this a little prod on phabricator, to hopefully move things forward.
We (along with many other software projects) get translation data [2] from the CLDR project, so you could also try filing a bug with the CLDR project to change what they have marked as the correct way to write numerals in Sindhi - https://cldr.unicode.org/index/bug-reports Bawolff (talk) 04:56, 18 November 2021 (UTC)
CLDR project request seems complicated at the moment I'll try again to understand its process to request changes. However this problem of arabic-sindhi numberals on sdwiki is still problematic. screenshot https://ibb.co/mNyQ0c1 JogiAsad (talk) 17:51, 18 November 2021 (UTC)
Reported bug on CLDR https://unicode-org.atlassian.net/browse/CLDR-15200 JogiAsad (talk) 16:27, 28 November 2021 (UTC)

Donation Popup

Is there a way to disable it (durably) for (active) Donors/... ? 37.201.146.0 (talk) 18:07, 18 November 2021 (UTC)
Welcome to the support desk for the MediaWiki software. For future reference, some context is welcome.
In case this is about a Wikipedia site, logging in or closing it once should be sufficient? Malyacko (talk) 22:22, 18 November 2021 (UTC)
For wikimedia sites, you can disable fundraising notices if you are logged in. Bawolff (talk) 01:04, 19 November 2021 (UTC)

change URL

Hello @Osnard , Much appreciate if you could help me with changing the url of my mediawiki.

Current url is http://xxxx.index.php/Home >> http://xxxx/wiki/index.php/Home , I want to add wiki in between.

using httpd.conf and LocalSettings.php

I am ready to change the document root if needed. Prabhu7778 (talk) 06:38, 19 November 2021 (UTC)

The best resource would probably be Manual:Short_URL Osnard (talk) 07:18, 19 November 2021 (UTC)

LatestSkinVersionRequirement missing since update to 1.37.0

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

We updated our Mediawiki from 1.36.x to 1.37.0 but now we have the following error:

Original exception: [YZdcJa7JexYY9qajUDKq2wAAAAk] /index.php?title=Hauptseite Error: Class 'Vector\FeatureManagement\Requirements\LatestSkinVersionRequirement' not found


How we can fix this?


Thanks very much.


Best regards

Mike Ycinformatik (talk) 09:38, 19 November 2021 (UTC)

Please provide a stacktrace: Manual:How_to_debug Malyacko (talk) 10:54, 19 November 2021 (UTC)
This is the trace, when I activate debugging:
Original exception: [YZeDxUS0lqKYW3f0LRik4AAAAAU] /index.php?title=Hauptseite Error: Class 'Vector\FeatureManagement\Requirements\LatestSkinVersionRequirement' not found
Backtrace:
from /var/www/vhosts/yourchoice.ch/wiki.yourchoice.ch/skins/Vector/includes/ServiceWiring.php(54)
#0 /var/www/vhosts/yourchoice.ch/wiki.yourchoice.ch/vendor/wikimedia/services/src/ServiceContainer.php(447): Wikimedia\Services\ServiceContainer::{closure}(MediaWiki\MediaWikiServices)
#1 /var/www/vhosts/yourchoice.ch/wiki.yourchoice.ch/vendor/wikimedia/services/src/ServiceContainer.php(416): Wikimedia\Services\ServiceContainer->createService(string)
#2 /var/www/vhosts/yourchoice.ch/wiki.yourchoice.ch/includes/MediaWikiServices.php(279): Wikimedia\Services\ServiceContainer->getService(string)
#3 /var/www/vhosts/yourchoice.ch/wiki.yourchoice.ch/skins/Vector/includes/SkinVector.php(72): MediaWiki\MediaWikiServices->getService(string)
#4 /var/www/vhosts/yourchoice.ch/wiki.yourchoice.ch/skins/Vector/includes/SkinVector.php(90): SkinVector->isLegacy()
#5 /var/www/vhosts/yourchoice.ch/wiki.yourchoice.ch/vendor/wikimedia/object-factory/src/ObjectFactory/ObjectFactory.php(244): SkinVector->__construct(array)
#6 /var/www/vhosts/yourchoice.ch/wiki.yourchoice.ch/vendor/wikimedia/object-factory/src/ObjectFactory/ObjectFactory.php(150): Wikimedia\ObjectFactory\ObjectFactory::getObjectFromSpec(array, array)
#7 /var/www/vhosts/yourchoice.ch/wiki.yourchoice.ch/includes/skins/SkinFactory.php(125): Wikimedia\ObjectFactory\ObjectFactory->createObject(array, array)
#8 /var/www/vhosts/yourchoice.ch/wiki.yourchoice.ch/includes/context/RequestContext.php(456): SkinFactory->makeSkin(string)
#9 /var/www/vhosts/yourchoice.ch/wiki.yourchoice.ch/includes/context/ContextSource.php(163): RequestContext->getSkin()
#10 /var/www/vhosts/yourchoice.ch/wiki.yourchoice.ch/includes/OutputPage.php(2632): ContextSource->getSkin()
#11 /var/www/vhosts/yourchoice.ch/wiki.yourchoice.ch/includes/MediaWiki.php(939): OutputPage->output(boolean)
#12 /var/www/vhosts/yourchoice.ch/wiki.yourchoice.ch/includes/MediaWiki.php(952): MediaWiki::{closure}()
#13 /var/www/vhosts/yourchoice.ch/wiki.yourchoice.ch/includes/MediaWiki.php(559): MediaWiki->main()
#14 /var/www/vhosts/yourchoice.ch/wiki.yourchoice.ch/index.php(53): MediaWiki->run()
#15 /var/www/vhosts/yourchoice.ch/wiki.yourchoice.ch/index.php(46): wfIndexMain()
#16 {main}
Exception caught inside exception handler: [YZeDxUS0lqKYW3f0LRik4AAAAAU] /index.php?title=Hauptseite Error: Class 'Vector\FeatureManagement\Requirements\LatestSkinVersionRequirement' not found
Backtrace:
from /var/www/vhosts/yourchoice.ch/wiki.yourchoice.ch/skins/Vector/includes/ServiceWiring.php(54)
#0 /var/www/vhosts/yourchoice.ch/wiki.yourchoice.ch/vendor/wikimedia/services/src/ServiceContainer.php(447): Wikimedia\Services\ServiceContainer::{closure}(MediaWiki\MediaWikiServices)
#1 /var/www/vhosts/yourchoice.ch/wiki.yourchoice.ch/vendor/wikimedia/services/src/ServiceContainer.php(416): Wikimedia\Services\ServiceContainer->createService(string)
#2 /var/www/vhosts/yourchoice.ch/wiki.yourchoice.ch/includes/MediaWikiServices.php(279): Wikimedia\Services\ServiceContainer->getService(string)
#3 /var/www/vhosts/yourchoice.ch/wiki.yourchoice.ch/skins/Vector/includes/SkinVector.php(72): MediaWiki\MediaWikiServices->getService(string)
#4 /var/www/vhosts/yourchoice.ch/wiki.yourchoice.ch/skins/Vector/includes/SkinVector.php(90): SkinVector->isLegacy()
#5 /var/www/vhosts/yourchoice.ch/wiki.yourchoice.ch/vendor/wikimedia/object-factory/src/ObjectFactory/ObjectFactory.php(244): SkinVector->__construct(array)
#6 /var/www/vhosts/yourchoice.ch/wiki.yourchoice.ch/vendor/wikimedia/object-factory/src/ObjectFactory/ObjectFactory.php(150): Wikimedia\ObjectFactory\ObjectFactory::getObjectFromSpec(array, array)
#7 /var/www/vhosts/yourchoice.ch/wiki.yourchoice.ch/includes/skins/SkinFactory.php(125): Wikimedia\ObjectFactory\ObjectFactory->createObject(array, array)
#8 /var/www/vhosts/yourchoice.ch/wiki.yourchoice.ch/includes/context/RequestContext.php(456): SkinFactory->makeSkin(string)
#9 /var/www/vhosts/yourchoice.ch/wiki.yourchoice.ch/includes/context/ContextSource.php(163): RequestContext->getSkin()
#10 /var/www/vhosts/yourchoice.ch/wiki.yourchoice.ch/includes/OutputPage.php(2632): ContextSource->getSkin()
#11 /var/www/vhosts/yourchoice.ch/wiki.yourchoice.ch/includes/exception/MWExceptionRenderer.php(158): OutputPage->output()
#12 /var/www/vhosts/yourchoice.ch/wiki.yourchoice.ch/includes/exception/MWExceptionRenderer.php(77): MWExceptionRenderer::reportHTML(Error)
#13 /var/www/vhosts/yourchoice.ch/wiki.yourchoice.ch/includes/exception/MWExceptionHandler.php(107): MW
When I activate PHP error reporting, I have this information additionally, but this is only a notice, so no problem:
Notice: Undefined offset: 1 in /var/www/vhosts/yourchoice.ch/wiki.yourchoice.ch/includes/objectcache/SqlBagOStuff.php on line 1090 Notice: Undefined offset: 1 in /var/www/vhosts/yourchoice.ch/wiki.yourchoice.ch/includes/objectcache/SqlBagOStuff.php on line 1090 Notice: Undefined offset: 1 in /var/www/vhosts/yourchoice.ch/wiki.yourchoice.ch/includes/objectcache/SqlBagOStuff.php on line 1090 Notice: Undefined offset: 1 in /var/www/vhosts/yourchoice.ch/wiki.yourchoice.ch/includes/objectcache/SqlBagOStuff.php on line 1090 MediaWiki internal error. Ycinformatik (talk) 11:04, 19 November 2021 (UTC)
Is the version of vector the right ine for your version of mddiawiki? You need to upgrade skins when you upgrade rest of mediawiki. Bawolff (talk) 17:09, 19 November 2021 (UTC)
If skin is up to date, it might indicate that composer requirements are not up to date or incorrect Bawolff (talk) 18:49, 21 November 2021 (UTC)
I use the skin Vector which is included in MediaWiki since version 1.17.
Anyway, I downloaded it separately and replaced the files, now it works. No idea what was the problem before.
Thanks very much.
Best regards
Mike Ycinformatik (talk) 07:03, 23 November 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

MediaWiki Images Not Displaying When Switching to SSL

  • MediaWiki 1.36
  • Apache
  • PHP 7.3

I recently turned on SSL for a site running MediaWiki. When I did that, the thumbnail and file: page images are no longer displaying. Switching back to Non-SSL corrects the issue. The LocalSettings.php file has been changed to reflect the protocol-agnostic // URL in the $wgServer variable. All HTTP:// references in the database (via SRDB) have been modified to be HTTPS://

For example and to duplicate the issue:

  • https://www.spydiewiki.com/index.php?title=C07_Polices
  • Scroll to the bottom to see broken thumbnails.
  • If you click into the image, you see the content, but the image doesn't display here either
  • If you click the link for the image on this page, you get a really funky URL with the absolute path (definitely not what I want) in the URL and the site URL tacked on at the end.

I have tried repairing images, re-importing all the images, clearing cache, purging a page, and adding a new image to a page. With no success.

Has anyone seen this before or have any ideas about what might be causing it? It's gotta be pathing but, man, I can't seem to crack it. OutsideEdge94 (talk) 16:51, 19 November 2021 (UTC)

What is $wgUploadPath set to? What are other file related config directives set to? Bawolff (talk) 17:07, 19 November 2021 (UTC)
Bawolff, thanks for your reply. $wgUploadPath is set to "/images" and uploading images works fine. Also note that the whole system works as expected under a non-SSL environment. I want to say it's something with the rewrite rules under SSL but can't say for sure nor have I any clue as to how I would figure that out. OutsideEdge94 (talk) 14:27, 30 November 2021 (UTC)
It seems the Apache/Plesk rewriting rules have some issues: on this file, when I click on the image, http://www.spydiewiki.com/images/b/b2/701MF_L.jpg is redirected to https://www.spydiewiki.com/var/www/vhosts/spydiewiki.com/httpdocs/images/Spydiewiki.com ~ Seb35 [^_^] 17:47, 19 November 2021 (UTC)
Seb35, thank you for your reply. Yes, I saw this strange URL as well. But as I said to Bawolff, all the URL references to images work as expected under a non-SSL environment. Do you have any thoughts on why SSL would cause the routing and rewriting of image references to go haywire like that? OutsideEdge94 (talk) 14:28, 30 November 2021 (UTC)
The problem is your $wgUploadPath variable seems misconfigured. It should be an URL or URL path, not filesystem path. Don't confuse it with $wgUploadDirectory! Ciencia Al Poder (talk) 17:22, 20 November 2021 (UTC)
Ciencia Al Poder, thank you for your reply. That var is set to "/images". Should that be a fully qualified URL? The script path is set to "" (null) and the default for $wgUploadPath default is "{$wgScriptPath}/images" so "/images/" seems like a valid setting. OutsideEdge94 (talk) 14:30, 30 November 2021 (UTC)
It's a valid setting, except that it wasn't valid when Seb35 and I checked, and your images were pointing to https://www.spydiewiki.com/var/www/vhosts/spydiewiki.comhttpdocs/images. Looks like it has been resolved now. Ciencia Al Poder (talk) 17:30, 30 November 2021 (UTC)
Yeah, it's only fixed because I reverted back to a non-SSL environment. If I switch back to SSL, it generates https://www.spydiewiki.com/var/www/vhosts/spydiewiki.com for the image URLs. OutsideEdge94 (talk) 17:32, 30 November 2021 (UTC)
@OutsideEdge94
I was having an issue that may be related... I can't be sure...
check your .htaccess file on your server (for me it was under home/public_html). Make sure you have a rewrite condition for your url with an HTTPS and HTTP entries. Gere is an example of what it should look like:
RewriteCond %{HTTP_REFERER} !^https://example.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^https://example.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://example.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://example.com$       [NC]
I have created about 7 wiki's on my host's site and never had an issue. Just spent the last 5 hours troubleshooting a new wiki that I just created today. Finally I reached out to my host and they mentioned some issue with the .similar file. When I reviewed my .htaccess, I had entries for every single url except the new one. Once I added entries similar to above, images started working without any issues. SweeBill (talk) 17:51, 16 December 2021 (UTC)
@SweeBill, that's great. Thanks for the insight. I'll take a look and give it a try. I really appreciate the help. OutsideEdge94 (talk) 22:31, 16 December 2021 (UTC)

Can I add wiki markup (image) to a page with JavaScript/jQuery?

... 180.190.110.1 (talk) 16:55, 19 November 2021 (UTC)

you can edit (see Api:edit) a page with jquery, and have the edit how up on next view.
You can also use Api:Parse to turn some wikitext into html and add the resulting html. Generally though most people would add the html directly to avoid the time spent on a network connection. Bawolff (talk) 21:58, 20 November 2021 (UTC)

'behind the scenes' data pages—good/bad idea?

I'm wondering if someone could lend some advice on best practices for wiki organization for what I'm trying to do. I've poked around a lot but can't seem to find information that informs my situation. I'm basically trying to use the data transfer extension to batch upload template calls to hundreds of articles to create connections between pages on my wiki. The data transfer extension is exactly what I need but for the same reason it is scary in a sense because a single browser click uploads a csv which overwrites hundreds or more of pages all at once. There is an option during this upload to only 'replace fields' so that only fields are uploaded but content entered manually is not overwritten. This still seems dangerous as a wrong mouse click could do a lot of damage. I'm wondering if the best option to have my cake and eat it too is to have, for each page, a background data page—i.e. for page X that describes a given topic with normal manually entered text, there is a 'background' data page that I upload the template calls to and then in turn that data is routed to the real page. I'm wondering if there is any precedent to this elsewhere?—or whether this is overly clunky and bloated? Or whether there's a better way forward? Flyingratchet (talk) 03:47, 20 November 2021 (UTC)

Ending letters in Hebrew

In Hebrew there are several words to describe a MediaWiki article, for example:

  • מאמר (Ma'mar)
  • ערך (Erech)

In case I decide to bulk-change one to another, I have created a template {{קת}} which includes the chosen word.

Finalization variation

In modern Hebrew there is a "finalization variation" for some letters and this can cause a template output problem.

For example, if the letter כ is final in a word, it becomes ך, for example:

  • Singular: ערך
  • Plural: ערכים

If I call my template this way:

{{קת}}

I get:

ערך

My problem

If I call my template this way:

{{קת}}ים

I get:

ערךים

instead:

ערכים

My question

How would you suggest to solve that problem? 49.230.192.242 (talk) 08:40, 20 November 2021 (UTC)

Maybe there is a Lua trick for this pseudocode:
If x=x and we get {{x}}y than output is z?
It's not really identical to what I am trying to do because z is not a "finalization variation" for either but still? 182.232.14.80 (talk) 05:26, 21 November 2021 (UTC)
I'm not sure how helpful this is, but the approach i would probably take is have a second parameter as a number for the number of items being discussed. So instead if say there were 7 articles being discussed, I would do something like {{קת|7}} for the template and have the actual template contain something like {{PLURAL:{{{1}}}|ערך|ערכים}}
Or i would probably just not have it be a template, and if i ever needed to mass change it just use a bot or Extension:ReplaceText Bawolff (talk) 06:09, 21 November 2021 (UTC)
Thanks Bawolff,
In case anyone here didn't know; Modern Hebrew has some prefixes as in:
  • הערכים (the articles)
  • בערכים (in articles || in [the] articles ; depends on vocalization)
  • לערכים (to articles || to [the] articles ; depends on vocalization)
  • מערכים (from articles)
  • מהערכים (from the articles)
Maybe Extension:ReplaceText can take care of that too but in any case I would prefer an extensionless solution.
==A possible JavaScript approach==
In sitepoint.com, under "How replace any occurrence of a word in a document?", user:m3g4p0p shared the following JavaScript (slightly edited) which worked for me; it isolated and changed all ערךים to ערכים without or with prefixes:
const walker = document.createTreeWalker(
  document.body, 
  NodeFilter.SHOW_TEXT
)
let node
while ((node = walker.nextNode())) {
  node.textContent = node.textContent.replace('ערךים', 'ערכים')    
}
ערךים and ערכים flipped in the above code due to bidirectionality.
I can't load this code directly from Common.js for some reason, but I can load it indirectly from there via calling a file containing it:
mw.loader.load("BASE_URL/walker.js");
182.232.14.80 (talk) 07:01, 21 November 2021 (UTC)
You can't load it directly because it will run before the page is loaded and would try to replace the words before they exist. Using mw.loader.load may work most of the time but is racey.
The correct way is to do something like:
$(function () {
const walker = document.createTreeWalker(
  document.body, 
  NodeFilter.SHOW_TEXT
)
let node
while ((node = walker.nextNode())) {
  node.textContent = node.textContent.replace('ערךים', 'ערכים')    
}
});
This tells the javascript to only run after the page is loaded.
Two potential issues: (1) there may be a very short delay where users see the wrong word, (2) on very long pages this may slow down page load times. Bawolff (talk) 18:47, 21 November 2021 (UTC)
My own approach as an owner of a personal MediaWiki website which only I edit is to create two (or three) templates:
One for singular (say, מאמר) and one for plural (say, מאמרים) and to add a clear notification in each template page that changing the template-value of one, must include a change in the template value of the other, with mutual linking between the template webpages. 49.230.80.132 (talk) 08:44, 22 November 2021 (UTC)
A third template could be used for
ערכי
ערכיי
So:
ערך
ערכים
ערכי\ערכיי 49.230.8.122 (talk) 21:36, 22 November 2021 (UTC)

Where to find the extensions folder

I've downloaded an extension to change my user name. Instructions are to place the extension in the 'extensions/ folder' folder and then go to LocalSetting.php with instructions: wfLoadExtension( 'Renameuser' ).

I don't know where to find these folders or commands to load/enable this extension. Help? 71.162.117.205 (talk) 14:40, 21 November 2021 (UTC)

To clarify, are you the operator of the wiki you want to change your name on? Bawolff (talk) 23:02, 21 November 2021 (UTC)

VisualEditor/Parsoid certificate problem

Hi, I get the problem: apierror-visualeditor-docserver-http: HTTP 500 when trying to change to the visual editor in any page of a local MediaWiki install, and the parsoid.log in the server says, among other things: "Error: certificate has expired", but as far as I can see the https certificate for the wiki domain expires in January 2022. This happens since August 13.

Software versions:

MediaWiki 1.31.1
PHP 7.2.10-0ubuntu0.18.04.1 (apache2handler)
MariaDB 10.1.34-MariaDB-0ubuntu0.18.04.1

After restarting Parsoid, the message and error point changed from "Template Fetch failure for <title>" to "Config Request failure for <API URL>" (but the API URL is correct); the error shown to the users is the same, and the "certificate has expired" message is still in the log.

The full lines and more info is at phab:P17757.

I understand that Parsoid/JS is no longer supported and that the system needs a full update, but that requires time, and I think there could be a faster solution for this. Thanks in advance. -jem- (talk) 10:58, 22 November 2021 (UTC)

I has the same problem about one month ago. I have made a request to my hosting company to check certificate. They have update it and then all worked fine. Fokebox (talk) 13:41, 22 November 2021 (UTC)

Log out when trying to edit css

Hello. I have a wiki 1.35 that is running fine except that I cannot edit the css. Everytime I enter the css address, I am logged out. I tried clearing the cache, cookies and so but nothing worked. Please advise. Monstr6 (talk) 11:11, 22 November 2021 (UTC)

What CSS address are you trying to enter? Mediawiki:Common.css? Fokebox (talk) 13:40, 22 November 2021 (UTC)

ShortURL is ignoring the main page

All the pages are fine- they all have /w/Page, except the Main Page.

The link when you first go in goes to /Main_Page (which is a 404) instead of /w/Main_Page (which is also a 404), and I can only get to it by going to /index.php?title=Main_Page (/w/Main_Page doesn't work).

However, any OTHER page works just fine and goes to the page if you put in /w/Page.

... I followed the directions completely and used shorturls.redwerks, so I don't know why the Main Page isn't working. Soulqueerschlatt (talk) 19:02, 22 November 2021 (UTC)

Do you have a file named Main_Page in any of the directories?
Can you post your .htaccess? Bawolff (talk) 01:48, 23 November 2021 (UTC)
RewriteEngine On
RewriteRule ^/?w(/.*)?$ %{DOCUMENT_ROOT}/index.php [L]
I'm using the click and build from IONOS, and I. Think? It's in the root, the path is Path: /clickandbuilds/MediaWiki/Queerpedia
It worked fine before I updated to use an extension that needed it updated, though I think it had the 404 handler which I stopped using
I also have no idea where Main_Page is tbh Soulqueerschlatt (talk) 19:53, 23 November 2021 (UTC)
there should not be any file named Main_Page. The reason i asked is in some setups if you have a file in tbe filesystem with the same name as the page, the short url stops working.
Unfortunately i don't see anything wrong with what you describe, so im kind of at a loss. If its a public wiki consider linking to it so people on the forum can test. Bawolff (talk) 03:47, 24 November 2021 (UTC)

Bot work

I discussed one thing with Ukrainian Wikipedians about the correct use of certain words. It is related to "magic words". Need from "чарівні слова" should be replaced with "магічні слова" (Maybe so - "чарів" to "магіч", but I do not know, because I do not understand the boots). And this should be done in all subpages with the suffix (/uk). DDPAT (talk) 19:20, 22 November 2021 (UTC)
You should read this Manual:Bots ↠Tanbirzx () 18:13, 24 November 2021 (UTC)
Also, I don't know if I replaced all the projects everywhere, so replace the word "проект" with "проєкт" at the same time. DDPAT (talk) 22:11, 22 November 2021 (UTC)
This sounds like it might be a request for certain translation of specific strings in the interface of MediaWiki. Please give specific examples (links) of pages where you want to see translations to happen so that we can further help with identifying how to do so. —TheDJ (Not WMF) (talkcontribs) 14:50, 25 November 2021 (UTC)
I meant all subpages ending in /uk. If you are about it. DDPAT (talk) 16:38, 25 November 2021 (UTC)

Unicode

I'm struggling with Unicode support on a Wiki that is fairly current, but originated ~15 years ago. Before I just start fresh and import a page dump, I wonder if some of the maintenance scripts could help. I've routinely run doMaintenance when upgrading. I noticed update titles for Unicode and wonder if there are more that could help. I couldn't find documentation on the Media Wiki website around what code page flag to use. MySql seems to be moving to UTF-32, but wonder if that's best for Media Wiki software.


Some software versions:

OS: Windows 10 desktop - recently patched on release level versions.

Media Wiki 1.35.2

DB: MySQL 8.0.27

Web server: Apache 2.4

PHP 7.4.16

Edge browser v95

Eclipse for PHP developers 2021-03 is used for editing some files. It saves in cp1252. I do have some private extensions I maintain using this.


The specific problem I am seeing is that edits to wiki pages are rejected with the "browser doesn't support Unicode" error message. I've worked around for years by commenting out the Unicode check in Media Wiki source code for EditPage class, but would like to get at heart of issue. I just can't find it.


Appreciate any guidance.

Thanks,

Jason Iowajason (talk) 01:06, 23 November 2021 (UTC)

So usually thats a problem with your webserver or proxy servers (the error is for unicode corruption in transit, before it hits db). Bawolff (talk) 01:45, 23 November 2021 (UTC)
Thanks. Any way to diagnose and solve that problem? Iowajason (talk) 06:59, 23 November 2021 (UTC)
Nothing easy. I guess use wireshark to try and figure out atxwhat stage the corruption happens. Bawolff (talk) 03:44, 24 November 2021 (UTC)

CIForms and error 500

Good afternoon, I installed the CIForms add-on, found the code for embedding it into the site from the add-on documentation, the form appeared on the site. But when sending a letter, an error 500 occurs. Please help me - version of MediaWiki 1.36 2.135.65.24 (talk) 04:25, 23 November 2021 (UTC)

Can you check for the actual error message? Maybe in the logs. Learn about how to enable debug logs here.
Be aware that this extension has external library dependencies. You may need to run composer update within the extensions directory as part of the installation. See also Composer/For_extensions and Manual:External_libraries Osnard (talk) 09:36, 23 November 2021 (UTC)
You can check this page and try to send message in this form? - antispoofing.org (not advertising).
And i'm enable debug in htaccess, and add "error_reporting( -1 );ini_set( 'display_errors', 1 );" in LocalSetting file, but there is nothing in the logs.
I think I am because of the shorten URL. 2.135.64.47 (talk) 11:38, 26 November 2021 (UTC)
.org/Antispoofing_FAQ 2.135.64.47 (talk) 11:39, 26 November 2021 (UTC)
hello, can you try the latest version ? https://www.mediawiki.org/wiki/Extension:CIForms
it's a major upgrade and all issues should have been solved.
You can also disable the google recaptcha Thomas-topway-it (talk) 08:53, 22 January 2022 (UTC)

I buildt a "link system" on my wikis. External links are added in a special namespace and then integrated into articles by tagging this links.

Now, if we remove a link the site Special:LinkSearch still claims that this link exists on all articles, where this link was integrated into. The problem is Special:RottenLinks shows those deleted links too.

Is this a bug?

I can fix the errors by running Manual:refreshLinks.php but this script takes about 1 hour to run... Stefahn (talk) 11:02, 23 November 2021 (UTC)

Those tables get updated asynchronously via the Job queue. Have you tried waiting, or setting a cron job or continious process to process the job queue ? —TheDJ (Not WMF) (talkcontribs) 12:05, 23 November 2021 (UTC)
Thanks for your reply. It's been one week and the deleted link still shows up on Special:LinkSearch. The job queue is empty...
I think I will set up a cronjob with runJobs.php anyway. Is it enough to run it once a day? Stefahn (talk) 21:07, 29 November 2021 (UTC)
Every hour is reasonable generally. You might also want to follow the debug log and see if you might be hitting any errors anywhere. —TheDJ (Not WMF) (talkcontribs) 10:06, 1 December 2021 (UTC)
I have a daily cronjob with runJobs.php, but that doesn't fix the problem. I enabled debugging.
I paste a part of my debug.log here showing the relevant request. Maybe somebody sees an error?
I searched the whole file for "error" but only found something like "SMW\SQLStore\Lookup\ErrorLookup::fetchFromTable (for SMW\Indicator\EntityExaminerIndicators\ConstraintErrorEntityExaminerIndicatorProvider::findErrors)..."
Start request GET /mediawiki/index.php?target=http%3A%2F%2Fwww.integralesleben.org%2Fde%2Fil-home%2Fil-integrales-leben%2Fgrundlagen-des-integralen%2Flinien-der-entwicklung%2Fspiral-dynamics%2F&namespace=&title=Spezial%3AWeblinksuche
IP: ...
HTTP HEADERS:
HOST: secret-wiki.de
...
[DBReplication] Wikimedia\Rdbms\ChronologyProtector::getStartupMasterPositions: client ID is 9ed5874d1324e84585f21fd2e9d54985 (read)
[DBReplication] Wikimedia\Rdbms\ChronologyProtector::getStartupMasterPositions: key is global:Wikimedia\Rdbms\ChronologyProtector:9ed5874d1324e84585f21fd2e9d54985:v2 (read)
[DBConnection] Wikimedia\Rdbms\LoadBalancer::lazyLoadReplicationPositions: executed chronology callback.
[DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: opened new connection for 0
[DBQuery] Wikimedia\Rdbms\DatabaseMysqlBase::serverIsReadOnly [0.001s] someserver.com: SELECT @@GLOBAL.read_only AS Value
[DBQuery] Wikimedia\Rdbms\Database::beginIfImplied (LCStoreDB::get) [0s] someserver.com: BEGIN
[DBQuery] LCStoreDB::get [0.007s] someserver.com: SELECT  lc_value  FROM `l10n_cache`    WHERE lc_lang = 'de' AND lc_key = 'deps'  LIMIT 1  
[DBQuery] LCStoreDB::get [0.017s] someserver.com: SELECT  lc_value  FROM `l10n_cache`    WHERE lc_lang = 'de' AND lc_key = 'list'  LIMIT 1  
[DBQuery] LCStoreDB::get [0.005s] someserver.com: SELECT  lc_value  FROM `l10n_cache`    WHERE lc_lang = 'de' AND lc_key = 'preload'  LIMIT 1  
[DBQuery] LCStoreDB::get [0.001s] someserver.com: SELECT  lc_value  FROM `l10n_cache`    WHERE lc_lang = 'de' AND lc_key = 'preload'  LIMIT 1  
[DBQuery] LCStoreDB::get [0.001s] someserver.com: SELECT  lc_value  FROM `l10n_cache`    WHERE lc_lang = 'de' AND lc_key = 'fallbackSequence'  LIMIT 1  
[session] SessionManager using store SqlBagOStuff
[DBQuery] Wikimedia\Rdbms\DatabaseMysqlBase::open [0.005s] someserver.com: SET group_concat_max_len = 262144, sql_mode = ''
[DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: opened new connection for 0
[DBQuery] SqlBagOStuff::fetchBlobMulti [0.001s] someserver.com: SELECT  keyname,value,exptime  FROM `objectcache`    WHERE keyname = 'usr_p408127_5:MWSession:f449lgrt544njp76kf780vk586mf6ddl'  
[DBQuery] LCStoreDB::get [0.004s] someserver.com: SELECT  lc_value  FROM `l10n_cache`    WHERE lc_lang = 'de' AND lc_key = 'namespaceAliases'  LIMIT 1  
[DBQuery] LCStoreDB::get [0s] someserver.com: SELECT  lc_value  FROM `l10n_cache`    WHERE lc_lang = 'de' AND lc_key = 'namespaceGenderAliases'  LIMIT 1  
[DBQuery] LCStoreDB::get [0.001s] someserver.com: SELECT  lc_value  FROM `l10n_cache`    WHERE lc_lang = 'de' AND lc_key = 'specialPageAliases'  LIMIT 1  
[UserOptionsManager] Loading options from database
[DBQuery] MediaWiki\User\UserOptionsManager::loadUserOptions [0.001s] someserver.com: SELECT  up_property,up_value  FROM `user_properties`    WHERE up_user = 1  
[MessageCache] MessageCache using store APCUBagOStuff
[MessageCache] MessageCache::load: Loading de... local cache is empty, got from global cache
[DBQuery] LCStoreDB::get [0.007s] someserver.com: SELECT  lc_value  FROM `l10n_cache`    WHERE lc_lang = 'de' AND lc_key = 'messages:linksearch'  LIMIT 1  
ParserFactory: using default preprocessor
[DBQuery] LCStoreDB::get [0.001s] someserver.com: SELECT  lc_value  FROM `l10n_cache`    WHERE lc_lang = 'de' AND lc_key = 'magicWords'  LIMIT 1  
Unstubbing $wgLang on call of $wgLang::unstub from ParserOptions->__construct
[DBQuery] LCStoreDB::get [0.005s] someserver.com: SELECT  lc_value  FROM `l10n_cache`    WHERE lc_lang = 'de' AND lc_key = 'messages:linksearch-summary'  LIMIT 1  
[DBQuery] LCStoreDB::get [0.003s] someserver.com: SELECT  lc_value  FROM `l10n_cache`    WHERE lc_lang = 'de' AND lc_key = 'messages:linksearch-text'  LIMIT 1  
[DBQuery] LCStoreDB::get [0.008s] someserver.com: SELECT  lc_value  FROM `l10n_cache`    WHERE lc_lang = 'de' AND lc_key = 'digitTransformTable'  LIMIT 1  
[DBQuery] LCStoreDB::get [0.002s] someserver.com: SELECT  lc_value  FROM `l10n_cache`    WHERE lc_lang = 'de' AND lc_key = 'separatorTransformTable'  LIMIT 1  
[DBQuery] LCStoreDB::get [0.001s] someserver.com: SELECT  lc_value  FROM `l10n_cache`    WHERE lc_lang = 'de' AND lc_key = 'compiledPluralRules'  LIMIT 1  
[DBQuery] LCStoreDB::get [0.008s] someserver.com: SELECT  lc_value  FROM `l10n_cache`    WHERE lc_lang = 'de' AND lc_key = 'linkPrefixExtension'  LIMIT 1  
[DBQuery] LCStoreDB::get [0.002s] someserver.com: SELECT  lc_value  FROM `l10n_cache`    WHERE lc_lang = 'de' AND lc_key = 'messages:linksearch-pat'  LIMIT 1  
[DBQuery] LCStoreDB::get [0.005s] someserver.com: SELECT  lc_value  FROM `l10n_cache`    WHERE lc_lang = 'de' AND lc_key = 'messages:linksearch-ns'  LIMIT 1  
[DBQuery] LCStoreDB::get [0.002s] someserver.com: SELECT  lc_value  FROM `l10n_cache`    WHERE lc_lang = 'de' AND lc_key = 'rtl'  LIMIT 1  
[DBQuery] LCStoreDB::get [0.001s] someserver.com: SELECT  lc_value  FROM `l10n_cache`    WHERE lc_lang = 'de' AND lc_key = 'messages:linksearch-ok'  LIMIT 1  
[DBQuery] LCStoreDB::get [0.008s] someserver.com: SELECT  lc_value  FROM `l10n_cache`    WHERE lc_lang = 'de' AND lc_key = 'messages:namespacesall'  LIMIT 1  
[DBQuery] LCStoreDB::get [0.002s] someserver.com: SELECT  lc_value  FROM `l10n_cache`    WHERE lc_lang = 'de' AND lc_key = 'messages:blanknamespace'  LIMIT 1  
[DBQuery] LCStoreDB::get [0.005s] someserver.com: SELECT  lc_value  FROM `l10n_cache`    WHERE lc_lang = 'de' AND lc_key = 'messages:linksearch-helppage'  LIMIT 1  
[MessageCache] MessageCache::load: Loading en... local cache is empty, got from global cache
[DBQuery] LCStoreDB::get [0.003s] someserver.com: SELECT  lc_value  FROM `l10n_cache`    WHERE lc_lang = 'en' AND lc_key = 'deps'  LIMIT 1  
[DBQuery] LCStoreDB::get [0.026s] someserver.com: SELECT  lc_value  FROM `l10n_cache`    WHERE lc_lang = 'en' AND lc_key = 'list'  LIMIT 1  
[DBQuery] LCStoreDB::get [0.002s] someserver.com: SELECT  lc_value  FROM `l10n_cache`    WHERE lc_lang = 'en' AND lc_key = 'preload'  LIMIT 1  
[DBQuery] LCStoreDB::get [0.006s] someserver.com: SELECT  lc_value  FROM `l10n_cache`    WHERE lc_lang = 'en' AND lc_key = 'preload'  LIMIT 1  
[DBQuery] LCStoreDB::get [0.002s] someserver.com: SELECT  lc_value  FROM `l10n_cache`    WHERE lc_lang = 'en' AND lc_key = 'messages:linksearch-helppage'  LIMIT 1  
[DBQuery] LCStoreDB::get [0.001s] someserver.com: SELECT  lc_value  FROM `l10n_cache`    WHERE lc_lang = 'de' AND lc_key = 'messages:helppage-top-gethelp'  LIMIT 1  
[DBQuery] SpecialLinkSearch::reallyDoQuery [0.011s] someserver.com: SELECT  page_namespace AS `namespace`,page_title AS `title`,el_index AS `value`,el_to AS `url`  FROM `page`,`externallinks`    WHERE (page_id = el_from) AND el_index_60 = 'http://org.integralesleben.www./de/il-home/il-integrales-leb' AND (el_index LIKE 'http://org.integralesleben.www./de/il-home/il-integrales-leben/grundlagen-des-integralen/linien-der-entwicklung/spiral-dynamics/%' ESCAPE '`' )  ORDER BY el_index_60,el_id LIMIT 51  
[DBQuery] LinkBatch::doQuery [0.011s] someserver.com: SELECT  page_id,page_len,page_is_redirect,page_latest,page_restrictions,page_content_model,page_namespace,page_title  FROM `page`    WHERE (page_namespace = 0 AND page_title = 'Spiral_Dynamics')  
[DBQuery] LCStoreDB::get [0.001s] someserver.com: SELECT  lc_value  FROM `l10n_cache`    WHERE lc_lang = 'de' AND lc_key = 'messages:showingresultsinrange'  LIMIT 1  
[DBQuery] LCStoreDB::get [0.009s] someserver.com: SELECT  lc_value  FROM `l10n_cache`    WHERE lc_lang = 'de' AND lc_key = 'digitGroupingPattern'  LIMIT 1  
[DBQuery] LCStoreDB::get [0.001s] someserver.com: SELECT  lc_value  FROM `l10n_cache`    WHERE lc_lang = 'de' AND lc_key = 'minimumGroupingDigits'  LIMIT 1  
[DBQuery] LCStoreDB::get [0.001s] someserver.com: SELECT  lc_value  FROM `l10n_cache`    WHERE lc_lang = 'de' AND lc_key = 'messages:prevn'  LIMIT 1  
[DBQuery] LCStoreDB::get [0.007s] someserver.com: SELECT  lc_value  FROM `l10n_cache`    WHERE lc_lang = 'de' AND lc_key = 'messages:nextn'  LIMIT 1  
[DBQuery] LCStoreDB::get [0.002s] someserver.com: SELECT  lc_value  FROM `l10n_cache`    WHERE lc_lang = 'de' AND lc_key = 'messages:shown-title'  LIMIT 1  
[DBQuery] LCStoreDB::get [0.004s] someserver.com: SELECT  lc_value  FROM `l10n_cache`    WHERE lc_lang = 'de' AND lc_key = 'messages:pipe-separator'  LIMIT 1  
[DBQuery] LCStoreDB::get [0.005s] someserver.com: SELECT  lc_value  FROM `l10n_cache`    WHERE lc_lang = 'de' AND lc_key = 'messages:viewprevnext'  LIMIT 1  
[DBQuery] LCStoreDB::get [0s] someserver.com: SELECT  lc_value  FROM `l10n_cache`    WHERE lc_lang = 'de' AND lc_key = 'messages:linksearch-line'  LIMIT 1  
[DBQuery] MediaWiki::preOutputCommit [0s] someserver.com: COMMIT
MediaWiki::preOutputCommit: primary transaction round committed
MediaWiki::preOutputCommit: pre-send deferred updates completed
MediaWiki::preOutputCommit: session changes committed
[DBReplication] Wikimedia\Rdbms\ChronologyProtector::shutdown: no master positions to save
MediaWiki::preOutputCommit: LBFactory shutdown completed
OutputPage::haveCacheVaryCookies: found Secret_WikiToken
...
Stefahn (talk) 10:37, 15 February 2022 (UTC)
"Now, if we remove a link" well HOW do you remove a link ? As apparently these are not normal links, you are stating: "External links are added in a special namespace". So what are you removing? The link, the storage of the link or the usage of that link in other pages. Have you implemented parser cache invalidation for when you make changes to your "special namespace", so that other pages know that they need to update themselves the next time the page that was previously using the link uses the link ?
If you implement your own wizardry, please provide a LOT of information when asking for assistance. This is like trying to workout why the car doesn't drive, someone says they invented their own wheel and then having to wonder if its now square or made out of straw... —TheDJ (Not WMF) (talkcontribs) 15:00, 15 February 2022 (UTC)
Thanks for your feedback. I try to explain my setup: I store my external links in a separate namespace. The link is tagged with articles. With help of SemanticMediaWiki the link is then included into the tagged articles. Thus if I want to edit the link, I don't need to edit all the articles it is included, but only the link itself.
Now if I delete a link (because it is broken) the link is immediately removed from the articles too. So page invalidation seems to work fine.
But the link still appears on Special:LinkSearch. It seems that after some time it disappears from there as well - but we haven't found out when and how this happens.
Hope it got clearer now...? Stefahn (talk) 20:01, 28 February 2022 (UTC)

How to compare external password with the one saved in user_password?

Hi! Is there any method where I can receive an external password and check if it matches the password saved in user_password? BarbaRuivaRK (talk) 14:17, 23 November 2021 (UTC)

In extension code you can do, by creating a `PaswordFactory` and using the `verify` method of the `Password` object.
See https://github.com/wikimedia/mediawiki-extensions-LDAPAuthentication2/blob/1.0.3/src/PluggableAuth.php#L252-L266 as an example. Osnard (talk) 15:14, 23 November 2021 (UTC)
thank you! BarbaRuivaRK (talk) 16:18, 23 November 2021 (UTC)

Fastest way to back up all wiki files?

When you view the files for a wiki, you can't download the folders. That's ungodly annoying. Is there a way to download your entire wiki so you can back it up with ease? 2603:6000:D740:3F1:E820:B721:FF05:A240 (talk) 19:18, 23 November 2021 (UTC)

What are "files for a wiki"? What are "folders" and where/how to see them? Please see "Post a new question" in the sidebar, plus elaborate what exactly you're try to do. Thanks! Malyacko (talk) 22:05, 23 November 2021 (UTC)
If you search this website for "backup" there's a "backing up a wiki" page. Jonathan3 (talk) 16:45, 24 November 2021 (UTC)

Logging in when email address has changed.

Hi there, I'm contributor Astral Highway. I can't log in as my email account has changed recently and I don't have access to the previous one.

I can't find details on how to do this. Please help as I would like to contribute a major edit.

Best wishes,

Astral 2A00:23C8:168F:C200:ED94:AD50:91AF:A6C1 (talk) 13:52, 25 November 2021 (UTC)

Hi, this is this support forum for the MediaWiki software stack. You are probably looking for the support desk of the wiki where you have your problem with and you should contact their administrators with regards to any login problems. —TheDJ (Not WMF) (talkcontribs) 14:41, 25 November 2021 (UTC)
If you are a wikimedia user: You do not need your email address to log in, just your password and your wiki name, which I suspect is actually: Astral highway, with a lower h.
The email address is required for password recovery. If you have not set a current email address and do not remember your password, than account recovery is generally impossible. See also: What if I forget the password.TheDJ (Not WMF) (talkcontribs) 14:44, 25 November 2021 (UTC)

Show modal or prompt to get password

Hi! I implemented a login solution with PluggableAuth in which I get via get the username and a token generated by the system that made the login request. What I need is that when there is an attempt to login, the system checks if the user has administrative rights and asks for a password to be compared with the bank's. I have two problems: 1: How do I display a modal with an input and a button or a prompt dialog to capture this password? 2: How can I get the typed password and compare it with the bank because it is saved encrypted?

EDIT:

It would be nice if you could change the $wgPluggableAuth_EnableLocalLogin variable to true dynamically in code BarbaRuivaRK (talk) 18:32, 25 November 2021 (UTC)

@BarbaRuivaRK which wiki you are talking about?? ↠Tanbirzx () 05:27, 29 November 2021 (UTC)

FuzzyBot

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.


Can anyone explain how this bot works? That is, when there are any changes on the original page, he... when he updates them? Does it update them automatically, or when someone clicks on a button for the bot to update all subpages, or how? DDPAT (talk) 19:57, 25 November 2021 (UTC)

The "bot" is triggered only when a page is marked for translation.
On a translatable page, when someone edits it, a translation admin can see a little link at the top that says the page has pending changes for translation. Following that link gives you a page where you can review the changes and mark the page for translation, which triggers the bot Ciencia Al Poder (talk) 22:09, 25 November 2021 (UTC)
Thank you for your clarification. DDPAT (talk) 22:20, 25 November 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

MediaWiki SSO old account

I’ve implemented SSO in azure AD, simplesamlphp, pluggableauth. It will create a new account whenever user login via SSO which is understandable. But Is there anyways to match the email address to the existing account instead of creating a new account?

Thanks in advanced! Frizzow (talk) 02:19, 26 November 2021 (UTC)

I've got the same question! Aploe (talk) 17:10, 11 May 2022 (UTC)

Unexpected conversion in a translated page

In a translatable page translated to /zh, with "variant=zh_cn", something that should not be converted has been conterted. For example, in the , the word "日本語" in Japanese should not be converted to "日本语". SolidBlock (talk) 05:13, 26 November 2021 (UTC)

@SolidBlock Please read "Post a new question" in the sidebar. Thanks. Malyacko (talk) 13:22, 26 November 2021 (UTC)
The wiki is this wiki, MediaWiki.
Some URL links, for example, https://www.mediawiki.org/wiki/Help:Cite/zh?variant=zh-cn SolidBlock (talk) 13:40, 26 November 2021 (UTC)
Sounds like a potential bug. See How to report a bug. Malyacko (talk) 20:26, 28 November 2021 (UTC)

Visual Editor not opening

MW Version: 1.37.0

If i want to edit a page via Visual Editor it dont open.

Im working with short url .htaccess and $wgScriptPath = "/w"; $wgArticlePath = "/wiki/$1";

RewriteEngine On

# main rewrite rule

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

# Redirect / to Main Page

RewriteRule ^/*$ %{DOCUMENT_ROOT}/w/index.php [L] Jak lenny (talk) 09:32, 26 November 2021 (UTC)

What the hell with the font?

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.


Previously, this place had plain text, not bold. And suddenly, when simply updating the page, I (maybe everyone) updated the text to bold. You can revert back to the usual font, because it's not at all convenient to work with text (Content Translation tool). DDPAT (talk) 19:47, 26 November 2021 (UTC)

Here is a screenshot from translatewiki, where the text is plain.
DDPAT (talk) 19:53, 26 November 2021 (UTC)
And by the way, the top panel also disappeared. Watch the video link here about it (no link due to Wikimedia Foundation server problems). DDPAT (talk) 20:49, 26 November 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Issue while registering on Phabricator

Hello, I made a mistake entering my verification to link Phabricator to Miraheze and now I'm stuck trying to send a verification email to the wrong email adress, my mediawiki and miraheze username are both Tera458 Tera458 (talk) 19:59, 26 November 2021 (UTC)

Please post Wikimedia Phabricator question on the Wikimedia Phabricator help talk page, as linked from the Wikimedia Phabricator frontpage. Malyacko (talk) 20:03, 26 November 2021 (UTC)
Only autoconfirmed users can participate on those,I guess my account existed for long enough but how many edits do I need to do to post here?
All I wanted to do was install MediaUploader on my wiki but now I've been at this for an hour... Tera458 (talk) 20:11, 26 November 2021 (UTC)
Changed the permissions. Please try again - thanks. Malyacko (talk) 20:58, 26 November 2021 (UTC)

Problem with Wikibase install

Hi


I have followed the details on wikibase / installation. everything worked fine. but as soon as I add the lines to LocalSettings.php the wiki wont work anymore and gives me a http error 500. if I remove the lines, the pages works again.

I have MediaWiki 1.37 and ParserFunctions, Scribunto and TemplateStyles installed BugDroid (talk) 01:53, 28 November 2021 (UTC)

What "details" where exactly? Which "the lines"? Malyacko (talk) 09:09, 28 November 2021 (UTC)
Wikibase/Installation
when I add the lines:
wfLoadExtension( 'WikibaseRepository', "$IP/extensions/Wikibase/extension-repo.json" );
require_once "$IP/extensions/Wikibase/repo/ExampleSettings.php";
wfLoadExtension( 'WikibaseClient', "$IP/extensions/Wikibase/extension-client.json" );
require_once "$IP/extensions/Wikibase/client/ExampleSettings.php";
the wiki wont work anymore BugDroid (talk) 14:50, 28 November 2021 (UTC)
How did you set your content in the two ExampleSettings.php ? Malyacko (talk) 17:51, 28 November 2021 (UTC)
You should also enable php error reporting; see How to debug Bawolff (talk) 02:00, 29 November 2021 (UTC)
mh... I started from scratch on a new mediawiki installation and it worked flawlessly... BugDroid (talk) 13:40, 1 December 2021 (UTC)

Background image

Hello,

I'd like to add a background image to my personal wiki page of a private wiki. If that's not possible, I'd like at least to be able to put the right side bar presenting me over the image. I have admin rights to edit whatever I want on the wiki but I have no idea on how to achieve that. Thanks. :) Steakdu38 (talk) 02:06, 28 November 2021 (UTC)

One of the ways how you can do it is add CSS at Mediawiki:Common.css indicating the image and page Fokebox (talk) 14:29, 28 November 2021 (UTC)
Could you be more precise on how I should edit Common.css and give me the code. I have absolutely no idea. Thank you for your help. :) Steakdu38 (talk) 20:14, 28 November 2021 (UTC)
See Manual:CSS and use your web browser's developer tools to inspect. Malyacko (talk) 20:25, 28 November 2021 (UTC)
I mean, I don't know how to put CSS for a specific page in Common.css Steakdu38 (talk) 01:48, 29 November 2021 (UTC)
The body tag will have a class with the page name.
For example you might do
.page-Main_Page #content { background: url(/foo/bar/someimage.png); }
however, depending on your skin, you might need to target a different div then #content to place the actual background image on, im not sure. Also you need to make sure it has a high enough specificity to override any builtin rules. Bawolff (talk) 01:58, 29 November 2021 (UTC)
Well thank you. :) Steakdu38 (talk) 14:00, 30 November 2021 (UTC)

Redirect Page Help?

Is it possible to remove the text displayed on a redirect page (the arrow and the page it links to)?

<3 Thatgaypigeon (talk) 21:16, 29 November 2021 (UTC)

Which underlying problem would that solve? Malyacko (talk) 22:52, 29 November 2021 (UTC)
None, it's just a design preference :) Thatgaypigeon (talk) 22:57, 29 November 2021 (UTC)
So what exactly are you looking for? An empty page would not help anybody? Malyacko (talk) 23:07, 29 November 2021 (UTC)
Edit: Removed Thatgaypigeon (talk) 23:17, 29 November 2021 (UTC)
Oh, I think I understand what you said now. *facepalm*
I have another template that I'm using instead, but I think it would look nicer without the arrow and link. Thatgaypigeon (talk) 23:41, 29 November 2021 (UTC)
Try putting
.redirectText, .redirectMsg {display:none}
In mediawiki:common.css Bawolff (talk) 01:02, 30 November 2021 (UTC)
Amazing! Thank you so much! <3 Thatgaypigeon (talk) 01:38, 30 November 2021 (UTC)

Exempt pages from Special:UncategorizedPages

These pages are subpages of the main article, usually tracks of careers or their gallery, they don't need to be categorized, but is filing up UncategorizedPages anyways. Is there a magic word or a way to exempt them from being listed there? 180.253.123.81 (talk) 00:39, 30 November 2021 (UTC)

How to add user group permissions?

Mediawiki 1.37, fresh install. Added DumpsOnDemand extension according to the rules and the line

$wgGroupPermissions['Administrators']['dumprequestlog'] = true;

However, (1) a user who is member of group Administrators cannot request a dump log and (2) when I list User Group Rights the page gives me two entries for Administrators, one listing only this added right and several sections in the table below there is another entry for Administrators showing the usual rights.


I did not mess with the LocalSettings.php, this is a fresh install.


Any ideas what went wrong here? 2003:E7:570D:4C00:F892:FB70:1D7:76D4 (talk) 15:57, 30 November 2021 (UTC)

The internal name for the Administrators group is sysop. If I remember correctly, replace
$wgGroupPermissions['Administrators']['dumprequestlog'] = true;
with
$wgGroupPermissions['sysop']['dumprequestlog'] = true;
and this should work. Mainframe98 talk 16:05, 30 November 2021 (UTC)
Great. Yes. Works. Thnx.
Followup question: Where could I have found this information? Help:User rights and groups does not mention anything of this. Why? Bug in the documentation? Good reason for this different name scheme? 2003:E7:570D:4C00:F892:FB70:1D7:76D4 (talk) 16:14, 30 November 2021 (UTC)
Sysop is mentioned in Manual:User_rights#List_of_groups, but that never mentions administrator. There's Help:Sysops and permissions, though and there are some links between these pages. It does leave something to be desired in regards to clarity.
The reason for the difference is historical (sysops used to be actual system operators) and changing it would require a lot of work because all the code uses sysop. Mainframe98 talk 16:18, 30 November 2021 (UTC)
Cool. Thnx a lot. 2003:E7:570D:4C00:F892:FB70:1D7:76D4 (talk) 16:20, 30 November 2021 (UTC)