Jump to content

Project:Support desk/Flow/2023/11

Add topic
From mediawiki.org
Latest comment: 1 year ago by 188.128.68.0 in topic the index.php file is empty
This page is an archive.
Please ask questions on the current support desk.

My table text is growing bigger and bigger. How to reduce it's size

My table text is growing bigger and bigger. How to reduce it's size? It;s now.

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

| Table                 | Size (MB) |

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

| text                  | 393446.00 |


I tried many maintenance scripts and nothing has reduced its size. Suggest me a method. 103.203.73.79 (talk) 12:33, 1 November 2023 (UTC)

390GB is pretty large. that is bigger than English wikipedia. How many revisions does your wiki have ? —TheDJ (Not WMF) (talkcontribs) 13:33, 1 November 2023 (UTC)
Hello Derk-Jan Hartman,
Could you please provide the exact method to check the revision. @TheDJ 103.203.73.79 (talk) 14:17, 1 November 2023 (UTC)
If you go to https://en.wikipedia.org/wiki/Special:Statistics of your wiki, it's essentially "Page edits since x was set up". The "Pages" count might also be interesting. —TheDJ (Not WMF) (talkcontribs) 14:30, 1 November 2023 (UTC)
Hello Derk-Jan Hartman,
This is what I found in our statistics page.
---
Content pages : 654
pages ((All pages in the wiki, including talk pages, redirects, etc.)) : 1506
Uploaded files : 33
Page edits since Configuration Management Database - was set up : 9,159,825
Average edits per page : 6,082.22
Property values (total) : 51,038
---
Let me know if you need more details. 103.203.73.78 (talk) 05:30, 2 November 2023 (UTC)
@TheDJ please suggest a method to reduce the DB size now or to optimize it. DB is eating up too much storage of the RDS. 103.203.73.78 (talk) 05:32, 2 November 2023 (UTC)
That's 9 million edits, on average 43 KiB per version. On average 5000 revisions per page ?????
Are you storing large pages that you update very frequently ? —TheDJ (Not WMF) (talkcontribs) 13:06, 2 November 2023 (UTC)
You might want to look into Manual:CompressOld.php and compress anything older than a certain time ?
There is also external storage, that can be used, but I'm not familiar with how that works exactly, it's mostly for very big wikis. —TheDJ (Not WMF) (talkcontribs) 13:11, 2 November 2023 (UTC)
@TheDJ Yes, I have tried using Manual:CompressOld.php that didnot went well. As the size of table is huge, after sometime the script stopped working and process killed halfway. Do u suggest any method not to kill the process while running Manual:CompressOld.php? Or can you point out to someone who did this in the past? 103.203.73.95 (talk) 05:02, 3 November 2023 (UTC)
Depends the cause. Did it run out of memory? Try checking if php has memory limit set.
You could try adjusting the the -c chunk size option or do -t gzip (less efficient but probably needs less memory) Bawolff (talk) 15:51, 6 November 2023 (UTC)
Did you wiki have a large spam problem at some point? Leaderboard (talk) 12:46, 3 November 2023 (UTC)
Hello @Leaderboard No spam at all. We have different resources in the AWS. Using a bot we update the status of each resources allocated for the customer into the Wiki. Revisions happens based on the resource update happens in the AWS. 103.203.73.95 (talk) 13:30, 3 November 2023 (UTC)
How often does the bot update, and for how long has your wiki run? Leaderboard (talk) 15:08, 3 November 2023 (UTC)
Whenever there are changes in resources that the infra uses this bot will collect it from AWS and update in infra. Hence multiple resources are using, even a ec2 instance refresh can also be reflected in wiki. @Leaderboard@TheDJ 103.203.73.86 (talk) 05:49, 6 November 2023 (UTC)
Manual:DeleteOldRevisions.php might help, if you don't need old revisions. You may want to first check how many revisions would be deleted. Back up the wiki first. Leaderboard (talk) 06:57, 6 November 2023 (UTC)
@Leaderboard at first I am trying Manual:CompressOld.php after I had increased the compute power of my ec2. It's currently running on the shell screen for the last 12 + hours. For a 390GB sized text table, how long does it take to complete to the process? Could you provide an approximate time range to finish? 103.203.73.86 (talk) 05:10, 7 November 2023 (UTC)
Do you see a decrease on the database size? I'm not personally sure on how long it would take, though you must be willing to wait. Leaderboard (talk) 11:02, 7 November 2023 (UTC)
Hello @Leaderboard it took 2 days to complete the process. But still I don't see any decrease in DB size. What could be the next step you suggest? 103.203.73.95 (talk) 06:29, 9 November 2023 (UTC)
Did you run OPTIMIZE table text; sql command.
Otherwise the size on disk wont be reduced even if db size goes down. Bawolff (talk) 13:31, 9 November 2023 (UTC)
What's the current DB size? I suggested DeleteOldRevisions - did you do that? Leaderboard (talk) 09:25, 9 November 2023 (UTC)
@Leaderboard yes already tried DeleteOldRevisions, but SQL server timedout and ended up with error: 2006
----
MySQL server has gone away
#0 /var/www/html/w/includes/libs/rdbms/database/Database.php(1684): Wikimedia\Rdbms\Database->getQueryException('MySQL server ha...', 2006, 'DELETE FROM `re...', 'DeleteOldRevisi...') 103.203.73.108 (talk) 05:48, 10 November 2023 (UTC)
@Leaderboard I took the snapshot and its now 1000GB at the moment. I think to let the DeleteOldRevisions to run, I have to configure MYSQL parameters. What's the max_allowed_packet size do you recommend for such huge DB? 103.203.73.108 (talk) 05:49, 10 November 2023 (UTC)
I'm not sure - I'd recommend checking documentation. Leaderboard (talk) 06:43, 10 November 2023 (UTC)

Download database of abandoned wiki?

Time and time again I've had fandom wiki pages built with MediaWiki, that had dozens if not hundreds of people contributing content to them, rotting away after being abandoned by an admin who goes AWOL... is there a way for users without admin access to download the public data from a MediaWiki website in order to migrate the old content to a new MediaWiki instance without having to start from zero? 2804:14D:8084:989C:0:0:0:1001 (talk) 12:50, 1 November 2023 (UTC)

Not really. A proper download will require proper access. It should be noted however, that Fandom has an explicit orphaned wiki policy that allows community members to take over from missing admins. https://community.fandom.com/wiki/Adoption:RequestsTheDJ (Not WMF) (talkcontribs) 13:31, 1 November 2023 (UTC)

Is there a Wiki intro user course?

Is there a Wiki intro user course? 199.212.150.5 (talk) 17:16, 1 November 2023 (UTC)

When importing a page from Wiktionary, the first letter of the title is always replaced with an uppercase letter

This is not correct, because the title of Wiktionary pages starts almost always from lowercase letter. RocknRollArchivist (talk) 19:57, 1 November 2023 (UTC)

By default wikis always have pages with an uppercase letter and cannot have pages with lowercase first letters. Wikitionary is an exception in that it has Manual:$wgCapitalLinks set to false. If you want to import it like that, the wiki that you are importing into, also needs to set this option. Note however that this is not advisable and will also make the first letter of all links case sensitive, which is generally counter intuitive for people. —TheDJ (Not WMF) (talkcontribs) 21:08, 1 November 2023 (UTC)

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


Hi.

1. How do I set the Vector 2022 skin to show as the main skin when entering my Wiki. I set this skin as my main skin in my account settings, but when I log out of my account I still see the old Vector version.

2. How can I add my graphic logo display in the Vector 2022 skin in place of my Wiki name? I mean the logo in the place where Wikipedia has it. Monocero (talk) 21:18, 1 November 2023 (UTC)

1. Set $wgDefaultSkin = 'vector-2022'; in LocalSettings.php
2. See Manual:$wgLogos#ExampleAmmarpad (talk) 07:58, 2 November 2023 (UTC)
1. Thanks.
2. In the LocalSettings.php file I have the command set to display the logo:
$wgLogo = "{$wgScriptPath}/images/logo/logo.png";
But this logo only displays on the old Vector skin and I want the logo to display on the new Vector 2022 skin Monocero (talk) 17:38, 2 November 2023 (UTC)
But that's different from what is in Manual:$wgLogos#ExampleAmmarpad (talk) 09:58, 3 November 2023 (UTC)
Okay, I don't know how to set the logo to show on Vector 2022, it doesn't work for me. I entered this code in LocalSettings.php
$wgLogos = [
'1.5x' => "images/logo/logo.png", // path to 1.5x version
];
My logo measures 150x150 and unfortunately it does not display on my wiki.
images/logo/logo.png is the path to the logo, which is located in the mediawiki images folder. Monocero (talk) 16:49, 3 November 2023 (UTC)
You need two things for Vector-2022 to display that correctly; these have keys 'wordmark' and 'icon'. So you need something like this:
$wgLogos = [ 
 '1.5x' => "images/logo/logo.png",
 'wordmark' => [
	'src' => "images/logo/logo.png"
	'width' => 135,
	'height' => 20,
  ],
  'icon' => "images/logo/logo.png"
];
The '1.5x' value would be used in skins that do not support the wordmark/icon values yet.
Note the size recommendation for each image on the manual page. – Ammarpad (talk) 18:36, 3 November 2023 (UTC)
After entering this code, my Wiki will stop working. Error displayed: HTTP ERROR 500 Monocero (talk) 11:39, 5 November 2023 (UTC)
Anyone have an idea how to fix this? Monocero (talk) 10:34, 7 November 2023 (UTC)
Looks like a missing comma on the line beginning 'src'. Jonathan3 (talk) 10:44, 7 November 2023 (UTC)
You're right. Now I don't have this error anymore, but the logo cannot load. I do not know what's wrong. Something is wrong with the path to the logo.
$wgLogos = [
'1.5x' => "images/logo/logo.png",
'wordmark' => [
'src' => "images/logo/logo.png",
'width' => 150,
'height' => 150,
],
'icon' => "images/logo/logo.png"
]; Monocero (talk) 12:38, 7 November 2023 (UTC)
Maybe try "{$wgScriptPath}/images/logo/logo.png" Jonathan3 (talk) 14:17, 7 November 2023 (UTC)
This code exists in LocalSettings.php from the beginning and displays the logo for Vector 2010, but does not display for Vector 2022. Monocero (talk) 21:32, 8 November 2023 (UTC)
What exactly do you have in LocalSettings.php now? Jonathan3 (talk) 10:25, 9 November 2023 (UTC)
Old code:
## The URL path to the logo. Make sure you change this from the default,
    1. or else you'll overwrite your logo when you upgrade!
$wgLogo = "{$wgScriptPath}/images/logo/logo.png";
New code:
$wgLogos = [
'1x' => "/images/logo/logo.png", // Ścieżka do wersji 1x (PNG)
'1.5x' => "/images/logo/logo.png", // Ścieżka do wersji 1.5x (PNG)
'2x' => "/images/logo/logo.png", // Ścieżka do wersji 2x (PNG)
'svg' => "/images/logo/logo.svg", // Ścieżka do wersji SVG (preferowana)
];
None of these codes display the logo on my MediaWiki.
I reported the problem here:
https://www.mediawiki.org/wiki/Manual%20talk%3A%24wgLogos#h-The_code_to_display_the_logo_does_not_work_%28Vector_2022%29-20231109085700 Monocero (talk) 10:34, 9 November 2023 (UTC)
Why does MediaWiki here on the forum separate these codes as separate, it doesn't look nice. Monocero (talk) 10:35, 9 November 2023 (UTC)
Ok, I'll close this as a duplicate and answer on the other topic. Jonathan3 (talk) 10:49, 10 November 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

every page i go to is a 403

pages that exist

pages that dont

pages i can access

basically every page

including the setup page

what am i doing wrong

(my apache directory is /chaz/) 2601:447:C080:8820:502D:C0CD:2FD2:75B2 (talk) 01:44, 2 November 2023 (UTC)

Manual:How to debugTheDJ (Not WMF) (talkcontribs) 12:11, 2 November 2023 (UTC)
but i cant even generate the local settings php file 2601:447:C080:8820:85B9:ABAE:4F5F:1F83 (talk) 22:43, 2 November 2023 (UTC)
bump 2601:447:C080:8820:85B9:ABAE:4F5F:1F83 (talk) 00:49, 3 November 2023 (UTC)
Check your web server error logs Bawolff (talk) 02:11, 3 November 2023 (UTC)
how 2601:447:C080:8820:780B:C7FA:E5E4:83EF (talk) 11:42, 3 November 2023 (UTC)
so i've checked my apache logs and there's nothing wrong
only two lines which are just apache restarting so 2601:447:C080:8820:D851:B7B:C9C6:69ED (talk) 12:51, 4 November 2023 (UTC)
Try making your apache directory /var/www/html . That's what I do when I install Wordpress manually on Linux. Otherwise, I don't know. 68.56.140.174 (talk) 16:16, 5 November 2023 (UTC)

minimal import privilege

Dear ∀,

I am working with a bot to import content into my wiki. For this bot I have set up a bot account.

I have been running into the cantimport-upload error, comp. API:Import#Possible_errors.

It seems, that I must give the bot at least admin rights to import pages via the API. This seems like an overreach to me.

Is there a way to assign the bot the upload privilege allone?

Thank you in advance! Yours, Ciciban (talk) 11:54, 2 November 2023 (UTC)

Assign 'importupload' permission to the bot group. (Assuming the bot is actually in that group).
$wgGroupPermissions['bot']['importupload'] = true;Ammarpad (talk) 15:32, 2 November 2023 (UTC)
Thank you for your answer.
Is there a way to add this option to Special:UserRights? So I could conveniently add and remove the right via the frontend.
Thank you in advance.
Ciciban (talk) 16:13, 2 November 2023 (UTC)
No, because you can't assign userright to a a particular user account. (Note that Special:UserRights is a misnomer itself). What you can do is to assign the userright to a particular 'usergroup' and then grant that usergroup to the user account via Special:UserRights interface.
What the code "$wgGroupPermissions['bot']['importupload'] = true" does is to assign the 'importupload' userright to 'bot' group. And on Special:UserRights you should be able to add and remove 'bot' group from user accounts. – Ammarpad (talk) 09:32, 3 November 2023 (UTC)

