Jump to content

Project:Support desk/Flow/2022/12

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

Lua errors

I have got many Lua errors and problems with wikidata eg. https://wedapedia.pl/index.php?title=Arkaim How to fix it please? 209.35.172.30 (talk) 01:10, 1 December 2022 (UTC)

Unfortunately the solutions for using wikibase externally is not great. You can setup extension:wikibase with an empty repo so everything is a no op. You can use extension:unlinkedWikibase but the syntax is different so you need to change templates. Bawolff (talk) 21:27, 6 December 2022 (UTC)
thanks. I will try to do it 110.54.189.187 (talk) 12:14, 9 December 2022 (UTC)

2 Wan configuration using Mangle

Hello,

I have 2 wan connection in a Mikrotik CCR1036 all my users are using the wan-1 internet what I want is to put some load on wan-2 using mangle rule. I have searched everywhere as well but couldn’t find proper answer moreover I don’t want to use load balancing or fail over config only a simple mangle rule to separate the wan-2 traffic.

Thanks Aria route (talk) 09:22, 1 December 2022 (UTC)

This is offtopic for this forum. We only answer mediawiki questions. Bawolff (talk) 09:28, 1 December 2022 (UTC)
Sorry I am new here, no idea where to ask this question will you please help me out? Aria route (talk) 09:32, 1 December 2022 (UTC)
Try asking at the mikrotik website perhaps. Bawolff (talk) 09:36, 1 December 2022 (UTC)
As expected, there's a "Mikrotik wiki" which links back to mediawiki.org (the "Help" link on category pages go to Help:Categories here, and the "Help" link on Recentchanges goes to Help:New filters for edit review). Their help page isn't linked to from any other page but on the bright side it says "Please visit http://forum.mikrotik.com to ask questions" :-) Jonathan3 (talk) 10:47, 1 December 2022 (UTC)

Transclusion of a revision?

Is it possible to transclude/display in another page the difference between two revisions? I tried this but it did not work

{{User:Spiros\test&type=revision&diff=2869758&oldid=2869757}}

Spiros71 (talk) 12:53, 1 December 2022 (UTC)

It's not supported. – Ammarpad (talk) 16:17, 1 December 2022 (UTC)

Problems with API

I have an internal MediaWiki install and I am trying to use the API to update pages based on Ansible runs. My problem is, when I try to get the CSRF Token I am always getting a return value of "+\" which I am assuming is not a valid return value. If I use the example Python scripts, it works as expected, but I cannot reliably call that due to the way I have to run my playbooks. Has anyone ever seen behavior like this? Themccloud (talk) 14:20, 1 December 2022 (UTC)

So this is the value we use for logged out users.
If you intend to be logged out, then you are good.
If you want to be logged in, be sure you have cookies working properly. Bawolff (talk) 19:19, 1 December 2022 (UTC)

ParserTestFiles is deprecated

I'm in the process of upgrading from 1.38.2 to 1.39.0, but I see that update.php returns the following warning:

Some of your configuration settings caused a warning:
* ParserTestFiles is deprecated: since 1.30
Please correct the issue before running update.php again.
If you know what you are doing, you can bypass this check using --skip-config-validation.

Without more to go on I'm not sure if/how to proceed. Does anyone know what this refers to or how to correct it? Any insights much appreciated! Huwmanbeing (talk) 15:10, 1 December 2022 (UTC)

Basically one of your extensions is doing testing in the old fashioned way (using $wgParserTestFiles).
You should try updating your extensions if possible. However since its just testing, it doesn't really matter, and would also be safe to just skip this warning. Bawolff (talk) 19:17, 1 December 2022 (UTC)
i also filed a bug related to this phab:T324373 Bawolff (talk) 23:38, 2 December 2022 (UTC)

Have table of contents scroll under sidebar.

Anyone know how to have the table of contents scroll under the sidebar, like on the MediaWiki site? 223.26.27.205 (talk) 03:38, 2 December 2022 (UTC)

Probably part of vector-2022 skin. Bawolff (talk) 05:37, 2 December 2022 (UTC)
Yeah, I have that theme activated but it isn't working like that for me. 122.58.126.49 (talk) 01:27, 3 December 2022 (UTC)

"Bad title" error due to URL encoding

Hi, posting this as a shot-in-the-dark because I'm not entirely sure if I'd be able to get some meaningful answers, but here goes.


I'm trying to delete a broken redirect but the way the URL is encoded gives a "Bad title" error.


The page title is: Discussion:Play a Fighter in D&D


As far as I can tell, the "bad title" error is likely coming from the "amp" in the URL when the ampersand is already encoded as %26. Except the "amp" is literally part of the title itself.


This is happening on wikiHow.com which runs MW version 1.33.0-alpha (yes I know it's outdated) and PHP version 8.0.22. It's worth noting that I'm writing this as a volunteer sysop (user rights group) on the wiki, not as a sysadmin with access to the MW config files. That being said, I just want to know if there's a way I can remedy this issue myself. 2604:3D08:6E7D:2100:9035:9EAD:FE5B:B0F6 (talk) 04:30, 2 December 2022 (UTC)

It should be impossible to create a title with & in it since that is the entity for &.
That said, you should be able to delete it viaits page id via the api. Bawolff (talk) 05:36, 2 December 2022 (UTC)
If the problem is that you can view the page but not delete it, add &action=info to the URL to see the "Page ID". Then you could try index.php?curid=1&action=delete (replacing 1 with your page id). I don't know whether that'll work for you. Jonathan3 (talk) 14:16, 2 December 2022 (UTC)

Wiki not showing styles to guest users

It's a private wiki.


I cannot see styles and images unless I authenticate. Firefox development console reports: "Uncaught SyntaxError: expected expression, got '<'" for file load.php, line 1.


If I authenticate I can see styles and images and everything seems OK.


I've read Manual:Common errors and symptoms but I cannot find anything

seemingly applicable to my case.


Any clue? Zorrino (talk) 13:54, 2 December 2022 (UTC)

typically this is a rewrite rules/short url issue. E.g. if for some reason load.php gets redirected somewhere else. Bawolff (talk) 20:54, 2 December 2022 (UTC)

I can't get the citations to work

I can't get my citations to work and I'm wondering if I have to install more extensions? I just upgraded to the latest version of the software and have the citations extensions installed, but the cite tags don't parse. I'm confused about what else I have to do to get it to work. I read something about needing templates to make citations work, but other sources never mention templates. I do not have the cite option in my menu in the visual editor, if that makes a difference. I'm lost on this one! 216.227.112.52 (talk) 18:35, 2 December 2022 (UTC)

Is cite listed in Special:version on your wiki?
Does the <ref>citation here</ref> syntax work in the non-visual wikitext editor? Bawolff (talk) 20:52, 2 December 2022 (UTC)
Thank-you for replying! Ahh, no, cite is not listed in Special:version and that makes my answer to your second question obvious, but no, the <ref> syntax doesn't work in the non-visual editor.
Is there a special process I need to go through to install the additional extensions? The first install I did was automatic, the second was manual. The extensions are all uploaded, but none are listed.
However, now that I know this I was able to figure out that I need to add the extensions to my local settings file and it looks like I'm good to go! Thank you so much!!! 216.227.107.34 (talk) 18:09, 3 December 2022 (UTC)

Error contacting the Parsoid/RESTBase server (HTTP 400)

On the wiki https://wiki.hytalehub.com/Main_Page the Visual Editor isn't working. Its saying "Error contacting the Parsoid/RESTBase server (HTTP 400)". When i try to create an userpage/page which isnt in the main article space it's working but you can't save it (--> same error).

The api says:

{ "error": { "code": "apierror-visualeditor-docserver-http", "info": "Error contacting the Parsoid/RESTBase server (HTTP 400)", "*": "See https://wiki.hytalehub.com/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/&gt; for notice of API deprecations and breaking changes." } }

How can i fix it? Its on a ngnix server

Thank you! :) KatastrophenKommando (talk) 21:49, 2 December 2022 (UTC)

It sounds like you are running your wiki behind cloudflare.
try this settings within your server block,
        location /rest.php/
        {
                try_files $uri $uri/ /rest.php?$query_string;
        } 5.193.68.230 (talk) 08:40, 4 December 2022 (UTC)
Hey, thank you! ^^ I putted it on the end:
EntryPoint::main();
{
                try_files $uri $uri/ /rest.php?$query_string;
        }
Sadly its not working or should i put it before EntryPoint? KatastrophenKommando (talk) 09:13, 4 December 2022 (UTC)
you need to add this code to /var/nginx/sites-available/yoursite.conf 5.193.68.230 (talk) 16:21, 4 December 2022 (UTC)
sorry, /etc/nginx/sites-available/yoursite.conf 5.193.68.230 (talk) 16:23, 4 December 2022 (UTC)
Hey, it sadly didnt worked :( KatastrophenKommando (talk) 16:12, 2 January 2023 (UTC)
Hey :) Thank you, i have sadly currently no root account to edit it so i have to ask the admin KatastrophenKommando (talk) 21:41, 4 December 2022 (UTC)

Error in Parser.php

I get this error

where is the problem from?

[03-Dec-2022 10:49:14 Asia/Tehran] PHP Deprecated:  Non-static method Counter::wfParserFunctionCounter_Render() should not be called statically in /home/niir/public_html/includes/parser/Parser.php on line 5023 Rick Sanchez (talk) 07:22, 3 December 2022 (UTC)

That is not an error but a warning. :) Please see "Post a new question" in the sidebar here. Malyacko (talk) 14:11, 3 December 2022 (UTC)
Its coming from an extension so you could check if your extensions are up to date. Bawolff (talk) 19:31, 3 December 2022 (UTC)

Pages seem to be gone

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


I updated our MediaWiki from 1.32 to 1.39. After the login, the following error message appears on all (previously existing) pages: This page does not contain any text at the moment. You can create it, search its title on other pages or view the related logs. Interestingly, Special:AllPages lists all articles. Is this behavior due to a faulty migration of the database? Unfortunately, I don't get any error messages showing me a possible cause of the problem (even after using the debugging toolbar). I would be very happy to receive any suggestions that would help me to solve the problem. Thanks in advance! BaffledBuffalo (talk) 12:20, 3 December 2022 (UTC)

Most commonly this would be caused by something going wrong with the actor migration. See manual:migrateActors.php and manual:cleanupUsersWithNoId.php Bawolff (talk) 19:32, 3 December 2022 (UTC)
Thanks! Are there typically any indicators for this? Can I check this manually in the database? Regarding the cleanupUsersWithNoId.php script, I'm not sure how to choose the prefix parameter. What would --prefix '*' do exactly? A look into the script couldn't reveal that (at least for me). BaffledBuffalo (talk) 09:24, 4 December 2022 (UTC)
The best way you can tell, is through looking at the database, looking at the page table, find the entry for the missing page, look at the page_latest field, find the revision table entry where the rev_id matches the page_latest, and check the rev_actor field. If rev_actor is 0 then this is the problem you have. If it isn't than the problem is something else. If you are using sql, do a query [i havent tested this query] like: SELECT * FROM page WHERE page_title = "Main_Page" and page_namespace=0 left join revision on page_latest = rev_id left join actor on rev_actor=actor_id;
The prefix option just renames users who arent real users to have that prefix.
Some people report best results using cleanupUsersWithNoId is you use it before upgrading, so if you have a backup it might be better to try it before doing the upgrade. Bawolff (talk) 19:14, 4 December 2022 (UTC)
Thanks, that helped! Actually, I could see that all entries of the rev_actor column are 0. Would you still suggest to use the migrateActors.php script as a solution?
The script cleanupUsersWithNoId.php mentioned by you is also mentioned in the manual of migrateActors.php. Unfortunately, it is still not clear to me which value I should choose for the --prefix parameter. Could you please help me again with this?
Regarding migrateActors.php, the manual says that the $wgActorTableSchemaMigrationStage variable has been removed in version 1.39. According to this, I should be able to call the migrateActors.php script without any further action (after the cleanupUsersWithNoId.php has been executed successfully)? BaffledBuffalo (talk) 15:05, 5 December 2022 (UTC)
Prefix parameter can be anything you want. It is used to distinguish real users from fake users.
These scripts are generally safe to run whenever, if they cant do anything they do nothing, but sometimes they are only effective in older versions. Bawolff (talk) 21:24, 6 December 2022 (UTC)
Thanks! You seem to be right. The two scripts have unfortunately had no effect, as some columns seem to be missing. The output of the cleanupUsersWithNoId.php script is essentially the same as the one mentioned here.
So I suppose it probably makes the most sense to use the backup to restore to version 1.32 and update to LTS version 1.35 first. Do you think I can update directly to version 1.39 afterwards or should I update to more intermediate versions first? BaffledBuffalo (talk) 22:36, 6 December 2022 (UTC)
I would do the backup, run cleanupUsersWithNoId.php on 1.32, then run migrateActors.php, and then do the upgrade. If the scripts work you can then upgrade directly, i dont think you have to go version by version. Bawolff (talk) 03:32, 7 December 2022 (UTC)
Ok, I have now performed the steps as described. In the table revision, for example, the field rev_actor is now also set. However, I still get the error message "This page does not contain any text at the moment. You can create it, search its title on other pages or view the related logs" on every page. Do I possibly have to update to an older version first? Do you have any other suggestions on what else I could try? BaffledBuffalo (talk) 14:06, 7 December 2022 (UTC)
Could you run the sql query:
SELECT * from page left join revision on page_latest=rev_id left join actor on rev_actor=actor_id left join comment on rev_comment_id = comment_id limit 10;
And tell me the results? Bawolff (talk) 18:19, 8 December 2022 (UTC)
I've now found time to address this issue again. I've updated directly to version 1.39.1.
Since I initially forgot to run cleanupUsersWithNoId.php as well as migrateActors.php, I did so afterwards and got the following result:
> php cleanupUsersWithNoId.php --prefix iw
Skipping revision, fields rev_user and/or rev_user_text do not exist
Skipping archive, fields ar_user and/or ar_user_text do not exist
Skipping logging, fields log_user and/or log_user_text do not exist
Skipping image, fields img_user and/or img_user_text do not exist
Skipping oldimage, fields oi_user and/or oi_user_text do not exist
Skipping filearchive, fields fa_user and/or fa_user_text do not exist
Beginning cleanup of ipblocks
Completed cleanup, assigned 0 and prefixed 0 row(s)
Skipping recentchanges, fields rc_user and/or rc_user_text do not exist
Obviously I didn't notice until now that these columns seem to be missing in the tables. Presumably the problem can be traced back to this? Do you still need the output of your SQL query for a better estimation of the problem? BaffledBuffalo (talk) 17:33, 25 December 2022 (UTC)
Did you guys fix this? Any solution would be much appreciated!! 140.180.240.87 (talk) 03:34, 4 December 2022 (UTC)
Not yet, unfortunately. BaffledBuffalo (talk) 09:25, 4 December 2022 (UTC)
We fixed this by updating the records from table `mw_revision` where `rev_actor` was 0. We've set the `rev_actor` to an existing `actor_id` from the `mw_actor` table 213.118.97.139 (talk) 09:22, 6 December 2022 (UTC)
That's great! But how did you know which actor_id to put in the respective rev_actor? BaffledBuffalo (talk) 09:50, 6 December 2022 (UTC)
I did what user 213.118.97.139 did; worked for me as well!
To find out which actor_id you need to put into rev_actor, go to mw_actor_temp and find the row(s) with revactor_rev that matches the rev_id of your missing page(s). Then, check that row's revactor_actor value: that is the actor_id value you need to put into rev_actor.
Hope this helps! Lsflegal (talk) 16:38, 7 December 2022 (UTC)
I was finally able to solve the problem by first upgrading to LTS version 1.35 and then to the current version.
Thanks for all the suggestions from you guys! BaffledBuffalo (talk) 14:26, 31 December 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Main page has no style/css

Hello,

I am locally creating a wiki for my own projects and I have very limited technical knowledge when it comes to web servers (so please bear with me if I'm clueless about anything). I must mention that I have just installed it and shouldn't have changed anything beyond its base configuration.


The error is that, whenever I access my main page through Firefox, it redirects me to "localhost/wiki/index.php/Main_Page" and shows an image with raw html and no styles whatsoever.


The relevant LocalSettings.php parameters are as follows:

$wgSitename = "Urssos";

$wgScriptPath = "/wiki";

$wgServer = "http://localhost";

$wgResourceBasePath = $wgScriptPath;


PD: I have checked Manual:Common errors and symptoms#The wiki appears without styles applied and images are missing to see if my error is because of anything reported there and had no luck applying the fixes to the best of my ability. 85.219.50.188 (talk) 12:45, 3 December 2022 (UTC)

I forgot to mention that I am using both the latest version of MediaWiki and XAMPP 85.219.50.188 (talk) 12:48, 3 December 2022 (UTC)
Hi, please provide your exact versions ("latest" has no meaning). Please open the Developer Tools of your web browser and check the "network" tab for errors. Malyacko (talk) 14:10, 3 December 2022 (UTC)
My bad, my MediaWiki version is 1.39 and my PHP version is 7.4.33, both should be compatible if I looked at the requirements right. 85.219.50.188 (talk) 15:45, 3 December 2022 (UTC)
I've also just checked the network tab and can't seem to find any error codes, everything looks green. 85.219.50.188 (talk) 16:19, 3 December 2022 (UTC)
Can you find the load.php css requests in the network tab, open them in a new window and see if they look like css? (E.g. do they look like a bunch of text vs say an error message or an html page or blank)
Also be sure you have php error reporting enabled, and check your php error log.
Which skin are you using? Bawolff (talk) 19:29, 3 December 2022 (UTC)
When I open the load.php req on a new tab it shows me a pretty long sequence in raw text , without any sort of style either.
Here's a few lines of what shows up:
"mw.loader.implement("jquery@1vnvf",function($,jQuery,require,module){(function(global,factory){"use strict";if(typeof module==="object"&&typeof module.exports==="object"){module.exports=global.document?factory(global,true):function(w){if(!w.document){throw new Error("jQuery requires a window with a document");}return factory(w);};}else{factory(global);}})(typeof window!=="undefined"?window:this,function(window,noGlobal){"use strict";var arr=[];var getProto=Object.getPrototypeOf;var slice=arr.slice;var flat=arr.flat?function(array){return arr.flat.call(array);}:"
Regarding the PHP error log (and if it's the one located under Apache), the following is what appears to be the issue:
[Mon Dec 05 16:33:05.745365 2022] [ssl:warn] [pid 2076:tid 428] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Dec 05 16:33:05.959412 2022] [core:warn] [pid 2076:tid 428] AH00098: pid file D:/AA MediaWiki/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Mon Dec 05 16:33:05.962414 2022] [ssl:warn] [pid 2076:tid 428] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Dec 05 16:33:07.716811 2022] [mpm_winnt:notice] [pid 2076:tid 428] AH00455: Apache/2.4.54 (Win64) OpenSSL/1.1.1p PHP/7.4.33 configured -- resuming normal operations
[Mon Dec 05 16:33:07.716811 2022] [mpm_winnt:notice] [pid 2076:tid 428] AH00456: Apache Lounge VC15 Server built: Jun 24 2022 10:13:23
[Mon Dec 05 16:33:07.716811 2022] [core:notice] [pid 2076:tid 428] AH00094: Command line: 'd:\\aa mediawiki\\xampp\\apache\\bin\\httpd.exe -d D:/AA MediaWiki/xampp/apache'
[Mon Dec 05 16:33:07.719812 2022] [mpm_winnt:notice] [pid 2076:tid 428] AH00418: Parent: Created child process 3800
[Mon Dec 05 16:33:08.072891 2022] [ssl:warn] [pid 3800:tid 432] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Dec 05 16:33:08.134905 2022] [ssl:warn] [pid 3800:tid 432] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Dec 05 16:33:08.166913 2022] [mpm_winnt:notice] [pid 3800:tid 432] AH00354: Child: Starting 150 worker threads.
[Mon Dec 05 16:38:54.737854 2022] [ssl:warn] [pid 10748:tid 428] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Dec 05 16:38:54.812671 2022] [core:warn] [pid 10748:tid 428] AH00098: pid file D:/AA MediaWiki/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Mon Dec 05 16:38:54.815672 2022] [ssl:warn] [pid 10748:tid 428] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Dec 05 16:38:54.844679 2022] [mpm_winnt:notice] [pid 10748:tid 428] AH00455: Apache/2.4.54 (Win64) OpenSSL/1.1.1p PHP/7.4.33 configured -- resuming normal operations
[Mon Dec 05 16:38:54.844679 2022] [mpm_winnt:notice] [pid 10748:tid 428] AH00456: Apache Lounge VC15 Server built: Jun 24 2022 10:13:23
[Mon Dec 05 16:38:54.844679 2022] [core:notice] [pid 10748:tid 428] AH00094: Command line: 'd:\\aa mediawiki\\xampp\\apache\\bin\\httpd.exe -d D:/AA MediaWiki/xampp/apache'
[Mon Dec 05 16:38:54.848680 2022] [mpm_winnt:notice] [pid 10748:tid 428] AH00418: Parent: Created child process 7376
[Mon Dec 05 16:38:55.165715 2022] [ssl:warn] [pid 7376:tid 432] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Dec 05 16:38:55.227719 2022] [ssl:warn] [pid 7376:tid 432] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Dec 05 16:38:55.260719 2022] [mpm_winnt:notice] [pid 7376:tid 432] AH00354: Child: Starting 150 worker threads.
As to what style I'm using, it should be set as Vector in the LocalSettings file. 85.219.50.188 (talk) 15:41, 5 December 2022 (UTC)
After fixing the error by using "localhost" as the server name, that error has disappeared but the wikimedia page still has no style. 85.219.50.188 (talk) 15:47, 5 December 2022 (UTC)
So that looks like what load.php should look like for a JS. Do all of them look like that or are some blank or have error messages? In particular, can you check the CSS one too (The css load.php should show up in a different section of the developer toolbar. The url will end in &only=styles&skin=vector )
The PHP log you posted is unlikely to be related to the style issue.
You can double check what skin you are currently using by looking in Special:Preferences. Bawolff (talk) 23:22, 5 December 2022 (UTC)
Hmm, the issue might be then that there is no load.php for css. I am currently in the CSS Network tab and nothing shows up at all, but there are no errors in any tab either.
And yes, I have just checked that I'm using Vector. 85.219.50.188 (talk) 12:01, 6 December 2022 (UTC)
You could look in the view source view, and try and find the <link rel="stylesheet" tag. Bawolff (talk) 21:11, 6 December 2022 (UTC)
The only line which contains it should be:
<link rel="stylesheet" href="/wiki/load.php?lang=en-gb&amp;amp;modules=skins.vector.styles.legacy&amp;amp;only=styles&amp;amp;skin=vector"/> 85.219.50.188 (talk) 12:19, 9 December 2022 (UTC)
I assjme those &amp;amp; are just & ?
what is contents of
/wiki/load.php?lang=en-gb&modules=skins.vector.styles.legacy&only=styles&skin=vector ? Is it css? an error? Blank? Bawolff (talk) 17:07, 11 December 2022 (UTC)

Update From 1.38.4 To 1.39 Ends With An SQL Error

Hello


We got this error after automatic upgrade to v 1.39:

Deprecated: Caller from MediaWiki\User\UserOptionsManager::loadOptionsFromDb ignored an error originally raised from MediaWiki\Revision\RevisionStore::fetchRevisionRowFromConds: [1054] Unknown column 'rev_actor' in 'field list' in /path/to/rootdir/includes/debug/MWDebug.php on line 381

MediaWiki internal error.

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

Error 1054: Unknown column 'rev_actor' in 'field list'

Function: MediaWiki\Revision\RevisionStore::fetchRevisionRowFromConds

Query: SELECT rev_id,rev_page,rev_timestamp,rev_minor_edit,rev_deleted,rev_len,rev_parent_id,rev_sha1,comment_rev_comment.comment_text AS `rev_comment_text`,comment_rev_comment.comment_data AS `rev_comment_data`,comment_rev_comment.comment_id AS `rev_comment_cid`,actor_rev_user.actor_user AS `rev_user`,actor_rev_user.actor_name AS `rev_user_text`,rev_actor,page_namespace,page_title,page_id,page_latest,page_is_redirect,page_len,user_name FROM `zudn_revision` JOIN `zudn_revision_comment_temp` `temp_rev_comment` ON ((temp_rev_comment.revcomment_rev = rev_id)) JOIN `zudn_comment` `comment_rev_comment` ON ((comment_rev_comment.comment_id = temp_rev_comment.revcomment_comment_id)) JOIN `zudn_actor` `actor_rev_user` ON ((actor_rev_user.actor_id = rev_actor)) JOIN `zudn_page` ON ((page_id = rev_page)) LEFT JOIN `zudn_user` ON ((actor_rev_user.actor_user != 0) AND (user_id = actor_rev_user.actor_user)) WHERE rev_id = 22052 LIMIT 1


Can we do something before the update to fix this issue or is it caused by the installer (Installatron in this case)?

Would manual update work?


Thank you

Gustav Gustav.zone (talk) 16:00, 3 December 2022 (UTC)

Did you run update.php? This is the type of error you would get if update.php was not run. (Although you would probably have to be going from a version earlier than 1.38)
Note: mediawiki does not have a builtin auto upgrade feature. Bawolff (talk) 19:26, 3 December 2022 (UTC)

How to host MediaWiki on the dark web?

I've seen the hidden wiki on the dark web, and I need to know how to set up a MediaWiki website on the dark web but with a more updated version (like 1.39.0) than the one which is used in the hidden wiki. Could someone explain it to me step by step? The Savvy Wizard (talk) 21:17, 4 December 2022 (UTC)

Its mostly the same as a normal MediaWiki setup. TOR mostly operates mostly on the layer below mediawiki. The MediaWiki part of the setup is no different.
If you have strong privacy requirements, I would recommend hiring a security expert to ensure your setup is secure and correct. Bawolff (talk) 23:48, 4 December 2022 (UTC)

how do I run mediawiki on my android phone or cloud?

Odd question but is it possible to do this? What I mean is not to load it, as that's done through special skins abd stuff, but run it, like with xampp. I don't want to get a third party hosting service yet but I want to be able to access my mediawiki from anywhere.

Basically is it possible to run something like xampp, or similar, from my phone or a cloud service and be able to access mediawiki from my phone or computer? Preferably the cloud, or atleast access it on the cloud, as my current situation has made me rethink about safe keeping important data. Dark gundam (talk) 23:15, 4 December 2022 (UTC)

Directly on your phone is probably hard. Its definitely possible, but there would be effort involved.
On the cloud is easy and is the normal way that mediawiki is operated. Normally you would get a VPS from a cloud provider and install mediawiki on it. This does cost money. A popular budget option is https://digitalocean.com (about $4/month) but there are lots of options out there. Bawolff (talk) 23:45, 4 December 2022 (UTC)
Directly on phone is hard, but how can one start? I'm in the same position of the OP. Any tips that serve as a guide through the process? BeaKarnstein (talk) 13:50, 16 March 2024 (UTC)
You would probably need to install a terminal emulator and php. Not sure if php comes prepackaged for phpnes or not Bawolff (talk) 21:45, 16 March 2024 (UTC)

{ANSWERTABLE} placeholder only shows questions, not answers!

Hello,

I am setting up email notifications for survey responses.

I want to be able to see the survey responses in the email, so have selected the 'detailed' notifications which include {ANSWERTABLE}. However, when I receive the email, it only lists the survey questions and NOT the answers to the questions. Am I doing something wrong?

Thanks for your help! 86.28.181.201 (talk) 10:07, 5 December 2022 (UTC)

How to set up some "survey"? Please provide sufficient context, and please follow "Post a new question" in the sidebar. Thanks. Malyacko (talk) 12:52, 5 December 2022 (UTC)

Transclusion at end of a sentence (full stop).

Hello everybody,


I have checked the help page but didn't find a solution for my problem.


Transclusion - MediaWiki


When I have an optional parameter in dem middle of a sentence it would l write something like this.


The {{{Parameter|rabbits}}} are in the garden.


This construction works when its an optional parameter and when no parameter is given only one space is between the parameter and the rest of the sentence. Like this.


The are in the garden.


however when I try to substitute something at the end of the sentence (in the garden) I would get something like.


"The rabbits are in the garden ." When I'm using the parameter with an space at the beginning, it does not take the space. I tried to do it like


The rabbits are{{{ in the garden}}}. Which results in


The rabbits arein the garden.


Does anybody knows a good solution for this. I would have to create all templates with fullstop at the end when used at the end of a sentence?


Thank you very much. 193.110.182.11 (talk) 12:50, 5 December 2022 (UTC)

