Project:Support desk/Flow/2024/05
| 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. |
| This page is an archive. |
| Please ask questions on the current support desk. |
Requesting speedy deletion of own comment
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.
Is it possible for an author to request speedy deletion of own comment? Ahri Boy (talk) 10:56, 1 May 2024 (UTC)
- Yes Clump (talk) 11:07, 1 May 2024 (UTC)
Wiki Family, two Translations have the same spelling
I'm hosting a wiki for a niche game: https://myhordes.eu; the wiki is hosted at: https://mhwiki.org/
We have a page 'Distinctions' that is the same name in both French and English, therefore I would assume that these two urls would go to their respective French and English translations:
https://en.mhwiki.org/wiki/Distinctions
https://fr.mhwiki.org/wiki/Distinctions
The reality is that if I have `wgSharedDB` commented out (unset) then the page is in English for both links, and if I have it set to the default database `mhwiki` then it seems to show the french version for both urls.
If you log in, then the issue is corrected, but there are a lot of non-logged in users. Isaaclw (talk) 13:34, 2 May 2024 (UTC)
- you will need to give more information about your setup. Normally $wgSharedDB is only about user accounts and not article content. Bawolff (talk) 16:54, 2 May 2024 (UTC)
how do you set the paramator - that only people that register can post and edit
HI we would like to restrict posting and editing to people that create an account. how can we do this?
Thank you! Bananatree88 (talk) 18:17, 2 May 2024 (UTC)
css for Vector-2022
Where shall I place my css modifications for the new Vector (2022) skin? I've tried MediaWiki:Vector-2022.css
but it has no effect. 2003:C2:3F21:FD00:516D:5391:79D1:A338 (talk) 19:42, 2 May 2024 (UTC)
- It may take some time to take effect, usually 20 minutes at most. Otherwise, a syntax error in that page may render the entire CSS or from one point to the end unusable. For example, if you forgot to open or close curly braces. You may want to check if the CSS of that page is valid running it through an online CSS validator. Ciencia Al Poder (talk) 15:27, 3 May 2024 (UTC)
- Sorry, no, there must be another reason. The same css code works fine as "User:MyUser/vector-2022.css" and does not work as "MediaWiki:Vector-2022.css"
- Any other ideas? It is Mediawiki 1.39.6 2003:C2:3F21:FD00:48AC:4A02:818F:D381 (talk) 17:59, 4 May 2024 (UTC)
- $wgUseSiteCss may be false, it fails only on restricted pages and $wgAllowSiteCSSOnRestrictedPages is false, or MediaWiki:Vector-2022.css or MediaWiki:Common.css (!) contains other CSS with syntax errors that renders the entire CSS unparseable (since both stylesheets are concatenated together).
- Check also the browser's developer console Ciencia Al Poder (talk) 08:29, 6 May 2024 (UTC)
- We don't use $wgUseSiteCss, so it is true by default.
- It is the CSS code itself that does not work, but I am helpless why. CSS is nothing that I understand, the code came into being by copy&paste and a lot of try&error. It reads:We use it to position some icons right beside the article title (via top-notice-ns). This works with serveral skins, CologneBlue, DarkVector, Modern, Timeless, and the old vector skin. Of course the "top" value is different in each skin's css. Only with Vector-2022 it does not do anything, no matter which value.
.mw-body { position: relative; z-index: 0; } .mw-body-content { position: static; } .perrypedia_translator { display: inline-block; position: absolute; top: -3.8em; right: 0; } - On the other hand, some other css that I inserted into MediaWiki:Vector-2022.css does work perfectly well. 2003:C2:3F3F:4A00:49D7:2504:A269:1D1 (talk) 19:14, 15 May 2024 (UTC)
Is there a way as admin to see the list of registered users? Thanks
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Can I see a list of registered users as admins Bananatree88 (talk) 20:10, 2 May 2024 (UTC)
- Go to the page Special:ListUsers Bawolff (talk) 23:21, 2 May 2024 (UTC)
upload api - how can I wrap lines in the text parameter
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.
How can I wrap lines when I fill the text parameter when using api.php?action=upload? According to the Documentations, the text parameter should be in the query string, but I need to write something like this...
=={{int:filedesc}}==
{{Information}}
=={{int:license-header}}==
{{self|cc-by-sa-4.0}}
It need to wrap lines, but how?
Thanks! Creamycd (talk) 12:17, 3 May 2024 (UTC)
How to change the pages / hide the install config pages from main page
I am sorry for all the stupid questions - I see on the main page it shows how to configure etc even if you are not an admin - how can you change that and have the pages / topics created show on the main page? Bananatree88 (talk) 13:28, 3 May 2024 (UTC)
- If by pages / topics you mean actual pages, you can transclude Special:NewPages as {{Special:NewPages/25}}
- Alternatively, use a proper forum software instead of MediaWiki. Ciencia Al Poder (talk) 15:31, 3 May 2024 (UTC)
- Dont worry about stupid qusstions. Its what we are here for. Bawolff (talk) 16:46, 3 May 2024 (UTC)
Mediawiki S3 Saving error
Hi,
Can you help me debug some mediawiki + S3 compatible service errors ? ( image resize / uploads )
It's an error i have on my server but not locally, but i haven't found any obvious difference between the setup yet
I'm using the following :
- mediawiki 1.39.6 ( a canasta image : canasta:1.39.6-20240104-346 )
- AWS extension 0.12.0
- minio
My FileOperation log :
2024-05-03 15:57:57 9de13bf397d2 mediawiki: S3FileBackend: found backend with S3 buckets: mediawiki, mediawiki/thumb, mediawiki/deleted, mediawiki/temp.
2024-05-03 15:57:57 9de13bf397d2 mediawiki: S3FileBackend: doPrepareInternal: S3 bucket mediawiki, dir=temp/4/42, params=noAccess, noListing, dir
2024-05-03 15:57:57 9de13bf397d2 mediawiki: S3FileBackend: doSecureInternal: creating temp/.htsecure in S3 bucket mediawiki
2024-05-03 15:57:57 9de13bf397d2 mediawiki: S3FileBackend: exception [Null] in doSecureInternal from PutObject ({"Bucket":"mediawiki","Key":"temp/.htsecure","Body":"","@http":[],"@context":[]}): Error executing "PutObject" on "xxxx:9000/mediawiki/temp/.htsecure"; AWS HTTP error: Client error: `PUT xxxx:9000/mediawiki/temp/.htsecure` resulted in a `404 Not Found` response:
<HTML><HEAD>
<TITLE>Network Error</TITLE>
</HEAD>
<BODY>
<FONT face="Helvetica">
<big><strong></strong></ (truncated...)
Unable to parse error information from response - Error parsing XML: String could not be parsed as XML
2024-05-03 15:57:57 9de13bf397d2 mediawiki: S3FileBackend: doCreateInternal(): saving temp/4/42/20240503155757!phpp5WIrX.jpg in S3 bucket mediawiki (sha1 of the original file: jlb3z7ca9kw98dqons8c4pfh0sgo92m, Content-Type: image/jpeg)
2024-05-03 15:57:58 9de13bf397d2 mediawiki: S3FileBackend: exception [Null] in createOrStore from PutObject (false): Error executing "PutObject" on "xxxx:9000/mediawiki/temp/4/42/20240503155757%21phpp5WIrX.jpg"; AWS HTTP error: Client error: `PUT xxxx:9000/mediawiki/temp/4/42/20240503155757%21phpp5WIrX.jpg` resulted in a `404 Not Found` response:
<HTML><HEAD>
<TITLE>Network Error</TITLE>
</HEAD>
<BODY>
<FONT face="Helvetica">
<big><strong></strong></ (truncated...)
Unable to parse error information from response - Error parsing XML: String could not be parsed as XML
2024-05-03 15:57:58 9de13bf397d2 mediawiki: S3FileBackend: Performance: 0.127 second spent on: uploading temp/4/42/20240503155757!phpp5WIrX.jpg to S3
2024-05-03 15:57:58 9de13bf397d2 mediawiki: StoreFileOp failed: {"src":"/tmp/phpp5WIrX","dst":"mwstore://AmazonS3/local-temp/4/42/20240503155757!phpp5WIrX.jpg","overwrite":true,"headers":[],"failedAction":"attempt"} Egg 3846 (talk) 16:58, 3 May 2024 (UTC)
- The 404 responses make me wonder if the domain/port for the s3 bucket is set correctly. Bawolff (talk) 18:16, 3 May 2024 (UTC)
- I found an SSL certificate error for a self signed certificate, do you know if i can ignore this with an option on AWS extension ? 2A01:CB00:B46:200:34EE:2610:62DE:B056 (talk) 15:53, 13 May 2024 (UTC)
Unable to Delete Files
Howdy,
I'm trying to delete some duplicated images, but keep getting the following error:
Error deleting file: An unknown error occurred in storage backend "local-backend".
The images in question all have previous versions that, for one reason or another, show "No thumbnail" as their first version (despite those thumbnails existing previously, prior to new versions being uploaded). Images that don't have "No thumbnail" as their first record can be deleted without issue.
My biggest question is, is there a way to bypass this error and delete the files? Less importantly, what can cause the "No thumbnail" issue to happen? The wiki I'm working on has lost a lot of prior versions of images over the years and no one can pinpoint why, or how to prevent it from happening in the future. 72.23.146.10 (talk) 18:13, 3 May 2024 (UTC)
- Most often this is due to permissions on the filesystem being incorrect. the webserver deamon and the permissions of the directory have to be compatible. —TheDJ (Not WMF) (talk • contribs) 08:50, 4 May 2024 (UTC)
1.39 how to setup mobile skin?
Mediawiki 1.39.6, PHP 7.4.3, MySQL 8.0.36
wfLoadExtension( 'MobileDetect' );
wfLoadExtension( 'MobileFrontend' );
wfLoadSkin( 'MinervaNeue' );
$wgMFDefaultSkinClass = 'SkinMinerva';
$wgDefaultMobileSkin = 'MinervaNeue';
$wgMinervaEnableSiteNotice = true;
$wgMFAutodetectMobileView = true;
$wgMFEditorOptions = array(
'anonymousEditing' => false,
'skipPreview' => false
);
Till 1.35 we used to have MinervaNeue as mobile skin. With 1.39, this doesn't work anymore. Mobile devices apparently use the vector skin. What will i have to do to make the mobile skin work?
The mediawiki logfile is full of thousands of lines which don't say nothing to me, by filtering "mobile" i found one interesting line:
[resourceloader] Module "ext.MobileDetect.mobileonly" not loadable on target "mobile".
??? 2003:C2:3F21:FD00:9449:AC0F:F20E:94B7 (talk) 13:59, 4 May 2024 (UTC)
- Do you have the correct versions of all your extensions? You need 1.39 version of Minerva and MobileFrontend etc. Bawolff (talk) 22:19, 4 May 2024 (UTC)
- I am quite sure. MobileDetect 2.2 (fc3a66e) 18:49, 11. Feb. 2024, MobileFrontend 2.4.0 (7dc20b0) 07:36, 4. Mär 2024, MinervaNeue – (d515f6a) 08:24, 29. Apr. 2024
- These are the versions I get when using ExtensionDistributor and SkinDistributor using target "1.39"
- In the desktop browser, skin MinervaNeue has got the look. After login, of course. On my mobile, the skin is s.th. like vector, whether I am logged in or not. This means even when I select MinervaNeue in my user preferences!
- Certainly the problem is sitting here in front of my screen, but I've got no more ideas where to look. 2003:C2:3F21:FD00:E5D4:4DFC:FAFA:3692 (talk) 12:14, 5 May 2024 (UTC)
- How about $wgDefaultMobileSkin = 'minerva'; Pspviwki (talk) 17:46, 6 May 2024 (UTC)
- This answer is not helpful. In fact, may you be volunteers or not, this is exactly the kind of answer that makes me angry. This is exactly the kind of support that is superfluous. "Why do you want to use x, use y" is intolerable.
- We used to have MinervaNeue as mobile skin for years and years. It used to work for years and years. Now with the upgrade it does not work anymore. You tell me I should use another skin. I am upset, i am outraged. If it does not work THEN DO NOT OFFER IT. 2003:C2:3F3F:4A00:49D7:2504:A269:1D1 (talk) 19:32, 15 May 2024 (UTC)
- f***, te name of the skin is MinervaNeue but the value of the parameter is minerva. But, it has been working for years and years so obviously some sort of braniac must have changed it. Those kind of modifications are making me ill. Thanks for the conversation. 2003:C2:3F3F:4A00:B4E7:5E4:D871:A6EB (talk) 11:03, 26 May 2024 (UTC)
Subpages Not Allowed?
On import, i'm getting
Wrong option: Namespace "(Main)" of the root page does not allow subpages.
How to fix?
Manual:Importing XML dumps Johnywhy (talk) 20:00, 4 May 2024 (UTC)
implement 2 potentially useful functions
1. As you will already know, to put a link that shows the logs of a page (let's say the "Example" page), we have to write "https://mediawiki.org/wiki/Special:log?page=Example", "[/mediawiki.org/wiki/special:log?page=example]" or "{{fullurl:special:log|page=example}}", I would suggest that just writing "{{Special:log|page=example}}", instead of ignoring any character after the pipe/vertical bar ("|"), have it (into account) as a parameter separator like "{{Special:Prefixindex/Editnotices|namespace=10|stripprefix=1}}" does, not only on that special log page, but also on any other special page. 2. We can write [[Special:Log/create]] rather than "https://mediawiki.org/wiki/Special:Log/create" or "https://mediawiki.org/w/index.php?title=Special:Log&type=create" to view log of pages created, but with subtypes of a log type cannot use double square brackets, if we want to see the page restoration logs, we have to write obligatory "https://mediawiki.org/wiki/Special:log/delete?subtype=restore" or "{{fullurl:Special:Log/delete|subtype=restore}}", if "delete" or any other type of log (that has subtypes), is not added, the subtype is simply ignored, but that has nothing to do with this 2nd implementation, I suggest that the system can show the same page logs when instead of having "?subtype=<name of a subtype log>" in the URL it had "/<name of a subtype log>", the shortest URL to display restore logs would be "https://mediawiki.org/wiki/Special:log/delete/restore" instead of "https://mediawiki.org/wiki/Special:log/delete?subtype=restore", so, we could go to that page by just typing "[[Special:log/delete/restore]]" instead of having to type the full URL or using "{{fullurl}}", and furthermore, with that implementation, we could also see Pppery's modified block logs writing "[[Special:Log/block/reblock/Pppery]]" instead of "{{fullurl:Special:Log/block/Pppery|subtype=reblock}}", It would also be valid to write "https://mediawiki.org/wiki/special:log?type=block/reblock"
If they are implemented, we would save ourselves from writing full URLs or using {{fullurl}} 185.169.64.46 (talk) 02:59, 5 May 2024 (UTC)
Reinstalled MySQL and can't find a way to put Mediawiki database back in place from backup
I was having trouble with my MySQL installation on an Ubuntu server where I host a Mediawiki. After hours of trying to research how to fix it, it seemed my only choice was to purge remove MySQL and then install it again. Eventually this worked and now MySQL runs correctly again.
Before doing this, I backed up /var/lib/mediawiki and /var/lib/mysql/ by coping those directories. Now that I've reset mysql, I've not been able to figure out a way to put the data back in place using the backup of .frm and .ibm files. I copied them back into place after creating a new empty MySQL database for the wiki, but it doesn't automatically import the data from these files and I can't find much information online that indicates how to do it in a situation like this. Guides for importing a Mediawiki backup all seem related to XML and other formats which I don't have.
I also don't want to fully reset my Mediawiki installation if that's possible, I would just like to configure it (or MySQL) in a way where I can make it work again using the backup files. update.php also can't run due to missing tables, and the wiki itself doesn't currently work at all without the database containing the data it needs.
What can I do to sort this out and make it work again with the pre-existing data? Giovata (talk) 20:50, 5 May 2024 (UTC)
- Its possible probably but not straightforward. In future you should make mysql backups using the mysqldump tool.
- Does https://stackoverflow.com/questions/10934745/restore-the-mysql-database-from-frm-files help? Bawolff (talk) 23:20, 5 May 2024 (UTC)
$wgUsePathInfo A problem by any definition
MediaWiki ver 1.41
I had this problem shown here:
Project:Support desk/Flow/2023/07#h-Image_click_returns_"invalid_source_image"-20230730202700
So as written there I set $wgUsePathInfo = false; and that solved it
But then we get this problem:
And here they write that the solution to this is: $wgUsePathInfo=true;
What to do? Is there a way to solve this? 77.127.126.137 (talk) 08:23, 6 May 2024 (UTC)
- Regarding the issue from Help talk:VisualEditor/User guide/Flow export#h-Visual_Editor_adds_"index.php?title="_in_front_of_every_file_link_when_saving-20221201222400: What is the value of your
$wgArticlePath? Osnard (talk) 09:10, 6 May 2024 (UTC) - I don't have this word in the LocalSettings folder
- I didn't have wgUsePathInfo either until this problem 77.127.126.137 (talk) 09:21, 6 May 2024 (UTC)
- Do you use short URLs? If not try using them and set
$wgArticlePath. Osnard (talk) 11:06, 8 May 2024 (UTC) - No I don't use, this is my site:
- https://tzefunotwiki.com
- I will have to take some time to figure out how to do it 87.70.1.55 (talk) 08:25, 9 May 2024 (UTC)
remove personal identifiable information
How to remove personal identifiable information from a given user.Is there any extensions similar to Extension:RemovePII . How to get the RemovePII for mediawiki 1.39, the default download is compatible only with mediawiki 1.41.
- How to remove page history older than 2 months?@Osnard Luciferindcok21 (talk) 09:27, 6 May 2024 (UTC)
- See Suppression.
- By default this feature isn't enabled but it is builtin, so you have to gove admins additional user rights Bawolff (talk) 22:42, 6 May 2024 (UTC)
- @Bawolff could you please explain how? Luciferindcok21 (talk) 04:49, 7 May 2024 (UTC)
- How to remove page history older than 2 months?
- I don't think one can do that. But there is Manual:DeleteOldRevisions.php. Be very careful with this, as it will actually remove data. Make a backup before running anything like this. Osnard (talk) 11:01, 8 May 2024 (UTC)
- @Osnard Is there any way to Switch all revision older than a specific date to a provided user (e.g. Anonymous) without actually merging the user?
- example id user1 has made changes 10 years ago, history should be displaying name as anonymous user. Luciferindcok21 (talk) 06:28, 3 June 2024 (UTC)
- I am not aware of any such function. There are extensions like Extension:BlueSpicePrivacy that implement some sort of "anonymization" or "pseudonymization", but I dnot sure if this will suit your needs. Osnard (talk) 07:30, 4 June 2024 (UTC)
JS Library for MediaWiki
I want to create a js library for using indexedDB Where do I upload the code and how? In addition, where are development guidelines? מיכי י-ם (talk) 11:23, 6 May 2024 (UTC)
- Can you give more context? Who is this library for, what code would be using it? Bawolff (talk) 05:29, 7 May 2024 (UTC)
- I didn't understand the question. I want to create a basic library for a variety of uses, it will be used on wikis to create local databases, store information in them and retrieve it. מיכי י-ם (talk) 10:14, 7 May 2024 (UTC)
- MediaWiki is not a general place to store libraries. We generally expect code contributed to MediaWiki is going to be used by MediaWiki. Bawolff (talk) 21:06, 8 May 2024 (UTC)
- Absolutely agree, I think it will be used by MediaWiki users like
mw.storage. - Example of use. The current version of MediaWiki has the EditRecovery functionality that saves the edits in indexedDB, I am an editor on an external site that uses the LST version of MediaWiki and does not yet have this functionality and would like to integrate it using a script. מיכי י-ם (talk) 07:07, 9 May 2024 (UTC)
I successfully uploaded files with 'hwp' and 'hwpx' extensions on MediaWiki, but they're not downloadable. What should I do?
You've successfully uploaded files with 'hwp' and 'hwpx' extensions on MediaWiki, but they're not downloadable. What should you do? Shb06202 (talk) 07:46, 7 May 2024 (UTC)
- In the LocalSettings.php file, I added the following lines:
- # File upload $wgStrictFileExtensions = false; $wgCheckFileExtensions = false; $wgVerifyMimeType = false; $wgFileExtensions[] = 'hwpx'; $wgFileExtensions[] = 'zip'; $wgProhibitedFileExtensions = array_diff($wgProhibitedFileExtensions, ['hwpx']); // $wgTrustedMediaFormats[] = 'ARCHIVE'; $wgTrustedMediaFormats[] = 'application/zip';
- Despite adding these lines, only uploads are possible, and downloads are not working. Shb06202 (talk) 07:52, 7 May 2024 (UTC)
- What error do you get when downloading them? Ciencia Al Poder (talk) 10:44, 7 May 2024 (UTC)
- When attempting to download, instead of a download popup, a broken screen is displayed, and the download is not initiated. Shb06202 (talk) 02:44, 8 May 2024 (UTC)
- Unless you're using an extension that stores files in AWS, Swift or other custom location, files are stored directly on disk. And if you haven't configured MediaWiki to serve files through img_auth.php, clicking on any file would point to an URL that directly maps a file on the server. This means MediaWiki doesn't do anything to serve the file to you, it's your webserver's matter.
- Maybe you must configure your webserver to download those files, if for some reason it refuses to serve a file with an unknown extension. Or maybe an intermediate proxy, a firewall or antivirus is blocking the file from being downloaded. Or even your browser may be blocking it.
- You'll have to check the URL of the file it tries to download, ensure the file exists on the web server, and check webserver logs for any error or warning. Then try different servers or tools to download that URL. Ciencia Al Poder (talk) 09:02, 8 May 2024 (UTC)
Page not getting marked for translation
Hi there,
We created a template for the new Wikibase main page. The latest revisions are two weeks old and have not been marked for translation -- perhaps because this is the revision set in which we removed the DoNotTranslate template. Would it be possible to get this page marked for translation?: Template:Wikibase main page
Thanks, and if we did something wrong in this process please let us know so we can avoid this situation in future. Dan Shick (WMDE) (talk) 10:57, 7 May 2024 (UTC)
Done- For future reference, these types of requests should go to Project:Village pump not this page. Bawolff (talk) 21:03, 8 May 2024 (UTC)
- Thank you, sorry for the misplaced ask. Dan Shick (WMDE) (talk) 11:21, 13 May 2024 (UTC)
Hello
My account is gone I can't log in and I pait for the membership 2001:1C03:5F0F:1800:F6AE:FA91:87A3:8FA9 (talk) 13:48, 7 May 2024 (UTC)
- We dont have memberships. You are likely in the wrong place, this is the support desk for the free Mediawiki software package. —TheDJ (Not WMF) (talk • contribs) 15:56, 7 May 2024 (UTC)
Blocks
Hello,
Not sure if this is the right place to ask but i want to ask something.
When blocking people on my own wiki i noticed they cant use the usertalk page. Is there any way i can make it so they can use that function to use on an admin usertalk for something like appealing a ban?
Any help would be appreciated, thanks. Freedomfighterz (talk) 15:33, 7 May 2024 (UTC)
- Please see Manual:$wgBlockAllowsUTEdit. P858snake (talk) 08:36, 8 May 2024 (UTC)
Adding a template to a Mediawiki installation.
Hi,
My ISP allows an instance of Mediawiki 1.41.1. A color template renders as "Template:color" in red. Similarly for the font color template. Meaning that the templates are not available; correct? How can that be fixed? Where can definitions of the color and font color templates be found? How can I add them to my Mediawiki instance? Thanks, ... PeterEasthope (talk) 16:10, 7 May 2024 (UTC)
- Maybe Manual:Importing Wikipedia infoboxes tutorial would be helpful. Bawolff (talk) 21:02, 8 May 2024 (UTC)
- That gave documentation for using a template. What I want is the definition of the font color template; not instructions for use. I understand how it is used.Thanks, ... PeterEasthope (talk) 00:53, 1 June 2024 (UTC)
Help with formating
I should begin with saying im completely unfamiliar with coding in HTML or anything that has to do with MediaWiki.
I have managed to install MediaWiki on Localhost (Im using Apache2 on an old linux laptop i recently got, its a miracle that i even managed that!)
I want to be able to arrange a wiki page as i wish (for example, Wikimedia's home page has an interesting format! I want to make something parralel to that) and also i want to be able to put these boxes that are found both in the MediaWiki website and Wikipedia itself, that are blue with an 'i' icon, or red with an '!' icon. I think i have also seen yellow boxes with a coresponding triangular symbol. (just to illustrate my unfamiliarity, i dont even know how these 3 are called.)
Any help will be extremely appreciated! ItsGerryz (talk) 20:34, 7 May 2024 (UTC)
- You are probably thinking of ambox - w:Template:Ambox. Manual:Importing Wikipedia infoboxes tutorial might be helpful but its not generally something i reccomend to new users.
- As for layout, i would reccomend finding a CSS tutorial (a generic one, not mediawiki specific). E.g. https://developer.mozilla.org/en-US/docs/Learn/CSS/First_steps (if you dont like that one there are a lot of others on the internet) Bawolff (talk) 06:33, 9 May 2024 (UTC)
Block Video Uploads for Non Admins - Extension Troubleshooting
Hello,
I am working on a custom extension that would only allow admin users to upload video files, the extension is enabled and appears under Special:Version. The permission also appears under the correct category under Special:ListGroupRights.
However, when I attempt to upload a video (mp4) under Special:Upload, it goes through.
I just enabled error reporting / showExceptionDetails / debugToolbar / ShowDebug / DevelopmentWarnings and added print statements to my extension file, but I am not seeing any indicators that it's trying to work but is failing.
I am hoping somebody could point me in the right direction on how to debug this more efficiently or offer insight into the problem. Thank you for your time and expertise.
In the PHP file:
namespace MediaWiki\Extension\VideoPermissions;
use MediaWiki\Hook\UploadVerifyUploadHook;
use User;
use UploadBase;
class PermissionCheck implements UploadVerifyUploadHook {
public function onUploadVerifyUpload (UploadBase $upload, User $user, ?array $props, $comment, $pageText, &$error) {
$file = $upload->getLocalFile();
if ($file->getMediaType() !== MEDIATYPE_VIDEO) {
return;
} else {
$title = $upload->getTitle();
if ($user->definitelyCan('videopermission-allow', $title)) {
} else {
$error = 'videopermission-no-perm-to-upload';
return false;
}}}
in the extension.json file:
"AvailableRights": ["videopermissions-allow"],
"GroupPermissions": {"sysop": {
"videopermissions-allow": true
}},
"Hooks": {"UploadVerifyUpload": "main"
},
"HookHandlers": {"main": {
"class": "\\MediaWiki\\Extension\\VideoPermissions\\PermissionCheck"
}}, Kimmywingz (talk) 21:22, 8 May 2024 (UTC)
- So, first of all, print() (and echo) won't work in mediawiki due to output buffering. Always use var_dump() if you want to output something for debugging purposes to the page (or if you want to output to the debug log, use the debug logging system. You can use wfDebug() as a one off, or add a LoggerFactory as a dependency if you want to do it more properly for longer lived code). I personally tend to use var_dump() for one off debugging instead of debug log system, as i find it easier, but its a matter of personal preference.
- One thing to note is that in workflows where a POST request is made, processing happens, and then the user is redirected to a different page, the debug messages will be associated with the redirect not the target. I believe that upload processing is one such example of this. In these cases wgDebugToolbar and var_dump wont work (a hack sometimes used is to follow var_dump() immediately by die() to stop processing). In such a case i reccomend setting $wgDebugLogFile to some file and then using wfDebug() for debugging. That way you wont miss the debug messages on redirects.
- Based on your description it sounds like permissions are being setup correctly, but the hook is not firing. My suggestion would be to verify if that is true, by putting wfDebug("HERE"); as the first line of your onUploadVerifyUpload function and checking the debug log file to see if it is called at all. If it is being called then i would suggest recording the values of various conditions variables to ensure they match what you think they should be.
- Another thing to check - i'm not sure at what point this hook is called. Determining media type is part of file verification. Possibly this hook happens before the file object knows the file is a video. If so, you might have better luck using the $props array passed to the hook. I believe it should also have media type information. Bawolff (talk) 06:25, 9 May 2024 (UTC)
- @Bawolff Thank you for that information. I think you are correct that the hook doesn't know the file object is a video. You mentioned using the $props array, so I tried this (I also switched around the permissions so users were defaulted to not having video permission and admin users did) and it seems to get the file information, however it makes it so no users can upload videos (but they can upload other types of files). I have also tried definitelyCan vs isAllowed (same results). I have also switched up the logic (same results).
class PermissionCheck implements UploadVerifyUploadHook { public function onUploadVerifyUpload (UploadBase $upload, User $user, ?array $props, $comment, $pageText, &$error) { if ($props['mime'] === 'video/mp4' && $user->isAllowed('not-upload-videos')) $error = 'videopermission-no-perm-to-upload'; return false;- Other variation:
if ($props['mime'] !== 'video/mp4') { return; } else { $title = $upload->getTitle(); if ($user->definitelyCan('not-upload-videos', $title)) { $error = 'videopermission-no-perm-to-upload'; return false;- Any thoughts you have would be most welcomed. Kimmywingz (talk) 01:46, 5 June 2024 (UTC)
- Hmm. Are you sure permissions are set up correctly (e.g. the list on Special:listGroupRights matches what you expect, and admins really do have the correct permission)? Bawolff (talk) 10:37, 5 June 2024 (UTC)
- @Bawolff It was totally the permissions! I tried it with both permission - the ability to allow video uploads and a permission to not allow them and IT WORKED!!!!! My first extensions, so awesome!! Thank you for your guidance!!! Kimmywingz (talk) 14:17, 5 June 2024 (UTC)
- Incase the code is useful for anybody else. I gave videopermissions-allow to admin and not-upload-videos to all usersKimmywingz (talk) 14:19, 5 June 2024 (UTC)
class PermissionCheck implements UploadVerifyUploadHook { public function onUploadVerifyUpload (UploadBase $upload, User $user, ?array $props, $comment, $pageText, &$error) { $title = $upload->getTitle(); if ($props['mime'] !== 'video/mp4' || $user->definitelyCan('videopermissions-allow', $title)) { return; } else { if ($user->definitelyCan('not-upload-videos', $title)) { $error = 'videopermission-no-perm-to-upload'; return false; } } } }
Extension Popups
Hello
I have a small issues with this extension.
Mediawiki 1.39.7 (Sokradia (cc-zeitlos.synology.me))
Since some upgrades the popup funktion looks that it is not working, when the extension passes over a namespaces like categorie.
I have an additional Namespace named Quelle (in englisch "Source" an 3000 and 3001)
Typicly popups has to go sometimes over this namespace to have his preview funktion this is also not working...
An other mystery view is ... if Popup has to look in the namespace to an other page which not not have simple text, because he start directly with an TOC (Überschrift / Header) then also the preview text will not be displayed.
Thank you for your help Sokradia (talk) 10:01, 9 May 2024 (UTC)
The Translation tool has too many problems
I already complained about that, made the ticket and everything. Yet, no solutions were presented.
The tool keeps flagging every single stretch of the text as having 100% to 96% unmodified text, thus blocking the publication of the article. Almost every translation keeps giving me the false-positive of it being an earlier version of the article, thus also impeding the publication of the same.
The tool never saves the infobox, thus forcing me to remake it every time I open the translation. It keeps losing entire paragraphs already translated, thus wasting my time in re-translating the same thing 3 or 4 times.
It also clashes auto translation with my translations, usually on links. Filipe46 (talk) 19:00, 9 May 2024 (UTC)
- Is this any different from phab:T356356? Malyacko (talk) 16:29, 12 May 2024 (UTC)
- No, and nothing was done to correct it. Filipe46 (talk) 20:40, 17 May 2024 (UTC)
help : cannot use a Tunit inside a syntaxhighlight
Hi all, Tunit is useful. It works in simple wikicode. But when it is present in a syntaxhighlight, the substitution does not occur. I have tried a text manipulation to get Tunit at first level but it is a bit dirty. Any idea on how to do that in a proper way ?
see -> https://www.mediawiki.org/wiki/API:User_group_membership/Sample_code_1?oldid=6512628#PHP
Thanks.--Christian 🇫🇷 FR (talk) 09:10, 10 May 2024 (UTC)
- There is no substitution inside syntaxhighlighting. It takes code as is and wikicode doesn't really do anything there (not really true, because categorization works, but that is because it happens outside of the rendering pipeline of highlighted fragments). —TheDJ (Not WMF) (talk • contribs) 11:15, 11 May 2024 (UTC)
- You can try #tag, but that presents its own set of challenges Bawolff (talk) 19:37, 12 May 2024 (UTC)
Mobile version doesn't update
Hi all,
I made a wiki with Miraheze for an event I'm organising. I was doing the last updates last night, when I saw that the mobile version wouldn't update anymore. I've tried to clear the cache, it doesn't help. So this morning I went to check the logs and hid all the small changes to the settings I had done. It just made things worst, as now the titles don't expend anymore and the whole wiki is basically useless on mobile. The weird thing is that from some pages, it displays the changes I made to the side bar since, and if I click on links to pages I had not made yesterday, it sometimes bring me to the page I made this morning, and sometimes it doesn't.
I've tried to just disable the mobile front end, as it works well on my phone when I request the desktop version. But it didn't work, it still shows me the broken mobile version by default.
I'm new to media wiki, and I have no idea how most of this works. But I'm pretty desperate. I've spent weeks preparing the wiki and was suppose to release it today to the participants. Any idea how to fix this?
Thanks! ConstanceSL (talk) 11:37, 10 May 2024 (UTC)
- Possibly this is a bug on the miraheze side where mobile is not recieving CDN purges. Please ask at miraheze support. Bawolff (talk) 17:08, 10 May 2024 (UTC)
I can't do php update.php or php run.php update
Hello I am a beginner contributor on mediawiki and I have errors on the installation of extensions my mediawiki I installed with compose. now I can not do: php update.php Christbirego (talk) 13:09, 10 May 2024 (UTC)
- Please include what errors you have. Please explain what you mean by not being able to do update.php (i.e. what is stopping you). Bawolff (talk) 17:07, 10 May 2024 (UTC)

error update.php - When I update, the process does not run to completion Christbirego (talk) 19:25, 10 May 2024 (UTC)
- Are you running this script on the same host as your mediawiki is on? Bawolff (talk) 19:45, 10 May 2024 (UTC)
- I've installed everything with composer, but I don't know if I need to change port to update. Christbirego (talk) 19:58, 10 May 2024 (UTC)
- That wasn't the question I asked... Bawolff (talk) 06:25, 11 May 2024 (UTC)
Remove file category information
In my personal wiki, an image file is listed as „Media contained in category X“ on a category cover page. I'd like to remove the media file from this category, but I can't, as the image page itself contains no category information.
What makes things even worse is that the image file is not only listed on the category page but its name is overwritten by the string „file is missing“.
Can I get rid of this through maintenance scripts or fiddling with SQL? Thanks for your help! Snow white and dwarves (talk) 13:26, 10 May 2024 (UTC)
- Sometimes this can happen if the title contains invalid UTF-8 (And there are two files with basically the same name but one in an invalid variant of UTF-8).
- try running cleanupTitles.php.
- The alternative is to try and find the page id of the image via the api, and manipulate it that way. However the maintenance script is much easier. Bawolff (talk) 17:06, 10 May 2024 (UTC)
- Thanks for your answer, Bawolff!
- Running cleanupTitles.php renamed quite a few files in my database.
- Unfortunately, the sticky media file is still on the category page. I have to try out the API way I guess… :-( Snow white and dwarves (talk) 06:56, 11 May 2024 (UTC)
- I finally succeeded in deleting the sticky media file by using nukePage.php with the page name "File:…" and --delete option as arguments. Yeah! Snow white and dwarves (talk) 20:51, 11 May 2024 (UTC)
Force thumbnail generation with PdfHandler?
I recently performed an reinstall and database restore of a Wiki to fix a different problem. An unexpected positive side effect was that thumbnails are now generated for new PDF files uploaded to the Wiki. Cool!
Is there a way to force the generation of thumbnails for previously uploaded PDFs? I have tried:
php refreshImageMetadata.php -f
followed by:
php rebuildImages.php
without effect.
Thanks for any suggestions. Kjecl (talk) 17:38, 10 May 2024 (UTC)
- What do the old images look like? Is there an error message instead of a thumbnail or is it just missing. Does mediawiki show the correct dimensions for the files in question (as in, does it say it is 0x0 pixels or does it give a real number)? Bawolff (talk) 19:48, 10 May 2024 (UTC)
- Thank you for your interest in my problem.
- The thumbnails for older files are a red stylized 'A' on a white background. Nope, no error message.
- If I go to the Special:ListFiles page, and click on a red A icon, it shows dimensions of 0 x 0.
- I wonder if I could use importImages.php to reload all of the older files. An experiment is in order for one of those files, I think. Kjecl (talk) 17:50, 13 May 2024 (UTC)
- Yes, I can use importImages.php to reload an older file. No, it does not help. Kjecl (talk) 20:52, 13 May 2024 (UTC)
- So the 0x0 usually means that Extension:PdfHandler had problems running the pdfinfo command, which would prevent the creating of thumbnails.
- However if new files are working, then that means that it should be able to run the pdfinfo command.
- In general, running refreshImageMetadata.php -f should fix that. Does the script actually say it refreshed the file in question? If it still isn't working, i could see two possible problems:
- some sort of cache issue. You could try adding ?action=purge (or &action=purge ) to the end of the File: page (the page in the wiki, not the actual file) to see if that does anything to help
- the older files aren't readable by the webserver. This could potentially happen if when you transfered webservers the image files had the wrong permissions or some other sandboxing system prevented access.
- Both of those feel kind of a long shot though.
- Of course its always possible the file being tested is just a broken pdf. Bawolff (talk) 21:32, 14 May 2024 (UTC)
- I used:
ls -lR | grep -v -e <string>- at the top level of the image upload folder, where string was either the owner or the permissions, to check that. I did not find any files with the wrong permissions or ownership.
refreshImageMetadata.php -f- does not say that it refreshed the files (~80 of them) in question. pdfinfo is able to run against all of the files in question sufficiently to report the PDF version. PDF versions for these files range from 1.3 to 1.7.
FILES=$(find $PREFIX -name "*.pdf" -type f | grep -v "/temp" | grep -v "/deleted" | grep -v "/archive" )for F in $FILES; doecho $(pdfinfo $F | grep "PDF version") $Fdone- So, there are about 80 of these files with the 'red A' thumbnails. Apart from the likelihood of error, we could re-upload all of them to get the new thumbnails. We would prefer not to need to take that approach. Also, there is the concern that this symptom betides some problem that will bite us later.
- Thanks again for your help. Kjecl (talk) 22:54, 14 May 2024 (UTC)
Tags
I have created a Glossary of Terms that currently has a few hundred terms. The Glossary is specifically terms used in the Circular Economy, Sustainability, Climate Change, Biodiversity and Resource Scarcity. However, over the next few months, it will expand significantly. The Glossary is only available in pdf format but I would like to make it digital, hence a wiki.
The number of users creating the wiki will be very small, but the number of people accessing the wiki will be thousands. Here are my questions:
1. For external visitors, can I turn off access to make changes?
2. Can I add tags? For example, the Glossary covers terms across many industry sectors. However, if you are from the building industry, only interested in terms related to buildings, if those terms were tagged 'Built Environment' - could a page show a list only of those terms? The types of terms that would be listed are: 'Embodied Carbon', 'Concrete - low carbon', 'Concrete Floors - embodied carbon' etc. So a visitor would see a page with all the terms tagged 'Built Environment' and then click on the term they were interested in.
In the example from SEEBoK, they also have a Glossary which is a category. If you click onto a term, only the definition from that term comes up. https://sebokwiki.org/wiki/Category:Glossary_of_Terms
This would not be suitable for the type of Wiki I wish to build.
Adrienna Zsakay
CEO
Circular Economy Asia Inc
ABN: 99 234 005 090
Website: www.circulareconomyasia.org CircularAsia (talk) 05:20, 12 May 2024 (UTC)
- For 1 - yes, see manual:Preventing access
- For 2, it depends on how exactly you are envisioning this. You may want sonething like extension:SemanticMediaWiki or extension:Cargo, but there are also other options out there. Bawolff (talk) 19:35, 12 May 2024 (UTC)
parser error
Hello everyone !
I recently installed mediawiki with the 'Parser' extension.
But when I try to log in to my wiki, I get this error :
"[ZkDhPaXGad5SVb3nIP2RQAAAAAM] /wiki_test2/index.php?title=Accueil MWException: Parser state cleared while parsing. Did you call Parser::parse recursively? Lock is held by: #0 /var/www/alternc/t/titouan/www/queernet.xyz/wiki_test2/includes/parser/Parser.php(882): Parser->lock()"
Does anyone have an idea what might be causing this ?
Thanks :) 2A02:A03F:66D9:F301:512D:41C:6D44:DFFF (talk) 15:33, 12 May 2024 (UTC)
- I have never heard of an extension named "Parser". Presumably the extension is broken. Bawolff (talk) 19:32, 12 May 2024 (UTC)
- i think the extension is called ParserFunctions. its under the Syntax Analyser Add-ons options when you install mediawiki 2A02:A03F:66D9:F301:512D:41C:6D44:DFFF (talk) 23:19, 12 May 2024 (UTC)
- There is a very big difference between "Parser" and "ParserFunctions".
- Normally the error message should be longer then that. The rest of the error message likely provides information on the cause of the problem.
- Syntax Analyzer Add-ons is not a product we make (nor have i ever heard of it). If you are having trouble with a third party distribution of MediaWiki, consider using the official version at Download. The amount of help we can provide for unofficial distributions made by third parties is limited. Bawolff (talk) 01:58, 13 May 2024 (UTC)
- Hey,
- I don't think this is a third party issue since I downloaded via the official mediawiki site. However I might have gotten the name of the categories wrong since I installed it in French (it was called 'greffons d'analyseur syntaxique') and I'm not sure what the English name is.
- The whole error message is pretty long so I'm going to spilt it to avoid getting blocked. Here is the first part :
- [ZkIaXNlSSMkzRXDjL4XVsgAAACk] /wiki_test2/index.php?title=Accueil MWException: Parser state cleared while parsing. Did you call Parser::parse recursively? Lock is held by: #0 /var/www/alternc/t/titouan/www/queernet.xyz/wiki_test2/includes/parser/Parser.php(882): Parser->lock() 2A02:A03F:66D9:F301:2D10:2604:D876:5217 (talk) 14:06, 13 May 2024 (UTC)
- Okay well the abusefilter won't let me post the rest of the error so here is a link to the wiki :
- https://www.queernet.xyz/wiki_test2/
- if you try to connect you should get the same error as I did
- Here is also a link to screenshots of the complete error I posted online for you to check out
- https://www.queernet.xyz/images/index.html 2A02:A03F:66D9:F301:2D10:2604:D876:5217 (talk) 14:18, 13 May 2024 (UTC)
- I did not get the error when going to your site (maybe it only happens if not logged in), but the image of the error was what i needed.
- I think its unlikely that this error has anything to do with the ParserFunctions extension.
- Can you double check to make sure that your version of vector skin is the correct version for your wiki? Does the error message happen on other skins too or just vector?
- If that doesn't work, i would suggest disabling all skins & extensions, then re-enabling them one by one to see if a specific extension/skin is causing it.
- P.s. if there is something you're not sure what the english name of is, just also include the french name. Bawolff (talk) 21:10, 14 May 2024 (UTC)
- Hi !
- Sorry for getting back to you after so much time.
- It is indeed only when you log in that you get the error.
- I have tried changing skins and the error persits with every skin.
- I have also tried disabling all extensions but even with all of them disabled, I was still getting the error.
- I have also tried downloading media wiki again without extensions but that didn't work either.
- Do you have any other idea as to what might cause the issue? Titouan315 (talk) 22:17, 5 June 2024 (UTC)
- Weird, you are the second person to report this [1], both on the french localization. Maybe there is a MediaWiki bug here. Bawolff (talk) 22:22, 5 June 2024 (UTC)
- See further discussion at phab:T366986. Multiple people have reported this, all using languages with grammatical gender (french, spanish), but we are having trouble reproducing the issue ourselves. If you can think of anything that makes your wiki unique, please tell us in order to help us track down this issue. Bawolff (talk) 18:46, 10 June 2024 (UTC)
Logged in. But not on Boobpedia
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I'm logged in here but not Boobpedia i don't think. I'm not getting the little white star to watch pages yet. I've tried resting throygh the email but but getting the emails . Any advice? Please and thank you. Erika Erikasteele (talk) 12:36, 13 May 2024 (UTC)
- Although Boobpedia's login page links to MediaWiki's help pages (because Boobpedia uses the MediaWiki software), the two projects are unconnected and don't use the same login. You can still edit without having a login; your edits are recorded as being from your IP address. If you still want an account, https://boobpedia.com/boobs/Special:ListUsers?creationSort=1&desc=1 shows the most recently-made accounts. Perhaps you could ask an active new account how they were able to sign up despite the registration page being disabled at Boobpedia. Arlo Barnes (talk) 21:06, 13 May 2024 (UTC)
Getting off a website and attracting contributors
Hello, I was wondering if there was a specific place where you can post about your wiki and try and ask for contributors to your site, mainly for experienced wiki users. Thanks Guillaume Taillefer (talk) 23:59, 13 May 2024 (UTC)
account problem - 2 confused together
Who can I contact about 2 accounts with the same username, that the system seems to have been confused together.
After some time away, I signed in yesterday and saw the account I recognized which was created in 2006 and had 20 contributions.
When I signed in today to update my current email address, it said the account was created in 2014 with NO contributions.
Thanks Picnics (talk) 02:46, 14 May 2024 (UTC)
- You probably signed in on a different wiki. m:Special:CentralAuth/Picnics shows you have 21 edits on English Wikipedia, and 0 in others Ciencia Al Poder (talk) 07:37, 14 May 2024 (UTC)
Scripted initial population of MediaWiki database
As part of an Ansible-scripted setup of a MediaWiki site, I need to configure MediaWiki. The LoadSettings.php can be prepared in advance and copied to the site, but is there a scripted way to initially populate the database without manually accessing the Installation page?
Thanks for any pointers and tips! Dstahlberg (talk) 04:18, 14 May 2024 (UTC)
- Use install.php script in the maintenance directory which can be run from commandline.
- Alternatively you could just take a database dump of a fresh install and import that. Bawolff (talk) 21:03, 14 May 2024 (UTC)
- Thank you for the reply! I will use Install.php. When I previously looked at the documentation it did not say that it populated the database so I skipped it, but now I've tried and it does. I will try to add this to the documentation. Dstahlberg (talk) 04:07, 16 May 2024 (UTC)
- P.s. you might also be interested in the Meza project Bawolff (talk) 21:05, 14 May 2024 (UTC)
- Will Do ! Dstahlberg (talk) 04:10, 16 May 2024 (UTC)
SimpleSAMLPhp customize authenticate error message
Hi,
I am using PluggableAuth 6.1 and SimpleSAMLPhp 5.0.1
On authenticate errors, i get directed to SimpleSamlPhp default error page with an Unauthorized Access message.
Is it possible to define a custom error message, on the wiki ideally, or on the SimpleSAML page ?
I found an errorMessage variable in the extension codebase, is this related and can i set this in my LocalSettings ?
Thank you 86.245.217.89 (talk) 09:03, 14 May 2024 (UTC)
cannot login on mediawiki , but meta and common are operational
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.
MediaWiki internal error.
Original exception: [4cae876e-4aa1-4e16-a554-02af148f2bf7] 2024-05-14 09:31:55: Fatal exception of type "Wikimedia\Rdbms\DBQueryError"
Exception caught inside exception handler.
Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information. 2A02:842A:82DC:C301:E5A8:F3A5:3BAD:3B1F (talk) 09:45, 14 May 2024 (UTC)
- This is due to a weekly deploy of the new version of mediawiki, which is experiencing a problem. It should soon be fixed. —TheDJ (Not WMF) (talk • contribs) 10:10, 14 May 2024 (UTC)
- ... of course ... -> https://www.mediawiki.org 2A02:842A:82DC:C301:E5A8:F3A5:3BAD:3B1F (talk) 10:12, 14 May 2024 (UTC)
- ok retrieved now , thanks. Christian 🇫🇷 FR 🚨 (talk) 10:46, 14 May 2024 (UTC)
Name a page from form parameter
Hi, i'm using this to give the result page the name of NomDossier parameter : page name=<Nom du dossier[NomDossier]>
I always en up with the following error message : Specified page <Nom_du_dossier[NomDossier]> is not valid. (The actual english error message may be a bit different as I translated it from French)
Here is the parameter I want to use for my name's page :
!Nom du dossier : |NomDossier
Does anyone know why it doesn't work ?
It's working on different pages and I have no idea why it doesn't with this form. BotBernard (talk) 09:28, 15 May 2024 (UTC)
$wgHiddenPrefs[] = “skin”; error
Hi, I have only loaded the Citizen skin on my wiki and I used $wgHiddenPrefs[] = “skin”; to hide the skin settings from Preferences, but I get an error on the preferences page.
[7fc6880336eec79626218910] /wiki/Special:Preferences DomainException: HTMLForm::getField: no field named skin
Backtrace:
from /home/<username>/domains/<domain>/public_html/includes/htmlform/HTMLForm.php(458)
#0 /home/<username>/domains/<domain>/public_html/includes/htmlform/HTMLFormField.php(153): HTMLForm->getField()
#1 /home/<username>/domains/<domain>/public_html/includes/htmlform/HTMLFormField.php(168): HTMLFormField->getNearestField()
#2 /home/<username>/domains/<domain>/public_html/includes/htmlform/HTMLFormField.php(284): HTMLFormField->getNearestFieldValue()
#3 /home/<username>/domains/<domain>/public_html/includes/htmlform/HTMLFormField.php(272): HTMLFormField->checkStateRecurse()
#4 /home/<username>/domains/<domain>/public_html/includes/htmlform/HTMLFormField.php(350): HTMLFormField->checkStateRecurse()
#5 /home/<username>/domains/<domain>/public_html/includes/htmlform/HTMLFormField.php(396): HTMLFormField->isHidden()
#6 /home/<username>/domains/<domain>/public_html/includes/preferences/DefaultPreferencesFactory.php(350): HTMLFormField->validate()
#7 /home/<username>/domains/<domain>/public_html/includes/preferences/DefaultPreferencesFactory.php(265): MediaWiki\Preferences\DefaultPreferencesFactory->loadPreferenceValues()
#8 /home/<username>/domains/<domain>/public_html/includes/preferences/DefaultPreferencesFactory.php(1895): MediaWiki\Preferences\DefaultPreferencesFactory->getFormDescriptor()
#9 /home/<username>/domains/<domain>/public_html/includes/specials/SpecialPreferences.php(147): MediaWiki\Preferences\DefaultPreferencesFactory->getForm()
#10 /home/<username>/domains/<domain>/public_html/includes/specials/SpecialPreferences.php(114): MediaWiki\Specials\SpecialPreferences->getFormObject()
#11 /home/<username>/domains/<domain>/public_html/includes/specialpage/SpecialPage.php(727): MediaWiki\Specials\SpecialPreferences->execute()
#12 /home/<username>/domains/<domain>/public_html/includes/specialpage/SpecialPageFactory.php(1621): MediaWiki\SpecialPage\SpecialPage->run()
#13 /home/<username>/domains/<domain>/public_html/includes/MediaWiki.php(357): MediaWiki\SpecialPage\SpecialPageFactory->executePath()
#14 /home/<username>/domains/<domain>/public_html/includes/MediaWiki.php(960): MediaWiki->performRequest()
#15 /home/<username>/domains/<domain>/public_html/includes/MediaWiki.php(613): MediaWiki->main()
#16 /home/<username>/domains/<domain>/public_html/index.php(50): MediaWiki->run()
#17 /home/<username>/domains/<domain>/public_html/index.php(46): wfIndexMain()
#18 {main}
I originally posted this on Skin talk:Citizen, but I heard that the problem is not Citizen related, so I came here. Using: MediaWiki 1.41.1 Citizen: 2.13.1 鈴音雨 (talk) 01:25, 16 May 2024 (UTC)
- You could maybe file a bug at https://phabricator.wikimedia.org about this, but i would suggest just adding all other skins to $wgSkipSkins instead so there is only one choice. Bawolff (talk) 04:11, 16 May 2024 (UTC)
Assistance Needed with Calculating Totals in a Wiki
Hello,
I hope this message finds you well.
I am reaching out for some assistance with formulating codes. I have a list of speakers from a book(attached a link for the same) and need a way to automatically calculate the totals in a column within a wiki. Is there any existing functionality in wiki tools that can help with this?
https://vanipedia.org/wiki/User:Anurag/Vanifun
Thank you in advance for your help!
Best regards,
Anurag Anuragvani (talk) 06:05, 17 May 2024 (UTC)
Add Sitelinks to my local wikibase instance
Hello,
Mediawiki version: 1.40.1
I am currently trying to add sitelinks to my wikibase. I succeeded by adding wikipedia (I have the box Wikipedia), so I can add for example the sitelinks "enwiki" with the page "Earth" (that is autosuggested by the input) but I encounter this error:
"errors": [
{
"code": "no-external-page",
"data": {
"messages": [
{
"name": "wikibase-api-no-external-page",
"parameters": [
"enwiki",
"Password"
],
"html": {
"*": "The external client site \"enwiki\" did not provide page information for page \"Earth\"."
}
}
]
},
"module": "main",
"*": "The external client site \"enwiki\" did not provide page information for page \"Earth\"."
}
],
I don't understand the error because I have the autosuggested propositions on the input where I can add the sitelinks. My sites table was filled with the populateSitesTable script.
Thank you in advance for your help,
Best regards,
Antoine Antoine7812 (talk) 07:37, 17 May 2024 (UTC)
Log-in issues
I can't log in with either my BoxRec Account or my Media Wiki account. I am trying ti upload an image to BoxRec. CrickCity (talk) 10:40, 17 May 2024 (UTC)
- @CrickCity We are not BoxRec and we have nothing to do with BoxRec. Feel free to contact BoxRec (whatever that is). Malyacko (talk) 08:34, 20 May 2024 (UTC)
How to insert Note references through VisualEditor
Hello, I was trying to find out if it was possible to insert notes instead of citations in VisualEditor instead of having to just do hidden comments from readers. I would like to have it like Wikipedia where you are given the option to easily use templates such as Template:Refn without having to manually do it each time within the wiki editor.
Thanks Guillaume Taillefer (talk) 23:04, 17 May 2024 (UTC)
My MediaWiki shows error when first access.
PHP Notice: Trying to access array offset on value of type null in C:\inetpub\wwwroot\mediawiki\includes\profiler\SectionProfiler.php on line 99
PHP Notice: Trying to access array offset on value of type null in C:\inetpub\wwwroot\mediawiki\includes\profiler\SectionProfiler.php on line 99
PHP Notice: Trying to access array offset on value of type null in C:\inetpub\wwwroot\mediawiki\includes\profiler\SectionProfiler.php on line 100
PHP Notice: Trying to access array offset on value of type null in C:\inetpub\wwwroot\mediawiki\includes\profiler\SectionProfiler.php on line 100
PHP Notice: Trying to access array offset on value of type null in C:\inetpub\wwwroot\mediawiki\includes\profiler\SectionProfiler.php on line 101
PHP Notice: Trying to access array offset on value of type null in C:\inetpub\wwwroot\mediawiki\includes\profiler\SectionProfiler.php on line 101
Refresh can load it correctly.
When I post changes the connection will reset, even on localhost. 318cyz (talk) 03:51, 18 May 2024 (UTC)
- Please include the contents of LocalSettings.php (minus any passwords or secret keys) Bawolff (talk) 05:10, 19 May 2024 (UTC)
<?php# This file was automatically generated by the MediaWiki 1.41.1# installer. If you make manual changes, please keep track in case you# need to recreate them later.## See includes/MainConfigSchema.php for all configurable settings# and their default values, but don't forget to make changes in _this_# file, not there.## Further documentation for configuration settings may be found at:# https://www.mediawiki.org/wiki/Manual:Configuration_settings# Protect against web entryif ( !defined( 'MEDIAWIKI' ) ) {exit;}## Uncomment this to disable output compression# $wgDisableOutputCompression = true;$wgSitename = "TestProject";## The URL base path to the directory containing the wiki;## defaults for all runtime URL paths are based off of this.## For more information on customizing the URLs## (like /w/index.php/Page_title to /wiki/Page_title) please see:## https://www.mediawiki.org/wiki/Manual:Short_URL$wgScriptPath = "/wiki";$wgScriptExtension = ".php";$wgArticlePath = "${wgScriptPath}/$1";## The protocol and server name to use in fully-qualified URLs$wgServer = "http://www.vividcycle.org:32648";## The URL path to static resources (images, scripts, etc.)$wgResourceBasePath = $wgScriptPath;## The URL paths to the logo. Make sure you change this from the default,## or else you'll overwrite your logo when you upgrade!$wgLogos = ['1x' => "$wgResourceBasePath/resources/assets/change-your-logo.svg",'icon' => "$wgResourceBasePath/resources/assets/change-your-logo.svg",];## UPO means: this is also a user preference option$wgEnableEmail = true;$wgEnableUserEmail = true; # UPO$wgEmergencyContact = "318cyz@vividcycle.org";$wgPasswordSender = "318cyz@vividcycle.org"; # The email is a false one$wgEnotifUserTalk = true; # UPO$wgEnotifWatchlist = true; # UPO$wgEmailAuthentication = true;## Database settings$wgDBtype = "mysql";$wgDBserver = "localhost";$wgDBname = "my_wiki";$wgDBuser = "wikiuser";$wgDBpassword = [REDACTED];# MySQL specific settings$wgDBprefix = "";$wgDBssl = false;# MySQL table options to use during installation or update$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary";# Shared database table# This has no effect unless $wgSharedDB is also set.$wgSharedTables[] = "actor";## Shared memory settings$wgMainCacheType = CACHE_NONE;$wgMemCachedServers = [];## To enable image uploads, make sure the 'images' directory## is writable, then set this to true:$wgEnableUploads = false;#$wgUseImageMagick = true;#$wgImageMagickConvertCommand = "/usr/bin/convert";# InstantCommons allows wiki to use images from https://commons.wikimedia.org$wgUseInstantCommons = false;# Periodically send a pingback to https://www.mediawiki.org/ with basic data# about this MediaWiki instance. The Wikimedia Foundation shares this data# with MediaWiki developers to help guide future development efforts.$wgPingback = true;# Site language code, should be one of the list in ./includes/languages/data/Names.php$wgLanguageCode = "zh-cn";# Time zone$wgLocaltimezone = "UTC";## Set $wgCacheDirectory to a writable directory on the web server## to make your wiki go slightly faster. The directory should not## be publicly accessible from the web.#$wgCacheDirectory = "$IP/cache";$wgSecretKey = [REDACTED];# Changing this will log out all existing sessions.$wgAuthenticationTokenVersion = "1";# Site upgrade key. Must be set to a string (default provided) to turn on the# web installer while LocalSettings.php is in place$wgUpgradeKey = [REDACTED];## For attaching licensing metadata to pages, and displaying an## appropriate copyright notice / icon. GNU Free Documentation## License and Creative Commons licenses are supported so far.$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright$wgRightsUrl = "";$wgRightsText = "";$wgRightsIcon = "";# Path to the GNU diff3 utility. Used for conflict resolution.$wgDiff3 = "";# The following permissions were set based on your choice in the installer$wgGroupPermissions['*']['createaccount'] = false;$wgGroupPermissions['*']['edit'] = false;## Default skin: you can change the default skin. Use the internal symbolic## names, e.g. 'vector' or 'monobook':$wgDefaultSkin = "vector";# Enabled skins.# The following skins were automatically enabled:wfLoadSkin( 'MinervaNeue' );wfLoadSkin( 'MonoBook' );wfLoadSkin( 'Timeless' );wfLoadSkin( 'Vector' );# Enabled extensions. Most of the extensions are enabled by adding# wfLoadExtension( 'ExtensionName' );# to LocalSettings.php. Check specific extension documentation for more details.# The following extensions were automatically enabled:wfLoadExtension( 'AbuseFilter' );wfLoadExtension( 'CategoryTree' );wfLoadExtension( 'Cite' );wfLoadExtension( 'CiteThisPage' );wfLoadExtension( 'CodeEditor' );wfLoadExtension( 'ConfirmEdit' );wfLoadExtension( 'DiscussionTools' );wfLoadExtension( 'Echo' );wfLoadExtension( 'Gadgets' );wfLoadExtension( 'ImageMap' );wfLoadExtension( 'InputBox' );wfLoadExtension( 'Interwiki' );wfLoadExtension( 'Linter' );wfLoadExtension( 'LoginNotify' );wfLoadExtension( 'Math' );wfLoadExtension( 'MultimediaViewer' );wfLoadExtension( 'Nuke' );wfLoadExtension( 'OATHAuth' );wfLoadExtension( 'PageImages' );wfLoadExtension( 'ParserFunctions' );wfLoadExtension( 'PdfHandler' );wfLoadExtension( 'Poem' );wfLoadExtension( 'ReplaceText' );wfLoadExtension( 'Scribunto' );wfLoadExtension( 'SecureLinkFixer' );wfLoadExtension( 'SpamBlacklist' );wfLoadExtension( 'SyntaxHighlight_GeSHi' );wfLoadExtension( 'TemplateData' );wfLoadExtension( 'TextExtracts' );wfLoadExtension( 'Thanks' );wfLoadExtension( 'TitleBlacklist' );wfLoadExtension( 'VisualEditor' );wfLoadExtension( 'WikiEditor' );# End of automatically generated settings.# Add more configuration options below.318cyz (talk) 11:49, 22 May 2024 (UTC)- Huh. LocalSettings.php looks normal. Bawolff (talk) 22:19, 22 May 2024 (UTC)
- If you want to see the site go to the URL included in this file:
$wgServer = "http://www.vividcycle.org:32648";318cyz (talk) 03:36, 23 May 2024 (UTC)
strange section indentation Help:Contents
i activate numbering of paragraphs in my user preferences. Then when displaying the page itself numbering is:
Sommaire 1 2 Welcome to MediaWiki.org help pages 2.1Reading 2.2Editing 2.3Advanced editing 2.4Collaboration 2.5Personal customization 2.6Wiki administration
Strange: There is nothing between level 1 and level 2 on first line and all is under level 2.
Then making modify source + preview with a forced TOC, all is under level 1:
Sommaire 1Welcome to MediaWiki.org help pages 1.1Reading 1.2Editing 1.3Advanced editing 1.4Collaboration 1.5Personal customization 1.6Wiki administration
Can someone analyse and correct the display ? Thanks. --Christian 🇫🇷 FR (talk) 09:04, 18 May 2024 (UTC)
- What "page itself"? Please provide clear and full steps to reproduce something somewhere, including URLs. Malyacko (talk) 08:33, 20 May 2024 (UTC)
- it is written in the title, read the complete topic please. --Christian 🇫🇷 FR (talk) 08:39, 20 May 2024 (UTC)
- This might have something to do with the change of the heading structure that is rolling out. Although I have proper spacing between the numbers and the titles. I suggest we wait a week or so more, before fixing this to allow changes to settle down. —TheDJ (Not WMF) (talk • contribs) 09:53, 21 May 2024 (UTC)
- thanks sometimes things appear strange to me, so I just warn. --Christian 🇫🇷 FR (talk) 10:18, 21 May 2024 (UTC)
- In a similar way on page -> Help:Extension:Translate/Group_configuration/MediaWiki the numbering shows :
1 2 Configuration file- There is only a single level == so there is no need to see a 2 and the two numbers are on the same item. With a forced TOC the structure is correct :
Sommaire1 Configuration file- --Christian 🇫🇷 FR (talk) 20:10, 28 May 2024 (UTC)
- More awful -> Manual_talk:LocalisationCache.php the numbering of the topics is doubled at each step :
1 2 role of this page ?3 4 ? as mentioned above- As a conclusion, with tag TOC numbering is ok, and with tag NOTOC and user-preferences requesting the numbering of headers, two numbers appear in front of each header.
- --Christian 🇫🇷 FR (talk) 21:28, 30 May 2024 (UTC)
Asian Bees
Your article States they are no longer in the US....however, for past three yrs they are in the southern tier of NY. Scaro44 (talk) 19:46, 19 May 2024 (UTC)
- @Scaro44 This very website mediawiki.org does not have an article about "Asian Bees". You need to bring this up on the website that you refer to. Malyacko (talk) 08:32, 20 May 2024 (UTC)
Can't create MediaWiki:Common.css
I'm having issues creating the common css, or any other css for that matter, I get this error:
Fatal error: Cannot declare class FileContentHandler, because the name is already in use in /var/www/domain123.com/domainxyz.com.com/fruitwiki/includes/content/CssContentHandler.php on line 0 *
- domain names have been changed
The wiki works otherwise well, editing, loging in, history, etc, I assume this is some sort of php error (from research), but where do I solve it? I should also point out that this is an older wiki 1.35.0. 83.253.138.162 (talk) 06:40, 20 May 2024 (UTC)
- No one? Was it that specific? 83.253.138.162 (talk) 08:38, 21 May 2024 (UTC)
Upgrade from 1.25: actor table missing error
I'm trying to upgrade from MW 1.25 (yes…) to 1.41.1 and I get this error on the database tables upgrade (web frontend):
...index page_name_title already set on page table. ...skipping: index change_tag_rc_tag_id doesn't exist. Converting djvu metadata... An error occurred: Error 1146: Table 'Foo.actor' doesn't exist Function: RefreshImageMetadata::execute Query: SELECT img_name,img_size,img_width,img_height,img_metadata,img_bits,img_media_type,img_major_mime,img_minor_mime,img_timestamp,img_sha1,img_actor,image_actor.actor_user AS `img_user`,image_actor.actor_name AS `img_user_text`,comment_img_description.comment_text AS `img_description_text`,comment_img_description.comment_data AS `img_description_data`,comment_img_description.comment_id AS `img_description_cid`,img_metadata FROM `image` JOIN `actor` `image_actor` ON ((actor_id=img_actor)) JOIN `comment` `comment_img_description` ON ((comment_img_description.comment_id = img_description_id)) WHERE img_major_mime = 'image' AND img_media_type = 'OFFICE' ORDER BY img_name ASC LIMIT 1
What can I do? The script doesn't create the table. Subfader (talk) 11:15, 20 May 2024 (UTC)
- I created it myself according to the Gerrit change. And all the other errors like img_actor, img_description_id, missing PRIMARY KEY on templatelinks etc. Subfader (talk) 12:04, 20 May 2024 (UTC)
How to remove discussion tab (timeless skin)
What I need to do remove or hide the discussion tab ?
thanks AlexMeneghin (talk) 14:25, 20 May 2024 (UTC)
- @AlexMeneghin: Have you had a look at Removing tabs? Sam Wilson 20:00, 20 May 2024 (UTC)
some problem with rank, it shows 1 rank which is incorrect. i tried to log in/off, but didnt help
it shows 1 rank which is incorrect. i tried to log in/off, but didnt help 95.10.1.54 (talk) 17:47, 20 May 2024 (UTC)
- What rank are you talking about? Sam Wilson 07:15, 21 May 2024 (UTC)
MWException: PEAR mail package is not installed even after installing it and checking include path - fedora server (using dnf package)
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 getting a strange pear mail error after installing it on Fedora Server and checking the include path through following the checklist on PEAR's site. Here's all the debug info I got:
Webpage:
[3b4977d818b6fe8f04e8b74a] /index.php?title=Special:ConfirmEmail MWException: PEAR mail package is not installed
Backtrace:
from /usr/share/mediawiki/includes/mail/UserMailer.php(369)
#0 /usr/share/mediawiki/includes/mail/UserMailer.php(173): UserMailer::sendInternal()
#1 /usr/share/mediawiki/includes/user/User.php(3068): UserMailer::send()
#2 /usr/share/mediawiki/includes/user/User.php(3042): User->sendMail()
#3 /usr/share/mediawiki/includes/specials/SpecialConfirmEmail.php(145): User->sendConfirmationMail()
#4 /usr/share/mediawiki/includes/htmlform/HTMLForm.php(729): SpecialConfirmEmail->submitSend()
#5 /usr/share/mediawiki/includes/htmlform/HTMLForm.php(619): HTMLForm->trySubmit()
#6 /usr/share/mediawiki/includes/htmlform/HTMLForm.php(635): HTMLForm->tryAuthorizedSubmit()
#7 /usr/share/mediawiki/includes/specials/SpecialConfirmEmail.php(118): HTMLForm->show()
#8 /usr/share/mediawiki/includes/specials/SpecialConfirmEmail.php(79): SpecialConfirmEmail->showRequestForm()
#9 /usr/share/mediawiki/includes/specialpage/SpecialPage.php(701): SpecialConfirmEmail->execute()
#10 /usr/share/mediawiki/includes/specialpage/SpecialPageFactory.php(1428): SpecialPage->run()
#11 /usr/share/mediawiki/includes/MediaWiki.php(316): MediaWiki\SpecialPage\SpecialPageFactory->executePath()
#12 /usr/share/mediawiki/includes/MediaWiki.php(904): MediaWiki->performRequest()
#13 /usr/share/mediawiki/includes/MediaWiki.php(562): MediaWiki->main()
#14 /usr/share/mediawiki/index.php(49): MediaWiki->run()
#15 /usr/share/mediawiki/index.php(45): wfIndexMain()
#16 {main}
pear version:
PEAR Version: 1.10.15
PHP Version: 8.2.18
Zend Engine Version: 4.2.18
Running on: Linux localhost.localdomain 6.8.9-200.fc39.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 2 18:44:19 UTC 2024 x86_64
pear list:
Installed packages, channel pear.php.net:
=========================================
Package Version State
Archive_Tar 1.5.0 stable
Auth_SASL 1.2.0 stable
Console_Getopt 1.4.3 stable
Mail 2.0.0 stable
Mail_Mime 1.10.12 stable
Net_SMTP 1.12.1 stable
Net_Socket 1.2.2 stable
PEAR 1.10.15 stable
PEAR_Manpages 1.10.0 stable
Structures_Graph 1.1.1 stable
XML_Util 1.4.5 stable
ls -lah on /usr/share/pear:
drwxrwxr-x. 11 caddy apache 4.0K May 20 20:59 pear
ls -lah on /usr/share/pear/
drwxrwxr-x. 2 caddy apache 162 May 20 20:59 Mail
php.ini
;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;
; UNIX: "/path1:/path2"
include_path = ".:/usr/share/pear/"
the pear bool was true when checking, and the include path included pear when using check_php Reesericdotci (talk) 02:49, 21 May 2024 (UTC)
- @Reesericdotci: You shouldn't install PEAR globally for it to be used by MediaWiki, it's in the MW
vendor/directory already along with all other PHP dependencies. How did you install MediaWiki? You may need to either make sure you've downloaded all submodules, or runcomposer update --no-dev -o. Sam Wilson 07:14, 21 May 2024 (UTC) - I installed MediaWiki using `sudo dnf install mediawiki` - I can try symlinking to vendor maybe? Reesericdotci (talk) 11:45, 21 May 2024 (UTC)
- Alright, running
composer update --no-dev -oin /var/www/wiki worked for me - thank you! Reesericdotci (talk) 11:49, 21 May 2024 (UTC)
Error 1264: Out of range value for column 'pp_page' at row 1
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Did anybody ever run into the issue I tracked with T365510? I was able to work my way past it, but I am unsure if this was the correct thing to do. [[kgh]] (talk) 17:37, 21 May 2024 (UTC)
Page Statistics
Pages count not showing in account creation page https://vp.ftp.sh/FS/Special:CreateAccount but showing correct count in the Special:Statistics. What to do? 2409:4063:4280:31CF:0:0:11DE:28AD (talk) 06:37, 22 May 2024 (UTC)
- Perhaps you want to adjust $wgArticleCountMethod Bawolff (talk) 22:22, 22 May 2024 (UTC)
Editing late husband's information
I am the husband of the late Steve Hurley. I've attempted to make correction on his page but none of my corrections are saved. DOB 5/16/1957 DOD 4/16/2022 Place of Birth Ypsilanti, Michigan, USA. Titpup (talk) 11:05, 22 May 2024 (UTC)
- @Titpup We have no such page on this wiki, as this wiki is about the MediaWiki software package, You would need to seek assistance on the wiki you are trying to edit. P858snake (talk) 13:35, 22 May 2024 (UTC)
- If this is about wikipedia ask at w:WP:TEAHOUSE Bawolff (talk) 22:20, 22 May 2024 (UTC)
svg transclusion in templates
We have a template which places .gif images like this
https://www.astro.com/im/sym/s_su.18.gif
In the html page rendering, it appears as
<img src="https://www.astro.com/im/sym/s_su.18.gif" alt="s_su.18.gif">
I would like to replace the .gif image with a .svg image like this
https://www.astro.com/im/sym/s_su.18.svg
but that is rendered into
<a class="external free" href="https://www.astro.com/im/sym/s_su.18.svg">https://www.astro.com/im/sym/s_su.18.svg</a>
How can I have it rendered the same way as a gif image? Aloist (talk) 12:32, 22 May 2024 (UTC)
- It's because core doesn't know svg as an image format for external images. It is not listed in EXT_IMAGE_REGEX of the Parser, only: gif,png,jpg,jpeg. This regex probably could use an update, please file a ticket in Phabricator to ask for this functionality.
- (obligatory note about potential dangers of allowing your editors to include images from the internet) —TheDJ (Not WMF) (talk • contribs) 14:36, 22 May 2024 (UTC)
- Thank you so much. I patched EXT_IMAGE_REGEX in ./parser/Parser.php
- I do not know how to file a ticket.
- Our wiki is not open to random editors, only a small trusted group can edit. Aloist (talk) 17:24, 22 May 2024 (UTC)
- This is phab:T365636. * Pppery * it has begun 17:50, 22 May 2024 (UTC)
Everytime I try setting a default skin (to vector-2022), I get this
Exception caught inside exception handler: [f50174ea9643bba6b783fb21] /wiki/index.php/Main_Page Error: Class "ResourceLoaderSkinModule" not found
Backtrace:
from C:\Program Files\xampp\htdocs\wiki\includes\ResourceLoader\ResourceLoader.php(417)
#0 C:\Program Files\xampp\htdocs\wiki\includes\Output\OutputPage.php(627): MediaWiki\ResourceLoader\ResourceLoader->getModule(string)
#1 C:\Program Files\xampp\htdocs\wiki\includes\Output\OutputPage.php(651): MediaWiki\Output\OutputPage->filterModules(array, NULL, string)
#2 C:\Program Files\xampp\htdocs\wiki\includes\Output\OutputPage.php(672): MediaWiki\Output\OutputPage->getModules(boolean, NULL, string, string)
#3 C:\Program Files\xampp\htdocs\wiki\includes\Output\OutputPage.php(3477): MediaWiki\Output\OutputPage->getModuleStyles(boolean)
#4 C:\Program Files\xampp\htdocs\wiki\includes\Output\OutputPage.php(3558): MediaWiki\Output\OutputPage->getRlClient()
#5 C:\Program Files\xampp\htdocs\wiki\includes\skins\SkinMustache.php(98): MediaWiki\Output\OutputPage->headElement(MediaWiki\Skins\Vector\SkinVector22)
#6 C:\Program Files\xampp\htdocs\wiki\includes\skins\SkinTemplate.php(177): SkinMustache->generateHTML()
#7 C:\Program Files\xampp\htdocs\wiki\includes\Output\OutputPage.php(3017): SkinTemplate->outputPage()
#8 C:\Program Files\xampp\htdocs\wiki\includes\exception\MWExceptionRenderer.php(187): MediaWiki\Output\OutputPage->output()
#9 C:\Program Files\xampp\htdocs\wiki\includes\exception\MWExceptionRenderer.php(106): MWExceptionRenderer::reportHTML(Error)
#10 C:\Program Files\xampp\htdocs\wiki\includes\exception\MWExceptionHandler.php(135): MWExceptionRenderer::output(Error, integer)
#11 C:\Program Files\xampp\htdocs\wiki\includes\exception\MWExceptionHandler.php(239): MWExceptionHandler::report(Error)
#12 C:\Program Files\xampp\htdocs\wiki\includes\MediaWikiEntryPoint.php(222): MWExceptionHandler::handleException(Error, string)
#13 C:\Program Files\xampp\htdocs\wiki\includes\actions\ActionEntryPoint.php(82): MediaWiki\MediaWikiEntryPoint->handleTopLevelError(Error)
#14 C:\Program Files\xampp\htdocs\wiki\includes\MediaWikiEntryPoint.php(206): MediaWiki\Actions\ActionEntryPoint->handleTopLevelError(Error)
#15 C:\Program Files\xampp\htdocs\wiki\index.php(58): MediaWiki\MediaWikiEntryPoint->run()
#16 {main} 38.96.234.21 (talk) 00:27, 23 May 2024 (UTC)
problem to use 'syntaxhighlight'
hi!
i want to highlight code and in the statusbar i offen get following message: "Seiten mit Syntaxhervorhebungsfehlern" (Page with Syntaxhighlighterror)
i look to description https://de.wikipedia.org/wiki/Hilfe:Syntaxhighlight but did not see any error.
here my full page-text
Allgmeines
Sollen Punkte für Google, Apple, OSM oder andere Karten verwendet werden, dann ist eine Transformation erforderlich als das die Funktion Point.ToWKT zur Verfügung stellt.
Beispiel aus Template:Siehe
In args.Point ist der abgegriffene Punkt enthalten.
Dim Point As New Mum.Geo.Geometry.Point
If Not args.Canceled Then
Point = args.Point
'Wenn Sie Koordinaten via den Map.GetXXX Funktioen holen
'erzeugen sie zuerst mit Clone eine Kopie der Geometry, weil mit der Transformation ansonsten Point nicht mehr die GK-Koordinaten enthält.
Dim geom As Mum.Geo.Geometry.Point = Point.Clone
'Transformieren der Koordinaten
'Aktuellens Koordinaten System der Karte holen
Dim sourceEpsg As String = Me.Application.Project.Map.SRS
'Ziel System angeben
Dim targetEpsg As String = "EPSG:4326"
Mum.Geo.Application.CoordinateTransformation.Transform(sourceEpsg, targetEpsg, geom)
Else
_EBLog.LogAndMsgBox("Es wurde kein Punkt gewählt!")
End If
Anwendung
Category:FAQ Category:MapEdit API
could someone help to me to find the mistake?
regards Jan JanTappenbeck (talk) 05:48, 24 May 2024 (UTC)
لقد وجدت ثغرة اختراق
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
لقد وجدت ثغرة اختراق في موقعكم واريد التواصل معكم ل اخباركم عنها معلومات خاصة Abobakr515 (talk) 06:23, 24 May 2024 (UTC)
- Please see reporting security bugs. Clump (talk) 14:25, 24 May 2024 (UTC)
Where's the location of actuall common.css?
Since I can't access the MediaWiki:Common.css for some reason, not sure why, I figured I can just edit the real one, but which file is that exactly, like where is it? DannyMiggo (talk) 21:24, 24 May 2024 (UTC)
- I think you have the wrong conceptual model. There is no "real" one.
- If you want to edit it from commandline, use edit.php Bawolff (talk) 23:10, 24 May 2024 (UTC)
Where to ask?
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.
Greetings: the topic here is about "non-Wikimedia" installations. But I have a question about Wikimedia's own deployments. Does Mediawiki.org have a place for support, or would I be better served at Phabricator or Metawiki? Elizium23 (talk) 04:06, 26 May 2024 (UTC)
- @Elizium23 It depends on the type of question, Could you provide some more information? P858snake (talk) 04:57, 26 May 2024 (UTC)
Error "Cannot access the database"
Hello! I recently messed up. A few days ago, I shut down my PC without stopping Apache or MySQL, which I have been running through XAMPP to use MediaWiki. I think this caused issues with MySQL, since when I tried running it again, it kept crashing and refusing to load any pages. I have since reinstalled XAMPP and copied over the MediaWiki and MySQL data folders, and MySQL is no longer crashing, however i am now getting the following error when trying to access my wiki:
MediaWiki internal error.
Original exception: [2e740f7107b90c8fdf67f407] /wiki/ Wikimedia\Rdbms\DBConnectionError: Cannot access the database: Access denied for user 'wikiuser'@'localhost' (using password: YES) (localhost)
Backtrace:
from C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\libs\rdbms\loadbalancer\LoadBalancer.php(1149)
#0 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\libs\rdbms\loadbalancer\LoadBalancer.php(805): Wikimedia\Rdbms\LoadBalancer->reportConnectionError()
#1 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\libs\rdbms\loadbalancer\LoadBalancer.php(793): Wikimedia\Rdbms\LoadBalancer->getServerConnection(integer, string, integer)
#2 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\libs\rdbms\database\DBConnRef.php(99): Wikimedia\Rdbms\LoadBalancer->getConnectionInternal(integer, array, string, integer)
#3 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\libs\rdbms\database\DBConnRef.php(117): Wikimedia\Rdbms\DBConnRef->ensureConnection()
#4 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\libs\rdbms\database\DBConnRef.php(710): Wikimedia\Rdbms\DBConnRef->__call(string, array)
#5 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\libs\rdbms\database\Database.php(2760): Wikimedia\Rdbms\DBConnRef->getSessionLagStatus()
#6 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\user\User.php(526): Wikimedia\Rdbms\Database::getCacheSetOptions(Wikimedia\Rdbms\DBConnRef)
#7 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\libs\objectcache\wancache\WANObjectCache.php(1725): MediaWiki\User\User->MediaWiki\User\{closure}(boolean, integer, array, NULL, array)
#8 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\libs\objectcache\wancache\WANObjectCache.php(1556): WANObjectCache->fetchOrRegenerate(string, integer, Closure, array, array)
#9 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\user\User.php(522): WANObjectCache->getWithSetCallback(string, integer, Closure, array)
#10 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\user\User.php(480): MediaWiki\User\User->loadFromCache()
#11 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\user\User.php(412): MediaWiki\User\User->loadFromId(integer)
#12 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\session\UserInfo.php(92): MediaWiki\User\User->load()
#13 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\session\CookieSessionProvider.php(127): MediaWiki\Session\UserInfo::newFromId(string)
#14 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\session\SessionManager.php(538): MediaWiki\Session\CookieSessionProvider->provideSessionInfo(MediaWiki\Request\WebRequest)
#15 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\session\SessionManager.php(244): MediaWiki\Session\SessionManager->getSessionInfoForRequest(MediaWiki\Request\WebRequest)
#16 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\Request\WebRequest.php(840): MediaWiki\Session\SessionManager->getSessionForRequest(MediaWiki\Request\WebRequest)
#17 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\session\SessionManager.php(165): MediaWiki\Request\WebRequest->getSession()
#18 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\Setup.php(486): MediaWiki\Session\SessionManager::getGlobalSession()
#19 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\WebStart.php(92): require_once(string)
#20 C:\Users\Aven\Desktop\xampp\htdocs\wiki\index.php(44): require(string)
#21 {main}
Exception caught inside exception handler: [2e740f7107b90c8fdf67f407] /wiki/ Wikimedia\Rdbms\DBConnectionError: Cannot access the database: Access denied for user 'wikiuser'@'localhost' (using password: YES) (localhost)
Backtrace:
from C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\libs\rdbms\loadbalancer\LoadBalancer.php(1149)
#0 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\libs\rdbms\loadbalancer\LoadBalancer.php(805): Wikimedia\Rdbms\LoadBalancer->reportConnectionError()
#1 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\libs\rdbms\loadbalancer\LoadBalancer.php(793): Wikimedia\Rdbms\LoadBalancer->getServerConnection(integer, string, integer)
#2 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\libs\rdbms\database\DBConnRef.php(99): Wikimedia\Rdbms\LoadBalancer->getConnectionInternal(integer, array, string, integer)
#3 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\libs\rdbms\database\DBConnRef.php(117): Wikimedia\Rdbms\DBConnRef->ensureConnection()
#4 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\libs\rdbms\database\DBConnRef.php(710): Wikimedia\Rdbms\DBConnRef->__call(string, array)
#5 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\libs\rdbms\database\Database.php(2760): Wikimedia\Rdbms\DBConnRef->getSessionLagStatus()
#6 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\user\User.php(526): Wikimedia\Rdbms\Database::getCacheSetOptions(Wikimedia\Rdbms\DBConnRef)
#7 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\libs\objectcache\wancache\WANObjectCache.php(1725): MediaWiki\User\User->MediaWiki\User\{closure}(boolean, integer, array, NULL, array)
#8 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\libs\objectcache\wancache\WANObjectCache.php(1556): WANObjectCache->fetchOrRegenerate(string, integer, Closure, array, array)
#9 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\user\User.php(522): WANObjectCache->getWithSetCallback(string, integer, Closure, array)
#10 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\user\User.php(480): MediaWiki\User\User->loadFromCache()
#11 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\user\User.php(412): MediaWiki\User\User->loadFromId(integer)
#12 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\session\UserInfo.php(92): MediaWiki\User\User->load()
#13 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\session\CookieSessionProvider.php(127): MediaWiki\Session\UserInfo::newFromId(string)
#14 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\session\SessionManager.php(538): MediaWiki\Session\CookieSessionProvider->provideSessionInfo(MediaWiki\Request\WebRequest)
#15 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\session\SessionManager.php(244): MediaWiki\Session\SessionManager->getSessionInfoForRequest(MediaWiki\Request\WebRequest)
#16 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\Request\WebRequest.php(840): MediaWiki\Session\SessionManager->getSessionForRequest(MediaWiki\Request\WebRequest)
#17 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\user\User.php(1024): MediaWiki\Request\WebRequest->getSession()
#18 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\user\User.php(393): MediaWiki\User\User->loadDefaults()
#19 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\user\User.php(1637): MediaWiki\User\User->load()
#20 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\user\User.php(2297): MediaWiki\User\User->getId()
#21 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\user\UserOptionsManager.php(656): MediaWiki\User\User->isRegistered()
#22 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\user\UserOptionsManager.php(500): MediaWiki\User\UserOptionsManager->getCacheKey(MediaWiki\User\User)
#23 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\user\UserOptionsManager.php(147): MediaWiki\User\UserOptionsManager->loadUserOptions(MediaWiki\User\User, integer)
#24 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\context\RequestContext.php(459): MediaWiki\User\UserOptionsManager->getOption(MediaWiki\User\User, string)
#25 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\language\Message.php(389): RequestContext->getLanguage()
#26 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\language\Message.php(1485): Message->getLanguage()
#27 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\language\Message.php(972): Message->fetchMessage()
#28 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\language\Message.php(1059): Message->format(string)
#29 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\exception\MWExceptionRenderer.php(254): Message->text()
#30 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\exception\MWExceptionRenderer.php(398): MWExceptionRenderer::msg(string, string)
#31 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\exception\MWExceptionRenderer.php(103): MWExceptionRenderer::reportOutageHTML(Wikimedia\Rdbms\DBConnectionError)
#32 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\exception\MWExceptionHandler.php(134): MWExceptionRenderer::output(Wikimedia\Rdbms\DBConnectionError, integer)
#33 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\exception\MWExceptionHandler.php(251): MWExceptionHandler::report(Wikimedia\Rdbms\DBConnectionError)
#34 C:\Users\Aven\Desktop\xampp\htdocs\wiki\includes\exception\MWExceptionHandler.php(219): MWExceptionHandler::handleException(Wikimedia\Rdbms\DBConnectionError, string)
#35 [internal function]: MWExceptionHandler::handleUncaughtException(Wikimedia\Rdbms\DBConnectionError)
#36 {main}
Any help is appreciated, thank you! :) NowInHD (talk) 13:30, 26 May 2024 (UTC)
- Ah. Just discovered that the wiki SQL database is gone. Where can I go from here? NowInHD (talk) 13:48, 26 May 2024 (UTC)
- Looking in the folder mysql/data/data i have found that the folder for my wiki database is still there, however it isnt showing up on phpMyAdmin and it responded with "
Unknown database 'wikidb'" when i tried to access it using SQL. NowInHD (talk) 13:53, 26 May 2024 (UTC) - Yes, that sounds like you deleted your database. Copying the files over is not the proper way to make a backup. Its not impossible to recover from this situation but its not straight forward. Try following the steps at
- https://community.spiceworks.com/t/recover-mysql-database-from-frm-and-ibd-files/1014394
- For reference, for the original situation (too late now) - be sure to use innoDB and not myisam tables. Depending on the situation repair table might have been useful. Bawolff (talk) 22:18, 26 May 2024 (UTC)
DBTransactionStateError only when load balancing
I recently upgraded on FreeBSD 13.3 from 1.40 to 1.41:
| MediaWiki | 1.41.1 |
| PHP | 8.3.6 (fpm-fcgi) |
| ICU | 74.2 |
| MariaDB | 10.11.7-MariaDB-log |
| Pygments | 2.16.1 |
I have two database servers synced with MariaDB GTID replication.The replication works very well as far as MariaDB is concerned, the slave replicates in miliseconds whatever the master does. They're always on the same position too, as they should. I confirmed this several times over, even re-configured replication several times. I can create anything on the master and the slave replicates almost instantly.For some reason MediaWiki just won't take it though. As soon as I add this second server to $wgDBservers I get a critical RDBMS error.
$wgDBname = "mwdb";
$wgDBservers = [
[
'host' => "mwdb1.domain.net",
'user' => "mediawiki",
'password' => "password",
'type' => "mysql",
'flags' => DBO_DEFAULT | DBO_SSL | DBO_TRX | DBO_PERSISTENT,
'useGTIDs' => true,
'sslKeyPath' => "/some/path/mediawiki.key",
'sslCertPath' => "/some/path/mediawiki.crt",
'sslCAFile' => "/some/path/ca.pem",
'load' => 0
],
[
'host' => "mwdb2.domain.net",
'user' => "mediawiki",
'password' => "password",
'type' => "mysql",
'flags' => DBO_DEFAULT | DBO_SSL | DBO_TRX | DBO_PERSISTENT,
'useGTIDs' => true,
'sslKeyPath' => "/some/path/mediawiki.key",
'sslCertPath' => "/some/path/mediawiki.crt",
'sslCAFile' => "/some/path/ca.pem",
'load' => 1
]
];
The error itself looks like it may have to do with user session caches or Vector skin or something? I have rebuilt L10n cache, updated a thousand times, used rebuildall and anything I could run from the maintentance folder...to no avail. As soon as I delete the replica from $wgDBservers everything is swell again. Note: The site works perfectly fine with only one main database attached. Is there a way to further debug this or purge some user caches?
MediaWiki internal error.
Original exception: [55dd886a15a6a5dafabacfb7] /index.php?title=Spezial:Anmelden&returnto=Hauptseite&returntoquery= Wikimedia\Rdbms\DBTransactionStateError: Cannot execute query from MediaWiki\User\TalkPageNotificationManager::dbCheckNewUserMessages while transaction status is ERROR
Backtrace:
from /usr/local/www/mediawiki/includes/libs/rdbms/database/TransactionManager.php(207)
#0 /usr/local/www/mediawiki/includes/libs/rdbms/database/Database.php(1022): Wikimedia\Rdbms\TransactionManager->assertTransactionStatus()
#1 /usr/local/www/mediawiki/includes/libs/rdbms/database/Database.php(667): Wikimedia\Rdbms\Database->assertQueryIsCurrentlyAllowed()
#2 /usr/local/www/mediawiki/includes/libs/rdbms/database/Database.php(1383): Wikimedia\Rdbms\Database->query()
#3 /usr/local/www/mediawiki/includes/libs/rdbms/database/Database.php(1334): Wikimedia\Rdbms\Database->select()
#4 /usr/local/www/mediawiki/includes/libs/rdbms/database/DBConnRef.php(119): Wikimedia\Rdbms\Database->selectField()
#5 /usr/local/www/mediawiki/includes/libs/rdbms/database/DBConnRef.php(338): Wikimedia\Rdbms\DBConnRef->__call()
#6 /usr/local/www/mediawiki/includes/libs/rdbms/querybuilder/SelectQueryBuilder.php(725): Wikimedia\Rdbms\DBConnRef->selectField()
#7 /usr/local/www/mediawiki/includes/user/TalkPageNotificationManager.php(259): Wikimedia\Rdbms\SelectQueryBuilder->fetchField()
#8 /usr/local/www/mediawiki/includes/user/TalkPageNotificationManager.php(95): MediaWiki\User\TalkPageNotificationManager->dbCheckNewUserMessages()
#9 /usr/local/www/mediawiki/includes/skins/Skin.php(1710): MediaWiki\User\TalkPageNotificationManager->userHasNewMessages()
#10 /usr/local/www/mediawiki/includes/skins/SkinMustache.php(123): Skin->getNewtalks()
#11 /usr/local/www/mediawiki/skins/Vector/includes/SkinVector22.php(329): SkinMustache->getTemplateData()
#12 /usr/local/www/mediawiki/includes/skins/SkinMustache.php(92): MediaWiki\Skins\Vector\SkinVector22->getTemplateData()
#13 /usr/local/www/mediawiki/includes/skins/SkinTemplate.php(174): SkinMustache->generateHTML()
#14 /usr/local/www/mediawiki/includes/Output/OutputPage.php(2947): SkinTemplate->outputPage()
#15 /usr/local/www/mediawiki/includes/MediaWiki.php(978): MediaWiki\Output\OutputPage->output()
#16 /usr/local/www/mediawiki/includes/MediaWiki.php(613): MediaWiki->main()
#17 /usr/local/www/mediawiki/index.php(50): MediaWiki->run()
#18 /usr/local/www/mediawiki/index.php(46): wfIndexMain()
#19 {main}
Exception caught inside exception handler: [55dd886a15a6a5dafabacfb7] /index.php?title=Spezial:Anmelden&returnto=Hauptseite&returntoquery= Wikimedia\Rdbms\DBTransactionStateError: Cannot execute query from MediaWiki\User\TalkPageNotificationManager::dbCheckNewUserMessages while transaction status is ERROR
Backtrace:
from /usr/local/www/mediawiki/includes/libs/rdbms/database/TransactionManager.php(207)
#0 /usr/local/www/mediawiki/includes/libs/rdbms/database/Database.php(1022): Wikimedia\Rdbms\TransactionManager->assertTransactionStatus()
#1 /usr/local/www/mediawiki/includes/libs/rdbms/database/Database.php(667): Wikimedia\Rdbms\Database->assertQueryIsCurrentlyAllowed()
#2 /usr/local/www/mediawiki/includes/libs/rdbms/database/Database.php(1383): Wikimedia\Rdbms\Database->query()
#3 /usr/local/www/mediawiki/includes/libs/rdbms/database/Database.php(1334): Wikimedia\Rdbms\Database->select()
#4 /usr/local/www/mediawiki/includes/libs/rdbms/database/DBConnRef.php(119): Wikimedia\Rdbms\Database->selectField()
#5 /usr/local/www/mediawiki/includes/libs/rdbms/database/DBConnRef.php(338): Wikimedia\Rdbms\DBConnRef->__call()
#6 /usr/local/www/mediawiki/includes/libs/rdbms/querybuilder/SelectQueryBuilder.php(725): Wikimedia\Rdbms\DBConnRef->selectField()
#7 /usr/local/www/mediawiki/includes/user/TalkPageNotificationManager.php(259): Wikimedia\Rdbms\SelectQueryBuilder->fetchField()
#8 /usr/local/www/mediawiki/includes/user/TalkPageNotificationManager.php(95): MediaWiki\User\TalkPageNotificationManager->dbCheckNewUserMessages()
#9 /usr/local/www/mediawiki/includes/skins/Skin.php(1710): MediaWiki\User\TalkPageNotificationManager->userHasNewMessages()
#10 /usr/local/www/mediawiki/includes/skins/SkinMustache.php(123): Skin->getNewtalks()
#11 /usr/local/www/mediawiki/skins/Vector/includes/SkinVector22.php(329): SkinMustache->getTemplateData()
#12 /usr/local/www/mediawiki/includes/skins/SkinMustache.php(92): MediaWiki\Skins\Vector\SkinVector22->getTemplateData()
#13 /usr/local/www/mediawiki/includes/skins/SkinTemplate.php(174): SkinMustache->generateHTML()
#14 /usr/local/www/mediawiki/includes/Output/OutputPage.php(2947): SkinTemplate->outputPage()
#15 /usr/local/www/mediawiki/includes/exception/MWExceptionRenderer.php(188): MediaWiki\Output\OutputPage->output()
#16 /usr/local/www/mediawiki/includes/exception/MWExceptionRenderer.php(105): MWExceptionRenderer::reportHTML()
#17 /usr/local/www/mediawiki/includes/exception/MWExceptionHandler.php(134): MWExceptionRenderer::output()
#18 /usr/local/www/mediawiki/includes/exception/MWExceptionHandler.php(251): MWExceptionHandler::report()
#19 /usr/local/www/mediawiki/includes/MediaWiki.php(632): MWExceptionHandler::handleException()
#20 /usr/local/www/mediawiki/index.php(50): MediaWiki->run()
#21 /usr/local/www/mediawiki/index.php(46): wfIndexMain()
#22 {main}
MarianArlt (talk) 15:56, 26 May 2024 (UTC)
- I guess the question is why is the transaction state "error".
- Could you enable $wgDebugLogFile? That should give more info.
- [Note, its possible to make i18n cache not use the database, see $wgCacheDirectory, but that is probably just a symptom and won't fix the underlying problem] Bawolff (talk) 22:12, 26 May 2024 (UTC)
How can I make reset in sqlzoo.net?
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.
How can I make reset in sqlzoo.net?
I made it before and I want to go through it again. Dax123dax (talk) 10:58, 27 May 2024 (UTC)
- Deleting cookies doesn't work Dax123dax (talk) 10:59, 27 May 2024 (UTC)
- @Dax123dax Hi, this is mediawiki.org. Why do you think that we know anything about other random websites like "sqlzoo.net"? Because we do not. Malyacko (talk) 11:52, 27 May 2024 (UTC)
Can I still attribute my contributions to my account after forgetting to log in?
I rather not have my IP-adress listed, but I forgot to log in. How can I attribute those edits to my account now? It's an IPv6 and the contributions were just a few hours ago so since I am on logged in through the same IPv6 it should be obvious that I am the same person. StarGazer909 (talk) 14:35, 27 May 2024 (UTC)
- Generally, you would request the administrators of the specific wiki to remove/suppress those contributions and you can make them again when logged in. —TheDJ (Not WMF) (talk • contribs) 14:42, 27 May 2024 (UTC)
- Thanks but would it not be possible for the administrator to change the user attribution on edits without destroying them? StarGazer909 (talk) 15:06, 27 May 2024 (UTC)
- Yes, see https://www.mediawiki.org/wiki/Manual:ReassignEdits.php. Keep in mind that it may not (always) reassign things like logs. Leaderboard (talk) 16:57, 27 May 2024 (UTC)
"The supplied credentials could not be authenticated."
Hi, I upgraded my mediawiki from version 1.38 to version 1.39. The upgradation is successful.
I got the following error "The supplied credentials could not be authenticated." and no credential box (username and password box) show to me.
I updated the "wgPluggableAuth_Config" as directed and then I was able to see the username and password checkbox but the "keep me logged in" checkbox has on top of username
Can I get any advice on it? 136.226.245.33 (talk) 04:41, 29 May 2024 (UTC)
Sidebar Dropdown
Hi,
we are trying to add a sidebar dropdown to our wiki, but it doesn't work. We tried it by changing Common.js, Vector.css and the sidebar page, butr that didn't work.
Also, we wanted to follow the instructions in this thread, but the extensions wer not available anymore: Project:Support desk/Flow/2010/10#h-Drop-down_Sidebar-2010-10-14T08:08:00.000Z
Can someoone please help a complete Noob?! 87.191.161.144 (talk) 06:07, 29 May 2024 (UTC)
Copywrites
To whom it may concern;
Am I permitted to copy text from a posted article to incorporate into a book, which i am writing or are the articles protected by copywrite?
Thank-you in advance for your assistance. Howardmarlene (talk) 09:47, 30 May 2024 (UTC)
- All writing is protected by copyright. Some writing is however LICENSED for use. For most MediaWiki sites, you can find a disclaimer and copyright notice at the bottom of the page telling you about the license of the text. —TheDJ (Not WMF) (talk • contribs) 12:19, 30 May 2024 (UTC)
Recursions
I was trying to get the template to call itself so that it would pull out specific information and paste it as text. The template stores information about recipes, but even though it is not an infinite recursion, it throws an error. Is there a way to make the template call itself? 79.139.200.96 (talk) 16:06, 30 May 2024 (UTC)
- I don't think recursions are allowed in templates. You would need to have a look at Scribunto and its modules in Lua. Steff-X (talk) 13:04, 8 June 2024 (UTC)
- You can't recurse [loop]S templates in general, even indirectly. There is even a limit on the depth you can call one template from another. You could, however, have a template "Master recipe" and call several sub recipes, for example:
- {{Master recipe|name=Victoria sandwich|step1=Make jam: {{Recipe|Strawberry jam|strawberries|sugar|unicorn horn}}|step2=make sponge: {{Recipe|Victoria sponge|two eggs|flour|fairy dust}}}}
- Rich Farmbrough 14:46, 18 June 2024 (UTC). Rich Farmbrough (talk) 14:46, 18 June 2024 (UTC)
| Doesn't work
I was trying to use what is mentioned above in place of pipes to try and be able to insert tables into the description section of an image through UploadWizard, however the ! doesn't even work. I tried putting it outside of the description section outside of any template and it still didn't work. I read that the template for it wasn't being used anymore and that it was incorporated into the core of MediaWiki (of which mine is 1.41). Please help Guillaume Taillefer (talk) 07:19, 31 May 2024 (UTC)
- To clarify, I was trying to insert templates which were in the form of tables inside the description section which is part of another table Guillaume Taillefer (talk) 07:40, 31 May 2024 (UTC)
- Diff? Screenshot? Steps to reproduce? You are right that {{!}} is a magic word, so some things that come to mind might be 1) maybe there is another character that needs escaping such as =, 2) a bug in the UploadWizard extension, 3) other? Can tell you more with more information supplied. –Novem Linguae (talk) 07:45, 31 May 2024 (UTC)
- https://wwii-archives.org/index.php/File:111-SC-320865_-_Troops_in_a_Jeep_in_Carentan,_France.jpg
- Alright here it is. Under the photo you see in the description section (view through view source), and under the "File information" section is just that template but with the {{!}} instead of pipes, and then the same template with the pipes (which is the one that works) Guillaume Taillefer (talk) 09:18, 31 May 2024 (UTC)
- Guillaume Taillefer. What are the exact steps to reproduce please? If you give me something very specific like "step 1 visit this page", "step 2 click X", "step 3 paste exactly this code Y into Z box", myself or someone else can follow those steps exactly and see what is going wrong. –Novem Linguae (talk) 14:18, 2 June 2024 (UTC)
- The thing is is that I am not sure whether or not this is a site issue or mediawiki specific issue, and I did give the instructions in the link.
- I am trying to put a template which is in the form of a normal table with pipes (the template in question is the third example at the bottom of the page) inside of a description section on a file page that is created through UploadWizard.
- The first example of the template is what happens if I place it inside the description section and replace all the pipes with {{!}}. Therefore I tried doing the same thing but outside of the description box, and it resulted in some weird version of formatted text as seen. And then the third one is what the corrected version should be of the template
- You can see the code in the view source at the top Guillaume Taillefer (talk) 15:50, 4 June 2024 (UTC)
Instance of User getting string instead
Hi, I am creating a video permissions extension for my wiki. I keep getting this error and not sure how to go about fixing it. [81e16b69894234cb8a025ff0] /wiki/Special:Upload TypeError: Argument 2 passed to VideoPermissionsHooks::onUploadVerifyUpload() must be an instance of User, string given, called in /var/www/html/w/includes/HookContainer/HookContainer.php on line 338 Timmysworld (talk) 14:25, 31 May 2024 (UTC)
- What does the method signature of your onUploadVerifyUpload look like ? —TheDJ (Not WMF) (talk • contribs) 23:59, 1 June 2024 (UTC)
Wiki "not found" after migrating server
After migrating the server running the wiki to a different location, the apache homepage is visible but I get the following message when going into the domain that should lead to the wiki:
The requested URL /wiki/index.php/Main_Page was not found on this server.
Any ideas why this is? None of the settings or configurations have been changed, just the VM running it has been moved. 155.190.60.27 (talk) 14:30, 31 May 2024 (UTC)
- Well what have you checked so far ? is the webserver running ? Is php running ?
- When asking questions please provide sufficient information to help you. If you were to post "my car is broken", it is hopefully very clear to you that a mechanic would have a very low chance to help you fix your car over the internet. But this isn't far from that in terms of the amount of information that you have given people to work with. —TheDJ (Not WMF) (talk • contribs) 23:56, 1 June 2024 (UTC)
Run Jobs failing due to "unexpected character 0x01"
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello, My Manual:RunJobs.php is periodically failing on Cron with the message:
Parse error: syntax error, unexpected character 0x01, expecting end of file in /usr/local/bin/php on line 1000
My Crontab is:
*/5 * * * * /usr/local/bin/php /usr/local/bin/php /var/www/html/maintenance/run.php runJobs >> /var/log/runJobs.log 2>&1
Running the runJobs script manually via a shell, works though.
I'm a little lost in terms of debugging or diagnosing this as I'm not familiar with Mediawiki's source code etc.
Could anyone provide any suitable diagnostic or debugging steps that may help? ProbablePrime (talk) 23:21, 31 May 2024 (UTC)
- I accidentally included /usr/local/bin/php TWICE in the cron entry as shown in my initial post.
- I apologize! ProbablePrime (talk) 01:29, 1 June 2024 (UTC)