Trouble editing and deleting a page

I recently started a wiki on this site, and I'm having trouble with a page. Everytime I click to edit, a blank editing page shows up, with a message reading (barely translated from Spanish, the language I'm using for my wikia): "Revission nº 0 of this page doesn't exist.

This tends to happen when you follow an obsolete history link that directs to an already deleted page. You can find more information in the deleted pages registry."


I find it odd that it says the page is already deleted, when the link directs me to the page just fine and I don't have any trouble visiting it.


I tried to deleted the page and just paste all the content all over again, but whenever I try to deleted, it says a Logical Error has happened.


Sorry if I give information in a confussing way, and thanks in advance to anyone for their help.


Here's the troubling page: https://laenciclopediadeloscuentosdehadas.miraheze.org/wiki/Cuentos_h%C3%BAngaros ObscureObsidian (talk) 21:06, 2 November 2023 (UTC)

Lost in Sandbox

I put some notes in Sandbox about Harriett Cater, I now cant find these notes - not sure what I am doing wrong Sue8183 (talk) 21:25, 2 November 2023 (UTC)

You had posted it on Meta… in the wrong place. Tropicalkitty (talk) 23:41, 2 November 2023 (UTC)
Thank you so much I am gradually getting myself sorted out, 2A02:C7C:64FD:7C00:2919:648B:E59E:7FC8 (talk) 07:43, 15 April 2024 (UTC)

Is MediaWiki a good tool to use for a searchable knowledgebase

There's a FOSS project I'm interested in, which could really use an easily searchable knowledgebase, and better documentation.

Is MediaWiki overkill? 97.117.93.203 (talk) 16:44, 3 November 2023 (UTC)

Also, this is a decentralized project. Would it even be possible to run MediaWiki in a decentralized manner? 97.117.93.203 (talk) 16:46, 3 November 2023 (UTC)
See Manual:Deciding whether to use a wiki as your website typeAmmarpad (talk) 18:37, 3 November 2023 (UTC)

Class "LightnCandy\LightnCandy" not found

Greetings,

I am new to Mediawiki, having taken over our school's install (1.3.0) from a colleague. I have done a manual update to 1.35. in the hope of updating in a second step to the latest version but I get two internal errors about LightnCandy.

I can only access the wiki via ftp and by uploading files. Can anyone help me how to fix the problem? Many thank!


MediaWiki internal error.

Original exception: [7ce30a1ea33a7402a08b5da6] /kgwiki/index.php/Hauptseite Error from line 67 of /is/htdocs/wp12764348_8A2EU2LHJG/kgwiki/includes/TemplateParser.php: Class "LightnCandy\LightnCandy" not found

Backtrace:

#0 /is/htdocs/wp12764348_8A2EU2LHJG/kgwiki/skins/Vector/includes/SkinVector.php(71): TemplateParser->__construct(string)

#1 /is/htdocs/wp12764348_8A2EU2LHJG/kgwiki/includes/skins/SkinTemplate.php(77): SkinVector->setupTemplate(string)

#2 /is/htdocs/wp12764348_8A2EU2LHJG/kgwiki/includes/skins/SkinTemplate.php(285): SkinTemplate->setupTemplateForOutput()

#3 /is/htdocs/wp12764348_8A2EU2LHJG/kgwiki/includes/skins/SkinTemplate.php(127): SkinTemplate->prepareQuickTemplate()

#4 /is/htdocs/wp12764348_8A2EU2LHJG/kgwiki/includes/skins/SkinTemplate.php(144): SkinTemplate->generateHTML()

#5 /is/htdocs/wp12764348_8A2EU2LHJG/kgwiki/includes/OutputPage.php(2624): SkinTemplate->outputPage()

#6 /is/htdocs/wp12764348_8A2EU2LHJG/kgwiki/includes/MediaWiki.php(954): OutputPage->output(boolean)

#7 /is/htdocs/wp12764348_8A2EU2LHJG/kgwiki/includes/MediaWiki.php(967): MediaWiki->{closure}()

#8 /is/htdocs/wp12764348_8A2EU2LHJG/kgwiki/includes/MediaWiki.php(547): MediaWiki->main()

#9 /is/htdocs/wp12764348_8A2EU2LHJG/kgwiki/index.php(53): MediaWiki->run()

#10 /is/htdocs/wp12764348_8A2EU2LHJG/kgwiki/index.php(46): wfIndexMain()

#11 {main}

Exception caught inside exception handler: [7ce30a1ea33a7402a08b5da6] /kgwiki/index.php/Hauptseite Error from line 67 of /is/htdocs/wp12764348_8A2EU2LHJG/kgwiki/includes/TemplateParser.php: Class "LightnCandy\LightnCandy" not found

Backtrace:

#0 /is/htdocs/wp12764348_8A2EU2LHJG/kgwiki/skins/Vector/includes/SkinVector.php(71): TemplateParser->__construct(string)

#1 /is/htdocs/wp12764348_8A2EU2LHJG/kgwiki/includes/skins/SkinTemplate.php(77): SkinVector->setupTemplate(string)

#2 /is/htdocs/wp12764348_8A2EU2LHJG/kgwiki/includes/skins/SkinTemplate.php(285): SkinTemplate->setupTemplateForOutput()

#3 /is/htdocs/wp12764348_8A2EU2LHJG/kgwiki/includes/skins/SkinTemplate.php(127): SkinTemplate->prepareQuickTemplate()

#4 /is/htdocs/wp12764348_8A2EU2LHJG/kgwiki/includes/skins/SkinTemplate.php(144): SkinTemplate->generateHTML()

#5 /is/htdocs/wp12764348_8A2EU2LHJG/kgwiki/includes/OutputPage.php(2624): SkinTemplate->outputPage()

#6 /is/htdocs/wp12764348_8A2EU2LHJG/kgwiki/includes/exception/MWExceptionRenderer.php(153): OutputPage->output()

#7 /is/htdocs/wp12764348_8A2EU2LHJG/kgwiki/includes/exception/MWExceptionRenderer.php(65): MWExceptionRenderer::reportHTML(Error)

#8 /is/htdocs/wp12764348_8A2EU2LHJG/kgwiki/includes/exception/MWExceptionHandler.php(106): MWExceptionRenderer::output(Error, integer)

#9 /is/htdocs/wp12764348_8A2EU2LHJG/kgwiki/includes/exception/MWExceptionHandler.php(185): MWExceptionHandler::report(Error)

#10 /is/htdocs/wp12764348_8A2EU2LHJG/kgwiki/includes/MediaWiki.php(583): MWExceptionHandler::handleException(Error, string)

#11 /is/htdocs/wp12764348_8A2EU2LHJG/kgwiki/index.php(53): MediaWiki->run()

#12 /is/htdocs/wp12764348_8A2EU2LHJG/kgwiki/index.php(46): wfIndexMain()

#13 {main} 2001:9E8:C952:2800:E02C:3A33:F88D:DB33 (talk) 23:55, 3 November 2023 (UTC)

You are missing external packages from the vendor directories of your site. If you install from zip downloads then this directory is provided in the zip and you need to ensure that you update those directories as well. If you get the download from git or something, then you will have to run the Composer command.
Note that each extension has its own vendor directory, so any installed extension should be updated and also needs up to date vendor subdirectories. —TheDJ (Not WMF) (talkcontribs) 10:05, 4 November 2023 (UTC)

research in a summary

HI,

is it possible to research a word in a title (long summary) and to click on the result to access directtly on the title ? Pacha35 (talk) 09:41, 4 November 2023 (UTC)

Are you asking whether you can display a hyperlink within a page title?
You could probably write an extension to do that. You could get inspiration from something like Extension:LinkTitles. Jonathan3 (talk) 10:40, 7 November 2023 (UTC)

the index.php file is empty

so when i view the source code of my /var/chwiki/chaz (my apache directory) it shows nothing

also in the apache2 error.log file it shows alot of error ah00035, and php errors

also i have given the mw-config directory +x permissions, and it still shows ah00035

do i need to reinstall (even though i havent) 2601:447:C080:8820:F833:F066:5822:A243 (talk) 16:08, 4 November 2023 (UTC)

i figured it out 2601:447:C080:8820:CCD1:1531:3C92:59B4 (talk) 17:57, 5 November 2023 (UTC)
Так что было? У меня такая же проблема 188.128.68.0 (talk) 12:43, 19 January 2025 (UTC)

?? Fataler Ausnahmefehler

opening wiki I get [97b976ec58ed58cf4b171894] 2023-11-04 16:54:40: Fataler Ausnahmefehler des Typs „Wikimedia\Rdbms\DBQueryError“ 2003:DE:DF0A:1F49:6C5F:285D:26B6:453E (talk) 16:57, 4 November 2023 (UTC)

Set $wgShowExceptionDetails = true; in LocalSettings.php to see more error detail – Ammarpad (talk) 20:13, 4 November 2023 (UTC)

MediaWiki Editor extension

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


Hi. I noticed that the support for the TinyMCE extension https://www.mediawiki.org/wiki/Extension:TinyMCE has been dropped, the last update for this extension is from May 2021, there is no support on the Talk page for this extension, users are not receiving responses. I would like to use the Templates function in this extension, but this function does not work for me, the message "No templates defined" appears. So I would like advice on how to set up these templates, but support for this extension does not exist.

I would like to know if there are other editor extensions for MediaWiki? Except VisualEditor. Monocero (talk) 10:35, 5 November 2023 (UTC)

Seriously, there is no other WYSIWYG editor extension besides VisualEditor and TinyMCE? Monocero (talk) 10:32, 7 November 2023 (UTC)
I think that is correct. Jonathan3 (talk) 10:37, 7 November 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Creating a table

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


Hi. Is it possible to insert such a table into MediaWiki?

https://images92.fotosik.pl/694/5dfb09879c058ac8.png Monocero (talk) 13:08, 5 November 2023 (UTC)

I don't see why not. ( You'd have to check the original tables structure/markup though) Malyacko (talk) 14:54, 6 November 2023 (UTC)
Okay, I know this is a simple table created using HTML. Monocero (talk) 10:30, 7 November 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

google domains is tipping me off

so i have a server that i run my website on, and also my new wiki, which is on port 1010

i use google domains for my website and i cant figure out how to make my servers ip

and port go to wiki.mywebsite.example for example, every where online doesn't help me at

all. help me 2601:447:C080:8820:CCD1:1531:3C92:59B4 (talk) 17:57, 5 November 2023 (UTC)

Timeless CSS glitch

We recently have moved our wiki (Hollow Knight) from Fandom to semi-independent and we're having an annoying bug with the Timeless skin in which it seems that, on rare cases, the CSS will load incorrectly, making the page have missing styles such as white backgrounds with white text, making the page unreadable. Some users came to our Discord reporting it and we can't pinpoint the cause of it, so I think someone here could give us a hand with it.

We haven't tested this issue in the desktop skin (Vector) yet, so we don't know if that happens in that skin as well.

To quickly replicate the issue, I recommend following these steps:

  1. Copy this link: https://hollowknight.wiki/w/Special:Random?mobileaction=toggle_view_mobile
  2. Open Firefox.
  3. Open an Incognito window (CTRL + SHIFT + P).
  4. Open Devtools (CTRL + SHIFT + E to open in the Network Tab).
  5. Focus the search bar (CTRL + L).
  6. Paste the link (CTRL + V).
  7. If the glitch doesn't happen, close the Incognito Window (CTRL + W) and repeat steps 3 and onwards. It only happens rarely and, seemingly, randomly.