Did you try using &#32; instead of a space?
If that doesn't work, try &nbsp; Bawolff (talk) 20:11, 5 December 2022 (UTC)
Thank you very much Bawolff for your reply,
I tried using the template and before the parameter string I used either &#32 and
&nbsp. But it seems not to work. Is it correct like this
{{Template|Location=&#32in the garden}}.
Thank you very much for your reply. Fhihu (talk) 11:57, 6 December 2022 (UTC)
The semicolon is important.
What is the precise thing you are doing?
Because when i tried:
the rabbits are {{{param|in the garden}}}.
I got
The rabbits are in the garden.
With no weird spacing issues. Bawolff (talk) 21:19, 6 December 2022 (UTC)
Hello Bawolff, thank you very much for your kind reply.
Yes I forgot the semicolon. Perfect.
When you use a parameter everything is okay.
the rabbits are {{{param|in the garden}}}.
results in:
The rabbits are in the garden.
But when you don't use a parameter (optional) in this case leaving "in the garden" empty
the rabbits are {{{param|}}}.
results in:
The rabbits are .
So between the last letter and the fullstop is a space.
Thats why I thought about creating template like this:
the rabbits are{{{param|&nbsp;in the garden}}}.
which result in
The rabbits are in the garden.
An when I don't use a parameter
the rabbits are{{{param|}}}.
I get
The rabbits are.
Where the fullstop is following the last character. I hope it's understandable what Im trying to achieve.
Greetings.
fhihu 80.120.111.178 (talk) 10:37, 7 December 2022 (UTC)
For that, try something like {{#if:{{{param|}}}| {{{param}}}|}}
Assuming extension:ParserFunctions are installed. Bawolff (talk) 23:04, 7 December 2022 (UTC)
Hello Bawolff, thank you very much for your kind reply and help.
I have checked the parser function in templates helppage
Help:Parser functions in templates
But I don't fully understand how it works.
I created a template (Tmplte 1) like this:
The {{{Noun|rabbit}}} plays with the dog{{#if:{{{Where|}}}|{{{Where}}}|}}.
The “Where” param is optional.
When I call the template I use
{{tmplte_1|Noun=rabbit|Where=in the garden}}
Which results in
The rabbit plays with the dogin the garden.
I can’t see any advantage to the way I did it before.
Do I have to use also an non-breaking space like this
The {{{Noun|rabbit}}} plays with the dog{{#if:{{{Where|}}}|&nbs;{{{Where}}}|}}.
Thank you very much
hihu Fhihu (talk) 09:32, 16 December 2022 (UTC)
#if lets you add additional stuff if the parameter is set. See also help:extension:ParserFunctions.
The {{{Noun|rabbit}}} plays with the dog{{#if:{{{Where|}}}| {{{Where}}}|}}.
Whitespace is deleted at the beginning of unnamed template parameters (but not named ones) which is why we use the &#32; or &nbsp; if we want a space at the beginning of a parameter to #if ( 32 is normal space,nbsp is non breaking space) Bawolff (talk) 07:29, 19 December 2022 (UTC)

MediaWiki docker container persistence

Hello,

I am trying to setup a cloud MediaWiki instance on Azure using the MediaWiki docker image.


I successfully configured the wiki and have been able to get it running in Azure, however with any container I would like to persist images/files etc. I attempted to use the MediaWiki extension `WindowsAzureStorage` however the configuration steps provided produced the following error [bf49979ead08c3a03544c173] /index.php/Special:SpecialPages Error: Class 'WindowsAzureFileBackend.


Instead, I have mounted an Azure File Share to the var/www/html/images directory, and when a user uploads an image to the wiki I can see the Azure File Share being automatically populated with all the required directories and files. I'm happy this proves that the mount is able to write to my Azure File Share.


My issue is that the thumbnail of the image is not actually present on the wiki page. After uploading the file via the wiki, the upload image page does not show the image thumbnail and instead shows small generic thumbnail icon is there (not my image). If I select the file/thumbnail or look in the browser console I get Failed to load resource: the server responded with a status of 400 (Bad Request).


I have read through my wiki Debug Log and cannot pinpoint the root cause for the image thumbnail not loading. I can provide logs if required.


Any support on how to enable persistent uploaded files/images on a cloud based MediaWiki would be greatly appreciated.

Product Version
MediaWiki 1.38.4
PHP 8.0.26 (apache2handler)
MySQL 5.7.39-log

Price1712 (talk) 13:24, 5 December 2022 (UTC)

Does your apache web server logs say why it is a 400 error?
Generally 400 comes from the webserver and not mediawiki. Bawolff (talk) 21:21, 6 December 2022 (UTC)
Hi Bawolff,
Thank you for replying.
I have tried to find the apache web server logs however I can't quite find the log files. Would you be able to point me in the right direction so I can have a look?
Since my original post, I have discovered that once I mount my images path to Azure, the images are being written as nobodyuser and nobodygroup, where as before the mount they are being written inside the container as www-data. I'm not sure if this would have an influence on the read/write ability of the web server? Price1712 (talk) 13:34, 7 December 2022 (UTC)
On linux based systems apache log files are most commonly at /var/log/apache2/error_log or sometimes /var/log/httpd it can vary depending on OS or config files so could be anywhere.
Most commonly if the user/group was an issue you would get a 403 not 400 error. Bawolff (talk) 23:02, 7 December 2022 (UTC)
HI @Bawolff,
Thank you for your reply. I immediately read it, and have since continued to try and resolve my initial issue, but still no luck.
I located /var/log/apache2/error.log as per your suggestion, but it does not provide me with any useful information as it is empty. I have tried to open the image, upload a new image etc. to try generate some errors but still nothing has been produced.
To date: My thumbnails are still not loading in my docker cloud wiki, yet they are being written to Azure storage and I have absolutely no idea how to proceed. I tried to implement the WindowsAzureStorage extension for the 3rd/4th time but I am convinced this extension is not stable as I still couldn't get it to work.
Any new ideas or support on how to enable my thumbnails to be persisted in my linux based docker cloud wiki would be greatly appreciated. Price1712 (talk) 15:31, 4 January 2023 (UTC)

Problem with updating to 1.39

Currently, we're running MediaWiki 1.35.0 and trying to update to 1.39.

I did a backup of the 1.35 database, created a new database for 1.39 and then imported the DB there. Everything with that seemed to run fine.

Before running the install script, I ran the update script, and I get the following error:

MediaWiki 1.39.0 Updater
Your composer.lock file is up to date with current dependencies!
Going to run database updates for AA139
Depending on the size of your database this may take a while!
Can not upgrade from versions older than 1.31, please upgrade to that version or later first.

Any ideas on why it thinks my database is such an old version? Blinkingline (talk) 14:34, 5 December 2022 (UTC)

Ah, figured it out, I had some bad permissions on my DB user. Blinkingline (talk) 15:38, 5 December 2022 (UTC)
That indeed sounds like a mediawiki bug. We should detect that situation.
https://phabricator.wikimedia.org/T324508 Bawolff (talk) 20:09, 5 December 2022 (UTC)

Help

Can somebody assist me in speaking to somebody on this website to adjust some information I requested. Can I get an email Of a contact please 2600:1012:B027:E331:9B1:2955:F595:89DE (talk) 17:36, 5 December 2022 (UTC)

Please provide a full link to "this website" and read "Post a new question" in the sidebar. Thanks. Malyacko (talk) 18:30, 5 December 2022 (UTC)

Join the Coolest Tool Award 2022: Friday, Dec 16th, 17:00 UTC

The fourth edition of the Wikimedia Coolest Tool Award will happen online on Friday 16 December 2022 at 17:00 UTC!

This award is highlighting software tools that have been nominated by contributors to the Wikimedia projects. The ceremony will be a nice moment to show appreciation to our tool developers and maybe discover new tools!

Read more about the livestream and the discussion channels.

Thanks for joining! -Komla


MediaWiki message delivery 18:53, 5 December 2022 (UTC) MediaWiki message delivery (talk) 18:53, 5 December 2022 (UTC)

WTF Safari is shown a mobile version on desktop PC!!!!!!!!!!!!!!!!!!!!!!!!!!!!

this one 13.12 on a MBA - but this in inadmissible!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 2A02:1210:4095:3900:4D6A:9207:F949:E424 (talk) 20:29, 5 December 2022 (UTC)

Please read "Post a new question" in the sidebar. We have no idea what "13.12" or "MBA" is or which website this is about. Malyacko (talk) 20:35, 5 December 2022 (UTC)

Installing Extensions

Hey guys. I am completely new to this whole thing and in the process of setting up a wiki for our community.

As a means of importing some templates from one of our sister-sites, we need to install the following packages -

https://packagist.org/packages/composer/semverhttps://packagist.org/packages/cssjanus/cssjanus https://packagist.org/packages/liuggio/statsd-php-client


However, we have no idea where these can be installed within the server as this is vastly above our current skill level.

Any help would be appreciated. 51.14.231.178 (talk) 22:28, 5 December 2022 (UTC)

I haven't really got my head round composer but have a go at this if nobody else replies!
cd /var/www/........to your website directory
sudo apt install composer
composer require composer/semver
composer require cssjanus/cssjanus
composer require liuggio/statsd-php-client
Jonathan3 (talk) 22:51, 5 December 2022 (UTC)
Lets take a step back.
Why are you trying to install these things? These aren't mediawiki extensions, they are php libraries. They might be used by various extensions, but normally you would not install them yourself, they would be installed automatically when you install something that uses them.
Is there an error message or something that lead you to believe you need these things? Bawolff (talk) 23:16, 5 December 2022 (UTC)
"Lets take a step back." Always wise words... Jonathan3 (talk) 23:24, 5 December 2022 (UTC)

Extensions not appearing in special verison

Mediawiki not loading any of the extensions, i am trying to add pluggablesso, pluggableauth and samlphp, i couldnt see any of the extensions in Special:Version


Windows 2019

MWIKi 1.35.8

Php 7.3.25 Ramvenkey6278 (talk) 04:47, 6 December 2022 (UTC)

What did you put in LocalSettings.php ? Bawolff (talk) 07:51, 6 December 2022 (UTC)
Tried this first
wfLoadExtension( 'PluggableSSO' );
and then
require_once "$IP/extensions/PluggableSSO\src\PluggableSSO.php";
and upgrade using "mw-config" Ramvenkey6278 (talk) 22:17, 6 December 2022 (UTC)
You should definitely use the wfLoadExtension version, not the require_once.
So what happened when you added the wfLoadExtension? Was there an error, did it show up in special:version? Bawolff (talk) 22:20, 6 December 2022 (UTC)
Thank you for your reply, i tried both option, No error, it is not showing up in special version.
Now i got only this wfLoadExtension( 'PluggableSSO' ); Ramvenkey6278 (talk) 23:18, 6 December 2022 (UTC)
Are you sure you are editing the correct LocalSettings.php?
You can test by putting die("test"); in LocalSettings.php temporarily, which will replace your entire wiki with the word "test" until you remove it from LocalSettings.php Bawolff (talk) 23:43, 6 December 2022 (UTC)
that is interesting, after adding this line in die("test"); to localsettings.php, still the site is showing up all the contents, not test page. Ramvenkey6278 (talk) 00:16, 7 December 2022 (UTC)
I manage to fix this, i had to recreate localsettings.php, as the old one is not updating, i can confirm, i can see the extension under special version.
Thank you for your help Ramvenkey6278 (talk) 23:10, 7 December 2022 (UTC)
Hmm. That's weird. If i were to guess, some sort of issue with php opcache. Bawolff (talk) 09:49, 8 December 2022 (UTC)

Media uploads don't work (no thumbnails)

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.


As you can see here: https://joinfediverse.wiki/Special:ListFiles

Since October many media uploads don't work as they should. Previews in different sizes, like thumbnails are not generated, so using the file in the wiki almost always leads to a blank preview. PKFP (talk) 07:18, 6 December 2022 (UTC)

So thumb.php works which suggests not a problem with image rendering.
Do you have 404 thumbnailing enabled? It looks kind of like what would happen if 404 thumbnailing was half enabled. Bawolff (talk) 07:50, 6 December 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

VisualEditir does not work at Flow (Structered discussions) talk pages.

After upgrading from 1.38.4 to 1.39.0 VisualEditir does not work at Flow (Structered discussions) talk pages having following error:

[Y48AWn@IyD2bEpG6yTCgxAAAAgY] Exception caught: Conversion from 'html' to 'wikitext' was requested, but core's Parser only supports 'wikitext' to 'html' conversion

Previously I had such problem but the patch helped to resolve the problem, but now it doesn't help.

Any ideas how to resolve the problem? Fokebox (talk) 08:45, 6 December 2022 (UTC)

I have to raise the topic as the issue is not still resolved and still exists at MediaWiki 1.39.1 Fokebox (talk) 11:38, 28 December 2022 (UTC)

Calendar

Hello

Please suggest me a calendar extension for mediawiki.

It should have color for events, events should last more than one day. should be able to include links. I have tried , Mscalendar and Js calendar.

Js calendar is not showing up any options to add events. Luciferindcok (talk) 09:16, 6 December 2022 (UTC)

It depends on what you want it for, but you could use Extension:Cargo. It has a calendar output format. Jonathan3 (talk) 09:53, 6 December 2022 (UTC)
thanks you and what all should be added in the wiki text to get the calendar displayed with basic features? Luciferindcok (talk) 04:51, 7 December 2022 (UTC)
You could ask in the extension's talk page.
It's hard to answer without more detail about your project. Jonathan3 (talk) 22:25, 7 December 2022 (UTC)

mediawiki 1.38 upgrade to 1.39

After upgrading from 1.38 to 1.39

php maintenance/update.php gives error,

Modifying tl_namespace field of table templatelinks...Wikimedia\Rdbms\DBQueryError from line 1618 of /var/www/html/includes/libs/rdbms/database/Database.php: Error 1091: Can't DROP INDEX `PRIMARY`; check that it exists

Function: Wikimedia\Rdbms\Database::sourceFile( /var/www/html/maintenance/archives/patch-templatelinks-tl_title-nullable.sql )

Query: ALTER TABLE  `templatelinks`

DROP  PRIMARY KEY 5.193.68.230 (talk) 18:04, 6 December 2022 (UTC)

mysql> describe templatelinks;
+-------------------+---------------------+------+-----+---------+-------+
| Field             | Type                | Null | Key | Default | Extra |
+-------------------+---------------------+------+-----+---------+-------+
| tl_from           | int(10) unsigned    | NO   |     | 0       |       |
| tl_namespace      | int(11)             | NO   | MUL | 0       |       |
| tl_title          | varbinary(255)      | NO   |     |         |       |
| tl_from_namespace | int(11)             | NO   | MUL | 0       |       |
| tl_target_id      | bigint(20) unsigned | NO   | MUL | NULL    |       |
+-------------------+---------------------+------+-----+---------+-------+ 5.193.68.230 (talk) 18:07, 6 December 2022 (UTC)
SHOW INDEXES FROM templatelinks;
+---------------+------------+----------------------------------+--------------+-------------------+-----------+-------------+----------+--------+------+------------+---------+---------------+---------+
| Table         | Non_unique | Key_name                         | Seq_in_index | Column_name       | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment | Ignored |
+---------------+------------+----------------------------------+--------------+-------------------+-----------+-------------+----------+--------+------+------------+---------+---------------+---------+
| templatelinks |          1 | tl_namespace                     |            1 | tl_namespace      | A         |        3300 |     NULL | NULL   |      | BTREE      |         |               | NO      |
| templatelinks |          1 | tl_namespace                     |            2 | tl_title          | A         |     2479612 |     NULL | NULL   |      | BTREE      |         |               | NO      |
| templatelinks |          1 | tl_namespace                     |            3 | tl_from           | A         |    47112645 |     NULL | NULL   |      | BTREE      |         |               | NO      |
| templatelinks |          1 | tl_backlinks_namespace           |            1 | tl_from_namespace | A         |        3686 |     NULL | NULL   |      | BTREE      |         |               | NO      |
| templatelinks |          1 | tl_backlinks_namespace           |            2 | tl_namespace      | A         |       14745 |     NULL | NULL   |      | BTREE      |         |               | NO      |
| templatelinks |          1 | tl_backlinks_namespace           |            3 | tl_title          | A         |     1346075 |     NULL | NULL   |      | BTREE      |         |               | NO      |
| templatelinks |          1 | tl_backlinks_namespace           |            4 | tl_from           | A         |    47112645 |     NULL | NULL   |      | BTREE      |         |               | NO      |
| templatelinks |          1 | tl_target_id                     |            1 | tl_target_id      | A         |     1624573 |     NULL | NULL   |      | BTREE      |         |               | NO      |
| templatelinks |          1 | tl_target_id                     |            2 | tl_from           | A         |    47112645 |     NULL | NULL   |      | BTREE      |         |               | NO      |
| templatelinks |          1 | tl_backlinks_namespace_target_id |            1 | tl_from_namespace | A         |        5130 |     NULL | NULL   |      | BTREE      |         |               | NO      |
| templatelinks |          1 | tl_backlinks_namespace_target_id |            2 | tl_target_id      | A         |      298181 |     NULL | NULL   |      | BTREE      |         |               | NO      |
| templatelinks |          1 | tl_backlinks_namespace_target_id |            3 | tl_from           | A         |    47112645 |     NULL | NULL   |      | BTREE      |         |               | NO      |
+---------------+------------+----------------------------------+--------------+-------------------+-----------+-------------+----------+--------+------+------------+---------+---------------+---------+ 5.193.68.230 (talk) 18:08, 6 December 2022 (UTC)
Do you have any solution for this? 5.193.68.230 (talk) 07:51, 7 December 2022 (UTC)
See the corresponding bug report: phab:T324646 Malyacko (talk) 14:15, 7 December 2022 (UTC)
There is no solution on phabricator yet. 2001:8F8:1E6D:C2FB:E038:8CBE:A590:7FF0 (talk) 14:53, 8 December 2022 (UTC)

Help with Scribunto and Raspberry PI

Hi,

I installed MediaWiki 39.0 on a Raspberry PI 4 and everything seems ok.

Then I'd want to export some pages from Wikipedia.it and import on my Wiki.

I exported for example th page related to Cina including all templates.

I imported the resulting XML file on my Wiki using Intercity Prefix wikipedia, then I try to see the result for the Cina page.

When the page is displayed I see the following errors on page:

Varie
Codici ISO 3166 [[ISO 3166-2:{{#Property:P297}}|{{#Property:P297}}]], {{#Property:P298}}, {{#Property:P299}}
TLD Modulo:Wikidata:455: attempt to index field 'wikibase' (a nil value)
Prefisso tel. Modulo:Wikidata:455: attempt to index field 'wikibase' (a nil value)
Sigla autom. CHN
Inno nazionale Marcia dei Volontari

File:March of the Volunteers instrumental.ogg

Festa nazionale 1º ottobre
Cina - Mappa
Evoluzione storica
Stato precedente Repubblica di Cina Repubblica di Cina

Il template {{Coord}} ha riscontrato degli errori (istruzioni): Modulo:Wikidata:455: attempt to index field 'wikibase' (a nil value)

Errore Lua in Modulo:Wikidata alla linea 455: attempt to index field 'wikibase' (a nil value).Errore Lua in Modulo:Wikidata alla linea 455: attempt to index field 'wikibase' (a nil value).Errore Lua in Modulo:Wikidata alla linea 455: attempt to index field 'wikibase' (a nil value).Errore Lua in Modulo:Wikidata alla linea 455: attempt to index field 'wikibase' (a nil value).Errore Lua in Modulo:Wikidata alla linea 455: attempt to index field 'wikibase' (a nil value).Errore Lua in Modulo:Wikidata alla linea 455: attempt to index field 'wikibase' (a nil value).


I installed also lua 5.1.5 on my Raspberry and added the lines

$wgScribuntoDefaultEngine = 'luastandalone';

$wgScribuntoEngineConf['luastandalone']['luaPath'] = '/usr/bin/lua5.1';

to LocalSettings.php.

What's my errors?


Thanks,

Paolo Kato196613 (talk) 19:32, 6 December 2022 (UTC)

All of this is related to extension:Wikibase not scribunto. Bawolff (talk) 19:45, 6 December 2022 (UTC)
Thanks,
but which is the problem, I don't understand what can I do to solve.
Regards,
Paolo Kato196613 (talk) 19:56, 6 December 2022 (UTC)
The current solutions for using wikibase in an external wiki are not great.
You can setup wikibase with like no repo, which makes everything a no-op.
you can use Extension:UnlinkedWikibase but the syntax isnt compatible so you have to change all the templates anyways.
or you can delete wikibase stuff from the templates. Bawolff (talk) 21:09, 6 December 2022 (UTC)
Hi,
now I don't receive any other error but all the imported template from Wikipedia doesn't work, why?
Kato Kato196613 (talk) 19:41, 7 December 2022 (UTC)
What did you do to fix the errors, which template, what is it supposed to do, what did it do instead?
If you have a link to your wiki, that would be helpful. Bawolff (talk) 22:58, 7 December 2022 (UTC)
Hi,
I don't have a public IP sorry.
I installed all the extensions used by Wikipedia, the I re-imported the pages I interested in.
At this point no error but instead af all Template formatting I can see only the words Template:Stato (the word Template and the name of it).
When I exported from it.wikipedia.org I included also Tempates and when I imported I used it code for Interwiki and Principale (Main) for namespace to import in.
Thanks,
Paolo Kato196613 (talk) 10:57, 8 December 2022 (UTC)
that usually means the Template:Stato is missing. Are you sure you copied it over.
Copying templates from wikipedia can be really finicky. Bawolff (talk) 13:08, 8 December 2022 (UTC)

Two domain names with the same server

Hello everybody

With two domain names, example1.org and example2.fr, how can i define $wg server in local settings with mw1.39 ? syntax?

Thanks you Gribouillot (talk) 23:10, 6 December 2022 (UTC)

You can't. Or basically you shouldn't. Choose one domain as the main one, and keep the other as a redirect.
Keeping a variable $wgServer, that changes depending on the domain you came from, will cause pages to be cached with one $wgServer value, and served to the other domain, causing your visitors to jump between domains when following links, causing sessions to be lost. It will also cause confusion on search engines indexing your site.
The only way to achieve a "2 domains not randomly linking between each other" would be to disable caching completely, but that would severely slow down your site Ciencia Al Poder (talk) 11:49, 8 December 2022 (UTC)
Thank you .
I have the answer by ChatbotOpenAI the famous OpenSourceAI
In MediaWiki 1.38, you can define the $wgServer variable in your LocalSettings.php file to specify the server name and protocol for your website. For example:
$wgServer = [
    'https://www.example1.org',
    'https://www.example2.fr',
];
This will tell MediaWiki to use the specified server names and protocols for your website. Keep in mind that you need to specify the full URL, including the protocol (http or https) and the "www" subdomain if it is used.
If you are using MediaWiki 1.39 or later, you should use the $wgCanonicalServer variable instead of $wgServer. The syntax is the same, so you can use the same code shown above to define your server names and protocols.
I hope this helps! Let me know if you have any other questions.
But the answer by OpenAI dont tell about the links, the problem of the cache and the speed of the site
Thank you Gribouillot (talk) 10:07, 13 December 2022 (UTC)
OpenAI is plainly wrong, because $wgServer doesn't support an array. Ciencia Al Poder (talk) 12:32, 23 December 2022 (UTC)

Issues with MediaWiki upgrade, spam filters, and email system

This is in part a continuation of Project:Support desk/Flow/2022/08#h-Missing_files_after_migrating_from_1.32_to_1.38-20220801144300


Hello,


I'm one of the admins at the independent Bakugan Wiki, and we've been dealing with a few issues for years regarding spam bots, a bug impeding MediaWiki upgrading, and spam filters.


For a while we've been dealing with spam bots, which register to the wiki by the hundreds. We have installed many of the spam extensions we saw on utilized on other similar wikis (ex: RS Wiki), but the bots are still able to get through, with the only thing stopping them an Abuse Filter quick-fix that prevents non-sysop editors from creating pages.


One of our theories on how to fix the issue was to upgrade our MediaWiki version from 1.32 to 1.38, but we then ran into a bug preventing this detailed in the above topic. I lack a deep understanding of database systems, but I will do my best to assist and answer any questions. At the very least, resolving this and upgrading the site would be a good start to fixing the domino line of issues.


Email is probably something we have to resolve on our end, but I just wanted to ensure that there wouldn't be anything to resolve in regards to MediaWiki.


I'd like to get this resolved so that the site can open up to new editors again, and any help is appreciated. Please let me know if I can help in any way or if I've missed something in this question.


Thank you,

Abce2


MediaWiki: 1.32.0

PHP: 7.4.3 (apache2handler)

https://bakugan.wiki/wiki/Special:Version Abce2 (talk) 02:50, 7 December 2022 (UTC)

So spam prevention hasn't changed much between versions (unfortunately). Its unlikely an upgrade will help that.
A lot of people report success using extension:ConfirmEdit using QuestyCaptcha. Most spammers try and be generic as possible so get stumped by unique questions as long as you aren't a huge website.
By default email uses the server's email system. Often using manual:$wgSMTP to set an external email sender is more reliable.
Regarding the upgrade: based on what you previously wrote, images were uploaded by real users with valid user_id (img_user), but for some reason img_actor was 0. Which is a bit different than the usual problem people have with the actor migration. Did running migrateActors.php help? Did the script output any errors (or anything else)? Bawolff (talk) 03:36, 7 December 2022 (UTC)
Hello, and thank you for the response.
I will definitely look into adding QuestyCaptcha to ConfirmEdit and see how that goes.
Looking through the conversation I had with the user who ran migrateActors.php, it does not appear to have worked or done much, but I will get the details and report back.
Thank you,
Abce2 Abce2 (talk) 04:53, 7 December 2022 (UTC)

Old style TOC in MW 1.39

Hi,

We know that Vector skin has been modified starting from1.39. I do like the skin except some things. So I would like to keep TOC at the beginning of the page, not moving it to side bar. Is it possible to set it this way? Fokebox (talk) 10:50, 7 December 2022 (UTC)

Raise my question ). Is there such a setting? Fokebox (talk) 08:51, 22 December 2022 (UTC)
Hi, no there is no such setting and there are no plans to add such additional complexity. You can use the new Vector skin (2022), you can use the Legacy Vector skin, you can install other skins, or you could customize (and maintain your customizations) any skin you prefer. Malyacko (talk) 09:56, 22 December 2022 (UTC)
It is very pity ( ... I really like how it looks like Vector-2022 skin in Mediawiki 1.38 ... It has new vector design + old style TOC ... I tried to apply the skin at MW 1.39 - but it doesn't work properly. Fokebox (talk) 11:03, 22 December 2022 (UTC)

Newly saved category page not editable/deletable

Hello,

I had several cases in the past where I created a new category page, edited it by creating a #REDIRECT and saved it again.

After that the new page is read only - even after running RunJobs.php (queue is empty). I cannot edit or delete it, only view the source code. As I experienced this will never change in the future.

Does anybody have an idea what went wrong here and how to solve it?

Is there a way to hack the DB if there is no solution via the frontend?

Here is my configuration:

MediaWiki: 1.35.3

PHP: 7.4.30 (fpm-fcgi)

MariaDB: 10.5.18-MariaDB-1:10.5.18+maria~ubu2004-log

ICU: 66.1

Semantic MediaWiki 3.2.3

Semantic Result Formats 3.2.0

Semantic Compound Queries 2.1.0

Page Forms 5.2.1

+ some other extensions.

Many thanks! Sochin67 (talk) 15:53, 7 December 2022 (UTC)

Do you get an error message when you try to edit/delete? Bawolff (talk) 17:39, 7 December 2022 (UTC)
No errors, there is simply no option showing up for editing or deleting, only for viewing the content. Basically the same situation as if the job queue for the new page has not yet been processed.
Thanks! 80.155.181.123 (talk) 16:40, 8 December 2022 (UTC)
What happens if you manually change the url to add ?action=edit at the end (or &action=edit if the url already has a ? In it) Bawolff (talk) 18:05, 8 December 2022 (UTC)
&action=edit:
You are not authorized to edit the page for the following reason:
This page is locked to prevent unintentional changes to data while a data change operation is in progress. Since the data change process depends on the scope and processing frequency of the job queue, it may take a moment for the page to be shared and edited again.
?action=edit:
This page does not currently contain any text. You can create them, search for their title on other pages or view the corresponding logbooks. Sochin67 (talk) 21:28, 8 December 2022 (UTC)
Im guessing this must be part of SMW or a different extension. Bawolff (talk) 18:15, 9 December 2022 (UTC)
Okay, thank you! Sochin67 (talk) 18:05, 10 December 2022 (UTC)

e-mail address no longer exists and password lost

my old e-mail "****@excite.com" no longer exists. Excite.com is bought out and discontinued their e-mail.

In addition I forgot my password.

my current e-mail is ****@ameritech.net


I would like to keep my old user name

this is a low security way to communicate this higher security issue but I see no other way 148.8.132.16 (talk) 00:08, 8 December 2022 (UTC)

Whatever website this is about, you need to contact that website. This is mediawiki.org, and there is no such user name on mediawiki.org. Malyacko (talk) 09:10, 8 December 2022 (UTC)

intl needed for PHP configuration

File:Penguin Ice 1.36 error.png

Hello. After my web host provider migrated their server, my wiki received an internal error saying that intl is required. The version currently used on my wiki family is MediaWiki 1.36. Is there any way to fix this? Thank you for reading. Newman2 (talk) 01:28, 8 December 2022 (UTC)

@Newman2 Please explain what exactly is unclear about the error message "Installing some PHP extensions is required. You are missing a required extension to PHP that MediaWiki requires to run. Please install: intl". Which information is missing how to fix this? Malyacko (talk) 09:09, 8 December 2022 (UTC)
If you dont manage the host yourself (cannot edit php.ini or install php extensions) you would need to get your host to install intl. Otherwise you have to install it. Bawolff (talk) 09:52, 8 December 2022 (UTC)
I'm a newbie with the same problem. I just installed Mediawiki on my raspberry pi with OS Raspian. I get the same response on Firefox, however i have Mediawiki running alright on Chrome (localhost). I tried
sudo apt install php-intl
the response was
php-intl is already the newest version (2:7.4+76)
Suggestions on Project:Support desk/Flow/2021/06#h-intl-2021-06-07T15:31:00.000Z from Domagoj Starcevic look promising. But for now I'm having a play with Mediawiki. Indigo141 (talk) 10:54, 14 December 2022 (UTC)
It could be disabled in config, or your webserver could be using a version of php not controlled by the OS.
Check your php.ini config to make sure extension loaded, and make sure you are looking at correct php.ini file. Bawolff (talk) 04:03, 16 December 2022 (UTC)

Content of articles became blank after upgrade

Hi guys,

I ran an upgrade from 1.31 to 1.39 and it went well with no glitch. Users, User groups, article listed and database intact: http://163.228.224.162/mediawiki/index.php/%E7%89%B9%E6%AE%8A:%E6%89%80%E6%9C%89%E9%A1%B5%E9%9D%A2

MediaWiki 1.39.0
PHP 7.4.3 (apache2handler)
MySQL 8.0.31-0ubuntu0.20.04.1
ICU 66.1

However, when I click on a page, the content does not load, it says error, no content.

I used fetchText.php, the content of each page exist in database.

Please help me. Wdcmlds (talk) 02:18, 8 December 2022 (UTC)

I enabled debug toolkit, please take a look Wdcmlds (talk) 03:57, 8 December 2022 (UTC)
Most commonly this is an issue with the actor db table not upgrading correctly. Some people have luck upgrading to 1.32 first, then running manual:cleanupUsersWithNoId.php followed by manual:migrateActors.php and then doing the rest of the upgrade. Bawolff (talk) 09:55, 8 December 2022 (UTC)

A few simple Questions

Maybe this is a somewhat unusual question, but are the following things possible with Mediawiki or does it apply to them?

Is it easy to edit?

Is it possible to convert files to pdf or print?

Is it possible to attach files?

Is there an edit history?

Are there any costs or is it free?

Is there a direct contact person?

Is real-time editing possible?

I know there are a lot of questions, but it wouldn't make much sense to explain the context now.


Thanks alot for every answere. 217.17.192.60 (talk) 08:16, 8 December 2022 (UTC)

Hi, please check the links in the first paragraph on the page MediaWiki which cover these questions. Thanks. Malyacko (talk) 09:08, 8 December 2022 (UTC)
Answering in order:
Yes (with extension:VisualEditor), i dont understand question, yes, yes, not directly but you have to have a web server, no (this question doesn't entirely make sense, you probably meant to ask something different), no (some experiments in this direction but nothing really ready) Bawolff (talk) 13:06, 8 December 2022 (UTC)

API:Patrol no parameter named rid in the interface

On section => API:Patrol#Possible_errors text "Addinotpatrollable The revision rid can't be patrolled as it's too old" uses MediaWiki:Apierror-notpatrollable/en at translatewiki.net saying => "The revision r$1 can't be patrolled as it's too old." but the API:Patrol#API_documentation shows no parameter named rid

Can someone reestablish the coherence between what is in code and the string rcid/revid to translate ? Thanks. -- Christian 🇫🇷 FR (talk) 13:17, 8 December 2022 (UTC)

presumably the $1 is supposed to be a number and not "id" Bawolff (talk) 18:13, 8 December 2022 (UTC)
I am speaking of the parameter name, not the value. Christian 🇫🇷 FR 🚨 (talk) 19:15, 8 December 2022 (UTC)
It would be revid Bawolff (talk) 21:38, 8 December 2022 (UTC)

Error running update.php - Error: Call to a member function setHook() on null

Hi we have a CentOS 7.9 server running MediaWiki 1.32.0 php 7.2.34 and MariaDB 5.5.68


As php 7 is now EOL I'd like to upgrade php to 8 and MediaWiki to 1.39.0


I upgraded php to 8.0.26 but I get the following error running ./update.php


[root@DEFRAS171-clone maintenance]# ./update.php

[b181d4e6daaac03409a8679b] [no req]   Error: Call to a member function setHook() on null

Backtrace:

from /var/www/itwiki/extensions/SimpleTable.php(77)

#0 /var/www/itwiki/extensions/SimpleTable.php(51): SimpleTable->__construct()

#1 /var/www/itwiki/includes/Setup.php(532): wfSimpleTable()

#2 /var/www/itwiki/maintenance/doMaintenance.php(83): require_once(string)

#3 /var/www/itwiki/maintenance/update.php(312): require_once(string)

#4 {main}

[root@DEFRAS171-clone maintenance]# php -v

PHP 8.0.26 (cli) (built: Nov 22 2022 17:44:09) ( NTS gcc x86_64 )

Copyright (c) The PHP Group

Zend Engine v4.0.26, Copyright (c) Zend Technologies

    with Zend OPcache v8.0.26, Copyright (c), by Zend Technologies Hughesr9 (talk) 14:36, 8 December 2022 (UTC)

Make sure you have the latest version of SimpleTable extension, or disable the extension if it doesn't support latest mediawiki. Bawolff (talk) 18:11, 8 December 2022 (UTC)

Website is disappearing from Google?

I asked Google's Webmaster forum for this, them claiming to respond "within 24 hours", and here I am days later with no dice, so I'm asking you fine folks for those who have experience in this sort of thing.

After struggling to get Google to crawl my MW-based website, I ended up installing an automatic sitemap extension, as my host provider has not given me access to SSH. Eventually, after registering my website with Google and installing the extension, it finally appeared online. But my issues are unfortunately far from over.

Initially, the problem was Google for some reason liked to index everything it could find, such as talk pages and category pages. So I altered the sitemap to omit pages like these.

Now, if you use "site:wiki.gearknob.org" on either Google or Google Images, barely anything shows up. A week ago, there were around 20 images and far more pages indexed and publicly visible. Now there's barely 2 pages of web results and NO images (Bing in comparison has around 5 pages indexed and a few images).

So I looked again, and for some reason, Google is automatically flagging over 350 pages as "duplicate" for what it calls "Duplicate without user-selected canonical", which as I understand, is intended to stop copies or earlier versions of pages from clogging up the results. However, upon looking at this list, it has named a lot of unique pages that aren't duplicates as being part of this.

How exactly would I fix something that I do not believe to be broken in the first place? How can I get my pages and images properly indexed by Google? Because already at this point, I have lost potentially tens of thousands of clicks due to this. AlexGRFan97 (talk) 14:57, 8 December 2022 (UTC)

I have no idea, but maybe $wgEnableCanonicalServerLink = true; might help. (Just a guess, i really dont know) Bawolff (talk) 18:10, 8 December 2022 (UTC)

Error on some search queries

After upgrading from version 1.36 to 1.38 when we try to search (standard wiki search no extensions) we get the following


Wikimedia\Assert\PreconditionException: Precondition failed: This Title instance does not represent a proper page, but merely a link target.


Anyone has an idea how we can fix that? It only happens on some search queries..some are working, some not.

Software Version
Mediawiki 1.38.4
Pph 7.3.33-8+ubuntu18.04.1+deb.sury.org+1 (apache2handler)
MySQL 5.7.40-0ubuntu0.18.04.1


Thanks in advance Aplevri (talk) 15:17, 8 December 2022 (UTC)

Do you get a full backtrace? Bawolff (talk) 21:36, 8 December 2022 (UTC)
Yes :)
Backtrace:
from /wikipath/vendor/wikimedia/assert/src/Assert.php(49)
#0 /wikipath/includes/Title.php(4209): Wikimedia\Assert\Assert::precondition(boolean, string)
#1 /wikipath/includes/Title.php(4190): Title->assertProperPage()
#2 /wikipath/includes/Revision/RevisionStore.php(1828): Title->getId(boolean)
#3 /wikipath/includes/Revision/RevisionStore.php(1733): MediaWiki\Revision\RevisionStore->ensureRevisionRowMatchesPage(stdClass, Title)
#4 /wikipath/includes/Revision/RevisionStore.php(1609): MediaWiki\Revision\RevisionStore->newRevisionFromRowAndSlots(stdClass, NULL, integer, Title, boolean)
#5 /wikipath/includes/Revision/RevisionStore.php(2347): MediaWiki\Revision\RevisionStore->newRevisionFromRow(stdClass, integer, Title)
#6 /wikipath/includes/Revision/RevisionStore.php(1286): MediaWiki\Revision\RevisionStore->loadRevisionFromConds(Wikimedia\Rdbms\DBConnRef, array, integer, Title)
#7 /wikipath/includes/search/RevisionSearchResultTrait.php(52): MediaWiki\Revision\RevisionStore->getRevisionByTitle(Title, boolean, integer)
#8 /wikipath/includes/search/RevisionSearchResult.php(16): RevisionSearchResult->initFromTitle(Title)
#9 /wikipath/includes/search/SqlSearchResult.php(35): RevisionSearchResult->__construct(Title)
#10 /wikipath/includes/search/SqlSearchResultSet.php(60): SqlSearchResult->__construct(Title, array)
#11 /wikipath/includes/search/SearchResultSet.php(73): SqlSearchResultSet->extractResults()
#12 /wikipath/includes/search/SearchResultSet.php(184): SearchResultSet->count()
#13 /wikipath/includes/search/SearchEngine.php(201): SearchResultSet->shrink(integer)
#14 /wikipath/includes/search/SearchEngine.php(157): SearchEngine->maybePaginate(Closure)
#15 /wikipath/includes/specials/SpecialSearch.php(446): SearchEngine->searchTitle(string)
#16 /wikipath/includes/specials/SpecialSearch.php(228): SpecialSearch->showResults(string)
#17 /wikipath/includes/specialpage/SpecialPage.php(671): SpecialSearch->execute(NULL)
#18 /wikipath/includes/specialpage/SpecialPageFactory.php(1379): SpecialPage->run(NULL)
#19 /wikipath/includes/MediaWiki.php(315): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, RequestContext)
#20 /wikipath/includes/MediaWiki.php(912): MediaWiki->performRequest()
#21 /wikipath/includes/MediaWiki.php(563): MediaWiki->main()
#22 /wikipath/index.php(53): MediaWiki->run()
#23 /wikipath/index.php(46): wfIndexMain()
#24 {main} Aplevri (talk) 06:08, 9 December 2022 (UTC)

Sorting of numbers in Spanish

Hi all, under the latest rules of writing numbers in Spanish, numbers largers than 9999 should be separated by space, not a comma or a period. In the past 20K was 20.000, but now it's 20 000. Naturally things don't get sorted right in tables with these numbers. What adjustment should I make to get it to sort under this rule? Is it possible? Cojoilustrado 03:43, 9 December 2022 (UTC)

{{formatnum:200000}} Fokebox (talk) 08:38, 9 December 2022 (UTC)
Thank you! Cojoilustrado 07:44, 16 December 2022 (UTC)

can I upgrade mediawiki from very old version?

first you download 1.35 version and install 'composer'. then run a script for composer, run a database update on the site browser, emptied the directory folder, and reinstalled it with the latest version of Wiki. However, if database query error occurred, you must resolve this by executing the 'update.php' file of maintenance as a shell.

hello, can anybody help me?

I found some database in my file. but it's version is 1.18.6, and I tried upgrade to latest version but I think it's too late(it's unsupported version.)

when I try database upgrade, I just get message like this.


Error 1072: Key column 'el_id' doesn't exist in table (localhost)

Function: Wikimedia\Rdbms\Database::sourceFile( C:\xampp\htdocs\mywiki/maintenance/archives/patch-externallinks-el_index_60.sql )

Query: CREATE INDEX el_index_60 ON `externallinks` (el_index_60, el_id)


and I click "next" button, it says:



An error occurred:

Error 1054: Unknown column 'ar_id' in 'field list' (localhost)

Function: MigrateComments::migrate

Query: SELECT  ar_id,ar_comment  FROM `archive`    WHERE ar_comment_id = 0 AND (1=1)  ORDER BY ar_id LIMIT 100  


I searched this, 'ar_id' introduced from 1.22 version. but 1.22 version was unsupported too.

I think because of this database is very old version. can I recover this database? I'd like to restore the contents of the pages. thank you! Haminmountain (talk) 13:38, 9 December 2022 (UTC)

See Manual:Upgrading#Check requirements. You could upgrade in several steps via more recent unsupported versions, instead of going directly to a supported version. Malyacko (talk) 14:11, 9 December 2022 (UTC)
I almost done about that. it's required 1.35 with composer. I successed database update but can't continute. problem is "A database query error has occurred. This may indicate a bug in the software." now. :( Haminmountain (talk) 16:43, 9 December 2022 (UTC)
I'll search more information but if I can't go forward anymore, I'll ask again to this thread. Haminmountain (talk) 16:44, 9 December 2022 (UTC)
I found it. I didn't executed 'update.php' with xampp shell. thanks for your advices! Haminmountain (talk) 16:49, 9 December 2022 (UTC)
Re summary - you only need to run composer if installing via git, which it doesn't sound like you are. Bawolff (talk) 17:53, 9 December 2022 (UTC)

change username

I got a message that I need to change my username. How do I do that? Tonyformayor (talk) 15:13, 9 December 2022 (UTC)

Which website is this about? Bawolff (talk) 21:59, 9 December 2022 (UTC)
Oh i see this is for english wikipedia. Fill out the form at https://en.wikipedia.org/wiki/Special:GlobalRenameRequest Bawolff (talk) 22:00, 9 December 2022 (UTC)

Direct access to digital output

Hi, I have a RUTX09 and am developing an application - the SDK is great btw. My challenge is to drive the digital output on pin 4 of the power connector. I can see there is a documented http interface, but as the app is running locally then directly accessing the output via libgpiod is preferable. I can't however find any documentation on where the output is located. I've tried scanning the gpiochip0 and 1 under /dev to no avail. Many thanks in advance. 79.73.68.143 (talk) 16:26, 9 December 2022 (UTC)

Hi, i think you are in the wrong place, this is the help for wiki software only Bawolff (talk) 21:59, 9 December 2022 (UTC)

I am the author of a blog licensed under an "Attribution-NonCommercial-NoDerivs 2.0 France (CC BY-NC-ND 2.0 FR)" license.

Four of my articles have been duplicated and modified by the site https://www.ummowiki.fr which uses MediaWiki software.

I sent an email to an administrator who deleted two of the pages but refuses to delete the last two, arguing that it is not his responsibility. The site does not mention the contact details of the person responsible. There is no procedure for claiming copyright infringement.

How can I enforce my intellectual property rights?

Does WikiMedia provide, as Wikipedia does, a means of reporting Wiki pages that do not comply with the CC BY-NC-ND 2.0 FR licence?

For your information, here are the two articles of my blog that have been duplicated:

1) https://futurenfolie.blogspot.com/2018/11/les-lettres-dummo-de-jean-pierre-petit.html

-> duplicated on https://www.ummowiki.fr/index.php/Jean-Pierre_Petit_(lettres_re%C3%A7ues)

2) https://futurenfolie.blogspot.com/2018/06/les-ummites-au-telephone-dans-les.html

-> duplicated on

https://www.ummowiki.fr/index.php/Appels_t%C3%A9l%C3%A9phoniques

Thank you for your assistance regarding this matter. Futur en Folie (talk) 18:00, 9 December 2022 (UTC)

Hi,
We are not associated with that website and have no power over them to make them do anything. Bawolff (talk) 18:18, 9 December 2022 (UTC)
Thanks. Futur en Folie (talk) 19:09, 9 December 2022 (UTC)

New XML Import Funktion/Option

If like reupload a Module (or other) with all suppages and templates (all requested) .

MW say: Failed becorse allready installed.

Question.

Is it posible to build in a overright funktion? Shadowslight 18:56, 9 December 2022 (UTC)

Hello. I've created a wiki family and enabled Interwiki (and added appropriate languages to my wikis).


My wiki family is a fresh installation, so zero content atm.


I've created two category on two different wiki. Added [[en:Category:Etcetc]] to one, and [[fr:Category:Etcetc]] to other. When I preview categories, language link shows on sidebar, but when I save the categories they disappear.


Any idea why? It maybe hidden because there is no member of these categories? 159.146.48.11 (talk) 12:01, 10 December 2022 (UTC)

Number of members really shouldn't matter.
Do you have any extensions that might mess with interlanguage links? Wikibase for example can.
Do you have a link to your wiki? Bawolff (talk) 18:57, 11 December 2022 (UTC)
No, just some default extension that comes with MW (1.39).
Here is: http://en.riseonline.wiki/index.php/Category:Quests
As you can see from source, interlanguage link to other language version is added but it isn't appear on sidebar. But it's so weird that interlanguage link appears on mobile version of wiki.
But why not on desktop sidebar? 159.146.38.129 (talk) 18:54, 12 December 2022 (UTC)
Hmm. It shows up in monobook and legacy vector [1] . Maybe its a bug (or who knows, intentional) in vector-2022. You could try filing a bug at https://phabricator.wikimedia.org Bawolff (talk) 20:07, 12 December 2022 (UTC)
For Vector-2022, the language links have been moved to the top (albeit this is configurable). Then too actually use it, you need ULS extension to get the language switch button. It seems your wiki don't have ULS. – Ammarpad (talk) 09:40, 14 December 2022 (UTC)
Ahh thank you Ammarpad, I thought it had to appear at the left sidebar. 159.146.38.129 (talk) 10:23, 14 December 2022 (UTC)

Multiple wikis, centralized uploads

Hello everyone. With exactly which codes I can create a central upload folder for a wiki family of two wikis?


I have a uploads/mydomain/com subdomain, I've added wgUseSharedUploads etc. to my main LocalSettings.php, but when I upload an image to my main wiki it goes to that subdomain but doesn't appear in other wiki's file list or usable by them (same goes for when I upload image to secondary wiki and it doesnt appear on main wiki too). 159.146.48.11 (talk) 19:43, 10 December 2022 (UTC)

SharedUploads lets you use files from another wiki. It does not make both wikis actually share all their uploads or use the same upload directory. It is a one-way sharing. (i agree its kind of poorly named).
Foreign files do not appear in Special:listfiles. Bawolff (talk) 19:55, 11 December 2022 (UTC)
Got it.
I've created shared images' pages on other wiki with "Local description source", but on the same page, there is a "View on a shared repository" button, but it doesn't have any link.
Do you have any idea why? My upload codes are as follows:
$wgEnableUploads = true;
$wgUploadPath       = "//uploads.mydomain.com";
$wgUploadDirectory  = "/home/ETCETCETC/public_html/ETCETCETC/uploads";
$wgForeignFileRepos[] = [
'class' => FileRepo::class,
'name' => 'sharedFsRepo',
'directory' => '/home/ETCETCETC/public_html/ETCETCETC/uploads',
'hashLevels' => 2,
'url' => '//uploads.mydomain.com',
]; 159.146.38.129 (talk) 19:05, 12 December 2022 (UTC)
If you are sharing between mediawiki wikis, you probably want ForeignDBRepo::class not just FileRepo. See also docs at manual:$wgForeignFileRepos
Sometimes for some cross wiki links to work correctly you need to setup $wgConf, but that is more for ForeignDBRepoViaLB, and if using extension:GlobalUsage. Using just ForeignDBRepo shouldnt need that i dont think, but i am not 100% sure. Bawolff (talk) 20:03, 12 December 2022 (UTC)
Thank you, I've changed to ForeignDBRepo from FileRepo. But now, files in my main wiki shows as duplicate with a link to English version of the file. Is this normal? 159.146.38.129 (talk) 16:33, 13 December 2022 (UTC)
If the same file is uploaded to both, its normal for them to show up as duplicates. Bawolff (talk) 22:33, 13 December 2022 (UTC)
But I only upload them to my main wiki, not the second one. I only create pages for them on second wiki (for categorizing purposes). Codes I use for ForeignDBRepo is here (btw, I've placed them on second wiki's config file, not main one. Is this the right approach, right?):
$wgForeignFileRepos[] = [
"class" => ForeignDBRepo::class,
"name" => "shareduploads",
"url" => "//uploads.mydomain.com",
"directory" => "/home/mywebsite/public_html/wiki/uploads",
"hashLevels" => 2,
"dbType" => "$wgDBtype",
"dbServer" => "$wgDBserver",
"dbUser" => "MAINDBUSERNAME",
"dbPassword" => "MAINDBPASSWORD",
"dbFlags" => "DBO_DEFAULT",
"dbName" => "MAINDBNAME",
"tablePrefix" => "",
"hasSharedCache" => false,
"descBaseUrl" => "/File:",
"fetchDescription" => false
]; 159.146.38.129 (talk) 07:11, 14 December 2022 (UTC)
Yeah that's correct.
DBO_DEFAULT should not be in quotes,but it probably doesn't effect anything.
I dont know why they are showing up as a duplicate based on your description. Bawolff (talk) 08:26, 14 December 2022 (UTC)

Find a function

Hi,

is it possible to find where a function is defined (in which module)? For examle I receive the error Errore Lua in Modulo:Controllo_Wikidata alla linea 67: attempt to call field '_getProperty' (a nil value). But I don't know how to fix it.

is it also possible to understand where a Template is defined? Is not enough to put the name of the template in the export list because the name of the tempale to export is different from the name displayed on source.


Thanks,

Kato Kato196613 (talk) 20:10, 10 December 2022 (UTC)

if this is a non wikimedia wiki, that error is probably related to it being kind of impossible to setup wikidata. As the error message says, line 67 of Modulo:Controllo_Wikidata. Presumably something before that point returned null.
Im not sure what you mean by the second part. Bawolff (talk) 19:51, 11 December 2022 (UTC)
Hi,
I'd like to use wikimedia, so I installed all the extensions used by wikipedia and configured with default configuration.
Is strange because it seems something on the same Template work well and something else no, I've errors on template 'Missione Spaziale' of italian wikipedia for example on Apollo 15 page.
I don't understand which is the problem.
Kato (Paolo) Kato196613 (talk) 15:34, 12 December 2022 (UTC)
Extension:wikibase doesn't point to https://wikidata.org as the repo like it does on wikipedia. Unfortunately there aren't really good solutions to this right now as far as i am aware. Bawolff (talk) 08:28, 14 December 2022 (UTC)

Adding users

I'm looking through the MediaWiki Administrator's Handbook but haven't found a "add new user" function. I did see Manual:createAndPromote.php. Is that the best/only way to explicitly create a MediaWiki user?

Note- my MediaWiki is private and I don't allow readers to automatically register. It will be read-only for all but me but I don't want to write as Admin. Maxyaffe (talk) 19:27, 11 December 2022 (UTC)

From the web interface go to a page named Special:CreateAccount (e.g. put it into search bar). If you are logged in you can create an account for a different user, optionally having their new password automatically emailed to them.
Which users can create accounts for other users depends on $wgGroupPermissions.
createAndPromote.php is typically only used if you lost access to the admin account or you want to use a script. You can certainly use it if you want, but it wouldn't be my reccomendation for normal account creation. Bawolff (talk) 19:45, 11 December 2022 (UTC)

Mediawiki says error in CSS

On the Common.css page in the editor, it says there is an error in my code:


Error: Expected LBRACE at line 4, col 83.

/* CSS placed here will be applied to all skins */

/* Indent section contents on main page */

.page-Main_Page #mw-content-text > .mw-parser-output > #main-stuff > :not(h2, #toc){

   margin-left: 10px;

}


Column 83 is where the left brace is, so I'm not sure why it's complaining. If I don't have two elements in the not(), then there's no error. The CSS seems to work fine the way I have it. Is this a bug, or is it not acceptable to put multiple elements inside not()? Dimpizzy (talk) 23:12, 11 December 2022 (UTC)

its probably a bug in the code editor extension (or underlying ace library). :not is relatively new so maybe it gets confused by it. Bawolff (talk) 01:02, 12 December 2022 (UTC)
This question and answer intrigued me - maybe it's to do with this: https://caniuse.com/css-not-sel-list Jonathan3 (talk) 11:42, 12 December 2022 (UTC)
Ah ok, so that syntax isn't supported on all browsers. I changed :not(h2, #toc) to :not(h2):not(#toc) which doesn't give any errors and still works. Dimpizzy (talk) 15:23, 12 December 2022 (UTC)
I filed an upstream bug report for this at https://github.com/ajaxorg/ace/issues/5018 Bawolff (talk) 07:19, 24 December 2022 (UTC)
phab:T253463 also looks related Bawolff (talk) 07:24, 24 December 2022 (UTC)

User cannot be authenticated.

I am trying to setup SSO using openconnect with azure AD, followed the article "Using it against Azure Active Directory. getting the error user cannot be authenticated.

can you some one please help.. i am novice when it comes to mediawiki

here is my current setup info

Window server 2019

Mediawiki - 1.35.8

PHP - 7.3.25 (cgi-fcgi)

Mysql - 5.5.45

Pluggable Auth - 5.7 (582d717) 14:01, 24 October 2022

OpenID Connect - 5.4 (58995d0) 11:49, 24 October 2022


debug logs

Start request GET /load.php?lang=en&modules=jquery&skin=vector&version=qtt5t

HTTP HEADERS:

CONTENT-TYPE:

CONTENT-LENGTH: 0

SEC-FETCH-DEST: script

SEC-FETCH-MODE: no-cors

SEC-FETCH-SITE: same-origin

SEC-CH-UA-PLATFORM: "Windows"

SEC-CH-UA-MOBILE: ?0

SEC-CH-UA: "Microsoft Edge";v="107", "Chromium";v="107", "Not=A?Brand";v="24"

USER-AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 Edg/107.0.1418.24

REFERER: https://mediawiki.pmhc.nsw.gov.au/index.php?title=Special:UserLogin&returnto=Main+Page

HOST: mywiki.mydomain.com

COOKIE: mediawiki_mediawiki__session=5uerah5c6qc93fkpd59do44nk50hp9cv; UseDC=master; UseCDNCache=false

ACCEPT-LANGUAGE: en-US,en;q=0.9

ACCEPT-ENCODING: gzip, deflate, br

ACCEPT: */*

CONNECTION: close

(end headers)

[localisation] LocalisationCache using store LCStoreDB

[session] SessionManager using store SqlBagOStuff

[PluggableSSO\Hook::initExtension] initializing

[DBReplication] Wikimedia\Rdbms\LBFactory::getChronologyProtector: request info {

    "IPAddress": "192.168.1.2",

    "UserAgent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/107.0.0.0 Safari\/537.36 Edg\/107.0.1418.24",

    "ChronologyProtection": false,

    "ChronologyPositionIndex": 0,

    "ChronologyClientId": false

}

[DBQuery] Wikimedia\Rdbms\DatabaseMysqlBase::open [0s] localhost: SET group_concat_max_len = 262144, sql_mode = ''

[DBConnection] Wikimedia\Rdbms\LoadBalancer::lazyLoadReplicationPositions: executed chronology callback.

[DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: opened new connection for 0

[DBQuery] Wikimedia\Rdbms\DatabaseMysqlBase::serverIsReadOnly [0s] localhost: SELECT @@GLOBAL.read_only AS Value

[DBQuery] Wikimedia\DependencyStore\SqlModuleDependencyStore::fetchDependencyBlobs [0s] localhost: SELECT  md_module,md_skin,md_deps  FROM `mediawiki_module_deps`    WHERE (md_skin = 'vector|en' AND md_module = 'jquery')  

[DBQuery] Wikimedia\Rdbms\DatabaseMysqlBase::open [0s] localhost: SET group_concat_max_len = 262144, sql_mode = ''

[DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: opened new connection for 0

[DBQuery] Wikimedia\Rdbms\DatabaseMysqlBase::serverIsReadOnly [0s] localhost: SELECT @@GLOBAL.read_only AS Value

[DBQuery] Wikimedia\Rdbms\DatabaseMysqlBase::serverIsReadOnly [0s] localhost: SELECT @@GLOBAL.read_only AS Value

[DBQuery] SqlBagOStuff::fetchBlobMulti [0s] localhost: SELECT  keyname,value,exptime  FROM `mediawiki_objectcache`    WHERE keyname = 'global:resourceloader-filter:minify-js:8:dd7de923f72958538c4d9d692365fae3'  

[DBQuery] Wikimedia\Rdbms\DatabaseMysqlBase::serverIsReadOnly [0s] localhost: SELECT @@GLOBAL.read_only AS Value

[DeferredUpdates] DeferredUpdates::run: started MWCallableUpdate_Pingback::schedulePingback #191

[DeferredUpdates] DeferredUpdates::run: ended MWCallableUpdate_Pingback::schedulePingback #191

[DeferredUpdates] DeferredUpdates::run: started MWCallableUpdate_ResourceLoader->measureResponseTime #237

[DeferredUpdates] DeferredUpdates::run: ended MWCallableUpdate_ResourceLoader->measureResponseTime #237

[DeferredUpdates] DeferredUpdates::run: started MWCallableUpdate_ResourceLoader->saveModuleDependenciesInternal #250

[DBQuery] Wikimedia\Rdbms\DatabaseMysqlBase::serverIsReadOnly [0s] localhost: SELECT @@GLOBAL.read_only AS Value

[DBQuery] Wikimedia\Rdbms\DatabaseMysqlBase::serverIsReadOnly [0s] localhost: SELECT @@GLOBAL.read_only AS Value

[DeferredUpdates] DeferredUpdates::run: ended MWCallableUpdate_ResourceLoader->saveModuleDependenciesInternal #250

[DBConnection] Wikimedia\Rdbms\LBFactory::destroy: closing connection to database 'localhost'.

[DBConnection] Wikimedia\Rdbms\LBFactory::destroy: closing connection to database 'localhost'. Ramvenkey6278 (talk) 01:53, 12 December 2022 (UTC)

AD / LDAP Authentication - PHP8

AD / LDAP Authentication

I'm using the docker-MediaWiki container and this has recently been updated and is now using:-

MediaWiki 1.39.0 (previously 1.38.4)

PHP 8.1.13 (previously 7.4.32)

MariaDB 10.6.11 (both)

My LDAP config in Localsettings.php and ldap.json has not changed

I can log in fine when the LDAP configuration is disabled in LocalSettings.php

When LDAP authentication is enabled I get the error message:-

"The supplied credentials could not be authenticated."

This is before there has been any opportunity to enter credentials. I have cleared cookies and used a different browser and get the same message.

I have enabled error logging, but there are no LDAP error messages in the log.

My suspicion is something to do with PHP 8

Note, the 1.38 container has also been updated to use PHP 8

I have also tried release 1.35. With that release I get the login dialogue box and can log in OK as the administrator. When I try to log in with LDAP account I get :- [ae628d3c3231d1d49fd33634] 2022-12-12 15:03:51: Fatal exception of type "Error" PHP is version 8.

I can't rebuild the 1.38 versions as not all the LDAP libraries are available for that version specifically.

The move from PHP 7 to 8 seems to be the common factor. Flyboytim (talk) 15:10, 12 December 2022 (UTC)

The Special:ExtensionDistributor tool still showing 1.38 as "latest stable MediaWiki"

MediaWiki 1.39.0 was released on 2022-11-30. However visiting Special:ExtensionDistributor and selecting an extension still defaults to "1.38 (latest stable MediaWiki)". It is possible to select 1.39, which shows "1.39 (next stable candidate)"

Could someone responsible please update the tool so that it defaults to 1.39 as latest stable MediaWiki.

Thanks in advance. Peculiar Investor (talk) 18:16, 12 December 2022 (UTC)

https://phabricator.wikimedia.org/T324808 Bawolff (talk) 19:57, 12 December 2022 (UTC)

Mediawiki varnish cache purge purges desktop entries only, mobile entries not purged

Mediawiki varnish cache works fine. Purges after page updates run and purge desktop entries automatically as well, but when the same page is accessed from mobile device, old version before update is shown, mobile entry has not been purged. Mobilefrontend is installed and configured as advised in Extension:MobileFrontend/Configuring_browser_auto-detection option 2, same domain. Something still missing somewhere? Pspviwki (talk) 18:36, 12 December 2022 (UTC)

Extention dependence and statistics

Is there a way to see statistics on pages and the extentions used in them?

I have inherited several extentions from an earlier installation, and I would like to see if some of these aren't actually used at all Techcare.noc (talk) 12:59, 13 December 2022 (UTC)

Depends on the extension.
Some extensions set a page prop which can be searched with Special:pageswithprop . Some extensions set a tracking category - see Special:TrackingCatehories on your wiki. But some do neither.
If you have extension:cirrusSearch installed, you can use insource: with a regex to help find things. Extension:ReplaceText can also be useful. Bawolff (talk) 22:36, 13 December 2022 (UTC)

Expansion depth limit exceeded

Hi Team ,

Product Version

MediaWiki 1.35.3

PHP 8.0.25 (apache2handler)

MySQL 8.0.26

ICU 71.1

Lua 5.1.5

Elasticsearch 6.5.4

We are using above suddenly we are facing issue in sidebar of application .

File:Actual Image.png

Earlier side bar is displaying here properly. i.e Pooja2425 (talk) 06:00, 14 December 2022 (UTC)

please suggest ? any issue with side bar menu or any another extension Pooja2425 (talk) 06:01, 14 December 2022 (UTC)
it means you have too many layers of templates. This is controlled by $wgMaxTemplateDepth Bawolff (talk) 06:05, 14 December 2022 (UTC)

Fatal exception of type "Wikimedia\Rdbms\DBQueryError"

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.


Today, when I try to log in with the wiki admin user, I get this error.

The full error is:[Y5mpkfx2DAH5uUR_tNAF5wAAANQ] 2022-12-14 10:46:41: Fatal exception of type "Wikimedia\Rdbms\DBQueryError"


I have the wiki on RedHat Linux 9, wiki version is 1.39, MariaDB 10.5

When I look for the error on Mediawiki, I find many entries talking about the AntiSpam extention and how to fix the error.

I don't have the Antispam extention active or installed.

I have tried following the work-around mentioned in the Antispam extention FAQ anyway, but that further broke the wiki...

I've looked at errors in the mariaDB log, and I found " WSREP: Failed to guess base node address. Set it explicitly via wsrep_node_address.". I don't know if this is related though.

I have also re-run the SELinux command to assert SELinux on the /var/www/mediawiki(-1.39.0) directory trees.


Where would I go to find a cause for the issue? Techcare.noc (talk) 11:56, 14 December 2022 (UTC)

I've just noticed... I get this error on any page that isn't the main page. I must have clearly broken *something*... Techcare.noc (talk) 12:01, 14 December 2022 (UTC)
Please post a stacktrace. See Manual:How to debug Malyacko (talk) 12:50, 14 December 2022 (UTC)
I've taken some steps...
None of this is accessible from the internet (yet)
Here's some output:
[Y5nkyHvkPSZj6B9GUvu8YAAAAI4] /index.php?title=Special:UserLogin&returnto=Main+Page Wikimedia\Rdbms\DBQueryError: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading or after adding a new extension?
Please see https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Upgrading and https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:How_to_debug for more information.
Error 1146: Table 'techCARE.oathauth_users' doesn't exist
Function: MediaWiki\Extension\OATHAuth\OATHUserRepository::findByUser
Query: SELECT module,data FROM `oathauth_users` WHERE id = 1 LIMIT 1
Backtrace:
from /var/www/mediawiki-1.39.0/includes/libs/rdbms/database/Database.php(1618)
#0 /var/www/mediawiki-1.39.0/includes/libs/rdbms/database/Database.php(1602): Wikimedia\Rdbms\Database->getQueryException(string, integer, string, string)
#1 /var/www/mediawiki-1.39.0/includes/libs/rdbms/database/Database.php(1576): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)
#2 /var/www/mediawiki-1.39.0/includes/libs/rdbms/database/Database.php(952): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#3 /var/www/mediawiki-1.39.0/includes/libs/rdbms/database/Database.php(1708): Wikimedia\Rdbms\Database->query(string, string, integer)
#4 /var/www/mediawiki-1.39.0/includes/libs/rdbms/database/Database.php(1717): Wikimedia\Rdbms\Database->select(string, array, array, string, array, array)
#5 /var/www/mediawiki-1.39.0/includes/libs/rdbms/database/DBConnRef.php(103): Wikimedia\Rdbms\Database->selectRow(string, array, array, string)
#6 /var/www/mediawiki-1.39.0/includes/libs/rdbms/database/DBConnRef.php(343): Wikimedia\Rdbms\DBConnRef->__call(string, array)
#7 /var/www/mediawiki-1.39.0/extensions/OATHAuth/src/OATHUserRepository.php(89): Wikimedia\Rdbms\DBConnRef->selectRow(string, array, array, string)
#8 /var/www/mediawiki-1.39.0/extensions/OATHAuth/src/Auth/SecondaryAuthenticationProvider.php(44): MediaWiki\Extension\OATHAuth\OATHUserRepository->findByUser(User)
#9 /var/www/mediawiki-1.39.0/includes/auth/AuthManager.php(735): MediaWiki\Extension\OATHAuth\Auth\SecondaryAuthenticationProvider->beginSecondaryAuthentication(User, array)
#10 /var/www/mediawiki-1.39.0/includes/auth/AuthManager.php(462): MediaWiki\Auth\AuthManager->continueAuthentication(array)
#11 /var/www/mediawiki-1.39.0/includes/specialpage/AuthManagerSpecialPage.php(372): MediaWiki\Auth\AuthManager->beginAuthentication(array, string)
#12 /var/www/mediawiki-1.39.0/includes/specialpage/AuthManagerSpecialPage.php(502): AuthManagerSpecialPage->performAuthenticationStep(string, array)
#13 /var/www/mediawiki-1.39.0/includes/htmlform/HTMLForm.php(725): AuthManagerSpecialPage->handleFormSubmit(array, VFormHTMLForm)
#14 /var/www/mediawiki-1.39.0/includes/specialpage/AuthManagerSpecialPage.php(435): HTMLForm->trySubmit()
#15 /var/www/mediawiki-1.39.0/includes/specialpage/LoginSignupSpecialPage.php(320): AuthManagerSpecialPage->trySubmit()
#16 /var/www/mediawiki-1.39.0/includes/specialpage/SpecialPage.php(701): LoginSignupSpecialPage->execute(NULL)
#17 /var/www/mediawiki-1.39.0/includes/specialpage/SpecialPageFactory.php(1428): SpecialPage->run(NULL)
#18 /var/www/mediawiki-1.39.0/includes/MediaWiki.php(316): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, RequestContext)
#19 /var/www/mediawiki-1.39.0/includes/MediaWiki.php(904): MediaWiki->performRequest()
#20 /var/www/mediawiki-1.39.0/includes/MediaWiki.php(562): MediaWiki->main()
#21 /var/www/mediawiki-1.39.0/index.php(51): MediaWiki->run()
#22 /var/www/mediawiki-1.39.0/index.php(47): wfIndexMain()
#23 {main}
And the "debug data"
  • Start request POST /index.php?title=Special:UserLogin&returnto=Main+PageIP: 10.15.25.4HTTP HEADERS:COOKIE: techCAREUserName=Wikiadmin; techCARE_session=7fmp21vlrgkldhut35r06eqg3ns6d73iACCEPT-LANGUAGE: en-US,en;q=0.9ACCEPT-ENCODING: gzip, deflate, brREFERER: https://10.15.25.45/index.php?title=Special:UserLogin&returnto=Main+PageSEC-FETCH-DEST: documentSEC-FETCH-USER: ?1SEC-FETCH-MODE: navigateSEC-FETCH-SITE: same-originACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9USER-AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36CONTENT-TYPE: application/x-www-form-urlencodedORIGIN: https://10.15.25.45UPGRADE-INSECURE-REQUESTS: 1SEC-CH-UA-PLATFORM: "Windows"SEC-CH-UA-MOBILE: ?0SEC-CH-UA: "Not?A_Brand";v="8", "Chromium";v="108", "Google Chrome";v="108"CACHE-CONTROL: max-age=0CONTENT-LENGTH: 209CONNECTION: keep-aliveHOST: 10.15.25.45(end headers)
  • [session] SessionManager using store SqlBagOStuff
  • [localisation] LocalisationCache using store LCStoreDB
  • [objectcache] MainWANObjectCache using store EmptyBagOStuff
  • [session] Session "7fmp21vlrgkldhut35r06eqg3ns6d73i" requested without UserID cookie
  • [DBQuery] Wikimedia\Rdbms\DatabaseMysqlBase::open [0s] localhost: SET group_concat_max_len = 262144, `sql_mode` = ''
  • [DBReplication] Cannot use ChronologyProtector with EmptyBagOStuff
  • [DBReplication] Wikimedia\Rdbms\LBFactory::getChronologyProtector: request info {"IPAddress": "10.15.25.4","UserAgent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/108.0.0.0 Safari\/537.36","ChronologyProtection": false,"ChronologyPositionIndex": 0,"ChronologyClientId": false}
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::lazyLoadReplicationPositions: executed chronology callback.
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: opened new connection for localAutoCommit/0
  • [DBQuery] Wikimedia\Rdbms\DatabaseMysqlBase::serverIsReadOnly [0s] localhost: SELECT @@GLOBAL.read_only AS Value
  • [DBQuery] SqlBagOStuff::fetchBlobs [0s] localhost: SELECT keyname,value,exptime FROM `objectcache` WHERE keyname = 'techCARE:MWSession:7fmp21vlrgkldhut35r06eqg3ns6d73i' AND (exptime >= '20221214145920')
  • [SQLBagOStuff] SqlBagOStuff debug: SqlBagOStuff::fetchBlobs: retrieved techCARE:MWSession:7fmp21vlrgkldhut35r06eqg3ns6d73i; expiry time is 20221214154231
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for localAutoCommit/0
  • [DBQuery] Wikimedia\Rdbms\DatabaseMysqlBase::open [0s] localhost: SET group_concat_max_len = 262144, `sql_mode` = ''
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: opened new connection for local/0
  • [DBQuery] Wikimedia\Rdbms\Database::beginIfImplied (LCStoreDB::get) [0s] localhost: BEGIN
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'deps' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0.001s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'list' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'preload' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'preload' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'specialPageAliases' LIMIT 1
  • [SQLBagOStuff] MainObjectStash using store ReplicatedBagOStuff
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'namespaceGenderAliases' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] MediaWiki\Revision\RevisionStore::fetchRevisionRowFromConds [0s] localhost: SELECT rev_id,rev_page,rev_timestamp,rev_minor_edit,rev_deleted,rev_len,rev_parent_id,rev_sha1,comment_rev_comment.comment_text AS `rev_comment_text`,comment_rev_comment.comment_data AS `rev_comment_data`,comment_rev_comment.comment_id AS `rev_comment_cid`,actor_rev_user.actor_user AS `rev_user`,actor_rev_user.actor_name AS `rev_user_text`,rev_actor,page_namespace,page_title,page_id,page_latest,page_is_redirect,page_len,user_name FROM `revision` JOIN `revision_comment_temp` `temp_rev_comment` ON ((temp_rev_comment.revcomment_rev = rev_id)) JOIN `comment` `comment_rev_comment` ON ((comment_rev_comment.comment_id = temp_rev_comment.revcomment_comment_id)) JOIN `actor` `actor_rev_user` ON ((actor_rev_user.actor_id = rev_actor)) JOIN `page` ON ((page_id = rev_page)) LEFT JOIN `user` ON ((actor_rev_user.actor_user != 0) AND (user_id = actor_rev_user.actor_user)) WHERE page_namespace = 8 AND page_title = 'Gadgets-definition' AND (rev_id=page_latest) LIMIT 1
  • [objectcache] fetchOrRegenerate(techCARE:gadgets-definition:13:4): miss, new value computed
  • ParserFactory: using default preprocessor
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'magicWords' LIMIT 1
  • [MessageCache] MessageCache using store SqlBagOStuff
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:title-invalid-empty' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for localAutoCommit/0
  • [DBQuery] SqlBagOStuff::fetchBlobs [0s] localhost: SELECT keyname,value,exptime FROM `objectcache` WHERE keyname = 'techCARE:messages:en' AND (exptime >= '20221214145920')
  • [SQLBagOStuff] SqlBagOStuff debug: SqlBagOStuff::fetchBlobs: retrieved techCARE:messages:en; expiry time is 99991231235959
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for localAutoCommit/0
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for localAutoCommit/0
  • [DBQuery] SqlBagOStuff::fetchBlobs [0s] localhost: SELECT keyname,value,exptime FROM `objectcache` WHERE keyname = 'techCARE:messages:en:status' AND (exptime >= '20221214145920')
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for localAutoCommit/0
  • [DBQuery] SqlBagOStuff::doLock [0s] localhost: SELECT IF(GET_LOCK('techCARE:messages:en',0),UNIX_TIMESTAMP(SYSDATE(6)),NULL) AS acquired
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] MessageCache::loadFromDB(en)-big [0s] localhost: SELECT page_title,page_latest FROM `page` WHERE page_is_redirect = 0 AND page_namespace = 8 AND (page_title NOT LIKE '%/%' ESCAPE '`' ) AND (page_len > 10000)
  • [DBQuery] MessageCache::loadFromDB(en)-small [0s] localhost: SELECT /*! STRAIGHT_JOIN */ rev_id,rev_page,rev_timestamp,rev_minor_edit,rev_deleted,rev_len,rev_parent_id,rev_sha1,comment_rev_comment.comment_text AS `rev_comment_text`,comment_rev_comment.comment_data AS `rev_comment_data`,comment_rev_comment.comment_id AS `rev_comment_cid`,actor_rev_user.actor_user AS `rev_user`,actor_rev_user.actor_name AS `rev_user_text`,rev_actor,page_namespace,page_title,page_id,page_latest,page_is_redirect,page_len FROM `page` JOIN `revision` ON ((page_id = rev_page)) JOIN `revision_comment_temp` `temp_rev_comment` ON ((temp_rev_comment.revcomment_rev = rev_id)) JOIN `comment` `comment_rev_comment` ON ((comment_rev_comment.comment_id = temp_rev_comment.revcomment_comment_id)) JOIN `actor` `actor_rev_user` ON ((actor_rev_user.actor_id = rev_actor)) WHERE page_is_redirect = 0 AND page_namespace = 8 AND (page_title NOT LIKE '%/%' ESCAPE '`' ) AND (page_len <= 10000) AND (page_latest = rev_id)
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for localAutoCommit/0
  • [DBQuery] SqlBagOStuff::modifyTableSpecificBlobsForSet [0.004s] localhost: REPLACE INTO `objectcache` (keyname,value,exptime) VALUES ('techCARE:messages:en','���\n�0���e�`�n��<� 襊��c�Y�9��?o���0 ����t��>//\Z>��BA�s��a\' �Y-�O��e����8�/EM#�]\0��u��[\\���8qީ?HK~?','99991231235959')
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for localAutoCommit/0
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for localAutoCommit/0
  • [DBQuery] SqlBagOStuff::doUnlock [0s] localhost: SELECT RELEASE_LOCK('techCARE:messages:en') AS released
  • [MessageCache] MessageCache::loadUnguarded: Loading en... local cache is empty, global cache is expired/volatile, loading from database
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:double-redirect-fixer' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:usermessage-editor' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:proxyblocker' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:sorbs' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:spambot_username' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:autochange-username' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:loginreqlink' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:login' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:createacct-helpusername' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:userlogin-yourname' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:pt-login-button' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:helplogin-url' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:userlogin-helplink2' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:userlogin-yourname-ph' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:userlogin-yourpassword' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'linkPrefixExtension' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:userlogin-yourpassword-ph' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:userlogin-remembermypassword' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'separatorTransformTable' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'digitGroupingPattern' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'minimumGroupingDigits' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'digitTransformTable' LIMIT 1
  • [session] SessionBackend "7fmp21vlrgkldhut35r06eqg3ns6d73i" data dirty due to dirty(): AuthManagerSpecialPage->performAuthenticationStep/MediaWiki\Auth\AuthManager->beginAuthentication/MediaWiki\Auth\AuthManager->removeAuthenticationSessionData/MediaWiki\Session\Session->remove/MediaWiki\Session\SessionBackend->dirty
  • [session] SessionBackend "7fmp21vlrgkldhut35r06eqg3ns6d73i" save: dataDirty=1 metaDirty=0 forcePersist=0
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for localAutoCommit/0
  • [DBQuery] SqlBagOStuff::modifyTableSpecificBlobsForSet [0.009s] localhost: REPLACE INTO `objectcache` (keyname,value,exptime) VALUES ('techCARE:MWSession:7fmp21vlrgkldhut35r06eqg3ns6d73i','MQ�n� ����\00���{i�I#%R/��YW�q��i+U��.v�������.�p�0��lIkMUj��W:N�\\��Eȩ�f�F*��vΤM��t� QKQ�\n���B5�H[k�\nO\Zr�>�eՀ�R��o�����j�X\0��n�S��c\nYR� �0=r�z�;%��\n�������J:)��\r-<�,߻��|�!ڌ%������bT�2B�� �-�\"x��g��g�Ɛ-�`���N����i\Z���Ot���ۿ�;�`� n|�@�٨\0;;��h�`>�� %���+�ݬ��b��������;�}\r����f�����T���o��Z#v��B��������','20221214155920')
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for localAutoCommit/0
  • [session] SessionBackend "7fmp21vlrgkldhut35r06eqg3ns6d73i" data dirty due to dirty(): MediaWiki\Auth\ThrottlePreAuthenticationProvider->testForAuthentication/MediaWiki\Auth\AuthManager->setAuthenticationSessionData/MediaWiki\Session\Session->setSecret/MediaWiki\Session\Session->set/MediaWiki\Session\SessionBackend->dirty
  • [session] SessionBackend "7fmp21vlrgkldhut35r06eqg3ns6d73i" save: dataDirty=1 metaDirty=0 forcePersist=0
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for localAutoCommit/0
  • [DBQuery] SqlBagOStuff::modifyTableSpecificBlobsForSet [0.004s] localhost: REPLACE INTO `objectcache` (keyname,value,exptime) VALUES ('techCARE:MWSession:7fmp21vlrgkldhut35r06eqg3ns6d73i','MR�v�0���^{NM ����J�]�nq�Z=}I�DQ�\Z@���oк۷�;�N&w��v��H`I�p��Mhrl�c=+wPL!���]�D����o���ׁc�V*1!>%�����#��$q���������V^�����Q�U���a���C����|��k�?����b\nu��_s\\�F,\\j������Q HP�\nJ����x�wy\"vR���4oLj����!�\r��,�6�ۓ�F������[���.򇎒��8a��!�Z��j�Wo�±�������E:Z���㎍ӘN��`pM�|�βЙ?T���k~��c]!�d��F�Zo�w|�o�����8�:yM&m�]�űQbq5?���y�G�]�x������E��ը��s��?@���2�����w����,��\'+�����˒1�Vi�J��L�>���k�2�l��|�����.�������/�����TL��A�eg2:��������v�N�vF�E���k.N*3��J����,�^Ps?�Ve\Z�+t=���������\Z�c�\\�6X�����d���??��','20221214155920')
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for localAutoCommit/0
  • [session] SessionBackend "7fmp21vlrgkldhut35r06eqg3ns6d73i" data dirty due to dirty(): AuthManagerSpecialPage->performAuthenticationStep/MediaWiki\Auth\AuthManager->beginAuthentication/MediaWiki\Session\Session->setSecret/MediaWiki\Session\Session->set/MediaWiki\Session\SessionBackend->dirty
  • [session] SessionBackend "7fmp21vlrgkldhut35r06eqg3ns6d73i" save: dataDirty=1 metaDirty=0 forcePersist=0
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for localAutoCommit/0
  • [DBQuery] SqlBagOStuff::modifyTableSpecificBlobsForSet [0.004s] localhost: REPLACE INTO `objectcache` (keyname,value,exptime) VALUES ('techCARE:MWSession:7fmp21vlrgkldhut35r06eqg3ns6d73i','MVǎ�H��\n�z�F�(R��(\Z�`.tI�{��?_V����2�E��H������?�3~���1������=r\0�`5ER�I�\'��Y�R�5��T����3��?���q��i��x�Rx�S1N2XB�4���<��Q6iV�h��\"H�\0�?V���0�3A��dB3�B~��s܂��C��s���!�I��)2��8��8�C�$B��C��?y��zX�\0�Ƥ��c{�������A����4���8t�q�[�h��o��-a �gYg��<��e�r\0�üL?������#�S��Q0Z$������_�^�����koq{���+�2��-���b�C�9�!�+ש�����ƜA����m!p�����0��4��N/{E��XL�|�Wڐu�[��\\/K1����ipk)������/K��=,jA��I?>?��1���2BЇ��3R[N�*�\\�iZ�W�,�K5���ۈ�w���y��/Q_a�j��b.j������yX�,67Gn�`�O*�y�?�I��̨�E�C���,.4�2q���\"8��[�=�M��b�M�U��Q&�����\'�>}1����S��SW�3�T��g����=��8$V�I�����Ϥ-� (ŕ���XNQ��[G��\n<ٲf��K��{Y��Q�ٝ���ԏ��B\"y�m�2)�e�v���@R�� 3�2�&�/�ٴC�H�x��A��U���בĿ��`\\\n�!�����f�Ɖ�Iqi�Tk��w�6�J��ys��X�����`�_�� ��̜7�ڄq�d»�I�Lⶸw�i�6U�vj|���Fߒ�A`gh�8@A� �����1��;�NgĨ���X���L��4�\0�G7�\\[�_\'U_�Y���s��Ԧ�(<���<�$Q�*~���C��*l�YX���9�4� ��֣u�])���>�5~��5�����{��Z��15�\n�+?��z���A�ۃ_�E��n�_/���㣀�����vP�� ́1�\Z���;���E��+�|�xA��G�HQ�����4��#�E�ޑ�}u��� f�����#witՃ.��V���m1�C@���\\�\no��o���@���û��\'��3�.��̒�����g��ۘM֔e��ή\Z�@�;;ϞL��.�����q;�����:i�����9�D�SBz~�y[&�����갮�H���6��a=�Z�$��{���i�j�K���dv�&_A�3�^x�p�v?�D\n{��\\]!��p�7)��#�k8Rl��\"AT�:ip��-Z����a�,7 ��v�7�Q7��*��\'G�]�77@҈}�o���=�]�ޚz�k/;��x��)����H���K��������.#���S��r�B�Ѯ{\0k��\r\rOe��ɺ�x�==�j�����9e���\0�͐����Q>����ǟ�����~��x�[c;�[3P(�d\0t�N�}�h�k�-�B&6��R�Ol9�*{sG��ʮ�׏i5<��5��ŋ�4P�ޅT�Z�5���V܆������Z���T9�:��.�\r���-V���N���k<��a˪W}p��ʽ���Io �%�P�����1(�]�v��£�`cS������-��n-��H��&{i�\'�H�BR��\Z���8��b���(��+�.�0Oz�H��������J_�?$1?���hE����|�ȖZ�v��[\r��A|����`����n㫋�%dӯ���&�x��T��I���@�5�$��WB��Y%c�3; ��p�m��Y��_q͜?�$��\'+����㿹�)��\'��EG��˵�����0\rI/ş�\r?��\'p����|�_s�7rP�J��y�:.���>JD������k�����{2 )��0������K�ďi�9��ڤ��aL���ȯ??��','20221214155920')
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for localAutoCommit/0
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::beginPrimaryAuthentication [0s] localhost: SELECT user_id,user_newpassword,user_newpass_time FROM `user` WHERE user_name = 'Wikiadmin' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] User::load [0s] localhost: SELECT actor_id,actor_user,actor_name FROM `actor` WHERE actor_name = 'Wikiadmin' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] User::loadFromDatabase [0s] localhost: SELECT user_id,user_name,user_real_name,user_email,user_touched,user_token,user_email_authenticated,user_email_token,user_email_token_expires,user_registration,user_editcount,user_actor.actor_id FROM `user` JOIN `actor` `user_actor` ON ((user_actor.actor_user = user_id)) WHERE user_id = 1 LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] MediaWiki\User\UserGroupManager::getUserGroupMemberships [0s] localhost: SELECT ug_user,ug_group,ug_expiry FROM `user_groups` WHERE ug_user = 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for localAutoCommit/0
  • [DBQuery] SqlBagOStuff::fetchBlobs [0s] localhost: SELECT keyname,value,exptime FROM `objectcache` WHERE keyname = 'techCARE:abusefilter:block-autopromote:1' AND (exptime >= '20221214145920')
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::beginPrimaryAuthentication [0s] localhost: SELECT user_id,user_password,user_password_expires FROM `user` WHERE user_name = 'Wikiadmin' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] User::load [0s] localhost: SELECT actor_id,actor_user,actor_name FROM `actor` WHERE actor_name = 'Wikiadmin' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] User::loadFromDatabase [0s] localhost: SELECT user_id,user_name,user_real_name,user_email,user_touched,user_token,user_email_authenticated,user_email_token,user_email_token_expires,user_registration,user_editcount,user_actor.actor_id FROM `user` JOIN `actor` `user_actor` ON ((user_actor.actor_user = user_id)) WHERE user_id = 1 LIMIT 1
  • [authentication] Primary login with MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider succeeded
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] User::load [0s] localhost: SELECT actor_id,actor_user,actor_name FROM `actor` WHERE actor_name = 'Wikiadmin' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] User::loadFromDatabase [0s] localhost: SELECT user_id,user_name,user_real_name,user_email,user_touched,user_token,user_email_authenticated,user_email_token,user_email_token_expires,user_registration,user_editcount,user_actor.actor_id FROM `user` JOIN `actor` `user_actor` ON ((user_actor.actor_user = user_id)) WHERE user_id = 1 LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LocalIdLookup::lookupUserNames [0s] localhost: SELECT user_id,user_name FROM `user` LEFT JOIN `ipblocks` ON ((ipb_user=user_id)) WHERE user_name = 'Wikiadmin' AND (ipb_deleted = 0 OR ipb_deleted IS NULL)
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] MediaWiki\Extension\OATHAuth\OATHUserRepository::findByUser [0s] localhost: SELECT module,data FROM `oathauth_users` WHERE id = 1 LIMIT 1
  • [DBQuery] Error 1146 from MediaWiki\Extension\OATHAuth\OATHUserRepository::findByUser, Table 'techCARE.oathauth_users' doesn't exist SELECT module,data FROM `oathauth_users` WHERE id = 1 LIMIT 1 localhost
  • [session] SessionBackend "7fmp21vlrgkldhut35r06eqg3ns6d73i" data dirty due to dirty(): AuthManagerSpecialPage->performAuthenticationStep/MediaWiki\Auth\AuthManager->beginAuthentication/MediaWiki\Auth\AuthManager->continueAuthentication/MediaWiki\Session\Session->remove/MediaWiki\Session\SessionBackend->dirty
  • [DBQuery] MWExceptionHandler::rollbackPrimaryChanges [0s] localhost: ROLLBACK
  • [DBConnection] MWExceptionHandler::rollbackPrimaryChanges: acknowledged server-side transaction loss on localhost
  • [exception] [Y5nkyHvkPSZj6B9GUvu8YAAAAI4] /index.php?title=Special:UserLogin&returnto=Main+Page Wikimedia\Rdbms\DBQueryError: Error 1146: Table 'techCARE.oathauth_users' doesn't existFunction: MediaWiki\Extension\OATHAuth\OATHUserRepository::findByUserQuery: SELECT module,data FROM `oathauth_users` WHERE id = 1 LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] Wikimedia\Rdbms\Database::beginIfImplied (LCStoreDB::get) [0s] localhost: BEGIN
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:databaseerror' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:databaseerror-text' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] MediaWiki\User\TalkPageNotificationManager::dbCheckNewUserMessages [0s] localhost: SELECT user_ip FROM `user_newtalk` WHERE user_ip = '10.15.25.4' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'rtl' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:notloggedin' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:anontalk' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:anoncontribs' LIMIT 1
  • [session] SessionBackend "7fmp21vlrgkldhut35r06eqg3ns6d73i" save: dataDirty=1 metaDirty=0 forcePersist=0
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for localAutoCommit/0
  • [DBQuery] SqlBagOStuff::modifyTableSpecificBlobsForSet [0.009s] localhost: REPLACE INTO `objectcache` (keyname,value,exptime) VALUES ('techCARE:MWSession:7fmp21vlrgkldhut35r06eqg3ns6d73i','MR�v�0���^{NM ����J�]�nq�Z=}I�DQ�\Z@���oк۷�;�N&w��v��H`I�p��Mhrl�c=+wPL!���]�D����o���ׁc�V*1!>%�����#��$q���������V^�����Q�U���a���C����|��k�?����b\nu��_s\\�F,\\j������Q HP�\nJ����x�wy\"vR���4oLj����!�\r��,�6�ۓ�F������[���.򇎒��8a��!�Z��j�Wo�±�������E:Z���㎍ӘN��`pM�|�βЙ?T���k~��c]!�d��F�Zo�w|�o�����8�:yM&m�]�űQbq5?���y�G�]�x������E��ը��s��?@���2�����w����,��\'+�����˒1�Vi�J��L�>���k�2�l��|�����.�������/�����TL��A�eg2:��������v�N�vF�E���k.N*3��J����,�^Ps?�Ve\Z�+t=���������\Z�c�\\�6X�����d���??��','20221214155920')
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for localAutoCommit/0
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:pt-login' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:pt-createaccount' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:nstab-special' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:help-mediawiki' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:tooltip-p-navigation' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:tooltip-n-help-mediawiki' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:accesskey-n-help-mediawiki' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:tooltip-p-tb' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:tooltip-p-lang' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:otherlanguages' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:tooltip-p-user-interface-preferences' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:user-interface-preferences' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] MediaWiki\Page\PageStore::getPageByNameViaLinkCache [0s] localhost: SELECT page_id,page_namespace,page_title,page_is_redirect,page_is_new,page_touched,page_links_updated,page_latest,page_len,page_content_model FROM `page` WHERE page_namespace = 8 AND page_title = 'User-interface-preferences' LIMIT 1
  • [objectcache] fetchOrRegenerate(techCARE:page:8:cc55e312a5aa3b8484b6bc564e3edba47c592500): miss, new value computed
  • [objectcache] fetchOrRegenerate(techCARE:messages-big:f6c4f725a607bfe8fa0cf0c05ee4f470:User-interface-preferences): miss, new value computed
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:tooltip-p-personal' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:tooltip-pt-anonuserpage' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:tooltip-pt-anontalk' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:accesskey-pt-anontalk' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:tooltip-pt-anoncontribs' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:accesskey-pt-anoncontribs' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:tooltip-p-notifications' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] MediaWiki\Page\PageStore::getPageByNameViaLinkCache [0s] localhost: SELECT page_id,page_namespace,page_title,page_is_redirect,page_is_new,page_touched,page_links_updated,page_latest,page_len,page_content_model FROM `page` WHERE page_namespace = 8 AND page_title = 'Tooltip-p-notifications' LIMIT 1
  • [objectcache] fetchOrRegenerate(techCARE:page:8:5e89b9c18080b9e1a98fafc0da774d0eec80a023): miss, new value computed
  • [objectcache] fetchOrRegenerate(techCARE:messages-big:f6c4f725a607bfe8fa0cf0c05ee4f470:Tooltip-p-notifications): miss, new value computed
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:notifications' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] MediaWiki\Page\PageStore::getPageByNameViaLinkCache [0s] localhost: SELECT page_id,page_namespace,page_title,page_is_redirect,page_is_new,page_touched,page_links_updated,page_latest,page_len,page_content_model FROM `page` WHERE page_namespace = 8 AND page_title = 'Notifications' LIMIT 1
  • [objectcache] fetchOrRegenerate(techCARE:page:8:753a22b2eb617204efee4644795034b8ace1ee14): miss, new value computed
  • [objectcache] fetchOrRegenerate(techCARE:messages-big:f6c4f725a607bfe8fa0cf0c05ee4f470:Notifications): miss, new value computed
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:tooltip-p-associated-pages' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] MediaWiki\Page\PageStore::getPageByNameViaLinkCache [0s] localhost: SELECT page_id,page_namespace,page_title,page_is_redirect,page_is_new,page_touched,page_links_updated,page_latest,page_len,page_content_model FROM `page` WHERE page_namespace = 8 AND page_title = 'Tooltip-p-associated-pages' LIMIT 1
  • [objectcache] fetchOrRegenerate(techCARE:page:8:ef738cc53166fcf45692d0ade99df069e848dfb2): miss, new value computed
  • [objectcache] fetchOrRegenerate(techCARE:messages-big:f6c4f725a607bfe8fa0cf0c05ee4f470:Tooltip-p-associated-pages): miss, new value computed
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:associated-pages' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] MediaWiki\Page\PageStore::getPageByNameViaLinkCache [0s] localhost: SELECT page_id,page_namespace,page_title,page_is_redirect,page_is_new,page_touched,page_links_updated,page_latest,page_len,page_content_model FROM `page` WHERE page_namespace = 8 AND page_title = 'Associated-pages' LIMIT 1
  • [objectcache] fetchOrRegenerate(techCARE:page:8:cb7b37d2da1ced2fadc11aa3317c1a8efcf39648): miss, new value computed
  • [objectcache] fetchOrRegenerate(techCARE:messages-big:f6c4f725a607bfe8fa0cf0c05ee4f470:Associated-pages): miss, new value computed
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:tooltip-p-namespaces' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:tooltip-ca-nstab-special' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:accesskey-ca-nstab-special' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:tooltip-p-views' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:tooltip-p-cactions' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:cactions' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:tooltip-p-variants' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:mobile-frontend-view' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:vector-opt-out-tooltip' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:vector-opt-out' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:vector-action-toggle-sidebar' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:vector-main-menu-tooltip' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:vector-jumptonavigation' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:vector-jumptosearch' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:vector-jumptocontent' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:sitesubtitle' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:sitetitle' LIMIT 1
  • Unstubbing $wgLang on call of $wgLang::getCode from MediaWiki\Skins\Vector\SkinVector->decoratePortletData
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:variantname-en' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] MediaWiki\Page\PageStore::getPageByNameViaLinkCache [0s] localhost: SELECT page_id,page_namespace,page_title,page_is_redirect,page_is_new,page_touched,page_links_updated,page_latest,page_len,page_content_model FROM `page` WHERE page_namespace = 8 AND page_title = 'Variantname-en' LIMIT 1
  • [objectcache] fetchOrRegenerate(techCARE:page:8:2065ff0b4b26c26fa83f8ad4a9907bb9ded198d0): miss, new value computed
  • [objectcache] fetchOrRegenerate(techCARE:messages-big:f6c4f725a607bfe8fa0cf0c05ee4f470:Variantname-en): miss, new value computed
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [objectcache] fetchOrRegenerate(global:resourceloader-titleinfo:techCARE:da39a3ee5e6b4b0d3255bfef95601890afd80709): miss, new value computed
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'defaultDateFormat' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:january' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:february' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:march' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:april' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:may_long' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:june' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:july' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:august' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:september' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:october' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:november' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:december' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:vector-language-variant-switcher-label' LIMIT 1
  • [gitinfo] Candidate cacheFile=/var/www/mediawiki-1.39.0/gitinfo.json for /var/www/mediawiki-1.39.0
  • [gitinfo] Cache incomplete for /var/www/mediawiki-1.39.0
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:size-megabytes' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:size-kilobytes' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:size-bytes' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:formatnum-nan' LIMIT 1
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for local/0
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'compiledPluralRules' LIMIT 1
Although I have set a PHP error log in /etc/php.ini, it does not seem to have been created.
I do have an httpd error log with the following entries:
[Wed Dec 14 14:29:14.809338 2022] [core:notice] [pid 5572:tid 5572] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Wed Dec 14 14:29:14.810072 2022] [suexec:notice] [pid 5572:tid 5572] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Dec 14 14:29:14.834740 2022] [lbmethod_heartbeat:notice] [pid 5572:tid 5572] AH02282: No slotmem from mod_heartmonitor
[Wed Dec 14 14:29:14.841608 2022] [mpm_event:notice] [pid 5572:tid 5572] AH00489: Apache/2.4.53 (Red Hat Enterprise Linux) OpenSSL/3.0.1 configured -- resuming normal operations
[Wed Dec 14 14:29:14.841637 2022] [core:notice] [pid 5572:tid 5572] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Wed Dec 14 14:41:27.619996 2022] [mpm_event:notice] [pid 5572:tid 5572] AH00492: caught SIGWINCH, shutting down gracefully
[Wed Dec 14 14:41:28.674542 2022] [core:notice] [pid 5956:tid 5956] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Wed Dec 14 14:41:28.675252 2022] [suexec:notice] [pid 5956:tid 5956] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Dec 14 14:41:28.698869 2022] [lbmethod_heartbeat:notice] [pid 5956:tid 5956] AH02282: No slotmem from mod_heartmonitor
[Wed Dec 14 14:41:28.705276 2022] [mpm_event:notice] [pid 5956:tid 5956] AH00489: Apache/2.4.53 (Red Hat Enterprise Linux) OpenSSL/3.0.1 configured -- resuming normal operations
[Wed Dec 14 14:41:28.705299 2022] [core:notice] [pid 5956:tid 5956] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Wed Dec 14 14:57:44.956431 2022] [mpm_event:notice] [pid 5956:tid 5956] AH00492: caught SIGWINCH, shutting down gracefully
[Wed Dec 14 14:57:46.010605 2022] [core:notice] [pid 6437:tid 6437] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Wed Dec 14 14:57:46.011323 2022] [suexec:notice] [pid 6437:tid 6437] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Dec 14 14:57:46.035976 2022] [lbmethod_heartbeat:notice] [pid 6437:tid 6437] AH02282: No slotmem from mod_heartmonitor
[Wed Dec 14 14:57:46.041130 2022] [mpm_event:notice] [pid 6437:tid 6437] AH00489: Apache/2.4.53 (Red Hat Enterprise Linux) OpenSSL/3.0.1 configured -- resuming normal operations
[Wed Dec 14 14:57:46.041155 2022] [core:notice] [pid 6437:tid 6437] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
Is anything missing? Techcare.noc (talk) 15:12, 14 December 2022 (UTC)
I see...
I think there's the problem: Error 1146: Table 'techCARE.oathauth_users' doesn't exist
I have activated the "oathauth" extention, but have not yet set any users, other than the wikiadmin user that was created before all the extentions were installed. Techcare.noc (talk) 15:14, 14 December 2022 (UTC)
Note to self: don't stop reading when you think you're done...
Ran update.php, and the problem's gone. Techcare.noc (talk) 15:23, 14 December 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

