This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made.
Set wgArticleCountMethod to any, then waited 24 hours for cache to clear, then visited Special:Statistics?action=purge, the number of pages does not change
Latest comment: 3 years ago2 comments2 people in discussion
Latest comment: 3 years ago2 comments2 people in discussion
Hey Guys,
We are implementing a MediaWiki for our fire brigade as an "information system" and therefore i'm searching for an appropriate solution to implement something like a "phone book". We have a lot of contacts with different backgrounds, e.g. catering, transportations, shelters, politicans, doctors, different companies and more.
And therefore we are looking for a solution to easily manage these contacts and find them fast, best would be with something like tags oder categories.
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
On this site, Wikipedia and wikis elsewhere, I can use keyboard shortcuts like ctrl-option-v for editing with VE, ctrl-option-h for page history, etc. (Mac). I used to be able to hit ctrl-option-e for (source) editing/viewing, but on Firefox nothing happens even though the shortcut is suggested when the cursor hovers over the "edit source" link.
I have already made sure that there are no add-ons hijacking this shortcut. Any ideas why this is happening? Cavila16:22, 1 February 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
Page content lost, while DB is ok
Latest comment: 3 years ago5 comments2 people in discussion
RESOLVED
upgrade worked.
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi all,
I've been looking for similar cases to mine, but I've been unable to find one, hope this is not a dupe.
Long story short, we recently lost the DB where our MediaWiki was in, while the disk content was intact. We manage to restore a not very fresh version of the DB.
The wiki is not very frequently updated, but we keep adding content, so there could be a certain level of out of synch
The effect we see is that we are able to login but no pages are found at all. We get all the time the error saying that at this moment there is no content in this page.
We are able to see all the pages references in special - all pages, but links are not reaching the content.
So to confirm, your old db backup is from the same version of mediawiki as you are currently using?
Most likey cause would be if the db dump missed some tables.
So first off, verify that the revision, actor, comment and text tables all have rows in them.
If that's all true, i guess pick a specific page, find it in the page table, look at page_latest value, find that id number in the revusion table, find rev_actor make sure it is in the revision table, rev_comment_id and make sure there is a corresponding entry in comment table, and so forth until you have identified what is missing. Bawolff (talk) 08:11, 2 February 2023 (UTC)
Very interesting... I can see that all tables have data, but in the revision table, all entries have rev_comment_id=0, rev_actor=0, and probably less important, rev_deleted=0.
Can this be the cause? I remember one of the chaps mentioning that he ran a script to try to fix the content...
rev_deleted = 0 is normal (means not revision deleted).
The other two will cause this problem. This is very similar to what the db looks like pre actor migration (e.g. pre the 1.35 upgrade) so you could try upgrading (make sure to keep backups in case it doesnt work or make the problem worse) Bawolff (talk) 15:15, 2 February 2023 (UTC)
Latest comment: 3 years ago3 comments2 people in discussion
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hallo zusammen
Ich habe Mediawiki installiert und Benutzer eingerichtet.
Allerdings sehe ich nur die Hauptseite, aber keinerlei Funktionen.
Ich kann keine neuen Seiten erstellen, keine Dateien hochladen, etc.
Wenn ich es richtig verstanden habe, muss ich den Usern die Benutzergruppe "Benutzer" zuweisen. Diese Benutzergruppe steht allerdings unter Benutzerrechte nicht zur Verfügung.
Was muss ich tun, um Mediawiki funktionstüchtig zu machen?
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
$wgLogos is not working
{{{text}}}
After trying to follow this page Manual:$wgLogos mine shows up blank. However if I browse to it via URL, from localhost or another computer, I can view it. So I guess that means the permissions are good.
Here is the $wgLogos settings in the LocalSettings.php file
$wgLogos = [
'1x' => "/images/mylogo.png", // path to 1x version
];
The actual path of the logo on disk is /var/lib/mediawiki/images/mylogo.png
If I change the above '1x' to a 2x or 1.5x, the default, "set $wgLogos..." image comes back. So it seems to be some formatting thing or something.
The mylogo.png image is 135x135 pixels and 47.4KB in size.
you're saying I need two files? one 135x135 px for the 1x version and a second one 100x100 px for icon? I don't see where in the documentation it says you have to specify both those but I gave it a try, and it still does the same thing. The LocalSettings.php now looks like this.
$wgLogos = [
'1x' => "/images/mylogo.png", // path to 1x version
'icon' => "/images/mylogo100.png", // path to icon version
];
and I now have two files like this
/var/lib/mediawiki/images/mylogo.png
/var/lib/mediawiki/images/mylogo100.png
However this did not work.
Also, I mentioned those previous variables, $wgResourceBasePath and $wgScriptPath because $wgScriptPath is mentioned in this article Manual:FAQ#How do I change the logo? and $wgResourceBasePath is not mentioned in the article, but in the LocalSettings.php file it is there but says do not modify.
The change the logo article also says:
Caution: Do not simply overwrite the default logo installed with MediaWiki (/resources/assets/wiki.png); this file will be overwritten when you upgrade.
and $wgResourceBasePath has a default value of /resources/assets/wiki.png which makes it seem like I shouldn't touch it.
## The URL paths to the logo. Make sure you change this from the default,
## or else you'll overwrite your logo when you upgrade!
I tried this method before actually. I used method #2 mentioned in this article Manual:FAQ#How do I change the logo?
perhaps I don't understand the $wgScriptPath variable but I was under the impression that it was just the root of the URL, which in my case was /mediawiki
However, when I tried using "{$wgScriptPath}/images/mylogo.png"; as the value for my icon, it broke the site. Now it seems to be working. Not sure what changed or why it's working now. Is it better to use the literal path /mediawiki/images/mylogo.png or path including the $wgScriptPath variable?
I currently have rectified the issue by using the built-in lines:
## The URL paths to the logo. Make sure you change this from the default,
## or else you'll overwrite your logo when you upgrade!
> Is it better to use the literal path /mediawiki/images/mylogo.png or path including the $wgScriptPath variable?
It doesn't really matter. Using $wgScriptPath means if you ever change it, you only have to change it in one place. The downside is it can be more confusing because you have to specify it after specifying $wgScriptPath, and you must use " not ' for the string.
> you're saying I need two files? one 135x135 px for the 1x version and a second one 100x100 px for icon? I don't see where in the documentation it says you have to specify both those but I gave it a try, and it still does the same thing.
Many skins run fine with the 1x 135 px file but some, like Vector 2022, want the icon 100 px file. As long as you're doing it, you might as well add the 100 px and future-proof your site somewhat. Flounder ceo (talk) 13:51, 3 February 2023 (UTC)
What should I do to write code blocks?
Latest comment: 3 years ago5 comments4 people in discussion
I want to write pascal code on my website, I tried <syntaxhighlight> for code blocks but it didn't work. Is there another method, can you help me? Saliha96 (talk) 13:59, 2 February 2023 (UTC)
I added syntaxhighlight_GeSHi to my site. My site did not open as soon as I added it to the LocalSettings.php file. I'm using MediaWiki version 1.39. Saliha96 (talk) 07:19, 3 February 2023 (UTC)
Bringing the Contents to the side bar
Latest comment: 3 years ago2 comments2 people in discussion
How can I bring the "Contents" list to the side bar just like wikipedia? The Contents list is getting longer and longer that I have to scroll a lot. SakagamiYae (talk) 15:23, 2 February 2023 (UTC)
This is done via the Vector skin, in the Vector-2022 variant. Either you install and run an unstable software version of MediaWiki, or you wait for the most recent MediaWiki release to include this. Malyacko (talk) 15:49, 2 February 2023 (UTC)
Changed the Domain
Latest comment: 3 years ago3 comments3 people in discussion
I changed the domain that is linked to my wiki, the new domain works, but some times clicking on a internal link takes me to the old domain (which is not conected any where).
When I pass with the mouse on links in the side bar I see the new Domain, but when I pass on links in the home page I see the old domain and when clicking I get diverted to the old domain.
I tried to edit the page, but when I click on save I get diverted to the old domain.
Clicking on save and going to the wrong place generally means that $wgServer is incorrect in LocalSettings.php. generally internal links use relative urls and should not be affected by domain changes as long as the path stays the same. Bawolff (talk) 19:53, 2 February 2023 (UTC)
user name in use
Latest comment: 3 years ago2 comments2 people in discussion
hello, my name is Nesrin Sanad and I am a public figure, I tried to create an account with my name but it kept sayin that my name is in use! when I search for my name in Wikidata I don't find anything. can you please help to get my name available again so I can create my own account 213.147.115.43 (talk) 20:20, 2 February 2023 (UTC)
It looks like someone already registered that account, and then got blocked. You would have to use a different name. Possibly you could get a usurption but im not sure - see [[
You should probably ask the operators of the wiki in question. We don't even know which website you are talking about, or what blocklist they are using. Bawolff (talk) 05:21, 3 February 2023 (UTC)
Observe discussion
Latest comment: 3 years ago2 comments2 people in discussion
In our wiki we want to monitor the discussions of the entire wiki to be able to reply immediately to all discussions.
Latest comment: 3 years ago2 comments2 people in discussion
In printouts longish tabels do a pagebreak before when they do not fit on the paper. That in many cases results in one page with just a header and the table starting in the next page.
I added a class in mediawiki:Print.css and applied it to the table, but that doesnot affect anything.
Latest comment: 3 years ago1 comment1 person in discussion
RESOLVED
Fixed by installing an older version of PageImages.
Seems some file was missing in the newer versions.
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I tried to install some extensions, but after adding wfLoadExtension(... to the LocalSettings.php the wiki didn't load anymore. I removed wfLoad... and still get this error:
MediaWiki internal error.
Original exception: [56ebe3557aeb6dc567f9430c] /Main_Page Error: Interface 'MediaWiki\Hook\ParserModifyImageHTML' not found
Backtrace:
from /var/www/mediawiki/extensions/PageImages/includes/Hooks/ParserFileProcessingHookHandlers.php(38)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
StructuredDiscussions Extension: Is it possible to make a link that creates a discussion page with a specified name?
Latest comment: 3 years ago1 comment1 person in discussion
Hi!
I would like to use the StructuredDiscussions extension to create a discussion that is linked to a wiki page. Right now I have to go to Special Pages -> Enable Structured Discussions and enter the name of the discussion page I would like to create.
Now I would like to be able to embed a link on a wiki page that redirects to "Enable Structured Discussions" and ideally creates a page that has the name format '[wiki page] Discussion' (maybe there is a way to pre-fill the form that is opened when clicking on "Enable Structured Discussion" with the name of the page that linked me there?). Or maybe there is some kind of workaround for that.
I tried to find a way to make a form for creating a StructuredDiscussion page but it seems it's not possible to make a template for that.
Incorrect translation of a message on Special:ContentTranslation
Latest comment: 3 years ago2 comments2 people in discussion
Hello. Where is it possible to translate the message reporting the minutes passed since the translation draft was last edited (on the Special:ContentTranslation dashboard)? I would like to update the translation as it is currently incorrect and very annoying for Slovenian (sl). It says after (x minutes) instead of (x minutes) ago. The div class is 'cx-last-updated'. I tried hard to find it in translatewiki and elsewhere but to no avail. TadejM (talk) 19:43, 3 February 2023 (UTC)
Just for anyone who might come across this issue...
I had been using an older version of Mediawiki since it was just a local install. I upgraded to Mediawiki to 1.39.1, which required upgrading XAMPP to support php 7.4.33. It didn't solve the problem, but when I removed $wgTmpDirectory from LocalSettings.php, it worked. Redheadkelly (talk) 05:52, 5 February 2023 (UTC)
The Evelution theme broke my wiki
Latest comment: 3 years ago2 comments2 people in discussion
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I installed the Evelution theme, then it broke my wiki.
It just said
This page isn’t working
My wikis name is currently unable to handle this request.
Latest comment: 3 years ago2 comments1 person in discussion
I get the following message:
Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/clients/[...]/[mywiki]/extensions/SemanticMediaWiki/src/Utils/TemplateEngine.php on line 120.
Mediawiki behind Nginx proxy working inconsistently
Latest comment: 3 years ago7 comments3 people in discussion
I'm using the official Mediawiki Docker container to host a wiki on port 8181. I have Nginx Proxy Manager running as a reverse proxy for the Mediawiki.
Whenever I enter the URL in my browser, the page loads partially. Looking at the logs of the Mediawiki container, only status "200" is reported. The logs of Nginx Proxy Manager however, list many "connect() [...] failed (22: invalid argument) [...]", along with warnings about upstream prematurely closing the connection and "upstream temporarily disabled while connecting to upstream".
Does anyone have an idea what might be going wrong? I have verified that if I connect directly to port 8181, bypassing the proxy, everything works as expected. I've also tried all Nginx configuration that I've found online for people having a similar issue, to no avail sadly. 80.112.178.13 (talk) 19:50, 4 February 2023 (UTC)
Oh also, I've set the $wgCdnServers setting to allow for the local ip of the container:
Alright, that's at least a good pointer. How would Mediawiki behave if the CdnServers were misconfigured? Would it respond with 403? 80.112.178.13 (talk) 22:48, 4 February 2023 (UTC)
if you mean $wgCdnServers was misconfigured, it would just show the wrong ip address when you edit not logged in.
For anyone stumbling on this later, I figured out what was going wrong:
The official Mediawiki Docker image (tag 1.35.1) does not play well with Nginx' `proxy_http_version 1.1;`. This was set by default in our configuration, so fixing it to be `proxy_http_version 1.0;` fixed the problem (without significant performance downsides on the scale that we're using the wiki, namely an internal wiki for a small company).
This sounds like nginx isn't understanding the http 1.1 stream that it is receiving from MediaWiki. Common issues have been with http stream compression (there was a bug in MediaWiki at some time with this, you can disable this functionality however), and also issues with old versions of nginx.
You can check the sql file to see if it creates the database (see if it has a line like CREATE DATABASE, somewhere near the beginning after the SETs).
The username/password is for your db server. It might not be the same as the one for the old site. The old site db username/password would be in LocalSettings.php (look for $wgDBname, $wgDBpass ) Bawolff (talk) 04:04, 5 February 2023 (UTC)
Thx! Here's the beginning of the sql file. As you can see, it's a Softaculous backup. That scares me. I'm worried something will fail. Is it a MediaWiki .sql file? Or a Softaculous .sql file? Same thing?
It appears there's no CREATE, so i believe i need to create a new db. To avoid any changes to the .sql file, i assume i should use the same db name for the new db. And ensure the username/pw match the values in LocalSettings.php
-- Softaculous SQL Dump
-- http://www.softaculous.com
--
-- Host: localhost
-- Generation Time: February 6, 2021, 4:22 am
-- Server version: 10.3.27
-- PHP Version: 7.3.6
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
So yes, it probably wants you to create the database first.
The format is a mysql dump file. This is a pretty standard way to backup a database.
the first table in what you posted is namdd account_credentials. That is not a table name mediawiki uses, but it could be a mediawiki extension, or possibly the db backup has both mediawiki and non mediawiki things.
How to hide the sidebar in a mediawiki site when you are not logged in
Latest comment: 3 years ago3 comments3 people in discussion
On my mediawiki site, you need to log in to view and edit pages. But the sidebar is displayed even when you are not logged in. Since there is some confidential information, I would like to show the sidebar only when you are logged in.
Tagging as 'Needs more detail' / listing tagged pages
Latest comment: 3 years ago2 comments2 people in discussion
Hello,
I am new to mediawiki but I haven't been able to find what I am looking for. I know that when you link to a page that doesn't exist it shows up as "Wanted". But I am looking for a way to flag already created pages as 'needing more details'. While also having a page similar to the 'wanted pages' that I can go to and see a list of these tagged pages.
It would be Ideal if I could tag sections of a page as needing more details and have a page listing all of the page/sections that are flagged, but just having a list of pages that need attention would be fine.
I have tried looking though the list of extensions but I do not recall seeing what I was looking for. Perhaps someone in the community could point me in the right direction or tell me if such a thing exists.
Latest comment: 3 years ago3 comments2 people in discussion
RESOLVED
Running cleanupTitles.php was able to find and fix the 'ghost' article instances.
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.
Further to Issue in searching Wiki keyword I have taken a dive into the actual database and have found we have four instances of two articles with the same page title "Widget:<Widget name>". One is in ns=0 and one is ns=274. For example, Widget:Google Document. Their page ids are different.
Is there a proper way to delete the 'ghost' articles in ns=0?
I can load the 'ghost' version from the Article namespace using w/index.php?curid=xxx and by adding parameters check the page history &action=history and page information &action=info The later confirms the page is in the Article namespace.
I am not the original wiki admin and my best guess based on examine the page histories is the Extension:Widgets was installed early in the wiki's life, the articles were created, then the extension was disabled/removed, stranding these articles, possibly in ns=0.
A number of years later the Widgets extension was added/enabled and new versions of the Widgets:<Widget name> were created. I am left to again guess that the software did not make the connection to the older articles in ns=0.
I have tried appending the parameter &action=delete when viewing the ns=0 version of the articles but it again an Internal error and traceback. Peculiar Investor (talk) 03:46, 6 February 2023 (UTC)
It seems most likely that some of your mediawiki files are corrupt or didn't transfer properly. Try redownloading mediawiki. Bawolff (talk) 08:21, 8 February 2023 (UTC)
Close indexing in Robots.txt
Latest comment: 3 years ago2 comments2 people in discussion
Recently I noticed that the article editing is involved in the search. It used to be enough Disallow:/index.php ?, but now the directory address (visual and code editor) has changed and has become like this: /wiki/Nitrogen fertilizers?action=edit&veswitched=1&oldid=2968. How to disallow that directory in robots.txt ? Thanks for attention. Vladlen Terezhe (talk) 08:33, 6 February 2023 (UTC)
Unfortunately, if you haven't set an email and/or it hasn't been confirmed, there's no way to recover your account, because you can't demonstrate you own that 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.
Occurs once from my tablette with skin desktop version :
Erreur interne
Aller à la navigationAller à la recherche
[c6482d8b-b371-4217-9b3b-9bbc7ca5feff] 2023-02-06 10:16:19: Erreur fatale de type « Shellbox\ShellboxError »
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
Fatal exception of type 'Error' - Math extension
Latest comment: 3 years ago2 comments1 person in discussion
After installing the Math extension and trying to add a simple "<math>0</math>" command the page doesnt load properly and shows "[14d0dd0b3c5f7a55d370b9a3] 2023-02-06 12:41:34: Fataler Ausnahmefehler des Typs „Error“" which translates to Fatal exception of type 'Error'.
I installed a slightly newer version of Math and it works now! I propably missed something with the other install. Linzm99 (talk) 13:07, 6 February 2023 (UTC)
Missing revision after upgrade
Latest comment: 3 years ago3 comments2 people in discussion
I'm trying to upgrade an instance that is running 1.31.6. After I do the upgrade I get the following:
The revision #76147 of the page named "Main Page" does not exist.
This is usually caused by following an outdated history link to a page that has been deleted.
oh boy, welcome to the club. The support desk houses tons of these problems. From what I learned, and if you have a backup, upgrade incrementally. There is a database corruption that happens somewhere at around or after 1.35 (I believe), so upgrade in steps Rebastion2 (talk) 08:49, 7 February 2023 (UTC)
Thanks I tried a new upgrade but went to the latest Legacy LTS 1.35.9 and it seemed to have worked like I expected. I'll go with this for now. Oldmanwaterfall (talk) 13:59, 13 February 2023 (UTC)
Extensión:CreateWiki
Latest comment: 3 years ago2 comments2 people in discussion
Latest comment: 3 years ago4 comments2 people in discussion
I've migrated and upgraded an old mediawiki to 1.35.8 and am now fixing up the configuration. The content loads but file links aren't working properly (they are working on the old wiki). For example, [[File:Monitor_Code_Block.jpg]], does not show the file and instead creates a url file://Monitor_Code_Block.jpg, instead of the correct URL. I've tried running php maintenance\rebuildall.php but that didn't help. The files were copied to the upgraded wiki in the images folder. $wgScriptPath, $wgUploadPath and $wgServer seem to be set correctly. 196.24.216.2 (talk) 08:37, 7 February 2023 (UTC)
To expand on what I do see, the image replaced with a citation looking like "[[3]], where the inner [3] is a URL pointing to "file:dcom_.png" in this example (not even a valid file URL in fact). I've tried running php maintenance\refreshImageMetadata.php, but that didn't help either. 196.24.216.2 (talk) 13:04, 7 February 2023 (UTC)
Thanks, that was the problem! It included 'file:'. Changing that to 'file://' fixed my problem as per the bug description in your link. 196.24.216.2 (talk) 07:39, 8 February 2023 (UTC)
Problem with login and user data
Latest comment: 3 years ago1 comment1 person in discussion
I use MediaWiki for a private single user purpose in a cPanel managed commercial host, and used its upgrade mechanism to upgrade from 1.37.6 to 1.39.1. Before upgrade and after upgrade I was able to log into MW. However, there was a problem with one page, and I decided to revert to the complete backup of 1.37.6 cPanel had made for me to see if it worked there.
After this, I was not able to log in any more. I tried also to create a new user, and it succeeded partly - a new user was created, but the username I gave was not registered in the mySQL database, while my full name was, and after I logged out, there was no way to log back in.
Also, cPanel sets the wiki admin user name and password, and these did not work either anymore, and setting it again and saving through cPanel has no effect on the MW. I tried to upgrade to 1.39.1 again, and the same situation continues.
I am able to browse the mySQL with cPanel, and I see e.g. the user I created in mw_user as "Unknown user", but with my name as the "Full name". This unknown user is the only row in the mw_user table. My former two users (admin and normal) are visible in the mw_actor table.
Latest comment: 3 years ago5 comments3 people in discussion
MediaWiki 1.34.1
PHP 7.3.33-4+0~20220627.98+debian10~1.gbp40b3e4 (fpm-fcgi)
MySQL 5.7.36-39-log
ICU 65.1
Hello,
the wiki https://organindex.de
regularly shoes an older version for unregistered users, no clue why. And yes, I know there should have been a SW update long ago (we suffer from various bugs), but I'm not an admin and can't do anything here unfortunately.
If you have Varnish or some cache frontend, you'll have to configure it properly to accept PURGE requests from MediaWiki, and configure Manual:$wgCdnServers. Otherwise, you'll have to tell us what caching layers have you set up Ciencia Al Poder (talk) 19:06, 10 February 2023 (UTC)
Thanks, I save it (I'm just a normal user, no admin, no chance to do thelike, and they're not very competent or cooperative unfortunately). Perhaps for future - it's really irritating -Subbass1 (talk) 16:28, 12 February 2023 (UTC)
after an upgrade to the latetest version no data is displayed
Latest comment: 3 years ago2 comments2 people in discussion
Hi,
After an upgrade to the latest version no data is displayed
There is currently no text in this page. You can ....
If I migrate to a different host with an older version, it works fine.
What version of mediawiki, where did you obtain mediawiki from, how did you transfer it to your server (did you use ftp in text mode?) Which OS? Bawolff (talk) 19:49, 8 February 2023 (UTC)
Still need to know which operating system. Also what version of bash is installed on the server (what is the result of bash --versionBawolff (talk) 11:11, 29 September 2023 (UTC)
Latest comment: 3 years ago9 comments3 people in discussion
I have used Aplus.net as my hosting service for 20 years. And I have used MediaWiki on it for 15 years. Recently, I found my wiki not working and Aplus says they have discontinued support for MediaWiki totally. They would not even try to help me recover my data in readable form. Please help me recover my family history in readable form. Thanks in advance. Aiksiongkoh (talk) 19:30, 8 February 2023 (UTC)
We neither have any relation nor access to random third-party servers such as Aplus.net. You have to contact Aplus.net for content on Aplus.net, or use your local data backups if existing. Malyacko (talk) 20:52, 8 February 2023 (UTC)
I have the backup data and I need help to go from there to get a working wiki. I have the contents of mwiki folder and databases folder. Like I said Aplus.net absolutely refuses to help. Thanks. Aiksiongkoh (talk) 16:40, 9 February 2023 (UTC)
Uff, that software version is 14 years old. You could try to run php refreshLinks.php in the "maintenance" directory of MediaWiki. Malyacko (talk) 21:36, 9 February 2023 (UTC)
Your database dump seems to be severely screwed up. Page content is assigned to random pages, including MediaWiki: messages.
Database backup should consist of a single .sql file (maybe compressed in .zip/.gz/.xz/.7z) that you must restore on a new *empty* database server (database with no existing tables, etc).
You may try to use the same MediaWiki files that your host provided first, to see if you can have a working wiki with the same version you were using before. You seem to have two mediawiki installation folders, in askoh.com/public/mwiki and askoh.net/public/mwiki. If the version of MediaWiki was too old, it may not work due to recent PHP versions. In that case, you should upgrade to MediaWiki 1.35 (not 1.39, because of phab:T326071). Ciencia Al Poder (talk) 10:36, 11 February 2023 (UTC)
Andrew DeCaro
Latest comment: 3 years ago2 comments2 people in discussion
Whatever Wikipedia website this is about, you need to bring that up there on that website. mediawiki.org is for the MediaWiki software and not for policies of other websites. Malyacko (talk) 20:50, 8 February 2023 (UTC)
Can't log in after restore (RESOLVED)
Latest comment: 3 years ago11 comments4 people in discussion
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I am trying to recover a wiki (that is an older, but unknown version) that died for unknown reasons. I have an SQL dump, and the original LocalSettings.php file. After doing the SQL import, and copying the current version into the web directory (without the LocalSettings), the installer recognizes the files, takes a long time updating them, and apparently succeeds. The wiki appears to be working, more or less, but I can't log in using the account created during install. I have no idea why. Taustinoc (talk) 23:24, 8 February 2023 (UTC)
You should log in with the original account you had in the wiki. I don't think an upgrade with the install script would create a new user.
Since you mention the installer takes a long time, I wonder if it might be timeouting in the middle. Running maintenance/update.php would have been a safer bet.
If you can't log in with the existing user (and you are sure you have the right password), maybe it's some kind of incompatibility between password hashes, although I don't think there should be any. What's the type ofo hash of that user? As in, what's the beginning of the user_password field in the user table for that account? (the value before the second : defines the kind of hash) Platonides (talk) 01:34, 9 February 2023 (UTC)
update.php says everything is up to date. Unfortunately, I don't have the password for the original account, though I might be able to get it.
As an experiment, I reinstalled it as an open wiki, and tried to create a normal account. I get this error:
[314f82c5ce98981f49fd8cfc] 2023-02-09 04:26:28: Fatal exception of type "CannotCreateActorException"
Also, it won't let me create an account with a username of admin, because that already exists, but changePassword.php says "no such user: admin"
> [314f82c5ce98981f49fd8cfc] 2023-02-09 04:26:28: Fatal exception of type "CannotCreateActorException"
That definitely sounds not right. I would guess something went wrong with update.php. also, consider setting $wgShowExceptionDetails=true; in LocalSettings.php Bawolff (talk) 07:10, 9 February 2023 (UTC)
Well, I recovered the admin account. Had to dig the correct username out of the SQL dump and use changePassword.php, but I can now log in as the admin.
And, for reasons unknown, I can create new accounts how.
But there's a *lot* of pages that return "There is currently no text in this page. You can search for this page title in other pages, search the related logs, or create this page." However, if I do a search for content specific to that page in the SQL dump, it's clearly there.
And when I search for a page that isn't there, I get
[19d7ba82cd4f297e2334e1eb] /index.php?title=Special:Search&search=Code+%28roll+option%29 Wikimedia\Assert\PreconditionException: Precondition failed: This Title instance does not represent a proper page, but merely a link target.
Backtrace:
from /var/www/html/vendor/wikimedia/assert/src/Assert.php(49)
Well, I don't get errors when I try to create a page, but there were still a bunch of pages that have no content. Which turned out to be pages whose names started with lower case letters. $wgCapitalLinks and cleanupCaps.php seems to be taking care of that. If it also cleans up the template pages, I think I'm good. Thanks. Taustinoc (talk) 22:21, 9 February 2023 (UTC)
Well, cleanupCaps.php didn't fix the templates, but I can use Move to fix those. There aren't that many. So I'm good to go.
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
Template:Warning
Latest comment: 3 years ago4 comments2 people in discussion
Hello, I want to create templates like the wikipedia templates, that have the color band according to the use that can be given to them, they are maintenance templates, that I need, for the articles of my wiki.
How to make a table of contents on the left outside the reference information block (Old style).
Latest comment: 3 years ago2 comments2 people in discussion
How to make a table of contents on the left outside the reference information block (Old style).
From the information that I read on MediaWiki, it was written that when switching to the new Vector 2022 template, the table of contents will be located outside the article block, so that when scrolling it is always in front of your eyes Terinel (talk) 06:52, 9 February 2023 (UTC)
Please see "Post a new question" in the sidebar. I'm not sure what the question is as you mention both "old style" but also switching to the Vector 2022 skin (not "template")... Malyacko (talk) 10:59, 9 February 2023 (UTC)
No tumbnail
Latest comment: 3 years ago2 comments2 people in discussion
When i upload a PDF i become this errormessage:
Fehler beim Erstellen des Vorschaubildes: /bin/bash: /usr/bin/convert: No such file or directory GPL Ghostscript 9.27: **** Could not open temporary file /tmp/gs_NjDZF5 GPL Ghostscript 9.27: Could not open the scratch file /tmp/gs_NjDZF5. Error: /ioerror in --showpage-- Operand stack: 1 true Execution stack: %interp_exit .runexec2 --nostringval-- showpage --nostringval-- 2 %stopped_push --nostringval-- showpage showpage false 1 %stopped_push 1992 1 3 %oparray_pop 1991 1 3 %oparray_pop 1979 1 3 %oparray_pop 1980 1 3 %oparray_pop showpage showpage 2 1 1 showpage %for_pos_int_continue 1983 1 7 %oparray_pop showpage showpage 1840 0 9 %oparray_pop showpage showpage Dictionary stack: --dict:727/1123(ro)(G)-- --dict:1/20(G)-- --dict:80/200(L)-- --dict:80/200(L)-- --dict:133/256(ro)(G)-- --dict:316/325(ro)(G)-- --dict:31/32(L)-- --dict:6/9(L)-- --dict:7/20(L)-- Current allocation mode is local Last OS error: Broken pipe GPL Ghostscript 9.27: Unrecoverable error, exit code 1
Latest comment: 3 years ago1 comment1 person in discussion
Hello,
I'm horribly confused as I've setup remoteip on apache to use CF-Connecting-IP but unfortunately whenever I use CheckUser on MediaWiki (or when I tried to verify my email) it keeps sending the ip as 127.0.0.1.
Does anyone else have any ideas as to how this can be fixed?
Files with missing revision 0 cannot be restored in 1.39.1
Latest comment: 1 year ago10 comments3 people in discussion
Hi,
from a migration/update that did not work well around 2009 (I was not involved at that time) we (https://www.hammwiki.info) have a real lot of images with a missing revision 0, so the description etc. cannot be edited etc.
In MediaWiki 1.35.7 we had a good workaround: Deleting and restoring the images created the revision 0 and everything was fine.
In 1.39.1 the image cannot even be deleted, seems the Mediawiki checks for revision 0 what it did not in 1.35.7. DeleteBatch.php and Undelete.php in maintenance folder work, but do also not create the revision 0.
oh yeah, sorry to hear. I have the same problem, and scrolling through the support desk, so have many others. There seems to have been a breaking change somewhere at the 1.35 mark, and if that was skipped or didn't work correctly, some data in the actors table is irrestorably lost... it would also help me to be able to at least delete or overwrite these files.... Rebastion2 (talk) 17:36, 9 February 2023 (UTC)
"Will be fixed in MediaWiki 1.39.2" and "attribution data has been lost already" are sort of contradictory. What does the patch at T326071 fix for those already affected? Who has backups from years ago.... all very frustrating. Rebastion2 (talk) 15:42, 11 February 2023 (UTC)
You don't need backups from years ago. You need a backup from *before* the upgrade. You're supposed to backup your database before an upgrade (it's recommended on Manual:Upgrading), and in case you run into problems, restore it immediately, not leave your wiki in a totally broken state and continue overwriting backups from the broken state.
The fix in 1.39.2 is to prevent data loss. However, wikis that have been upgraded already from a very old versions, have lost their data and it's unrecoverable. Ciencia Al Poder (talk) 17:07, 11 February 2023 (UTC)
The problem is, if I don't notice these Revision 0 errors after an upgrade, like most people do if it only affects a handful of files/pages, then years go by until you do notice. I know I am sitting here like an idiot because the post-1.35 upgrader is all screwed up, but it's not years ago when 1.35 came out that I noticed the database corruption. In order to revert to a backup and not leave the wiki in a broken state, I need to know it's a broken state. And that's not always so clear or visible.... unfortunately. Rebastion2 (talk) 17:56, 11 February 2023 (UTC)
any suggestions on how to manually fix this if it just affects a handful of pages and files? in my mind, if I could erase all traces of a page/file in the database (as if it never existed) and then create it completely anew, that could solve it... or I enter some bogus actor/rev IDs... but not sure how to do that exactly without making things worse Rebastion2 (talk) 12:29, 20 February 2023 (UTC)
Help for these and related issues would be huge, maybe as a package of database integrity / repair tools MW maintenance could have in store? I lag several versions of MW behind because of these issues, and not every project has the budget to hire a database wiz to overcome them. Rebastion2 (talk) 12:15, 4 April 2024 (UTC)
Latest comment: 3 years ago6 comments3 people in discussion
{{{text}}}
My host required me to upgrade from PHP 7.4.30 to PHP 8.2 so i decided to update MediaWiki first from 1.37.? to 1.39.1. After merging the new release into my instance, blank page.
The DB is MySQL 8.0.28-0ubuntu0.20.04.3
PHP is currently 7.4.30 until this is fixed at any rate.
Fatal error: Uncaught Error: Class 'MediaWiki\HookContainer\HookRunner' not found in /home/wprecht/wayneprecht.org/wiki3/includes/Hooks.php:174
Stack trace:
8 /hom in /home/wprecht/wayneprecht.org/wiki3/includes/Hooks.php on line 174
I have no clue how to proceed. I currently have all extensions commented out and the LocalSettings file has all the recent changes. 1.37 had been working fine for at least 18 months, so something in the update. Finavar (talk) 21:19, 9 February 2023 (UTC)
Please install your wiki on a new, empty directory, and copy only LocalSettings.php, as explained in Manual:Upgrading.
Error creating thumbnail: File missing looks like MediaWiki can't access the file. Try opening a image from the File: page directly. You probably made a typo when copying the images folder (maybe you have an /images/images folder or similar). Ciencia Al Poder (talk) 10:18, 11 February 2023 (UTC)
Your summary said cannot use variable replacement, but that is not the issue here. You can use variable replacement if you want (as long as you define things in the right order), you just have to use the correct variables. E.g. for $wgUploadDirectory would be "$IP/images" and not $wgScriptPath based. Bawolff (talk) 03:16, 12 February 2023 (UTC)
Escuela en Mexico busca actualizar y mantener un wiki.
Latest comment: 3 years ago2 comments2 people in discussion
Saludos! Somos una escuela de desarrollo personal en Mexico. Buscamos un programador en Mexico que conoce bien Mediawiki quien puede actualizar y mantener nuestra Mediwiki instalacion. Es posible una relacion de mantenimiento y apoyo a largo plazo. psycan@gmail.com 187.189.33.78 (talk) 01:56, 10 February 2023 (UTC)
Latest comment: 3 years ago3 comments2 people in discussion
I want to upgrade to the latest LTS release 1.39.1 from 1.35.1, but I'm blocked by this method deprecated as of 1.38. Unfortunately, the 1.38 release notes do not allude to alternative methods for those deprecated.
The problem is that this method is used by Extension:IPBAuthLogin, and I want to try to figure out if it's possible to wrangle it into submission. I'm not a PHP coder, but I can usually figure things out or at least learn enough to ask the right questions.
I operate a closed wiki restricted to forum members only, so my forums act as a gateway to User access to the wiki. This method is a part of a function that essentially normalizes a wiki and forum user name to get a clean match without possibility of duplicating users, allowing authentication with my forum user names.
Any help would be appreciated, and if it's an easy patch, I can handle it. I'll even fork the extension and host. If not, I will need a PHP developer to help out. ~z929669Talk04:47, 10 February 2023 (UTC)
I was able to work through updates to my local of Extension:IPBAuthLogin with that method as a starting point, so thank you again!
Once I'm finished with all my testing, I will fork and update it.
Is it best practice to update the extension in place (will likely render it useless for MW versions < 1.38), or should that one be left "as is" for compatibility with 1.35-1.37? ~z929669Talk17:18, 10 February 2023 (UTC)
MediaWiki sending IP as 127.0.0.1
Latest comment: 3 years ago3 comments2 people in discussion
Hello, I'm having quite a few issues as MediaWiki is detecting my IP as 127.0.0.1 when I use CheckUser and when I was looking to confirm my IP.
I've already configured Apache2 following [2] and I am unsure as to why this is happening. I have already created a php test file and confirmed that the CF-Connecting-IP header is being passed.
In CheckUser, when I look to see all edits from my username, it is picking up the XFF header: "IP: 127.0.0.1 XFF: [omit]". But I don't know why it isn't just picking the CF-Connecting-IP plainly up as the user's IP.
Latest comment: 3 years ago2 comments1 person in discussion
RESOLVED
Found backup
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.
Dreamhost updated PHP to 8.1 today around noon and the removal of the each() function broke critical aspects of my wiki including saving pages. I have been running 1.26.3. Foolishly, I did not read the entire Upgrading manual page and instead of stepping through 1.35 first as it advises, I upgraded directly to 1.39.1. Installation threw Error 1054 Unknown Column many times and not knowing better I created the comments table manually, and repeated the process to create each unknown column that threw an Error 1054 so the upgrade would populate these values and proceed. The upgrade apparently succeeded but the website then failed to load, throwing an error. I have a backup of the database after the 1.39.1 install.
I then attempted to downgrade to 1.35.9 by replacing the install files, and after I manually recreated several columns and indices in templatelinks that had been dropped by the 1.39.1 install, the upgrade process succeeded. After all the upgrade process now was only looking for these columns and indices so it could drop them again anyway. But it is still throwing an error.
MediaWiki internal error.
Original exception: [Y@XAYqXqbAL2rW9YxfgqVwAAAAE] /index.php Wikimedia\Rdbms\DBQueryError from line 1713 of /home/(username)/wiki.(my website).com/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Error 1054: Unknown column 'page_restrictions' in 'field list' (mysql.(my website).com)
Function: LinkCache::fetchPageRow
Query: SELECT page_id,page_len,page_is_redirect,page_latest,page_restrictions,page_content_model FROM `page` WHERE page_namespace = 0 AND page_title = 'Main_Page' LIMIT 1
I also have made a backup of the database after this 1.35.9 install, and this is where I am currently. I do not have a backup of the database from before I began, but I do have a backup of the 1.26.3 install files. I can't downgrade back to 1.26.3 because it can't find the cur table. This was clearly not designed to be backwards compatible this way. It is clear that actual page text tables are unaffected by the upgrade. Based on the manual the upgrade essentially shuffled data around, like collating comments into the comments table, and most of what was affected was things like edit summaries, which I don't use or need. Commenting out extensions in LocalSettings has not done anything.
I'm not a mysql guy. I am doing this through Dreamhost and phpMyAdmin with Filezilla for the FTP. I don't know how to access a command prompt or a shell for this install.
What is the best course of action I should take to fix this? Do I run Maintenance/update.php through a command prompt somehow? Should I wipe the database and reimport one of the backups on a fresh install? Ancillation (talk) 05:05, 10 February 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
Problem changing User Account name
Latest comment: 3 years ago3 comments2 people in discussion
I want to change the account name I used when creating my wiki site, and I want it to be transferred to it on all the pages I've saved so far. Can you help me? Saliha96 (talk) 11:03, 10 February 2023 (UTC)
Latest comment: 3 years ago2 comments2 people in discussion
I've got 2 questions about changing the page appearance:
1) I do NOT like the new page appearance- there is much too wasted space in the margins, especially to the right. The option is given to change back, but when I select that, I get a page designed for a software professional. I just want to know WHICH option do I choose to get the old look back, since that IS offered? For Dummies version, please.
2) I do NOT want all of the detailed clutter that shows up on the Current Events page (right column). The only thing that I'm interested in on a regular basis is the By Topic listing. I don't WANT the Trials, Elections, Sports, etc. in EVERY visit. So I close the sections, but the NEXT time I visit the page, they're back. How do I make my selections PERMANENT (but reversible on the particular visit)? CFLeon (talk) 11:41, 10 February 2023 (UTC)
Go to w:Special:Preferences and in the appearence tab under skin select legacy vector.
That's a preformatted text not table. <syntaxhighlight lang='text'> text used to have a horizontal scroll bar but this was removed due to various issues with overflow. (See phab:T24060, for example) – Ammarpad (talk) 18:07, 11 February 2023 (UTC)
I didn't say it's open. The solution also is already what you see (that's to not add scrolling)
However, I think you can add the scrolling behavior for yourself by adding this in your common.css
pre, .mw-code {
white-space: pre;
overflow: auto;
}<pre> – [[User:Ammarpad|Ammarpad]] ([[User talk:Ammarpad|talk]]) 22:22, 11 February 2023 (UTC)
:Hmm, maybe we should add some inline styles for ascii art table diagrams, since word wrapping really wrecks them.
:Or maybe we should just replace them with real tables. [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 22:32, 11 February 2023 (UTC)
:Ammarpad proposal is magic; it works now on my tablette Galaxy with Desktop version.
:It does not work with mobile version. This halfway solution is better than nothing.
:Bawolff proposal is nice because we cannot request each user to put the workaround locally in his file.
:Thanks.
:[[User:Wladek92|Christian 🇫🇷 FR]] ([[User talk:Wladek92|talk]]) 08:52, 12 February 2023 (UTC)
== I need to solve this error ==
{{Archive top|result=seems resolved|status=resolved}}
I have problems logging into my user page, I need to fix a bug, or else I will have to uninstall MediaWiki and start again to install MediaWiki to fix the bug.
MediaWiki internal error.
Original exception: [f91a43cb11f8ada61c033f69] /mediawiki/index.php/Usuario:Lomeno_24 Wikimedia\Rdbms\DBQueryError from line 1713 of C:\xampp\htdocs\mediawiki\includes\libs\rdbms\database\Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Error 1146: Table 'mediawiki.wikiuser_profile' doesn't exist (localhost)
Function: UserProfile::getProfile
Query: SELECT * FROM `wikiuser_profile` WHERE up_actor = 1 LIMIT 1
Backtrace:
#0 C:\xampp\htdocs\mediawiki\includes\libs\rdbms\database\Database.php(1697): Wikimedia\Rdbms\Database->getQueryException(string, integer, string, string)
#1 C:\xampp\htdocs\mediawiki\includes\libs\rdbms\database\Database.php(1672): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)
#2 C:\xampp\htdocs\mediawiki\includes\libs\rdbms\database\Database.php(1241): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#3 C:\xampp\htdocs\mediawiki\includes\libs\rdbms\database\Database.php(1921): Wikimedia\Rdbms\Database->query(string, string, integer)
#4 C:\xampp\htdocs\mediawiki\includes\libs\rdbms\database\Database.php(2021): Wikimedia\Rdbms\Database->select(string, string, array, string, array, array)
#5 C:\xampp\htdocs\mediawiki\includes\libs\rdbms\database\DBConnRef.php(68): Wikimedia\Rdbms\Database->selectRow(string, string, array, string, array)
#6 C:\xampp\htdocs\mediawiki\includes\libs\rdbms\database\DBConnRef.php(331): Wikimedia\Rdbms\DBConnRef->__call(string, array)
#7 C:\xampp\htdocs\mediawiki\extensions\SocialProfile\UserProfile\includes\UserProfile.php(134): Wikimedia\Rdbms\DBConnRef->selectRow(string, string, array, string, array)
#8 C:\xampp\htdocs\mediawiki\extensions\SocialProfile\UserProfile\includes\UserProfileHooks.php(127): UserProfile->getProfile()
#9 C:\xampp\htdocs\mediawiki\includes\HookContainer\HookContainer.php(329): UserProfileHooks::onArticleFromTitle(Title, NULL, RequestContext)
#10 C:\xampp\htdocs\mediawiki\includes\HookContainer\HookContainer.php(132): MediaWiki\HookContainer\HookContainer->callLegacyHook(string, array, array, array)
#11 C:\xampp\htdocs\mediawiki\includes\HookContainer\HookRunner.php(753): MediaWiki\HookContainer\HookContainer->run(string, array)
#12 C:\xampp\htdocs\mediawiki\includes\page\Article.php(201): MediaWiki\HookContainer\HookRunner->onArticleFromTitle(Title, NULL, RequestContext)
#13 C:\xampp\htdocs\mediawiki\includes\page\Article.php(227): Article::newFromTitle(Title, RequestContext)
#14 C:\xampp\htdocs\mediawiki\includes\MediaWiki.php(422): Article::newFromWikiPage(WikiPage, RequestContext)
#15 C:\xampp\htdocs\mediawiki\includes\MediaWiki.php(311): MediaWiki->initializeArticle()
#16 C:\xampp\htdocs\mediawiki\includes\MediaWiki.php(947): MediaWiki->performRequest()
#17 C:\xampp\htdocs\mediawiki\includes\MediaWiki.php(547): MediaWiki->main()
#18 C:\xampp\htdocs\mediawiki\index.php(53): MediaWiki->run()
#19 C:\xampp\htdocs\mediawiki\index.php(46): wfIndexMain()
#20 {main}
Exception caught inside exception handler: [f91a43cb11f8ada61c033f69] /mediawiki/index.php/Usuario:Lomeno_24 Wikimedia\Rdbms\DBQueryError from line 1713 of C:\xampp\htdocs\mediawiki\includes\libs\rdbms\database\Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Error 1146: Table 'mediawiki.wikiuser_profile' doesn't exist (localhost)
Function: UserProfile::getProfile
Query: SELECT * FROM `wikiuser_profile` WHERE up_actor = 1 LIMIT 1
Backtrace:
#0 C:\xampp\htdocs\mediawiki\includes\libs\rdbms\database\Database.php(1697): Wikimedia\Rdbms\Database->getQueryException(string, integer, string, string)
#1 C:\xampp\htdocs\mediawiki\includes\libs\rdbms\database\Database.php(1672): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)
#2 C:\xampp\htdocs\mediawiki\includes\libs\rdbms\database\Database.php(1241): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#3 C:\xampp\htdocs\mediawiki\includes\libs\rdbms\database\Database.php(1921): Wikimedia\Rdbms\Database->query(string, string, integer)
#4 C:\xampp\htdocs\mediawiki\includes\libs\rdbms\database\Database.php(2021): Wikimedia\Rdbms\Database->select(string, string, array, string, array, array)
#5 C:\xampp\htdocs\mediawiki\includes\libs\rdbms\database\DBConnRef.php(68): Wikimedia\Rdbms\Database->selectRow(string, string, array, string, array)
#6 C:\xampp\htdocs\mediawiki\includes\libs\rdbms\database\DBConnRef.php(331): Wikimedia\Rdbms\DBConnRef->__call(string, array)
#7 C:\xampp\htdocs\mediawiki\extensions\SocialProfile\UserProfile\includes\UserProfile.php(134): Wikimedia\Rdbms\DBConnRef->selectRow(string, string, array, string, array)
#8 C:\xampp\htdocs\mediawiki\extensions\SocialProfile\UserProfile\includes\UserProfileHooks.php(127): UserProfile->getProfile()
#9 C:\xampp\htdocs\mediawiki\includes\HookContainer\HookContainer.php(329): UserProfileHooks::onArticleFromTitle(Title, NULL, SkinVector)
#10 C:\xampp\htdocs\mediawiki\includes\HookContainer\HookContainer.php(132): MediaWiki\HookContainer\HookContainer->callLegacyHook(string, array, array, array)
#11 C:\xampp\htdocs\mediawiki\includes\HookContainer\HookRunner.php(753): MediaWiki\HookContainer\HookContainer->run(string, array)
#12 C:\xampp\htdocs\mediawiki\includes\page\Article.php(201): MediaWiki\HookContainer\HookRunner->onArticleFromTitle(Title, NULL, SkinVector)
#13 C:\xampp\htdocs\mediawiki\includes\page\Article.php(227): Article::newFromTitle(Title, SkinVector)
#14 C:\xampp\htdocs\mediawiki\includes\skins\Skin.php(2507): Article::newFromWikiPage(WikiPage, SkinVector)
#15 C:\xampp\htdocs\mediawiki\includes\skins\SkinTemplate.php(354): Skin->getFooterLinks()
#16 C:\xampp\htdocs\mediawiki\includes\skins\SkinTemplate.php(127): SkinTemplate->prepareQuickTemplate()
#17 C:\xampp\htdocs\mediawiki\includes\skins\SkinTemplate.php(144): SkinTemplate->generateHTML()
#18 C:\xampp\htdocs\mediawiki\includes\OutputPage.php(2622): SkinTemplate->outputPage()
#19 C:\xampp\htdocs\mediawiki\includes\exception\MWExceptionRenderer.php(153): OutputPage->output()
#20 C:\xampp\htdocs\mediawiki\includes\exception\MWExceptionRenderer.php(65): MWExceptionRenderer::reportHTML(Wikimedia\Rdbms\DBQueryError)
#21 C:\xampp\htdocs\mediawiki\includes\exception\MWExceptionHandler.php(106): MWExceptionRenderer::output(Wikimedia\Rdbms\DBQueryError, integer)
#22 C:\xampp\htdocs\mediawiki\includes\exception\MWExceptionHandler.php(185): MWExceptionHandler::report(Wikimedia\Rdbms\DBQueryError)
#23 C:\xampp\htdocs\mediawiki\includes\MediaWiki.php(580): MWExceptionHandler::handleException(Wikimedia\Rdbms\DBQueryError, string)
#24 C:\xampp\htdocs\mediawiki\index.php(53): MediaWiki->run()
#25 C:\xampp\htdocs\mediawiki\index.php(46): wfIndexMain()
#26 {main} [[User:Lomeno 24|Lomeno 24]] ('''Contact me''' [[User talk:Lomeno 24|here]]) 09:07, 11 February 2023 (UTC)
:Run [[Manual:update.php|update.php]] script – [[User:Ammarpad|Ammarpad]] ([[User talk:Ammarpad|talk]]) 09:51, 11 February 2023 (UTC)
{{Archive bottom}}
== CSS class for logged in users ==
Hello, I noticed that the "body" element has different CSS classes depending on the current namespace, action (e.g. action-edit), etc.
Is there a way to add a class depending on whether the user is logged in or not?
This would help in creating the style on my wiki.
Thank you! [[User:Mruczekdd|Mruczekdd]] ([[User talk:Mruczekdd|talk]]) 18:43, 11 February 2023 (UTC)
:I'm not sure about that, but you can use the page MediaWiki:Group-user.css for CSS you only want to show up for logged in users. [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 20:22, 11 February 2023 (UTC)
:I found some code in another thread, changed it a bit and it seems to be working
:LocalSettings.php:<syntaxhighlight lang='text'>
$wgHooks['OutputPageBodyAttributes'][] = 'wfAddLoggedInClass';
function wfAddLoggedInClass( $out, $sk, &$bodyAttrs) {
$user = RequestContext::getMain()->getUser();
if ( $user->isRegistered() ) {
$bodyAttrs['class'] .= ' loggedin';
}
return true;
}
</syntaxhighlight>But your suggestion is much easier and probably won't break with updates. Thanks. :) [[User:Mruczekdd|Mruczekdd]] ([[User talk:Mruczekdd|talk]]) 20:23, 11 February 2023 (UTC)
== Cross-wiki transclusion ==
How do I set up my wiki so I can transclude templates across wikis like you can with links? ~ [[User:The last available username|The last available username]] ([[User talk:The last available username|talk]]) 21:29, 11 February 2023 (UTC)
:See [[manual:$wgEnableScaryTranscluding]] [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 21:40, 11 February 2023 (UTC)
:{{ping|Bawolff}} Thanks, but does that work with CentralAuth (which is what I am using)? [[User:The last available username|The last available username]] ([[User talk:The last available username|talk]]) 23:37, 11 February 2023 (UTC)
:It should not be affected by central auth, so it should work fine [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 00:07, 12 February 2023 (UTC)
:Can I configure it to only allow ''some'' wikis to be transcluded? [[User:The last available username|The last available username]] ([[User talk:The last available username|talk]]) 00:23, 12 February 2023 (UTC)
:Yes. There is a field in the interwiki table you can set (or use [[extension:Interwiki]]) [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 03:21, 12 February 2023 (UTC)
== Images don't show after server transfer ==
{{Archive top|result=Needed to add an override to the <Directory> section of the Apache config file. Apache error was <code>IfModule not allowed here</code>. An <code>AllowOverride</code> ALL in the right place fixed it.|status=resolved}}
MediaWiki 1.39.1
PHP 8.1.2-1ubuntu2.10 (apache2handler)
MySQL 8.0.32-0ubuntu0.22.04.2
Apache version 2.4.52
Example page: http://rptools.hyperbooks.com/index.php/mapTool_User_Interface
I am trying to move a wiki from a test server to a live server. Everything works perfectly on the test server, but images don't show on the live server. Both servers are Ubuntu 22.04 server, and both were set up identically using the LAMP server install in apt.
The database import seems to have gone without error. Both tables with "image" in their name show the same data. The images are there in the images directory. Permissions are currently set to 777, so permission issues seem unlikely. File Upload says it works, but I can't find the file anywhere in the images directory. (It might be there, in all the folders, I can't find it.)
cleanupImages.php only lists 42 images, but there are over 2,000 (and the show in the File list). No idea what that means.
rebuildImages.php does nothing. as does rebuildall.php.
If I click on a missing image, it takes me to the File: page, where the thumbnail doesn't show. If I click on the file there, I get:
<code>Internal Server Error</code>
<code>The server encountered an internal error or misconfiguration and was unable to complete your request.</code>
<code>Please contact the server administrator at [no address given] to inform them of the time this error occurred, and the actions you performed just before this error.</code>
<code>More information about this error may be available in the server error log.</code>
<code>Apache/2.4.52 (Ubuntu) Server at rptools.hyperbooks.com Port 80</code>
I even tried renaming LocalSettings.php and rebuilding it, but I get the same errors.
I'm at a loss where to go next. [[User:Taustinoc|Taustinoc]] ([[User talk:Taustinoc|talk]]) 22:31, 11 February 2023 (UTC)
:What does the apache error log say?
:Sometimes this can be an issue with the .htaccess file in the images directory. [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 22:34, 11 February 2023 (UTC)
:IfModule not allowed here. Which was trivial to correct, once someone smart got me to look at the logs the error message said to look at.
:Thanks you. [[User:Taustinoc|Taustinoc]] ([[User talk:Taustinoc|talk]]) 22:56, 11 February 2023 (UTC)
{{Archive bottom}}
== Sub-CentralAuth ==
Is it possible to set up a sub-instance of CentralAuth within an instance of CentralAuth? Like a sub-interwiki with their own stewards that only affect the wikis in the subsystem (but are also still effected by the main stewards). [[User:The last available username|The last available username]] ([[User talk:The last available username|talk]]) 23:39, 11 February 2023 (UTC)
:There's support for having global groups that are only active on some wikis. [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 03:22, 12 February 2023 (UTC)
== Loss of session data when editing in 1.39.1 ==
*MediaWiki 1.39.1
*PHP 8.1.14 (apache2handler)
*MySQL 8.0.32 Ubuntu 20.04.2
After updating from LTS 1.35.8 to 1.39.1, I have been encountering intermittent loss of session data when editing. The message is:
----Sorry! We could not process your edit due to a loss of session data.
''Because (my wiki) has raw HTML enabled, the preview is hidden as a precaution against JavaScript attacks.''
'''If this is a legitimate edit attempt, please try again.''' If it still does not work, try logging out and logging back in, and check that your browser allows cookies from this site.
----Refreshing the page results in a successful save and I remain logged in. I get this error when editing pages or using the ReplaceText extension.
I enabled a debug log as described in [[Manual:How to debug]], but could not find any errors. I check the "Keep me logged in" box at login.
My Localhost.php cache settings are:
<code>$wgMainCacheType = CACHE_ACCEL;</code>
<code>$wgSessionCacheType = CACHE_ACCEL;</code>
I have a multiple server configuration with a load-balancing front end across multiple traffic handling servers connected to to a single server containing the database and files on the backend.
How can this be debugged?
(For security - Raw HTML is enabled, but access is restricted to admins using Extension:SaferHTMLTag) [[User:Lady G2016|Lady G2016]] ([[User talk:Lady G2016|talk]]) 01:36, 12 February 2023 (UTC)
:> I have a multiple server configuration with a load-balancing front end across multiple traffic handling servers connected to to a single server containing the database and files on the backend.
:If you have more than one web server (by which i mean actual webserver, you can have other servers if they aren't php servers) you cannot use CACHE_ACCEL. Use memcached or redis instead.
:P.s. SaferHTMLTag extension is not very safe and pretty easy to bypass. [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 03:19, 12 February 2023 (UTC)
:Thank you very much! My problem is intermittent and difficult to reproduce. I will change my cache as you suggest.
:I will reply with a status when I am confident of my results. [[User:Lady G2016|Lady G2016]] ([[User talk:Lady G2016|talk]]) 11:58, 12 February 2023 (UTC)
:Generally if you had multiple web servers the issue would happen a lot (since CACHE_ACCEL is not shared between webservers). If its just happening rarely or you just have 1 web server,it could be apcu.shm_size is too small in php.ini. alternatively you can set $wgSessionCacheType =CACHE_DB; which is slower but more reliable. [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 00:57, 14 February 2023 (UTC)
:I have configured my cache to use memcached and can report that I have had no further loss of session data. (I do not want to experiment with PHP cache settings, as there are other PHP applications on my servers.) [[User:Lady G2016|Lady G2016]] ([[User talk:Lady G2016|talk]]) 20:13, 16 February 2023 (UTC)
== How can I add sister projects to my wiki? ==
[[File:Proyectos Wikimedia.png|thumb]]
Today I want to learn how to create my wikis for personal and business projects, I would like to know how I can add a list of sister projects in my first wiki to add my own content, once MediaWiki is installed, like wikipedia, thank you. [[User:Lomeno 24|Lomeno 24]] ('''Contact me''' [[User talk:Lomeno 24|here]]) 02:24, 12 February 2023 (UTC)
:I think you may be looking for [[Manual:Interface/Sidebar]]. [[User:The last available username|The last available username]] ([[User talk:The last available username|talk]]) 02:38, 12 February 2023 (UTC)
:on wikimedia wikis, this comes from [[extension:Wikibase]] [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 03:16, 12 February 2023 (UTC)
== I have created a page. Excuse me, how to add a translation to this page? ==
I have created a page. Excuse me, how to add a translation to this page? [[User:维基佛祖|维基佛祖]] ([[User talk:维基佛祖|talk]]) 05:50, 12 February 2023 (UTC)
:please fast answer me,thanks. [[User:维基佛祖|维基佛祖]] ([[User talk:维基佛祖|talk]]) 08:44, 12 February 2023 (UTC)
:How to use this tag? [[User:维基佛祖|维基佛祖]] ([[User talk:维基佛祖|talk]]) 09:35, 12 February 2023 (UTC)
:Please see "Post a new question" in the side bar, and be more specific. Do you have the "Translate" extension installed? [[User:Malyacko|Malyacko]] ([[User talk:Malyacko|talk]]) 10:35, 12 February 2023 (UTC)
:I couldn't install the extension. When I created the cx server, the system recovery required the server to be restarted. I clicked on "restart the server" and the system refreshed automatically, and then there was an endless loop.
:I am Chinese, so I suggest you reply in Chinese. [[User:维基佛祖|维基佛祖]] ([[User talk:维基佛祖|talk]]) 10:42, 12 February 2023 (UTC)
:Cx server is for content translation extension which is different from [[Extension:Translate]] [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 11:13, 12 February 2023 (UTC)
:How do I download it?
:I did not find a download link on this page. [[User:维基佛祖|维基佛祖]] ([[User talk:维基佛祖|talk]]) 11:44, 12 February 2023 (UTC)
:I have now found the download link, I will try to install it, if I have any questions, I will continue to reply, thank you for your help. [[User:维基佛祖|维基佛祖]] ([[User talk:维基佛祖|talk]]) 11:49, 12 February 2023 (UTC)
:Oh no!I can not access my wiki,system send a warning and a fatal error:
:Warning: Illegal string offset 'name' in G:\UwAmp\www\GWiki\includes\registration\ExtensionProcessor.php on line 232
:Fatal error: Uncaught ExtensionDependencyError: Translate is not compatible with the current MediaWiki core (version 1.37.1), it requires: >= 1.38. Translate requires UniversalLanguageSelector to be installed. in G:\UwAmp\www\GWiki\includes\registration\ExtensionRegistry.php:404 Stack trace: #0 G:\UwAmp\www\GWiki\includes\registration\ExtensionRegistry.php(228): ExtensionRegistry->readFromQueue(Array) #1 G:\UwAmp\www\GWiki\includes\Setup.php(168): ExtensionRegistry->loadFromQueue() #2 G:\UwAmp\www\GWiki\includes\WebStart.php(90): require_once('G:\\UwAmp\\www\\GWiki...') #3 G:\UwAmp\www\GWiki\index.php(45): require('G:\\UwAmp\\www\\GWiki...') #4 {main} thrown in G:\UwAmp\www\GWiki\includes\registration\ExtensionRegistry.php on line 404 [[User:维基佛祖|维基佛祖]] ([[User talk:维基佛祖|talk]]) 11:53, 12 February 2023 (UTC)
::MediaWiki 1.37 is no longer officially supported. I would generally suggest you upgrade to 1.39.
::If you really need to use 1.37, you can try the version from https://github.com/wikimedia/mediawiki-extensions-Translate/archive/refs/heads/REL1_37.zip (but that one doesn't include composer dependencies which may cause 'missing class' errors) [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 12:29, 13 February 2023 (UTC)
:I will try to install UniversalLanguageSelector and older versions of the Translate extension [[User:维基佛祖|维基佛祖]] ([[User talk:维基佛祖|talk]]) 12:01, 12 February 2023 (UTC)
:New error:
:Deprecated: Use of Wikimedia\Rdbms\LoadBalancer::hasOrMadeRecentMasterChanges was deprecated in MediaWiki 1.37. [Called from TranslateUtils::shouldReadFromMaster in G:\UwAmp\www\GWiki\extensions\Translate\TranslateUtils.php at line 520] in G:\UwAmp\www\GWiki\includes\debug\MWDebug.php on line 375
:MediaWiki inter [[User:维基佛祖|维基佛祖]] ([[User talk:维基佛祖|talk]]) 12:13, 12 February 2023 (UTC)
::Deprecated warnings are not errors, but warnings only. [[User:Malyacko|Malyacko]] ([[User talk:Malyacko|talk]]) 14:45, 12 February 2023 (UTC)
:According to the error content, I found that the version is not appropriate. I need an extension for version 1.37.1. [[User:维基佛祖|维基佛祖]] ([[User talk:维基佛祖|talk]]) 12:15, 12 February 2023 (UTC)
:If you still run 1.37, then you run an insecure outdated unsupported version. Please see [[Download]] and [[Manual:Upgrading]]. [[User:Malyacko|Malyacko]] ([[User talk:Malyacko|talk]]) 14:44, 12 February 2023 (UTC)
:I'll try. [[User:维基佛祖|维基佛祖]] ([[User talk:维基佛祖|talk]]) 23:45, 12 February 2023 (UTC)
:I am using a Windows host, but I did not find a detailed tutorial for the Windows host [[User:维基佛祖|维基佛祖]] ([[User talk:维基佛祖|talk]]) 23:47, 12 February 2023 (UTC)
:Tutorial for what esactly? Which documentation (link!) do you follow? At which sentence are you stuck? Please be way more specific and clear - thanks! [[User:Malyacko|Malyacko]] ([[User talk:Malyacko|talk]]) 02:55, 13 February 2023 (UTC)
:Sorry, my description may not be clear. I don't know how the Windows host should run the Linux command. Your manual does not provide an update method for the Windows host.
:I am Chinese, so I suggest you reply in Chinese. [[User:维基佛祖|维基佛祖]] ([[User talk:维基佛祖|talk]]) 07:08, 13 February 2023 (UTC)
:The commands are the same for windows command prompt as they are for linux. However, on windows command line php might not be installed automatically (or it might not be in PATH) which complicates matters.
:If you can't figure out the commandline you can use the web upgrader. See https://www.mediawiki.org/wiki/Manual:Upgrading#Web_browser [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 12:34, 13 February 2023 (UTC)
:OK, excuse me, will my database be replaced by update.php? [[User:维基佛祖|维基佛祖]] ([[User talk:维基佛祖|talk]]) 23:16, 13 February 2023 (UTC)
:We encourage people to make a backup just in case, but it should just update it not replace. No data will be lost. [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 00:51, 14 February 2023 (UTC)
:May I ask if the Translate extension needs to be installed in the database? when I loaded it, the system output a fatal error of type DBQuery [[User:维基佛祖|维基佛祖]] ([[User talk:维基佛祖|talk]]) 05:45, 14 February 2023 (UTC)
:yes, you need to run the MW upgrader after installing it. [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 06:27, 14 February 2023 (UTC)
== Mediawiki <-> Phabricator : links task id <-> bug id ==
{{Flow summary|Add 2000 to the bug number or go to bugzilla.wikimedia.org/bug_number.}}
Hi all, Mediawiki references tasks in Phabricator as for example -> https://phabricator.wikimedia.org/T24060
Phabricator in this task references bugs id as ->
This bug has been marked as a duplicate of bug 414 ***
This bug has been marked as a duplicate of bug 260 ***
but provides no link for that. How do readers retrieve the final informations ? May be to add some lines on bug management compared to tasks use. Thanks.
[[User:Wladek92|Christian 🇫🇷 FR]] ([[User talk:Wladek92|talk]]) 08:30, 12 February 2023 (UTC)
:There's [[Talk:Phabricator/Help]] for help about Phabricator. FYI, there's probably nothing that can be done about these orphaned references. The comments where imported from old platform used by Wikimedia before Phabricator. – [[User:Ammarpad|Ammarpad]] ([[User talk:Ammarpad|talk]]) 08:45, 12 February 2023 (UTC)
:You can just add 2000 to the number. Bug 414 = [[phab:T2414]].
:Also https://bugzilla.wikimedia.org/414 will redirect. [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 11:16, 12 February 2023 (UTC)
== How to custom Skins for Categories ==
I want to change Default Categories Design.
[[:Category:Category|Category:Category - MediaWiki]]
hxxps://tinyurl.com/2p3aq6gc
I want to Change like.
hxxps://tinyurl.com/2nnntv7q
How can We do that. [[User:Dtuhin|Dtuhin]] ([[User talk:Dtuhin|talk]]) 13:44, 12 February 2023 (UTC)
:See [[How to become a MediaWiki hacker]] [[User:Malyacko|Malyacko]] ([[User talk:Malyacko|talk]]) 13:58, 12 February 2023 (UTC)
== 1.39.1 installation: update.php can't create linktable ==
{{Archive top|result=Mysql issue. Orphaned linktarget.ibd file (missing it's companion linktarget.frm file). I removed the orphaned file, and then rerunning update.php seems to have regnerated the pair.|status=resolved}}
I'm getting the following error when upgrading to mediawiki-1.39.1 while using mw-config and an existing 1.38.4 database. Note: I'm attempting to create a completely new LocalSettings.php file, as my existing 1.38.4 LocalSettings.php seems to break in several places during a normal upgrade process.
...
Creating linktarget table...
An error occurred:
Error 1005: Can't create table `mediawiki`.`linktarget` (errno: 184 "Tablespace already exists")
Function: Wikimedia\Rdbms\Database::sourceFile( /opt/homebrew/var/www/mediawiki-1.39.1/maintenance/archives/patch-linktarget.sql )
Query: CREATE TABLE `linktarget` (
...
'''Question''': The linktarget table does not seem to currently exist in the mediawiki DB. Why is it saying it already exists? What is the fix?
'''Environment''':
1) This is an intranet wiki, not accessible from the Internet
2) Upgrading to mediawiki-1.39.1 from mediawiki-1.38.4
2) PHP 8.2.2 (cli) (built: Feb 5 2023 12:38:16) (NTS)
3) mysql Ver 15.1 Distrib 10.10.3-MariaDB, for osx10.18 (arm64) using EditLine wrapper
Current Tables in mediawiki with "link" in the name:
<code>MariaDB [mediawiki]> show tables like "%link%";</code>
<code>+------------------------------+</code>
<code>| Tables_in_mediawiki (%link%) |</code>
<code>+------------------------------+</code>
<code>| categorylinks |</code>
<code>| externallinks |</code>
<code>| imagelinks |</code>
<code>| iwlinks |</code>
<code>| langlinks |</code>
<code>| pagelinks |</code>
<code>| smw_query_links |</code>
<code>| templatelinks |</code>
<code>+------------------------------+</code> [[User:WMBD|Brian]] ([[User talk:WMBD|talk]]) 20:08, 12 February 2023 (UTC)
:I think table and tablespace are different. I think tablespace is like the files on the filesystem. You might have better luck asking on a mysql specific forum. [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 23:05, 12 February 2023 (UTC)
:It was a mysql issue. There was an orphaned linktarget.ibd file (missing it's companion linktarget.frm file). I removed the orphaned linktarget.ibd file and restarted, and the pair seems to have been regenerated during the update.php phase. [[User:WMBD|Brian]] ([[User talk:WMBD|talk]]) 17:14, 13 February 2023 (UTC)
{{Archive bottom}}
== I have added code to activate WikiEditor on LocalSettings.php, but why can't I use WikiEditor? ==
I have added code to activate WikiEditor on LocalSettings.php, but why can't I use WikiEditor? [[User:维基佛祖|维基佛祖]] ([[User talk:维基佛祖|talk]]) 23:58, 12 February 2023 (UTC)
:Nobody knows without much much more information. Please see "Post a new question" in the sidebar. And please explain what exact code you added to "activate". And what happens that makes you think that you can't use WikiEditor, and why. [[User:Malyacko|Malyacko]] ([[User talk:Malyacko|talk]]) 02:54, 13 February 2023 (UTC)
:{{re|维基佛祖}} One possibility here is that there's a separate JavaScript error that's preventing the loading of WikiEditor. If you open your web browser's developer console, you might see some error messages. Paste those here and maybe it'll help with debugging. (And yeah, as Malyacko says, please be verbose when describing problems!) [[User:Samwilson|Sam]] [[User_talk:Samwilson|Wilson]] 08:31, 13 February 2023 (UTC)
:Well, I'll tell you quietly, I often use this debugging tool to test my JavaScript code, and most of my code in common.js is tested in the debugging console, but it's strange that you like me to talk at length when describing problems.
:(WikiEditor runs perfectly before loading some other extensions, but does not highlight the wikitext syntax.) [[User:维基佛祖|维基佛祖]] ([[User talk:维基佛祖|talk]]) 08:44, 13 February 2023 (UTC)
:I've added almost all the extensions that came with MediaWiki 1.37.1, so there may be some compatibility errors between extensions, right? [[User:维基佛祖|维基佛祖]] ([[User talk:维基佛祖|talk]]) 08:47, 13 February 2023 (UTC)
:I am Chinese, my English is not very good, if you can not understand my question, please reply me, thank you [[User:维基佛祖|维基佛祖]] ([[User talk:维基佛祖|talk]]) 08:48, 13 February 2023 (UTC)
:There is no output from the console. I will try to add "error_reporting(E_ALL)" to "include/WebStart.php" to catch more PHP underlying errors. [[User:维基佛祖|维基佛祖]] ([[User talk:维基佛祖|talk]]) 08:52, 13 February 2023 (UTC)
:Sorry, there is no problem at the bottom layer of PHP, so what could be the problem now? [[User:维基佛祖|维基佛祖]] ([[User talk:维基佛祖|talk]]) 08:55, 13 February 2023 (UTC)
:System send some warning(on DevTools console):
:<small>
:<syntaxhighlight lang='text'>
[Violation] 'requestIdleCallback' handler took <N>ms
VM47:167 This page is using the deprecated ResourceLoader module "jquery.throttle-debounce".
Please use OO.ui.throttle/debounce instead. See https://phabricator.wikimedia.org/T213426
(anonymous) @ VM47:167
runScript @ load.php?lang=zh-cn&modules=startup&only=scripts&raw=1&skin=monobook:12
execute @ load.php?lang=zh-cn&modules=startup&only=scripts&raw=1&skin=monobook:13
doPropagation @ load.php?lang=zh-cn&modules=startup&only=scripts&raw=1&skin=monobook:6
requestIdleCallback (async)
setAndPropagate @ load.php?lang=zh-cn&modules=startup&only=scripts&raw=1&skin=monobook:7
implement @ load.php?lang=zh-cn&modules=startup&only=scripts&raw=1&skin=monobook:19
(anonymous) @ load.php?lang=zh-cn&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=monobook&version=17fur:1
load.php?lang=zh-cn&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=monobook&version=17fur:50 [Violation] 'setTimeout' handler took 164ms
load.php?lang=zh-cn&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=monobook&version=17fur:50 [Violation] 'setTimeout' handler took 55ms
load.php?lang=zh-cn&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=monobook&version=17fur:401 This page is using the deprecated ResourceLoader module "jquery.ui".
Please use OOUI instead.
mw.loader.implement.css @ load.php?lang=zh-cn&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=monobook&version=17fur:401
runScript @ load.php?lang=zh-cn&modules=startup&only=scripts&raw=1&skin=monobook:12
(anonymous) @ load.php?lang=zh-cn&modules=startup&only=scripts&raw=1&skin=monobook:13
flushCssBuffer @ load.php?lang=zh-cn&modules=startup&only=scripts&raw=1&skin=monobook:4
requestAnimationFrame (async)
addEmbeddedCSS @ load.php?lang=zh-cn&modules=startup&only=scripts&raw=1&skin=monobook:5
execute @ load.php?lang=zh-cn&modules=startup&only=scripts&raw=1&skin=monobook:13
doPropagation @ load.php?lang=zh-cn&modules=startup&only=scripts&raw=1&skin=monobook:6
requestIdleCallback (async)
setAndPropagate @ load.php?lang=zh-cn&modules=startup&only=scripts&raw=1&skin=monobook:7
implement @ load.php?lang=zh-cn&modules=startup&only=scripts&raw=1&skin=monobook:19
(anonymous) @ load.php?lang=zh-cn&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=monobook&version=17fur:1
[Violation] 'requestAnimationFrame' handler took 610ms
[Violation] Forced reflow while executing JavaScript took 83ms
[Violation] 'requestAnimationFrame' handler took 217ms
load.php?lang=zh-cn&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=monobook&version=17fur:50 [Violation] 'setTimeout' handler took 96ms
[Violation] 'requestAnimationFrame' handler took 80ms
load.php?lang=zh-cn&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=monobook&version=17fur:50 [Violation] 'setTimeout' handler took 457ms
</syntaxhighlight>
:</small> [[User:维基佛祖|维基佛祖]] ([[User talk:维基佛祖|talk]]) 09:05, 13 February 2023 (UTC)
::These are warnings not errors, so shouldn't affect WikiEditor [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 12:22, 13 February 2023 (UTC)
:{{tq|WikiEditor runs perfectly before loading some other extensions, but does not highlight the wikitext syntax.}} Do you mean that you get the toolbar appearing, and that it functions correctly, but that you're not getting syntax highlighting? That is provided by a different extension: [[Extension:CodeMirror]]. [[User:Samwilson|Sam]] [[User_talk:Samwilson|Wilson]] 12:05, 13 February 2023 (UTC)
:Now you can't even display the toolbar, and WikiEditor looks like it's not loaded. [[User:维基佛祖|维基佛祖]] ([[User talk:维基佛祖|talk]]) 12:13, 13 February 2023 (UTC)
:You said {{tq|WikiEditor runs perfectly before loading some other extensions...}}.
:Remove (stop loading) these 'other extensions'. After that add them one by one to find the one that makes the WikiEditor to not work. – [[User:Ammarpad|Ammarpad]] ([[User talk:Ammarpad|talk]]) 18:54, 13 February 2023 (UTC)
== Delete a user account ==
[[File:Cuenta Bot.png|thumb]]
I would like to know how to delete a user account, I was going to edit it because I actually wanted to describe the account as a bot and I don't have access. [[User:Lomeno 24|Lomeno 24]] ('''Contact me''' [[User talk:Lomeno 24|here]]) 00:24, 13 February 2023 (UTC)
:You want describe it as a bot, that means what you probably need is [[Extension:renameuser]]. You can use that extension to rename accounts to what you want. – [[User:Ammarpad|Ammarpad]] ([[User talk:Ammarpad|talk]]) 13:08, 13 February 2023 (UTC)
== Two URLs for the same wiki ==
{| class="wikitable"
|[https://www.mediawiki.org/ MediaWiki]
|1.39.1
|-
|[https://php.net/ PHP]
|8.1.2-1ubuntu2.10 (apache2handler)
|-
|[https://www.mysql.com/ MySQL]
|8.0.32-0ubuntu0.22.04.2
|}
I see that others have asked about this, and that the answer is "yes, it can be done using $_SERVER with $wgServer", but I can't find any details on exactly how.
I have a fully functional wiki set up at https://rptools.hyperbooks,com/ It is a reconstruction of a broken (due, I believe, to an update to something on the part of the host) wiki at wiki.rptools.info. The folks who run RPTools would like to redirect that URL to my copy, at least temporarily (it may be some time before the guy who needs to fix it will have the time to dig in). So I'd like to have both URLs point to the same wiki install, using the the same database. (Setting up the virtual host in Apache to point to the same directory is no problem.)
Can it be done, and if so, exactly how? [[User:Taustinoc|Taustinoc]] ([[User talk:Taustinoc|talk]]) 07:11, 13 February 2023 (UTC)
== Can't import file from Wikipedia to Commons ==
The reason given is "Can't import file because at least one of its file revisions is hidden" and this seems related to licensing
*my question: [https://en.wikipedia.org/wiki/File_talk:Shenyang_Aerospace_University_logo.png#can't_import_to_Commons? https://en.wikipedia.org/wiki/File_talk:Shenyang_Aerospace_University_logo.png#can't_import_to_Commons?]
*prev discussion: https://commons.wikimedia.org/wiki/Commons:Village_pump/Archive/2022/04#Can't_import_file_from_Wikipedia
Thanks in advance for any help! [[User:Vladimir Alexiev|Vladimir Alexiev]] ([[User talk:Vladimir Alexiev|talk]]) 18:56, 13 February 2023 (UTC)
:What the error message shows is intentional technical restriction and not related to licensing, so there's nothing more to do about that.
:You can theoretically download the file and then directly upload it to Commons, but that'd not work too because per the answer already given to you on enwiki, it's not allowed to upload that image on Commons.
:Please see [[c:Commons:Licensing]] for further help. – [[User:Ammarpad|Ammarpad]] ([[User talk:Ammarpad|talk]]) 19:29, 13 February 2023 (UTC)
== Random text display in MediaWiki ==
What kind of source code do I need to create to display text randomly in MediaWiki? [[User:ナムコォッ!|ナムコォッ!]] ([[User talk:ナムコォッ!|talk]]) 06:22, 14 February 2023 (UTC)
:Please describe an underlying problem why you want to display text (like what) randomly (what does that even mean), and please see "Post a new question" in the sidebar. [[User:Malyacko|Malyacko]] ([[User talk:Malyacko|talk]]) 08:27, 14 February 2023 (UTC)
:You could copy [[Template:Random number]] from here. Then:
:<syntaxhighlight>
{{#switch: {{Random number|3}}
| 0 = abc
| 1 = def
| 2 = ghi
}}
</syntaxhighlight> [[User:Jonathan3|Jonathan3]] ([[User talk:Jonathan3|talk]]) 23:56, 15 February 2023 (UTC)
== Discord OAuth2 extension ==
Kia ora koutou, I'm just enquiring to see if any of you know of an up-to-date Discord OAuth2 extension that I can use on my wiki (and force all users to link their accounts to), as well as view what Discord account a user is linked to.
This is mostly because I am creating a wiki and the community is primarily based on the Discord server, so I feel like it would be best for vandalism purposes, etc, to be able to have that function.
If anyone knows of anything like this, please reply :)
Thanks! <3 [[User:Carolina2k22|Carolina2k22]] ([[User talk:Carolina2k22|talk]]) 13:18, 14 February 2023 (UTC)
:{{re|Carolina2k22}} It might be possible using [[Extension:WSOAuth]], although may require a custom auth provider class I'm not sure. [[User:Samwilson|Sam]] [[User_talk:Samwilson|Wilson]] 05:53, 15 February 2023 (UTC)
:I'll have a look into this, thank you! Is there any documentation wrt a custom auth provider class that you are able to flick over? [[User:Carolina2k22|Carolina2k22]] ([[User talk:Carolina2k22|talk]]) 05:25, 17 February 2023 (UTC)
== Interwiki links get lost in Vector 2022 ==
Dear ∀,
When we recently switched the default design in one of our wikis to Vector 2022, interwikilinks stopped to appear, comp.
https://wiki3.railml.org/wiki/Main_Page
(at least I cannot find them, c.q. not where they are in the English Wikipedia)
If I return to Vector 2010 [https://wiki3.railml.org/index.php?title=Special:Preferences&useskin=vector&wprov=vctw1#mw-prefsection-rendering-skin], the interwikil ink is there.
Is there a special setting required?
Thank you in advance! [[User:Ciciban|Ciciban]] ([[User talk:Ciciban|talk]]) 10:06, 15 February 2023 (UTC)
:Im not sure. Maybe the new skin requires [[ULS]] (just a guess) [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 10:35, 15 February 2023 (UTC)
== Indexing Sharepoint Content in my Mediawiki Instance ==
I have a wiki where users add info and related references. The references are mostly hosted in a SharePoint Site. I would like to index the contents of a particular SharePoint library into Elastic search in my Wiki. Is this possible?
{| class="wikitable"
!Product
!Version
|-
|[https://www.mediawiki.org/ MediaWiki]
|1.37.1
|-
|[https://php.net/ PHP]
|7.4.33 (fpm-fcgi)
|-
|[https://mariadb.org/ MariaDB]
|10.3.28-MariaDB
|-
|[https://www.elastic.co/elasticsearch Elasticsearch]
|6.8.23
|} [[Special:Contributions/154.118.155.57|154.118.155.57]] ([[User talk:154.118.155.57|talk]]) 10:16, 15 February 2023 (UTC)
:To start, why would you like to sync content in two different wikis, instead of using one wiki for everything? (Also note that MediaWiki 1.37.1 is an [[Download|outdated]] insecure version. Please [[Manual:Upgrading|upgrade]] for your own safety.) [[User:Malyacko|Malyacko]] ([[User talk:Malyacko|talk]]) 10:24, 15 February 2023 (UTC)
:I think you would need to make a custom extension to do this.
:I think dataspects was working on something along those lines but i don't know what the status is/i might be wrong. [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 10:34, 15 February 2023 (UTC)
== ModifySidebar() in mediawiki 1.39 ==
Is the function ModifySidebar( action, section, name, link ), a JavaScript to add or remove toolbox sections still working with mediawiki 1.39.
It's described [[Manual:Interface/Sidebar|here]]
If not, is there any other working solution for this
thanks [[User:Shaun.M|Shaun.M]] ([[User talk:Shaun.M|talk]]) 17:53, 15 February 2023 (UTC)
sorry forgot to mention, I used it in my old wiki which is 1.35 and it worked fine, my new wiki (1.39) has the exact same structure, and the javascript doesn't have any effect. [[User:Shaun.M|Shaun.M]] ([[User talk:Shaun.M|talk]]) 18:00, 15 February 2023 (UTC)
:What exactly is shown in the Console of the Developer Tools of your browser when the JavaScript "doesn't have any effect"? See [[Help:Locating_broken_scripts]] [[User:Malyacko|Malyacko]] ([[User talk:Malyacko|talk]]) 11:19, 16 February 2023 (UTC)
:I am using firefox, and the script doesn't show up neither in the Console, nor in the Debugger. I guess you mean the "F12" menu, when you say "Developer Tools"<br>
:[[User:Shaun.M|Shaun.M]] ([[User talk:Shaun.M|talk]]) 14:11, 17 February 2023 (UTC)
== expandtemplate API with substitution ==
{{Archive top|status=resolved}}
The expandtemplate API says that it (unfortunately) does not support substitution (subst: or safesubst:). Is there any to expand a template using the API while allowing for substitution? (something like the 'preview' feature) [[User:The last available username|The last available username]] ([[User talk:The last available username|talk]]) 19:15, 15 February 2023 (UTC)
:Figured it out: use the parse API (which is nearly compatible with the Expandtemplates API) and set pst (pre-save transform) to true. [[User:The last available username|The last available username]] ([[User talk:The last available username|talk]]) 19:41, 15 February 2023 (UTC)
:I updated the expandtemplates to reflect the solution [[User:The last available username|The last available username]] ([[User talk:The last available username|talk]]) 19:57, 15 February 2023 (UTC)
{{Archive bottom}}
== preferences tab ==
{{Archive top|result=Problem disappeared when visual editor re-activated, but people who know much much more than me say that can't be the issue. If it returns, Ill let you guys know.|status=resolved}}
Tapping my preferences tab produces the following error. [[User:ArchATempAcct|ArchATempAcct]] ([[User talk:ArchATempAcct|talk]]) 08:19, 16 February 2023 (UTC)
Internal error
Jump to: navigation, search
[Y-3kzi7Wx-za5CBJXvEu2gAEqgQ] /index.php/Special:Preferences MWException: Default 'null' is invalid for preference search-special-page of user WikiSysop
Backtrace:
from /home4/rabidpan/public_html/fascipedia/includes/preferences/DefaultPreferencesFactory.php(298)
#0 /home4/rabidpan/public_html/fascipedia/includes/preferences/DefaultPreferencesFactory.php(250): MediaWiki\Preferences\DefaultPreferencesFactory->loadPreferenceValues(User, RequestContext, array)
#1 /home4/rabidpan/public_html/fascipedia/includes/preferences/DefaultPreferencesFactory.php(1681): MediaWiki\Preferences\DefaultPreferencesFactory->getFormDescriptor(User, RequestContext)
#2 /home4/rabidpan/public_html/fascipedia/includes/specials/SpecialPreferences.php(132): MediaWiki\Preferences\DefaultPreferencesFactory->getForm(User, RequestContext, string)
#3 /home4/rabidpan/public_html/fascipedia/includes/specials/SpecialPreferences.php(110): SpecialPreferences->getFormObject(User, RequestContext)
#4 /home4/rabidpan/public_html/fascipedia/includes/specialpage/SpecialPage.php(647): SpecialPreferences->execute(NULL)
#5 /home4/rabidpan/public_html/fascipedia/includes/specialpage/SpecialPageFactory.php(1366): SpecialPage->run(NULL)
#6 /home4/rabidpan/public_html/fascipedia/includes/MediaWiki.php(314): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, RequestContext)
#7 /home4/rabidpan/public_html/fascipedia/includes/MediaWiki.php(930): MediaWiki->performRequest()
#8 /home4/rabidpan/public_html/fascipedia/includes/MediaWiki.php(564): MediaWiki->main()
#9 /home4/rabidpan/public_html/fascipedia/index.php(53): MediaWiki->run()
#10 /home4/rabidpan/public_html/fascipedia/index.php(46): wfIndexMain()
#11 {main} <span style="background:#000000;border:solid 1px;border-color:0000ff; border-radius:8px;box-shadow:darkgray 5px 5px 5px"><small>-[[User:ArchATempAcct|<span style="background:#000000; color:white; padding:1px;">𝘼</span><span style="background:#000033; color:white; padding:1px;">𝙧</span><span style="background:#000055; color:white; padding:1px;">𝙘</span><span style="background:#000088; color:white; padding:1px;">𝙝</span>]][[User talk:Archangel|<span style="background:#0000aa; color:white; padding:1px;">𝙖</span><span style="background:#0000bb; color:white; padding:1px;">𝙣</span><span style="background:#0000cc; color:white; padding:1px;">𝙜</span><span style="background:#0000ee; color:white; padding:1px;">𝙚</span><span style="background:#0000ff; color:white; padding:1px;">𝙡</span>]][[User_talk:ArchATempAcct|💀]]</small></span> 08:19, 16 February 2023 (UTC)
:What is the Mediawiki version? – [[User:Ammarpad|Ammarpad]] ([[User talk:Ammarpad|talk]]) 20:49, 16 February 2023 (UTC)
:Are you setting $wgDefaultUserOptions in LocalSettings.php? [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 21:27, 16 February 2023 (UTC)
::No sir, "wgDefaultUserOptions" does not appear in my localsettings file. <span style="background:#000000;border:solid 1px;border-color:0000ff; border-radius:8px;box-shadow:darkgray 5px 5px 5px"><small>-[[User:ArchATempAcct|<span style="background:#000000; color:white; padding:1px;">𝘼</span><span style="background:#000033; color:white; padding:1px;">𝙧</span><span style="background:#000055; color:white; padding:1px;">𝙘</span><span style="background:#000088; color:white; padding:1px;">𝙝</span>]][[User talk:Archangel|<span style="background:#0000aa; color:white; padding:1px;">𝙖</span><span style="background:#0000bb; color:white; padding:1px;">𝙣</span><span style="background:#0000cc; color:white; padding:1px;">𝙜</span><span style="background:#0000ee; color:white; padding:1px;">𝙚</span><span style="background:#0000ff; color:white; padding:1px;">𝙡</span>]][[User_talk:ArchATempAcct|💀]]</small></span> 21:38, 16 February 2023 (UTC)
:Installed software
:ProductVersion: MediaWiki1.37.1
:PHP8.0.27 (litespeed)
:MySQL5.7.23-23
:ICU69.1
:Pygments2.10.0
:Article path: /index.php/$1
:Script path: /
:index.php: /index.php
:api.php: /api.php
:rest.php: /rest.php <span style="background:#000000;border:solid 1px;border-color:0000ff; border-radius:8px;box-shadow:darkgray 5px 5px 5px"><small>-[[User:ArchATempAcct|<span style="background:#000000; color:white; padding:1px;">𝘼</span><span style="background:#000033; color:white; padding:1px;">𝙧</span><span style="background:#000055; color:white; padding:1px;">𝙘</span><span style="background:#000088; color:white; padding:1px;">𝙝</span>]][[User talk:Archangel|<span style="background:#0000aa; color:white; padding:1px;">𝙖</span><span style="background:#0000bb; color:white; padding:1px;">𝙣</span><span style="background:#0000cc; color:white; padding:1px;">𝙜</span><span style="background:#0000ee; color:white; padding:1px;">𝙚</span><span style="background:#0000ff; color:white; padding:1px;">𝙡</span>]][[User_talk:ArchATempAcct|💀]]</small></span> 21:33, 16 February 2023 (UTC)
:Thank you wonderful people, (Bawolff in particular, for inspiring me) !!
:I tried to disable the the buggy-AF visual editor by commenting out the loading code in LocalSettings.php. this action appears to break the preferences tab. When I re-enabled the visual editor, it fixed the tab.
:(Still interested in disabling the visual editor, if possible)
:Thank you all again! <span style="background:#000000;border:solid 1px;border-color:0000ff; border-radius:8px;box-shadow:darkgray 5px 5px 5px"><small>-[[User:ArchATempAcct|<span style="background:#000000; color:white; padding:1px;">𝘼</span><span style="background:#000033; color:white; padding:1px;">𝙧</span><span style="background:#000055; color:white; padding:1px;">𝙘</span><span style="background:#000088; color:white; padding:1px;">𝙝</span>]][[User talk:Archangel|<span style="background:#0000aa; color:white; padding:1px;">𝙖</span><span style="background:#0000bb; color:white; padding:1px;">𝙣</span><span style="background:#0000cc; color:white; padding:1px;">𝙜</span><span style="background:#0000ee; color:white; padding:1px;">𝙚</span><span style="background:#0000ff; color:white; padding:1px;">𝙡</span>]][[User_talk:ArchATempAcct|💀]]</small></span> 00:27, 17 February 2023 (UTC)
:That's certainly odd. 'search-special-page' is related to [[extension:MediaSearch]], and was only added to mediawiki in 1.38. It should not exist in 1.37 [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 00:54, 17 February 2023 (UTC)
{{Archive bottom}}
== MediaWiki upgrade ==
We inherited a mediawiki(rel from a colleague who hasn't been with the company for 10 years. The platform consist of :
mediawiki 1.18.1 (2012-01-11) instaled on /var/www/mediawiki
Apache/2.4.6 (Red Hat Enterprise Linux)
mysql 5.0.77 MySQL Community Server (GPL)
We don't konw nothing about wht was done and for security problems we would like to upgrade mysql version to 5.7 or 8.0 but we don't have any documentation on what the collegue has done. Can you please suggest a upgrade plan and if we have to upgrade mediawiki also ?
Regards
Maurizio [[User:Belloma2|Belloma2]] ([[User talk:Belloma2|talk]]) 08:44, 16 February 2023 (UTC)
:You should upgrade mediawiki, 1.18 is ancient, may have unpatched security vulnerabilities.
:The upgrade around 1.34 are a bit flaky, so I would suggest:
:*First make backups of database
:*Update to MediaWiki 1.34, make sure everything works
:*Update the rest of the way. [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 09:50, 16 February 2023 (UTC)
== How to restrict to download the video in mediawiki ? ==
We have used the the below syntax.
[[File: Video.png|Link="http//community.com/A.mp4"|]]
Here, the video is visible in the mediaiwiki, however, the user can download video.
We want the video should be visible in mediawiki, should not be downlodabe by user.
How to do that ? [[User:AshwiniUpasani|AshwiniUpasani]] ([[User talk:AshwiniUpasani|talk]]) 08:55, 16 February 2023 (UTC)
:If you want it to display within the current page, use [[Extension:TimedMediaHandler]].
:We do not support DRM type solutions (E.g. Widevine) that would prevent saving videos. [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 09:48, 16 February 2023 (UTC)
== Transclusion does not work for table content? ==
I have 3 pages:
- Overview page
- Detail page A
- Detail page B
I have tables on pages A and B and mark 1 row with "onlyinclude" - right after the table header and before the table end line.
I have the same table on the overview page. Right after the table header, I transclude {{:pageA}} and {{:pageB}}.
The result is an overview page with a table containing the rows from those 2 pages.
BUT. The content of the overview page does not render again after a change to page A or page B. I have to do a null edit or add ?action=purge to the URL, which causes a confirmation page to occur.
Why is that? A bug?
Regards, Duncan [[User:DuncanDonovan|DuncanDonovan]] ([[User talk:DuncanDonovan|talk]]) 15:48, 16 February 2023 (UTC)
:Possibly issue with [[job queue]] [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 16:40, 16 February 2023 (UTC)
:Will check.
:Would be nice if somebody could try this:
:'''<u>PageA:</u>''' <syntaxhighlight lang="wikitext">
{| class="wikitable"
|'''Customer'''
<onlyinclude>
|-
|Customer A</onlyinclude>
|}
</syntaxhighlight>
:'''<u>PageB:</u>'''<syntaxhighlight lang="wikitext">
{| class="wikitable"
|'''Customer'''
<onlyinclude>
|-
|Customer B</onlyinclude>
|}</syntaxhighlight>
:'''<u>PageTOTAL:</u>'''<syntaxhighlight lang="wikitext">
{| class="wikitable sortable"</nowiki>
!Customer
{{:PageA}}
{{:PageB}}
|}</syntaxhighlight>
:'''Expected behavior''': When going to PageTOTAL, the contents will automatically reflect changes on PageA and/or PageB.
:'''Actual behavior''': I have to do either a null edit or add "?action=purge" to the URL to see changes on PageA and/or PageB. [[User:DuncanDonovan|DuncanDonovan]] ([[User talk:DuncanDonovan|talk]]) 17:44, 17 February 2023 (UTC)
== Forgot the user email and password ==
I forgot the password and email . how to recover it please suggest me or help me. if is there any possibility then please tell my registerd email.
username:- aruvishalpatel [[Special:Contributions/2402:3A80:1E93:D2F6:954F:5ED6:EA63:54D|2402:3A80:1E93:D2F6:954F:5ED6:EA63:54D]] ([[User talk:2402:3A80:1E93:D2F6:954F:5ED6:EA63:54D|talk]]) 17:59, 16 February 2023 (UTC)
:That user does not exist: https://meta.wikimedia.org/wiki/User:Aruvishalpatel [[User:Malyacko|Malyacko]] ([[User talk:Malyacko|talk]]) 19:48, 16 February 2023 (UTC)
:On which wiki is this? – [[User:Ammarpad|Ammarpad]] ([[User talk:Ammarpad|talk]]) 20:11, 16 February 2023 (UTC)
== Active Directory authentication ==
Hi,
I am trying to configure Active Directory authentication for my MediaWiki instance.
But I am getting the error message "Die angegebenen Anmeldeinformationen konnten nicht überprüft werden." on the logon page.
I have configured LocalSettings.php, ldap.json and installed the plugins mentioned in the docs.
My LocalSettings.php:
https://pastebin.com/EbEEGwBg
My ldap.json:
https://pastebin.com/rf4uKBra
But I cannot login getting the error message from above.
Any ideas what I am doing wrong?
Best regards,
rforberger [[User:Rforberger|Rforberger]] ([[User talk:Rforberger|talk]]) 07:09, 17 February 2023 (UTC)
:Noone an idea? [[User:Rforberger|Rforberger]] ([[User talk:Rforberger|talk]]) 05:26, 22 February 2023 (UTC)
== Improvement suggestion for browsing repositories ==
I am not sure it this actually belongs here so apologies if it should be addressed elsewhere.
For many extension, there is a link using [[Template:Extension]] to browse the repository. Using [[git:mediawiki/extensions/VisualEditor|Visual editor for Wikitext documents]]. Would it be possible to re-order the list of branches so the more current and relevant branches are at the top, i.e. master, then REL1_39, REL1_38, ...
Almost always I am forced to click More... to browser changes on the current stable version, i.e. REL1_39. [[User:Peculiar Investor|Peculiar Investor]] ([[User talk:Peculiar Investor|talk]]) 17:27, 17 February 2023 (UTC)
:Feel free to follow [[How to report a bug]] and create a feature request in Phabricator under "Gerrit" for Gitiles [[User:Malyacko|Malyacko]] ([[User talk:Malyacko|talk]]) 18:54, 17 February 2023 (UTC)
:Will do. Thanks. Opened as {{PhabT|329990}}: [[User:Peculiar Investor|Peculiar Investor]] ([[User talk:Peculiar Investor|talk]]) 23:59, 17 February 2023 (UTC)
== How to prevent search engines from indexing special pages ==
I am trying to remove search engine and automated bot crawler access from special pages on my wiki. Such examples include "What Links Here", "Recent Changes", and "Permanent Link" pages which can be found at "Special:WhatLinksHere/Main_Page", "Special:RecentChangesLinked?hidebots=1&target=Main_Page", "index.php?title=Main_Page&oldid=5120". I have implemented short urls so my urls look like: "https://marblehorse.net/wiki/Main_Page". What changes do I need to make to my robots.txt to have the desired effect? [[User:MarblehorseNet|MarblehorseNet]] ([[User talk:MarblehorseNet|talk]]) 22:25, 17 February 2023 (UTC)
:My site has short URLs like example.com/Page_name and here's an extract from my robots.txt:
:User-agent: *
:Disallow: /Special:* [[User:Jonathan3|Jonathan3]] ([[User talk:Jonathan3|talk]]) 11:30, 20 February 2023 (UTC)
== How to assign imported versions to the local user ==
{{Flow summary|Do <code>php importDump.php --username-prefix="mywikisprefix" /dump.xml</code> to assign imported edits to locally existing users. Prior to doing so add the local wiki's prefix "mywikisprefix" to the interwiki table using the [[Extension:Interwiki|Interwiki extension.]]}}
[[Manual:ImportDump.php]] does not provide any clue on how to do this.
On my wiki user John Doe exists. When importing with <code>php importDump.php /dump.xml</code> all revsions are accounted to "imported>John Doe" which link to the local user account John Doe.
Is there a way to show "John Doe" as a link instead of "imported>John Doe"? [[Special:Contributions/2003:F1:C707:5E00:BDEB:3290:954C:7B44|2003:F1:C707:5E00:BDEB:3290:954C:7B44]] ([[User talk:2003:F1:C707:5E00:BDEB:3290:954C:7B44|talk]]) 23:23, 17 February 2023 (UTC)
:This is the default if user exists and --no-local-users is '''not''' specified.
:Although different versions of mediawiki might vary [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 00:38, 18 February 2023 (UTC)
:Thanks for the info! This was indeed not documented. In other words: If I do <code>php importDump.php --no-local-users /dump.xml</code> edits will be assigned to local users if they exist on that wiki. All I needed to know though the name of the flag appears to be a bit strage. Does not matter. [[Special:Contributions/2003:F1:C707:5E00:1883:3627:60A1:B0D8|2003:F1:C707:5E00:1883:3627:60A1:B0D8]] ([[User talk:2003:F1:C707:5E00:1883:3627:60A1:B0D8|talk]]) 09:00, 18 February 2023 (UTC)
::No, the opposite of that [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 22:39, 18 February 2023 (UTC)
:::I am totally confused now. Doing <code>php importDump.php --no-local-users /dump.xml</code> or <code>php importDump.php /dump.xml</code> both do not assign the edit to the local user in a way that "John Doe" is used as a link for the revision instead of "imported>John Doe". I know this is somehow possible since it works if one used the wiki interface for the import and checks the "Assign to local users" checkbox or what it is called.
:::How to do it via the import script is something I am not getting here and I cannot tell what it is. Yet another different flag to use or ...? [[Special:Contributions/2003:F1:C707:5E00:521E:59CA:6576:8DB8|2003:F1:C707:5E00:521E:59CA:6576:8DB8]] ([[User talk:2003:F1:C707:5E00:521E:59CA:6576:8DB8|talk]]) 00:31, 19 February 2023 (UTC)
:::Hmm, the only thing that comes to my mind is to use <code>--username-prefix=""</code> thing. It is listed on the docu page but it does not tell why this may be needed. It only hints that this may be required for file importing? [[Special:Contributions/2003:F1:C707:5E00:521E:59CA:6576:8DB8|2003:F1:C707:5E00:521E:59CA:6576:8DB8]] ([[User talk:2003:F1:C707:5E00:521E:59CA:6576:8DB8|talk]]) 00:39, 19 February 2023 (UTC)
:::Yes, this was it: Doing <code>php importDump.php --username-prefix="mywikisprefix" /dump.xml</code>. Prior to doing so I added my wiki's prefix "mywikisprefix" to the interwiki table using the [[Extension:Interwiki|Interwiki extension.]] [[Special:Contributions/2003:F1:C707:5E00:AEE9:1913:D6DE:6E8E|2003:F1:C707:5E00:AEE9:1913:D6DE:6E8E]] ([[User talk:2003:F1:C707:5E00:AEE9:1913:D6DE:6E8E|talk]]) 09:57, 19 February 2023 (UTC)
::I am totally confused now. Doing <code>php importDump.php --no-local-users /dump.xml</code> <code>php importDump.php /dump.xml</code> both do not assign the edit to the local user in a way that "John Doe" is used as a link for the revision instead of "imported>John Doe". I know this is somehow possible since it works if one used the wiki interfact for the import and checks the "Assign to local users" checkbox or what it is called.
::How to do it via the import script is something I am not getting here but I cannot tell what it is. Yet another different flag to use or ...? [[Special:Contributions/2003:F1:C707:5E00:521E:59CA:6576:8DB8|2003:F1:C707:5E00:521E:59CA:6576:8DB8]] ([[User talk:2003:F1:C707:5E00:521E:59CA:6576:8DB8|talk]]) 00:28, 19 February 2023 (UTC)
::This post and the one directly above can be deleted. Unfortunately I cannot edit my post to correct typos etc. [[Special:Contributions/2003:F1:C707:5E00:521E:59CA:6576:8DB8|2003:F1:C707:5E00:521E:59CA:6576:8DB8]] ([[User talk:2003:F1:C707:5E00:521E:59CA:6576:8DB8|talk]]) 00:32, 19 February 2023 (UTC)
:Oh no. I was too hasty here. When doing <code>php importDump.php --no-local-users /dump.xml</code> the revisions are still accounted to "imported>John Doe". Either the flat is broken or I need another one to make things happen. Now the second wiki shows this unpleasant link titles. [[Special:Contributions/2003:F1:C707:5E00:521E:59CA:6576:8DB8|2003:F1:C707:5E00:521E:59CA:6576:8DB8]] ([[User talk:2003:F1:C707:5E00:521E:59CA:6576:8DB8|talk]]) 22:03, 18 February 2023 (UTC)
== Edits lost? ==
I xml-dumped a wiki with <code>dumpBackup.php --full --quiet > dump.xml</code> and imported it with <code>php importDump.php /dump.xml</code> followed by a <code>rebuildall.php</code> and a <code>php initSiteStats.php</code>. However after the import the number of edits dropped from 16,624 to 4,952. The nunber of pages is identical with 875. When browsing the pages I so far did not see any revision missing.
Does anybody have an explanation as for what may have caused this. [[Special:Contributions/2003:F1:C707:5E00:BDEB:3290:954C:7B44|2003:F1:C707:5E00:BDEB:3290:954C:7B44]] ([[User talk:2003:F1:C707:5E00:BDEB:3290:954C:7B44|talk]]) 23:37, 17 February 2023 (UTC)
:Any hint on this one? [[Special:Contributions/2003:F1:C707:5E00:521E:59CA:6576:8DB8|2003:F1:C707:5E00:521E:59CA:6576:8DB8]] ([[User talk:2003:F1:C707:5E00:521E:59CA:6576:8DB8|talk]]) 22:09, 18 February 2023 (UTC)
== How to exclude modules from sitemap? ==
I using [[Extension:AutoSitemap]]. Now my site include modules in the sitemap and I want to fix it. Thanks you for attention. https://greenwiki.ru/sitemap.xml
Right now my exclude namespaces
$wgAutoSitemap["exclude_namespaces"] = [
NS_TALK,
NS_USER,
NS_USER_TALK,
NS_PROJECT_TALK,
NS_MEDIAWIKI,
NS_MEDIAWIKI_TALK,
NS_TEMPLATE,
NS_TEMPLATE_TALK,
NS_SPECIAL,
NS_HELP,
NS_HELP_TALK,
NS_CATEGORY,
NS_CATEGORY_TALK,
NS_FILE,
NS_MEDIA [[User:Vladlen Terezhe|Vladlen Terezhe]] ([[User talk:Vladlen Terezhe|talk]]) 09:23, 18 February 2023 (UTC)
== Seemingly missing content after upgrading (exists in DB) ==
I have upgraded quite old Mediawiki installation (since 2007), which has some custom extensions, but nothing too wild (mainly custom accesscontrol). Since then, the wiki shows on all pages (except special pages): <code>There is currently no text in this page. You can search for this page title in other pages, search the related logs, or create this page.</code>
I can see last modified pages in Special:RecentChanges, however seeing the page or the diff returns an error (page as described above, diff claims the revision doesn't exist)
The content is in the DB, as this query
<code>SELECT page_id, page_namespace, page_title, page_latest "rev_id", old_text "text" FROM page INNER JOIN slots on page_latest = slot_revision_id INNER JOIN slot_roles on
slot_role_id = role_id and role_name = 'main' INNER JOIN content on slot_content_id = content_id inner join text on substring( content_address, 4 ) = old_id and left( content_address, 3 ) = "tt:"
and old_flags = "utf-8" WHERE page_id=1;
</code>
returns a correct result (1 row with expected content). The supposedly missing revisions are also to be found in the database (in revision table)
The upgrade (it was actually move to a different server) was done from:
{| class="wikitable"
!Název
!Verze
|-
|[https://www.mediawiki.org/ MediaWiki]
|1.32.0
|-
|[https://php.net/ PHP]
|7.1.33 (fpm-fcgi)
|-
|[https://www.mysql.com/ MySQL]
|5.6.51-91.0
|-
|[http://site.icu-project.org/ ICU]
|69.1
|}
to:
{| class="wikitable"
!Název
!Verze
|-
|[https://www.mediawiki.org/ MediaWiki]
|[[MediaWiki 1.39|1.39.1]] (f87cb8d)
|-
|[https://php.net/ PHP]
|8.1.16 (fpm-fcgi)
|-
|[https://mariadb.org/ MariaDB]
|10.5.18-MariaDB-0+deb11u1
|-
|[https://icu.unicode.org/ ICU]
|67.1
|}
All files were copied, then overwritten by new version and <code>update.php</code> was launched. I have dealt with some problems with actor migration (I believe there are some historically deleted users), which was dealt with by adding some rows:
<code>INSERT INTO actor (actor_user, actor_name) VALUES (234, 'Unknown2023-1');
</code>
Also there was one issue with an archived revision, which I solved with this query
<code>UPDATE archive SET ar_title="Test" WHERE ar_id=141;</code>
I even tried to re-run <code>update.php</code> with <code>--force</code> but to no avail. Disabling extensions proves no effect.
I am at a loss. The data is clearly there, yet Mediawiki insists it is missing. How can I investigate further? (Repeating the upgrade or performing it in different steps is possible, I still have the original site running) [[Special:Contributions/195.113.180.82|195.113.180.82]] ([[User talk:195.113.180.82|talk]]) 12:45, 18 February 2023 (UTC)
:Here also added update.php log:
:<code>
:MediaWiki 1.39.1 Updater
:Your composer.lock file is up to date with current dependencies!
:Going to run database updates for gewiki_kba
:Depending on the size of your database this may take a while!
:...collations up-to-date.
:...have rev_actor field in revision table.
:...have img_description_id field in image table.
:...slots table already exists.
:...have slot_origin field in slots table.
:...content table already exists.
:...slot_roles table already exists.
:...content_models table already exists.
:...actor table already exists.
:...have ar_actor field in archive table.
:...have ipb_by_actor field in ipblocks table.
:...have img_actor field in image table.
:...have oi_actor field in oldimage table.
:...have fa_actor field in filearchive table.
:...have rc_actor field in recentchanges table.
:...have log_actor field in logging table.
:...table site_stats already modified by patch patch-site_stats-modify.sql.
:...index rc_namespace_title_timestamp already set on recentchanges table.
:...change_tag_def table already exists.
:Running maintenance/deduplicateArchiveRevId.php...
:...Update 'DeduplicateArchiveRevId' already logged as completed. Use --force to run it again.
:done.
:...have ct_tag_id field in change_tag table.
:...index ar_revid_uniq already set on archive table.
:...index log_type_action already set on logging table.
:...type_action key doesn't exist.
:...index PRIMARY already set on interwiki table.
:...index PRIMARY already set on page_props table.
:...index PRIMARY already set on protected_titles table.
:...index PRIMARY already set on site_identifiers table.
:...index rc_this_oldid already set on recentchanges table.
:...transcache doesn't exist.
:Running maintenance/populateChangeTagDef.php...
:...Update 'PopulateChangeTagDef' already logged as completed. Use --force to run it again.
:done.
:...change_tag_rc_tag key doesn't exist.
:...have ipb_sitewide field in ipblocks table.
:...ipblocks_restrictions table already exists.
:...change_tag table does not contain ct_tag field.
:...valid_tag doesn't exist.
:...tag_summary doesn't exist.
:...archive table does not contain ar_comment field.
:...ipblocks table does not contain ipb_reason field.
:...image table does not contain img_description field.
:...oldimage table does not contain oi_description field.
:...filearchive table does not contain fa_description field.
:...recentchanges table does not contain rc_comment field.
:...logging table does not contain log_comment field.
:...protected_titles table does not contain pt_reason field.
:...table job already modified by patch patch-job-params-mediumblob.sql.
:...ar_usertext_timestamp key doesn't exist.
:...usertext_timestamp key doesn't exist.
:...archive table does not contain ar_user field.
:...ipblocks table does not contain ip_by field.
:...img_user_timestamp key doesn't exist.
:...image table does not contain img_user field.
:...oldimage table does not contain oi_user field.
:...filearchive table does not contain fa_user field.
:...recentchanges table does not contain rc_user field.
:...logging table does not contain log_user field.
:...index un_user_ip already set on user_newtalk table.
:...watchlist_expiry table already exists.
:...page_restrictions field does not exist in page table, skipping modify field patch.
:...index ipb_address_unique already set on ipblocks table.
:...archive table does not contain ar_text_id field.
:...lc_lang is up-to-date.
:...ll_lang is up-to-date.
:...site_language is up-to-date.
:...index ipb_address_unique on table ipblocks has no field ipb_anon_only; added.
:...ipb_address_unique index up-to-date.
:...actor_name in table actor already modified by patch patch-actor-actor_name-varbinary.sql.
:...site_global_key in table sites already modified by patch patch-sites-site_global_key.sql.
:...iwl_prefix in table iwlinks already modified by patch patch-extend-iwlinks-iwl_prefix.sql.
:...rd_title in table redirect already modified by patch patch-redirect-rd_title-varbinary.sql.
:...pl_title in table pagelinks already modified by patch patch-pagelinks-pl_title-varbinary.sql.
:...tl_title field does not exist in templatelinks table, skipping modify field patch.
:...il_to in table imagelinks already modified by patch patch-imagelinks-il_to-varbinary.sql.
:...ll_title in table langlinks already modified by patch patch-langlinks-ll_title-varbinary.sql.
:...iwl_title in table iwlinks already modified by patch patch-iwlinks-iwl_title-varbinary.sql.
:...cat_title in table category already modified by patch patch-category-cat_title-varbinary.sql.
:...qc_title in table querycache already modified by patch patch-querycache-qc_title-varbinary.sql.
:...qcc_title in table querycachetwo already modified by patch patch-querycachetwo-qcc_title-varbinary.sql.
:...wl_title in table watchlist already modified by patch patch-watchlist-wl_title-varbinary.sql.
:...user_last_timestamp in table user_newtalk already modified by patch patch-user_newtalk-user_last_timestamp-binary.sql.
:...pt_title in table protected_titles already modified by patch patch-protected_titles-pt_title-varbinary.sql.
:...ir_type in table ipblocks_restrictions already modified by patch patch-ipblocks_restrictions-ir_type.sql.
:...index wl_namespace_title already set on watchlist table.
:...job_title in table job already modified by patch patch-job-job_title-varbinary.sql.
:...job_timestamp in table job already modified by patch patch-job_job_timestamp.sql.
:...job_token_timestamp in table job already modified by patch patch-job_job_token_timestamp.sql.
:...wl_notificationtimestamp in table watchlist already modified by patch patch-watchlist-wl_notificationtimestamp.sql.
:...role_id in table slot_roles already modified by patch patch-slot_roles-role_id.sql.
:...model_id in table content_models already modified by patch patch-content_models-model_id.sql.
:...cl_to in table categorylinks already modified by patch patch-categorylinks-cl_to-varbinary.sql.
:...log_title in table logging already modified by patch patch-logging-log_title-varbinary.sql.
:...us_timestamp in table uploadstash already modified by patch patch-uploadstash-us_timestamp.sql.
:...index up_property already set on user_properties table.
:...index site_global_key already set on sites table.
:...index log_type_time already set on logging table.
:...fa_name in table filearchive already modified by patch patch-filearchive-fa_name.sql.
:...oi_name in table oldimage already modified by patch patch-oldimage-oi_name-varbinary.sql.
:...exptime in table objectcache already modified by patch patch-objectcache-exptime-notnull.sql.
:...skipping: index name_title_timestamp doesn't exist.
:...img_name in table image already modified by patch patch-image-img_name-varbinary.sql.
:...img_timestamp in table image already modified by patch patch-image-img_timestamp.sql.
:...index si_key already set on site_identifiers table.
:...rc_title in table recentchanges already modified by patch patch-recentchanges-rc_title-varbinary.sql.
:...rc_timestamp in table recentchanges already modified by patch patch-recentchanges-rc_timestamp.sql.
:...rc_id in table recentchanges already modified by patch patch-recentchanges-rc_id.sql.
:...index rc_new_name_timestamp already set on recentchanges table.
:...ar_title in table archive already modified by patch patch-archive-ar_title-varbinary.sql.
:...page_title in table page already modified by patch patch-page-page_title-varbinary.sql.
:...user_name in table user already modified by patch patch-user_table-updates.sql.
:...index rev_page_timestamp already set on revision table.
:...have modtoken field in objectcache table.
:...index oi_timestamp already set on oldimage table.
:...index page_name_title already set on page table.
:...index ct_rc_tag_id already set on change_tag table.
:...page_restrictions table does not contain pr_user field.
:...fa_id in table filearchive already modified by patch patch-filearchive-fa_id.sql.
:...img_major_mime in table image already modified by patch patch-image-img_major_mime-default.sql.
:...linktarget table already exists.
:...rev_page_id key doesn't exist.
:...pr_page in table page_restrictions already modified by patch patch-page_restrictions-pr_page.sql.
:...pp_page in table page_props already modified by patch patch-page_props-pp_page.sql.
:...ir_value in table ipblocks_restrictions already modified by patch patch-ipblocks_restrictions-ir_value.sql.
:...have tl_target_id field in templatelinks table.
:...user_autocreate_serial table already exists.
:...ir_ipb_id in table ipblocks_restrictions already modified by patch patch-ipblocks_restrictions-ir_ipb_id.sql.
:...ipb_id in table ipblocks already modified by patch patch-ipblocks-ipb_id.sql.
:...user_editcount in table user already modified by patch patch-user-user_editcount.sql.
:Running maintenance/migrateRevisionActorTemp.php...
:...Update 'MigrateRevisionActorTemp' already logged as completed. Use --force to run it again.
:done.
:...revision_actor_temp doesn't exist.
:Running maintenance/updateRestrictions.php...
:Migration is not needed.
:done.
:...page table does not contain page_restrictions field.
:...templatelinks table has already been migrated.
:...tl_namespace field does not exist in templatelinks table, skipping modify field patch.
:...templatelinks table does not contain tl_title field.
:...site_stats is populated...done.
:...Update 'populate rev_len and ar_len' already logged as completed. Use --force to run it again.
:...Update 'populate rev_sha1' already logged as completed. Use --force to run it again.
:...img_sha1 column of image table already populated.
:...protocol-relative URLs in externallinks table already fixed.
:...fa_sha1 column of filearchive table already populated.
:...*_from_namespace column of backlink tables already populated.
:...Update 'FixDefaultJsonContentPages' already logged as completed. Use --force to run it again.
:...Update 'cleanup empty categories' already logged as completed. Use --force to run it again.
:...RFC and PMID already added to interwiki database table.
:...Update 'populate pp_sortkey' already logged as completed. Use --force to run it again.
:...Update 'populate ip_changes' already logged as completed. Use --force to run it again.
:...externallinks table indexes up to date.
:Set the local repo temp zone container to be private.
:Purging caches...done.
:Done in 0.1 s.
:</code> [[Special:Contributions/195.113.180.82|195.113.180.82]] ([[User talk:195.113.180.82|talk]]) 12:51, 18 February 2023 (UTC)
:Hi!
:We had the same problem. We are still trying to recover lost pages in DB.
:If we succeed, I'll leave comments here.
:Best Regards,
:Manuel H. [[Special:Contributions/186.147.125.105|186.147.125.105]] ([[User talk:186.147.125.105|talk]]) 16:05, 18 February 2023 (UTC)
:Hi again.
:Util link for this error [[Project:Support desk/Flow/2022/12#h-Pages_seem_to_be_gone-20221203122000]] [[Special:Contributions/186.147.125.105|186.147.125.105]] ([[User talk:186.147.125.105|talk]]) 16:41, 18 February 2023 (UTC)
:OP hereː Upgrading 1.32->1.35 and then 1.35->1.39 worked. I recovered from backup and did this two-step upgrade [[Special:Contributions/195.113.180.82|195.113.180.82]] ([[User talk:195.113.180.82|talk]]) 08:24, 7 March 2023 (UTC)
== Import XML without sha1 check? ==
Hallo, I'd be thankful for some advice.
I have to migrate an encyclopedia (>4000 items) from a very historic website to MediaWiki. There is no problem to generate output/input file with the XML structure. The only problem makes the sha1 clause:
<code><text bytes="1234" sha1="31-ascii-chars-sha1">A long text fully converted to MediaWiki-style code.</text> <sha1>31-ascii-chars-sha1</sha1></code>
In a former [[Project:Support desk/Flow/2015/07#h-[RESOLVED]_Editing_exported_xml_files_(wiki-pages)_and_importing_them_into_other-2015-07-20T08:50:00.000Z|| post at this desk]] (8 yr ago) I read that "The bytes and sha1 data is informative, and can be used to check integrity, but they aren't currently used on imports." It seems not be valid in current version (1.39.1). If I try to import a XML file without bytes and sha1 clauses, the very short items (up to 2 lines of text) are fully imported, by longer items only the page title is imported, not the text.
Is there a possibilty to turn the "bytes" and "sha1" checks off? At least for a one-time import?
Thank you! [[User:Nyctal|Nyctal]] ([[User talk:Nyctal|talk]]) 15:54, 18 February 2023 (UTC)
:That strongly suggests your dump file is corrupted, and you probably should figure out what is wrong with it in case it causes further problems (like was it reencoded or something).
:If you really need to though, you will probably have to regenerate the base36 sha1 hash and replace them. [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 01:34, 19 February 2023 (UTC)
== Link in the new window? ==
And my second beginner question:
Is there a functionality (special type of link) to display some external links in a new small browser window, without closing the page viewed?
Thak you! [[User:Nyctal|Nyctal]] ([[User talk:Nyctal|talk]]) 15:55, 18 February 2023 (UTC)
== Warning: XMLReader::open(): Unable to open source data ==
When importing an XML dump with <code>php importDump.php /dump.xml</code> I am getting the following warnings:
<pre>
Warning: XMLReader::open(): Unable to open source data in /../w/vendor/wikimedia/xmp-reader/src/Reader.php on line 577
All revisions appear to have been imported, however I am wondering is somehting is going terribly wrong at my end unnoticed by me.
Thanks for the hint. Now I dumped the wiki with <code>dumpBackup.php --full --include-files --uploads > dump.xml</code> instead of just doing <code>dumpBackup.php --full > dump.xml</code> and on import the number of these warnings went down from around 30 to 5. Stil not all of them are gone and I have to note that this wiki does not have files uploaded to it. Just uses commons and a different file repo. To cut it short: My "issue" is not completely resolved but it was minimized. 2003:F1:C707:5E00:AEE9:1913:D6DE:6E8E (talk) 20:40, 19 February 2023 (UTC)
$wgNamespaceAliases does not work
Latest comment: 3 years ago1 comment1 person in discussion
I tried to add the following code to my wiki,
$wgNamespaceAliases = [
'Gates' => 3138,
'Gates_talk' => 31389
];
$wgNamespaceAliases = [
'GATES' => 3138,
'GATES_TALK' => 3139
];
I tried adding individual namespace alias', and all they did was crash my wiki.
I tried typing the name of the namespace out, and all it did was crash my wiki.
Neither one of the top pieces of code redirected the old name to the new name.
Short URLs not working as expected - index.php still visible
Latest comment: 3 years ago7 comments2 people in discussion
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi all,
I've just finished upgrading an old Mediawiki install from v. 1.32 to 1.39.1 (latest) and I finally got that to work, but I cannot get neither $wgArticlePath or hiding index.php from Mediawikis URLs to work properly...
I have my Mediawiki files in the Document Root ($wgScriptPath = "";) and my $wqArticlePath = "/wiki/$1"; - but, no matter what I set as my $wgArticlePath, it's being ignored....?title= is removed, but index.php/TITLE remains...
The most annoying bit is that I had it all to work with the old version 1.32, but ever since upgrading it doesn't seem to work al all... Where might I be going wrong about this?
Moreover, in PHP as in many other instances, single quotes handle quotes literally and do not interpret escaped characters, where as double quotes do. Double quotes are 'softer' in this sense and less literal.
Oh, i guess it doesn't matter because $1 isn't a valid variable name in php, so it never gets interopolated regardless of the quotes.
Anyways, its critical in this instance that $1 is treated literally, but you get that either way. Apologies for saying the wrong thing and any confusion that may have caused. Bawolff (talk) 08:38, 20 February 2023 (UTC)
I would suggest checking Special:version which should list path variables so you can see if something is overriding it.
Check also you dont have the same variable specified a second time in LocalSettings.php or anything like that. Check also you are editing the correct file, and haven't accidentally commented out the line
I definitely think it is more likely a LocalSettings.php issue and not rewrite rules. What you describe (/index.php/page_name) is the default behaviour if $wgArticlePath is not set Bawolff (talk) 08:43, 20 February 2023 (UTC)
Thank you for the help and suggestions!
I'm much inclined to say that it must be something concerning the LocalSettings.php file and the $wgArticlePath, which seems to get screwed up - although I'm not yet sure what might prevent it from working...
I'll be looking into the php.ini file to see if there's anything there affecting my paths, that might also play tricks on Mediawiki's $wgArticlePath ... Sgiv-sdu.dk (talk) 07:59, 21 February 2023 (UTC)
On going over my LocalSettings.php, I discovered a totally lame error on my part - I'd accidentally misspelled my $wgArticlePath as $wqArticlePath, which - of course - makes a difference....
Hi, please read "Project:Support desk" in the sidebar and provide sufficient info. What "blue band"? Which warning? What does the template do? How did you create the template / what are full and clear steps to reproduce the situation? What are expectations based on? Malyacko (talk) 09:36, 20 February 2023 (UTC)
500 error upon installing Scribunto
Latest comment: 3 years ago5 comments2 people in discussion
I'm running a Mediawiki server on the Bitnami stack, and every time I try to install Scribunto, I get an HTTP 500 error that does not perform any kind of php logging (even though i'm fairly sure the problem is the php). I've tried to get some read on the error messages, but it doesn't show up in the apache2 error logs no matter what I try. Help would be appreciated :) Theleekycauldron (talk) 09:57, 20 February 2023 (UTC)
fixed, after much fuckery! If anyone finds themselves in the same position, my tips:
If Mediawiki asks you set a new temp directory, don't do that!
Btw, if you are already downloading stuff, and using debian/ubuntu consider apt install php-luasandbox it will be faster than lua binary. Bawolff (talk) 22:57, 20 February 2023 (UTC)
It's possible to get the author of the latest revision, via the {{REVISIONUSER}} parser function, but I don't know if there's any way to get the first author. I'd suggest it'd be better to have this be provided to the template anyway, so that there is some control over who is listed as the author (which it sounds like your template is expecting anyway, as the first parameter). SamWilson06:50, 21 February 2023 (UTC)
Latest comment: 3 years ago2 comments2 people in discussion
Hello, is it possible to have a hyperlink to an external page and in the future remove that link and it removes it for every page that has it available.
Example:
Pages 1-5 have a hyperlink to Google.com
We want to remove Google.com from a singular place and have it be removed from pages 1-5 without individually going to each page.
Is something like this possible? I figured we could template each one, but is there a different way so we don't have 100s of different pages. More so, is it possible to keep it condensed to a single page? 199.21.198.113 (talk) 18:40, 21 February 2023 (UTC)
Latest comment: 3 years ago2 comments2 people in discussion
wikimedia:
"According to the relevant preferences, changes to pages you watch may also be notified to you by email. The main preference for this is "Email me when a page or a file on my watchlist is changed".
After receiving an email notification for a page, you have to visit the page while logged in if you want to be notified of further changes to the same page."
Alerts, Notices, Watchlist and log in bars are messed up.
Latest comment: 3 years ago4 comments2 people in discussion
I logged in my mediawiki page today and alerts, notices dont open up. I click on them and i go to a notifications special page that keeps loading. Also the words are mushed with the symbols. Also, the watchlist icon became invisible but its still there when i click it. The log in bar is also invisible. All of this happened while i was sleeping, nobody had access to the files and also i checked the code and nothing changed since yesterday. Honestly, what is going on?? Arisparaschou (talk) 11:24, 22 February 2023 (UTC)
This sounds like a javascript error. Can you check your web browsers developer console to see if there are any errors shown in it? Bawolff (talk) 12:06, 22 February 2023 (UTC)
I did that and i see this on the debugger:
This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use “<!DOCTYPE html>”.
What specific questions do you have? You say you've already got it installed, so it sounds like you're on the right path. If you want everyone to be able to edit, you'll probably want to add some spam prevention measures; have a read of Manual:Combating spam. SamWilson03:17, 23 February 2023 (UTC)
Sorry for late response.
I want to make a wiki public so that it can show up in Google when searched and everyone can edit. However, I create one, and I get the error "ERR_CONNECTION_REFUSED" but that's for the local host.
Latest comment: 3 years ago1 comment1 person in discussion
I install the openstack(train) in my local environment refer to the "Minimal deployment for Train(https://docs.openstack.org/install-guide/openstack-services.html)"。when i finished the Compute service Install and configure controller node,the openstack-nova-conductor and openstack-nova-scheduller service boot failured。the service log :
2023-02-23 13:18:03.428 22509 CRITICAL nova [-] Unhandled error: Unauthorized: The request you have made requires authentication. (HTTP 401) (Request-ID: req-2b3e6f6a-8c82-4818-9caa-4945990c887c)
2023-02-23 13:18:03.428 22509 ERROR nova Traceback (most recent call last):
2023-02-23 13:18:03.428 22509 ERROR nova? ?File "/usr/bin/nova-conductor", line 10, in <module>
2023-02-23 13:18:03.428 22509 ERROR nova Unauthorized: The request you have made requires authentication. (HTTP 401) (Request-ID: req-2b3e6f6a-8c82-4818-9caa-4945990c887c)
2023-02-23 13:18:03.428 22509 ERROR nova
but i use the same nova username and password by curl command visit the auth http api (http://controller:5000/v3/auth/tokens),it's ok。so how solve the problem?Help!
the operating system is centos 7.9.2009. BCapricorn12 06:16, 23 February 2023 (UTC)
Latest comment: 3 years ago13 comments3 people in discussion
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I can no longer log in to my main, non-wikisysop account. I get an error saying that my credentials cannot be verified. ( I don't know what that means.) I can still use the account by logging into wikisysop and using Sudo to jump into it. When I tried to assign it a new password etc., it said "credentials could not be found", it sounds like a database problem to me, and I don't mind going into SQL and manually rebuilding it, if I know where to look. Can anyone point me in the right direction?
UPDATE: I am now unable to log into my account at all, not even via Sudo.
Under 'users and rights', "edit account" which I believes accesses that script, produces a "credentials cannot be found" error, as if the User has been deleted or something, as if there is no password to change. -𝘼𝙧𝙘𝙝𝙖𝙣𝙜𝙚𝙡💀17:55, 24 February 2023 (UTC)
Done. That username, "Archangel", crashes it. Testing with 2 of my other alts does not. It changed those successfully. This leads me to even more firmly think that this is a corrupted database issue. If I knew where to look, I am certain that I can manually repair whatever damage is there. -𝘼𝙧𝙘𝙝𝙖𝙣𝙜𝙚𝙡💀23:52, 24 February 2023 (UTC)
Be sure you have not enabled any (external) authentication extension, because the user may be linked to that external auth, which would prevent you from changing its password. Ciencia Al Poder (talk) 12:44, 25 February 2023 (UTC)
I don't think I have anything like that. The user is (was) an alt I use for most of the social-type stuff on the wiki, while I use the wikisysop account for the techie stuff. I don't have anything external, as far as I am aware. Not even sure how to check for it. This happened to the account once before, and I had to re-create it as a new account, and remake the sig and user page etc, all over again. I would rather not do that a second time if I can help it. -𝘼𝙧𝙘𝙝𝙖𝙣𝙜𝙚𝙡💀07:16, 26 February 2023 (UTC)
Really, I'm pretty sure its data corruption. If I knew where to look in the database, I can probably repair it, or at least rule out the possibility of data corruption. -𝘼𝙧𝙘𝙝𝙖𝙣𝙜𝙚𝙡💀22:24, 26 February 2023 (UTC)
Please include the exact text of the error message.
Based on your description so far, it does not sound like database corruption so much as an extension overriding mediawiki's authentication procedures and then failing, but hard to know without knowing the exact error message and what AuthManager extensions are installed.
Another possibility is that the username is a reserved username, and hence logging in with it is disallowed. Archangel normally would not be reserved, but extensions can add to the reserved list and some pages in mediawiki namespace can make a name be reserved. Bawolff (talk) 00:45, 27 February 2023 (UTC)
generally this means that either the primary mediawiki auth mechanism was marked non authoratative (some extensions do this) or the username is reserved and not allowed to be used for login. Bawolff (talk) 11:04, 28 February 2023 (UTC)
Ok, thanks so much! I scrubbed my wiki of unneeded extensions and changed the username. Hopefully, that will do the trick, thanks again. -𝘼𝙧𝙘𝙝𝙖𝙣𝙜𝙚𝙡💀21:52, 28 February 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
Is it possible for non-admin users to create a StructuredDiscussions page
Latest comment: 3 years ago3 comments3 people in discussion
Hi :)
I have the StructuredDiscussions extension installed in my wiki and right now it is possible to create a discussion board through a link in Special pages. Since this is only visible to users with admin rights - is there a way to make it accessible to regular users?
Hello @Shaker0351: Assigning flow-create-board to the user group should allow all registered users to create StructuredDiscussions boards via Special:EnableStructuredDiscussions. See extension.json.
Cannot apply Stylesheets - Error code 500 - TypeError: strpos(): Argument #1 ($haystack) must be of type string, array given
Latest comment: 3 years ago5 comments2 people in discussion
Hi,
My organisation has a project that generates just a Wiki Page that people can contribute to.
This was working about 3 months ago on PHP 7 and MW 1.38 (stable at that time) in a Docker container that runs in our internal-dev Kubernetes cluster. The skin used is Tweeki.
On upgrading the project to PHP 8.1 and MW 1.39.1, a number of errors cropped up, but mostly had to do with outdated or deprecated extensions. I've resolved all of them, however, the stylesheet and Tweeki skin do not seem to get applied.
On debugging the project and doing a F12 inspect, the Console error shows the following error:
"Refused to apply style from 'https://<Internal-dev-URL-masked>/load.php?lang=en-gb&modules=ext.flaggedRevs.basic%2Cicons%7Cmediawiki.widgets.styles%7Coojs-ui-core.icons%2Cstyles%7Coojs-ui.styles.indicators%7Cskins.tweeki.awesome.styles%7Cskins.tweeki.externallinks.styles%7Cskins.tweeki.mediawiki.styles%7Cskins.tweeki.styles&only=styles&skin=tweeki' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled."
On clicking the link, the following debugging error is displayed:
[049916d27f36806026c322db] /load.php?lang=en-gb&modules=ext.flaggedRevs.basic%2Cicons%7Cmediawiki.widgets.styles%7Coojs-ui-core.icons%2Cstyles%7Coojs-ui.styles.indicators%7Cskins.tweeki.awesome.styles%7Cskins.tweeki.externallinks.styles%7Cskins.tweeki.mediawiki.styles%7Cskins.tweeki.styles&only=styles&skin=tweeki TypeError: strpos(): Argument #1 ($haystack) must be of type string, array given
Backtrace:
from /var/www/html/includes/OutputPage.php(4228)
Thinking that this could be a problem with the Tweeki skin, I switched it to MonoBook or Vector, but both skins seems to produce this error. I'm even using Bootstrap 4.6.0, which is required by Tweeki to apply its skin and there has been no change in the Apache configuration settings between PhP 7 and the upgraded PhP 8.1.
Scoured the depths of the internet for almost 2 weeks and stuck with the same error, only to find out that the function itself is a plural word now, rather than singular. Unbelievable. Tarunjoseph93 (talk) 15:09, 2 March 2023 (UTC)
Scribunto and Graph Extension posible bug
Latest comment: 3 years ago4 comments2 people in discussion
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Problem is im getting Error de Lua en Módulo:Graph en la línea 1199: attempt to get length of local 'x' (a nil value) when invoking a module from a template.
its working if i call it like this on the template:
<includeonly>{{#tag:templatestyles||src=GraphChart/styles.css}}{{#tag:graph|{{#invoke:Graph|chartWrapper}}}}</includeonly><noinclude>{{Documentation}}</noinclude> 93.188.143.1 (talk) 10:16, 3 April 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
Template loop that I can’t fix.
Latest comment: 3 years ago2 comments2 people in discussion
I am trying to add a template for dams for my wiki but every single time I try to fix it it won’t work. I think this code is somewhat broken but I don’t even know.
Latest comment: 3 years ago3 comments2 people in discussion
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
What makes you think so? Please do explain what does happen (without paraphrasing), and what you expect instead and why. Malyacko (talk) 10:08, 27 February 2023 (UTC)
What is the deal with thumb handler?
Latest comment: 3 years ago6 comments4 people in discussion
Use thumb_handler.php rather than thumb.php to set up the thumb handler.
thumb_handler.php is better. The thumb.php version wont work for certain file types. thumb_handler.php is newer than thumb.php although both have been around for a very long time at thus point. Bawolff (talk) 07:31, 25 February 2023 (UTC)
I dont think you should set $wgThumbnailScriptPath if using rewrite rules - im pretty sure it only works with thumb.php and is less efficient than the rewrite rule version.
Ah, I would have guessed that $wgThumbnailScriptPath is dedicated to thumbnailing no matter which handler is used. Oopsie. :) [[kgh]] (talk) 12:19, 25 February 2023 (UTC)
migration issues
Latest comment: 3 years ago1 comment1 person in discussion
hi guys
A long time ago, I Have migrated my mediaWiki page.
It used to be in a subdirectory on another domain. I have followed the mediaWiki migration guide. Weeks later, I still have issues with old links that do not exist anymore.
I have tried rebuildall.php - it resolved some issue like missing images.
It also screwed category indexes...they are all empty now.
I used to have hardlinks as a kludge, due to intermittent issues.
During the article creation/modification/deletion, mediawiki hangs on loading
Latest comment: 3 years ago2 comments2 people in discussion
Hello, everyone! While I'm trying to create, modify (by Wikieditor) or delete article, mediawiki freezes on infinite loading and then times out the connection. However, when I'm editing any article with VisualEditor, an edit performs successfully. I've tried to check access.log and error.log in /var/log/apache2, but it seems that there is no error logged. There isn't even POST request with &action=submit link logged in access.log, so it seems that the request is not even registered by apache? I've also checked mysql error logs, tried to debug the page from Manual:How_to_debug, tried to add chmod on all mediawiki files, tried other ways to debug PHP and even checked the /var/log/syslog - also, nothing is being registered there. Maybe you guys have some idea how can I resolve this problem? I even tried to reinstall the wiki and update it from 1.32 to 1.39.2 version - the problem was also there and is still happening.
Please help me with that, as I'm struggling with this one for about one month.
I have encountered a similar situation, but I am a user of Windows system, and you can solve it by adding Win32DisableAcceptEx to httpd.conf, but this only applies to Apache in Windows system, and does not apply to Apache 2.4 维基佛祖 (talk) 11:09, 28 February 2023 (UTC)
Collapsible sections
Latest comment: 3 years ago1 comment1 person in discussion
I want to be able to collapse specific sections following the style of "Translations" section in wiktionary, ie (https://en.wiktionary.org/wiki/desert) and adding the "Show/Hide translations" toggles in the left bar menu (so that once clicked, that option sticks for all other pages). How can this be done? Spiros71 (talk) 23:10, 25 February 2023 (UTC)
When I load the translation extension and the language selector extension error report
Latest comment: 3 years ago5 comments3 people in discussion
RESOLVED
Thank you for helping me solve this problem. After updating the extension to the latest stable version, I successfully visited
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.
Error infos:
MediaWiki internal error.
Original exception: [f4b67c9d6bb67cce08393dcf] /GWiki/index.php/%E7%BB%B4%E5%9F%BA:%E8%A7%84%E7%AB%A0 Wikimedia\Rdbms\DBQueryError: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading or after adding a new extension?
Please see https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Upgrading and https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:How_to_debug for more information.
Error 1146: Table 'generalwikipedia.generalwikipediarevtag' doesn't exist
Function: TranslatablePage::getTag
Query: SELECT rt_revision FROM `GeneralWikipediarevtag` WHERE rt_page = 1 AND rt_type = 'tp:mark' ORDER BY rt_revision DESC LIMIT 1
Backtrace:
from G:\UwAmp\www\GWiki\includes\libs\rdbms\database\Database.php(1618)
#0 G:\UwAmp\www\GWiki\includes\libs\rdbms\database\Database.php(1602): Wikimedia\Rdbms\Database->getQueryException(string, integer, string, string)
#1 G:\UwAmp\www\GWiki\includes\libs\rdbms\database\Database.php(1576): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)
#2 G:\UwAmp\www\GWiki\includes\libs\rdbms\database\Database.php(952): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#3 G:\UwAmp\www\GWiki\includes\libs\rdbms\database\Database.php(1708): Wikimedia\Rdbms\Database->query(string, string, integer)
#4 G:\UwAmp\www\GWiki\includes\libs\rdbms\database\Database.php(1661): Wikimedia\Rdbms\Database->select(string, string, array, string, array, array)
#5 G:\UwAmp\www\GWiki\includes\libs\rdbms\database\DBConnRef.php(103): Wikimedia\Rdbms\Database->selectField(string, string, array, string, array)
#6 G:\UwAmp\www\GWiki\includes\libs\rdbms\database\DBConnRef.php(312): Wikimedia\Rdbms\DBConnRef->__call(string, array)
#7 G:\UwAmp\www\GWiki\extensions\Translate\tag\TranslatablePage.php(604): Wikimedia\Rdbms\DBConnRef->selectField(string, string, array, string, array)
#8 G:\UwAmp\www\GWiki\extensions\Translate\tag\TranslatablePage.php(545): TranslatablePage->getTag(string)
#9 G:\UwAmp\www\GWiki\extensions\Translate\tag\PageTranslationHooks.php(1000): TranslatablePage->getMarkedTag()
#10 G:\UwAmp\www\GWiki\extensions\Translate\tag\PageTranslationHooks.php(988): PageTranslationHooks::sourcePageHeader(RequestContext)
#11 G:\UwAmp\www\GWiki\includes\HookContainer\HookContainer.php(338): PageTranslationHooks::translatablePageHeader(Article, NULL, boolean)
#12 G:\UwAmp\www\GWiki\includes\HookContainer\HookContainer.php(137): MediaWiki\HookContainer\HookContainer->callLegacyHook(string, array, array, array)
#13 G:\UwAmp\www\GWiki\includes\HookContainer\HookRunner.php(854): MediaWiki\HookContainer\HookContainer->run(string, array)
#14 G:\UwAmp\www\GWiki\includes\page\Article.php(590): MediaWiki\HookContainer\HookRunner->onArticleViewHeader(Article, NULL, boolean)
#15 G:\UwAmp\www\GWiki\includes\page\Article.php(528): Article->generateContentOutput(User, ParserOptions, integer, OutputPage, array)
#16 G:\UwAmp\www\GWiki\includes\actions\ViewAction.php(78): Article->view()
#17 G:\UwAmp\www\GWiki\includes\MediaWiki.php(542): ViewAction->show()
#18 G:\UwAmp\www\GWiki\includes\MediaWiki.php(322): MediaWiki->performAction(Article, Title)
#19 G:\UwAmp\www\GWiki\includes\MediaWiki.php(904): MediaWiki->performRequest()
#20 G:\UwAmp\www\GWiki\includes\MediaWiki.php(562): MediaWiki->main()
#21 G:\UwAmp\www\GWiki\index.php(50): MediaWiki->run()
#22 G:\UwAmp\www\GWiki\index.php(46): wfIndexMain()
#23 {main}
Exception caught inside exception handler: [f4b67c9d6bb67cce08393dcf] /GWiki/index.php/%E7%BB%B4%E5%9F%BA:%E8%A7%84%E7%AB%A0 Error: Call to undefined method Wikimedia\Rdbms\LoadBalancer::hasOrMadeRecentMasterChanges()
Backtrace:
from G:\UwAmp\www\GWiki\extensions\Translate\TranslateUtils.php(520)
#0 G:\UwAmp\www\GWiki\extensions\Translate\TranslateUtils.php(500): TranslateUtils::shouldReadFromMaster()
#1 G:\UwAmp\www\GWiki\extensions\Translate\tag\TranslatablePage.php(906): TranslateUtils::getSafeReadDB()
#2 G:\UwAmp\www\GWiki\extensions\Translate\tag\TranslatablePage.php(881): TranslatablePage::getTranslatablePages()
#3 G:\UwAmp\www\GWiki\includes\libs\objectcache\wancache\WANObjectCache.php(1689): TranslatablePage::{closure}(boolean, integer, array, NULL, array)
#4 G:\UwAmp\www\GWiki\includes\libs\objectcache\wancache\WANObjectCache.php(1522): WANObjectCache->fetchOrRegenerate(string, integer, Closure, array, array)
#5 G:\UwAmp\www\GWiki\extensions\Translate\tag\TranslatablePage.php(884): WANObjectCache->getWithSetCallback(string, integer, Closure, array)
#6 G:\UwAmp\www\GWiki\extensions\Translate\tag\PageTranslationHooks.php(165): TranslatablePage::isSourcePage(Title)
#7 G:\UwAmp\www\GWiki\includes\HookContainer\HookContainer.php(338): PageTranslationHooks::onBeforePageDisplay(OutputPage, SkinMustache)
#8 G:\UwAmp\www\GWiki\includes\HookContainer\HookContainer.php(137): MediaWiki\HookContainer\HookContainer->callLegacyHook(string, array, array, array)
#9 G:\UwAmp\www\GWiki\includes\HookContainer\HookRunner.php(945): MediaWiki\HookContainer\HookContainer->run(string, array, array)
#10 G:\UwAmp\www\GWiki\includes\OutputPage.php(2869): MediaWiki\HookContainer\HookRunner->onBeforePageDisplay(OutputPage, SkinMustache)
#11 G:\UwAmp\www\GWiki\includes\exception\MWExceptionRenderer.php(183): OutputPage->output()
#12 G:\UwAmp\www\GWiki\includes\exception\MWExceptionRenderer.php(102): MWExceptionRenderer::reportHTML(Wikimedia\Rdbms\DBQueryError)
#13 G:\UwAmp\www\GWiki\includes\exception\MWExceptionHandler.php(131): MWExceptionRenderer::output(Wikimedia\Rdbms\DBQueryError, integer)
#14 G:\UwAmp\www\GWiki\includes\exception\MWExceptionHandler.php(248): MWExceptionHandler::report(Wikimedia\Rdbms\DBQueryError)
#15 G:\UwAmp\www\GWiki\includes\MediaWiki.php(581): MWExceptionHandler::handleException(Wikimedia\Rdbms\DBQueryError, string)
#16 G:\UwAmp\www\GWiki\index.php(50): MediaWiki->run()
#17 G:\UwAmp\www\GWiki\index.php(46): wfIndexMain()
#18 {main}
Google Translate
Original text
Contribute a better translation
Thank you for helping me solve this problem. After updating the extension to the latest stable version, I successfully visited 维基佛祖 (talk) 12:17, 26 February 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
Are there any extensions on mediawiki that require a verification code to register?
Latest comment: 3 years ago4 comments3 people in discussion
My wiki is special. It is a wiki for relay novels.I need an extension that allows members to write applications. Members can submit the applications to the administrator for review after they have written them. Only after the administrator has approved them can they obtain membership.
Latest comment: 3 years ago1 comment1 person in discussion
Hi all. Is it possible to request a feature which would stop syntax highlighting process at the very first step where text appears on the screen with red/yellow background transitional blocks ? As a translator admin, if i can isolate the text blocks visually, it is easier for me to set the translation tags. A button/tab on client side (JS ?) would be appreciated. Thanks.
Latest comment: 3 years ago7 comments4 people in discussion
RESOLVED
Use php 7.4+ for the upgrade
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.
MW 1.31 supports up to php 7.3+ whereas MW 1.39 minimum version support is php 7.4.3. How does one go about upgrading in one step (I am guessing this is safe given that https://phabricator.wikimedia.org/T326071 was resolved with 1.39.2)? Has anyone done this in one step without issues? Spiros71 (talk) 10:17, 27 February 2023 (UTC)
You should use a PHP version that is supported by the version of MediaWiki that is running at that time. Likely this means that you will have to upgrade PHP at the same time you upgrade MediaWiki. Taavi (talk!) 19:03, 27 February 2023 (UTC)
I imagine php 7.4.3+ will work with both MW 1.39 and MW1.31.
MW 1.31 has a minimum requirement of 7.3, it should not be taken as saying it is incompatible with 7.4.3 (It is incompatible with 8 though) Bawolff (talk) 20:03, 27 February 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
[Resolved] Error: Call to undefined function
Latest comment: 3 years ago21 comments4 people in discussion
Hello,
I've added HTTPS support to my server, and now mediawiki reports "Error: Call to undefined function" for several functions, depending on what page I'm trying to open.
The main page has an issue with MediaWiki\Extension\Scribunto\Engines\LuaStandalone\shell_exec()
The Special:Version page has an issue with curl_exec()
I have made changes to the php.ini to try and remedy this:
I commented out open_basedir
I've removed "exec" from disable_functions = passthru,shell_exec,system,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source...
[Y_yDoNoH68eaLHStaTCYbAAAAFM] /index.php?title=Main_Page Error: Call to undefined function MediaWiki\Extension\Scribunto\Engines\LuaStandalone\shell_exec()
Backtrace:
from /var/www/mediawiki-1.39.0/extensions/Scribunto/includes/engines/LuaStandalone/LuaStandaloneEngine.php(89)
[Y_ynxmFmlyCt6Uw2YNsS_QAAAAE] /index.php?title=Main_Page Error: Call to undefined function MediaWiki\Extension\Scribunto\Engines\LuaStandalone\shell_exec()
Backtrace:
from /var/www/mediawiki-1.39.0/extensions/Scribunto/includes/engines/LuaStandalone/LuaStandaloneEngine.php(89)
Depends. Do you want to use scribunto? If yes, then yes, if no then no.
Scribunto does require having shell_exec (except if you are using php-luasandbox). Its not the only mediawiki thing that does, although most of mediawiki will work without it.
> I only get the one result: /etc/php.ini
Create a file in your web directory called info.php containing only:
<?php phpinfo();
Then view it in your web browser. This should show all of PHP's current configuration, including which ini files are used and what the disable_functions are (Usually under the header "Core"). Check to see if shell_exec is on the list of disable_functions or not. Bawolff (talk) 16:16, 27 February 2023 (UTC)
Good morning,
I already had this file, although I renamed it.
Moved it to the main directory, and found the following:
First of all I don't understand where this "local value" and "master value" come from.
Consequently I do not understand why the "local value" and the "master value" both still have "exec", "shell_exec" ánd "curl_exec" in them, when the only php.ini file I find on the whole system (using the command sudo find / -name 'php.ini') has the following for "disable_functions":
So based on what you posted, you can also have config files not named php.ini. any file regardless of name that is is /etc/php.d/ is also a config file.
Also try restarting your webserver,i dont think php picks up config changes automatically without a restart.
None of the .ini files in /etc/php.d contain "disable_functions", so I don't think the functions are enabled somewhere else.
Every time I change the php.ini I restarted the server to be sure.
Current status when I restart the webserver:
[ZAYJeB9U8Bs23lWBt1IiZAAAAIA] /index.php?title=Main_Page Error: Call to undefined function MediaWiki\Extension\Scribunto\Engines\LuaStandalone\shell_exec()
Backtrace:
from /var/www/mediawiki-1.39.0/extensions/Scribunto/includes/engines/LuaStandalone/LuaStandaloneEngine.php(89)
Reinstalling is rarely a solution to a problem, except if you explicitly do wipe all existing configuration data (which often does not magically happen when "reinstalling"). Malyacko (talk) 11:26, 28 February 2023 (UTC)
I suppose its possible that the disabled_function default was changed at compile time, although that would be pretty unusual. Bawolff (talk) 19:09, 6 March 2023 (UTC)
That's kind of surprising. The error message for an SELinux issue should be different. Regardless, glad to hear you got it working. Bawolff (talk) 20:54, 9 March 2023 (UTC)
Show webp thumbnails as webp and not as png
Latest comment: 3 years ago2 comments2 people in discussion
I would like to serve (new) images as webp to my visitors.
If I tell MediaWiki to show a thumbnail of the image, ImageMagick unfortunately creates a png thumbnail instead of a webp thumbnail. My webhost said we can't tell ImageMagick to create webp by default.
Some people (wikipedia) do stuff outside of mediawiki to make this work. I'm not sure precisely, but i think some combination of varnish/swift/thumbor is used to look at accept headers and dynamically chose the format to use. Bawolff (talk) 16:21, 27 February 2023 (UTC)
Big gray box appears on short pages with timeless skin.
Latest comment: 3 years ago1 comment1 person in discussion
Latest comment: 3 years ago1 comment1 person in discussion
I forgot my user name and I the email associated with my account. Can someone contact via email how to look this information up. I do not want to create another account as this will cause you to have duplicate accounts and mess up my stuff too. Thank You Rochelle ~~~~ Please reply via email at rochelleannwanberg@gmail.com 67.218.78.74 (talk) 21:45, 27 February 2023 (UTC)
Please unblock me
Latest comment: 3 years ago2 comments2 people in discussion
RESOLVED
Blocks on en.wikipedia need to be dealt with at en.wikipedia
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 was blocked on English Wikipedia, which caused problems like not being able to edit. Please unblock me.
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
Is offline MediaWiki inaccessible to anyone?
Latest comment: 3 years ago2 comments2 people in discussion
Sorry if this isn't the right place to ask.
I've been trying to download MediaWiki so that I can use a Wikipedia-style wiki for offline documentation (using the AMPPS software stack). Is it possible for me to do this fully offline (i.e. no other person can possibly access it)? Nythar (talk) 10:31, 28 February 2023 (UTC)
Yes, although this has more to do with how you configure your webserver (i.e. make sure the bind address is 127.0.0.1) Bawolff (talk) 10:58, 28 February 2023 (UTC)
The translation content is not displayed, running update.php is invalid, reinstalling wiki is invalid, refreshing page is invalid, refreshing with action=purge paper is invalid, and translation accuracy is normal.
Latest comment: 3 years ago3 comments1 person in discussion
The translation content is not displayed, running update.php is invalid, reinstalling wiki is invalid, refreshing page is invalid, refreshing with action=purge paper is invalid, and translation accuracy is normal. 维基佛祖 (talk) 10:49, 28 February 2023 (UTC)
syntaxhighlight broken after migration from 1.37.2 to 1.39.2
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.
Warning: mkdir(): No such file or directory in /usr/local/www/mediawiki/vendor/wikimedia/shellbox/src/FileUtils.php on line 113
All pages with syntax highlight tags fail to load. AFAIK, It is not a permissions issue.
I managed to make everything work after the migration by installing all dependencies etc. But syntaxhilghligh doesnt work. I'm desperate to get this working.
Is it only the main page? That would be kind of weird. Could be that it happens once and then gets cached somehow. Do you have any CDN/varnish caching setup? Bawolff (talk) 14:51, 28 February 2023 (UTC)
#Bawolff. webserver/ php error logs contains no errors, was already posted.
There are two types of log files i can see and download.
This one just called Errorlogs ( only for the last 5 days possible )
Gives me this notification for the first time today.
PHP Deprecated: Required parameter $rules follows optional parameter $value in /mnt/web018/b1/20/511036220/htdocs/STRATO-apps/mediawiki_01/app/vendor/wikimedia/less.php/lib/Less/Tree/Directive.php on line 20
Deprecation warnings are safe to ignore, but the fact it is present suggests it is the correct error log for php.
Sometimes php and webserver share an error log, sometimes they are separate. If they are separate you should also try and find webserver error logs in case the error is on the webserver layer. Bawolff (talk) 12:35, 1 March 2023 (UTC)
The zip files I downloaded are abracadabra to me. I have downloaded them over various periods but I can't do anything with it. It looks like this:
[01/Mar/2023:02:14:59 +0100] "GET /index.php?title=Hoofdpagina HTTP/1.1" 200 6451 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"
[01/Mar/2023:10:54:20 +0100] "GET /index.php?title=Hoofdpagina HTTP/1.1" 200 6448 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"
[01/Mar/2023:12:54:11 +0100] "GET /index.php?title=Hoofdpagina HTTP/1.1" 200 6448 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"
[01/Mar/2023:12:54:15 +0100] "GET /index.php?title=Hoofdpagina HTTP/1.1" 200 6449 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" Nipperus (talk) 13:01, 1 March 2023 (UTC)
error_reporting( E_ALL ); and error_reporting( -1 ); are equivalent. E_ALL is a PHP constant that means all possible errors, and -1 does the same.
Note that for those lines to work, the error should happen *after* those lines have been executed by PHP! For example, a syntax error after or before those lines will prevent those lines from execute, or a runtime error if it happens before those lines. Be sure you add them directly in index.php after the "<?php" line. Ciencia Al Poder (talk) 14:53, 28 February 2023 (UTC)
Latest comment: 3 years ago11 comments3 people in discussion
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Deprecated: mb_convert_encoding(): Handling HTML entities via mbstring is deprecated; use htmlspecialchars, htmlentities, or mb_encode_numericentity/mb_decode_numericentity instead in /usr/local/www/mediawiki/vendor/wikimedia/html-formatter/src/HtmlFormatter.php on line 94
I get this error when using the Citizen skin. Is there a way I can just maybe mute it?
formatnum] Language::formatNum with non-numeric string │
[formatnum] Language::formatNum with non-numeric string │
[error] [be374c1593045a7ea15a5f5e] /index.php?title=MediaWiki_2023_Planning&action=edit§ion=20 PHP Deprecated: mb_convert_encoding(): Handling HTML entities via mbstring is deprecated; use htmlspecialchars, htmlent│
Now I get it also on vector-2022... is it a php version thing, should I forget php-8.2 and go with older php 8.1 or even 8.0?? Kroulingor (talk) 17:52, 28 February 2023 (UTC)
I'm losing my sanity. I think I will NUKE and start over with older version of PHP such as 8.1, should I go back to 8.0? anyone has a suggestion?? this is FreeBSD where I installed it. Kroulingor (talk) 18:08, 28 February 2023 (UTC)
This is not the only file that controls debug output. php.ini is the primary file that controls this, however it can be overridden via the error_reporting reporting directive in LocalSettings.php (e.g. Set error_reporting( E_ALL & ~E_DEPRECATED & ~E_STRICT );) Bawolff (talk) 20:21, 28 February 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
Browser incapatability
Latest comment: 3 years ago5 comments3 people in discussion
Hello,
Very inexperienced Mediawiki user here.
I did a recent site migration and now my mediawiki looks good on Firefox, but the tables are extra elongated in MS Edge and Chrome. I am using a SKIN
Is there a way to fix this?
Also, I want to add new pages to the navigation bar because certain things such as "Edit" and "Special Pages" are not on the navigation bar in this SKIN.
Any help or guidance would be greatly appreciated.
@Irvingwash: They're just being spammy; ignore em.
As for your issue: what skin are you using? And there's a possibility that your browser is caching the old version's CSS — try force refreshing and see if it helps.
Thank you, Sam, for letting me know! I probably would have had a wonderful conversation with it : ) I assume it's a bot.
The SKIN is something a friend of mine made 8 years back.
The site is a site where my students upload their article summaries and I edit them for grammar, spelling, sentence structure, and fluidity. My students are NYC inner city school kids, so I appreciate this help. Here's the site:
This seems to have to do with those long links pasted in each table cell. If you remove them, then Chrome-based browsers seem not to have a problem. Looks like Chrome-based browsers have a different concept of "word wrapping" than Firefox. (In general, the entire page does not look like a use case for a table, as the table columns do not contain any tabular data - what's the difference between the second and the third column?. Semantically speaking this should be a list and not a table, also for accessibility needs.)
If you want to change your skin you need to edit the code of your skin, and as it is a custom skin only you know the code... You can see a different skin (Vector) in action by adding the suffix "?useskin=vector" to your web address. Malyacko (talk) 09:18, 1 March 2023 (UTC)
jQuery UI Out of date Vulnerability - Pending for more than 2 years
We recently upgraded the app from Mediawiki 1.35.x to 1.39.1. There are outstanding vulnerabilities related to JQuery UI modules that exists after the upgrade. The security tool utilized for scanning is Invicti NetSparker. The Vulnerabilities reported are:
jQuery UI Tooltip and detected that it is out of date.
jQuery UI Autocomplete and detected that it is out of date.
jQuery UI Dialog and detected that it is out of date.
Is there a way to load the latest module of the jQueryUI module through ResourceLoader?
Considering these vulnerabilities are more than 700+ days old, need to determine a path forward utilizing the MW software before getting "Rejected" from Security.
Let me know if you need additional details.
Installed software
Latest comment: 3 years ago2 comments2 people in discussion
MediaWiki uses a patched version of jQuery UI with various bug fixes applied on top of the base version. Many of the vulnerabilities found on the upstream codebase also don't apply to MediaWiki because we either don't use those features or don't pass untrusted user input to them.