Once I got the glitch, some stuff I found out is that Mobile.css is loaded "correctly", however, some bits of it are missing (such as the CSS that properly stylizes the wiki's backgrounds), and it includes a bunch of CSS from Common.css (which shouldn't happen as we aren't importing it neither with CSS or JS and MobileFrontend seems to ignore it). No errors were logged in the Console regarding this issue.

I then replicated the glitch again and the file size of the glitched CSS changed from 113kb to 117kb.

I also logged my findings in the wiki's #wiki-issues channel on Discord. Any help is appreciated! 2803:9800:9018:B45C:81D2:D8FD:3432:B818 (talk) 22:52, 6 November 2023 (UTC)

Changes or edits are not email to users.

After we have upgraded to 1.39.3 , the wiki edits and changes are not email to users. We don't see any error at logs and debug logs.


We can send email by "Special:EmailUser" so the email functionality works. It just that the edits and changes are not being email to users. 180.74.65.65 (talk) 03:43, 7 November 2023 (UTC)

retrieve username

the clear instructions about loggin in say there will be a place to retrieve username but there is not 184.83.49.111 (talk) 15:34, 7 November 2023 (UTC)

Interpretting profiler output, speed problems

I've got a private wiki that suddenly takes forever (~20s) to load any page and I'm trying to figure out why. I'd love any help, as I'm new to interpreting the profiler.


Here's where the profiler starts to show big jumps:

Profiler output
100.00% 14736.119      1 - main()
99.67% 14687.205      1 - wfIndexMain
99.65% 14685.058      1 - MediaWiki::run
99.65% 14685.057      1 - MediaWiki::main
97.60% 14382.914   1393 - Message::format
97.44% 14358.851   1368 - Message::text
96.74% 14255.530   2065 - Message::fetchMessage
96.69% 14248.556   1979 - MessageCache::get
96.60% 14235.775   1979 - MessageCache::getMessageFromFallbackChain
96.60% 14234.732   2037 - MessageCache::getMessageForLang
96.05% 14154.359      2 - MediaWiki::getTitle
96.05% 14154.346      1 - MediaWiki::parseTitle
95.67% 14098.676    417 - Wikimedia\Rdbms\DBConnRef::ensureConnection
95.67% 14098.432    200 - Wikimedia\Rdbms\LoadBalancer::getConnectionInternal
95.65% 14095.806    201 - Wikimedia\Rdbms\LoadBalancer::getServerConnection
95.61% 14089.591    201 - Wikimedia\Rdbms\LoadBalancer::getLocalConnection
95.59% 14085.640      2 - Wikimedia\Rdbms\LoadBalancer::reallyOpenConnection
95.48% 14069.712      2 - Wikimedia\Rdbms\Database::initConnection
95.48% 14069.707      2 - Wikimedia\Rdbms\Database::doInitConnection
95.48% 14069.703      2 - Wikimedia\Rdbms\DatabaseMysqlBase::open
95.46% 14067.428      2 - Wikimedia\Rdbms\DatabaseMysqli::mysqlConnect
95.46% 14067.341      2 - mysqli::real_connect
68.66% 10118.504    410 - Wikimedia\Rdbms\DBConnRef::__call
68.45% 10086.798    106 - LCStoreDB::get
68.42% 10082.557   2330 - LocalisationCache::getSubitem
68.42% 10082.070    107 - Wikimedia\Rdbms\DBConnRef::selectField
68.42% 10081.771     91 - LocalisationCache::loadSubitem
68.18% 10047.482     92 - MediaWikiTitleCodec::splitTitleString
68.17% 10045.696     41 - Title::secureAndSplit
68.15% 10042.787      2 - MediaWikiTitleCodec::{closure}
68.15% 10042.541      2 - MalformedTitleException::__construct
68.15% 10042.340      1 - Title::newFromURL
68.14% 10041.236   2037 - Language::getMessage
68.12% 10038.324      1 - LocalisationCache::initLanguage
68.12% 10037.720      1 - LocalisationCache::isExpired
28.42% 4188.584   1977 - MessageCache::getMsgFromNamespace
27.93% 4116.172   1977 - MessageCache::load
27.91% 4112.234      7 - Title::newMainPage
27.90% 4111.782      1 - MessageCache::loadUnguarded
27.56% 4061.835      2 - SqlBagOStuff::doGet
27.56% 4061.577      2 - SqlBagOStuff::fetchBlobs
27.54% 4058.739      7 - SqlBagOStuff::getConnection
27.54% 4058.728      7 - SqlBagOStuff::getConnectionViaLoadBalancer
 2.36% 348.093      1 - OutputPage::output
 2.28% 335.464      1 - SkinTemplate::outputPage
 2.28% 335.367      1 - SkinTemplate::generateHTML
 1.27% 187.756      1 - OutputPage::tailElement
 1.27% 187.214      1 - MWDebug::getDebugHTML
 1.26% 185.706      1 - MWDebug::getDebugInfo
 1.24% 182.302      1 - MWDebug::getFilesIncluded

Thanks! Realsalt (talk) 19:52, 7 November 2023 (UTC)

It looks like it is trying to rebuild your messages cache, and you are using the database as your cache.
This is probably because you don't have a writable $wgCacheDirectory set, and as a fallback the Manual:$wgLocalisationCacheConf will then use the database, which isn't too efficient. —TheDJ (Not WMF) (talkcontribs) 11:09, 8 November 2023 (UTC)
Thanks @TheDJ. I fixed that and learned something! Still slow. Those cache messages aren't present anymore. Seems like something around the SQL connection? Not sure where I go from there though.
You'll note the big jumps at 10 and 20 seconds, which has been kind of consistent throughout all of this. As part of this troubleshooting, we did do a needed SQL server upgrade and did find that some sql related commands I previously had on this device were mysteriously absent (like they didn't make it through a server upgrade for example). Right now on this Ubuntu VM we have:
  • libdbd-mysql-perl/jammy-updates,jammy-security,now 4.050-5ubuntu0.22.04.1 amd64 [installed]
  • libmysqlclient21/jammy-updates,jammy-security,now 8.0.35-0ubuntu0.22.04.1 amd64 [installed,automatic]
  • mysql-client-core-8.0/jammy-updates,jammy-security,now 8.0.35-0ubuntu0.22.04.1 amd64 [installed]
  • mysql-common/jammy,jammy,now 5.8+1.0.8 all [installed]
  • php-mysql/jammy,jammy,now 2:8.1+92ubuntu1 all [installed]
  • php8.1-mysql/jammy-updates,jammy-security,now 8.1.2-1ubuntu2.14 amd64 [installed,automatic]
Profiler output
100.00% 20834.841 1 - main()
96.20% 20042.889 677 - Wikimedia\Rdbms\DBConnRef::ensureConnection
96.20% 20042.405 364 - Wikimedia\Rdbms\LoadBalancer::getConnectionInternal
96.17% 20037.151 365 - Wikimedia\Rdbms\LoadBalancer::getServerConnection
96.13% 20029.148 365 - Wikimedia\Rdbms\LoadBalancer::getLocalConnection
96.10% 20021.950 2 - Wikimedia\Rdbms\LoadBalancer::reallyOpenConnection
96.10% 20021.512 2 - Wikimedia\Rdbms\Database::initConnection
96.10% 20021.507 2 - Wikimedia\Rdbms\Database::doInitConnection
96.10% 20021.501 2 - Wikimedia\Rdbms\DatabaseMysqlBase::open
96.09% 20020.182 2 - Wikimedia\Rdbms\DatabaseMysqli::mysqlConnect
96.09% 20020.109 2 - mysqli::real_connect
51.92% 10817.715 1 - wfIndexMain
51.92% 10817.694 1 - MediaWiki::run
51.92% 10817.692 1 - MediaWiki::main
49.76% 10367.255 1 - OutputPage::output
49.74% 10363.855 1 - SkinTemplate::outputPage
49.74% 10362.839 1 - SkinTemplate::generateHTML
48.73% 10152.532 222 - WANObjectCache::getWithSetCallback
48.73% 10152.006 207 - WANObjectCache::fetchOrRegenerate
48.71% 10147.858 675 - Wikimedia\Rdbms\DBConnRef::__call
48.63% 10131.042 1 - SkinTemplate::prepareQuickTemplate
48.52% 10109.152 2 - SkinTemplate::getPortletsTemplateData
48.49% 10102.400 1 - Skin::getCategories
48.49% 10102.356 1 - SkinTemplate::getCategoryLinks
48.48% 10100.131 1340 - MediaWiki\HookContainer\HookContainer::callLegacyHook
48.27% 10057.248 102 - User::load
48.20% 10042.558 3 - SkinTemplate::buildContentNavigationUrlsInternal
48.16% 10034.171 1 - SkinTemplate::runOnSkinTemplateNavigationHooks
48.16% 10034.154 1 - MediaWiki\HookContainer\HookRunner::onSkinTemplateNavigation__Universal
48.15% 10032.991 1 - MediaWiki\Extension\Notifications\Hooks::onSkinTemplateNavigationUniversal
48.11% 10024.461 184 - Wikimedia\Rdbms\Database::getCacheSetOptions
48.11% 10023.159 184 - Wikimedia\Rdbms\DBConnRef::getSessionLagStatus
48.08% 10017.120 28 - WebRequest::getSession
48.07% 10015.262 3 - MediaWiki\Session\SessionManager::getGlobalSession
48.07% 10015.242 1 - MediaWiki\Session\SessionManager::getSessionForRequest
48.07% 10015.227 3 - User::{closure}
48.07% 10015.072 1 - MediaWiki\Session\SessionManager::getSessionInfoForRequest
48.07% 10014.638 1 - MediaWiki\Session\CookieSessionProvider::provideSessionInfo
48.07% 10014.566 1 - MediaWiki\Session\UserInfo::newFromId
48.07% 10014.424 3 - User::loadFromId
48.07% 10014.394 3 - User::loadFromCache
48.06% 10013.165 2 - EchoSeenTime::getTime
48.06% 10012.843 4 - CachedBagOStuff::get
48.06% 10012.842 6 - BagOStuff::proxyCall
48.06% 10012.734 2 - ReplicatedBagOStuff::get
48.06% 10012.719 2 - BagOStuff::proxyCall@1
48.06% 10012.677 2 - SqlBagOStuff::doGet
48.06% 10012.624 2 - SqlBagOStuff::fetchBlobs
48.05% 10011.048 2 - SqlBagOStuff::getConnection
48.05% 10011.044 2 - SqlBagOStuff::getConnectionViaLoadBalancer
2.14% 444.849 1 - MediaWiki::performRequest
1.87% 390.423 1 - MediaWiki::performAction
1.87% 389.892 1 - ViewAction::show
1.87% 389.870 1 - Article::view
.....omitted...
Realsalt (talk) 20:21, 8 November 2023 (UTC)
Well…what if you connect to the MySQL service without mediawiki, but with a random other client. How does it behave then ? —TheDJ (Not WMF) (talkcontribs) 20:42, 8 November 2023 (UTC)
The fact that mysqli::real_connect is taking almost exactly 10 seconds per call suggests a timeout is being reached since that is a suspiciously round number. It does sound like some sort of configuration issue, probably outside of mddiawiki. Bawolff (talk) 21:44, 8 November 2023 (UTC)

Can't access database after moving to a new install of Xampp

Since I probably won't get help for my mysql issue, I tried to move my MediaWiki to a fresh install of xampp, but now I get this "can't access database" error. I have no idea how to fix it. I transferred both the wiki folder and data folder in the mysql folder, but I still get this strange issue. I could go back, but then I get the "Can't open and lock privilege tables: Can't find file" "file servers.MAI" error. I have no idea what to do to fix this.

I tried to transfer files from one folder to the other, even the copies of files in certain folders from the old version.

error message;

(Cannot access the database)

Backtrace:

#0 D:\xampp\htdocs\wiki\includes\libs\rdbms\loadbalancer\LoadBalancer.php(934): Wikimedia\Rdbms\LoadBalancer->reportConnectionError()

#1 D:\xampp\htdocs\wiki\includes\libs\rdbms\loadbalancer\LoadBalancer.php(901): Wikimedia\Rdbms\LoadBalancer->getServerConnection(0, 'my_custem_story...', 0)

#2 D:\xampp\htdocs\wiki\includes\libs\rdbms\loadbalancer\LoadBalancer.php(1046): Wikimedia\Rdbms\LoadBalancer->getConnection(-1, Array, 'my_custem_story...', 0)

#3 D:\xampp\htdocs\wiki\includes\GlobalFunctions.php(2469): Wikimedia\Rdbms\LoadBalancer->getMaintenanceConnectionRef(-1, Array, 'my_custem_story...')

#4 D:\xampp\htdocs\wiki\includes\user\User.php(477): wfGetDB(-1)

#5 D:\xampp\htdocs\wiki\includes\libs\objectcache\wancache\WANObjectCache.php(1529): User->{closure}(false, 3600, Array, NULL, Array)

#6 D:\xampp\htdocs\wiki\includes\libs\objectcache\wancache\WANObjectCache.php(1376): WANObjectCache->fetchOrRegenerate('global:user:id:...', 3600, Object(Closure), Array, Array)

#7 D:\xampp\htdocs\wiki\includes\user\User.php(510): WANObjectCache->getWithSetCallback('global:user:id:...', 3600, Object(Closure), Array)

#8 D:\xampp\htdocs\wiki\includes\user\User.php(421): User->loadFromCache()

#9 D:\xampp\htdocs\wiki\includes\user\User.php(357): User->loadFromId(0)

#10 D:\xampp\htdocs\wiki\includes\session\UserInfo.php(89): User->load()

#11 D:\xampp\htdocs\wiki\includes\session\CookieSessionProvider.php(129): MediaWiki\Session\UserInfo::newFromId('1')

#12 D:\xampp\htdocs\wiki\includes\session\SessionManager.php(492): MediaWiki\Session\CookieSessionProvider->provideSessionInfo(Object(WebRequest))

#13 D:\xampp\htdocs\wiki\includes\session\SessionManager.php(215): MediaWiki\Session\SessionManager->getSessionInfoForRequest(Object(WebRequest))

#14 D:\xampp\htdocs\wiki\includes\WebRequest.php(826): MediaWiki\Session\SessionManager->getSessionForRequest(Object(WebRequest))

#15 D:\xampp\htdocs\wiki\includes\session\SessionManager.php(137): WebRequest->getSession()

#16 D:\xampp\htdocs\wiki\includes\Setup.php(726): MediaWiki\Session\SessionManager::getGlobalSession()

#17 D:\xampp\htdocs\wiki\includes\WebStart.php(89): require_once('D:\xampp\htdocs...')

#18 D:\xampp\htdocs\wiki\index.php(44): require('D:\xampp\htdocs...')

#19 {main} Dark gundam (talk) 02:58, 8 November 2023 (UTC)

How to remove 'Cite this page' from sidebar?

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


I have a new 'Cite the Page' link on my sidebar and have no idea what is causing this -


Example:

MediaWiki Sidebar example with 'Cite this page' at bottom


Where does this come from? I can't find it in my sidebar -

Sidebar source from Example above


And this doesn't show up for MediaWiki pages (e.g. sidebar or all pages), where is this coming from for my custom pages? Can this be removed? 74.141.238.173 (talk) 19:59, 8 November 2023 (UTC)

It likely comes from Extension:CiteThisPageTheDJ (Not WMF) (talkcontribs) 20:38, 8 November 2023 (UTC)
Success!!! Thank you @TheDJ removing this from LocalSettings.php cleaned it up quick
Thank you  :) 74.141.238.173 (talk) 20:57, 8 November 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Change Page Title In Database

I'm trying to update my page titles using UPDATE in my mysql database. After I run the update and visit the page, I can see that the title has changed in the url, but it does not change on the page.

For example, moving the page "Test Page" to "Test Page Moved" only updates the url to mediawikisite/Test_Page_Moved, but the "Test Page" is still present on screen.

Query I used was small one along the lines of:

Update

set page_title = "Test Page Moved"

where page_title = "Test Page"

and page_namespace = 0


Is there a way to update my query to achieve this, or maybe another query for creating a redirect? Appreciate any info or advice! DrpepperUser (talk) 22:49, 9 November 2023 (UTC)