PDFHandler - error message during upload

Hi,

I receive the following error message during upload of an PDF file:


Fehler beim Erstellen des Vorschaubildes: convert: unable to write blob /tmp/magick-EJHTZYB171dMtAG1V3qPkIs8v8LVVs90': Permission denied @ error/blob.c/ImageToFile/1890. convert: unable to write blob /tmp/magick-aCcIJkHlOYGFmddkkDO_HZ3tACrAUD-1': Permission denied @ error/blob.c/ImageToFile/1890. convert: no decode delegate for this image format ' @ error/constitute.c/ReadImage/576. convert: no images defined /temp/150260/u150260/wiki.hartkopf-web.de/transform_c29b37944047.jpg' @ error/convert.c/ConvertImageCommand/3229. Error: /ioerror in --showpage-- Operand stack: 1 true Execution stack: %interp_exit .runexec2 --nostringval-- showpage --nostringval-- 2 %stopped_push --nostringval-- showpage showpage false 1 %stopped_push 1992 1 3 %oparray_pop 1991 1 3 %oparray_pop 1979 1 3 %oparray_pop 1980 1 3 %oparray_pop showpage showpage 2 1 1 showpage %for_pos_int_continue 1983 1 7 %oparray_pop showpage showpage 1840 0 9 %oparray_pop showpage showpage Dictionary stack: --dict:727/1123(ro)(G)-- --dict:1/20(G)-- --dict:80/200(L)-- --dict:80/200(L)-- --dict:133/256(ro)(G)-- --dict:315/325(ro)(G)-- --dict:33/64(L)-- --dict:6/9(L)-- --dict:7/20(L)-- Current allocation mode is local Last OS error: Broken pipe GPL Ghostscript 9.27: Unrecoverable error, exit code 1