@DrpepperUser: Generally, it's not a good idea to directly modify the database like this. What are you trying to do? It's almost always better to use the API to make changes like this, if you're trying to script it. Sam Wilson 01:01, 10 November 2023 (UTC)
@Samwilson We are moving our pages into another system and we want to show when a page has been moved on our wiki page. If the page is "Test Page" then we want it to be represented by renaming is "Test Page_Moved To (Other System)," or something along those lines/
I initially tried moving the page using the API, but no matter where I generate a token, it always seems to be invalid when I check it (through API). I have moved a page using the UI and taken the token from there and tried to use it in the API and it has not worked, always invalid token. For both login and csrf. That's why I tried to find another route and looked into database side. DrpepperUser (talk) 15:37, 13 November 2023 (UTC)

getting the csrf token returns +\\\\

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 running this code:


import requests

import json

url = "https://en.wikipedia.org/w/api.php?action=clientlogin&format=json&formatversion=2"

urltoken = "https://en.wikipedia.org/w/api.php?action=query&meta=tokens&format=json&formatversion=2"

token = requests.get(urltoken)

print(token.content)

#token = json.loads(token.text)

datajsonbad = {

    "logintoken": token.text

}

datajson = json.dumps(datajsonbad)

x = requests.post(f"https://en.wikipedia.org/w/api.php?action=clientlogin&format=json&formatversion=2",json = datajson)

print(x.text) Fizz fam (talk) 04:07, 10 November 2023 (UTC)

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

Docu on Manual:$wgLanguageCode wrong

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.


The suggested code echo 'MessageCache::singleton()->clear()' | php maintenance/eval.php gives me the error message

Error: Call to undefined method MessageCache::singleton()
Backtrace:
from maintenance/eval.php(85) : eval()'d code(1)
#0 maintenance/eval.php(85): eval()
#1 {main}
on MediaWiki 1.39
Krabina (talk) 07:40, 10 November 2023 (UTC)
The method has been deprecated and removed. I updated the doc. – Ammarpad (talk) 08:15, 10 November 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

DBPedia Ontology service unavailable

Hi,

I am a beginner trying to understand DBPedia's ontology. However, I am unable to view or download the classes in the latest ontology, as I get "503: service unavailable" or "broken link" error. Can someone please tell me the correct links to download the ontology?

Thanks! Isha522 (talk) 16:16, 10 November 2023 (UTC)

Hi, please ask the DBPedia people about this. We are a separate organization from them. Bawolff (talk) 17:53, 10 November 2023 (UTC)

Help about Wikistats

Hello! Sorry in advance if this is not the right place to ask this question.

Is there a way to transclude the infoboxes of Wikistats?

I wanted to transclude the one about pageviews by country on here in my homewiki's main page. Any way to achieve that? If not, what would be the best way to request that as a feature? Klein Muçi (talk) 16:42, 10 November 2023 (UTC)

Basically no.
Some people used to the graph extension for this but it no longer works.
Lots of communities run bots to automatically update templates with page view data. Bawolff (talk) 17:51, 10 November 2023 (UTC)
@Bawolff, thank you for the fast answer! Any global bots for that? Any local examples? Klein Muçi (talk) 17:55, 10 November 2023 (UTC)

Help about translations

In cases of incorrect translations, when one tries to revert it, they cannot edit the page, instead it displays the source of the page. Is there's a way to revert these vandalistic translations. Observed this on Wikidata and mediawiki.org. ToadetteEdit (talk) 09:21, 11 November 2023 (UTC)
@ToadetteEdit Answer is hard to generalize without specific links and examples. If you do not refer to content translated via https://translatewiki.net/, then you likely need to gain more permissions to be able to edit.
Also, if you refer to Wikimedia websites, then https://meta.wikimedia.org/wiki/Tech looks like a better place to bring up your question, as this support desk is about using MediaWiki in general. Malyacko (talk) 14:58, 11 November 2023 (UTC)
OK, thank you for the advice. ToadetteEdit (talk) 17:51, 11 November 2023 (UTC)

Database error after entering Page values

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


Hi. I noticed some errors on my MediaWiki. After entering the Special pages link, I get this error:

Internal error [e15b30ae6647d0540bccf23a] 2023-11-12 08:54:07: Fatal exception of type "TypeError"

https://i.imgur.com/4fZCrqt.png

When I click on Page values ​​I get this error:

Database error A database query error has occurred. This may indicate a bug in the software. [e357cfd5e98a9706445cb607] 2023-11-12 08:55:35: Fatal exception of type "Wikimedia\Rdbms\DBQueryError"

https://i.imgur.com/74HzmLH.png

How can I fix it? Monocero (talk) 08:59, 12 November 2023 (UTC)

Please follow "Post a new question" in the sidebar. Please see Manual:How to debug. Malyacko (talk) 13:21, 12 November 2023 (UTC)
Okay, I did it. I hope I did it correctly. Monocero (talk) 16:51, 12 November 2023 (UTC)
Here is a thread about this error:
https://www.mediawiki.org/wiki/Project%3ASupport%20desk/Flow/2023/11#h-The_Special_pages_is_not_working-20231112165100 Monocero (talk) 20:24, 12 November 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

The Special pages is not working

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


After entering Special pages, I get the error:

[3b04bdff0c826c43cd0972bb] 2023-11-12 16:46:21: Fatal exception of type "TypeError"

I added these commands to the LocalSettings.php file to enable the Debug console:

$wgDebugToolbar = true; $wgShowDebug = true; $wgDevelopmentWarnings = true; $wgDebugComments = true; $wgDebugDumpSql = true; $wgShowSQLErrors = true; $wgShowDBErrorBacktrace = true;

Errors:

[error] [3b04bdff0c826c43cd0972bb] /golarzopedia/index.php/Specjalna:Strony_specjalne PHP Deprecated: Accessing $wgHooks directly is deprecated, use HookContainer::getHandlers() or HookContainer::register() instead. [Called from PFHooks::initialize]

[exception] [3b04bdff0c826c43cd0972bb] /golarzopedia/index.php/Specjalna:Strony_specjalne TypeError: Argument 1 passed to SpecialRenameuser::__construct() must implement interface Wikimedia\Rdbms\IConnectionProvider, instance of MediaWiki\HookContainer\HookContainer given, called in /home/xxxx/xxxx/golarze.pl/golarzopedia/vendor/wikimedia/object-factory/src/ObjectFactory.php on line 240

And I noticed something else:

[rdbms] SqlBagOStuff::modifyTableSpecificBlobsForSet [0s] localhost: REPLACE INTO `objectcache` (keyname,value,exptime) VALUES ('WANCache:global:user:id:12367_wiki:2|#|i','e�;n�0�����\"iZ�/͐��:���\"ˉ��.l�-����xH:�\"?>>�t��-Z�D�Ŝ���ْ��{+��͜�D��� ��V|��1I�\n�&����]��\0Rt�~���1k�?�Yשh?^�)�����%�\0 ԕ�z����a��%n bu��+�\"������i�ʘ��(������%z��Rd�H�UTX��X5r�jM��� C+��jN|o������w���� �LE���c���-q���J�b^����8=�@�=_�aԴi��h���\r�b�LJp>�j�?','20231112164944') Monocero (talk) 16:51, 12 November 2023 (UTC)

You need to use a different version of renameuser extension or not use it at all since newer versions of mediawiki have it builtin. Bawolff (talk) 18:56, 12 November 2023 (UTC)
You are right. But that extension came with some version of MediaWiki. This is the full list of extensions that are loaded by MediaWiki:
The following extensions were automatically enabled:
wfLoadExtension( 'CategoryTree' );
wfLoadExtension( 'Cite' );
wfLoadExtension( 'CiteThisPage' );
wfLoadExtension( 'CodeEditor' );
wfLoadExtension( 'ConfirmEdit' );
wfLoadExtension( 'Gadgets' );
wfLoadExtension( 'ImageMap' );
wfLoadExtension( 'InputBox' );
wfLoadExtension( 'Interwiki' );
wfLoadExtension( 'LocalisationUpdate' );
wfLoadExtension( 'MultimediaViewer' );
wfLoadExtension( 'Nuke' );
wfLoadExtension( 'OATHAuth' );
wfLoadExtension( 'ParserFunctions' );
wfLoadExtension( 'PdfHandler' );
wfLoadExtension( 'Poem' );
wfLoadExtension( 'Renameuser' );
wfLoadExtension( 'ReplaceText' );
wfLoadExtension( 'SpamBlacklist' );
wfLoadExtension( 'SyntaxHighlight_GeSHi' );
wfLoadExtension( 'TitleBlacklist' );
wfLoadExtension( 'WikiEditor' );
So how I removed this code:
wfLoadExtension( 'Renameuser' );
The "Special Pages" page now works properly and does not receive this error.
So should I remove this extension from the extensions directory? MediaWiki has this feature built in, right? Monocero (talk) 20:12, 12 November 2023 (UTC)
If you updated your version of mediawiki, but kept the version of extensions that came with a previous version of mediawiki, it can cause problems.
Renameuser used to be a separate extension, but recently it was decided to make it built-in to mediawiki. Bawolff (talk) 20:30, 12 November 2023 (UTC)
Yes, I updated my mediawiki to the latest version. So I'm removing this extension since it's unnecessary. Thank you for your help. Monocero (talk) 20:33, 12 November 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Florida Map has wrong county

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.


Collier County Florida is the county south of the one on this map:

File:Map of Florida highlighting Collier County.svg - Wikimedia Commons Kmccook (talk) 03:50, 13 November 2023 (UTC)

The one below is Monroe isn't it ? Also, this should be handled at Commons or en.wp. There isn't much we can do at the software level for a content issue like this. —TheDJ (Not WMF) (talkcontribs) 09:34, 13 November 2023 (UTC)
I think the 10,000 islands are split between Monroe and Collier so maybe it is ok. Kmccook (talk) 12:24, 13 November 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

We tried all sorts of ways to remove links in the footer, but non worked. 2003:E9:5F26:3601:803:761A:3DC9:4949 (talk) 09:38, 13 November 2023 (UTC)

We tried this extension: Extension:Header Footer and this Manual:Footer#Customizing the built-in items 2003:E9:5F26:3601:803:761A:3DC9:4949 (talk) 09:40, 13 November 2023 (UTC)
Adding a link via this code worked:
$wgHooks['SkinAddFooterLinks'][] = function ( Skin $skin, string $key, array &$footerlinks ) {
    if ( $key === 'places' ) {
        $footerlinks['connect'] = Html::element( 'a', [
                'href' => Title::newFromText( 'Connect' )->getFullURL()
            ], "Connect with us" ); // Replace "Test Link" with the text you want to display.
    }
    return true; // Required to ensure further hook processing by MediaWiki
}; 2003:E9:5F26:3601:803:761A:3DC9:4949 (talk) 09:42, 13 November 2023 (UTC)
We are running MediaWiki 1.40.1 2003:E9:5F26:3601:803:761A:3DC9:4949 (talk) 09:44, 13 November 2023 (UTC)
We are using wfLoadSkin( 'MinervaNeue' );
$wgDefaultMobileSkin = 'minerva'; 2003:E9:5F26:3601:803:761A:3DC9:4949 (talk) 09:49, 13 November 2023 (UTC)

Stored/saved article

Hi,

I have been saving some article on my phone and reach them anytime on menu (saved).

But ın the browser ı couldnt find the saved article. Could you please help me out to find where the saved articles on the web browser? Thanks. Onur.gul.1903 (talk) 10:17, 13 November 2023 (UTC)

I am afraid you cannot. Malyacko (talk) 12:01, 13 November 2023 (UTC)

Extensions compatible with Extension:LockAuthor

LockAuthor prevents users from editing pages they haven't created.

But is there any permission management extension that is compatible with it and allows individual users to have the right to edit the page as well?

Or giving individual users the creator/owner right of a page they didn't create. Rdm15000 (talk) 12:04, 13 November 2023 (UTC)

Database server error after installing a second wiki

Hi,

I have run a personal wiki on my site for quite a few years now for a project.

Because it was really good for me, I wanted to install a second wiki and (foolishly) insalled a second wiki on the same domain (but in a different subfolder).

The old wiki was running on version 1.23.3, the new installation was a 1.36.2 version.

For installation, I was just using my hoster's software site for installation.

The new wiki installed fine, but immediately the old site went off and now gives an "Internal error (Cannot contact the database server)".

I tried uninstalling the new wiki and also ran a restore on my databases (I did a backup on them right before the installation), but the error persists.

What did the second installation do to the first one and how can I reverse it? Rhadan (talk) 12:38, 13 November 2023 (UTC)

Unable to upload file through upload dialog

Hello,

I am trying to upload using the upload dialog while editing the wiki page. but it says "You don't have permission to upload this file.". But I am able to upload files using the Special:Upload page and embed it in page. But it will be easy to have the upload option within the editor.

What permissions to be enabled to have this option ?

Mediawiki Verison: 1.39.4

WikiEditor 0.5.3


Thanks

GT Testergt1302 (talk) 13:48, 13 November 2023 (UTC)

Password reset without email

Hi all, is there a way to do a password reset for a user who can't remember their password without using the email reset? Waterlooglass (talk) 17:42, 13 November 2023 (UTC)

Manual:Resetting passwordsTheDJ (Not WMF) (talkcontribs) 21:50, 13 November 2023 (UTC)
Apologies, I mean through the mediawiki gui interface Waterlooglass (talk) 14:21, 14 November 2023 (UTC)
No.
It would need a custom extension Bawolff (talk) 18:11, 14 November 2023 (UTC)

禁止游客访问 但是注册页面也无法访问

设置$wgGroupPermissions['*']['CreateAccount'] = true;不生效 LianYixiang (talk) 06:11, 14 November 2023 (UTC)

It is case sensitive and must be lowercase. 区分大小写
$wgGroupPermissions['*']['createaccount'] = true;
Verify by looking at Special:ListGroupRights on your wiki.
通过查看 wiki 上的“Special:ListGroupRights”进行验证。 Bawolff (talk) 18:16, 14 November 2023 (UTC)

[22c3c95fc9420034ff3e635f] 2023-11-14 13:23:55: Fataler Ausnahmefehler des Typs „TypeError“

Wir bekommen diese Fehlermeldung:

[22c3c95fc9420034ff3e635f] 2023-11-14 13:23:55: Fataler Ausnahmefehler des Typs „TypeError“ und können nichts mehr bearbeiten. Kennt jemand die Lösung des Problems? 134.102.43.133 (talk) 13:27, 14 November 2023 (UTC)

Please set $wgShowExceptionDetails = true; Bawolff (talk) 18:11, 14 November 2023 (UTC)

auto-archiving bot

Which bot is used for auto-archiving topics on a Talk Page? Thanks. Rootsmusic (talk) 16:23, 14 November 2023 (UTC)

плтавыяямтьюэ 37.44.65.155 (talk) 17:40, 14 November 2023 (UTC)

Problem with german umlauts (ä,ö,...) after updating to newer version.

I tried updating my mediawiki from 1.31 to 1.35. After that, pages with german umlauts (like ä) in the title will not be shown anymore. After some tests i found, that the problem comes from update 1.32 -> 1.33. Has anyone an idea for that problem? Borni110 (talk) 16:50, 14 November 2023 (UTC)

MediaWiki hasn't changed anything related to that in a long time, are you sure that the umlauts are the common denominator.
A common issue with the 1.35 update is the actor upgrade being buggy. Often can be fixed by running manual:cleanupUsersWithNoIds.php followed by migrateActors.php but it can be complicated sometimes (sometimes it helps to run it at a specific stage in the update process).
If it really is a problem with only accented characters, check encoding of data in page.page_title, but nothing has changed that would affect that. Bawolff (talk) 18:09, 14 November 2023 (UTC)
I have tested if there are changes in database for page_titles. It isnt. It seems to be a problem in the Webfrontend. If i try to serach to missing pages, then i see that mediawiki find the pages in search index, but search shows someting like that:
Schnell�bersicht Serverinstallation
If i change the page_title in database from ä -> ae, it ist possible to see the page in Mediawiki.
Any suggestions, which configuration problem this could be? Borni110 (talk) 07:46, 15 November 2023 (UTC)
This sounds like a charset issue in your DB. It seems likely that somehow your database got converted from utf-8 to ISO-8859-1, but i have no idea how. Have you recently updated your version of mysql/mariadb or restored the database from a backup? It is unlikely that mediawiki update script caused this by itself.
Can you check the charset setting for that table (reccomended value is binary).
https://mysql.rjweb.org/doc.php/charcoll might have some useful advice. Bawolff (talk) 19:03, 15 November 2023 (UTC)
I have transferd the database at Mediawiki 1.32 from Ubuntu 18.04 to a new Ubuntu 22.04. Then i have updated to Mediawiki 1.35, after that to 1.39. After the last update, the value in page_title for text with umlauts were defect, no text, only numbers. i solved this by manual updating each defect page_title directly in the database (looked up in the old database in Ubuntu 18.04). Now it works for me. Borni110 (talk) 22:36, 15 November 2023 (UTC)

Approval for new page creaion

Is there a way to create an approval flow that will allow Admins to approval the creation of a page before it is published? Waterlooglass (talk) 18:21, 14 November 2023 (UTC)

Something like Extension:Approved Revs maybe or one of the extensions in the "See also" section there. Jonathan3 (talk) 22:25, 15 November 2023 (UTC)

Suggestion for

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


Hello,

I am interested in creating a MediaWiki page for <redacted>, a website dedicated to cryptocurrency guides and reviews. Could you please provide guidance on the steps to move forward with this? Additionally, I would like to inquire about the acceptance criteria for creating such a page on MediaWiki.

Thank you for your assistance. Andreabitcoin (talk) 22:05, 14 November 2023 (UTC)

Project:About Clump (talk) 22:18, 14 November 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

how to restore previous bullets separator in language navigation box ?

Hi all , this evening I have observed new 'moons' appearing in the language navigation menu of the pages (according to percentage of translations) . They are too proeminent and i prefer the previous dots. What are CSS rules for that ? ... if possible. Thanks. -- Christian 🇫🇷 FR (talk) 22:39, 14 November 2023 (UTC)

I have no idea what you are talking about ;) —TheDJ (Not WMF) (talkcontribs) 19:06, 15 November 2023 (UTC)
I think he means the Languages box at the top of pages like Manual:FAQ. Jonathan3 (talk) 22:25, 15 November 2023 (UTC)
Previous indicators were images which we removed from Translate in favor of pure CSS solution. Not sure if those images are on Commons. Nikerabbit (talk) 08:05, 17 November 2023 (UTC)
They are: c:Category:TouzaxA square charts. You didn’t provide attribution in the revision comment, but based on the dates, I think the images were actually from Commons. Tacsipacsi (talk) 10:01, 18 November 2023 (UTC)
Shame on me for not providing attribution. Nikerabbit (talk) 12:54, 20 November 2023 (UTC)
They’re PD/CC0, so attribution wasn’t legally required, you don’t have to shame for not providing it; it just would have helped finding the images on Commons now, fifteen years later. Tacsipacsi (talk) 21:13, 21 November 2023 (UTC)
Nice, so it should be easy to get a user CSS rule to substitue globally the moons by a user char, and eventually nothing, since the link is held already in the language name. Rotation is done generally by the user on only a few languages: his native one and fallback on En or other, so that the percentaged moons are useful to only specific users, for stats or other. --Christian 🇫🇷 FR (talk) 09:13, 17 November 2023 (UTC)

Space in mw-parser-output

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


Hi

On the file description page, we use a template for the various attributes of the images. This contains the "Beschreibung" field and is not required. In the includeonly this field is queried with an if condition and hidden if empty.

This works so far, but when de field "Beschreibung" is empty then a space is inserted above the template in the class "mw-parser-output" with two p br tags. Example: https://wiki-egnach.ch/wiki/Datei:Winden_Daheim_1965.jpg

With description there is no spacing. Example:https://wiki-egnach.ch/wiki/Datei:Winden_Gasthaus_Bahnhof_1912.jpg

A similar problem was discussed here years ago, but it should be solved.

Why is the space inserted and how can this be prevented?

Thanks

Mediawiki 1.40.1 MariaDB 10.6.15 PHP 8.1.25 Skin Timeless 0.9.1

(translated with Deepl) HP932 (talk) 14:08, 15 November 2023 (UTC)