Any ideas?

Thanks

Dirk Diha9919 (talk) 15:20, 14 December 2022 (UTC)

Does mediawiki (i.e. convert) have permission to write in /tmp ? Bawolff (talk) 17:51, 14 December 2022 (UTC)
Obviously not. Where is the /tmp path configured? I run this wiki on a website package where I don't have access to /tmp, but I have a directory ~/tmp.
I need to configure the path´. Do you know how I can do this? Diha9919 (talk) 14:49, 6 January 2023 (UTC)
MAGICK_TEMPORARY_PATH environment variable or configure.xml config file.
Maybe you should complain to your host. Having a world writable /tmp with stick flag set is a pretty standard config for a shared unix host. Bawolff (talk) 20:30, 30 January 2023 (UTC)
Has anybody a solution for me?
I'm looking for a variable to set the temporary directory from /tmp to another one where the software has write permissions.
Thanks, Dirk Diha9919 (talk) 14:15, 30 January 2023 (UTC)

Using wgForeignFileRepos shows duplicate image warning

Hi. Im currently working on a wiki family project. Main wiki on a subdomain, and secondary on the other. Using main wiki as main repository for my wiki family.

Added the following code to secondary wiki to get images from main wiki but when I upload an image to main wiki and check it's page, MW says it's duplicate image and links same image on the secondary wiki. How can I prevent images from show as duplicate?