https://wiki-egnach.ch/w/index.php?title=Vorlage:Bildinformationen&action=edit
This is because you use {{#if. That just removes the text, but the surrounding whitespace of your template and especialy the |- are still there and will still be inserted.
Whitespace, and having elements at the start of a line, matter in wikicode. The way to do this, therefore is something like this: https://phabricator.wikimedia.org/P53489
Note that this is proper unreadable to most people. That's why generally wikipedia editors will use html table syntax instead of wikicode table syntax. Or even better they use Scribunto, which provides an actual programming language to procedurally generate code. —TheDJ (Not WMF) (talkcontribs) 19:05, 15 November 2023 (UTC)
Hi TheDJ
Thank you for the explanation and the code. Yes, it is getting very confusing.
I need to take a closer look at Scribunto. HP932 (talk) 07:07, 16 November 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to getting oauth credentials !

Where can I get oauth2 credentials like client id and client secret , refresh token url , access token url and authorisation url ? 2401:4900:22C0:3359:B944:510C:4629:2CE4 (talk) 18:30, 15 November 2023 (UTC)

Can you please provide some context ? —TheDJ (Not WMF) (talkcontribs) 18:46, 15 November 2023 (UTC)

Do NOT redirect

Hello,


I have an older Mediawiki 1.9.3.

This is behind an nginx reverse proxy but I would like it to be reachable on 4 different ways:


1 http://originalwebserver.company.lan/wiki

2 https://originalwebserver.company.lan/wiki

3 http://wiki.company.lan/wiki (through NGINX)

4 https://wiki.company.lan/wiki (through NGINX)


Although the reverse proxy works fine it does with some caveat:


wgServer= "https://wiki.company.lan/"


If I don't define this in the Localsettings.php then the behavior through the proxy is it is going to throw me to http://wiki.company.lan/wiki which is plain http however if from this point I type the https prefix in the browser like https://wiki.company.lan/wiki then it will stay on https but from the mentioned ones SCENARIO 1,2,3 are all working and 4 with this manual adjustment.


Now if I do define the wgserver then then only SCENARIO 4 will work because it will always redirect me to the https page.


Is there a way to achieve what I need? Draxose (talk) 18:36, 15 November 2023 (UTC)

1.9.3 ???? That's 16 year old software !! —TheDJ (Not WMF) (talkcontribs) 18:45, 15 November 2023 (UTC)
You would need to detect what the current host is via $_SERVER and then set $wgServer appropriately.
You could also have nginx set an extra header for what the protocol is (x-forward-proto is common name) in order to help detect which protocol is in use
Newer versions of mediawiki also allow protocol relative urls in wgServer (e.g. //example.com ) but i dont know if that works on 1.9 Bawolff (talk) 19:05, 15 November 2023 (UTC)

Complaint

How do I file a complaint on a Wikipedia Administrator that asks money to approve a page that was previously declined?

If a page is declined then that's fine with me. But I don't think getting approved a page by paying to a Wikipedia Administrator is right.

I have printed evidence of all this. I hope we can put this to an end, since I'm an enthousiastic user and I donate on a yearly basis.

Best regards, Jakob Boelens JakobBoelens (talk) 15:03, 16 November 2023 (UTC)

@JakobBoelens this is a common scam by 3rd parties. They are not a Wikipedia Administrator, they just pretend to be one, in hopes of scamming people out of a few bucks.. Do not fall for it, don't pay them anything. They are not affiliated. —TheDJ (Not WMF) (talkcontribs) 18:41, 16 November 2023 (UTC)
Thanks for your reply. I will not pay anything, whatever the consequences.
Isn't there anything that can be done about this? JakobBoelens (talk) 22:57, 16 November 2023 (UTC)
Typically these people impersonate real people but aren't them (usually they claim to be someone who actually is an admin, but its all a lie and the person they are pretending to be has nothing to do with it). Usually they don't reveal any true information about themselves just fake information so it is very difficult to track them down. They are of course committing crimes so if anyone could figure out who they actually are, then we could go to the police, but without that there is not much that can be done.
The people who do these things are not wikipedia admins and have no power to change anything on site regardless of what they claim.
P.s. if you want to talk to someone official, you can email ca@wikimedia.org . Bawolff (talk) 07:27, 17 November 2023 (UTC)
@Bawolff Thanks for your reply. I will send an email, we need to start somewhere. JakobBoelens (talk) 09:12, 17 November 2023 (UTC)

Upload Image PHP Issue on 1.40.1

Hello, I have mediawiki version 1.40.1 installed currently and noticed message "Invalid Response From Server" is being thrown whenever upload images. When I look at the error.log I see:

[exception] [db6eb59ad71c75699d132005] /api.php   PHP Fatal Error from line 86 of /var/www/html/includes/libs/ParamValidator/Util/UploadedFile.php: Declaration of Wikimedia\ParamValidator\Util\UploadedFile::getStream() must be compatible with Psr\Http\Message\UploadedFileInterface::getStream(): Psr\Http\Message\StreamInterface#0 [internal function]: MWExceptionHandler::handleFatalError()

Downgrading does not help resolve this error. The composer.json is showing package "psr/http-message" is pinned to version 1.0.1 as part of the requirements. I tried reinstalling a new version with no change to the error. Anyone have a resolution for this?

Version in use are:

Media Wiki 1.40.1

PHP 8.1.25

ICU 72.1 Eo96 (talk) 21:34, 16 November 2023 (UTC)

Why are you installing new version (of psr/http-message I assume)? it's pinned for a reason. This problem does not occur with the pinned version. – Ammarpad (talk) 07:35, 18 November 2023 (UTC)
@Ammarpad I get this error message when using the pinned version out of the box from mediawiki. After getting this error, I was trying to see if new versions would correct it as part of troubleshooting which they did not. Eo96 (talk) 21:42, 11 December 2023 (UTC)
@Ammarpad I get this error message when using the pinned version out of the box from mediawiki. After getting this error, I was trying to see if new versions would correct it as part of troubleshooting which they did not. Eo96 (talk) 19:16, 27 November 2023 (UTC)
Also getting this issue with an out of the box install of 1.42.1. How has this persisted through multiple version of MediaWiki? 101.191.140.4 (talk) 15:05, 7 August 2024 (UTC)

wiki admin password forgotten?

Hi,

I'm the administrator of a wiki, but I forgot my password. what should I do? Dit bin ikke (talk) 16:18, 17 November 2023 (UTC)

manual:Resetting passwords Bawolff (talk) 20:25, 17 November 2023 (UTC)

what about wikienterprise.org ?

Hi all, On -> https://www.mediawiki.org/wiki/Extension:PageProperties#Demo_&_testing there is sentence "You are welcome to test the extension..." leading to -> https://wikienterprise.org/wiki/Main_Page

This page seems deaf to all Logon creations. Poor activity on this site (mainly 'admin' actions). User actions are then all traced using IP address (a pity). Trying a bit to move around, Edit semantic shows -> https://wikienterprise.org/w/index.php?title=Take_part&action=editsemantic and displays message ->

"This version of PageProperties is outdated. Update"

Question: what is the use of this site ? is that a kind of sandbox ... but dont touch ! So Logon creation should be disabled or if accepted, then processed correctly and the deployment of updated modules applied. Thanks. --Christian 🇫🇷 FR (talk) 15:55, 18 November 2023 (UTC)

It is presumably the extension author's website. It is not a website maintained by Wikimedia or the mediawiki community. The question would probably be better on the extension's talk page. Bawolff (talk) 19:33, 18 November 2023 (UTC)
ok i agree and will continue there. Thanks. -- Christian 🇫🇷 FR (talk) 20:58, 18 November 2023 (UTC)

Me equivoqué al poner mi nombre de cuenta.

Hola. Disculpen. Cometí el error de agregar "escritora" a mi cuenta.

Quisiera solicitar un cambio de nombre de mi cuenta y solo quede: Estela Franco Guerrero.

Soy inexperta en esto. Por favor, disculpen el error.

Estela Franco Guerrero Estela Franco Guerrero Escritora (talk) 20:48, 18 November 2023 (UTC)

Please ask at https://es.wikipedia.org/wiki/Wikipedia:Cambiar_el_nombre_de_usuario Bawolff (talk) 19:43, 19 November 2023 (UTC)

Could not load authentication plugin SimpleSAML SSO MW 1.39.4

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


Hi,

I am trying to configure SAML auth for our Wiki 1.39.4 on RHEL7.9. I am trying with simplesamlphp 2.0.5. While accessing the wiki, it gives error :

"Could not load authentication plugin"

wiki 1.39.4

php 8.0

pluggableauth 7.0

SimpleSAMLphp: 7.0


From LocalSettings.php :

wfLoadExtension( 'PluggableAuth' );

wfLoadExtension( 'SimpleSAMLphp' );

$wgSimpleSAMLphp_InstallDir = '/var/simplesamlphp';

$wgSimpleSAMLphp_AuthSourceId = 'default-sp';

$wgPluggableAuth_EnableAutoLogin = true;

$wgPluggableAuth_EnableLocalLogin = false;

$wgPluggableAuth_EnableLocalProperties = false;

$wgPluggableAuth_ButtonLabelMessage = 'Login';

$wgPluggableAuth_Class = 'SimpleSAMLphp';

$wgMainCacheType = CACHE_DB;

$wgSimpleSAMLphp_MandatoryUserInfoProviders['myusername'] = [

        'factory' => function() {

                return new \MediaWiki\Extension\SimpleSAMLphp\UserInfoProvider\GenericCallback( function( $attributes ) {

                        if ( !isset( $attributes['http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress'] ) ) {

                                throw new Exception( 'missing email address' );

                        }

                        $parts = explode( '@', $attributes['http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress'][0]);

                                                return strtolower( $parts[0] );

                } );

        }

];

$wgPluggableAuth_Config['Log in using my SAML'] = [

        'plugin' => 'SimpleSAMLphp',

        'data' => [

                'authSourceId' => 'default-sp',

                'usernameAttribute' => 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress',

                'realNameAttribute' => ['http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname','http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname'],

                'emailAttribute' => 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress',

                'userinfoProviders' => [

                        'username' => 'myusername'

                ]

         ]

];


From Logs:

> Authentication.log <

2023-11-20 11:48:34 hostname wiki: Primary login with MediaWiki\Extension\PluggableAuth\PrimaryAuthenticationProvider returned REDIRECT

> PluggableAuth.log <

2023-11-20 11:48:34 hostname wiki: In execute() 2023-11-20 11:48:34 hostname wiki: Getting PluggableAuth instance 2023-11-20 11:48:34 hostname wiki: Plugin name: SimpleSAMLphp

> simplesamlphp.log <

Nov 20 11:48:34 simplesamlphp ERROR [TR72440098] Error loading session: Invalid session ID

> PluggableAuth.log <

2023-11-20 11:48:34 hostname wiki: Invalid authentication plugin class: Invalid session ID

> Authentication.log <

2023-11-20 11:48:35 hostname wiki: Login failed in primary authentication by MediaWiki\Extension\PluggableAuth\PrimaryAuthenticationProvider


Not sure whats gone wrong. can someone suggest?

--

GT Testergt1302 (talk) 12:07, 20 November 2023 (UTC)

Hi,
This issue has been solved.
If anyone face similar issue refer below.
modify below variables in the config.php of simplesamlphp. default config is to use 'phpsession'. This need to be changed to use sql/database to store session info.
'store.type'                    => 'sql',
'store.sql.dsn'                 => 'mysql:host=localhost;port=3306;dbname=mywiki',
store.sql.username' => 'sqluser', //SQL DB user name
'store.sql.password' => 'password', //SQL DB user password Testergt1302 (talk) 10:10, 21 November 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Collapsible Table

{| class="mw-collapsible mw-collapsed" style="width: 100%;"

|-

! style="width: 50%;" | Column 1 Title

! style="width: 50%;" | Column 2 Title

|-

| Paragraph 1 goes here.

| Paragraph 1 goes here.

|-

| Paragraph 2 goes here.

| Paragraph 2 goes here.

|-

| Paragraph 3 goes here.

| Paragraph 3 goes here.

|-

| Paragraph 4 goes here.

| Paragraph 4 goes here.

|-

| Paragraph 5 goes here.

| Paragraph 5 goes here.

|}


Anyone know how to make both Column 1 Title and Column 2 Title expand so that paragraph's 1 to 4 are shown? I would always like paragraph 5 to remain visible. Fomkwiki (talk) 12:46, 21 November 2023 (UTC)

Don't put content in the collapsed class if do not want content to be collapsed but visible. Malyacko (talk) 09:41, 22 November 2023 (UTC)

How I can remove Discussion Tab from Main Page

I am trying to remove the Discussion Tab, View Source and View history from the main page of my Wiki, but I have tried several configurations and it does not work correctly.

Include in my LocalSettings.php file the following value:

body.page-Main_Page li#ca-delete { display: none !important; };


After including the line above it shows me an error:

HTTP ERROR 500


I comment online and it works correctly but it does not remove the Discussion tab.


Thank you.

Enzo Enzoly (talk) 20:25, 21 November 2023 (UTC)

Don't add that to your LocalSettings.php, but in your MediaWiki:Common.css wiki page. LocalSettings.php is for configuration settings and the file is written in PHP. You have added a random bit of CSS into the file, which indeed will prevent the entire website from starting up. This CSS line (when placed at the correct spot) will also not do anything more than hiding the 'delete page' item from the More menu.
I do encourage getting a bit more familiar with the relevant programming languages, when you are modifying/running a website. —TheDJ (Not WMF) (talkcontribs) 23:06, 21 November 2023 (UTC)
Hello TheDJ.
Thanks for answering.
Indeed, I am not in the programming area, but I always try to learn other areas.
I understand that I should familiarize myself with all programming language and techniques and that I must assume responsibility for dealing with changes to the Wiki.
However, I installed a private wiki and I would like to know where I can modify my main page so that it does not show the Discussion tabs.
Thank you.
Enzo Enzoly (talk) 20:11, 22 November 2023 (UTC)

broken files

I am working on a bot on Arabic Wikipedia to remove non-existent images (in Arabic Wikipedia or Wikimedia Commons) from pages. I need a method to obtain the names of files used on pages and not existing through API or MySQL, without checking all the images on the page individually. Gerges (talk) 21:59, 21 November 2023 (UTC)

How to "remove non-existent images"? Do you mean **links** to non-existent images instead?
See API:Images and API:Parsing_wikitext. Malyacko (talk) 09:39, 22 November 2023 (UTC)
I would like to have images that do not exist but are used on pages Gerges (talk) 10:14, 22 November 2023 (UTC)
Do something like
https://www.mediawiki.org/w/api.php?action=query&generator=images&titles=help:images&prop=imageinfo&gimlimit=max (note the "missing" field refers to the description page not the image itself. Look at the known key or tge imageinfo details) Bawolff (talk) 19:06, 23 November 2023 (UTC)
This is not what I want, This category category:Pages with missing files contains pages in which files are missing. (I would like to get those files that do not exist, I do not want to examine each image individually) Gerges (talk) 19:37, 23 November 2023 (UTC)
While, you are going to have to sort the existing and non-existing files yourself. There is no api endpoint for just the missing files afaik, only one that lists all the files on the page and marks which ones are missing. Bawolff (talk) 08:09, 24 November 2023 (UTC)
What is the maximum limit for sending images in the same request via imageinfo query? Gerges (talk) 10:40, 24 November 2023 (UTC)
Either 500 or 5000 depending on your user rights i think. Bawolff (talk) 07:17, 25 November 2023 (UTC)
Thank you Gerges (talk) 10:00, 25 November 2023 (UTC)

Correct encoding for database

I'm setting up a small private wiki using Mediawiki 1.40.1. ChatGpt (yes, I know) is really convinced that my mysql database should be in utf8mb4. Currently it's in binary, this is the line I think in LocalSettings.php:

# MySQL table options to use during installation or update

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


I haven't touched that (deliberately) I thought from here that binary is ok, but I'm new to this and not sure. What is the proper encoding? Thanks! Artever (talk) 06:01, 22 November 2023 (UTC)

Both work, i personally prefer binary.
(It should be noted that changing $wgDBTablesOptions only affects new tables not existing ones.) Bawolff (talk) 10:05, 22 November 2023 (UTC)

How to add braces in between the page.

I have written following code but it displayed at bottom of the page. I want it in between of the page

बडोदे Template:Brace आपला अतिनम्र सेवक
ता. १ जून Template:Brace गोविंदराव बाबाजी जोशी.
सन १८८५ Template:Brace वसईकर.
Template:Brace

Shurpalimedha (talk) 11:08, 22 November 2023 (UTC)

@Shurpalimedha: It sounds like this might be a question about mrwikisource, rather than MediaWiki; you could try asking on the scriptorium there. Sam Wilson 11:49, 22 November 2023 (UTC)
thanks Shurpalimedha (talk) 16:09, 22 November 2023 (UTC)

Issue with File at top of table creating blank line

https://wiki.ksiglobal.com/index.php/KSI_OlajideBT i have this issue on many other various pages. i cant see anything wrong with the table Template. New Blue 77 (talk) 00:04, 24 November 2023 (UTC)

The template code puts a table into a div into a table (for reasons I don't understand). So the div creates an empty line. Malyacko (talk) 11:31, 24 November 2023 (UTC)

Using .htaccess to remove a range of subdirs

I want to use replace an existing website with mediawiki, but to preserve incoming links I need to remove some path names using .htaccess

So https://subbrit.org.uk/sites/fan-bay-deep-shelter should become https://subbrit.org.uk/fan-bay-deep-shelter, ditto features and a few more

I already use the shortURL logic to shorten paths

LocalSettings.php

$wgScriptExtension = ".php";
$wgArticlePath = "/$1";
$wgUsePathInfo = true;
$wgScriptPath = "";

.htaccess

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

But my attempts to add new rules like

RewriteRule ^sites/(.*)$ /$1 [L]

just don't take effect, it just asks if I want to create a new page Sites/fan-bay-deep-shelter. The rules do work on the server away from the wiki area Vicarage (talk) 10:38, 24 November 2023 (UTC)

I've not checked but how about putting the "sites" line as the first thing after "RewriteEngine On"? Jonathan3 (talk) 00:05, 25 November 2023 (UTC)
In addition to putting it first, i would suggest using [R] instead of [L] to make it an http redirect.
See
https://httpd.apache.org/docs/2.4/rewrite/flags.html for what that does Bawolff (talk) 06:12, 25 November 2023 (UTC)
Moving the line around and changing the flags doesn't help, I suspect that the problem is that the rewrite does not fundamentally change the URI Mediawiki processes, this is after all why
RewriteRule ^(.*)$ %{DOCUMENT_ROOT}/index.php [L]
can work. I fear there are many thousand #REDIRECTs in my future Vicarage (talk) 08:54, 25 November 2023 (UTC)
In throry the [R,L] flag should change the url mediawiki processes because it should restart the request Bawolff (talk) 09:28, 25 November 2023 (UTC)
I'm having no luck with placing the command, or using the PT flag which should change the URI. I've asked for help in https://www.mediawiki.org/wiki/Manual_talk:Short_URL/Apache, as there are statements there about REQUEST_URI which I think is the source of my problem Vicarage (talk) 11:19, 26 November 2023 (UTC)
I've got the same $wgArticlePath and $wgScriptPath settings as you, and the same original four lines in .htaccess. In between "RewriteEngine On" and the rest, I have "RewriteRule" lines. One ends with "[R=301,L]" and another "[R=301,NC,L]". Don't ask me what "NC" means now, but it all seems to work all right!
There's a non-.htaccess way of organising redirects. Maybe your Apache is not set up to obey .htaccess, and you had previously got short URLs to work the other way. That might explain why your changes are having no effect. How about removing the original four lines, or adding something simple but absurd, and seeing whether it changes anything. Jonathan3 (talk) 17:00, 26 November 2023 (UTC)
NC is case insensitive. I can see the rule changing things if I disable the conventional shortening logic, its the combination that doesn't work. I checked, the apache server configuration on my test machine is clean. a server conf solution wouldn't be acceptable for the production solution anyway, as that's hosted. Vicarage (talk) 21:21, 26 November 2023 (UTC)
What are the full contents of your .htaccess now? Jonathan3 (talk) 21:57, 26 November 2023 (UTC)
RewriteEngine On
RewriteRule ^Sites/(.*)$ /$1 [NC,R]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^(.*)$ %{DOCUMENT_ROOT}/index.php [L] Vicarage (talk) 22:34, 26 November 2023 (UTC)
What about changing the flags on the second line to "[R=301,NC,L]"? Jonathan3 (talk) 22:54, 26 November 2023 (UTC)
Internal server error with the 301, with either L (which stops the rewrites, which I'm sure I don't want) or R Vicarage (talk) 07:31, 27 November 2023 (UTC)
You say either L or R, but what about trying both, as suggested?
I've tried the following out and it works for me, e.g. it'll show example.com/Main_Page as normal, and will also convert example.com/sites/Main_Page to example.com/Main_Page.
RewriteEngine on
RewriteRule ^sites/(.*)$ /$1 [R=301,NC,L]  
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^(.*)$ %{DOCUMENT_ROOT}/index.php [L]
There must be something different about your server if that doesn't work. Jonathan3 (talk) 10:51, 27 November 2023 (UTC)
I'm getting caught up with caches on my local webserver and different browsers. Sometimes it works, sometimes not. I will check on the production webserver and report back. Vicarage (talk) 16:38, 28 November 2023 (UTC)
Seems to be working with a clean install on my production server. Thank you both for your help Vicarage (talk) 23:35, 1 December 2023 (UTC)

"Caught exception of type Error" while upload image

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


Hello everyone, I'm encountering an error when trying to upload an image to the wiki.

What do I have in LocalSettings.php (below)

I looked, in the subfolders of the www/wiki/cache folder there are many subfolders in which there is an image that I am trying to upload to the wiki.

In php.ini, uploading files is allowed, on another service where you can upload files, uploading works, so I hope the problem is not in php.ini

I also tried changing the values ​​of the entire www folder to 777 to check if the download works in this case, but it did not work.


$wgEnableUploads = true;

$wgFileExtensions = [ 'png', 'gif', 'jpg', 'jpeg','pdf' ];

$wgMaxUploadSize = 5000000;

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

$wgGroupPermissions['autoconfirmed']['reupload'] = true;

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

$wgGroupPermissions['uploadaccess']['reupload'] = true;

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

$wgGroupPermissions['editor']['reupload'] = true; Hapugov (talk) 11:37, 25 November 2023 (UTC)

Please set $wgShowExceptionDetails = true; to see detailed error message. – Ammarpad (talk) 12:29, 25 November 2023 (UTC)
Done, when uploading an image I received the following error
[eb17c8a480e60f8473bc2db5] Exception caught: Call to undefined method LocalFile::getUser() Hapugov (talk) 12:39, 25 November 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

FlaggedRevs hiding protection levels

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


Hello,

On my wiki, I am trying to configure FlaggedRevs in pending changes mode (similar to the English Wikipedia.) I see that on the English Wikipedia, in the page protection menu, the option to set the pending changes autoreview level to "Allow only administrators" is hidden. How is this done? I have tried using $wgFlaggedRevsRestrictionLevels, but the "Allow only administrators" option refuses to hide itself. Thank you. Three Sixty (talk) 16:41, 25 November 2023 (UTC)

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

No Bureaucrat Account

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


Hi,

apparently a bureaucrat account hasn't been created during the installation. The maintenance script createAndPromote.php can only be used with administration rights. What should I do now?

As far as I can see, there's no such account on the wiki. Marvin9078 (talk) 12:27, 26 November 2023 (UTC)

> createAndPromote.php can only be used with administration rights.
This is not true(?) Can you describe what you mean by this? Bawolff (talk) 11:47, 27 November 2023 (UTC)
How do u use maintenance scripts? Dont you use em by opening the url in the browser? for example:
wiki.de/maintenance/createAndPromote.php Marvin9078 (talk) 13:16, 27 November 2023 (UTC)
They should be run on the server instead. See Manual:CreateAndPromote.php#Usage 94rain Talk 03:12, 28 November 2023 (UTC)
What Terminal? Marvin9078 (talk) 12:23, 28 November 2023 (UTC)
Whatever CLI access your server provides. Malyacko (talk) 14:42, 28 November 2023 (UTC)
There is none provided. Is there an other way? Marvin9078 (talk) 12:24, 29 November 2023 (UTC)
How did you install MediaWiki? Are you using some kind of PHP web hosting service?
If you have access to the database, it should be possible to change user permissions from there. Check out Manual:User_groups_table 94rain Talk 09:10, 30 November 2023 (UTC)
That worked. Thank you a lot! Marvin9078 (talk) 08:14, 21 July 2024 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

After installing CentralAuth can a database be renamed?

I tried creating a new database, renaming all the old.tables to new.tables, then replacing references to the old database in centralauth.localnames, centralauth.localuser and centralauth.globaluser. There are no references anywhere I can find to my old database but login in fails at the central login wiki with the message session token is invalid or expired. I'm either purging caches wrong or it's something else. Can a website be removed from CentralAuth after it has been added? Maybe that would be a solution. I'm on 1.39. T0lk (talk) 15:45, 26 November 2023 (UTC)

Maybe also clear all objectcaches (i.e. clear apcu [if using], memcache [if using], objectcache db table).
Make sure any references are also changed in LocalSettings.php Bawolff (talk) 05:58, 11 December 2023 (UTC)

Installing another wiki in a new directory

Hey, I have a wiki installed under /wiki but would like to install another one under /newwiki. The problem is that I have the following Apache configuration and I am not sure how to add a second wiki since everything is being redirected to /wiki:


<VirtualHost *:443>

ServerName domain.com

ServerAlias www.domain.com

ServerAdmin webmaster@localhost

DocumentRoot /var/www/domain.com

ErrorLog ${APACHE_LOG_DIR}/error.log

CustomLog ${APACHE_LOG_DIR}/access.log combined


SSLCertificateFile /etc/ssl/cert.pem

SSLCertificateKeyFile /etc/ssl/key.pem


RewriteCond %{REQUEST_URI} ^/$

RewriteRule (.*) /wiki/ [R=301]


RewriteCond %{REQUEST_URI} wiki/$

RewriteRule (.*) /wiki/Main_Page [R=301]


RewriteCond %{HTTP:HOST} ^www\.(.*)$ [NC]

RewriteRule ^/(.*)$ https://%1/$1 [R=301,L]


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

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

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

</VirtualHost> Ellex2 (talk) 17:06, 26 November 2023 (UTC)

Displaying uploaded files while inserting them at wiki farm

Hi! I have made wiki farm with its subdomains:

  • en.mywiki.com - English wiki
  • fr.mywiki.com - French one
  • files.mywiki.com - For storing images and other media files.

I have made following setting at LocalSettings.php that allows me to use media files at all my subdomains:

# One storage and uploads
$wgUseSharedUploads             = true;
$wgHashedSharedUploadDirectory  = true;
$wgUploadNavigationUrl   = 'https://files.mywiki.com/wiki/Special:Upload';
$wgUploadPath            = '/w-wiki/images';
$wgSharedUploadPath      = $wgUploadPath;
$wgUploadDirectory       = "/var/www/admin/www/w/images";
$wgSharedUploadDirectory = $wgUploadDirectory;

# Shared files
$wgFetchCommonsDescriptions = true;
$wgSharedUploadDBname = 'wikijournal_org';
$wgSharedUploadDBprefix = 'files__'; # Table name prefix
$wgRepositoryBaseUrl = "https://files.mywiki.com/wiki/File:";

The problem is when I want to insert the to the page via VisualEditor and press "insert file" at one of wiki farm subdomains (for example at en.mywiki.com) I see the recent uploaded files at the en.mywiki.com, but not at files.mywiki.com. How can set up my wiki so that at all subdomains of wiki farm I would see recent uploaded files at files.mywiki.com? Fokebox (talk) 10:54, 27 November 2023 (UTC)

Proper way to do minor MediaWiki updates

Hi! Some time ago I posted Talk:Download from Git#h-Proper_way_to_update-20230425124800 looking for some advice on the proper way to do a minor update (for example, from MediaWiki 1.39.1 to 1.39.3), but didn't get any replies yet. Anyone knows? Sophivorus (talk) 15:50, 27 November 2023 (UTC)

Help - Extension Not Loading

Hello! First-time post. I am hoping to get validation on what the error is. I am trying to load an extension. I believe the file path is wrong when calling 'require_once' in LocalSettings.php. Can this be confirmed? Are there any other possibilities that could result in this error? Any even the slightest remote possibilities? I am trying to cover all of my bases.


Fatal error:

Uncaught Exception: Unable to open file /var/www/mediawiki/w/extensions/MyProblemExtension/extension.json:

filemtime(): stat failed for /var/www/mediawiki/w/extensions/MyProblemExtension/extension.json in /var/www/mediawiki/w/includes/registration/ExtensionRegistry.php:199


There is a stack trace with 7 items, I am not sure if this information is helpful as I was reading just the first line of the fatal error shows the source of the issue. Please let me know if it would be helpful.

At this time I am unable to view our Extensions folder, and I have no idea what the correct file path should be, only that the previous development team did not have this issue and it "loaded fine."


Thank you so much for your time and any insight you can offer. Kimmywingz (talk) 16:16, 27 November 2023 (UTC)

Most extensions use "wfLoadExtension" instead of "require_once". Check the extension's documentation on this site (Mediawiki.org). Flounder ceo (talk) 17:01, 27 November 2023 (UTC)
There is a "wfLoadExtension" and a "require_once" for this particular extension. It's a custom extension so it is not on the mediaWiki.org site.
There are two parts to the extension, so 2 wfLoadExtension and 2 require_once. I have tried all possible combinations and it results in the same error with a difference in the first line either referring to the first extension or the second, depending on what combination is uncommented.
Only the first extension has a "extension.json" file, and in the ReadME it is recommended to
wfLoadExtension('FirstExtension');
require_once "$IP/extensions/SecondExtension/SecondExtensionManager.php";
which results in a FatalError. Kimmywingz (talk) 17:10, 27 November 2023 (UTC)
It would be nice to see that extensions folder. Have any updates been done between the previous team and today? If moving to 1.38+ you need to remove this line from LocalSettings.php
require_once( "$IP/includes/DefaultSettings.php" );
Flounder ceo (talk) 19:05, 27 November 2023 (UTC)
It would be nice! We are using version 1.39.1 and that line has been commented out and cannot be found elsewhere.
I spoke with the author today and he mentioned that only require_once should be used as the extension is older, yet this results in a fatal error as well, although a slightly different one
Warning: require_once(/var/www/mediawiki/w/extensions/SecondExtension/SecondExtensionManager.php): failed to open stream: No such file or directory in /mediawiki/config/LocalSettings.php on line 487 Kimmywingz (talk) 21:38, 27 November 2023 (UTC)
Is that really where your LocalSettings.php is located? Maybe the extension is looking for it in the wrong place. Flounder ceo (talk) 23:23, 27 November 2023 (UTC)
I wanted to follow-up, that this issue has been resolved. It was a problem we could not solve ourselves, but rather an issue on our pipeline that had to be resolved by the company that monitors that. Thank you for your help. Kimmywingz (talk) 18:10, 20 December 2023 (UTC)

My username is Roberto bob

I suddenly got logged off my game in world war 3. I can’t get back in. I spent a lot of money so I need to finish my game asap 2600:1700:F9D1:BE70:912:54CF:F986:15CF (talk) 06:50, 28 November 2023 (UTC)

This is offtopic. Please ask at an appropriate place. Bawolff (talk) 07:37, 28 November 2023 (UTC)

Struggling to get my wiki installed. Issue with $wgHooks ?

Hi. I am struggling to get my wiki installed. The setup fails.

I have added echo statements into:

mw-config\index.php

includes\WebStart.php

includes\Setup.php

and the fault seems to lie in Setup.php with the lines

$wgHooks = new FauxGlobalHookArray(

MediaWikiServices::getInstance()->getHookContainer(),

$wgHooks

);


I have tried filling in a LocalSettings.php file, but I am not confident on the answers that I have supplied. Some examples of this file would be helpful to know the type of answers that I should be giving. MarkMulrooney (talk) 09:38, 28 November 2023 (UTC)

Please provide a step by step explanation what you changed with full and clear file names, and which exact "statements" you added to which file and why, and your exact MediaWiki version. Malyacko (talk) 14:43, 28 November 2023 (UTC)
What does fails mean? Do you encounter an error? At what step do you have the issue? Bawolff (talk) 02:16, 29 November 2023 (UTC)
To Malyacko & Bawolff,
I downloaded the latest MediaWiki zip file, uncompressed it, copied it up to a 'w' folder on my server with FileZilla. I have now commented out all the echo statements that I had inserted.
I run w/index.php
That shows...
"MediaWiki 1.40.1
LocalSettings.php not found.
Please set up the wiki first."
Go to w/mw-config/index.php and get
"This page isn’t working
www.coacto.co.uk is currently unable to handle this request.
HTTP ERROR 500"
Thanks in advance for your help. MarkMulrooney (talk) 09:05, 29 November 2023 (UTC)
Can you check if your webserver error logs have any errors in them? Bawolff (talk) 09:54, 29 November 2023 (UTC)
I do get webserver errors such as this...
"[Wed Nov 29 06:09:54.659233 2023] [autoindex:error] [pid 775501:tid 140426910287616] [client 173.239.211.221:19887] AH01276: Cannot serve directory /home/ggdb0pvh8m86/public_html/wp-admin/css/colors/coffee/: No matching DirectoryIndex (index.cgi,index.php) found, and server-generated directory index forbidden by Options directive, referer: http://coacto.co.uk//wp-admin/css/colors/coffee/index.php"
This is the latest error that happened at six o'clock in the morning when I am not attempting to run any wiki files.
My wiki folder 'w' sits next door to WordPress folders as the URL was primarily designed for a WP site.
I could find no errors relating to my wiki folder '/w/'. MarkMulrooney (talk) 14:10, 29 November 2023 (UTC)
Do you have a separate log file for php errors (sometimes that is different than webserver errors).
See also How to debug (only sone parts of that page are applicable if you havent installed yet) Bawolff (talk) 10:16, 4 December 2023 (UTC)
To Bawolff,
I have cPanel that only shows Errors not just PHP errors.
I looked at Manual:How to debug and made use of some of the Boolean debug tools so that my LocalSettings.php file now has...
# debugging and testing
$wgResourceLoaderDebug = true; // MM addition
$wgEnableJavaScriptTest = true;
$wgShowExceptionDetails = true;
$wgDebugToolbar = true; // MM addition
$wgShowDebug = true; // MM addition
$wgDebugDumpSql = true;
$wgDebugLogFile = "/tmp/sql.txt";
$wgDevelopmentWarnings = true; // MM addition
Copying that up to my server does not appear to have any effect.
The tmp/sql.txt file is not changed. I get the same error as before. MarkMulrooney (talk) 11:32, 5 December 2023 (UTC)
Problem solved by starting the process again. I downloaded the latest MediaWiki zip file, uncompressed it, copied it up to a 'mediawiki-1.40.1' folder on my server with FileZilla. Renamed said folder. Pointed web browser at same. Installation screen appeared.
I guess the wind changed direction. ;-) MarkMulrooney (talk) 12:10, 6 December 2023 (UTC)

Images & pages missing after 1.33.1 upgrade

My wiki was running a older version 25 so I upgraded to version 35LTS and about 90% of the articles disappeared including the main page. Looking in the database it looks like all the information is still actually there.

Long story short, I upgraded one version at a time which was successful until I hit version 1.33.1 where the majority of articles have disappeared and also the images have as well.

The images are on the server and I can access them via direct URL. but they do not load on the wiki page. When looking at the files section there is only about 15 images listed. Half of them are ones which I uploaded last week and several were from the original wiki in 2006. However in trying to fix this problem has now broken the thumbnails. This happened after I change the folder permissions to 777.

I keep seeing people saying run the scripts..

php maintenance/update.php

php maintenance/cleanupUsersWithNoId.php --prefix '*' --table revision

php maintenance/migrateActors.php

php maintenance/rebuildImages.php

But this did not help.

After several hours of looking around the Internet I came across this article..

https://www.mediawiki.org/wiki/Project%3ASupport%20desk/Flow/2020/11#h-Missing_pages%2C_but_data_appear_to_be_intact-2020-11-21T01%3A37%3A00.000Z

Where it says run..

INSERT INTO revision_actor_temp (revactor_rev, revactor_actor, revactor_timestamp, revactor_page) SELECT rev_id, 1 as actor, rev_timestamp, rev_page FROM revision WHERE rev_id NOT IN (SELECT revactor_rev FROM revision_actor_temp);

Running that went from 4949 rows and 12489 after.

Now this did seemingly bring back the majority of the pages. The main page was still missing but when I clicked edit the information was there. So I saved the page and then it was working again afterwards. However I still have the problem with the images.

I have seen some posts talking about..

$wgHashedUploadDirectory = false;

But true or false makes no difference. I did try some other things in the file to no avail. I also tried deleting it and resetting up the wiki and re-uploading the settings file. But this did not change anything either.

I'm not really sure where to go from here now. It seems like something is fundamentally broken during the update.

If anyone has any suggestions please let me know because after fighting with this all week I really don't know what to do now. Exxosuk (talk) 11:23, 28 November 2023 (UTC)

The only problem I found when running the update.php is what others seem to get stuck with , and never seems to be a solution.
User name "Exxos" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.
User name "Adolobe" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.
User name "Dazarz" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.
User name "Tin" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.
User name "Docrv" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.
User name "Rockyone" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.
User name "Rainwarrior" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.
User name "Steelz" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.
User name "Bikerbob" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.
User name "Bigclaw" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.
User name "Tomh" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.
User name "Panthen10" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.
User name "Magikgimp" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.
User name "Ragnar76" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.
I had to delete about 9 million spam users. So not sure where these names are all coming from now. There are 56 users left in the table. I wrote a script to verify they all had posts somewhere on the wiki. Though one listed is my account "EXXOS" which exists plus a lot of users which don't exist.
I ran the cleanupUsersWithNoId.php , it output some stuff, but all the problems remain. If I run update.php it just goes back to telling me to run cleanupUsersWithNoId.php , which I did multiple times.
As for the images. It seems if I try and upload the same file, it won't let me do it. Says already exists. So the wiki knows the file is there and yet it doesn't show on the wiki itself. Uploading a new image is fine and shows fine also. The only thing I can do is figure out how the wiki deals with images and see if I can figure anything out that way. Exxosuk (talk) 19:03, 28 November 2023 (UTC)
> php maintenance/cleanupUsersWithNoId.php --prefix '*' --table revision
Why --table revision? Try running without that. Bawolff (talk) 02:14, 29 November 2023 (UTC)
It doesn't seem to matter what I put..
php maintenance/cleanupUsersWithNoId.php --prefix '*' --force
Beginning cleanup of revision
... rev_timestamp=20231128214153 rev_id=1000000026
Completed cleanup, assigned 0 and prefixed 0 row(s)
Beginning cleanup of archive
... ar_id=100
... ar_id=200
... ar_id=300
... ar_id=400
... ar_id=500
... ar_id=600
... ar_id=700
... ar_id=800
... ar_id=900
... ar_id=1001
... ar_id=1102
... ar_id=1208
... ar_id=1324
... ar_id=1426
... ar_id=1528
... ar_id=1633
... ar_id=1739
... ar_id=1843
... ar_id=1951
... ar_id=2055
... ar_id=2156
... ar_id=2256
... ar_id=2365
... ar_id=2465
... ar_id=2584
... ar_id=2688
... ar_id=2788
... ar_id=2888
... ar_id=3016
... ar_id=3147
... ar_id=3253
... ar_id=3388
... ar_id=3497
... ar_id=3597
... ar_id=3709
... ar_id=3817
... ar_id=3933
... ar_id=4043
... ar_id=4143
... ar_id=4252
... ar_id=4367
... ar_id=4479
... ar_id=4587
... ar_id=4700
... ar_id=4805
... ar_id=4907
... ar_id=5007
... ar_id=5107
... ar_id=5207
... ar_id=5307
... ar_id=5407
... ar_id=5507
... ar_id=5607
... ar_id=5707
... ar_id=5807
... ar_id=5907
... ar_id=6007
... ar_id=6107
... ar_id=6207
... ar_id=6307
... ar_id=6407
... ar_id=6507
... ar_id=6607
... ar_id=6650
Completed cleanup, assigned 0 and prefixed 0 row(s)
Beginning cleanup of logging
... log_timestamp=20081014215605 log_id=501
... log_timestamp=20081014215622 log_id=601
... log_timestamp=20081014215638 log_id=701
... log_timestamp=20081014215648 log_id=801
... log_timestamp=20081014215707 log_id=901
... log_timestamp=20081014215726 log_id=1001
... log_timestamp=20081014215741 log_id=1101
... log_timestamp=20081014215751 log_id=1201
... log_timestamp=20081014215803 log_id=1301
... log_timestamp=20081014215815 log_id=1401
... log_timestamp=20081014215830 log_id=1501
... log_timestamp=20081014215844 log_id=1601
... log_timestamp=20081014215907 log_id=1701
... log_timestamp=20081014215923 log_id=1801
... log_timestamp=20081014215931 log_id=1901
... log_timestamp=20231128214153 log_id=1826850
Completed cleanup, assigned 0 and prefixed 0 row(s)
Beginning cleanup of image
... img_timestamp=20231128214153 img_name=Hydra3333.jpg
Completed cleanup, assigned 0 and prefixed 0 row(s)
Beginning cleanup of oldimage
... oi_name=ST_Motherboard_C070789-001_Rev_C_exxos2.jpg oi_timestamp=20080927121714
... oi_name=Ym2149.png oi_timestamp=20060913135635
Completed cleanup, assigned 0 and prefixed 0 row(s)
Beginning cleanup of filearchive
... fa_id=32
Completed cleanup, assigned 0 and prefixed 0 row(s)
Beginning cleanup of ipblocks
... ipb_id=236
... ipb_id=3593
... ipb_id=4312
Completed cleanup, assigned 0 and prefixed 0 row(s)
Beginning cleanup of recentchanges
... rc_id=7352200
... rc_id=7352269
Completed cleanup, assigned 0 and prefixed 0 row(s)
Then....
php maintenance/update.php > update9.txt &
User name "AciYc9" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.
User name "LopU7l" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.
User name "KiqAoj" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.
User name "CytZ92" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.
User name "QpuJ2e" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.
User name "Ramya" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.
User name "Zhangpeng" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.
etc Exxosuk (talk) 18:55, 29 November 2023 (UTC)
The image problems are weird.
php maintenance/checkImages.php
170px-Megan_Fox_71.jpg: missing
Dizzy.png: missing
Hydra3333.jpg: missing
Good images: 31/34
Thing is, 2 of those images actually show up on the wiki. Its like the wiki is using the wrong table for the images. But there are over 800 in the images table and the recent ones I uploaded work. Oddly a couple of older images are showing up in the mainpage now.
All the paths are correct and accessible direct in the browser. The file hashes match all the folders in the images folder on the server. Exxosuk (talk) 20:39, 30 November 2023 (UTC)
So I've deleted all the rows for one particualr file in the images/page tables and anywhere else I can find the filename I am working on, and still the wiki says the file exists. I've even deleted all the same filenames out of the images folder and thumbs folder.
At this point I am looking at the getExistsWarning function in Specialupload.php trying to figure out what the full path is that its "finding" the image file at, but I can't seem to work out anything but what the actual filename is, which I know already.
So does anyone know how to patch the function to output the FULL path its looking for the file at ? It may give me some clues. Its "finding" the file somewhere, but if its seemingly not in the tables anywhere or on the server as a file, WHERE is it finding the thing ?!
I also have the wiki debug logs enabled. All the SQL statements I ran them manually in phpmyadmin and all return "nothing". Exxosuk (talk) 11:47, 1 December 2023 (UTC)
I would not suggest to jump from 1.25 to 1.35 or even to 1.33, try to upgrade 1.25 -> 1.29 -> 1.31. Or something like that. Fokebox (talk) 09:33, 4 December 2023 (UTC)
It seems Apache was causing a lot of these problems. It seems to store pages, even SQL data in a cache by itself somewhere. Restarting SQL doesn't change anything. But if I restart apache2 after SQL edits, things start behaving afterwards. Though on my main server I changed to Nginx anyway as Apache kept having various odd issues with no solution. Exxosuk (talk) 19:52, 13 December 2023 (UTC)
If using apcu as cache, what likely happened is you forced a cache clear by doing that. Bawolff (talk) 22:32, 13 December 2023 (UTC)

VisualEditor breaks custom tags

Hello everybody. I have an extension that adds a custom tag as described here:

Manual:Tag extensions

So far this has worked flawlessly. With MediaWiki 1.39, however, VisualEditor started to break these tags. The following code

<custom-tag>blah bla</custom-tag>

is converted to

&lt;custom-tag&gt;blah bla&lt;/custom-tag&gt;

This happens once a page is edited in VisualEditor and then saved or once you switch from VisualEditor to the code editor.

I suspect that Parsoid may be at fault here. Any suggestions?

Thanks in advance! P-try (talk) 16:37, 28 November 2023 (UTC)

Highlight active headline and sync scroll of toc

How can get it exactly like for example this page:

How to enhance wiki content with JavaScript

It highlights the active header and even when the toc is overflowing it is in sync with scrolling Bedtry (talk) 07:43, 29 November 2023 (UTC)

Did you mean this https://www.mediawiki.org/wiki/How_to_enhance_wiki_content_with_JavaScript?useskin=vector-2022 ?
That's provided by Skin:Vector/2022. – Ammarpad (talk) 13:39, 29 November 2023 (UTC)
Yes i know that you can program it with Javascript but I dont know how. I was hoping someone already wrote something that i can just copy.
And I am actually using (old) Vector. Bedtry (talk) 08:21, 4 December 2023 (UTC)

403 Forbidden and 404 Not Found

Hello,

I am reaching out to you because I migrated my MW site from my old to my new linux server. The new one has the most recent php, apache2 and mariadb versions and I performed an upgrade to the latest MW version as well.

The issue is that I have a 404 not found error when I want to access the site through "the-url.com/index.php" but a 403 error through "the-url.com/".

For the 404 error issue, I checked at the urls and paths in localsettings and in my VirtualHost Apache2 configuration but everythings seems alright.

I also checked at my permissions for the 403 forbidden error in trying with "www-data:www-data" chown and checking if the permissions were right on 755 except for localsettings.php who is on 644.

I am struggling to find the error and if anyone has the kindness to enlighten me on this, I would be very very grateful !

Thank you so much. 2A02:A03F:67AE:2300:30E2:74B4:A75:1D5A (talk) 11:36, 29 November 2023 (UTC)

It is going to be very difficult for anyone to help you with this. This is a webserver configuration issue and there can be many potential problems that lead to this result. I suggest you carefully study you webserver logs, and play around with the path definitions to figure out what part in your configuration is responsible for which path, so that you can reduce the size of the unknown into more specific questions. —TheDJ (Not WMF) (talkcontribs) 11:08, 30 November 2023 (UTC)

Error when uploading a file

The file for "chunk" could not be stored for processing due to a server misconfiguration (write failed). 82.33.253.34 (talk) 10:31, 30 November 2023 (UTC)

Difficult upgrade 1.39 > 1.40

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


Hello

I tried to upgrade from 1.39 to 1.40.1

I published all the 1.40 files on top of my 1.39 installation as I usually did.

However, I'm getting a lot of errors.

Can anyone help?

You can see the errors list at https://www.gennievre.net/wiki/index.php?title=Accueil Gennievre (talk) 15:12, 30 November 2023 (UTC)

I don't know. They say it's better not to add the new files over the existing ones. Maybe try again without doing that? What other steps did you take when upgrading? Jonathan3 (talk) 17:34, 30 November 2023 (UTC)
Thanks for this reply, I'll try to get my backup back online. And redo a different installation. Gennievre (talk) 07:23, 1 December 2023 (UTC)
This looks like a missing composer package. You did not (correctly) update the vendor directory most likely. —TheDJ (Not WMF) (talkcontribs) 18:23, 30 November 2023 (UTC)
Thank you for your reply, but I don't know how to correct it. Do you have a suggestion? Gennievre (talk) 07:27, 1 December 2023 (UTC)
This rings a bell. Once I decided to use git for MediaWiki core. I think the vendor directory is in the tarball but with git you have to run an extra command using composer. There's a page here: Download from Git. I now just use the tarball, extract it into a new folder, then copy across the old files I still need. Jonathan3 (talk) 18:26, 30 November 2023 (UTC)
Thank you for this reply, but I don't understand the answer. I downloaded a zip archive which decompressed without any error message and I published it using ftp. Gennievre (talk) 07:29, 1 December 2023 (UTC)
This is based on what I'd try rather than what I know, but if doing from scratch (without overwriting the existing files) doesn't work, maybe try disabling all your extensions. You might get some ideas at Manual:Upgrading. Jonathan3 (talk) 09:22, 1 December 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.