Codes I use on secondary wiki:

$wgForeignFileRepos[] = [

"class" => ForeignDBRepo::class,

"name" => "shareduploads",

"url" => "//uploads.mydomain.com",

"directory" => "/home/mywebsite/public_html/wiki/uploads",

"hashLevels" => 2,

"dbType" => "$wgDBtype",

"dbServer" => "$wgDBserver",

"dbUser" => "MAINDBUSERNAME",

"dbPassword" => "MAINDBPASSWORD",

"dbFlags" => "DBO_DEFAULT",

"dbName" => "MAINDBNAME",

"tablePrefix" => "",

"hasSharedCache" => false,

"descBaseUrl" => "/File:",

"fetchDescription" => false

]; 159.146.38.129 (talk) 17:17, 14 December 2022 (UTC)

Universal Language Selector changed wiki family members' languages

Hi. I've installed ULS, but it changed my second wiki's interface language to same as my main wiki's language.

How can I specify ULS to set my wikis' language to their own $wgLanguageCode? 159.146.38.129 (talk) 20:57, 14 December 2022 (UTC)

OpenID Connect Azure SSO Fatal Error authenticating user

Window Server 2019

Product Version
MediaWiki 1.39.0
PHP 7.4.13 (cgi-fcgi)
MySQL 5.7.40-log
ICU 66.1

Extensions

OpenID Connect 6.1 (dbd8048) 17:42, 8 December 2022
PluggableAuth 6.1 (3a8142d) 03:20, 7 December 2022

PLuggable auth login button lable message "0"


Error

Fatal error authenticating user.

Logs


Line 52: #4 C:\inetpub\wwwroot\mediawiki\extensions\OpenIDConnect\includes\OpenIDConnect.php(203): Jumbojett\OpenIDConnectClient->authenticate()

Line 53: #5 C:\inetpub\wwwroot\mediawiki\extensions\PluggableAuth\includes\PluggableAuthLogin.php(93): MediaWiki\Extension\OpenIDConnect\OpenIDConnect->authenticate()

Line 63: [session] SessionBackend "eqhino7ppp6aft58ldhusdu2gaq1jm0u" data dirty due to dirty(): SpecialPage->run/MediaWiki\Extension\PluggableAuth\PluggableAuthLogin->execute/MediaWiki\Extension\OpenIDConnect\OpenIDConnect->authenticate/MediaWiki\Session\Session->clear/MediaWiki\Session\SessionBackend->dirty

Line 75: [PluggableAuth] Authentication failure.

Line 82: #4 C:\inetpub\wwwroot\mediawiki\extensions\OpenIDConnect\includes\OpenIDConnect.php(203): Jumbojett\OpenIDConnectClient->authenticate()

Line 83: #5 C:\inetpub\wwwroot\mediawiki\extensions\PluggableAuth\includes\PluggableAuthLogin.php(93): MediaWiki\Extension\OpenIDConnect\OpenIDConnect->authenticate()

Line 92: [session] SessionBackend "eqhino7ppp6aft58ldhusdu2gaq1jm0u" data dirty due to dirty(): MediaWiki\Auth\AuthManager->setAuthenticationSessionData/MediaWiki\Session\Session->setSecret/MediaWiki\Session\Session->getSecretKeys/MediaWiki\Session\Session->set/MediaWiki\Session\SessionBackend->dirty

Line 93: [session] SessionBackend "eqhino7ppp6aft58ldhusdu2gaq1jm0u" data dirty due to dirty(): MediaWiki\Auth\AuthManager->setAuthenticationSessionData/MediaWiki\Session\Session->setSecret/MediaWiki\Session\Session->getSecretKeys/MediaWiki\Session\Session->set/MediaWiki\Session\SessionBackend->dirty

Line 94: [session] SessionBackend "eqhino7ppp6aft58ldhusdu2gaq1jm0u" data dirty due to dirty(): MediaWiki\Extension\PluggableAuth\PluggableAuthLogin->execute/MediaWiki\Auth\AuthManager->setAuthenticationSessionData/MediaWiki\Session\Session->setSecret/MediaWiki\Session\Session->set/MediaWiki\Session\SessionBackend->dirty


[OpenIDConnect] Redirect URL: https://mediawiki.pmhc.nsw.gov.au/index.php?title=Special:PluggableAuthLogin

#5 C:\inetpub\wwwroot\mediawiki\extensions\PluggableAuth\includes\PluggableAuthLogin.php(93): MediaWiki\Extension\OpenIDConnect\OpenIDConnect->authenticate()

#6 C:\inetpub\wwwroot\mediawiki\includes\specialpage\SpecialPage.php(701): MediaWiki\Extension\PluggableAuth\PluggableAuthLogin->execute()

[session] SessionBackend "eqhino7ppp6aft58ldhusdu2gaq1jm0u" data dirty due to dirty(): SpecialPage->run/MediaWiki\Extension\PluggableAuth\PluggableAuthLogin->execute/MediaWiki\Extension\OpenIDConnect\OpenIDConnect->authenticate/MediaWiki\Session\Session->clear/MediaWiki\Session\SessionBackend->dirty

#5 C:\inetpub\wwwroot\mediawiki\extensions\PluggableAuth\includes\PluggableAuthLogin.php(93): MediaWiki\Extension\OpenIDConnect\OpenIDConnect->authenticate()

#6 C:\inetpub\wwwroot\mediawiki\includes\specialpage\SpecialPage.php(701): MediaWiki\Extension\PluggableAuth\PluggableAuthLogin->execute()

[session] SessionBackend "eqhino7ppp6aft58ldhusdu2gaq1jm0u" data dirty due to dirty(): MediaWiki\Extension\PluggableAuth\PluggableAuthLogin->execute/MediaWiki\Auth\AuthManager->setAuthenticationSessionData/MediaWiki\Session\Session->setSecret/MediaWiki\Session\Session->set/MediaWiki\Session\SessionBackend->dirty

[DBQuery] LCStoreDB::get [0s] localhost: SELECT  lc_value  FROM `mediawiki_l10n_cache`    WHERE lc_lang = 'en' AND lc_key = 'messages:pt-login'  LIMIT 1  

[DBQuery] LCStoreDB::get [0s] localhost: SELECT  lc_value  FROM `mediawiki_l10n_cache`    WHERE lc_lang = 'en' AND lc_key = 'messages:tooltip-pt-login-private'  LIMIT 1  

[DBQuery] LCStoreDB::get [0s] localhost: SELECT  lc_value  FROM `mediawiki_l10n_cache`    WHERE lc_lang = 'en' AND lc_key = 'messages:accesskey-pt-login-private'  LIMIT 1  

@Cindy (the boos)$ Ramvenkey6278 (talk) 22:22, 14 December 2022 (UTC)

This maintenance script requires a SQLite database

Debian 11

Product Version
MediaWiki 1.39.0
PHP 7.4.30
Sqlite 3.34.1

I want to do backup my database with script maintenance/SqliteMaintenance.php --backup-to <file>

but, i get error:

This maintenance script requires a SQLite database

How to fix this problem? 195.239.115.122 (talk) 10:59, 15 December 2022 (UTC)

Not sure about the script, but you could also backup the DB using the sqlite3 commandline tool.
For that matter with sqlite you could probably just make a copy of the db files using normal filesystem tools. Bawolff (talk) 19:30, 15 December 2022 (UTC)
Thank you for answer 95.52.96.233 (talk) 13:27, 16 December 2022 (UTC)

Thumbnails : error code - 1

Hello,

I created a wiki site at a host. I then transferred this site to another host and everything works except the thumbnails which are no longer created. The thumbnails of the original site have been installed, but it is impossible to create new ones. I have the following message instead of the thumbnail: "Error while creating the thumbnail: Error code: -1"

I saw that in the "basenameobjectcache" table of the base at the new host there were elements which had the name of the old base in the "keyname".

Do you think the error comes from there and if so, how to fix it?

Thanks for your help

Produit Version
MediaWiki 1.39.0
PHP 7.4.29 (fpm-fcgi)
MySQL 5.7.40-log
ICU 63.1

Pacha35 (talk) 11:22, 15 December 2022 (UTC)

Error code 127 is command not found. I guess that would be -1 if it was somehow cast to a signed 8 bit integer.
Are you sure that convert exists and can be executed by mediawiki?
The MW debug log may have more details. See how to debug Bawolff (talk) 19:28, 15 December 2022 (UTC)
Hello,
thank you for your reply.
I put the 2 lines to get the error log, but nothing is edited with the error code - 1;
But, I found what didn't work: after removing the 2 lines concerning ImageMagick, everything is correct even MsUpload.
What is strange is that ImageMagick works with one host (o2switch) and not with the other (OVH) while the MediaWiki environment is exactly the same. Pacha35 (talk) 16:03, 16 December 2022 (UTC)

How to 'bulk' create categories?

I've uploaded approx. 3000 text files and converted them into MediaWiki pages using the php script provided. These contain approx. 1000 categories. I can't create these categories individually.


Is there a way to upload a list of categories to be created automatically or an extension or php script to automatically create categories? The.machine.preacher (talk) 12:32, 15 December 2022 (UTC)

You can bulk create categories the same way as a normal page. Bawolff (talk) 22:23, 15 December 2022 (UTC)
How? 2001:8004:1400:3011:FD8B:BCBD:CE34:D28A (talk) 06:44, 16 December 2022 (UTC)

Hello,

We've updated MediaWiki from 1.38.1 to 1.39 and the password reset link seems to be missing. Is there any setting that's required to bring it back to a working state so that we can allow registered users to reset their passwords? Thanks. Jbennett56 (talk) 16:16, 15 December 2022 (UTC)

Generally it is controlled by $wgPasswordResetRoutes. If you dont have email enabled that also might make the link dissappear.
Keep in mind that if the user is blocked that will also prevent them from resetting a password. Bawolff (talk) 22:22, 15 December 2022 (UTC)
We set $wgPasswordResetRoutes to true both for email and username initially and at first it didn't seem like it made any difference but we came into work today and the link is now showing which is really weird but is working now, thank you. Jbennett56 (talk) 14:57, 16 December 2022 (UTC)

internal error deleting uploaded file

Hello,

I just upgraded to 1.39 and to php 8.2. I'm not sure what setting is causing this, but when I try and delete a file I get this error:

[fc5ac19fb94fbe31a1da5fa6] /index.php?title=File:Q97.pdf&action=delete Error: Cannot access protected property WikiFilePage::$mTitle

Backtrace:

from C:\inetpub\wwwroot\TempWiki\w\extensions\TitleKey\includes\TitleKey.php(105)

#0 C:\inetpub\wwwroot\TempWiki\w\includes\HookContainer\HookContainer.php(338): TitleKey::updateDeleteSetup()

#1 C:\inetpub\wwwroot\TempWiki\w\includes\HookContainer\HookContainer.php(137): MediaWiki\HookContainer\HookContainer->callLegacyHook()

#2 C:\inetpub\wwwroot\TempWiki\w\includes\HookContainer\HookRunner.php(706): MediaWiki\HookContainer\HookContainer->run()

#3 C:\inetpub\wwwroot\TempWiki\w\includes\page\DeletePage.php(502): MediaWiki\HookContainer\HookRunner->onArticleDelete()

#4 C:\inetpub\wwwroot\TempWiki\w\includes\page\DeletePage.php(467): MediaWiki\Page\DeletePage->runPreDeleteHooks()

#5 C:\inetpub\wwwroot\TempWiki\w\includes\page\DeletePage.php(383): MediaWiki\Page\DeletePage->deleteUnsafe()

#6 C:\inetpub\wwwroot\TempWiki\w\includes\FileDeleteForm.php(98): MediaWiki\Page\DeletePage->deleteIfAllowed()

#7 C:\inetpub\wwwroot\TempWiki\w\includes\actions\FileDeleteAction.php(113): FileDeleteForm::doDelete()

#8 C:\inetpub\wwwroot\TempWiki\w\includes\actions\FileDeleteAction.php(69): MediaWiki\Actions\FileDeleteAction->tempExecute()

#9 C:\inetpub\wwwroot\TempWiki\w\includes\actions\DeleteAction.php(112): MediaWiki\Actions\FileDeleteAction->tempDelete()

#10 C:\inetpub\wwwroot\TempWiki\w\includes\MediaWiki.php(542): DeleteAction->show()

#11 C:\inetpub\wwwroot\TempWiki\w\includes\MediaWiki.php(322): MediaWiki->performAction()

#12 C:\inetpub\wwwroot\TempWiki\w\includes\MediaWiki.php(904): MediaWiki->performRequest()

#13 C:\inetpub\wwwroot\TempWiki\w\includes\MediaWiki.php(562): MediaWiki->main()

#14 C:\inetpub\wwwroot\TempWiki\w\index.php(50): MediaWiki->run()

#15 C:\inetpub\wwwroot\TempWiki\w\index.php(46): wfIndexMain()

#16 {main}


What setting am I missing to update that is causing me to not delete uploaded files?


Thank you 141.211.32.5 (talk) 17:25, 15 December 2022 (UTC)

Did you tried to rollback to another PHP version? Like 8.1, 8.0, or even 7.4? 159.146.38.129 (talk) 18:04, 15 December 2022 (UTC)
Yes, I'm sorry I didn't add that. I did try 8.1.8 and 7.4.5 and it gives me the same message. Is there permissions in the php.ini file that I'm missing?
Thank you 141.211.32.5 (talk) 18:30, 15 December 2022 (UTC)
I'm doing this on a windows 2019 standard server 141.211.32.5 (talk) 18:32, 15 December 2022 (UTC)
I finally got it to work by commenting out this line and it worked.
wfLoadExtension( 'TitleKey' ); 141.211.32.5 (talk) 19:09, 15 December 2022 (UTC)
Just as a general thing, when upgrading remember to upgrade extensions too. Bawolff (talk) 19:25, 15 December 2022 (UTC)
I will, thank you 141.211.32.5 (talk) 19:49, 15 December 2022 (UTC)

Reporting wikis that used MediaWiki software

I had founded a MediaWiki wiki that contains a lot of gravedancing (insulting blocked users) and false medical information.


Is there is anyway I can report a wiki that used MediaWiki software? SpinnerLaserzthe2nd (talk) 20:00, 15 December 2022 (UTC)

We have no control over how mediawiki software is used by other people. (Excluding, of course the wikis that we ourselves host like Wikipedia)
You can potentially report it to the hosting provider they are using. You can often find that out by using the whois tool on the domain - https://whois.domaintools.com/ and looking forthe abuse contact. If they own their own domain, first lookup what the ip address is with https://toolbox.googleapps.com/apps/dig/#A/ (selecting A) and then look the ip address up in the whois tool.
Generally hosting providers only care in extreme cases.
If they are doing something illegal you can report them to the police. Bawolff (talk) 22:19, 15 December 2022 (UTC)

Cannot install on MAMP with PHP 7.4.9/MySQL 5.7.30

The MediaWiki 1.39.0 installation screen opens fine, but then when I press Continue →

It gets to:

http://localhost:8888/mediawiki/mw-config/index.php

and then shows a white screen. Edmiidz (talk) 00:54, 16 December 2022 (UTC)

Can you enable php error logging in php.ini? See How to debug for info on how to. Bawolff (talk) 03:57, 16 December 2022 (UTC)

Issues with pages after moving to new server

I have just moved my mediawiki to a new server. I have imported the db and files.


On the home page the links seem to be going to create a page however if you search the page name the contents is available.


I have ran php update. Some of home page links have content and some dont.


Any help appreciated Alliball (talk) 17:17, 16 December 2022 (UTC)

Hi, please see "Post a new question" in the sidebar and provide config info for the old and new server Malyacko (talk) 18:29, 16 December 2022 (UTC)
Try making an edit to LocalSettings.php (doesnt matter what, add a space somewhere).
If that doesnt work, try running refreshLinks.php Bawolff (talk) 23:12, 16 December 2022 (UTC)

"The file you submitted was too large." / "This file is bigger than the server is configured to allow."

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.


"Maximum file size: 100 MB"

... but the PDF I'm trying to upload is only 8 MB.

I don't know whether this is relevant, but I recently upgraded from 1.34 to 1.35.8. Jonathan3 (talk) 20:59, 16 December 2022 (UTC)

I'm looking at Manual:Configuring_file_uploads#Set_maximum_size_for_file_uploads now.
It may just be that I've never uploaded as big a file before. I'll report back :-) Jonathan3 (talk) 21:05, 16 December 2022 (UTC)
I changed post_max_size and upload_max_filesize both to 10M and it works all right now. Mustn't have had such a large file before. In my case I typed:
sudo nano /etc/php/7.4/apache2/php.ini
sudo systemctl restart apache2
Jonathan3 (talk) 21:22, 16 December 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

The position of the table of contents (TOC) has changed after the update to 1.39

I'm having trouble with the new floating table of contents and would like to go back to the previous version if possible. 5.113.89.48 (talk) 16:06, 17 December 2022 (UTC)

Do you mean use the vector skin instead of the vector-2022 skin? You can set that in LocalSettings.php Bawolff (talk) 19:38, 17 December 2022 (UTC)

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


Example: https://mdwiki.org/wiki/Basal-cell_carcinoma <––in the footer, the word Wikipedia links to the actual Wikipedia article on Basal-cell_carcinoma. How do you write the code to link to the WP article and Meta in the footer? Atsme (talk) 18:31, 17 December 2022 (UTC)

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

How to change the MediaWiki base URL?

I installed the Bitnami MediaWiki on Google Cloud and registered a new domain name (e.g. http://example.com) then redirected it to my MediaWiki IP.

I then changed $wgServer in LocalSettings.php to reflect my new domain.

The $wgScriptPath variable in LocalSettings.php remained $wgScriptPath = '' as before.

Typing http://example.com in the browser gets me to my MediaWiki site, however the URL still remains an IP address (i.e. http://xx.xxx.xx.xx/wiki/Main_Page).

How do I make it such that the base URL changes to the new domain name (i.e. http://example.com/wiki/Main_Page)? The.machine.preacher (talk) 21:32, 17 December 2022 (UTC)

How did you redirect example.com to your mediawiki ip? You need to ensure that you set the A record for the domain to your mediawiki ip. If you used a different method of redirecting the domain it might not work Bawolff (talk) 22:15, 17 December 2022 (UTC)
Thank you! That worked! The.machine.preacher (talk) 00:06, 18 December 2022 (UTC)

Spam

I created a fresh install and immediately added the following to LocalSettings.php:

# Disable anonymous editing

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

# Prevent new user registrations except by sysops

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


However, I am still getting spam content posted by bots.


I just want a Wiki where me and people I approve can edit. What am I doing wrong? Dwstultz (talk) 14:27, 18 December 2022 (UTC)

mw version 1.39.0, php version 7.4 Dwstultz (talk) 14:40, 18 December 2022 (UTC)
There are some ideas in Manual:Preventing access.
Is the spam from registered users? You could restrict account creation.
You could disallow "*" and "user" from editing, but allow a "sysop" and a new group ("Friends" or something). Jonathan3 (talk) 22:36, 18 December 2022 (UTC)
Can you go to Special:listgrouprights on your wiki and verify that edit and createaccount are not listed under all?
Are there still new bot accounts being created or are they from before you changed LocalSettings.php? Bawolff (talk) 04:25, 19 December 2022 (UTC)

Total number of wiki articles in different languages

I use the magic word {{NUMBEROFARTICLES}} to display the number of articles in the wiki If I want to show the number of articles in other languages in another wiki, what method should I use?


en.example.net

ar.example.net

fr.example.net

it.example.net


en.example.net = 64,527 => 2500 Articles

For example, I want to know how many articles the French wiki has in the English wiki Sokote zaman (talk) 03:58, 19 December 2022 (UTC)

If you orginised wiki at doifferent subdomains using one file system and database (with diffrenet prefixes for each localisation) then you can use {{NUMBEROFARTICLES}} to count articles in each wiki. Fokebox (talk) 07:40, 19 December 2022 (UTC)
I guess a bot to update a template.
There are also extensions like extension:external Data Bawolff (talk) 09:47, 19 December 2022 (UTC)

Login-Option gone

In the wiki I'm setting up the login-option on the top right side disappeared. I can still access the login-page via the special:login page.

These are my settings:

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

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

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

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

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

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

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

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

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

$wgGroupPermissions['user']['applychangetags '] = false;

$wgGroupPermissions['user']['minoredit '] = false;

$wgGroupPermissions['user']['changetags '] = false;

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

$wgGroupPermissions['user']['editcontentmodel '] = false;

$wgGroupPermissions['user']['upload '] = false;

$wgGroupPermissions['user']['movefile '] = false;

$wgGroupPermissions['user']['createtalk '] = false;

$wgGroupPermissions['user']['sendemail '] = false;

$wgGroupPermissions['user']['editmyusercss '] = false;

$wgGroupPermissions['user']['editmyuserjson '] = false;

$wgGroupPermissions['user']['editmyuserjs '] = false;

$wgGroupPermissions['user']['editmyuserjsredirect '] = false;

$wgGroupPermissions['user']['move-rootuserpages'] = false;

$wgGroupPermissions['user']['move-categorypages'] = false;

$wgGroupPermissions['user']['reupload-shared'] = false;

$wgGroupPermissions['user']['move-subpages'] = false;

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

$wgGroupPermissions['user']['move'] = false;

$wgGroupPermissions['user']['purge'] = false;

$wgGroupPermissions['user']['reupload'] = false;

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

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

$wgGroupPermissions['laborantix']['applychangetags '] = true;

$wgGroupPermissions['laborantix']['minoredit '] = true;

$wgGroupPermissions['laborantix']['changetags '] = true;

$wgGroupPermissions['laborantix']['writeapi '] = true;

$wgGroupPermissions['laborantix']['editcontentmodel '] = true;

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

$wgGroupPermissions['laborantix']['movefile '] = true;

$wgGroupPermissions['laborantix']['createtalk '] = true;

$wgGroupPermissions['laborantix']['sendemail '] = true;

$wgGroupPermissions['laborantix']['editmyusercss '] = true;

$wgGroupPermissions['laborantix']['editmyuserjson '] = true;

$wgGroupPermissions['laborantix']['editmyuserjs '] = true;

$wgGroupPermissions['laborantix']['editmyuserjsredirect '] = true;

$wgGroupPermissions['laborantix']['move-rootuserpages'] = true;

$wgGroupPermissions['laborantix']['move-categorypages'] = true;

$wgGroupPermissions['laborantix']['reupload-shared'] = true;

$wgGroupPermissions['laborantix']['move-subpages'] = true;

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

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

$wgGroupPermissions['laborantix']['purge'] = true;

$wgGroupPermissions['laborantix']['reupload'] = true; 212.51.139.106 (talk) 11:24, 19 December 2022 (UTC)

phab:T324426 Willy1018 (talk) 13:19, 19 December 2022 (UTC)

Disable category list to non-logged in users

I use something like this to disable access to some sections. Can I disable access to category listings (I.e. "pages in category...").

$wgHooks['BeforePageDisplay'][] = 'wfHideVariousTabsFromAnonymous';
function wfHideVariousTabsFromAnonymous( OutputPage $out, Skin $skin ) {
  if ( !$out->getUser()->isLoggedIn() ) {
    // addInineStyle is deprecated
    $out->addInlineStyle( 'li#ca-history, #site-tools, #user-tools, #page-tools, #ca-nstab-special { display: none; }' );
  }
  return true;
}

Spiros71 (talk) 13:43, 19 December 2022 (UTC)

I guess you could add the selector .mw-category-generated to the list you have there. Bawolff (talk) 20:14, 31 December 2022 (UTC)
Yes, this is what I had tried. The listings though still appear on page source. Spiros71 (talk) 17:52, 2 January 2023 (UTC)
You could use extension:Lockdown to disable access to category namespace entirely. Bawolff (talk) 21:14, 2 January 2023 (UTC)
Thanks! So would something like this be needed for access to category content only by sysop?
$wgNamespacePermissionLockdown[NS_CATEGORY]['*'] = ['sysop']; Spiros71 (talk) 14:58, 4 January 2023 (UTC)

how to backup installed extensions?

Hello !

Is there a way to backup the installed extensions ? Should I install it again when I restore or rebuild media wiki. Luciferindcok (talk) 10:36, 20 December 2022 (UTC)

With FTP copy to local Shadowslight 10:39, 20 December 2022 (UTC)
There's no real need to backup extensions' code, because it's always available from here. But if you want to, it's just like any other files, so you can copy them to wherever else you normally back up things to. Sam Wilson 11:18, 20 December 2022 (UTC)
thank you !! Luciferindcok (talk) 05:09, 21 December 2022 (UTC)

How do I replace the class (error|warning|success)box?

After upgrading to MediaWiki 1.39, <div class=(error|warning|success)box> no longer works.

I checked the release notes and other information, but the information is too technical to understand.

Please briefly explain what I should replace <div class=(error|warning|success)box> with, etc. Ryoya3 (talk) 12:03, 20 December 2022 (UTC)

What is it you think they should be doing? Bawolff (talk) 21:41, 20 December 2022 (UTC)

help to edit a page in hebrew of a disease, some information are just wrong

Hi, I am booking for some support from a coordinator to the edition of a page

thanks 77.137.78.112 (talk) 12:33, 20 December 2022 (UTC)

Please bring up content topics on the website itself. They are out of scope for mediawiki.org if the page is not hosted on mediawiki.org. Thanks. Malyacko (talk) 14:32, 20 December 2022 (UTC)
Try asking at https://he.wikipedia.org/wiki/%D7%95%D7%99%D7%A7%D7%99%D7%A4%D7%93%D7%99%D7%94:%D7%93%D7%9C%D7%A4%D7%A7_%D7%99%D7%99%D7%A2%D7%95%D7%A5 Bawolff (talk) 21:41, 20 December 2022 (UTC)

Imported images don’t display upon SSL activation

I uploaded about 500 images onto my wiki and used the php ImportImages script. It used to work before activating the SSL, but now it doesn’t any longer. The previous images are seen, but the new ones that I uploaded cannot. Is there something I need to update with the LocalSettings.php file?

I’m running MediaWiki 1.37 on Google Cloud (Bitnami package).

Previously uploaded images all are in https://my.wiki/wiki/File:example-image.jpg

Now it’s http://my.wiki/index.php?title=Special:Upload&wpDestFile=

What’s happening and where am I going wrong? 2001:8004:C42:700A:547C:A42:5E3D:61C5 (talk) 21:53, 20 December 2022 (UTC)

Normally ssl would not affect this.
Normally the only config you would have to change in mediawiki for ssl is $wgServer.
Can you post your LocalSettings.php (minus any passwords or keys). A link to your actual wiki might be helpful if it is public. Bawolff (talk) 04:42, 21 December 2022 (UTC)

Azure SSO Integration SAML

I am getting below errors in error log, any help would be appreciated

Product Version
MediaWiki 1.39.0
PHP 7.4.13 (cgi-fcgi)
MySQL 5.7.40-log
ICU 66.1
PluggableAuth 6.1 (3a8142d) 03:20, 7 December 2022
SimpleSAMLphp 5.0.1 (f918b19) 17:43, 8 December 2022

simplesamlphp (1.19.7)


Line 610: [PluggableAuth] In execute()

Line 611: [PluggableAuth] Getting PluggableAuth instance

Line 611: [PluggableAuth] Getting PluggableAuth instance

Line 612: [PluggableAuth] Plugin name: SimpleSAMLphp

Line 613: [PluggableAuth] Invalid authentication plugin class: Invalid session ID

Line 613: [PluggableAuth] Invalid authentication plugin class: Invalid session ID

Line 850: [authentication] Login failed in primary authentication by MediaWiki\Extension\PluggableAuth\PrimaryAuthenticationProvider

Line 850: [authentication] Login failed in primary authentication by MediaWiki\Extension\PluggableAuth\PrimaryAuthenticationProvider

Line 850: [authentication] Login failed in primary authentication by MediaWiki\Extension\PluggableAuth\PrimaryAuthenticationProvider

Line 850: [authentication] Login failed in primary authentication by MediaWiki\Extension\PluggableAuth\PrimaryAuthenticationProvider Ramvenkey6278 (talk) 00:14, 21 December 2022 (UTC)

@Ramvenkey6278Hi, were you able to get this worked ? I am also getting same error and not able to login.
--
Thanks. Testergt1302 (talk) 07:15, 20 November 2023 (UTC)
Sorry, I can't read this text. :( Testergt1302 (talk) 10:01, 20 November 2023 (UTC)

Mediawiki 1.39 php upgrade

Hello

Is it possible to update php 7.4 to any 8version while using mediawiki 1.39 in oracle linux 7? and MYSQL 8 to the latest ? Luciferindcok (talk) 07:00, 21 December 2022 (UTC)

Yes Bawolff (talk) 07:32, 21 December 2022 (UTC)
I am new to this, cold you please help me here how to do it. Luciferindcok (talk) 07:38, 21 December 2022 (UTC)
See Manual:Upgrading for upgrading MediaWiki itself. For upgrading PHP and MySQL please refer to your distribution's support forums. Malyacko (talk) 09:33, 21 December 2022 (UTC)

no login screen

Hello

I had recently upgraded mediawiki from 1.35 to 1.39 . There is no tab to enter username password.PHP 7.4.33 and mysqld  Ver 8.0.31 for Linux on x86_64, oracle linux 7.9

Extensions installed

LDAPAuthentication2

PluggableAuth

LDAPProvider


~~~~~~~~~~~~

2022-12-21 06:54:26 server name: In execute()

2022-12-21 06:54:26 server name: Getting PluggableAuth singleton

2022-12-21 06:54:26 server name: Class name: MediaWiki\Extension\LDAPAuthentication2\PluggableAuth

2022-12-21 06:54:26 server name: ldap_connect( $hostname = 'servername', $port = *** );

2022-12-21 06:54:26 server name: # __METHOD__ returns Resource id #883

2022-12-21 07:14:45 server name: In execute()

2022-12-21 07:14:45 server name: Getting PluggableAuth instance

2022-12-21 07:14:45 server name: Could not get authentication plugin instance.

2022-12-21 07:14:45 server name: ERROR: return to URL is null or empty Luciferindcok (talk) 07:42, 21 December 2022 (UTC)

Bug when searching in PDF content

I think I have identified a bug, but don't know yet where to best put it. Setup is MW 1.35, with CirrusSearch/Elastica/AdvabcedSearch/ElasticSearch and PDF Handler. The results in the capability of searching inside PDF documents. This is working as expected. In the search box you will be redirected to the search page where you will have to select the "File" namespace.

Now if I set $wgNamespacesToBeSearchedDefault[NS_FILE] = true; the file namespece is correctly set to be searched by default, but now NOTHING is found. It also does not work if you unselect and select again. The result simply is not showing. If you unset the $wgNamespacesToBeSearchedDefault again, the file namespace searching is working as before.

So this must be located in Cirrus Search or Advanced Search... Krabina (talk) 16:04, 21 December 2022 (UTC)

How to customize the default docker-compose.yml for your own MediaWiki website?

Recently I downloaded the docker-compose.yml from https://github.com/wikimedia/mediawiki https://github.com/wikimedia/mediawiki/blob/master/docker-compose.yml and I'm trying to modify it to upgrade my existing wikimedia website.


First of all, I need to make it work in my local PC and be able to browse the test site with the latest (wikimedia 1.39 /php 8/apache 2.4) versions. The URL should be something simple such as http://localhost:8080 This is just proof of concept that I set the test site up correctly on my local. For the time being, I did not make it work yet.


Could someone please explain below section of docker-compose.yml file?

Does "/var/www/html/w" mean it will install MW to w: drive?

By policy I'm not allowed to map any drive at my office PC. Thus I only have access to C: drive. If that's the case, how should I modify this docker compose yaml file?

volumes:

      - ./:/var/www/html/w:cached

    env_file:

      - '.env'

    environment:

      MW_LOG_DIR: /var/www/html/w/cache

      MW_INSTALL_PATH: /var/www/html/w


Much appreciated! Hyang26 (talk) 21:52, 21 December 2022 (UTC)

> Does "/var/www/html/w" mean it will install MW to w: drive?
No. In this context, colon is a path seperator not a drive letter (keep in mind that docker tends to use linux conventions not windows).
> ./:/var/www/html/w:cached
means there are 3 things: ./ , /var/www/html/w and cached.
It basically means take the current directory on your computer (./), put that on the docker image as /var/www/html/w (docker is unix, so no drive letters), and do it in cached mode (means there might be a little delay for changes in filesystem to propagate)
The environment section just tells mediawiki what directory to use for some things. (These are paths inside the image and not the path on your computer) Bawolff (talk) 02:20, 22 December 2022 (UTC)
Thanks so much for your clear explanation, Bawolff.
I'm new to Docker. I installed Docker Desktop and set it up just about half month ago. I'm still learning some basics about the Docker image and volume etc. It's indeed very different from Windows & Linux systems that I'm relatively familiar with.
The key takeaway here is: "These are paths inside the image and not the path on your computer".
If that's the case, any letter other than "w" would work, right? Could the MW_INSTALL_PATH be /var/www/html/ instead of /var/www/html/w? Why do we need another sub-directly under /html for installation?Just a bit puzzled here.
I tried to follow through the steps on below website. The step 5 under Quick Start
5. Clone MediaWiki in a subfolder called html.
Docker/Hub
Therefore, the file structure on my local PC looks like C:\Git\app\html\mediawiki Hyang26 (talk) 23:02, 22 December 2022 (UTC)
There might be other things that depend on paths. Typically apache defaults to /var/www/html as the web root, and lots of people want a subdirectory w to be like wikipedia, and allow having additional non mediawiki things. Other things like LocalSettings.php $wgScriptPath or apache rewrite rules might want a certain path which would also have to be changed. Bawolff (talk) 06:29, 23 December 2022 (UTC)
Thanks, Bawolff.
I did not change much of https://github.com/wikimedia/mediawiki/blob/master/docker-compose.yml
I simply created a .env file and downloaded docker-compose.yml from the above link. Put them under below directory on my local C:\Git\appdev
My .env file is below:
MW_SCRIPT_PATH=/var/www/html/w
MW_SERVER=http://localhost:8080
MW_DOCKER_PORT=8080
MEDIAWIKI_USER=Admin
MEDIAWIKI_PASSWORD=dockerpass
XDEBUG_CONFIG=''
XDEBUG_ENABLE=true
XHPROF_ENABLE=true
MW_DOCKER_UID=1053048
MW_DOCKER_GID=1049089
Then I ran below:
PS C:\Git\appdev> docker-compose up -d
Creating network "appdev_default" with the default driver
Creating appdev_mediawiki_1           ... done
Creating appdev_mediawiki-jobrunner_1 ... done
Creating appdev_mediawiki-web_1       ... done
I went on to check http://localhost:8080/ Alas, "File not found."
I tried a few times and always encounter the same message.
What would you think might go wrong with the configuration? Hyang26 (talk) 16:15, 23 December 2022 (UTC)
https://github.com/wikimedia/mediawiki/blob/a4f57ee66ca0a4f1633d8ee8507a55e014005592/DEVELOPERS.md
After reading DEVELOPERS.md file, I realized the mediawiki is not even installed yet!
I modified the .env file based on the site suggestions. Even though it say for Non-Windows users, it needs UID & GID. I found it would complain if I do not set it up.
time="2022-12-23T11:40:22-05:00" level=warning msg="The \"MW_DOCKER_UID\" variable is not set. Defaulting to a blank string."
MW_SCRIPT_PATH=/w
MW_SERVER=http://localhost:8080
MW_DOCKER_PORT=8080
MEDIAWIKI_USER=Admin
MEDIAWIKI_PASSWORD=dockerpass
XDEBUG_CONFIG=
XDEBUG_ENABLE=true
XHPROF_ENABLE=true
MW_DOCKER_UID=1053048
MW_DOCKER_GID=1049089
Then I tried to follow through the instructions. Despite I installed the latest Composer and PHP8 on my local, I still saw below errors when running the commands. How should I fix it?
PS C:\Git\appdev> docker compose exec mediawiki composer update
Composer could not find a composer.json file in /var/www/html/w
To initialize a project, please create a composer.json file. See https://getcomposer.org/basic-usage
PS C:\Git\appdev> docker compose exec mediawiki /bin/bash /docker/install.sh
+ php maintenance/install.php --server http://localhost:8080 --scriptpath=/w --dbtype sqlite --dbpath /var/www/html/w/cache/sqlite --lang en --pass dockerpass MediaWiki Admin
Could not open input file: maintenance/install.php
Thanks,
Hui Hyang26 (talk) 16:51, 23 December 2022 (UTC)
Those errors sound like there is no mediawiki git checkout inside the container. I dont know enough about docker to know why that would be. Bawolff (talk) 20:10, 31 December 2022 (UTC)
Thanks for your comments. I did not see git checkout instruction on DEVELOPERS.md.
When I opened the container Terminal and ran "whoami" It showed below message.
$ whoami
whoami: cannot find name for user ID 1053048
Is it expected to show as "root"? If so, I don't know how to fix it.
I created the .env file by below instructions:
### 2. Prepare `.env` file
Using a text editor, create a `.env` file in the root of the MediaWiki core
repository, and copy these contents into that file:
```sh
MW_SCRIPT_PATH=/w
MW_SERVER=http://localhost:8080
MW_DOCKER_PORT=8080
MEDIAWIKI_USER=Admin
MEDIAWIKI_PASSWORD=dockerpass
XDEBUG_CONFIG=
XDEBUG_ENABLE=true
XHPROF_ENABLE=true
```
Next, run the following command to add your user ID and group ID to your `.env` file:
```sh
echo "MW_DOCKER_UID=$(id -u)
MW_DOCKER_GID=$(id -g)" >> .env
```
Since I'm running on Windows 10, I also tried to grant "Everyone" full control to the working directory where docker-compose.yml & .env files located.
Log files showed as below:
2023-01-05 10:46:18 cp: cannot create regular file 'includes/PlatformSettings.php': No such file or directory
2023-01-05 10:46:18 [05-Jan-2023 15:46:18] NOTICE: [pool www] 'user' directive is ignored when FPM is not running as root
2023-01-05 10:46:18 [05-Jan-2023 15:46:18] NOTICE: [pool www] 'user' directive is ignored when FPM is not running as root
2023-01-05 10:46:18 [05-Jan-2023 15:46:18] NOTICE: [pool www] 'group' directive is ignored when FPM is not running as root
2023-01-05 10:46:18 [05-Jan-2023 15:46:18] NOTICE: [pool www] 'group' directive is ignored when FPM is not running as root
2023-01-05 10:46:18 [05-Jan-2023 15:46:18] NOTICE: fpm is running, pid 8
2023-01-05 10:46:18 [05-Jan-2023 15:46:18] NOTICE: ready to handle connections
2023-01-05 10:46:18 [05-Jan-2023 15:46:18] NOTICE: systemd monitor interval set to 10000ms
2023-01-05 11:02:14 cp: cannot create regular file 'includes/PlatformSettings.php': No such file or directory Hyang26 (talk) 16:28, 5 January 2023 (UTC)
I read https://gerrit.wikimedia.org/g/mediawiki/core/+/HEAD/DEVELOPERS.md again. I then commented out #user: "${MW_DOCKER_UID}:${MW_DOCKER_GID}" on docker-compose.yml & .env files.
This time I saw "root" showed up when I ran command "whoami". However, what I'm puzzled is the image mount does not seem successful.
I wonder if it supposed to download image: docker-registry.wikimedia.org/dev/buster-php81-fpm:1.0.0 and mount it to /var/www/html/w on the Docker container?
version: '3.7'
services:
  mediawiki:
   image: docker-registry.wikimedia.org/dev/buster-php81-fpm:1.0.0
   #user: "${MW_DOCKER_UID}:${MW_DOCKER_GID}"
   volumes:
     - ./:/var/www/html/w:cached
   env_file:
     - '.env'
# whoami
root
# pwd
/var/www/html/w
# ls -ltr
total 8
-rwxrwxrwx 1 root    root    1013 Dec 16 21:14 docker-compose.yml-working
drwxr-xr-x 1 1053048 1049089 4096 Jan  3 20:20 cache
-rwxrwxrwx 1 root    root    1727 Jan  5 16:31 docker-compose.yml
----
----
----
----
---- Hyang26 (talk) 17:06, 5 January 2023 (UTC)

Import failed: Error creating directory shellbox

I'm attempting to import XML dumps from several other Mediawiki wikis into a local install of MediaWiki running on XAMPP.

Some files import fine, but many of them get the error

'Import failed: Error creating directory shellbox-bdd810ee1edf29b3'. Number at the end changes with each attempt.

All of my mediawiki directories & subdirectories have full permissions. None of them are read-only. Not sure what the hang-up is.

I'm running:
MediaWiki 1.37.2
PHP 7.4.27 (apache2handler)
MariaDB 10.4.22-MariaDB

Thanks for any help. Redheadkelly (talk) 01:26, 22 December 2022 (UTC)

Set $wgTmpDirectory to something writable by mediawiki. Bawolff (talk) 02:12, 22 December 2022 (UTC)
Thank you for the suggestion @Bawolff. It didn't solve the problem, but I think we're on the right track.
I get the same error and also 'Warning: mkdir(): No such file or directory in C:\xampp\htdocs\mediawiki_history_manuals\vendor\wikimedia\shellbox\src\FileUtils.php on line 113'
Could it be the directory that I'm specifying? Maybe I'm not doing it right for a localhost? I tried several different options. What should I put if I just want to point to '/images/temp'? It's writable. Redheadkelly (talk) 05:15, 22 December 2022 (UTC)
Generally you should put the whole path, so it should be something like "C:\xampp\htdocs\mediawiki_history_manuals\images\temp"
Usually that error means that one of the parent directories doesn't exist, so make sure to double ckeck spelling and stuff. Bawolff (talk) 07:13, 22 December 2022 (UTC)
Well, I tried the path you suggested & copied it right out of Windows Explorer just to make sure it was correct, but it didn't solve the problem. It seems like this should be the solution. I'm even more confused now. Any other suggestions? Redheadkelly (talk) 22:12, 23 December 2022 (UTC)
I'm not that familar with windows, maybe there is some weird acl permission thing or something like that. Bawolff (talk) 02:01, 24 December 2022 (UTC)
Ok. I’ll look into it. Thanks for your help. Redheadkelly (talk) 17:49, 26 December 2022 (UTC)

How to enable machine translation?

I'm trying to make Extension:Translate work, and to generate a machine translation first. I configured it according to this page. But all I get is ability to copy and paste original text.

Config in LocalSettings.php: $wgTranslateTranslationServices = array();

$wgTranslateTranslationServices['Yandex'] = array(

       'url' => 'https://translate.yandex.net/api/v1.5/tr.json/translate',
       'key' => 'mykey',
       'pairs' => 'https://translate.yandex.net/api/v1.5/tr.json/getLangs',
       'timeout' => 3,
       'langorder' => array( 'en', 'ru', 'uk', 'de', 'fr', 'pl', 'it', 'es', 'tr' ),
       'langlimit' => 1,
       'type' => 'yandex',




);

Screenshot:

https://i.postimg.cc/T3sXWZbP/Screenshot-from-2022-12-22-05-31-28.png ProfaneServitor (talk) 02:36, 22 December 2022 (UTC)

Did you change mykey to be your actual key?
Check also the mediawiki debug log (see how to debug) Bawolff (talk) 07:08, 22 December 2022 (UTC)
> Did you change mykey to be your actual key?
Yes. It doesn't even crash if I unset it.
> Check also the mediawiki debug log (see how to debug)
It's empty. ProfaneServitor (talk) 10:33, 24 December 2022 (UTC)

Extension:farmer

Hi, how can i install farmer this

extensions? Doramsn (talk) 06:37, 22 December 2022 (UTC)

See Manual:Extensions. For further questions, please follow "Post a new question" in the sidebar. Thanks a lot! Malyacko (talk) 09:59, 22 December 2022 (UTC)
ok,thanks Doramsn (talk) 04:57, 23 December 2022 (UTC)

thumbnails are not being created

Hey I have created a mediawiki and the problem is that when i upload a pdf file its being shown like a link: File:name.pdf. I want to show the thumbnail of the file. I have pdfhandler extension of course with all the configurations ready ( $wgEnableUploads = true; $wgUseImageMagick = true; $wgImageMagickConvertCommand = "/usr/bin/convert"; $wgGenerateThumbnailOnParse = true; ). What is going on? Arisparaschou (talk) 09:59, 22 December 2022 (UTC)

Do you have pdfinfo command installed? Bawolff (talk) 11:16, 22 December 2022 (UTC)
After installing pdfinfo poppler-utils instead of getting a link now i got a big thumbnail with an error message: "Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory... (a lot of things here)...Current allocation mode is local Last OS error: Broken pipe GPL Ghostscript 9.55.0: Unrecoverable error, exit code 1". How do I fix this? Arisparaschou (talk) 12:05, 23 December 2022 (UTC)
Are you sure image magick is installed as /usr/bin/convert ? Bawolff (talk) 10:42, 24 December 2022 (UTC)
imagemagick exists on a different path but no matter which path i add to my Localsettings nothing changes. Also, I had $wgImageMagickConvertCommand = "/usr/bin/convert"; and it used to work fine with images at least but not with pdfs and then i downloaded pdfinfo and now even images are broken. Arisparaschou (talk) 14:00, 4 January 2023 (UTC)

How can i access my account

I have forgot the email adress i used a few years ago and don't remember the password.


Seems like i need to put in the email i want the password reset sent too. I want to remove some pictures i have posted and i only have my username.


Can't you just send the password reset to that email i used.


Nikiwiki242 90.143.139.48 (talk) 10:14, 22 December 2022 (UTC)

You only have to put in your username or email. Not both. You can leave the other field blank. Bawolff (talk) 11:15, 22 December 2022 (UTC)

MediaWiki 1.35.0 stop works

Hello! I have installed mediawiki properly, it works. I ad all topics and etc.
After some time my page stop works such: http://revolution-ro.ru/wiki
And i dont know how fix it....
Debian 11, Mariadb 10.5.18, PHP: 7.4.33 178.178.89.187 (talk) 12:15, 22 December 2022 (UTC)
What makes you think that the URL should work? What did you configure where (parameters and values)? Malyacko (talk) 15:49, 22 December 2022 (UTC)
Ask your hosting provider as there are no any errors, website just unaccessible. Fokebox (talk) 12:43, 22 December 2022 (UTC)
Check your php error log. (See How to debug) php errors often look like a blank page. Bawolff (talk) 21:35, 22 December 2022 (UTC)
I have installed mediawiki, change url at LocalSettings.php from mediawiki to wiki.
It is opened and work success.
Error.log write this when i opening wiki:
PHP Notice:  Undefined offset: 1 in /var/www/html/lib/Flux/Template.php on line 325 178.178.89.187 (talk) 03:12, 23 December 2022 (UTC)
that doesn't sound like a mediawiki error. That file path is not a mediawiki path. Bawolff (talk) 04:09, 23 December 2022 (UTC)
Bawolff i try debug with this methods but nothing changes. 178.178.89.187 (talk) 03:13, 23 December 2022 (UTC)
Also if i comment LocalSetings.php and try reinstall it get error: ERR_EMPTY_RESPONSE 178.178.89.187 (talk) 04:04, 23 December 2022 (UTC)
Debug say this at error.log
[core:notice] [pid 386647] AH00052: child pid 386831 exit signal Segmentation fault (11) 178.178.89.187 (talk) 04:15, 23 December 2022 (UTC)
That is likely the cause of your problem.
Php segfaults are generally hard to debug. I would reccomend trying a different version of php. Bawolff (talk) 05:32, 23 December 2022 (UTC)
It looks like permission issue to me.
Assign ownership of the main directory with the $USER environment variable, which will reference your current system user, by using this command:
sudo chown -R $USER:$USER /var/www/your_domain
then restart your apache or nginx.
Note: change
/var/www/your_domain
to your wiki root directory. 2001:8F8:1E6D:49BE:AC36:B96B:645:69B0 (talk) 10:33, 23 December 2022 (UTC)

Google DNS & MediaWiki Help

Hi Everyone!

I finished installing MediaWiki and I happy with the result, I am ready to put it on my domain under a subdomain. There are a few things I should note through. First I that I changed the ports of the MediaWiki from 80 and 443 to 8012 and 8013. This is because I have another server already using those ports. I changed the ports in XAMPP and in MediaWiki and it works upon checking with both an internal and external IP address.

I setup an 'A' type record in google domains with my subdomain and public IP (example: wiki.mydomain.org) and changed the settings in LocalSettings.php's $wgServer line to = https://wiki.mydomain.org. I have given the DNS plenty of time to propagate but I still get nothing. I tested the DNS with a propagation website and it passes the test. But I still get nothing when I try to access the wiki (ERR_SSL_PROTOCOL_ERROR or DNS_PROBE_FINISHED_NXDOMAIN).

Other Info: I have port forwarded accordingly, setup a static IP for the server, and I have a domain through google domains. The MediaWiki server is running on a Windows 10 PRO VM in Oracle's Virtualbox. I know that Virtualbox is likely not the issue as the VM has it's own IP address and I was still able to access the Wiki through my public IP. I have tried accessing the wiki with multiple computers and with the Brave Browser, Google Chrome, and Edge. I have also tried setting the server line to http:// instead of https://.

I am running the latest version of MediaWiki, and XAMPP for PHP and Database

Am I missing a step here? Can I make this work?

Thanks! Lucent11 (talk) 15:58, 22 December 2022 (UTC)

So
> DNS_PROBE_FINISHED_NXDOMAIN
Would mean the domain hasn't propagated. (Nxdomain = Non eXistent Domain)
However ERR_SSL_PROTOCOL_ERROR is different. At a guess i would suspect that means that you mixed up your ports. E.g. maybe serving tls on port 80 and serving plain http on 443, or something like that. That's just a guess, could be lots of things, but since you said you are doing complicated things with port forwarding, that is where i would look first. (This is a bit of an advanced thing to do, but i would consider using wireshark to try and see what is actually happening during the ssl protocol error) Bawolff (talk) 21:33, 22 December 2022 (UTC)

Wikipedia-esque MediaWiki Package or Similar?

Hello. I am working on a project that MediaWiki should work marvelously for. What I am looking to do is create an empty MediaWiki site on a hosted server and have it look and behave as the English language Wikipedia. And I'm struggling mightily to accomplish that this morning. I have 1.38.4 installed, but many of the tools and templates behave differently. I'd like to just get it installed and spend the time writing content.


Is there a simple, fast way to deploy a MediaWiki package on a webserver that, for all intents and purposes, works like the aforementioned Wikipedia? Where can I download that and/or have the host do said?


Thank you so much. :) Surv1v4l1st (talk) 18:00, 22 December 2022 (UTC)

No, although things like vagrant might get you closer.
there isn't just one agreed upon thing as to what "wikipedia-like" means. All wikipedia configuration is available in git (puppet and mediawiki-config repo).
Templates are user created content, you would have to copy them over. Bawolff (talk) 21:26, 22 December 2022 (UTC)

Host MediaWiki URL in subdirectory

I'd like to host MediaWiki under url like: https://example.com/somepath/wiki. The source files are installed by docker and located in /var/www/html. Also LocalSettings.php and .htacess are in the root directory.

Currently the main page can be visited but its content is blank. Also the links on the left side are all https://example.com/somepath/wiki. Could anyone shed some light on the problem?


Here are my conf:

(LocalSettings.php)

$wgScriptPath = "/somepath/wiki";

$wgArticlePath = "";


(.htaccess)

RewriteEngine On RewriteRule ^/?somepath/wiki(/.*)?$ $1

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

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

RewriteRule ^/?somepath/wiki(/.*)?$ %{DOCUMENT_ROOT}/index.php [L] Wyudong (talk) 07:04, 23 December 2022 (UTC)

Try this
$wgScriptPath = "/somepath/wiki";
$wgArticlePath = '/somepath/wiki/$1';
$wgScriptExtension  = ".php";
$wgUsePathInfo = true;
2001:8F8:1E6D:49BE:AC36:B96B:645:69B0 (talk) 10:24, 23 December 2022 (UTC)
What url structure do you want? We can't really say what you should do without knowing what you want.
Specificly, what should an edit url look like, and what should a normal article view look like? Bawolff (talk) 16:31, 23 December 2022 (UTC)
@Bawolff I want my url structure like: https://examplehost/somepath/wiki/Main_Page
Mediawiki is installed at directory /var/www/html in a docker container.
After modifying LocalSettings.php and .htaccess by trial and error, the page content can be loaded normally, but the stylesheet is missing.
(LocalSettings.php)
$wgScriptPath = "/somepath/wiki";
$wgArticlePath = "/somepath/wiki/$1";
$wgScriptExtension = ".php";
$wgUsePathInfo = true;
(.htaccess)
RewriteEngine On
RewriteRule ^/?somepath/wiki(/.*)?$ %{DOCUMENT_ROOT}/index.php [L] Wyudong (talk) 06:16, 25 December 2022 (UTC)
Due to abusefilter-warning-linkspam error, I posted the error here:
Refused to execute script from 'https://examplehost/somepath/wiki/load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled. Wyudong (talk) 06:17, 25 December 2022 (UTC)
Based on what you described, wgScriptPath should be
$wgScriptPath = "";
Since you currently have index.php and load.php in the document root. Bawolff (talk) 07:06, 25 December 2022 (UTC)
Yes, index.php and load.php are in the document root. If setting $wgScriptPath = "", the browser will load load.php from https://examplehost/load.php (404 in that case). But isn't https://examplehost/somepath/load.php the correct url to load load.php? Wyudong (talk) 08:39, 25 December 2022 (UTC)
The correct url is where-ever those files are installed. If they are installed in the document root than the document root is the correct url. Bawolff (talk) 08:34, 28 December 2022 (UTC)

Edit Date on Picture Upload

How can I edit information for a picture that I uploaded? I inadvertently put a wrong death date in the history information given about the pictures that I uploaded. CharlemagneJane (talk) 07:13, 23 December 2022 (UTC)

You can hit edit on the page of the image file on commons.
If you mean the most recent photo you uploaded https://commons.wikimedia.org/w/index.php?title=File:%60Byars_Harley_Davidson1.jpg&action=edit Bawolff (talk) 07:18, 23 December 2022 (UTC)
Thank you. Yes, the two most recent photos had the wrong date of death for Tommy Byars. I edited it, but it still shows to be 1952 in my original uploads. I gave a detailed explanation of the dates of origin of the photos and heirs that inherited the photos, describing all the death dates, but mistakenly wrote the wrong death date for Tommy Byars which should be 2017 rather than 1952. His father, Ray Byars, died in 1952. The photos are 95 years old and the photographer has been dead for 78 years making the copyright law expired. CharlemagneJane (talk) 08:18, 23 December 2022 (UTC)
Where is it showing the wrong date.
Btw, for image specific questions, the people at commons:Commons:help desk might have better answers. Bawolff (talk) 16:25, 23 December 2022 (UTC)

Unable to upgrade Mediawiki 1.31.x to 1.39.1

Hi,


Does the GUI upgrade supports upgrade from 1.31.x versions ? As I am getting following error while upgrading from 1.31.16


There is currently no text in this page. You can search for this page title in other pages, search the related logs, or create this page.


The upgrade went successfully and on visiting it's link the script throws error. What could be the issue ? 2405:201:12:1085:ED95:663D:53B3:141C (talk) 11:21, 23 December 2022 (UTC)

1.31 is a persnickity version to upgrade from. Usually this is a problem with the actor migration. Try running cleanupUsersWithNoId.php and migrateActors.php before the upgrade. Bawolff (talk) 16:21, 23 December 2022 (UTC)

Hello. Wanted to see if anybody here knew a way of importing RDF files from other Wikis/Datasources into Mediawiki itself. In a way that one can access the properties from a certain page in another endpoint. Jdm.oliveira (talk) 15:26, 23 December 2022 (UTC)

https://github.com/andrecastro0o/ontology2smw Krabina (talk) 20:34, 10 January 2023 (UTC)

"Call to undefined method stdClass::getAll()" error on upgrade

Hi. Today I've downloaded 1.39.1 files and replaced my existing files with them. When I try to go to /mw-config/, it gives this error.


Any idea about why I've got this error? My wiki is part of a wiki family if it's related to this.

[63b2394da121e77361ce8b61] /mw-config/ Error: Call to undefined method stdClass::getAll()

Backtrace:

from /home/mysite/public_html/mywiki/tr/LocalSettings.php(59)

#0 /home/mysite/public_html/mywiki/tr/includes/installer/Installer.php(707): require()

#1 /home/mysite/public_html/mywiki/tr/includes/installer/WebInstallerExistingWiki.php(29): Installer::getExistingLocalSettings()

#2 /home/mysite/public_html/mywiki/tr/includes/installer/WebInstaller.php(271): WebInstallerExistingWiki->execute()

#3 /home/mysite/public_html/mywiki/tr/mw-config/index.php(82): WebInstaller->execute(array)

#4 /home/mysite/public_html/mywiki/tr/mw-config/index.php(40): wfInstallerMain()

#5 {main} 159.146.48.221 (talk) 16:11, 23 December 2022 (UTC)

Please paste your LocalSettings.php (minus any passwords or keys).
In particular, what is around line 59? Bawolff (talk) 16:19, 23 December 2022 (UTC)
On line 59 it reads:
extract( $wgConf->getAll( $wgDBname  ) );
It's from wiki family config codes found on Manual:Wiki family. 159.146.48.221 (talk) 16:23, 23 December 2022 (UTC)
When I try to change my PHP 7.4 to 8.0 or 8.1, this error changes to:
/mw-config/?page=ExistingWiki Error: Attempt to assign property "wikis" on null
Backtrace:
from /home/mysite/public_html/mywiki/tr/LocalSettings.php(17)
And my line 17 is:
$wgLocalDatabases = $wgConf->wikis = array_values( $wikis ); 159.146.48.221 (talk) 16:26, 23 December 2022 (UTC)
CAn you post your entire LocalSettings.php ? Bawolff (talk) 16:54, 23 December 2022 (UTC)
Sorry, I thought that they are enough. Here it's without classified datas: https://codeshare.io/oQYVpZ 159.146.48.221 (talk) 17:41, 23 December 2022 (UTC)
Weird. You would get that error if $wgConf is undefined or null, but it should have a default value of new SiteConfiguration; so this should not be happening Bawolff (talk) 04:33, 24 December 2022 (UTC)

Login help

I have had an account for over a decade, and have had an email associated with it.


I am unable to login suddenly, and have no option to change password with email.


Please help. 100.11.67.22 (talk) 17:01, 23 December 2022 (UTC)

On which website (full URL/link)? Malyacko (talk) 08:30, 24 December 2022 (UTC)

Sleep Mode

How to disable device from sleep I need it work all time

FMB 120 130 2A02:9B0:401A:C:54E1:5CF4:7B12:B1C2 (talk) 10:12, 24 December 2022 (UTC)

Please do read "Post a new question" in the sidebar first. Malyacko (talk) 12:50, 24 December 2022 (UTC)

Png previews of svg not generated

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


When I upload an svg I get this error for the thumbnail:


Error generating thumbnail

Error creating thumbnail: convert-im6.q16: delegate failed `'rsvg-convert' -o '%o' '%i'' @ error/delegate.c/InvokeDelegate/1966. convert-im6.q16: unable to open file `/tmp/magick-wWSbi0sJ0UHNkuqfZCajGmjlJYkYSP36': No such file or directory @ error/constitute.c/ReadImage/614. convert-im6.q16: no images defined `PNG:/tmp/transform_e8125308068e.png' @ error/convert.c/ConvertImageCommand/3229. PKFP (talk) 09:16, 26 December 2022 (UTC)

Your version of image magick is configured to use the program rsvg-convert to thumbnail svgs, but it appears not to be installed. Install the rsvg package or use a different program to thumbnail svgs. Bawolff (talk) 08:32, 28 December 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Drop in performance after upgrading from 1.37.1 to 1.39.1

I upgraded https://roter-kreis.de from MediaWiki 1.37.1 (PHP 7.4) to 1.39.1 (PHP 8.2) and noticed a significant drop in performance. The response time of the start page used to be 700-800 ms. It is now 900-1000 ms. The performance is measured by an external monitor every 15min, so this is not a singular measurement. - Any idea what might be the reason? Redundant-decadence (talk) 10:30, 26 December 2022 (UTC)

Can you profile (see Profiling) your install? Do the two installs have the same extensions and caching setup? Is it all pages or specific pages? Bawolff (talk) 08:31, 28 December 2022 (UTC)
I am not sure if profiling is possible because I do not have admin rights on the server. But I will try. Thanks for the hint!
Yes, extensions and setup are identical. I just upgraded MediaWiki including all extensions.
The monitor watches the start page only. I will measure different pages. Thank you! Redundant-decadence (talk) 08:38, 28 December 2022 (UTC)

"UploadStashFileException"

Hi,

I have a Plesk panel on the Windows Server 2019 operating system. I am getting the following warning when trying to upload a photo. Im the use PHP versions 7.4.33

"Could not store upload in the stash (UploadStashFileException): "Could not store file "C:\Inetpub\vhosts\......com.tr\tmp/chunkedupload_63df991d65d0" at "mwstore://local-backend/local-temp/c/cc/20221226142320!chunkedupload_63df991d65d0." Saliha96 (talk) 14:32, 26 December 2022 (UTC)

the first thing i would check are permissions in that directory (check php error log as well). Do you also get the error when using Special:upload to upload a photo? Bawolff (talk) 08:29, 28 December 2022 (UTC)

Suppressing image annotations

Whenever an image is displayed using [[File:...]] and this file has annotations, following notice gets displayed: “This file has annotations. Move the mouse pointer over the image to see them.” Is it possible to suppress this notice? I've found no hints at Help:Images nor elsewhere. Thanks for the help, AFBorchert (talk) 15:20, 26 December 2022 (UTC)

Which MediaWiki version do you run? Malyacko (talk) 10:18, 27 December 2022 (UTC)
MediaWiki 1.40.0-wmf.14 (c526317) 02:21, 13 December 2022, see here. You find the relevant page at Wikimedia Commons: c:East Window of St. Nicholas's Church of Ireland, Dundalk. --AFBorchert (talk) 14:52, 27 December 2022 (UTC)
(So you don't run a MediaWiki version but instead this is a question about Wikimedia Commons. For future refefence, it would help to say so immediately and follow "Post a new question" in the sidebar.)
The local ImageAnnotator gadget on Wikimedia Commons is not part of MediaWiki. Please see your gadget preferences on Commons instead, and bring up potential questions about gadgets on Commons on support desks on Commons. Thanks a lot. Malyacko (talk) 15:48, 27 December 2022 (UTC)
Well, at the time I was posting my question, the page at Wikimedia Commons did not exist yet. I hoped to find a solution for this before creating that page. And the FileAnnotations extension is documented at MediaWiki. Unfortunately not to the extent that answers my question. I thought this help desk would support all questions around MediaWiki software, not just for those running their own instance. AFBorchert (talk) 16:00, 27 December 2022 (UTC)
I don't understand what "the page" you have in mind - support forums do exist on Wikimedia Commons.
The "FileAnnotations extension" has absolutely nothing to do with this topic. That extension is not installed on any Wikimedia wikis. Malyacko (talk) 20:59, 27 December 2022 (UTC)
In the meantime I've found a solution to the problem and I am noting it here in case anyone else is looking for it: At Commons {{ImageAnnotations}} can be used to suppress annotations. The display of image annotations is based on the gadget c:MediaWiki:Gadget-ImageAnnotator.js which is documented at c:Help:Image-Annotator. The documentation describes this template at this section. I wasn't aware that this is gadget-based. The same solution works also at enwiki and other Wikimedia projects. AFBorchert (talk) 17:02, 27 December 2022 (UTC)

Error on initial install

I have installed the MediaWiki on my Synology NAS along with Web Station, PHP 7.4 and MariaDB. I've been able to work through some initial error messages but I'm not sure what to do with the one below. Thanks in advance for any assistance.


[6c6a96c17a2003628c405135] /mediawiki/mw-config/index.php InvalidArgumentException from line 58 of /volume2/web_packages/mediawiki/includes/libs/rdbms/database/domain/DatabaseDomain.php: Database must be null or a non-empty string.

Backtrace:

#0 /volume2/web_packages/mediawiki/includes/WikiMap.php(296): Wikimedia\Rdbms\DatabaseDomain->__construct(string, NULL, string)

#1 /volume2/web_packages/mediawiki/includes/objectcache/ObjectCache.php(128): WikiMap::getCurrentWikiDbDomain()

#2 /volume2/web_packages/mediawiki/includes/objectcache/ObjectCache.php(147): ObjectCache::getDefaultKeyspace()

#3 /volume2/web_packages/mediawiki/includes/objectcache/ObjectCache.php(108): ObjectCache::newFromParams(array)

#4 /volume2/web_packages/mediawiki/includes/objectcache/ObjectCache.php(80): ObjectCache::newFromId(integer)

#5 /volume2/web_packages/mediawiki/includes/ServiceWiring.php(680): ObjectCache::getInstance(integer)

#6 /volume2/web_packages/mediawiki/vendor/wikimedia/services/src/ServiceContainer.php(447): Wikimedia\Services\ServiceContainer->{closure}(MediaWiki\MediaWikiServices)

#7 /volume2/web_packages/mediawiki/vendor/wikimedia/services/src/ServiceContainer.php(416): Wikimedia\Services\ServiceContainer->createService(string)

#8 /volume2/web_packages/mediawiki/includes/MediaWikiServices.php(925): Wikimedia\Services\ServiceContainer->getService(string)

#9 /volume2/web_packages/mediawiki/includes/language/Message.php(1317): MediaWiki\MediaWikiServices->getMessageCache()

#10 /volume2/web_packages/mediawiki/includes/language/Message.php(878): Message->fetchMessage()

#11 /volume2/web_packages/mediawiki/includes/language/Message.php(970): Message->toString(string)

#12 /volume2/web_packages/mediawiki/includes/installer/WebInstaller.php(596): Message->text()

#13 /volume2/web_packages/mediawiki/includes/installer/WebInstaller.php(553): WebInstaller->getPageListItem(string, boolean, string)

#14 /volume2/web_packages/mediawiki/includes/installer/WebInstaller.php(263): WebInstaller->startPageWrapper(string)

#15 /volume2/web_packages/mediawiki/mw-config/index.php(82): WebInstaller->execute(array)

#16 /volume2/web_packages/mediawiki/mw-config/index.php(40): wfInstallerMain()

#17 {main} Stephen Brouillard (talk) 00:18, 27 December 2022 (UTC)

Hi, please see "Post a new question" in the sidebar. Also, where does the MediaWiki package come from? Malyacko (talk) 15:49, 27 December 2022 (UTC)
Huh that is a weird error. My first guess would be that synology modified the mediawiki installer. If you are not using the official version of mediawiki, can you try with the official version and see if the problem is still there? Bawolff (talk) 08:27, 28 December 2022 (UTC)

Special:Upload error

Since I moved my MediaWiki site to a new server, and moved the database from MariaDB to MySQL, the following problem occurs while uploading, while other actions such as editing works fine.

Product Version
MediaWiki 1.39.1
PHP 8.1.13 (fpm-fcgi)
MySQL 8.0.24
ICU 70.1
Lua 5.1.5
Pygments 2.11.2

[aea18814f8550ce4ac8ce9c9] /wiki/Special:%E4%B8%8A%E4%BC%A0%E6%96%87%E4%BB%B6 Error: Call to undefined method Wikimedia\Rdbms\DatabaseMysqli::numRows()

Backtrace:

from /www/wwwroot/sonicwiki/includes/libs/rdbms/database/DBConnRef.php(103)

#0 /www/wwwroot/sonicwiki/extensions/AutoSitemap/AutoSitemap_body.php(103): Wikimedia\Rdbms\DBConnRef->__call()

#1 /www/wwwroot/sonicwiki/includes/HookContainer/HookContainer.php(338): AutoSitemap::writeSitemap()

#2 /www/wwwroot/sonicwiki/includes/HookContainer/HookContainer.php(137): MediaWiki\HookContainer\HookContainer->callLegacyHook()

#3 /www/wwwroot/sonicwiki/includes/HookContainer/HookRunner.php(4027): MediaWiki\HookContainer\HookContainer->run()

#4 /www/wwwroot/sonicwiki/includes/upload/UploadBase.php(959): MediaWiki\HookContainer\HookRunner->onUploadComplete()

#5 /www/wwwroot/sonicwiki/includes/specials/SpecialUpload.php(614): UploadBase->performUpload()

#6 /www/wwwroot/sonicwiki/includes/specials/SpecialUpload.php(246): SpecialUpload->processUpload()

#7 /www/wwwroot/sonicwiki/includes/specialpage/SpecialPage.php(701): SpecialUpload->execute()

#8 /www/wwwroot/sonicwiki/includes/specialpage/SpecialPageFactory.php(1428): SpecialPage->run()

#9 /www/wwwroot/sonicwiki/includes/MediaWiki.php(316): MediaWiki\SpecialPage\SpecialPageFactory->executePath()

#10 /www/wwwroot/sonicwiki/includes/MediaWiki.php(904): MediaWiki->performRequest()

#11 /www/wwwroot/sonicwiki/includes/MediaWiki.php(562): MediaWiki->main()

#12 /www/wwwroot/sonicwiki/index.php(50): MediaWiki->run()

#13 /www/wwwroot/sonicwiki/index.php(46): wfIndexMain()

#14 {main} WrOffi (talk) 17:17, 27 December 2022 (UTC)

You need to update your version of extension:AutoSitemap Bawolff (talk) 19:55, 31 December 2022 (UTC)

extension:Graph, Special:GraphSandbox not showing all windows

extension:Graph, installed and working, graphs show in pages, extension installs show in special:version. But Special:GraphSandbox does not show code editor and result windows like on enwiki, just one window without toolbar that does no react to input and a lightly colored strip above it. Any reason for this?

Environment

MediaWiki 1.38.2
PHP 7.4.33 (fpm-fcgi)
MariaDB 10.9.4-MariaDB
ICU 72.1
LilyPond 2.22.2
Elasticsearch 6.8.23
Graph – (77c4d14) 07:17, 30 November 2022
JsonConfig 1.1.1 (15d6e36) 07:17, 30 November 2022

Pspviwki (talk) 22:17, 27 December 2022 (UTC)

Maybe install extension:CodeEditor Bawolff (talk) 19:51, 31 December 2022 (UTC)
Thanks, that did it. Pspviwki (talk) 18:00, 10 January 2023 (UTC)

Getting information from Special Pages for an extension

Is there any way to get information from a in built special page for use with an extension? Such as getting a list of admins from Special:ListAdmins or list of short pages from Special:ShortPages that can then be used in an extension? For example, I've tried looking at the documentation on ShortPagesPage class for short pages, but it doesn't look very informative? Original Authority (talk) 03:24, 28 December 2022 (UTC)

See what https://github.com/wikimedia/mediawiki/blob/master/includes/api/ApiQueryQueryPage.php does or call querypage api internally. (Some people might say this is not reccomended approach and
uggestsquery db instead) Bawolff (talk) 07:35, 28 December 2022 (UTC)

Upgrade from 1.27 to 1.35.9 causing "This site can't be reached"

I successfully did the database update using the update php script. I had to change permissions on everything, but I am getting "This site can't be reached" on Chrome, and a slightly different message on firefox. I know the site can be reached, because if I put phpinfo(); in various places in my LocalSettings.php, it displays the phpinfo instead of giving me the bogus message. My LocalSettings has been being modified for many years, and so I tried making a new one, but that didn't seem to solve things either (though I quite likely might have made a mistake with that). The error remains the same. There are no errors or warnings I can find in /var/log/apache2/error.log. I get nothing with

error_reporting(E_ALL);

ini_set("display_errors", 1);

at the top of my LocalSettings.php

Does anyone have any idea what might be my issue, or even how to debug this?

Thanks,

Rob Frohro (talk) 04:33, 28 December 2022 (UTC)

Try placing this code at the end of LocalSettings.php
error_reporting( -1 );
ini_set( 'display_errors', 1 );
if that not works, try to reinstall the mediawiki, by accessing the mw-config directory, example:
wiki-site.com/mw-config
You need the $wgUpgradeKey value located within the LocalSettings.php.
One more option is to do a clean installation of mediawiki, using the same old database. 2001:8F8:1E6D:79DB:D57F:89B9:DD9B:EFAE (talk) 06:31, 28 December 2022 (UTC)
You also need to update all active extensions to the matching version of mediawiki. 2001:8F8:1E6D:79DB:D57F:89B9:DD9B:EFAE (talk) 06:36, 28 December 2022 (UTC)
Can I just disable the extensions in LocalSettings.php? I was using the Math, Import Users, and EmbedVideo. I tried commenting out anything having to do with extensions or anything else that might be doing extra things. I'm trying the "divide and conquer" approach. Before I started on this approach a phpinfo(); early on in LocalSettings.php would print out, but later in the file it would not. Commenting out offending lines, it now prints if a phpinfo(); is put on the last line. However, removing it gives the dreaded "can't be reached". Here is a copy of my commented LocalSettings.php, with the sensitive data removed.
<?php
# This is for debugging!
error_reporting(E_ALL);
ini_set("display_errors", 1);
# This file was automatically generated by the MediaWiki installer.
# If you make manual changes, please keep track in case you need to
# recreate them later.
#
# See includes/DefaultSettings.php for all configurable settings
# and their default values, but don't forget to make changes in _this_
# file, not there.
wfLoadSkin( 'Vector' );
# If you customize your file layout, set $IP to the directory that contains
# the other MediaWiki files. It will be used as a base to locate files.
# We define this to allow the configuration file to be explicitly
# located in /etc/mediawiki1.9.
# Change this if you are setting up multisite wikis on your server.
#define(MW_INSTALL_PATH,'/var/www/class-wiki');
if( defined( 'MW_INSTALL_PATH' ) ) {
$IP = MW_INSTALL_PATH;
} else {
$IP = dirname( __FILE__ );
}
#Commented by Rob 12/27/2022
#$ExtensionsDirectory = "/etc/mediawiki-extensions/extensions-available";
#$path = array( $IP, "$IP/includes", "$IP/languages" );
#set_include_path( implode( PATH_SEPARATOR, $path ) . PATH_SEPARATOR . get_include_path() );
# needed upon upgrade to 1.35
$wgServer = "http://www.fweb.wallawalla.edu";
# If PHP's memory limit is very low, some operations may fail.
#ini_set( 'memory_limit', '256M' );
#if ( $wgCommandLineMode ) {
# if ( isset( $_SERVER ) && array_key_exists( 'REQUEST_METHOD', $_SERVER ) ) {
# die( "This script must be run from the command line\n" );
# }
#} elseif ( empty( $wgNoOutputBuffer ) ) {
## Compress output if the browser supports it
# if( !ini_get( 'zlib.output_compression' ) ) @ob_start( 'ob_gzhandler' );
#}
$wgSitename         = "Class Wiki";
# Disable cache for testing.
#$wgEnableParserCache = false;
#$wgCachePages = false;
## The URL base path to the directory containing the wiki;
## defaults for all runtime URL paths are based off of this.
$wgScriptPath       = "/class-wiki";
## For more information on customizing the URLs please see:
## http://www.mediawiki.org/wiki/Manual:Short_URL
$wgEnableEmail      = false;
$wgEnableUserEmail  = false;
#$wgEmergencyContact = "rob.frohne@wallawalla.edu";
#$wgPasswordSender = "rob.frohne@wallawalla.edu";
## For a detailed description of the following switches see
## http://meta.wikimedia.org/Enotif and http://meta.wikimedia.org/Eauthent
## There are many more options for fine tuning available see
## /includes/DefaultSettings.php
## UPO means: this is also a user preference option
#$wgEnotifUserTalk = true; # UPO
#$wgEnotifWatchlist = true; # UPO
#$wgEmailAuthentication = true;
$wgDBtype           = "mysql";
$wgDBserver         = "127.0.0.1";
$wgDBname           = "changed for sharing";
$wgDBuser           = "changed for sharing";
$wgDBpassword       = "changed for sharing";
$wgDBport           = "5432";
$wgDBprefix         = "";
# Schemas for Postgres
#$wgDBmwschema       = "mediawiki";
#$wgDBts2schema      = "public";
# Experimental charset support for MySQL 4.1/5.0.
#$wgDBmysql5 = true;
## Shared memory settings
$wgUseDatabaseMessages = false;
$wgUseFileCache = false;
$wgMainCacheType = CACHE_NONE;
#$wgShowIPinHeader = false;
$wgMemCachedServers = array ( 0 => 'localhost:11211',);
## To enable image uploads, make sure the 'images' directory
## is writable, then set this to true:
$wgEnableUploads       = true;
$wgUseImageResize      = true;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";
## If you want to use image uploads under safe mode,
## create the directories images/archive, images/thumb and
## images/temp, and make them all writable. Then uncomment
## this, if it's not already uncommented:
# $wgHashedUploadDirectory = false;
## If you have the appropriate support software installed
## you can enable inline LaTeX equations:
#$wgUseTeX           = true;
#$wgTexvc = "/var/www/class-wiki/extensions/Math/math/texvc";
#$wgMathTexvcCheckExecutable = "/var/www/class-wiki/extensions/Math/texvccheck";
$wgLocalInterwiki   = $wgSitename;
$wgLanguageCode = "en";
$wgProxyKey = "changed for sharing";
# When you make changes to this configuration file, this will make
# sure that cached pages are cleared.
$configdate = gmdate( 'YmdHis', @filemtime( __FILE__ ) );
$wgCacheEpoch = max( $wgCacheEpoch, $configdate );
## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook':
$wgDefaultSkin = 'Vector';
## For attaching licensing metadata to pages, and displaying an
## appropriate copyright notice / icon. GNU Free Documentation
## License and Creative Commons licenses are supported so far.
$wgFavicon = "$wgScriptPath/favicon.ico";
$wgEnableCreativeCommonsRdf = true;
$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
$wgRightsUrl = "http://www.gnu.org/copyleft/fdl.html";
$wgRightsText = "GNU Free Documentation License 1.2";
$wgRightsIcon = "${wgScriptPath}/skins/common/images/gnu-fdl.png";
# $wgRightsCode = "gfdl"; # Not yet used
$wgDiff3 = "/usr/bin/diff3";
$wgExternalDiffEngine = 'wikidiff2';
# debian specific include:
if (is_file("/etc/mediawiki-extensions/extensions.php")) {
        include( "/etc/mediawiki-extensions/extensions.php" );
}
#$wgUploadPath       = "$wgScriptPath/upload";
$wgUploadPath = false;
$wgUploadDirectory  = "$IP/upload";
#require_once "$IP/extensions/Math/Math.php";
#$wgDefaultUserOptions['math'] = 'mathml';
#$wgMathFullRestbaseURL= 'https://api.formulasearchengine.com/';
#$wgUseMathJax = true; // enabeling MathJax as rendering option
#$wgDefaultUserOptions['math'] = 'MW_MATH_MATHJAX'; // setting MathJax as default rendering option (optional)
/**
* The default parser for MathJax is 'http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML'
* If you don't want to or can't use the default and your run your own locally
* replace the below url with something like:
* $wgMathJaxUrl = '/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML';
*/
#$wgMathJaxUrl = 'https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML';
#MathJax_Parser::$MathJaxJS= 'https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML';
#$wgUseTeX                       = true;
#$wgMathPath         = "{$wgUploadPath}/math";
#$wgMathDirectory    = "{$wgUploadDirectory}/math";
$wgTmpDirectory     = "{$wgUploadDirectory}/tmp";
$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'ogg', 'zip', 'application/zip');
$wgUseImageResize               = true;
#$wgEmailConfirmToEdit           = true;
$wgEmailConfirmToEdit           = false;
# Prevent new user registrations except by sysops
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['*']['edit'] = false;
#$wgLogo = "http://www.wallawalla.edu/WWU/logo/logo3.gif";
$wgLogo = "WWU.jpg";
#$wgUseAjax = true;
$wgDebugLogFile = "tmp/wiki.log";
#require_once("{$ExtensionsDirectory}/Footnote.php" );
#require_once("{$ExtensionsDirectory}/SyntaxHighlight_GeSHi.php");
#require_once("{$ExtensionsDirectory}/CategoryTree.php");
#require_once("{$ExtensionsDirectory}/inputbox.php");
#require_once("{$ExtensionsDirectory}/Cite.php");
#require_once("{$ExtensionsDirectory}/ParserFunctions.php");
#require_once("{$ExtensionsDirectory}/NewestPages.php");
#require_once("{$ExtensionsDirectory}/Renameuser.php");
##require_once("{$ExtensionsDirectory}/poem.php");
#require_once("{$ExtensionsDirectory}/PageCSS.php");
$wgAllowUserJs = true;
$wgUseSiteCss = false;
# For cookie problem.
#session_save_path("tmp");
#require_once ( dirname( __FILE__ ) . "/extensions/EmbedVideo/EmbedVideo.php" );
$wgDebugComments = true;
$wgShowSQLErrors = true;
$wgDebugDumpSql  = true;
$wgCookieSecure = false;
$wgShowExceptionDetails = true;
#$wgSessionCacheType = CACHE_DB;
#wfLoadExtension( 'EmbedVideo' );
/**
* The debug log file must never be publicly accessible because it
* contains private data. But ensure that the directory is writeable by the
* PHP script running within your Web server.
* The filename is with the database name of the wiki.
*/
error_reporting( -1 );
ini_set( 'display_errors', 1 );
#wfLoadExtension( 'ImportUsers' );
?> Frohro (talk) 17:15, 28 December 2022 (UTC)
I am also not understanding what you mean by "
try to reinstall the mediawiki, by accessing the mw-config directory, example:
wiki-site.com/mw-config
You need the $wgUpgradeKey value located within the LocalSettings.php." Could you provide a link to instructions or something with more details?
Thanks,
Rob Frohro (talk) 17:19, 28 December 2022 (UTC)
I just noticed the following warnings at the bottom of the phpinfo page when I have it at the end of LocalSettings.php.
Warning: session_name(): Session name cannot be changed after headers have already been sent in /var/www/class-wiki/includes/Setup.php on line 712
Warning: session_id(): Session ID cannot be changed after headers have already been sent in /var/www/class-wiki/includes/session/SessionBackend.php on line 796
Warning: session_id(): Session ID cannot be changed after headers have already been sent in /var/www/class-wiki/includes/Setup.php on line 756
Warning: session_start(): Session cannot be started after headers have already been sent in /var/www/class-wiki/includes/Setup.php on line 757
Deprecated: strtr(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/class-wiki/includes/Title.php on line 424
Warning: Cannot modify header information - headers already sent by (output started at /var/www/class-wiki/LocalSettings.php:225) in /var/www/class-wiki/includes/libs/HttpStatus.php on line 112
Warning: Cannot modify header information - headers already sent by (output started at /var/www/class-wiki/LocalSettings.php:225) in /var/www/class-wiki/includes/WebResponse.php on line 74
Warning: Cannot modify header information - headers already sent by (output started at /var/www/class-wiki/LocalSettings.php:225) in /var/www/class-wiki/includes/WebResponse.php on line 74
Warning: Cannot modify header information - headers already sent by (output started at /var/www/class-wiki/LocalSettings.php:225) in /var/www/class-wiki/includes/WebResponse.php on line 74
Warning: Cannot modify header information - headers already sent by (output started at /var/www/class-wiki/LocalSettings.php:225) in /var/www/class-wiki/includes/WebResponse.php on line 74
Warning: Cannot modify header information - headers already sent by (output started at /var/www/class-wiki/LocalSettings.php:225) in /var/www/class-wiki/includes/WebResponse.php on line 74
Warning: Cannot modify header information - headers already sent by (output started at /var/www/class-wiki/LocalSettings.php:225) in /var/www/class-wiki/includes/WebResponse.php on line 74 Frohro (talk) 18:14, 28 December 2022 (UTC)
These warnings also appear in /var/log/apache2/error.log, but don't appear on the screen or in the log if I take the phpinfo(); out of the last line in LocalSettings.php. Frohro (talk) 05:27, 29 December 2022 (UTC)
Try to reinstall you wiki again, by visiting this URL, yourwiki.com/mw-config.
mw-config is the web-based mediawiki config/installation.
once visited, you will be prompted to either install (read the note) or reinstall the wiki which includes some initial configuration like wiki name, database configuration, and some other basic wiki configuration like enabling extensions, skins, etc..
Note: to reinstall, you have to rename the file LocalSetting.php, to some other name like LocalSettings.back. then you will get another fresh copy of the LocalSettings.php after finishing the installation, use it as a new LocalSettings.php. 2001:8F8:1E6D:79DB:6820:39CA:E76:DC25 (talk) 09:03, 1 January 2023 (UTC)
I can't get that far. I get "This site cannot be reached." Frohro (talk) 04:54, 11 January 2023 (UTC)
If I put phpinfo() in as the last line of LocalSettings.php, I get the phpinfo with the above warnings, but without it, all I get is "This site cannot be reached." Frohro (talk) 05:10, 11 January 2023 (UTC)
Okay, so I went to the latest (1.39.1) and used the mw-config on that. If I used my LocalSettings.php, I get the same errors. If I use a bare bones LocalSetting.php, it loads the page, but extensions I use are not working. The minute I put any $wfLoadExtension( "Math" ), or any other extension I need, I get "The page isn't working" message. As far as I can tell the permissions are the same. Frohro (talk) 02:27, 12 January 2023 (UTC)
Huzzah! I got the extensions to work. I had some typos. Frohro (talk) 05:27, 12 January 2023 (UTC)

Upgrade problem

Hello, I've just upgraded from 1.38.5 to 1.39.0.

Now my pages won't show up, they all give an error message as follows:

[Y6wHtBCLrT923rJpOeYsUwAAARg] /hattem/Wiki/Hoofdpagina MWException: Error: invalid magic word '='

Backtrace:

from /home/deb101385/domains/nderleeuw.nl/public_html/hattem/Wiki/includes/MagicWord.php(129)

#0 /home/deb101385/domains/nderleeuw.nl/public_html/hattem/Wiki/includes/MagicWordFactory.php(231): MagicWord->load(string)

#1 /home/deb101385/domains/nderleeuw.nl/public_html/hattem/Wiki/includes/MagicWordArray.php(85): MagicWordFactory->get(string)

#2 /home/deb101385/domains/nderleeuw.nl/public_html/hattem/Wiki/includes/MagicWordArray.php(287): MagicWordArray->getHash()

#3 /home/deb101385/domains/nderleeuw.nl/public_html/hattem/Wiki/includes/parser/Parser.php(3078): MagicWordArray->matchStartToEnd(string)

#4 /home/deb101385/domains/nderleeuw.nl/public_html/hattem/Wiki/includes/parser/PPFrame_Hash.php(276): Parser->braceSubstitution(array, PPFrame_Hash)

#5 /home/deb101385/domains/nderleeuw.nl/public_html/hattem/Wiki/includes/parser/Parser.php(2954): PPFrame_Hash->expand(PPNode_Hash_Tree, integer)

#6 /home/deb101385/domains/nderleeuw.nl/public_html/hattem/Wiki/includes/parser/Parser.php(961): Parser->replaceVariables(string, PPFrame_Hash)

#7 /home/deb101385/domains/nderleeuw.nl/public_html/hattem/Wiki/includes/parser/Parser.php(4927): Parser->preprocess(string, Title, ParserOptions)

#8 /home/deb101385/domains/nderleeuw.nl/public_html/hattem/Wiki/includes/language/MessageCache.php(1308): Parser->transformMsg(string, ParserOptions, Title)

#9 /home/deb101385/domains/nderleeuw.nl/public_html/hattem/Wiki/includes/language/Message.php(1456): MessageCache->transform(string, boolean, Language, Title)

#10 /home/deb101385/domains/nderleeuw.nl/public_html/hattem/Wiki/includes/language/Message.php(1009): Message->transformText(string)

#11 /home/deb101385/domains/nderleeuw.nl/public_html/hattem/Wiki/includes/language/Message.php(1053): Message->format(string)

#12 /home/deb101385/domains/nderleeuw.nl/public_html/hattem/Wiki/includes/OutputPage.php(1048): Message->text()

#13 /home/deb101385/domains/nderleeuw.nl/public_html/hattem/Wiki/includes/OutputPage.php(1097): OutputPage->setHTMLTitle(Message)

#14 /home/deb101385/domains/nderleeuw.nl/public_html/hattem/Wiki/includes/page/Article.php(474): OutputPage->setPageTitle(string)

#15 /home/deb101385/domains/nderleeuw.nl/public_html/hattem/Wiki/includes/actions/ViewAction.php(78): Article->view()

#16 /home/deb101385/domains/nderleeuw.nl/public_html/hattem/Wiki/includes/MediaWiki.php(542): ViewAction->show()

#17 /home/deb101385/domains/nderleeuw.nl/public_html/hattem/Wiki/includes/MediaWiki.php(322): MediaWiki->performAction(Article, Title)

#18 /home/deb101385/domains/nderleeuw.nl/public_html/hattem/Wiki/includes/MediaWiki.php(904): MediaWiki->performRequest()

#19 /home/deb101385/domains/nderleeuw.nl/public_html/hattem/Wiki/includes/MediaWiki.php(562): MediaWiki->main()

#20 /home/deb101385/domains/nderleeuw.nl/public_html/hattem/Wiki/index.php(50): MediaWiki->run()

#21 /home/deb101385/domains/nderleeuw.nl/public_html/hattem/Wiki/index.php(46): wfIndexMain()


What could be wrong here? I'm using php version 7.4, but it happens as well under 8.1


Michiel van der Leeuw Michiel57 (talk) 09:20, 28 December 2022 (UTC)

Oh huh, you are the second person to report this.
My suspicion is something with localisation cache but im not sure.
Can you try clearing all caches and running rebuildLocalisationCache.php --force
I have no idea if that will work, just a guess Bawolff (talk) 02:42, 30 December 2022 (UTC)
Well, done that, but it didn't help... Michiel57 (talk) 13:26, 30 December 2022 (UTC)

TOC Bug in MW 1.39.x

TOC bug at MW 1.39.x
TOC bug at MW 1.39.x

Hi, one of my wikies has been updated to version 1.39. And I see a bug in TOC when it is hidden on the top. As you can see on the image the text is out of the box. Any ideas how to resolve the issue? Meanwhile I don't see such display at Wikipedia.

To devoppers: Please make an option to have old style TOC please!!! Fokebox (talk) 11:56, 28 December 2022 (UTC)

Nobody knows how to resolve the without clear and full steps to reproduce something somewhere and a test case; see How to report a bug . As far as I know, no option for "old style TOC" is planned - you are free to maintain such additional code complexity in a fork. Malyacko (talk) 16:27, 28 December 2022 (UTC)
Toc is part of the skin, so you can use a different skin to get old style toc Bawolff (talk) 02:39, 30 December 2022 (UTC)

Cant use elasticsearch 7.10.2

Hello. my provider dont let my server use elasticsearch 7.10.2.

i have only to choose between elasticsearch 6.8.23 and elasticsearch 7.17.8, so i cant install mediawiki 1.39 Brunodapei (talk) 12:11, 28 December 2022 (UTC)

Okay. You correctly summarized the situation, I guess. :) Malyacko (talk) 16:26, 28 December 2022 (UTC)
ElasticSearch is only needed for CirrusSearch, so you can install mediawiki without cirrussearch. Bawolff (talk) 21:57, 28 December 2022 (UTC)
how can i "uninstall" CirrusSearch? Brunodapei (talk) 00:17, 10 June 2023 (UTC)
Remove the wfLoadExtension( 'CirrusSearch' ); and wfLoadExtension( 'Elastica' ) from your LocalSettings.php Bawolff (talk) 08:50, 10 June 2023 (UTC)
ok. Thank You. but the indexes in use will still work? Brunodapei (talk) 15:21, 10 June 2023 (UTC)
Elasticsearch will stop working Bawolff (talk) 18:22, 10 June 2023 (UTC)

Case and Accent Folding in MW 1.38

Hello,

I am trying to implement case and accent folding on my Wiki (https://academia.la/). I have installed CirrusSearch and Elastica. For instance: When I search "Hallo", the results should also show "Hāllo" (I especially need this for Macrons and Circumflexes). In localsettings.php I have the code

$wgCirrusSearchUseIcuFolding = true;

$wgCirrusSearchNamespaceResolutionMethod = 'naive';

but it does not work. Any idea what I can do? Are there other MediaWiki extensions that give better results? Bildungskind (talk) 17:16, 28 December 2022 (UTC)

as a guess, i imagine you might have to rebuild the search index after changing these settings. Bawolff (talk) 07:17, 2 January 2023 (UTC)

Help needed for error message

I created this wiki:


https://www.thailand-seite.de/Buddhismusglossar/index.php?title=Glossar_zum_Buddhismus

and now I've got this error message:

<b>Warning</b>:  Private methods cannot be final as they are never overridden by other classes in <b>/homepages/26/d244615709/htdocs/Thailand/Buddhismusglossar/includes/actions/Action.php</b> on line <b>69</b><br />

What can I do? 2001:9E8:250D:CF00:BDC8:59EE:C1CD:8F5A (talk) 19:20, 28 December 2022 (UTC)

You are running an outdated insecure software version which has been unsupported for years. Please follow Manual:Upgrading for your own safety, and run supported secure software versions.
Apart from that, what exactly is on line 69 in that file? Malyacko (talk) 19:48, 28 December 2022 (UTC)
I think that's a PHP 8 warning. Maybe you should upgrade MediaWiki as suggested above and see what happens. The Compatibility page says this:
MediaWiki support for PHP 8.0 and above started with 1.39.0. Other release branches like MediaWiki 1.35.x may have minor issues and warnings on PHP 8 but generally work. See T248925 for more information. Jonathan3 (talk) 20:13, 28 December 2022 (UTC)

I'm trying to maintain an abandoned MediaWiki extension but I need some help

Informations:

I've fixed some issues in the extension Semantic MediaWiki Graph, I've forked it on Github and asked the Extension creator to accept the pull request.

I got the extension to work then I've updated D3.js from version 2 to version 4 (because of some bugs and because that version is extremely old) but now I get an error.

Steps to reproduce

  1. open https://www.tematichedigenere.com/wiki/Speciale:SemanticMediaWikiGraph?debug=true
  2. select th 3rd item "Abbandono..."
  3. submit the form

Getting the following error:

VM889:198 Uncaught ReferenceError: d3 is not defined

at drawCluster (<anonymous>:198:899)
at Object.success (<anonymous>:219:793)
at fire (load.php?lang=it&modules=jquery%7Cjquery.ui&skin=vector&version=w4871:47:934)
at Object.fireWith [as resolveWith] (load.php?lang=it&modules=jquery%7Cjquery.ui&skin=vector&version=w4871:49:135)
at done (load.php?lang=it&modules=jquery%7Cjquery.ui&skin=vector&version=w4871:131:802)
at XMLHttpRequest.<anonymous> (load.php?lang=it&modules=jquery%7Cjquery.ui&skin=vector&version=w4871:135:444)

It seems quite hard to debug the output of the resource loader. It's combining and minifying the js.

Any help? Hyperreview (talk) 22:26, 28 December 2022 (UTC)

Add ?debug=1 to the end of the wiki page url. Makes debugging easier. Bawolff (talk) 00:59, 29 December 2022 (UTC)

MWException: Error: invalid magic word '='

Have been wrestling with a new install, only to hit a wall here. Main page returns:


[6d288e0cced206fc7f9cfbcb] /jatswiki/index.php/Main_Page?action=purge MWException: Error: invalid magic word '='

Backtrace:

from /var/www/html/jatswiki/includes/MagicWord.php(129)

#0 /var/www/html/jatswiki/includes/MagicWordFactory.php(231): MagicWord->load()

#1 /var/www/html/jatswiki/includes/MagicWordArray.php(85): MagicWordFactory->get()

#2 /var/www/html/jatswiki/includes/MagicWordArray.php(287): MagicWordArray->getHash()

#3 /var/www/html/jatswiki/includes/parser/Parser.php(3079): MagicWordArray->matchStartToEnd()

#4 /var/www/html/jatswiki/includes/parser/PPFrame_Hash.php(276): Parser->braceSubstitution()

#5 /var/www/html/jatswiki/includes/parser/Parser.php(2955): PPFrame_Hash->expand()

#6 /var/www/html/jatswiki/includes/parser/Parser.php(962): Parser->replaceVariables()

#7 /var/www/html/jatswiki/includes/parser/Parser.php(4928): Parser->preprocess()

#8 /var/www/html/jatswiki/includes/language/MessageCache.php(1308): Parser->transformMsg()

#9 /var/www/html/jatswiki/includes/language/Message.php(1456): MessageCache->transform()

#10 /var/www/html/jatswiki/includes/language/Message.php(1009): Message->transformText()

#11 /var/www/html/jatswiki/includes/language/Message.php(1053): Message->format()

#12 /var/www/html/jatswiki/includes/OutputPage.php(1048): Message->text()

#13 /var/www/html/jatswiki/includes/OutputPage.php(1097): OutputPage->setHTMLTitle()

#14 /var/www/html/jatswiki/includes/actions/Action.php(422): OutputPage->setPageTitle()

#15 /var/www/html/jatswiki/includes/actions/PurgeAction.php(45): Action->setHeaders()

#16 /var/www/html/jatswiki/includes/MediaWiki.php(542): PurgeAction->show()

#17 /var/www/html/jatswiki/includes/MediaWiki.php(322): MediaWiki->performAction()

#18 /var/www/html/jatswiki/includes/MediaWiki.php(904): MediaWiki->performRequest()

#19 /var/www/html/jatswiki/includes/MediaWiki.php(562): MediaWiki->main()

#20 /var/www/html/jatswiki/index.php(50): MediaWiki->run()

#21 /var/www/html/jatswiki/index.php(46): wfIndexMain()

#22 {main}

***

Given my reading of other problems, it looks to be something with Extensions, but there is no Extension "=" obviously. Have gone over my LocalSettings and disabled any extension loading, no change. Help? Jgriffey (talk) 23:22, 28 December 2022 (UTC)

First off, if you are using a non standard localisation cache config, i would make sure to clear it.
When upgrading, did you extract over top of existing files? It could be caused by having a mix of different versions of mediawiki together.
It is unlikely to be an extension issue. Bawolff (talk) 00:58, 29 December 2022 (UTC)
No, i didn't extract over...I cleared the directory, and unzipped the new files into it. I'll look into the cache, although I didn't intentionally set anything up, just took the defaults for the install. Shouldn't be anything non-standard.
I did check the cache directory, and nothing is there...and it is writeable by the webserver. Jgriffey (talk) 03:43, 29 December 2022 (UTC)
Im not sure if this will help, but you could try running rebuildLocalisationCache.php --force Bawolff (talk) 22:16, 30 December 2022 (UTC)
@Bawolff I had the same issue and indeed,, rebuilding the localisationCache solved the issue. Thanks! 2A02:A45E:13BB:1:64DF:7C84:FDD7:D162 (talk) 12:36, 22 February 2023 (UTC)

syntax for correct model expansion ?

Hi all, when I try 
 {{Webarchive|url=https://web.archive.org/web/20180923085518/https://devuan.org/os/debian-fork/ascii-stable-announce-060818 |date=2018-09-23 }}
I get 
 (Archived 2018-09-23 at the Wayback Machine) 
When I try
 {{date|2018|09|23}} 
I get 
 23 September 2018
So when I try 
 {{Webarchive|url=https://web.archive.org/web/20180923085518/https://devuan.org/os/debian-fork/ascii-stable-announce-060818|date={{date|2018|09|23}}}}
I expect 
 (Archived 23 September 2018 at the Wayback Machine) 
<nowiki>but the '{{date' does not expand and I get only</nowiki>
 (Archived 2018-09-23 at the Wayback Machine) 
What is then the right syntax to see the full date text ? Thanks.

Christian 🇫🇷 FR (talk) 10:49, 29 December 2022 (UTC)

It depends what the webarchive template does with the date field. Bawolff (talk) 02:31, 30 December 2022 (UTC)

Internal Error after upgrade from 1.35.1 to 1.39.1

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.


After upgrade to 1.39.1 I get the internal error: TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, class User does not have a method "isLoggedIn"


Environment: Ubuntu 22.04.1, PHP 8.2, mysql 8.0.31

URL: https://userguide.hitguard.de/index.php/Hauptseite


How I updated:

- I extracted 1.39.1 to a new folder,

- copied the LocalSettings.php to this folder,

- extracted the Language Extension Bundle (release 2022.10) into the extensions folder

- extracted the current version of the Lockdown extension into the extensions folder

- renamed the old installation folder

- set the new installation folder

- run php update.php from the maintenance folder - without an error


You can see the complete stack trace when you click the url to the mediawiki. I was not able to paste it here because the spam filter prevented to add the topic then. MDummy (talk) 11:53, 29 December 2022 (UTC)

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

Database issues after upgrading to 1.39.1-2

Hi. apt-get has just updated Mediawiki to version 1.39.1-2 - now when I try to access my wiki I get database errors ('[312a93d3cd58788367ba03e5] 2022-12-29 13:31:45: Fatal exception of type "Wikimedia\Rdbms\DBQueryError"') and can't see any content. My error log shows:


Error 1146 from SpecialRecentChangesLinked::doMainQuery, Table 'mediawiki.targetlink' doesn't exist SELECT * FROM....


I've tried running the update.php script in case that's supposed to create the table, but get:


No need to migrate revision.rev_comment, field does not exist

No need to migrate archive.ar_comment, field does not exist

No need to migrate ipblocks.ipb_reason, field does not exist

No need to migrate image.img_description, field does not exist

No need to migrate oldimage.oi_description, field does not exist

No need to migrate filearchive.fa_deleted_reason, field does not exist

No need to migrate filearchive.fa_description, field does not exist

No need to migrate recentchanges.rc_comment, field does not exist

No need to migrate logging.log_comment, field does not exist

No need to migrate protected_titles.pt_reason, field does not exist

Wikimedia\Rdbms\DBReadOnlyError from line 754 of /usr/share/mediawiki/includes/libs/rdbms/database/Database.php: Database is read-only: Dumping Database, Access will be restored shortly

#0 /usr/share/mediawiki/includes/libs/rdbms/database/Database.php(1067): Wikimedia\Rdbms\Database->assertIsWritablePrimary()

#1 /usr/share/mediawiki/includes/libs/rdbms/database/Database.php(940): Wikimedia\Rdbms\Database->executeQuery()

#2 /usr/share/mediawiki/includes/libs/rdbms/database/Database.php(1835): Wikimedia\Rdbms\Database->query()

#3 /usr/share/mediawiki/includes/libs/rdbms/database/DBConnRef.php(103): Wikimedia\Rdbms\Database->insert()

#4 /usr/share/mediawiki/includes/libs/rdbms/database/DBConnRef.php(381): Wikimedia\Rdbms\DBConnRef->__call()

#5 /usr/share/mediawiki/maintenance/includes/LoggedUpdateMaintenance.php(49): Wikimedia\Rdbms\DBConnRef->insert()

#6 /usr/share/mediawiki/includes/installer/DatabaseUpdater.php(1241): LoggedUpdateMaintenance->execute()

#7 /usr/share/mediawiki/includes/installer/DatabaseUpdater.php(547): DatabaseUpdater->migrateComments()

#8 /usr/share/mediawiki/includes/installer/DatabaseUpdater.php(511): DatabaseUpdater->runUpdates()

#9 /usr/share/mediawiki/maintenance/update.php(202): DatabaseUpdater->doUpdates()

#10 /usr/share/mediawiki/maintenance/includes/MaintenanceRunner.php(309): UpdateMediaWiki->execute()

#11 /usr/share/mediawiki/maintenance/doMaintenance.php(85): MediaWiki\Maintenance\MaintenanceRunner->run()

#12 /usr/share/mediawiki/maintenance/update.php(312): require_once('...')

#13 {main}


I have a recent backup from a couple of weeks ago - I've looked through it thoroughly and the SQL backup has no table called 'targetlink'.


I'm at a complete loss how to fix this...help?!


Thanks! 81.157.254.97 (talk) 13:42, 29 December 2022 (UTC)

I'm a complete idiot - should have realised from error messages that the database had somehow been locked in LocalSettings.php. All resolved now! 81.157.254.97 (talk) 13:50, 29 December 2022 (UTC)
It sounds like $wgReadOnly was set. But I wouldn't say you're an idiot! :-) It's a bit weird that a normal and configured read-only state results in a stack trace being printed — hardly makes it feel like a proper state. Sam Wilson 23:52, 29 December 2022 (UTC)

Prevent PageSaveCompleteHook message

The message gets displayed whenever a page is requested. Maybe this comes from cached content.

How can this misleading message (when the page was not altered) be prevented, as it gets increasingly annoying.

Or how can the hook be disabled, at least showing the message. 84.184.245.232 (talk) 18:50, 29 December 2022 (UTC)

What message are you talking about Bawolff (talk) 02:29, 30 December 2022 (UTC)
"Your edit was saved." 84.184.243.39 (talk) 15:31, 30 December 2022 (UTC)
You can hide the message by adding this in your personal common.js: `mw.config.set('wgPostEditConfirmationDisabled', true);` – Ammarpad (talk) 22:30, 9 January 2023 (UTC)
Thank you for this great hint. But to make it work I did not find the correct location for my common.js, or should it be Common.js or Global.js?
In which directory do I need to move the file? 84.184.242.252 (talk) 16:01, 11 January 2023 (UTC)
See Manual:Interface/JavaScript#Personal scripts Malyacko (talk) 16:18, 11 January 2023 (UTC)
I cannot edit MediaWiki:Common.js when being logged in as member of Administrators, Autoconfirmed users, Bureaucrats, Users
There is only view source.
In LocalSettings.php# Site and User JS/CSS$wgUseSiteJs = true;$wgUseSiteCss = true;$wgAllowUserJs = true;$wgAllowUserCss = true; 84.184.242.252 (talk) 21:44, 11 January 2023 (UTC)

Search Image Contents

Can MediaWiki search contents of an image? Image contains text. Gachangi (talk) 07:55, 30 December 2022 (UTC)

Not generally. It would be possible to make an extension do that.
The major exception is pdfs when cirrussearch is installed. Bawolff (talk) 08:13, 30 December 2022 (UTC)

Mw-config file expose

Hello Team,

https://wiki.example.com/mw-config/

If attacker reinstall it will all the data be removed? because to block mw-config endpoint media wiki haven't provided any solution?

Can you please help me to clear my query? Queryy (talk) 12:42, 30 December 2022 (UTC)

Please provide underlying context, references, plus please follow "Post a new question" in the sidebar. How would an "attacker reinstall" something? What is an "mw-config endpoint" and what do you mean by "blocking"? Which underlying assumption do you have? Malyacko (talk) 13:22, 30 December 2022 (UTC)
So for starters reinstalling wouldn't delete your data. Second, if mediawiki is already installed you need a password (wgUpgradeKey) to use that endpoint. So there isn't any reason to be concerned
However, if you are concerned you can delete the mw-config directory (its not needed after install/upgrade) or use your webserver config to disable access (e.g. on apache, create a file in that directory named .htaccess containing deny from all) Bawolff (talk) 22:13, 30 December 2022 (UTC)
You may rename that directory, mw-dsfjbkjmjnclkjc54855-config12354 2001:8F8:1E6D:79DB:6820:39CA:E76:DC25 (talk) 09:05, 1 January 2023 (UTC)

How can I make text narrower only in some sections of my wiki?

My wiki is designed to publish my fan-fiction. There are sections where I'd like to narrow the text on the page so that it reads more like a novel, rather than a webpage.


How can I go about doing this? 2607:FEA8:E3E5:7600:1989:5EA4:C20B:5A6D (talk) 19:53, 30 December 2022 (UTC)

So some skins do have narrower width, you might want to look through https://www.mediawiki.org/wiki/Category:All_skins
If you just want a specific section narrowed, do something like:
<div style="width:75%">all your text here at 75% normal width</div>
Or
<div style="max-width:40ch">all your text here, doing toughly 40 characters per line or less if the line doesn't fit</div>
See https://developer.mozilla.org/en-US/docs/Web/CSS/width and https://developer.mozilla.org/en-US/docs/Web/CSS/max-width Bawolff (talk) 22:07, 30 December 2022 (UTC)
Thanks very much - that was exactly what I was looking for. 2607:FEA8:E3E5:7600:1989:5EA4:C20B:5A6D (talk) 04:53, 31 December 2022 (UTC)

Is it possible to have a module parse remote JSON or XML?

Where is the best place to look for information on how to do this?

I'm looking to create automatic generated templates that invoke a call to a remote url for information. For example using the JSON from this urlhttps://masterunitlist.azurewebsites.net/Unit/QuickList?Name=WHM-7M DeadfirePrime (talk) 02:01, 31 December 2022 (UTC)

Extension:External Data might be helpful.
If you want to do something custom, see manual:Extension Bawolff (talk) 02:45, 31 December 2022 (UTC)