Project:Support desk/Flow/2024/04
| 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. |
upload
Hello,
I am getting the "Could not open lock file for "mwstore://local-backend/local-public/image.jpg". Make sure your upload directory is configured correctly and your web server has permission to write to that directory. See https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:$wgUploadDirectory for more information." error when uploading files to a MW page.
This page is hosted on RHEL and was updated by a previous sys admin in my organization, and the upload feature has been broken since he last updated MW. He is no longer with us.
I checked php.ini and file_uploads = On
Checked LocalSettings.php:
$wgEnableUploads = true;
$wgGenerateThumbnailOnParse = false;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";
$wgFileExtensions = array('png', 'gif', 'jpg', 'jpeg', 'doc', 'xls', 'bib', 'dat', 'pdf', 'ppt', 'txt', 'tex', 'docx', 'xlsx', 'pptx', 'ps');
$wgUploadDirectory= "$IP/images";
the /images directory has 775 permissions currently, not the 755 recommended by MW documentation. I tried changing it to 777 (just for the directory, not recursively) temporarily and that did not resolve the issue. It is also not a good solution because this is on a public web server.
/images is owned by apache/apache
I tried using the actual directory instead of $IP/images, but that did not help
I am not sure what else to try or check Larmst (talk) 14:33, 1 April 2024 (UTC)
- I presume here that the webserver is running as the apache user.
- Most commonly this is an ownership issue. Try and change the owner to apache/apache recursively in the images directory (including all files/subdirectories).
- 775 or 755 should both be fine provided they have the right owner. 777 isn't really reccomended for security reasons but if you want to try that out of desperation you would need to do it recursively.
- Rarely selinux can cause issues. Check your selinux logs. Bawolff (talk) 16:25, 4 April 2024 (UTC)
"Replace text" not working
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I am trying to use regex to replace pages. I list the pages and it tells me for "Edit Failed: XXX page does not exist". But it does exist. In fact it has carefully listed a bunch of pages that do exist (that all have the category name I have chosen).
any idea what is going wrong? ElectricRay (talk) 17:47, 1 April 2024 (UTC)
- I worked it out. The regex has to be properly formed, including enclosing it in /slashes/ otherwise it gets all squirrelly.
- So Searching for .{1,} gave the problem. Searching for /.{1,}/ worked well.
- ElectricRay (talk) 17:59, 1 April 2024 (UTC)
login error
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 username Limanarui33 keeps giving an error and when I ask for a password reset I don´t receive any mail. For this reason, I have to create a new user.
Can you help merge the two acounts?
I want to pursuit the objective of accomplishing a wiki page for my professor. Limanarui33.1982 (talk) 15:12, 2 April 2024 (UTC)
- If there is an error then please share the exact and full error, plus which exact website that is about Malyacko (talk) 12:47, 3 April 2024 (UTC)
"Edit source" button doesn't work while in Visual Editor
Hello. For some time now I have been having the problem where all the sudden when I try to click on "edit source" or "Source Editor" while in Visual Editor, it does nothing, in fact nothing loads. Sometimes it will give you the prompt: Invalid response from server.
Also I have the problem where now whenever I try to save long written articles the article will start saving and then prompt with: "server didn't respond in time"
I have updated the response time to being longer than was before and it sometimes works but usually does not and just gives that prompt.
This is on Mediawiki 1.40 btw. Guillaume Taillefer (talk) 21:01, 2 April 2024 (UTC)
- I would suggest checking your php and apache error log to try and figure out if it is just a normal timeout or something else going wrong.
- For timeout, be sure you have $wgMainCacheType set to something that works, as that can help a lot with performance. Bawolff (talk) 16:21, 4 April 2024 (UTC)
- Thanks again @Bawolff! I will look into it and come back with what I see Guillaume Taillefer (talk) 13:54, 5 April 2024 (UTC)
Please unblock this IP line: 205.213.104.127
This is a public internet line to Madison, Wisconsin, all Wiki editors are entitled to use it. 205.213.104.127 (talk) 22:20, 2 April 2024 (UTC)
- Block where? Which website (full URL)? What exactly (!) makes you think that it is blocked? Malyacko (talk) 12:47, 3 April 2024 (UTC)
- On the site WikiSimpsons. The IP lines are said to be "automatically" blocked for "open proxy", which makes no sense. 205.213.104.121 (talk) 18:18, 3 April 2024 (UTC)
- we are not affiliated with wikisimpsons and cannot help you with that. —TheDJ (Not WMF) (talk • contribs) 09:16, 4 April 2024 (UTC)
- What team can help then?
- The IP address 205.213.0.0/16 is where the block is directed, connected to public libraries in the City of Madison. 205.213.104.121 (talk) 18:25, 5 April 2024 (UTC)
- Whoever is running "Wikisimpsons" based on the free MediaWiki software. We have nothing to do with that random website so we don't know. You have to contact the owners of that random website. Malyacko (talk) 06:40, 7 April 2024 (UTC)
i want to add books that are missing from my Wikipedia page
to add books that are missing from my Wikipedia page 2001:14BB:11C:2ADE:AC14:2594:6B18:6A99 (talk) 10:13, 3 April 2024 (UTC)
- Okay. Malyacko (talk) 12:46, 3 April 2024 (UTC)
Extension download
Special:ExtensionDistributor/SimpleSAMLphp
The extension above is not available for download 79.131.238.221 (talk) 13:50, 3 April 2024 (UTC)
I always get invalid login CSRF token
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 always get the invalid login CSRF token, it only happens when I want to get a login-type CSRF token. If I only want something like a edit CSRF token, it's valid. I only changed one word "login" to "csrf" in my code and it runs well when using checktoken module, or with "login", it doesn't work.
So... Is there any different when getting a login CSRF or a edit CSRF code? Or it's a MediaWiki issue?
Thanks! Creamycd (talk) 16:28, 3 April 2024 (UTC)
- There is a bunch of differences. Most notably though csrf tokens are disabled for logged out users where login tokens are always on.
- Most common cause of an issue like this is something with cookies. E.g. you have a bot that is not storing or sending cookies, or there is something wrong with how the web server is handling cookies or session ($wgSessionCacheType) cache. Bawolff (talk) 16:18, 4 April 2024 (UTC)
- Well, thank you for your help bur maybe I didn't make it as clear as I think. In another way to say, I cURLed to the Action API endpoint, and got a csrf token, like
api.php?action=query&meta=tokens&type=login&format=json, and then I turned toaction=checktoken&type=loginand cURLed again, but I always found the token I just got is invalid. - I tried this on my self-hosted wiki, someone else's wiki and the Wikimedia Meta wiki, and failed always.
- I got something like this:
flutter: {batchcomplete: , query: {tokens: {logintoken: d4fb73b3169400b2cb6f19aec753311a66125d5e+\}}} flutter: {checktoken: {result: invalid, generated: 2024-04-07T08:46:22Z}}- P.S. I'm building a common MediaWiki Android app using Flutter, if this information helps. Creamycd (talk) 08:49, 7 April 2024 (UTC)
How to get MediaWiki to work on XAMPP?
Windows 11 Home with XAMPP 3.3.0 with MediaWiki 1.36
After creating a database username, password and a database with the same name (all matcing details in LocalSettings.php), and after a successful import of the data from a backup I am having trouble accessing MediaWiki from localhost.
The name of the website directory is hanekudai and LocalSettings.php file also contains these data:
$wgServer = "localhost://hanekudai"; $wgEnableCanonicalServerLink = true; $wgDBtype = "mysql"; $wgDBserver = "localhost"; $wgDBname = "OMITTED"; $wgDBuser = "OMITTED"; $wgDBpassword = "OMITTED"; $wgDBprefix = ""; $wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary";
In a web browser, the command localhost redirects me to XAMPP welcome page but the command localhost/hanekudai leads to the same webpage I am currently at.
How to get MediaWiki to work on XAMPP? 2A10:8012:15:3790:D867:A026:F730:1CA9 (talk) 21:30, 3 April 2024 (UTC)
localhost://is not a valid protocol. http:// and https:// are protocols. —TheDJ (Not WMF) (talk • contribs) 21:37, 3 April 2024 (UTC)- It is true that these two are protocols and I was confused and changing:to:
$wgServer = "localhost://hanekudai";
Solved the problem. 2A10:8012:15:3790:D867:A026:F730:1CA9 (talk) 07:04, 4 April 2024 (UTC)http://localhost:hanekudai
- Oh, no it didn't solve the problem (it seemed to because I got an error after forgetting to turn on MySQL) but anyway I now get:
Any suggestions what to do? 2A10:8012:15:3790:D867:A026:F730:1CA9 (talk) 07:09, 4 April 2024 (UTC)This page isn’t working right nowlocalhost sent an invalid response.
- http://localhost/hanekudai
- Don't take this the wrong way... but if you don't know how URLs work, I don't think you are going to enjoy running a server. This is very basic required knowledge and if you got stuck here, there are going to be 100 more points after this that you are likely going to get stuck at. —TheDJ (Not WMF) (talk • contribs) 09:13, 4 April 2024 (UTC)
- @TheDJ
- You are wrong. I know how URLs work since year 1996 approximately.
- In this post I meant to write:
- It is true that these two are protocols and I was confused and changing:to:
$wgServer = "localhost://hanekudai";
didn't solve the problem.$wgServer = "http://localhost:hanekudai";
- I couldn't edit the post above to fix my mistake for some reason (it's very bad that anonymous users here can't edit their posts even for just one hour or 12 hours from the posting operation).
- That being said
- Evidently I had another mistake there confusing
:instead of/after years I didn't set a local server environment on Windows so just chill out and don't be so demagogue about alleged 100 future probelms that never were and shouldn't be and about what I am going to enjoy or not. - Here is the first part of a Bash script I once wrote years ago to set my VPS on a Digital Ocean droplet, something I greatly enjoyed doing at the time:Don't be hasty in your conclusions. 2A10:8012:15:3790:648F:A136:37E7:E9D8 (talk) 10:03, 4 April 2024 (UTC)
#!/bin/bash apt update -y apt upgrade sshguard apt upgrade ufw ufw --force enable ufw allow 22,25,80,443/tcp ufw allow 22,25,80,443/udp apt upgrade unattended-upgrades wget curl zip unzip tree git at apt install lamp-server^ apt install certbot python3-certbot-apache a2enmod http2 deflate expires # Activate Apache mods systemctl restart apache2
- Anyway, to any user who wants to help, even with:but the site still doesn't work.
$wgServer = "http://localhost/hanekudai";
- After executing
localhost/hanekudaiin a web browser, I am being redirected to:were I get the following error message:http://localhost/hanekudai/index.php/Hanekudai
- This page isn’t working right now
- localhost redirected you too many times.
- Try deleting your cookies.
- ERR_TOO_MANY_REDIRECTS
- As suggested in the error message, I have flushed all caches from all time in another web browser and tried to execute the address again but got the same error message.
- If anyone has any idea why that happens, pelase share it. 2A10:8012:15:3790:648F:A136:37E7:E9D8 (talk) 10:26, 4 April 2024 (UTC)
- > $wgServer = "http://localhost/hanekudai";
- This is wrong. $wgServer should only have the protocol and server part of the url not the path component. The path component goes in $wgArticlePath / $wgScriptPath. Bawolff (talk) 16:15, 4 April 2024 (UTC)
- If I am not mistaken, adding the following line to LocalSettings.php solves the problem:Manual:$wgArticlePath says:
$wgArticlePath = '/index.php?title=$1';
This is the base URL that will be used to construct all internal links within MediaWiki. The default value points it to the main index.php script using a relative URL, but if you are using .htaccess for pretty URLs, this can be altered as required.
- I don't know if and how it solves the problem because now I have another error relating to the skin Timeless which I recall modifying in the time. 2A10:8012:15:3790:648F:A136:37E7:E9D8 (talk) 14:24, 4 April 2024 (UTC)
- I have solved the skin problem by replacing the skin to Vector and the site homepage goes up but without CSS and when I click the login link I am redirected to the XAMPP welcome page. 2A10:8012:15:3790:648F:A136:37E7:E9D8 (talk) 14:34, 4 April 2024 (UTC)
- Basically to solve this problem I had to upgrade MediaWiki to the current version which is 1.41 to prevent some strange PHP errors and PHP modifications I have made to Skin:Timeless which caused some problems (so I switched to a core Skin:Vector.
- I have also created a whole new LocalSettings.php suitable for offline (local server) work.
- What I did exactly, is described in this thread. 2A10:8012:15:3790:648F:A136:37E7:E9D8 (talk) 23:25, 4 April 2024 (UTC)
Please allow anonymous users to edit posts here for at least 1 hour to 12 hours after posting
Please allow anonymous users to edit posts here for at least 1 hour to 12 hours after posting.
This can be done without much problem based on IP address AND a web browser cookie (and the time limit of up to twelve hours would really seal the deal I guess).
Although not speaking English (or any other Germanic language) as a first language I control it quite good but still more prone to error in it and I currently I also suffer from a psychiatric condition and tend to confuse and have typos or phrasing mistakes more often; I should get better soon but it will take a two months or so probably.
I control HTML, Wiki, and Markdown quite good for years now and usually very pedantic about them but had a thread here with two mistakes (yes @TheDJ two mistakes instead of just one are also possible even for an experienced user) and it is great of a trouble for me that I can't edit posts in my last thread in which I confused twice and had several phrasing mistakes.
Please, for accessibility's sake, allow anonymous users to edit their posts at last for some small time.
@Jonathan3 2A10:8012:15:3790:648F:A136:37E7:E9D8 (talk) 11:06, 4 April 2024 (UTC)
- No. We aren't going to change this.
- If you want to be able to edit previous posts, create an account. Bawolff (talk) 16:06, 4 April 2024 (UTC)
- No, thanks. Malyacko (talk) 16:42, 4 April 2024 (UTC)
move all parameter informations in the template data ?
From a general point of view, with the time, Template data (https://www.mediawiki.org/wiki/Template:Extension/doc) generally duplicate the contents of the documentation (ex: https://www.mediawiki.org/wiki/Template:Extension ) with a lower precision of details.
What would be the best principle ?
1. keep duplication as it is (wrong, due to divergence of information in time)
2. make template data as rich as possible moving all parameter informations (values, constraints, restrictions...) into the template data and leaving other parts in the document
Thanks. --Christian 🇫🇷 FR (talk) 14:18, 4 April 2024 (UTC)
Can't run a site with Timeless
Windows 11 Home with XAMPP 3.3.0 with MediaWiki 1.36
After running localhost/hanekudai in a web browser I get:
Warning: Undefined variable $validFooterIcons in C:\xampp\htdocs\hanekudai\skins\Timeless\includes\TimelessTemplate.php on line 341
How best to proceed with this? 2A10:8012:15:3790:648F:A136:37E7:E9D8 (talk) 14:18, 4 April 2024 (UTC)
- I have downloaded a fresh copy of MediaWiki 1.36 and extracted Vector skin and made Vector skin the main skin by changing the theme settings as follows in LocalSettings.php:2A10:8012:15:3790:648F:A136:37E7:E9D8 (talk) 14:33, 4 April 2024 (UTC)
wfLoadSkin( 'Vector' ); $wgDefaultSkin = "vector";
Deactivate "Preview" (when editing a page) ?
Hi, on my wiki, I'd like to deactivate the functionality to Preview a page before saving it (mainly because it causes some issues on my wiki - loss of data - and I don't use it enough to fix them). I could hide the button Preview, but is there a proper way ? Thanks Varlin (talk) 18:18, 4 April 2024 (UTC)
No CSS and all internal links lead to "Not found" pages
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.
Windows 11 Home with XAMPP 3.3.0 and MediaWiki 1.41
With the web browser command localhost/hanekudai I can access my local site but I only get the front page with no CSS and any internal link leads to a 404 "Not found" page.
<?php
# URL settings
$wgSitename = "hanekudai";
$wgServer = "http://hanekudai";
$wgArticlePath = '/wiki/$1';
## Database settings
$wgDBtype = "mysql";
$wgDBserver = "localhost";
$wgDBname = "OMITTED";
$wgDBuser = "OMITTED";
$wgDBpassword = "OMITTED";
$wgDBprefix = "";
$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary";
# Language settings
$wgShellLocale = "C.UTF-8";
$wgLanguageCode = "he";
# Extension settings
wfLoadExtension( 'Cite' );
wfLoadExtension( 'ParserFunctions' );
# Skin settings
wfLoadSkin( 'Vector' );
$wgDefaultSkin = "vector-2022";
I didn't find a general log file in the rather complex file tree of MediaWiki.
What have I done wrong? 2A10:8012:15:3790:648F:A136:37E7:E9D8 (talk) 18:59, 4 April 2024 (UTC)
- This is the URL of my frontpage:2A10:8012:15:3790:648F:A136:37E7:E9D8 (talk) 19:18, 4 April 2024 (UTC)
http://localhost/hanekudai/index.php?title=Hanekudai
- Your $wgServer is incorrect given the url you listed.
- It should be "http://localhost" since the server in question is named localhost not hanekudai.
- There is a strong possibility your $wgScriptPath & $wgArticlePath is incorrect based on what you wrote (although hard to be sure as that can depend on other config files like .htaccess) Bawolff (talk) 20:02, 4 April 2024 (UTC)
- I have changed $wgServer according to your reply but still have the same problem - no CSS and all links are not found.
- Is there any further data I could bring to you, that will help you help me, dear Bawolff? 2A10:8012:15:3790:648F:A136:37E7:E9D8 (talk) 21:22, 4 April 2024 (UTC)
- What is $wgScriptPath set to? It should probably be "/hanekudai"
- I would reccomend not setting $wgArticlePath at all. Bawolff (talk) 22:47, 4 April 2024 (UTC)
- I have removed $wgArticlePath altogether and added
$wgScriptPath = "/hanekudai";which was not there from the first place and now the website has CSS and I no longer have any 404 so the problem is solved ! - Thanks a lot, dear Bawolff. 2A10:8012:15:3790:648F:A136:37E7:E9D8 (talk) 23:15, 4 April 2024 (UTC)
Module pages do not render on specific members of a wiki family
In some language sections of our wiki, we get this error when opening any citation page:
[e151029d61b06caf6d0daf1f] /wiki/Module:Citation LogicException: This ParserOutput contains no text!
Backtrace:
from /var/www/prolewiki/includes/parser/ParserOutput.php(382)
# 0 /var/www/prolewiki/extensions/Scribunto/includes/ScribuntoContentHandler.php(224): ParserOutput->getRawText()
# 1 /var/www/prolewiki/extensions/Scribunto/includes/ScribuntoContentHandler.php(193): MediaWiki\Extension\Scribunto\ScribuntoContentHandler->highlight()
# 2 /var/www/prolewiki/includes/content/ContentHandler.php(1759): MediaWiki\Extension\Scribunto\ScribuntoContentHandler->fillParserOutput()
# 3 /var/www/prolewiki/includes/content/Renderer/ContentRenderer.php(47): ContentHandler->getParserOutput()
# 4 /var/www/prolewiki/includes/Revision/RenderedRevision.php(259): MediaWiki\Content\Renderer\ContentRenderer->getParserOutput()
# 5 /var/www/prolewiki/includes/Revision/RenderedRevision.php(232): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached()
# 6 /var/www/prolewiki/includes/Revision/RevisionRenderer.php(223): MediaWiki\Revision\RenderedRevision->getSlotParserOutput()
# 7 /var/www/prolewiki/includes/Revision/RevisionRenderer.php(164): MediaWiki\Revision\RevisionRenderer->combineSlotOutput()
# 8 [internal function]: MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}()
...
The citations themselves work, and they can still be edited in source code, but they do not render any page in only two wikis.
e.g.: https://en.prolewiki.org/wiki/Module:Citation
e.g.: https://pt.prolewiki.org/wiki/Módulo:Referência
But on other languages, we don't see that error
e.g.: https://es.prolewiki.org/wiki/Módulo:Citación_web
e.g.: https://zh.prolewiki.org/wiki/Module:String
My initial suspicions is that it's a database problem? Because the English and Portuguese wikis were the first ones created, in a older version of MediaWiki, and they are the ones giving trouble. How can I further investigate this? Marx.FelipeForte (talk) 19:44, 4 April 2024 (UTC)
- Often this is a problem with a third extension, and its often unclear which one. Older versions of SpamBlacklist caused a bug like this. Similarly some versions of Lingo extension had a bug like this.
- If you can reliably reproduce you could try disabling extensions one by one to see what happens.
- Its probably not a database problem. Its possibly a problem with parser cache but i think that's unlikely. Bawolff (talk) 19:59, 4 April 2024 (UTC)
True, as far as I've searched, I've seen a few mentions of Lingo as well.Similarly some versions of Lingo extension had a bug like this.
- I can try removing extensions one by one and see its effects, though all wikis have the same extension registry, even the wikis which have working Module pages
- So it doesn't look to me like a conflict of extensions either, at least on immediate appearances... Marx.FelipeForte (talk) 23:37, 4 April 2024 (UTC)
- I noticed that if I comment the line where it throws the exception (line 382), the module page displays correctly, as it should.This shows that a null value for mText does not apparently affect the render of the page, but there may be a reson it's there, right? Marx.FelipeForte (talk) 01:37, 5 April 2024 (UTC)
public function getRawText() { if ( $this->mText === null ) { //throw new LogicException( 'This ParserOutput contains no text!' ); } return $this->mText; }
How to run a database upgrade on a local (XAMPP) MediaWiki?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Windows 11 Home with XAMPP 3.3.0 with MediaWiki 1.41
I have recently upgraded my local (XAMPP) MediaWiki directory from 1.36 to 1.41 and now I need to run a database upgrade command:php maintenance/run.php update.phpAs the site is offline on XAMPP, I can't SSH into the same system I am at and use Bash (as I would with my web hosting environment), so probably I have to work this out from Windows CMD or Powershell somehow? 2A10:8012:15:3790:9553:DACC:14EA:1F10 (talk) 12:30, 5 April 2024 (UTC)
- Its the same command in windows cmd, however typically php is not in your PATH environment on windows so you have to write the full path to the php command.
- You can also upgrade via acccessing the web installer. Bawolff (talk) 23:19, 5 April 2024 (UTC)
- @Bawolff I do indeed need to run it from the web installer but I didn't found in
mediawiki.org/wiki/Manual:Upgrading#Web_browserhow to do that exactly. - These links bring me to a not found 404:2A10:8012:15:3790:E104:E521:10C1:9F41 (talk) 19:29, 6 April 2024 (UTC)
localhost/hanekudai/mw-config/update.php localhost/hanekudai/mainteance/update.php
- The link is localhost/hanekudai/mw-config/index.php if doing it in a web browser. Bawolff (talk) 21:27, 6 April 2024 (UTC)
- The installation did the upgrade to me indeed. Thanks !
- Please mark as solved @Clump. 2A10:8012:7:97C7:F0A8:CC0E:5C15:92A3 (talk) 20:51, 13 April 2024 (UTC)
Please delete this 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.
This comment is outdated. 2A10:8012:15:3790:E104:E521:10C1:9F41 (talk) 16:22, 6 April 2024 (UTC)
Please delete these posts that were published redundantly due to a caching problem
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 to run a database upgrade on a local (XAMPP) MediaWiki? on Project:Support desk
- How to run a database upgrade on a local (XAMPP) MediaWiki? on Project:Support desk
Thanks 2A10:8012:15:3790:E104:E521:10C1:9F41 (talk) 21:12, 6 April 2024 (UTC)
The "Error_Log" file of our site receives two types of warning notices in a row...
[07-Apr-2024 06:11:34 Asia/Baku] PHP Warning: pclose() has been disabled for security reasons in /home/shekiafn/public_html/wiki/includes/GlobalFunctions.php on line 1742 [07-Apr-2024 06:11:34 Asia/Baku] PHP Warning: pclose() has been disabled for security reasons in /home/shekiafn/public_html/wiki/includes/GlobalFunctions.php on line 1758
I also know the way to fix this problem: delete lines 1742 and 1758 in the "GlobalFunctions.php" file. I want to know, is this the right solution to the problem?
( https://sheki.org/wiki/index.php ) Шариф Ахмет (talk) 10:03, 7 April 2024 (UTC)
- The best solution would be to not disable the function. Bawolff (talk) 21:07, 7 April 2024 (UTC)
vector-22 header icons dont show up.
I dont know why but vector 22 doesnt show header icons. I upgraded to 1.41 hoping it would fix but it is stil lthe same.
for example:
load.php vector 22. css icons show empty.
.vector-icon.mw-ui-icon-wikimedia-menu {
background-image: url(/load.php?modules=skins.vector.icons&image=menu&format=original&lang=tr&skin=vector-2022&version=3lpkw)
} Dragsugur (talk) 13:00, 7 April 2024 (UTC)
how to get the translated transcluded section in a translated page ?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
go on -> https://www.mediawiki.org/wiki/Help:Temporary_accounts in TOC click on "How can I tell if an account is temporary? What does a temporary username look like?" url shows : https://www.mediawiki.org/wiki/Help:Temporary_accounts#How_can_I_tell_if_an_account_is_temporary?_What_does_a_temporary_username_look_like? => correct, starts with ~2024-12345-67.... due to #lsth
Now open the corresponding section on a translated page i.e. -> https://www.mediawiki.org/wiki/Help:Temporary_accounts/fr#How_can_I_tell_if_an_account_is_temporary?_What_does_a_temporary_username_look_like? => paragraph contents is now absent !!!
How to get the translated transclusion in the translated page ? Thanks. --Christian 🇫🇷 FR (talk) 14:03, 7 April 2024 (UTC)
How to transclude sections in a Template?
Hi,
I have a Template A
<section begin="c" />Content: {{{VAR}}}<section end="c" />
Page B:
{{A|VAR=myvar}} <section begin="test" />Blubb<section end="test" />
And a page D:
{{#lst:B|c}} {{#lst:B|test}}
The output of Page D:
Blubb
Obviously the transclution works in general, but not, when it is marked as a section in a template. Any clues?
I hope the computer code I entered Ctrl-Shift+6 will be printed out correctly. At the moment of editing the article looks awful :) 964C2 (talk) 15:25, 7 April 2024 (UTC)
- You declare c belonging to A but where is the c belonging to B ? --Christian 🇫🇷 FR (talk) 11:15, 10 April 2024 (UTC)
Collapsible elements (that are collapsed by default) show during page loading
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 making a 'spoilers' template that uses collapsible elements to hide a piece of text until a button is pressed. However, the collapsible element is briefly shown during loading before hiding, which is a problem since the codes the template are spoilers. Is there a way to fix this?
EDIT: Here's a link to a page with the template: https://cellua.miraheze.org/wiki/Secrets/v2.0.0/0
Just try reloading the page a few times and you will hopefully see the issue. Hiyshhiysh (talk) 15:44, 7 April 2024 (UTC)
- Things in style attributes are taken into account first in page load, you could experiment setting some of the divs style="display:none" . Possibly that might hide initially but not break the collapsible template if you have it on the right divs (and not on the wrong one). Bawolff (talk) 21:04, 7 April 2024 (UTC)
- This didn't work, unfortunately. Nothing appears to change. Hiyshhiysh (talk) 07:47, 8 April 2024 (UTC)
- Oops, misunderstood you, upon doing that, the grey box disappeared entirely. Hiyshhiysh (talk) 09:25, 8 April 2024 (UTC)
- The answer is that mw-collapsible needs a child ELEMENT to collapse. The page in question was only including text contents. —TheDJ (Not WMF) (talk • contribs) 14:52, 8 April 2024 (UTC)
- I have solved this now via the MediaWiki discord server. Thanks to the person that helped me there! Hiyshhiysh (talk) 18:51, 13 April 2024 (UTC)
Unable to use webp images
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 get an error when I upload a webp image. I have $wgUseImageMagick set as true, and thumbnail generation works fine for jpg and png file types, just not webp. I'm on a shared Linux hosting server. I notice a lack of webp listed among the delegates. Does that mean webp is just not supported by my web host (and there's nothing I can do about it)?
Error creating thumbnail: convert: delegate failed `'dwebp' -pam '%i' -o '%o'' @ error/delegate.c/InvokeDelegate/1928. convert: unable to open file `/tmp/magick-37439nhqwNuBrxxxx': No such file or directory @ error/constitute.c/ReadImage/604. convert: no images defined `/home2/xxxxx/tmp_2ipsvm/transform_04c80352ead4.png' @ error/convert.c/ConvertImageCommand/3235. Error code: 1
System:
MediaWiki 1.41.0, PHP 8.3.4 (litespeed), ImageMagick 6.9.10-68
Features: Cipher DPC Modules OpenMP(3.1)
Delegates (built-in): bzlib cairo fontconfig freetype gslib jng jp2 jpeg lcms ltdl lzma openexr pangocairo png ps rsvg tiff wmf x xml zlib BrewingForward (talk) 00:12, 9 April 2024 (UTC)
- If you google for delegate failed dwebp then you will find that your imagemagick was not installed with webp support. —TheDJ (Not WMF) (talk • contribs) 08:51, 9 April 2024 (UTC)
- That is unfortunate. Thank you. BrewingForward (talk) 18:22, 9 April 2024 (UTC)
Disable hiding the sidebar for anonymous users in Vector 2022
Hi,
I want to change default Vector 2022 behavior for anonymous users and make is the same as for logged in users. By default, wiki hides the sidebar with every new page load, and displays the TOC. We want to achieve the following: - Keep the sidebar open by default - Keep the table of contents hidden by default
Failing that, is there any way to maybe move the table of contents back inline (into main content area, as it was in the previous version of Vector) or maybe push the table of contents under the sidebar? We created custom navigation for our wiki content and placed in the sidebar, but we need to keep the sidebar open for users. What can we do to keep the sidebar and do something to move the TOC out of the way? 193.77.83.38 (talk) 12:34, 9 April 2024 (UTC)
- Is there maybe any code I can put in common.js to override the defaults? 86.61.27.128 (talk) 07:23, 15 April 2024 (UTC)
Delete unused local wiki accounts
Can my unused wiki accounts be deleted? I have 0 edits and I don't even know how I signed up for these accounts. Here's the link: https://meta.wikimedia.org/wiki/Special:CentralAuth?target=AceSeeker How can I avoid adding unwanted wiki accounts in the future? AceSeeker (talk) 17:01, 9 April 2024 (UTC)
- You just used your "unused" account to post your question? Malyacko (talk) 08:49, 10 April 2024 (UTC)
- @AceSeeker They are created when you visit various projects to allow features such as global preferences to work, there is no impact in having these created. P858snake (talk) 08:58, 10 April 2024 (UTC)
VisualEditor error
I want to edit in visual mode. When installing MediaWiki, VisualEditor was installed.
Gives an error message:
"Exception encountered: Could not open '/tmp/mw-GlobalIdGenerator1436-UUID-128'."
I created a "tmp" folder and specified the paths
/dev.vovax.ru/public_html/includes/Setup.php
$wgTmpDirectory = directory_name(directory_name(__FILE__)). "/tmp";
It worked fine for 1 day, now the error is repeated.
Latest version wiki mediawiki-1.41.1 95.24.167.125 (talk) 17:50, 9 April 2024 (UTC)
- Often this is caused by running a maintenance script as thexwrong user. Bawolff (talk) 18:14, 10 April 2024 (UTC)
- Hosting support helped.
- Had
- 1. In the root folder "public_html" create a tmp folder
- 2. Paths ~/dev.vovax.ru/public_html/includes/Setup.php
- Line ~390 correct
- // Now that GlobalFunctions is loaded, set defaults that depend on it.
- if ( $wgTmpDirectory === false ) {
- #$wgTmpDirectory = wfTempDir(); #this is the default entry
- $wgTmpDirectory = dirname(dirname(__FILE__)). "/tmp";
- }
- Technical support response
- This is due to the peculiarity of shared hosting.
- The server hosts sites that have access to the /tmp directory, but for security purposes, the files that are created in it by different sites have different owners. If you try to access a file with an owner different from the site user, an error will occur.
- The file name mw-GlobalIdGenerator1436-UUID-128 is not unique, so an error may occur in one case and not in another. 95.24.167.115 (talk) 08:45, 11 April 2024 (UTC)
- льльдь
- Бжббж 95.78.91.73 (talk) 18:03, 11 April 2024 (UTC)
Export category data
Hi, I'm trying to track the amount of pages in maintenance categories over time. Is there a way to somehow automatically export that data to an app like numbers for example? Either when I tell it to or just automatically every x amount of days.
Thanks Flaming Hot Mess of Confusion (talk) 00:09, 10 April 2024 (UTC)
- Not that I'm aware of. —TheDJ (Not WMF) (talk • contribs) 08:52, 10 April 2024 (UTC)
Move my Media Wiki
I've been hosting a private MediaWiki on my MacBook, accessed via localhost. Now, I'm looking to migrate the entire wiki to my new MacBook. Is there a way to accomplish this?
I've created backups of both the database and the MediaWiki files. Initially, I attempted to recreate the wiki using the MediaWiki backup, but encountered issues. Subsequently, I tried moving the MediaWiki folder and using the database backup to rebuild the wiki, yet encountered similar problems. Although both methods allowed me to access a MediaWiki page via localhost, all content was missing.
Does anyone have experience with this issue or suggestions on how I could proceed? Thank you in advance for any assistance. 2001:9E8:AC08:A600:842:F379:2A7E:A537 (talk) 06:59, 10 April 2024 (UTC)
Problem with Mustache_engine
I am getting an error that states class mustache engine not found. AFAIK I am the first person on the planet this has happened to Dazwarier99 (talk) 16:26, 10 April 2024 (UTC)
- You could try running
composer updatesee if that helps. Bawolff (talk) 18:13, 10 April 2024 (UTC) - i fixed that problem but now my shorturl goes to /whtml instead of /w Dazwarier99 (talk) 12:20, 11 April 2024 (UTC)
Error Message when importing a template

Please Help, Here are some details
Installed software
| Product | Version |
|---|---|
| MediaWiki | 1.41.1 |
| PHP | 8.1.27 (fpm-fcgi) |
| ICU | 69.1 |
| MySQL | 8.0.36 |
| Lua | 5.1.5 |
I also have scribunto installed JoBoGamer (talk) 19:54, 10 April 2024 (UTC)
- you might have an issue with disabled functions in your php config. Bawolff (talk) 01:26, 11 April 2024 (UTC)
Align speciesbox on the right
I have created a template Template:Speciesbox (like on Wikipedia) and I want to align it on the right…
Any idea how I can do that? If it needs setting the CSS, what code I have to add in the Common.css page?
Also, I want the same Speciesbox (but this time on mobile) to be aligned in the center and fill the screen side-to-side, what code do I have to add in Mobile.css? 89.108.148.53 (talk) 01:44, 11 April 2024 (UTC)
- wrap template in <div style="float:right"> ... template here ... </div> Bawolff (talk) 19:18, 11 April 2024 (UTC)
promoting common templates to several wikis to global level
What is the best: to recopy the template on each wiki ? or to declare the template as global ?
example: the template Tunit is defined in Commons and re copied in MediaWiki
And where can we propose the template to be global ?
Thanks. --Christian 🇫🇷 FR (talk) 11:20, 11 April 2024 (UTC)
- there is no such thing as a global template at this point in time. —TheDJ (Not WMF) (talk • contribs) 18:56, 11 April 2024 (UTC)
- ok, thanks; so we agree to duplicate, of course as long as function remains compatible. Christian 🇫🇷 FR 🚨 (talk) 20:41, 11 April 2024 (UTC)
error installing citoid.
unfortunately, it is not possible to install the project due to an error when installing its dependencies
npm ERR! Error while executing:
npm ERR! /usr/local/bin/git ls-remote -h -t ssh://git@github.com/zotero/wicked-good-xpath.git
npm ERR!
npm ERR! git@github.com: Permission denied (publickey).
npm ERR! fatal: Couldn't read from an external repository.
npm ERR!
npm ERR! Make sure that you have the necessary access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR! exited with error code: 128 Frigariione (talk) 13:48, 11 April 2024 (UTC)
- You probably don't have ssh configured for your github account and so github won't allow you to download the sources via that method. —TheDJ (Not WMF) (talk • contribs) 18:56, 11 April 2024 (UTC)
A segment of Common.js on my wiki should be correct, but throws up an error detected by MS Edge
For the past several days, I have retooled the latter half of my Miraheze wiki's Common.js code with help from Stack Overflow, JSFiddle, and JSHint. (Recall from past correspondence that JavaScript is not a big strength of mine, and I learn by example.)
At this writing, here's what this segment looks like:
var toc = document.querySelector('.ns-3030 #toc'),
firstHeading = document.querySelector('#firstHeading .mw-page-title-main').innerHTML,
rcTitle = document.querySelector('#bodyContent .mw-changeslist-title').innerHTML,
morphemeTitle = document.querySelector('.ns-3036 #firstHeading').innerHTML;
/* MagicNumberedHeadings substitute (exclusive to Grammar pages on this site) */
/* MNH is no longer supported on MW per [[wmphab:T284921]] */
/**
* Auto-number headings
*
* @source https://mediawiki.org/wiki/Snippets/Auto-number_headings
* @author Krinkle
* @version 2021-10-03
*/
if (toc) {
document.querySelectorAll('.mw-parser-output :is(h1,h2,h3,h4,h5,h6) .mw-headline').forEach(function (headline) {
var num = toc.querySelector('a[href="#' + CSS.escape(headline.id) + '"] .tocnumber');
if (num) headline.prepend(num.textContent + '. ');
});
} else {
document.body.classList.add('tpl-autonum');
}
/* Slash breaks on long page titles, especially as far as "Unspooled" infrastructure is concerned */
/* Source: https://stackoverflow.com/questions/36012874/how-to-wrap-a-text-after-slash */
if (firstHeading) {
var s = document.querySelector('.mw-page-title-main').innerHTML;
s = s.replace(/\//g,"/<wbr>");
document.querySelector('.mw-page-title-main').innerHTML = s;
}
if (rcTitle) {
var s2 = document.querySelector('.mw-changeslist-title').innerHTML;
s2 = s2.replace(/\//g, "/<wbr>");
document.querySelector('.mw-changeslist-title').innerHTML = s2;
}
/* DisplayTitle hack on pages for morpheme tables */
if (morphemeTitle) {
var s3 = document.querySelector('.ns-3036 .mw-page-title-main').innerHTML;
if (s3.match(/^-|-$/)) {
s3 = morphemeTitle.replace("Morpheme","Affix");
} else {
s3 = morphemeTitle.replace("Morpheme","Root");}
document.querySelector('.ns-3036 #firstHeading').innerHTML = s3.replace();
}
This is supposed to be properly coded, but Microsoft Edge insists otherwise. Inspecting this segment (under the "Console" pane) brings up an error:
Uncaught TypeError: Cannot read properties of null (reading 'innerHTML')
at <anonymous>:1:900
at globalEval (startup.js:1123:17)
at runScript (startup.js:1274:6)
at execute (startup.js:1385:4)
at doPropagation (startup.js:737:6)
triggered by rcTitle = document.querySelector('#bodyContent .mw-changeslist-title').innerHTML for whatever reason. From here, how else can it be resolved? (Pinging Bawolff (talk · contribs) for help.)
(MW 1.41.0/PHP 8.2.7)
--Slgrandson (talk) 17:54, 11 April 2024 (UTC)
- you should not use innerHTML. I know there are lots of examples that use it, but don't use it. It breaks any other javascript that has to work with that piece of html. Please read this https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Client-side_web_APIs/Manipulating_documents#creating_and_placing_new_nodes on how to modify the structure of HTML properly.
- The error in general means: you are trying to access innerHTML on something that doesn't exist. (and so.. don't do that).
- Specifically here, your firstHeading, rcTitle and morphemeTitle variables right at the very top, are looking for content that MIGHT not be available on the page you are at. For instance rcTitle is only present on recent changes pages and not on any other type of page. As such, the lookup
rcTitle = document.querySelector('#bodyContent .mw-changeslist-title')returns absolutely nothing and you cannot accessinnerHTMLon it. Instead, remove the .innerHTML from those lines. Then your variable indicates if the element exists and your conditions later on the page can check those variables, before continuing operations, like reading from or writing to them. —TheDJ (Not WMF) (talk • contribs) 19:11, 11 April 2024 (UTC)
- The code doesn't look correct. I would be very surprised if it is only microsoft edge complaining.
- The part at the beginning (first 4 lines) should not have .innerHTML Bawolff (talk) 19:16, 11 April 2024 (UTC)
- Having taken care of the "innerHTMLs" an hour and a half ago, only one problem remains:
Uncaught TypeError: morphemeTitle.replace is not a function at <anonymous>:2:778 at globalEval (startup.js:1123:17) at runScript (startup.js:1274:6) at execute (startup.js:1385:4) at doPropagation (startup.js:737:6)- triggered by s3 = morphemeTitle.replace("Morpheme", "Root");. Once again, I thought I really had it made... --Slgrandson (talk) 22:21, 11 April 2024 (UTC)
- that part needs the innerHTML Bawolff (talk) 22:38, 11 April 2024 (UTC)
- After what seemed like ages, I finally got the final segment to work an hour ago (with doublechecking conducted on JSFiddle). Years of worrying are finally over:
/* DisplayTitle hack on pages for morpheme tables */ if (morphemeTitle) { var s3 = document.querySelector('#firstHeading').innerHTML; var s4 = document.querySelector('.mw-page-title-main').innerHTML; if (s4.match(/^-|-$/)) { s3 = s3.replace("Morpheme","Affix"); } else { s3 = s3.replace("Morpheme","Root");} document.querySelector('#firstHeading').innerHTML = s3; }- To @Bawolff: /@TheDJ: Thanks for your troubleshooting assistance. Take care! (Posted via my Galaxy Tab A.) --Slgrandson (talk) 21:41, 12 April 2024 (UTC)
How can I get a right logintoken?
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 read the API:Login and API:Tokens and here's my code in Python to get a logintoken and try to find out whether or not it's valid:
import requests
# get logintoken
response = requests.get('https://www.mediawiki.org/w/api.php?action=query&meta=tokens&format=json&type=%2A')
data = response.json()
logintoken = data['query']['tokens']['logintoken']
print(f'logintoken: {logintoken}')
# check the token
post_response = requests.post(
'https://www.mediawiki.org/w/api.php?action=checktoken&type=login&format=json',
data={'token': logintoken}
)
print(post_response.json())
And then, always I get something like:
logintoken: e54db578b836e3a6d353bcc24a92048f6619080d+\
{'checktoken': {'result': 'invalid', 'generated': '2024-04-12T10:08:13Z'}}
How can I get a right logintoken?
Thank you! Creamycd (talk) 10:14, 12 April 2024 (UTC)
- Save and send cookies with your response Bawolff (talk) 21:25, 12 April 2024 (UTC)
1.41.x Docker: "There is currently no text in this page." (Solved)
Using Docker. After upgrading from 1.40.3 to 1.41.0 (or 1.41.1), all the Wiki content was "gone". In a container with 1.40.3 again, everything was back.
Solved: In 1.41.0 after running "php maintenance/update.php" the content is shown again. 92.70.74.171 (talk) 11:23, 12 April 2024 (UTC)
Unable to install pgpool 4.5.1
Hi ! I have been trying to install pgpool-II 4.5 for postgres 16 however I have been getting: Problem: cannot install the best candidate for the job - nothing provides libmemcached.so.11()(64bit) needed by pgpool-II-pg16-4.5.1-1pgdg.rhel9.x86_64 from pgpool45
More details:
OS: Red Hat Enterprise Linux 9.3
Commands used: dnf install -y pgpool-II-pg16
Output:
Updating Subscription Management repositories.
Last metadata expiration check: 0:01:47 ago on Fri 12 Apr 2024 07:01:40 PM IST.
Error:
Problem: cannot install the best candidate for the job
- nothing provides libmemcached.so.11()(64bit) needed by pgpool-II-pg16-4.5.1-1pgdg.rhel9.x86_64 from pgpool45
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
Any help towards this will be greatly appreciated Manukapoor1978 (talk) 13:44, 12 April 2024 (UTC)
- @Manukapoor1978 Welcome to the MediaWiki support desk. How is your question related to MediaWiki? For RHEL package dependency issues you need to ask in a RHEL support forum. Malyacko (talk) 16:14, 12 April 2024 (UTC)
Search Results Metadata Issue on Wikimedia
I searched for "Solar eclipse of 2024 April 8" on Wikimedia, expecting an accurate page description.
Here is the link to the search results
However, the metadata provided was in Hungarian, also, no image was displayed with the metadata.
Metadata:
Solar eclipse of 2024 April 8
<nowiki>eclipse solar del 8 de abril de 2024; 2024. április 8-i napfogyatkozás; 2024ko apirilaren 8ko eguzki eklipsea; eclipse solar del 8 d'abril de 2024; Sonnenfinsternis...
The page seems to be using {Wikidata Infobox}. The description on the page appears to be the names of the corresponding page as listed on Wikidata at d:Q2620078. It's unclear why this template is pulling in data in this manner.
Can you please address this issue? Thank you. AceSeeker (talk) 00:46, 14 April 2024 (UTC)
- That is Spanish, Hungarian, Basque (I think), German. As it's a Wikimedia wiki you may want to bring this up on https://meta.wikimedia.org/wiki/Tech (or follow How to report a bug once somebody has confirmed that this is actually a software misbehavior and not user-provided data triggering this). Malyacko (talk) 06:18, 14 April 2024 (UTC)
- I suspect the issue might not be caused by a software malfunction but rather by an error in the infobox code or user-provided data.
- As you suggested, I'll report the issue to meta.wikimedia.org/wiki/Tech. Aslo, where should I go to get the infobox reviewed or addressed? AceSeeker (talk) 17:09, 14 April 2024 (UTC)
How to access page name and URL from within LocalSettings.php?
I am using a $wgHooks to insert some meta information in the <HEAD> section of the page.
How can I access the page's title and URL from within LocalSettings.php? Sampson2023 (talk) 00:55, 14 April 2024 (UTC)
- It can vary depending on hook but generally:
- RequestContext::getMain()->getTitle()->getFullUrl()
- RequestContext::getMain()->getTitle()->getPrefixedText()
- (In a future version you might have to use \MediaWiki\Context\RequestContext::getMain()->getTitle()->getFullUrl() instead) Bawolff (talk) 17:55, 14 April 2024 (UTC)
- That's amazing, it worked! Many thanks :-)
- How about getting the revision timestamp, in the same way? Sampson2023 (talk) 09:36, 15 April 2024 (UTC)
- Its more complicated... you'd have to do something like MediaWiki\MediawikiServices->getRevisionLookop()->getRevisionByTitle( RequestContext::getMain()->getTitle() )->getTimestamp();
- The timestamp would be in machine format so you would need to format it with RequestContext::getMain()->getLanguage()->timeanddate() if you want it based on user preference, or wfTimestamp() if you need a specific format.
- I didn't test any of this, so it might be slightly off, but should be roughly right.
- There are docs for mediawiki classes at https://doc.wikimedia.org/mediawiki-core/master/php/ the classes i have mentioned are RequestContext, Title, RevisionRecord, RevisionLookup, Language Bawolff (talk) 16:57, 15 April 2024 (UTC)
- Brilliant, I got it working, thank you so much! Sampson2023 (talk) 03:28, 16 April 2024 (UTC)
Media Wiki Installing error
I am facing this problem and I have tried opening php.ini file and deleting ; this from extension I am using Xampp local host for all process can somone help to get out fro this.
MediaWiki 1.41 internal error
Installing some PHP extensions is required.
Required components
You are missing a required extension to PHP that MediaWiki requires to run. Please install:
- You need to install the PHP intl extension. I am not sure how to rephrase the error message to make it clearer, please elaborate what is unclear. Malyacko (talk) 06:15, 14 April 2024 (UTC)
- The problem as I has mentioned is the exact problem it says for installation of php so how could I do it. Xaloria (talk) 07:40, 14 April 2024 (UTC)
- What happened when you deleted the ; ?
- Did you restart xampp? You have to restart for changes to take effect Bawolff (talk) 17:53, 14 April 2024 (UTC)
- I have restarted xamppp but it's not working. Xaloria (talk) 01:57, 19 April 2024 (UTC)
- It is still not clear to me: Did you successfully install the PHP intl extension? Malyacko (talk) 11:38, 21 April 2024 (UTC)
- I am confused in actually how to install it I have't installed it yet. Xaloria (talk) 13:27, 23 April 2024 (UTC)
- That depends on your operating system. Please refer to PHP documentation as this question is not related to MediaWiki itself but to PHP (which MediaWiki uses). Malyacko (talk) 15:25, 24 April 2024 (UTC)
- From where can I get help of this topic at all. Xaloria (talk) 12:11, 27 April 2024 (UTC)
- In a PHP support forum. Or maybe from your hosting provider if you have one. Malyacko (talk) 18:49, 28 April 2024 (UTC)
Is it okay to create my own page about myself instead of Wikipedia?
Hi there!
I just signed up for MediaWiki and I'm hoping to create a page about myself. I'd like a place to share information without disruption.
Unfortunately, Wikipedia has deleted my user page.
So I was wondering if it's okay to create my own page here on MediaWiki instead?
I'm waiting for your replies! :) JayAndrewBoy (talk) 07:31, 15 April 2024 (UTC)
- Hi and welcome. No, it is not okay as we are not a place to host random content. Please see Project:About - thanks! (You are always free to host your own website about yourself on your own server.) Malyacko (talk) 08:18, 15 April 2024 (UTC)
- Perhaps https://miraheze.org is more what you are looking for. Bawolff (talk) 17:01, 15 April 2024 (UTC)
- Really? How does it work? 🤔 JayAndrewBoy (talk) 08:49, 16 April 2024 (UTC)
- Click that link and find out. Malyacko (talk) 13:39, 16 April 2024 (UTC)
- Any other sites like that out there? I went to Miraheze, but the status is declined. JayAndrewBoy (talk) 06:01, 17 April 2024 (UTC)
- Web hosting services exist. You could create your own website. Malyacko (talk) 11:39, 21 April 2024 (UTC)
- But how? The status on my wiki request queue is declined, so I don't know what to do. JayAndrewBoy (talk) 05:53, 22 April 2024 (UTC)
- If you don't have the knowledge to do it yourself and are unwilling to learn, you can pay someone to do it for you. There is a list of people who do that sort of thing at Professional development and consulting Bawolff (talk) 06:33, 22 April 2024 (UTC)
- I can't do it, I'm a beginner. JayAndrewBoy (talk) 12:19, 22 April 2024 (UTC)
- Then you are free to pay someone to create a website for you. Malyacko (talk) 15:22, 22 April 2024 (UTC)
- I don't have any money. Sorry. JayAndrewBoy (talk) 03:53, 23 April 2024 (UTC)
Upgrade advice for v1.26 -> 1.41
Current Version : Bitnami MediaWiki 1.26
OS : Windows Server 2012 R2
would like to move to
New Version : 1.41
OS : Windows Server 2022
review the following items:
I tried the following so far:
1) Upgraded xampp which didn't work
2) tried to upgrade 1.35 and it didn't work Docwikinoob (talk) 16:04, 15 April 2024 (UTC)
- Does not do what ? We cant guess for a cause based on a guess of the problem. Did you check logfiles and command output for any errors ? Did you follow the upgrade guide and at which step did you get stuck ? —TheDJ (Not WMF) (talk • contribs) 17:03, 15 April 2024 (UTC)
mediawiki dropping domain URL
When I type "blahblahwiki.org" into my browser's address bar, it takes me to my wiki ok, but the domain name is replaced with the path to the folder the wiki is residing in.
So "blahblahwiki.org/Main_Page" becomes "https://umbrelladomain.com/blahblahwiki/index.php/Main_Page"
Since I could make it do that without buying a domain name I went to my new hosting provider and asked what's broken.
"I want blahblahwiki to have http://umbrelladomain/blahblawiki as it's root folder. I just can't get it to say "blahblahwiki.org" in the browser address bar. "
Their response:
"The domain (Blahblahwiki.org) is a addon domain that points to the public_html/blahblahwiki folder.
There is no redirect in the .htaccess file, which means the redirect is most likely caused by the script that you are using in public_html/blahblahwiki.
To which I replied:
"Thank you, I will take this to the Mediawiki people and ask them what it might be.
To be clear, something in the /blahblahwiki folder is making it redirect back into the same folder, causing it to drop the blahblahwiki.org and instead use the umbrelladomain/blahblahwiki folder address.
If I have that incorrect, let me know. I will take this up with mediawiki now.
Thank you so very much, guys!"
They confirmed:
"Correct, if you have any other questions please let us know."
So thats what brought me here. I checked out the short-URL help text, but nothing there applied to the situation. I tried the autimatic htaccess configurator too. I played around with the path variables in the localsettings script.
What could be overriding my domain name? -𝘼𝙧𝙘𝙝𝙖𝙣𝙜𝙚𝙡💀 00:29, 16 April 2024 (UTC)
- My first guess is that you haven't updated your LocalSettings.php to make use of the new domain. —TheDJ (Not WMF) (talk • contribs) 08:33, 16 April 2024 (UTC)
A few days ago a new web page blew onto my homepage and each day it became more aggressive taking over my communiations. I do not like this "overlook" and want it gone. Please help."
I need to rid myself of overlook. It is rude and assumes too much. Jackatwood (talk) 03:44, 16 April 2024 (UTC)
- it sounds like you have been hacked. Contact your system administrator to secure your website. —TheDJ (Not WMF) (talk • contribs) 08:31, 16 April 2024 (UTC)
Visual Editor doesn't work after update
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
After I updated to 1.4.1 (from 1.3.9), everything works except the Visual Editor.
No error message appears either. When I click on 'edit', the loading bar appears briefly and then nothing else happens. From there, I cannot go directly to edit source, nothing happens. However, using edit source directly works.
I use the Timeless skin, so I thought that was the problem. So I switched to Vector as a test, with the same result.
Does anyone have any advice on how I can fix this? Kryptator (talk) 11:06, 16 April 2024 (UTC)
- I hope you upgraded from 1.39 to 1.41 and not the ancient versions you mentioned above. For the start, check your web browser's error console and check your web server's error logs. Malyacko (talk) 13:38, 16 April 2024 (UTC)
- Of course. :)
- I reinstalled cite & visual editor and know it seems to work :)
- Thanks! Kryptator (talk) 14:07, 16 April 2024 (UTC)
Problems with updating Mediawiki LDAP
I am trying updating LDAP. Having difficulty understanding what belongs where and how... following the Description as good as i can.
Please Help.
When i run the maintenance/update.php script it says to me Found invalid JSON in file: /var/www/html/ldap.json
At the end of the Script it prints:
BadMethodCallException from line 506 of /var/www/html/mediawiki/includes/session/SessionProvider.php: MediaWiki\Session\SessionProvider::preventSessionsForUser must be implemented when canChangeUser() is false
#0 /var/www/html/mediawiki/includes/session/SessionManager.php(453): MediaWiki\Session\SessionProvider->preventSessionsForUser()
#1 /var/www/html/mediawiki/includes/user/User.php(886): MediaWiki\Session\SessionManager->preventSessionsForUser()
#2 /var/www/html/mediawiki/extensions/AbuseFilter/includes/FilterUser.php(57): MediaWiki\User\User::newSystemUser()
#3 /var/www/html/mediawiki/extensions/AbuseFilter/includes/FilterUser.php(48): MediaWiki\Extension\AbuseFilter\FilterUser->getUser()
#4 /var/www/html/mediawiki/extensions/AbuseFilter/maintenance/NormalizeThrottleParameters.php(151): MediaWiki\Extension\AbuseFilter\FilterUser->getUserIdentity()
#5 /var/www/html/mediawiki/extensions/AbuseFilter/maintenance/NormalizeThrottleParameters.php(484): MediaWiki\Extension\AbuseFilter\Maintenance\NormalizeThrottleParameters->normalizeParameters()
#6 /var/www/html/mediawiki/maintenance/includes/LoggedUpdateMaintenance.php(49): MediaWiki\Extension\AbuseFilter\Maintenance\NormalizeThrottleParameters->doDBUpdates()
#7 /var/www/html/mediawiki/maintenance/update.php(197): LoggedUpdateMaintenance->execute()
#8 /var/www/html/mediawiki/maintenance/includes/MaintenanceRunner.php(703): UpdateMediaWiki->execute()
#9 /var/www/html/mediawiki/maintenance/doMaintenance.php(100): MediaWiki\Maintenance\MaintenanceRunner->run()
#10 /var/www/html/mediawiki/maintenance/update.php(298): require_once('/var/www/html/m...')
#11 {main}
PHP Notice: Uncommitted DB writes (transaction from MediaWiki\Extension\AbuseFilter\Maintenance\NormalizeThrottleParameters::doDBUpdates) in /var/www/html/mediawiki/includes/libs/rdbms/database/TransactionManager.php on line 586
PHP Notice: DB transaction writes or callbacks still pending (MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::providerChangeAuthenticationData, MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::providerChangeAuthenticationData, MediaWiki\User\User::saveSettings, MediaWiki\User\User::saveSettings, MediaWiki\User\User::clearSharedCache) in /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php on line 3344
My ldap.json:
1 {
"internet.adress": {
¦ "connection": {
¦ ¦ "server": "First-Domain-Controller",
¦ ¦ "port": "389",
¦ ¦ "user": "CN=firstUser,OU=Device-User,OU=Benutzer,Some=SomeUser,One=OneUser",
¦ ¦ "pass": "SomeChars",
¦ ¦ "enctype": "clear",
¦ ¦ "options": {
¦ ¦ ¦ "LDAP_OPT_DEREF": 1
¦ ¦ },
¦ ¦ "basedn": "Some=SomeUser, One=OneUser",
¦ ¦ "userbasedn": "OU=Benutzer,Some=SomeUser,One=OneUser",
¦ ¦ "groupbasedn": "OU=SafetyGroups,Some=SomeUser,One=OneUser",
¦ ¦ "searchattribute": "samaccountname",
¦ ¦ "usernameattribute": "samaccountname",
¦ ¦ "realnameattribute": "cn",
¦ ¦ "emailattribute": "mail",
¦ ¦ "grouprequest": "MediaWiki\\Extension\\LDAPProvider\\UserGroupsRequest\\UserMemberOf::factory",
¦ ¦ "presearchusernamemodifiers": [ "spacestounderscores", "lowercase" ],
¦ ¦ "SyncMechanismRegistry": {
¦ ¦ ¦ ¦ "mappedgroups": "MediaWiki\\Extension\\LDAPGroups\\SyncMechanism\\MappedGroups::factory",
¦ ¦ ¦ ¦ ¦ "allgroups": "MediaWiki\\Extension\\LDAPGroups\\SyncMechanism\\AllGroups::factory"
¦ ¦ }
¦ },
¦ "userinfo": [],
¦ "authorization": []
}
}
For more Information just ask.
Greetings MSchmitt0815 (talk) 13:34, 16 April 2024 (UTC)
- Which exact MediaWiki version? Which exact version of which exact extension related to LDAP? Malyacko (talk) 13:37, 16 April 2024 (UTC)
- MediaWiki Version: 1.41
- The Extension would be LDAPAuthentication2 Version: 1.39 and LDAPProvider Version: 1.39 MSchmitt0815 (talk) 14:14, 16 April 2024 (UTC)
- Thanks for the fast reply!!! MSchmitt0815 (talk) 14:14, 16 April 2024 (UTC)
- The error message
Found invalid JSON in file: /var/www/html/ldap.jsonindicates a syntax error in the file/var/www/html/ldap.json. Try using a tool likejsonlintor use a code editor with syntax-checker like VSCode to compose the file. - I did this with the snippet you provided above:
{ "internet.adress": { "connection": { "server": "First-Domain-Controller", "port": "389", "user": "CN=firstUser,OU=Device-User,OU=Benutzer,Some=SomeUser,One=OneUser", "pass": "SomeChars", "enctype": "clear", "options": { "LDAP_OPT_DEREF": 1 }, "basedn": "Some=SomeUser, One=OneUser", "userbasedn": "OU=Benutzer,Some=SomeUser,One=OneUser", "groupbasedn": "OU=SafetyGroups,Some=SomeUser,One=OneUser", "searchattribute": "samaccountname", "usernameattribute": "samaccountname", "realnameattribute": "cn", "emailattribute": "mail", "grouprequest": "MediaWiki\\Extension\\LDAPProvider\\UserGroupsRequest\\UserMemberOf::factory", "presearchusernamemodifiers": [ "spacestounderscores", "lowercase" ], "SyncMechanismRegistry": { "mappedgroups": "MediaWiki\\Extension\\LDAPGroups\\SyncMechanism\\MappedGroups::factory", "allgroups": "MediaWiki\\Extension\\LDAPGroups\\SyncMechanism\\AllGroups::factory" } }, "userinfo": [], "authorization": [] } }
- Be aware that
SyncMechanismRegistryis not a valid key in this config. It is a global variable configuration$LDAPGroupsSyncMechanismRegistryand I don't think you need to set it at all. Osnard (talk) 05:59, 17 April 2024 (UTC) - Good Morning,
- i copied your snippet and fitted it for my need in extension to that i use jsonlint. And my Json file seems correct. I tried some more config variations and nothing seems to work.
- Do you got another hint or direction which i can try/go?
- Greetings and big Thanks MSchmitt0815 (talk) 06:03, 29 April 2024 (UTC)
- Ps: Do you need additional information? MSchmitt0815 (talk) 06:04, 29 April 2024 (UTC)
- Does it still tell you
Found invalid JSON in file:...? If so, check if the webserver user can read the file. Osnard (talk) 06:35, 29 April 2024 (UTC) - Good Evening,
- after a good day of work i finally got it workin. Many thanks for your help.
- The User wasnt allowed to read, so i made him.
- I had to use a bit of a modification of your config file to get it running. It is now possible to login localy, but otherwise not.
- When i run the CheckLogin.php script it promptly says ‘FAILED’. When I try to login it says to me that the username or password is incorrect and i should try it again.
- When i run ShowUserInfo.php with which i want to login:
- cn => someuser
- distinguishedname => CN=someuser,OU=Some-User,OU=User,DC=pko,DC=ac
- displayname => someuser
- name => someuser
- samaccountname => someuser
- userprincipalname => someuser@address
- objectcategory => CN=Person,CN=Schema,CN=Configuration,DC=Thin,DC=Other
- dn => CN=someuser,OU=Some-User,OU=Benutzer,DC=Thin,DC=Other
- And i still get the Error when running maintenance/update.php script
- BadMethodCallException from line 506 of /var/www/html/mediawiki/includes/session/SessionProvider.php: MediaWiki\Session\SessionProvider::preventSessionsForUser must be implemented when canChangeUser() is false
- If additional information is needed i am happy to supply.
- Thanks for all your much needed help!!!
- In regards MSchmitt0815 (talk) 13:21, 29 April 2024 (UTC)
- Try setting
$wgPluggableAuth_EnableLocalLogin = true;. At least in CLI context (https://www.php.net/manual/en/reserved.constants.php#constant.php-sapi) Osnard (talk) 06:09, 2 May 2024 (UTC)
Url Duplicated When Save Changes.
I have my Wikipedia, in url
http://guru-praia.miwikipedia.com/gurupraia
When i editing any article, and clic save, the page go to:
http:guru-praia.miwikipedia.com/gurupraia/guru-praia.miwikipedia.com/gurupraia
and obviously:
Not Found
The requested URL was not found on this server.
Somebody knows whats could happening? Sergiobetween (talk) 14:15, 16 April 2024 (UTC)
- $wgArticlePath, $wgServer or $wgScriptPath (or all of them) are probably set to the wrong value.
- Another possibility is incorrect rewrite rules config. Bawolff (talk) 15:41, 16 April 2024 (UTC)
- I have not this $wgArticlePath variable.
- $wgServer = "guru-praia.miwikipedia.com"; (I have a domain for this server).
- $wgScriptPath I have not this variable neither.
- I will check the function of all of them. Sergiobetween (talk) 16:00, 16 April 2024 (UTC)
- $wgServer should start with http:// or https:// (e.g. $wgServer = "http://guru-praia.miwikipedia.com" )
- $wgArticlePath/$wgScriptPath do have defaults if you don't set them that might be fine for your use case. Bawolff (talk) 18:26, 16 April 2024 (UTC)
Is it possible to delete my account ?
Hello, I want my account to be deleted. Thanks. Anthonypauwels14 (talk) 16:34, 16 April 2024 (UTC)
Lua error in Module:Citation/CS1/Configuration at line 2058: attempt to index field '?' (a nil value).
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello everyone!
We are running our wiki, mediawiki version 1.42.0-wmf.23, PHP 8.1.2-1ubuntu2.14 (fpm-fcgi), MariaDB 10.6.16-MariaDB-0ubuntu0.22.04.1-log.
Lately when we import any article that contains citations such as { { cite book } , { { cite journal } } etc.. for example it contains a line like the following "{ { cite book | title = test book } }",
Instead of displaying "test book" it generates a lua error :
Lua error in Module:Citation/CS1/Configuration at line 2058: attempt to index field '?' (a nil value).
Backtrace:
- Module:Citation/CS1/Configuration:2058: in function "init"
- package.lua:103: ?
- (tail call): ?
- mw.lua:496: in function "executeModule"
- mw.lua:768: in function "loadData"
- Module:Citation/CS1:4394: in function "chunk"
- mw.lua:527: ?
- [C]: ?
We have been using mediawiki for more than 6 months and this issue only happened in past month.
I appreciate any guidance to identify the problem and solve it. Zied dhf (talk) 10:06, 17 April 2024 (UTC)
- You need to install Extension:JsonConfig and import also data from Commons or modify module to not use them or disable some of its features.
- As I can see in phab:T362754 it is resolved now. wargo (talk) 10:28, 17 April 2024 (UTC)
- Solved it by configuring the JsonConfig extension to support wikimedia templates :
- Extension:JsonConfig#:~:text=Supporting Wikimedia templates Zied dhf (talk) 10:28, 17 April 2024 (UTC)
- Thanks a lot Wargo! Zied dhf (talk) 10:29, 17 April 2024 (UTC)
Shout Wiki Version Update
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
The Wiki as I have already talked about Shout Wiki I actually exactly not know that the founder of wiki should update wiki version or it can be done with MW Shout Wiki was just emerging wiki host but due to their own founder and staffs became inactive so I would know what should be done now. Xaloria (talk) 15:04, 17 April 2024 (UTC)
- You would have to take that up with ShoutWiki admins. Bawolff (talk) 18:08, 17 April 2024 (UTC)
- There is no single admin active or Stewards or Staff none is active that's why I am asking here for a way. Xaloria (talk) 02:38, 18 April 2024 (UTC)
- We have no control over shoutwiki. Bawolff (talk) 04:08, 18 April 2024 (UTC)
- ShoutWiki is very much around and we're not going anywhere. If you have questions about the upgrade schedule, please post those on the ShoutWiki Community Forum. Thanks! Jack Phoenix (Contact) 16:15, 18 April 2024 (UTC)
update.php 1.39.6
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.
Done. Migration failed for 9 row(s).
Very cool error message. Everything is absolutely clear at the first glance.
scnr 2003:C2:3F21:FD00:3D09:AB7B:5AC9:BD09 (talk) 15:28, 17 April 2024 (UTC)
- Nice backtrace but it does not show what's the problem. How can i find out which component is wrong? 2003:C2:3F21:FD00:3D09:AB7B:5AC9:BD09 (talk) 16:05, 17 April 2024 (UTC)
[error] [ba7e546ea33fc2ecb983341e] /wiki/Hauptseite PHP Unknown error: Cannot access non-public property Parser::$mOutp ut #0 [internal function]: MWExceptionHandler::handleError() #1 /var/www/test/mediawiki/includes/debug/DeprecationHelper.php(202): trigger_error() #2 /var/www/test/mediawiki/extensions/ParserFunctions/includes/ParserFunctions.php(388): Parser->__get() #3 /var/www/test/mediawiki/extensions/ParserFunctions/includes/ParserFunctions.php(414): MediaWiki\Extensions\ParserFunct ions\ParserFunctions::ifexistInternal() #4 /var/www/test/mediawiki/includes/parser/Parser.php(3437): MediaWiki\Extensions\ParserFunctions\ParserFunctions::ifexis t() #5 /var/www/test/mediawiki/includes/parser/Parser.php(3122): Parser->callParserFunction() #6 /var/www/test/mediawiki/includes/parser/PPFrame_Hash.php(275): Parser->braceSubstitution() #7 /var/www/test/mediawiki/includes/parser/Parser.php(3313): PPFrame_Hash->expand() #8 /var/www/test/mediawiki/includes/parser/PPFrame_Hash.php(275): Parser->braceSubstitution() #9 /var/www/test/mediawiki/includes/parser/Parser.php(3030): PPFrame_Hash->expand() #10 /var/www/test/mediawiki/includes/parser/PPFrame_Hash.php(275): Parser->braceSubstitution() #11 /var/www/test/mediawiki/includes/parser/Parser.php(3313): PPFrame_Hash->expand() #12 /var/www/test/mediawiki/includes/parser/PPFrame_Hash.php(275): Parser->braceSubstitution() #13 /var/www/test/mediawiki/includes/parser/PPTemplateFrame_Hash.php(97): PPFrame_Hash->expand() #14 /var/www/test/mediawiki/includes/parser/Parser.php(3310): PPTemplateFrame_Hash->cachedExpand() #15 /var/www/test/mediawiki/includes/parser/PPFrame_Hash.php(275): Parser->braceSubstitution() #16 /var/www/test/mediawiki/includes/parser/PPTemplateFrame_Hash.php(97): PPFrame_Hash->expand() #17 /var/www/test/mediawiki/includes/parser/Parser.php(3310): PPTemplateFrame_Hash->cachedExpand() #18 /var/www/test/mediawiki/includes/parser/PPFrame_Hash.php(275): Parser->braceSubstitution() #19 /var/www/test/mediawiki/includes/parser/Parser.php(2951): PPFrame_Hash->expand() #20 /var/www/test/mediawiki/includes/parser/Parser.php(1609): Parser->replaceVariables() #21 /var/www/test/mediawiki/includes/parser/Parser.php(723): Parser->internalParse() #22 /var/www/test/mediawiki/includes/content/WikitextContentHandler.php(301): Parser->parse() #23 /var/www/test/mediawiki/includes/content/ContentHandler.php(1721): WikitextContentHandler->fillParserOutput() #24 /var/www/test/mediawiki/includes/content/Renderer/ContentRenderer.php(47): ContentHandler->getParserOutput() #25 /var/www/test/mediawiki/includes/Revision/RenderedRevision.php(266): MediaWiki\Content\Renderer\ContentRenderer->getParserOutput() #26 /var/www/test/mediawiki/includes/Revision/RenderedRevision.php(237): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached() #27 /var/www/test/mediawiki/includes/Revision/RevisionRenderer.php(221): MediaWiki\Revision\RenderedRevision->getSlotParserOutput() #28 /var/www/test/mediawiki/includes/Revision/RevisionRenderer.php(158): MediaWiki\Revision\RevisionRenderer->combineSlotOutput() #29 [internal function]: MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}() #30 /var/www/test/mediawiki/includes/Revision/RenderedRevision.php(199): call_user_func() #31 /var/www/test/mediawiki/includes/poolcounter/PoolWorkArticleView.php(91): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput() #32 /var/www/test/mediawiki/includes/poolcounter/PoolWorkArticleViewCurrent.php(97): PoolWorkArticleView->renderRevision() #33 /var/www/test/mediawiki/includes/poolcounter/PoolCounterWork.php(162): PoolWorkArticleViewCurrent->doWork() #34 /var/www/test/mediawiki/includes/page/ParserOutputAccess.php(299): PoolCounterWork->execute() #35 /var/www/test/mediawiki/includes/page/Article.php(714): MediaWiki\Page\ParserOutputAccess->getParserOutput() #36 /var/www/test/mediawiki/includes/page/Article.php(528): Article->generateContentOutput() #37 /var/www/test/mediawiki/includes/actions/ViewAction.php(78): Article->view() #38 /var/www/test/mediawiki/includes/MediaWiki.php(542): ViewAction->show() #39 /var/www/test/mediawiki/includes/MediaWiki.php(322): MediaWiki->performAction() #40 /var/www/test/mediawiki/includes/MediaWiki.php(904): MediaWiki->performRequest() #41 /var/www/test/mediawiki/includes/MediaWiki.php(562): MediaWiki->main() #42 /var/www/test/mediawiki/index.php(50): MediaWiki->run() #43 /var/www/test/mediawiki/index.php(46): wfIndexMain() #44 {main} [exception] [ba7e546ea33fc2ecb983341e] /wiki/Hauptseite PHP Fatal Error from line 202 of /var/www/test/mediawiki/includes/debug/DeprecationHelper.php: Cannot access non-public property Parser::$mOutput #0 [internal function]: MWExceptionHandler::handleFatalError() #1 {main} [session] Saving all sessions on shutdown - Do you have the correct version of Extension:ParserFunctions for your version of MediaWiki. Bawolff (talk) 17:29, 17 April 2024 (UTC)
- Huh ...! No it's been the wrong version. Sorry for that. I thought ParserFunctions is part of the Mediawiki installation bundle.
- Solved, thank you very much! 2003:C2:3F21:FD00:3D09:AB7B:5AC9:BD09 (talk) 17:48, 17 April 2024 (UTC)
- It normally is, but there are different bundles you can get some of which don't include extensions. Bawolff (talk) 18:07, 17 April 2024 (UTC)
K8s deploying old image
Hello,
I'm deploying the bitnami/mediawiki via Kubernetes. I am noticing issues in which I deploy an image that has an error, i fix the error and push a new image, my updated deployment will call that new image, but still reference the prior error.
For example, I misconfigured OIDC Connect Extension and so the depoyment failed. I created a new image and removed OIDC Extension in order to start fresh, and when I deploy the new image, it still references the previous OIDC Error even though this new image has no reference to that extension. Does mediawiki have a caching mechanism that would prevent K8s from deploying the new image? Waterlooglass (talk) 18:56, 17 April 2024 (UTC)
- We are not familiar with the bitnami package, so it is hard to advise about it.
- MediaWiki does extensive caching. If your server does not expunge its in-memory caches, or if you use a CDN and you are not logged in, then it might be possible you see some sort of cached state.
- What is the error you are seeing ? —TheDJ (Not WMF) (talk • contribs) 19:12, 17 April 2024 (UTC)
- Here is the error, I am assuming you are correct in that it is a caching issue. Is it possible that the old images are stored in my PVC mount? somehow? the OIDCConnect Extension is not loaded on the new image I have deployed, nor am I calling it anywhere within that image.
- Error: The OIDCConnect extension cannot be loaded. Check that all of its files are installed properly.
#0 /opt/bitnami/mediawiki/includes/GlobalFunctions.php(54): ExtensionRegistry->queue()#1 /bitnami/mediawiki/LocalSettings.php(158): wfLoadExtension()#2 /opt/bitnami/mediawiki/includes/Setup.php(212): require_once('...')#3 /opt/bitnami/mediawiki/maintenance/doMaintenance.php(83): require_once('...')#4 /opt/bitnami/mediawiki/maintenance/update.php(298): require_once('...')#5 {main}Waterlooglass (talk) 19:42, 17 April 2024 (UTC)[17-Apr-2024 19:35:01 UTC] PHP Fatal error: Error Loading extension. Unable to open file /opt/bitnami/mediawiki/extensions/OIDCConnect/extension.json: filemtime(): stat failed for /opt/bitnami/mediawiki/extensions/OIDCConnect/extension.json in /opt/bitnami/mediawiki/includes/registration/MissingExtensionException.php on line 100- This sounds like your LocalSettings.php is still attempting to load in the extension you removed. —TheDJ (Not WMF) (talk • contribs) 21:00, 17 April 2024 (UTC)
'Background' code is not supported
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
After moving our site to another server, a problem occurred. If a page of the site has 'background' code, it is now not possible to edit that page. This error occurs:
'403 Forbidden Access to this resource on the server is denied!'
https://sheki.org/wiki/index.php?title=%C5%9Eablon:15_aprel&action=submit
But after deleting the "background" code on that page, everything is fine. How to solve this problem? Шариф Ахмет (talk) 06:21, 18 April 2024 (UTC)
- Judging by some quick googling, it sounds like a problem with
mod_security(no surprise there...). Try disabling it or if you don't have the access to do that, contact your hosting company to do so. Jack Phoenix (Contact) 16:13, 18 April 2024 (UTC) - Thanks. Problem solved. Шариф Ахмет (talk) 20:18, 18 April 2024 (UTC)
Popups/TextExtracts 1.39
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.
Please have a look: Extension talk:TextExtracts#h-Popups/TextExtracts_1.39-20240418091500
Or shall i better post the question here. 2003:C2:3F21:FD00:A1BE:8BA5:2092:924F (talk) 09:19, 18 April 2024 (UTC)
- Topic can be closed, wrong place. See Extension talk:Popups/2024#h-Popups_behaviour_changed_between_1.36_and_1.39-20240422201900 instead. 2003:C2:3F21:FD00:134:BD68:4409:6542 (talk) 10:07, 23 April 2024 (UTC)
Upload file size limited to 2 MB
I have set the maximum upload file size to 150M as well as my post max size.
This is what my site configuration of the web server says:
php_value upload_max_filesize 150M
php_value post_max_size 150M
In my LocalSettings.php I set
$wgMaxUploadSize = 150*1024*1024;
But the wiki still shows me a file upload maximum size of 2 MB. Am I missing something? Ablum010777 (talk) 10:02, 18 April 2024 (UTC)
- Create a php file containing only
<?php phpinfo();- And browse to it to verify your settings are what you think they are. Bawolff (talk) 06:40, 22 April 2024 (UTC)
- The problem is solved. PHP-FPM has a separate php.ini-file, and I had to adjust the Upload_max_filesize and the post_max_size. Now it works.
- The ini-file is located at /etc/php/8.1/fpm. Ablum010777 (talk) 06:46, 22 April 2024 (UTC)
1.39.6 function numRows missing
According to Manual:Database.php#Functions, we use the following code (extract):
$dbr = wfGetDB( DB_REPLICA ); $res = $dbr->query( ... some DB Query ... ); .... $dbr->numRows( $res ) ....
But we get:
Error: Call to undefined method Wikimedia\Rdbms\DatabaseMysqli::numRows()
Backtrace:
from /var/www/test/mediawiki/includes/libs/rdbms/database/DBConnRef.php(103)
- 0 /var/www/test/mediawiki/extensions/PPcheckRedirects/SpecialPPcheckRedirects.class.php(118): Wikimedia\Rdbms\DBConnRef->__call()
- 1 /var/www/test/mediawiki/includes/specialpage/SpecialPage.php(701): SpecialPPcheckRedirects->execute()
- 2 /var/www/test/mediawiki/includes/specialpage/SpecialPageFactory.php(1428): SpecialPage->run()
- 3 /var/www/test/mediawiki/includes/MediaWiki.php(316): MediaWiki\SpecialPage\SpecialPageFactory->executePath()
- 4 /var/www/test/mediawiki/includes/MediaWiki.php(904): MediaWiki->performRequest()
- 5 /var/www/test/mediawiki/includes/MediaWiki.php(562): MediaWiki->main()
- 6 /var/www/test/mediawiki/index.php(50): MediaWiki->run()
- 7 /var/www/test/mediawiki/index.php(46): wfIndexMain()
- 8 {main}
Prior to 1.39, the above code worked. Could this be an installation problem or has there been an undocumented redesign of the db access objects? 2003:C2:3F21:FD00:A1BE:8BA5:2092:924F (talk) 10:08, 18 April 2024 (UTC)
- per the Release-notes file included with 1.39, numRows was removed [1]
- Use $res->numRows() instead. Bawolff (talk) 08:27, 19 April 2024 (UTC)
- And in general, you will want to rewrite it to use the new query builders Manual:Database access#SelectQueryBuilder going forward. —TheDJ (Not WMF) (talk • contribs) 09:43, 19 April 2024 (UTC)
- $res->numRows, that was the piece of information I have been missing and wasn't able to find. Just to be sure: same problem with $dbr->freeResult, but there's no replacement ... right?
- Works fine now, thank you.
- @TheDJ no, I really don't want to. Non-voluntary. These are the sort of "improvements" that make Mediawiki worse, not better. I know someday I must but that's nothing I am looking forward to. I've seen many "closed circles" of software developers drifting away to outer space, your companions are en route. Honestly: we only stick to Mediawiki because there's no alternative. 2003:C2:3F21:FD00:89BA:CA55:9F1B:EC5A (talk) 14:46, 19 April 2024 (UTC)
- No problem, we are only providing the software as a courtesy, without guarantee. Everyone is free to use whatever they want. Thank you for supporting free and opensource software. —TheDJ (Not WMF) (talk • contribs) 10:11, 20 April 2024 (UTC)
- freeResult() basically didn't do anything, so i wouldn't worry about it. Resources will automatically be freed when the variable falls out of scope.
- $res does have a ->free() method that is equivalent, its just kind of pointless.
- See https://doc.wikimedia.org/mediawiki-core/master/php/interfaceWikimedia_1_1Rdbms_1_1IResultWrapper.html#a7af97691969ee08d6f19e333a613b204 for list of methods of $res Bawolff (talk) 15:17, 19 April 2024 (UTC)
- Thank you for your patience. 2003:C2:3F21:FD00:89BA:CA55:9F1B:EC5A (talk) 17:59, 19 April 2024 (UTC)
1.39 Special Page extensions
Some of our own extensions are based on existing special pages. According to Mediawiki programming gudelines, the code looks like this:
class WantedPagesNeo extends WantedPagesPage {
function __construct( $name = 'WantedPages_(PR_Neo)' ) {
parent::__construct( $name );
}
...
Prior to 1.39, this used to work but now it crashes:
[739319141d78cf5548ef724f] /wiki/Spezial:Spezialseiten TypeError: Argument 1 passed to WantedPagesPage::__construct() must implement interface Wikimedia\Rdbms\ILoadBalancer, string given, called in /var/www/test/mediawiki/extensions/PPaddons/src/SpecialPages/WantedPagesNeo.php on line 26
Backtrace:
from /var/www/test/mediawiki/includes/specials/SpecialWantedpages.php(39)
- 0 /var/www/test/mediawiki/extensions/PPaddons/src/SpecialPages/WantedPagesNeo.php(26): WantedPagesPage->__construct()
- 1 /var/www/test/mediawiki/vendor/wikimedia/object-factory/src/ObjectFactory.php(247): PP\SpecialPages\WantedPagesNeo->__construct()
- 2 /var/www/test/mediawiki/vendor/wikimedia/object-factory/src/ObjectFactory.php(152): Wikimedia\ObjectFactory\ObjectFactory::getObjectFromSpec()
- 3 /var/www/test/mediawiki/includes/specialpage/SpecialPageFactory.php(1279): Wikimedia\ObjectFactory\ObjectFactory->createObject()
- 4 /var/www/test/mediawiki/includes/specialpage/SpecialPageFactory.php(1314): MediaWiki\SpecialPage\SpecialPageFactory->getPage()
- 5 /var/www/test/mediawiki/includes/specials/SpecialSpecialpages.php(53): MediaWiki\SpecialPage\SpecialPageFactory->getUsablePages()
- 6 /var/www/test/mediawiki/includes/specials/SpecialSpecialpages.php(42): SpecialSpecialpages->getPageGroups()
- 7 /var/www/test/mediawiki/includes/specialpage/SpecialPage.php(701): SpecialSpecialpages->execute()
- 8 /var/www/test/mediawiki/includes/specialpage/SpecialPageFactory.php(1428): SpecialPage->run()
- 9 /var/www/test/mediawiki/includes/MediaWiki.php(316): MediaWiki\SpecialPage\SpecialPageFactory->executePath()
- 10 /var/www/test/mediawiki/includes/MediaWiki.php(904): MediaWiki->performRequest()
- 11 /var/www/test/mediawiki/includes/MediaWiki.php(562): MediaWiki->main()
- 12 /var/www/test/mediawiki/index.php(50): MediaWiki->run()
- 13 /var/www/test/mediawiki/index.php(46): wfIndexMain()
- 14 {main}
What does it mean and where can I find documentation on how to correct it? 2003:C2:3F21:FD00:D130:B302:B1E3:AC4 (talk) 14:24, 18 April 2024 (UTC)
- This is a Dependency Injection (DI) related issue.
- If you look at the source code of
SpecialWantedpages.phpas ofREL1_39, you'll notice that the constructor's function signature has changed. These kind of changes are all over the place and will be in the future as well. Honestly, it's a mess. - Anyway, try changing your code to something like this, maybe:
function __construct() { WantedQueryPage::__construct( 'WantedPages_(PR_Neo)' ); }- This may or may not work (also, I should note that the use of parentheses in a special page name like that is quite unusual). Having access to the actual code would aid in debugging.
- Someone who understand's MW's DI and its current state can probably chime in and explain it more and better. Jack Phoenix (Contact) 16:10, 18 April 2024 (UTC)
- You need to pass the correct arguments to parent::__construct(). This can change between versions.
- You can adjust your special page registration in extension.json to match what WantedQuery does so it gets the same arguments, which you could just pass on. Alternatively you can use the methods of MediaWiki\MediaWikiServices::getInstance() to get the relavent objects.
- > According to Mediawiki programming gudelines, the code looks like this
- When you say guidelines, is there a specific page you are referencing? I'm asking because if there is incorrect information somewhere i would like to correct it. Bawolff (talk) 08:22, 19 April 2024 (UTC)
- Seems the signature was accidentally/deliberately changed/broken in REL1_36 https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/ab4d80512c2d5c6d028e885fd66c85f2e6096d14%5E%21/#F1. Probably because people assumed it was unused.
- The documentation talks about a special page implementation subclassing the generic SpecialPage class, it is not a general example on how to do that for every single imaginable special page class. The best way to implement this tight now, is to, after calling the parent constructor, set $this->mName directly. This is how core classes like SpecialPrefixIndex.php do it. —TheDJ (Not WMF) (talk • contribs) 09:31, 19 April 2024 (UTC)
- @Jack Phoenix Thank you for the basic information. Unfortunately your suggested modification won't work. It results in "InvalidArgumentException: Provided specification is not an array"
- Documentation in Manual:Special pages states "it generally means that MediaWiki could not find the class specified in extension.json that implements your special page" but in this case it is not true. If I replace the class's sourcecode by some other code, it works.
- I'll try following the other hints supplied by Bawolff and TheDJ. 2003:C2:3F21:FD00:682B:745E:5DA7:60C2 (talk) 12:53, 20 April 2024 (UTC)
- @Bawolff I'll try MediaWikiServices::getInstance() next and I'll report.
- The referred extension was written by one of our former members, no longer available. The subclassing and constructor calls match the guidelines documented at Manual:Special pages:
- Constructor signature is described underneath the topic SpecialPage.php.
- I admit, this is the constructor used when subclassing from SpecialPage class. But, some paragraphs above "The special page" I read:I think the last sentence is outdated. 2003:C2:3F21:FD00:682B:745E:5DA7:60C2 (talk) 13:06, 20 April 2024 (UTC)
The body file (MyExtension/src/Special.php) should contain a subclass of SpecialPage or one of its subclasses. This file loads automatically when someone requests the special page. The example below implements the subclass SpecialMyExtension. You need the __construct() constructor because its first parameter names your special page.
- @TheDJ I think it was the proposition "subclass of SpecialPage or one of its subclasses" that lead to the subclassing of WantedPagesPage. This practice allows to make a simple query modification instead of copying all the code.
- I'll try following your hints and then report again. 2003:C2:3F21:FD00:682B:745E:5DA7:60C2 (talk) 13:17, 20 April 2024 (UTC)
- The constructor works but now the db query hangs forever. Probably there are further modifications within WantedPagesPage that knock out this extension.
function __construct( $name = 'PPwantedPagesNeo' ) { $services = MediaWikiServices::getInstance(); parent::__construct( $services->getDBLoadBalancer(), $services->getLinkBatchFactory() ); $this->mName = $name; } - I'll give up here. I already spent 7-8 hours examining and that's not worth it.
- Lesson learned ... never write own extensions, they'll be broken one day. Anyway, thanks for your patience. 2003:C2:3F21:FD00:682B:745E:5DA7:60C2 (talk) 14:41, 20 April 2024 (UTC)
moving data from old version to new version
We have a new server where we are installing MediaWiki version 1.41.1. We also have an older version 1.34. We need to bring the data from the old version to the new version. What would be the best method for this? Would exporting the pages from the old version & importing them to the new version be a good solution? LouiseCooke1 (talk) 01:37, 19 April 2024 (UTC)
- what os are you installing this on? Docwikinoob (talk) 18:21, 19 April 2024 (UTC)
- If its a new server, the best method would be copying the database and LocalSettings.php over (and images, and maybe extensions) and follow the steps at Upgrading.
- I do not think it matters what OS. Bawolff (talk) 06:38, 22 April 2024 (UTC)
findMissingFiles.php ..., what to do then?
When running findMissingFiles.php, I get a few files for which there is a database record but no image in the mediawiki/images directory. But what to do next? What I am missing is some documentation or hint of how to get rid of those database entries. 2003:C2:3F21:FD00:89BA:CA55:9F1B:EC5A (talk) 14:16, 19 April 2024 (UTC)
- Are they causing problems? Why do you want to get rid of them?
- Does deleting them in the web interface work? Bawolff (talk) 06:36, 22 April 2024 (UTC)
- There are 18 images affected. When viewing the File:xxx pages of those images, I can see that in each case one of the history entries is missing the image, instead showing an error message. "Fehler beim Erstellen des Vorschaubildes: Datei fehlt" / error creating thumbnail: file not found
- So far so good, in each case there is a newer image.
- I just wondered whether I could get rid of the empty history entries in the revision table. 2003:C2:3F21:FD00:868:7B3F:C172:66A3 (talk) 19:38, 22 April 2024 (UTC)
Migrate Images
Hi all,
I have two related questions:
My images are being stored in the default folder on mediawiki, and I'm deployed on kubernetes and leveraging a PVC. Is there a way to migrate those images to AWS S3 without causing any breaking changes
or
Is there a way to utilize a second PVC for only images? Waterlooglass (talk) 16:08, 19 April 2024 (UTC)
- Maybe you are looking for Extension:AWS Bawolff (talk) 06:35, 22 April 2024 (UTC)
MediaWiki installing Error
Hello please can somone help me out I am in search of help since 10 days back what is this support for please can somone help me out of this is the problem. I am facing this problem while installation.
MediaWiki 1.41 internal error
Installing some PHP extensions is required.
Required components
You are missing a required extension to PHP that MediaWiki requires to run. Please install:
- You have to install php-intl. how to do this depends on your operating system, the distribution of your operating system and how you installed php. It is not Mediawiki specific, but it is a prerequisite for Mediawiki. —TheDJ (Not WMF) (talk • contribs) 10:07, 20 April 2024 (UTC)
- How do i install it If it is not MediaWiki specific what is MediaWiki for who should I consult If you don't wanna help it is ok. Xaloria (talk) 10:34, 20 April 2024 (UTC)
- These are very elementary questions for information anyone is able to Google and find the answer to. These are essential skills for anyone running a server, so please do learn them. But this forum is unlikely to provide you with a course from scratch on how to run a computer server. Knowing how to run a server is a prerequisite to installing and using MediaWiki. —TheDJ (Not WMF) (talk • contribs) 10:55, 20 April 2024 (UTC)
- I am not getting help from Google so I asked here Sorry If I did this much big mistake by only asking help with MediaWiki for it's own installing problem. Xaloria (talk) 05:34, 21 April 2024 (UTC)
Internal links showing redirect destination, how to disable?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi all,
We've just upgraded our wikis from 1.35 to 1.39. I've noticed that internal links now behave differently.
Let's say we have a page containing a person's information: People/Patrul Rinpoche
We have some redirects setup for that page including the page: Patrul Rinpoche
Now when referencing that page on other pages, we'd like to just write: [[Patrul Rinpoche]] and have it stay that way, showing the link without the People/ part. But it automatically changes the text of the link to People/Patrul Rinpoche.
Any way to prevent that behavior?
Thanks in advance! Jeremi Plazas (talk) 11:49, 20 April 2024 (UTC)
- That's odd. That is not something mediawiki does. Do you have any extensions installed that might affect that. (E.g. maybe displaytitle extension might affect that, not sure) Bawolff (talk) 17:41, 20 April 2024 (UTC)
- Oh interesting. It happened recently, we assumed it was core but it was maybe one of the extension updates that did it. Thanks! Jeremi Plazas (talk) 09:36, 21 April 2024 (UTC)
- That worked for anyone who's wondering. The DisplayTitle extension ends up by default following the redirects for internal links. If you don't want this behavior, for 1.39 and up you need to set
$wgDisplayTitleFollowRedirects = false;
- Thanks for the help! Jeremi Plazas (talk) 09:12, 24 April 2024 (UTC)
Does anyone know how to align a template to the text?
I have a vertically shaped template on the left of my page, and I want the text on my page to fill the empty space on the right of my page. I don’t know if this is a very basic and stupid question, but I am sort of new to coding with MediaWiki. All help will be very appreciated, thank you. I’m pretty sure I’m using version 1.41.1 Tang Empire (talk) 18:26, 20 April 2024 (UTC)
- Probably you want to wrap it in <div style="float:left">...</div>
- see also https://developer.mozilla.org/en-US/docs/Web/CSS/float Bawolff (talk) 04:28, 21 April 2024 (UTC)
How to make infobox sections not appear if not filled?
I am using MediaWiki version 1.41.1, and I added a infobox template. My problem is, whenever a section is not filled with text, it will still appear but blank, (but I want it to be not visible completely). I have figured out a bit, but still cannot get the full picture. Here is a wiki page of mine for reference and code: Germany - Heterodontosaurus Balls (heterodontosaurus-balls.com)
All help is appreciated greatly ❤️ Tang Empire (talk) 04:13, 22 April 2024 (UTC)
- Probably you want the #if parser function. See help:Extension:ParserFunctions Bawolff (talk) 04:25, 23 April 2024 (UTC)
- thank you, but I have another problem now with this
- I applied the #if function to my bars in my infobox, but the bars do not disappear completely and is instead still visible in a tiny stripe.
- Template:CountryInfo - Heterodontosaurus Balls (heterodontosaurus-balls.com)
- is it a problem with the #if function or a problem with the infobox itself? Tang Empire (talk) 00:08, 24 April 2024 (UTC)
VW Porsche Tapiro
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.
Dear friends,
I´ve searched for the Tapiro from Italdesign long time.
I´ve found jsut 2 pictures from the interieur und nothing else.
Can you support me with my research?
BR,
CZ 84.21.34.169 (talk) 08:40, 22 April 2024 (UTC)
- No, as this forum is for questions about the MediaWiki software. Malyacko (talk) 09:26, 22 April 2024 (UTC)
Fatal error when clicking on notice: OOUI\Exception - Issue with Theme Singleton in MediaWiki
Hello, I am currently facing a fatal error when clicking on a notice in my MediaWiki site, and I am seeking some assistance in resolving it. The specific notice that triggers the error when i click on it is: "You just made a tenth edit. Thank you and keep up the good work."
The error message I receive is as follows:
"Fatal error: OOUI\Exception: OOUI\Theme::singleton was called with no singleton theme set. in /home/[your_directory]/public_html/[your_site_directory]/vendor/oojs/oojs-ui/php/Theme.php:31"
I have attempted to clear the cache and verify the integrity of the Theme.php and Tag.php files mentioned in the error message. However, these steps did not resolve the issue. I suspect that there might be a compatibility problem between the version of OOUI and my MediaWiki installation.
Has anyone else encountered this particular error when interacting with notices in MediaWiki? If so, I would greatly appreciate any insights or solutions you have discovered. Your guidance and suggestions would be immensely helpful in resolving this issue.
my mediawiki site is Netvibe World
Thank you kindly for your assistance!
Best regards,
Davis Wanyonyi Davisvawiz (talk) 14:38, 22 April 2024 (UTC)
- Check that all your extensions are correct version for your version of mediawiki Bawolff (talk) 04:24, 23 April 2024 (UTC)
- Thanks i managed to solve this by creating this php file
- <?php
- use OOUI\Theme;
- class CustomTheme extends Theme {
- public function __construct() {
- // Custom theme initialization code
- }
- // Implement any required methods for your custom theme
- }
- and adding this following code in the localSetting.php
- use OOUI\Theme;
- // Create a new theme instance
- require_once __DIR__ . '/skins/CustomTheme.php';
- $theme = new CustomTheme();
- // Set the theme as the singleton
- Theme::setSingleton($theme); Davisvawiz (talk) 11:47, 23 April 2024 (UTC)
Question about file types and user rights
Is there a way to assign the rights to upload different types based on the user group?
For example to let "user" can only upload .jpg while "sysop" can upload .jpg and .pdf
Can I do something like this in the LocalSettings.php? 89.108.148.55 (talk) 20:00, 22 April 2024 (UTC)
- You could maybe do it with extension:AbuseFilter Bawolff (talk) 04:23, 23 April 2024 (UTC)
- I was wondering the same but except for “defaultuser” to view webpages normally and “defaultadmin” to be able to edit the webpage after a login via a login Ul panel that if “defaultadmin” logs into, it puts it in a user action log and gives the permissions temporarily until the “defaultadmin” logs out or closes the webpage with a browser cookie to store the permissions until the browser (or webpage) is closed. 170.211.126.186 (talk) 18:20, 23 April 2024 (UTC)
DynamicPageList.php file not found
Hi, i'm trying to use DynamicPageList3 extension.
I've seen that I need to add the following line to the LocalSettings.php file :
require_once "$IP/extensions/DynamicPageList3/DynamicPageList.php";
The thing is that there is no file with that name in the DPL3 files.
Am I missing something ? Is the file useless ? Thanks in advance 2A01:CB06:B864:339A:857D:4503:5FF7:B41C (talk) 09:45, 23 April 2024 (UTC)
- This is probably caused by an update of the codebase. Try to change
require_once "$IP/extensions/DynamicPageList3/DynamicPageList.php";- into
wfLoadExtension( 'DynamicPageList3' );Osnard (talk) 13:14, 23 April 2024 (UTC)- oh ok i thought it was two different things but I already have it, thank you ;) 2A01:CB06:B864:339A:1D2C:26AD:FA18:BF9D (talk) 13:15, 23 April 2024 (UTC)
Transclude QueryPage
Hi, I am trying to transclude a special page created by Extension:HitCounters on a wiki's landing page. The page displays the most popular articles in the form of a QueryPage. I found a rather old discussion concerning ways to transclude additional special pages (Manual talk:Special pages#Make special page transcludable) but I don't know if this is applicable to a QueryPage. 134.34.7.73 (talk) 09:53, 23 April 2024 (UTC)
- You have to create a method in your special page called isIncludable that returns true. Bawolff (talk) 07:46, 25 April 2024 (UTC)
Error: Table 'flow_revision' doesn't exist in ContributionsQuery
How do i fix this
Deprecated: Caller from MediaWiki\Revision\RevisionStore::getRevisionSizes ignored an error originally raised from Flow\Formatter\ContributionsQuery::queryRevisions: [1146] Table 'path_wiki.flow_revision' doesn't exist in /home/path/public_html/mydomain.com/includes/debug/MWDebug.php on line 386 Davisvawiz (talk) 13:29, 23 April 2024 (UTC)
- Either disable the flow extension, or make sure that all its tables are created (presumably with update.php) Bawolff (talk) 19:25, 23 April 2024 (UTC)
- i removed the extension and the error was gone. Thank you! Davisvawiz (talk) 08:11, 24 April 2024 (UTC)
Can't query data from category using DynamicPageList3
Hi, I'm working with a form that sends its responses to individual pages, which are then categorized. I'm trying to retrieve these responses using DynamicPageList3 (DPL3), but I'm having trouble.
When I use the `{{#dpl ...}}` syntax to query the data, I don't get the expected results. Instead, I receive a message like "Template: DPL Extension," as if the DPL3 extension can't find or process my request properly.
I've checked that the names in the format parameter of my DPL3 query are the same as the property names in my form responses. I also made sure that DynamicPageList3 is installed correctly, and I've tried disabling cache results with $wgDplSettings['alwaysCacheResults'] = false;, but I'm still not getting the expected results. I don't know what else I can do to resolve this.
Could you help me understand why this might be happening and what I can do to fix it? Any advice on troubleshooting DPL3 issues or suggestions for resolving this problem would be appreciated.
Here is my query :
{{#dpl:
category=Liste Appui Assistance
exclude=Modèle:Appui Assistance
format=|%|Date|%||%|TraitePar|%||%|QualitéDuDemandeur|%||%|Organisme|%||%|Unité|%||%|Département|%||%|Problématique|%||%|Thématique|%||%|Cadre|%||%|ObjetDemandeRésumé|%||%|SuiviAfaire|%||%|TypeAppui|%||%|DelaiTraitement|%
mode=userformat}}
BotBernard (talk) 13:45, 23 April 2024 (UTC)
Thank you
I just wanted to say thank you for all the years you have been providing me/us/the community with so much valid information. I have been using Wikipedia for years to gain information on education, receive knowledge, no how, history, music artists, movie artists and so so much more. This is a brilliant site and I hope you continue all the hard work you put into this page, it is magnificent. I actually just read up on the Georgia Guidestones, very interesting article. Thank you, thank you, thank you for your information,. Blessings. Cindymetzdowey (talk) 18:34, 23 April 2024 (UTC)
Help with classes
Im creating a table, it has values and color associated with each value like:
{| class="wikitable"
| style="background-color:#fcff2f;" | 1
| style="background-color:#67fd9a;" | 2
| style="background-color:#34cdf9;" | 3
| style="background-color:#34cdf9;" | 3
| style="background-color:#67fd9a;" | 2
| style="background-color:#fcff2f;" | 1
| style="background-color:#fcff2f;" 1
| style="background-color:#34cdf9;" | 3
| style="background-color:#67fd9a;" | 2
|}
There is a way to create "macro" variables or something like that to store the style, so i can store color value and change it only one time. the way im doing now is changing manualy each value. im looking to a way like this:
variable yellow-> style="background-color:#fcff2f;"
variable green-> style="background-color:#67fd9a;"
variable blue-> style="background-color:#34cdf9;"
{| class="wikitable"
| yellow | 1
| green | 2
| blue | 3
etc...
|} 179.190.246.0 (talk) 02:07, 24 April 2024 (UTC)
- Help:TemplateStyles after installing that extension to define the CSS per class in one place. Malyacko (talk) 15:24, 24 April 2024 (UTC)
- You could maybe also use Templates Bawolff (talk) 07:43, 25 April 2024 (UTC)
download permission
I want to make it so that only logged-in users can download the files I uploaded on MediaWiki. How can I do that? Shb06202 (talk) 02:49, 24 April 2024 (UTC)
I would like to post an article that is to be checked, vetted , then posted as a due contribution to cryptography, encryption, and mathematics
Any african Americans interested in posting on this topic with content created prior to the year2020, January. I will be posting within the next 24. Hours in the event of an absence of contributors on this topic from the african american community.10:53 pm.2024 april. Marcus .a madison (talk) 05:53, 24 April 2024 (UTC)
- This is not a place for posting articles. —TheDJ (Not WMF) (talk • contribs) 09:00, 24 April 2024 (UTC)
Protect for admin only
Hello, i kindly request you to help me protect some of my pages like home page and privacy policy to be only editable by admins only. i used this code
$wgNamespaceProtection[NS_MAIN] = ['sysop'];
$wgGroupPermissions['sysop']['edit'] = false;
in my local setting php and it locked me for editing anything that is already in the site.
this code does not work either
$wgFlaggedRevsProtection = array('sysop' => true);
kindly help.
Rgds
Davis Wanyonyi Davisvawiz (talk) 09:20, 24 April 2024 (UTC)
- You'll want to look at Help:Protecting and unprotecting pages —TheDJ (Not WMF) (talk • contribs) 11:17, 24 April 2024 (UTC)
- Thank You!!!! Davisvawiz (talk) 11:48, 24 April 2024 (UTC)
Need Help with URL Customization: Eliminating /main_page Redirection and Designing a Wikipedia-style Dashboard on mydomain.com
Hello! Kindly help me customize the URL from 'mydomain.com/main_page' to 'mydomain.com' so that the home page does not redirect to 'main_page'. I would like to create a dashboard similar to Wikipedia on the home page. I have already used the code '$wgArticlePath = "/$1";' which helped customize the URLs, but the home page URL, which is supposed to be 'mydomain.com', is automatically redirecting to 'mydomain.com/main_page'. How can I modify the configuration to achieve the desired setup? Thank you! Davisvawiz (talk) 13:13, 24 April 2024 (UTC)
Moved MediaWiki to new servers and not displaying with errors
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I have moved the database and files to a new server and have tried to get Media Wiki working.
I get a blank page with the error pasted below.
MediaWiki internal error.
Original exception: [905b5c01c455a15057df55c8] / Wikimedia\Rdbms\DBQueryError: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading or after adding a new extension?
Please see https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Upgrading and https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:How_to_debug for more information.
Error 1146: Table 'app_13859.mwuf_l10n_cache' doesn't exist
Function: LCStoreDB::get
Query: SELECT lc_value FROM `mwuf_l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'deps' LIMIT 1
Backtrace:
from /home/user_13859/app_13859/includes/libs/rdbms/database/Database.php(1236)
#0 /home/user_13859/app_13859/includes/libs/rdbms/database/Database.php(1220): Wikimedia\Rdbms\Database->getQueryException()
#1 /home/user_13859/app_13859/includes/libs/rdbms/database/Database.php(1194): Wikimedia\Rdbms\Database->getQueryExceptionAndLog()
#2 /home/user_13859/app_13859/includes/libs/rdbms/database/Database.php(679): Wikimedia\Rdbms\Database->reportQueryError()
#3 /home/user_13859/app_13859/includes/libs/rdbms/database/Database.php(1383): Wikimedia\Rdbms\Database->query()
#4 /home/user_13859/app_13859/includes/libs/rdbms/database/Database.php(1334): Wikimedia\Rdbms\Database->select()
#5 /home/user_13859/app_13859/includes/libs/rdbms/database/DBConnRef.php(119): Wikimedia\Rdbms\Database->selectField()
#6 /home/user_13859/app_13859/includes/libs/rdbms/database/DBConnRef.php(338): Wikimedia\Rdbms\DBConnRef->__call()
#7 /home/user_13859/app_13859/includes/libs/rdbms/querybuilder/SelectQueryBuilder.php(726): Wikimedia\Rdbms\DBConnRef->selectField()
#8 /home/user_13859/app_13859/includes/language/LCStoreDB.php(65): Wikimedia\Rdbms\SelectQueryBuilder->fetchField()
#9 /home/user_13859/app_13859/includes/language/LocalisationCache.php(559): LCStoreDB->get()
#10 /home/user_13859/app_13859/includes/language/LocalisationCache.php(606): LocalisationCache->isExpired()
#11 /home/user_13859/app_13859/includes/language/LocalisationCache.php(516): LocalisationCache->initLanguage()
#12 /home/user_13859/app_13859/includes/language/LocalisationCache.php(396): LocalisationCache->loadSubitem()
#13 /home/user_13859/app_13859/includes/language/LocalisationCache.php(412): LocalisationCache->getSubitem()
#14 /home/user_13859/app_13859/includes/language/MessageCache.php(1235): LocalisationCache->getSubitemWithSource()
#15 /home/user_13859/app_13859/includes/language/MessageCache.php(1177): MessageCache->getMessageForLang()
#16 /home/user_13859/app_13859/includes/language/MessageCache.php(1075): MessageCache->getMessageFromFallbackChain()
#17 /home/user_13859/app_13859/includes/language/Message.php(1485): MessageCache->get()
#18 /home/user_13859/app_13859/includes/language/Message.php(972): Message->fetchMessage()
#19 /home/user_13859/app_13859/includes/language/Message.php(1059): Message->format()
#20 /home/user_13859/app_13859/includes/title/MalformedTitleException.php(61): Message->text()
#21 /home/user_13859/app_13859/includes/title/MediaWikiTitleCodec.php(101): MediaWiki\Title\MalformedTitleException->__construct()
#22 /home/user_13859/app_13859/includes/title/MediaWikiTitleCodec.php(411): MediaWiki\Title\MediaWikiTitleCodec::MediaWiki\Title\{closure}()
#23 /home/user_13859/app_13859/includes/title/Title.php(2756): MediaWiki\Title\MediaWikiTitleCodec->splitTitleString()
#24 /home/user_13859/app_13859/includes/title/Title.php(510): MediaWiki\Title\Title->secureAndSplit()
#25 /home/user_13859/app_13859/includes/MediaWiki.php(100): MediaWiki\Title\Title::newFromURL()
#26 /home/user_13859/app_13859/includes/MediaWiki.php(189): MediaWiki->parseTitle()
#27 /home/user_13859/app_13859/includes/MediaWiki.php(908): MediaWiki->getTitle()
#28 /home/user_13859/app_13859/includes/MediaWiki.php(613): MediaWiki->main()
#29 /home/user_13859/app_13859/index.php(50): MediaWiki->run()
#30 /home/user_13859/app_13859/index.php(46): wfIndexMain()
#31 {main}
Exception caught inside exception handler: [905b5c01c455a15057df55c8] / Wikimedia\Rdbms\DBQueryError: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading or after adding a new extension?
Please see https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Upgrading and https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:How_to_debug for more information.
Error 1146: Table 'app_13859.mwuf_page' doesn't exist
Function: MessageCache::loadFromDB(en)-big
Query: SELECT page_title,page_latest FROM `mwuf_page` WHERE page_is_redirect = 0 AND page_namespace = 8 AND (page_title NOT LIKE '%/%' ESCAPE '`' ) AND (page_len > 10000)
Backtrace:
from /home/user_13859/app_13859/includes/libs/rdbms/database/Database.php(1236)
#0 /home/user_13859/app_13859/includes/libs/rdbms/database/Database.php(1220): Wikimedia\Rdbms\Database->getQueryException()
#1 /home/user_13859/app_13859/includes/libs/rdbms/database/Database.php(1194): Wikimedia\Rdbms\Database->getQueryExceptionAndLog()
#2 /home/user_13859/app_13859/includes/libs/rdbms/database/Database.php(679): Wikimedia\Rdbms\Database->reportQueryError()
#3 /home/user_13859/app_13859/includes/libs/rdbms/database/Database.php(1383): Wikimedia\Rdbms\Database->query()
#4 /home/user_13859/app_13859/includes/libs/rdbms/database/DBConnRef.php(119): Wikimedia\Rdbms\Database->select()
#5 /home/user_13859/app_13859/includes/libs/rdbms/database/DBConnRef.php(351): Wikimedia\Rdbms\DBConnRef->__call()
#6 /home/user_13859/app_13859/includes/libs/rdbms/querybuilder/SelectQueryBuilder.php(708): Wikimedia\Rdbms\DBConnRef->select()
#7 /home/user_13859/app_13859/includes/language/MessageCache.php(606): Wikimedia\Rdbms\SelectQueryBuilder->fetchResultSet()
#8 /home/user_13859/app_13859/includes/language/MessageCache.php(504): MessageCache->loadFromDB()
#9 /home/user_13859/app_13859/includes/language/MessageCache.php(421): MessageCache->loadFromDBWithMainLock()
#10 /home/user_13859/app_13859/includes/language/MessageCache.php(341): MessageCache->loadUnguarded()
#11 /home/user_13859/app_13859/includes/language/MessageCache.php(1301): MessageCache->load()
#12 /home/user_13859/app_13859/includes/language/MessageCache.php(1206): MessageCache->getMsgFromNamespace()
#13 /home/user_13859/app_13859/includes/language/MessageCache.php(1177): MessageCache->getMessageForLang()
#14 /home/user_13859/app_13859/includes/language/MessageCache.php(1075): MessageCache->getMessageFromFallbackChain()
#15 /home/user_13859/app_13859/includes/language/Message.php(1485): MessageCache->get()
#16 /home/user_13859/app_13859/includes/language/Message.php(972): Message->fetchMessage()
#17 /home/user_13859/app_13859/includes/language/Message.php(1059): Message->format()
#18 /home/user_13859/app_13859/includes/exception/MWExceptionRenderer.php(254): Message->text()
#19 /home/user_13859/app_13859/includes/exception/MWExceptionRenderer.php(191): MWExceptionRenderer::msg()
#20 /home/user_13859/app_13859/includes/exception/MWExceptionRenderer.php(105): MWExceptionRenderer::reportHTML()
#21 /home/user_13859/app_13859/includes/exception/MWExceptionHandler.php(134): MWExceptionRenderer::output()
#22 /home/user_13859/app_13859/includes/exception/MWExceptionHandler.php(251): MWExceptionHandler::report()
#23 /home/user_13859/app_13859/includes/MediaWiki.php(632): MWExceptionHandler::handleException()
#24 /home/user_13859/app_13859/index.php(50): MediaWiki->run()
#25 /home/user_13859/app_13859/index.php(46): wfIndexMain()
#26 {main} NaomiFromThisDay (talk) 15:51, 24 April 2024 (UTC)
- OK, so it turned out that I didnt have the correct databse user asigned, that issuse is resolved. NaomiFromThisDay (talk) 16:33, 24 April 2024 (UTC)
Mediawiki will not accept my password when I log on from Pixel phone
I can log on to my mediawiki site from all other devices, but when I try to logon from my Pixel 6a, it just keeps asking me to log on. I have even tried changing the password to test it , but still I can log on from the other devices but not the Pixel phone. 2.102.45.13 (talk) 20:21, 24 April 2024 (UTC)
Error 403 when there is a "@" character is present
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 facing this issue in a new instalation. When i edit any page and ther is the @ character, the page shows a 403 error.
Example: root@debian:~
If i put a space before @ it works, like root @debian:~
Any secret i don't know? Nathanielmorais (talk) 22:23, 24 April 2024 (UTC)
- Making more specific: when my page have root@debian it shows a 403 error. When i change to mark@debian, nathaniel@debian, anything@debian, it works fine.
- What's about root@debian? Why it gives me a 403 error?
- From web server error.log:
- Apache-Error: [file "apache2_util.c"] [line 275] [level 3] [client 189.50.82.144] ModSecurity: Access denied with code 403 (phase 2). Pattern match "(?i:\\\\\\\\b(?:coalesce\\\\\\\\b|root\\\\\\\\@))" at ARGS:text. [file "/etc/apache/modsecurity.d/base_rules/modsecurity_crs_41_sql_injection_attacks.conf"] [line "140"] [id "950908"] [rev "2"] [msg "SQL Injection Attack."] Nathanielmorais (talk) 02:08, 25 April 2024 (UTC)
Moderation setting
Hello, is there a moderation configuration that will block edits to be displayed to the public before the admin or the authorised personels approves after seeng that is worthy.
Thanks
Rgds
Owner
Netvibe World Davisvawiz (talk) 04:59, 25 April 2024 (UTC)
Templates not Transcluding on 1.41 wiki
Hi Everyone,
I've been trying to set up templates on my wiki but every time I call for them on a page they just appear as a link. For example, I'd make a page called Welcome in the template namespace and write "Welcome to my Wiki!" and then put
Version:1.41 Php:8.2.18 MariaDB:10.6.16 Extensions (I think are important) are templatestyles, templatedata, templatewizard, cargo, lockdown, parserfunctions, scribunto, and visual editor.
When disabling templatestyles, templatedata, templatewizard, parserfunctions, and scribunto. The template function still doesn't work. I don't get any error messages either. I've also tried importing templates just in case I was setting them up wrong but that didn't work either.
Any input is appreciated. 71.185.78.14 (talk) 13:19, 25 April 2024 (UTC)
- UPDATE: I figured out how to make templates work on my wiki. My localsettings.php file had $wgNonincludableNamespaces = array(); defined to protect certain namespaces. For some reason, this caused all templates to not work. Trying to define $wgNonincludableNamespaces[NS_SPECIAL] = true; instead of using an array still causes templates to not work in the main namespace. Is this a bug in 1.41.0 or am I missing something? 71.185.78.14 (talk) 13:56, 25 April 2024 (UTC)
- $wgNonincludableNamespaces[NS_SPECIAL] = true; is incorrect syntax. See manual:$wgNonincludableNamespaces for information on how to use this setting.
- Please also include the exact configuration settings you used in your post. Bawolff (talk) 19:46, 25 April 2024 (UTC)
Search Autocomplete Suggestions Broken
I was searching on Wikipedia when I notice the search autocomplete results on the site was broken. The results come back with completely random results that might not be related to what I am looking for. For example, typing in “Joe B” would list results of Carson Robinson instead of Joe Biden, and other nonsense. I would like to see this fixed asap 2601:247:C680:F8F0:E9D2:61DB:17F3:2875 (talk) 04:32, 26 April 2024 (UTC)
MWException from line 724 of WikiImporter.php: Expected <mediawiki> tag, got mysqldump
hi guys!
I was sure I'd find something quickly on this, but getting stuck it seems - and cannot find exactly the same error which is weird
basically trying to restore my old wiki XML dump on newer wiki, which is running on Synology
- MediaWiki 1.39.2
- PHP 8.0.28 (fpm-fcgi)
- MariaDB 10.11.2-MariaDB
- ICU 64.2
the file is quite big and has multiple languages in it (mostly english, but also Russian and Japanese etc).
what else can I try? I am hoping that I can import it like this (without having to restore older files & try to match MySQL version for mysqldump which I also have etc etc).
appreciate any tips !
user@Syn:/var/services/web_packages/mediawiki/maintenance$ php74 importDump.php --conf ../LocalSettings.php < /volume1/Syn/User/mediawiki_backups/wikidb_20140913.xml
MWException from line 724 of /volume1/web_packages/mediawiki/includes/import/WikiImporter.php: Expected <mediawiki> tag, got mysqldump
#0 /volume1/web_packages/mediawiki/maintenance/importDump.php(364): WikiImporter->doImport()
#1 /volume1/web_packages/mediawiki/maintenance/importDump.php(305): BackupReader->importFromHandle(Resource id #760)
#2 /volume1/web_packages/mediawiki/maintenance/importDump.php(139): BackupReader->importFromStdin()
#3 /volume1/web_packages/mediawiki/maintenance/includes/MaintenanceRunner.php(309): BackupReader->execute()
#4 /volume1/web_packages/mediawiki/maintenance/doMaintenance.php(85): MediaWiki\Maintenance\MaintenanceRunner->run()
#5 /volume1/web_packages/mediawiki/maintenance/importDump.php(369): require_once('/volume1/web_pa...')
#6 {main} Realaaa (talk) 10:03, 26 April 2024 (UTC)
- just for reference beginning of this XML file is
<?xml version="1.0"?><mysqldump xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><database name="wikidb"><table_structure name="mw_archive"><field Field="ar_id" Type="int(10) unsigned" Null="NO" Key="PRI" Extra="auto_increment" Comment="" /><field Field="ar_namespace" Type="int(11)" Null="NO" Key="MUL" Default="0" Extra="" Comment="" /><field Field="ar_title" Type="varbinary(255)" Null="NO" Key="" Default="" Extra="" Comment="" /><field Field="ar_text" Type="mediumblob" Null="NO" Key="" Extra="" Comment="" /><field Field="ar_comment" Type="tinyblob" Null="NO" Key="" Extra="" Comment="" /><field Field="ar_user" Type="int(10) unsigned" Null="NO" Key="" Default="0" Extra="" Comment="" /><field Field="ar_user_text" Type="varbinary(255)" Null="NO" Key="MUL" Extra="" Comment="" /><field Field="ar_timestamp" Type="binary(14)" Null="NO" Key="" Default="" Extra="" Comment="" /><field Field="ar_minor_edit" Type="tinyint(4)" Null="NO" Key="" Default="0" Extra="" Comment="" /><field Field="ar_flags" Type="tinyblob" Null="NO" Key="" Extra="" Comment="" /><field Field="ar_rev_id" Type="int(10) unsigned" Null="YES" Key="MUL" Extra="" Comment="" /><field Field="ar_text_id" Type="int(10) unsigned" Null="YES" Key="" Extra="" Comment="" /><field Field="ar_deleted" Type="tinyint(3) unsigned" Null="NO" Key="" Default="0" Extra="" Comment="" /><field Field="ar_len" Type="int(10) unsigned" Null="YES" Key="" Extra="" Comment="" /><field Field="ar_page_id" Type="int(10) unsigned" Null="YES" Key="" Extra="" Comment="" /><field Field="ar_parent_id" Type="int(10) unsigned" Null="YES" Key="" Extra="" Comment="" /><field Field="ar_sha1" Type="varbinary(32)" Null="NO" Key="" Default="" Extra="" Comment="" /><field Field="ar_content_format" Type="varbinary(64)" Null="YES" Key="" Extra="" Comment="" /><field Field="ar_content_model" Type="varbinary(32)" Null="YES" Key="" Extra="" Comment="" /><key Table="mw_archive" Non_unique="0" Key_name="PRIMARY" Seq_in_index="1" Column_name="ar_id" Collation="A" Cardinality="0" Null="" Index_type="BTREE" Comment="" Index_comment="" /><key Table="mw_archive" Non_unique="1" Key_name="name_title_timestamp" Seq_in_index="1" Column_name="ar_namespace" Collation="A" Cardinality="0" Null="" Index_type="BTREE" Comment="" Index_comment="" /><key Table="mw_archive" Non_unique="1" Key_name="name_title_timestamp" Seq_in_index="2" Column_name="ar_title" Collation="A" Cardinality="0" Null="" Index_type="BTREE" Comment="" Index_comment="" /><key Table="mw_archive" Non_unique="1" Key_name="name_title_timestamp" Seq_in_index="3" Column_name="ar_timestamp" Collation="A" Cardinality="0" Null="" Index_type="BTREE" Comment="" Index_comment="" /><key Table="mw_archive" Non_unique="1" Key_name="usertext_timestamp" Seq_in_index="1" Column_name="ar_user_text" Collation="A" Cardinality="0" Null="" Index_type="BTREE" Comment="" Index_comment="" /><key Table="mw_archive" Non_unique="1" Key_name="usertext_timestamp" Seq_in_index="2" Column_name="ar_timestamp" Collation="A" Cardinality="0" Null="" Index_type="BTREE" Comment="" Index_comment="" /><key Table="mw_archive" Non_unique="1" Key_name="ar_revid" Seq_in_index="1" Column_name="ar_rev_id" Collation="A" Cardinality="0" Null="YES" Index_type="BTREE" Comment="" Index_comment="" /><options Name="mw_archive" Engine="InnoDB" Version="10" Row_format="Compact" Rows="0" Avg_row_length="0" Data_length="16384" Max_data_length="0" Index_length="49152" Data_free="5242880" Auto_increment="1" Create_time="2014-09-13 02:23:19" Collation="binary" Create_options="" Comment="" /></table_structure><table_data name="mw_archive"></table_data><table_structure name="mw_category"><field Field="cat_id" Type="int(10) unsigned" Null="NO" Key="PRI" Extra="auto_increment" Comment="" /><field Field="cat_title" Type="varbinary(255)" Null="NO" Key="UNI" Extra="" Comment="" /><field Field="cat_pages" Type="int(11)" Null="NO" Key="MUL" Default="0" Extra="" Comment="" /><field Field="cat_subcats" Type="int(11)" Null="NO" Key="" Default="0" Extra="" Comment="" /><field Field="cat_files" Type="int(11)" Null="NO" Key="" Default="0" Extra="" Comment="" /><key Table="mw_category" Non_unique="0" Key_name="PRIMARY" Seq_in_index="1" Column_name="cat_id" Collation="A" Cardinality="40" Null="" Index_type="BTREE" Comment="" Index_comment="" /><key Table="mw_category" Non_unique="0" Key_name="cat_title" Seq_in_index="1" Column_name="cat_title" Collation="A" Cardinality="40" Null="" Index_type="BTREE" Comment="" Index_comment="" /><key Table="mw_category" Non_unique="1" Key_name="cat_pages" Seq_in_index="1" Column_name="cat_pages" Collation="A" Cardinality="40" Null="" Index_type="BTREE" Comment="" Index_comment="" /><options Name="mw_category" Engine="InnoDB" Version="10" Row_format="Compact" Rows="40" Avg_row_length="409" Data_length="16384" Max_data_length="0" Index_length="32768" Data_free="5242880" Auto_increment="41" Create_time="2014-09-13 02:23:19" Collation="binary" Create_options="" Comment="" /></table_structure><table_data name="mw_category"><row><field name="cat_id">1</field><field name="cat_title">Debian</field><field name="cat_pages">18</field><field name="cat_subcats">0</field><field name="cat_files">0</field>Realaaa (talk) 10:11, 26 April 2024 (UTC)- importDump.php only accepts XML dumps generated from Special:Export or Manual:dumpBackup.php
- Your XML dump seems to be a *database* dump, which is more low-level than MediaWiki's dumps. You should import it directly to the mysql/mariadb database, not with MediaWiki. Ciencia Al Poder (talk) 10:25, 26 April 2024 (UTC)
- thanks @Ciencia Al Poder !
- I just checked what script I used, it seems like it was dumpBackup.php indeed
- I do have a second set of pure .sql files as well, those are indeed created by mysqldump (and those I am trying not to use due to old version)
php /usr/share/mediawiki/maintenance/dumpBackup.php --full --output=bzip2:wikixml-$(date '+%Y%m%d').tar.bz2Realaaa (talk) 10:34, 26 April 2024 (UTC)- dumpBackup.php doesn't generate this kind of XML, that's why you're getting the error in the first place.
- See https://stackoverflow.com/questions/43699791/import-mysql-xml-dump for more information regarding importing your XML (mysql) dump Ciencia Al Poder (talk) 13:55, 26 April 2024 (UTC)
- @Ciencia Al Poder thanks ! indeed yes, I get that the format is wrong
- however I am pretty sure that this was the command which generated the file (unless I'm mixing something up)
- my only guess now is that it is some very ancient version - I think that MediaWiki version was 1.18.1 or something like that
- I'll have to do via a MySQL restoration indeed, cheers Realaaa (talk) 04:46, 28 April 2024 (UTC)
Edit button error - Viual Editor doesnt load
I moved the wiki to a new server location and now when you click on the edit button you get an error and it doesnt open up.
[36608ab44f7e307376a5e9ba] Exception caught: Could not open '/home/user_13589/tmp_zswknl/mw-GlobalIdGenerator1021-UUID-128'.
For the moving proceedure I simply moved the files and database and changed LocalSettings to reflect the new server location. I also moved the temp file to outside of the website folders and relinked. The temp folder has the same permissions as it did on the other server.
This file '/home/user_13589/tmp_zswknl/mw-GlobalIdGenerator1021-UUID-12' does not exist in this location - it also isn't on the old server either. I wonder if there is another step I need to run to ensure everything works as it should? Or to recreate these missing files!
I can see visual editor is in the extensions folder and this is set
wfLoadExtension( 'VisualEditor' ); is set in the settings
On the help on here it says I will need to configure the parasoid settings but I can't find anything about parasoid in the file structure and no mention of any of the folders it says the file should be located.
/etc/mediawiki/parsoid/config.yaml
Is parasoid something I need to install somewhere? I feel as if there's a setup script or something I should be running? NaomiFromThisDay (talk) 11:02, 26 April 2024 (UTC)
- Just delete /home/user_13589/tmp_zswknl/mw-GlobalIdGenerator1021-UUID-128 . The error means wrong permissions, but file will be recreated if deleted. Bawolff (talk) 17:18, 26 April 2024 (UTC)
- Thanks for your suggestion, but that file does not exist in that location, nothing to delete! In that location I have the following files instead:
- mw-GlobalIdGenerator-UID-nodeid
- mw-GlobalIdGenerator-UUID-128
- mw-GlobalIdGenerator1120-UID-nodeid
- mw-GlobalIdGenerator1120-UUID-128
- mw-GlobalIdGenerator2838-UID-nodeid
- mw-GlobalIdGenerator2838-UUID-128
- I tried temporarily moving them all but that did not change the outcome, I still get the same error message. NaomiFromThisDay (talk) 09:53, 29 April 2024 (UTC)
- I removed the line in LocalSettings which defined the temp directory and all seems to work now.
- // $wgTmpDirectory = "/home/my/path/was/heref"; NaomiFromThisDay (talk) 12:49, 29 April 2024 (UTC)
citoid
"Set the location of your citoid service instance in your wiki's LocalSettings.php"
where can I find cityid service instance? 81.211.42.104 (talk) 17:12, 26 April 2024 (UTC)
File doesn't update
Sometimes when I upload a new version of a file, it doesn't change to the new version on pages. Sometimes it changes on one device but not another. Anyone know how to fix this? Tang Empire (talk) 18:36, 27 April 2024 (UTC)
- By emptying your web browser cache. Malyacko (talk) 23:58, 29 April 2024 (UTC)
- Is there any way to do it without emptying it every time? For example if my friend views my website, will they have to clear cache to view the latest file version as well? Tang Empire (talk) 01:10, 1 May 2024 (UTC)
- You could use a web browser with less aggressive caching behavior. This is nothing that MediaWiki can influence. This is behavior of your local web browser that you installed. Malyacko (talk) 15:20, 1 May 2024 (UTC)
MediaWiki Mobile Access
I have recently installed MediaWiki and tried accessing it to my android mobile so how can I access that wiki and open it on my mobile? Xaloria (talk) 03:11, 28 April 2024 (UTC)
- This post does not describe any problem... (In case that you run software like MediaWiki on a local server and cannot access your local server from other devices, then that's a problem unrelated to MediaWiki itself and best brought up in an internet forum instead.) Malyacko (talk) 23:58, 29 April 2024 (UTC)
Double URLs on certain links, other URL issues
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello, I have just installed MediaWiki following the "Running MediaWiki on ArchLinux" guide.
I am currently getting an issue where certain actions forward the user to an incorrect URL. Namely, if editing a page and hitting "save" the user gets redirected to MYDOMAIN/mediawiki/MYDOMAIN/mediawiki/index.php/Main_Page
This is happening with other links within MediaWiki as well, where they redirect to a URL where the domain appears twice.
I have not attempted to make short links, my wgScriptPath is set to "/mediawiki" and my wgServer is set to (domain redacted) "mydomain.com".
I've been trying to read documentation but nothing I've tried has been able to fix the issue, I'm hoping I've just missed something simple.
Any help is greatly appreciated! MisterGoon (talk) 03:45, 28 April 2024 (UTC)
Importing gadgets
Mediawiki 1.39.6
According to Special:Gadgets/export/Navigation popups I try to upload the exported xml file via https://test.perrypedia.de/mediawiki/index.php?title=Spezial:Importieren&action=submit
Error: Import fehlgeschlagen: Es wurde kein Interwiki-Präfix angegeben
I don't want anything Interwiki, I just want to import. 2003:C2:3F21:FD00:29DF:84AE:2326:3100 (talk) 12:37, 28 April 2024 (UTC)
Doesn't recognize my original or new name, new e-mail address, and passwords
I keep trying to sign into Closing Logos. When I enter my e-mail address (which has changed from the previous one) and request a new password, I receive no e-mail. Then I try to establish a new account name and use the temporary password to create a new password, but it keeps coming in as "not identified."
What's the problem? Has Closing Logos kept me from signing back in again? I don't recall making any bad comments; if I disagree with something I just overlook it.
Please tell me what I can do about this. Thanks. KramdenII (talk) 20:39, 28 April 2024 (UTC)
- Only "Closing Logos" knows (whatever and whoever that is), and we are neither "Closing Logos" nor do we have anything to do with them, so we cannot help. Malyacko (talk) 23:56, 29 April 2024 (UTC)
How do I change the colour?
Can I make just slight modifications to the existing skins? I like the layout and functionality of vector (or whichever one it is that matches most Wikipedias?) but I want to give it some themed colours to suit our own
wikiCan I locate the file for that skin (where?) and just change a few he codes? Or is it more complicated than that? MWQs (talk) 00:28, 29 April 2024 (UTC)
- Do not touch installation files for this. That would complicate your upgrades.
- Instead, generate override stylesheets on the wiki, as described in Manual:Interface/Stylesheets. You would create MediaWiki:vector.css or MediaWiki:vector-2022.css (depending on your vector skin) with the styles to override, usually just colors. You'd have to copy the entire selector to override and modify the colors as you wish, removing other rules that you don't want to modify.
- Note that changes may not be applied immediately due to caching. You better try it yourself live on the page by using the browser's development tools, or in your personal stylesheet and using the preview button. Ciencia Al Poder (talk) 09:11, 29 April 2024 (UTC)
- @Ciencia Al Poder, thank you.
- I think I understand you as far as I need to make my own copy of the skin before I customise it?
- But I'm confused about step zero, which window do I open?
- - do I find those paths the way I would find other pages on the wiki through the browser?
- - or through the xamp etc. control panel?
- - or through my computer's file system?
- Sorry I'm such a novice. A friend did most of the installation, so I've mostly been just editing pages, the rest is a bit of a black box to me.
- I have my wiki just running locally currently, no on line, in case that makes any difference.
- MWQs (talk) 07:55, 15 May 2024 (UTC)
- No, there's no need to make a copy of the skin. You only need to introduce the desired rules you want to change, not everything.
- You can use developer tools of your browsers (hit F12) to inspect element and see the CSS it's using, and even change it to see how it would look. Then you can copy the rule to the CSS page. However, you need to understand the very basics of CSS (cascading stylesheets) to know what to do. I'd recommend you to look at any simple introduction tutorial to CSS. Ciencia Al Poder (talk) 08:32, 15 May 2024 (UTC)
I forgot my password
I forgot my password for an Internal wiki however I still have access to the LocalSettings.php and the database. I am the main admin for the site. What can I do to either retrieve my password or create a new account? AEroles (talk) 07:16, 29 April 2024 (UTC)
- If you have access to the command line you can reset your password with Manual:CreateAndPromote.php. Osnard (talk) 07:43, 29 April 2024 (UTC)
- Thanks! AEroles (talk) 04:05, 17 June 2024 (UTC)
How to make tabbers with long titles not expand infobox
Hi. I am using version 1.41.1. I have a problem. When I add tabbers to infoboxes and the titles are long, it will expand the infobox itself. How do I make it not like that but instead maintain the same infobox size while you can scroll through the titles? I tried doing
<tabber style="overflow:auto; max-width:300px; background:transparent;">
but it does not seem to work. Tang Empire (talk) 22:39, 29 April 2024 (UTC)
Only allow Login for Users in a specific Active Directory Group
Hi,
I have a mediawiki installation configured with SimpleSamlPhp and Pluggable Auth, allowing users with ad accounts to log in.
In the pluggable Auth there's also a group mapping, making users in a specific group admins in the mediawiki.
The wiki itself is open to read, but not to edit. Now I'm wondering if there's a way to deny login for users that are not in the AD groups for admin/edit access, to not have unnecessary logins from users, that doesn't change anything from just viewing without login.
Is this possible? Basically have "require X group from AD" to createaccount? Or does this only work with workarrounds where you strip any rights from normal users except for read and you have to live with them being able to log in? Or would this have to be done on ADFS side?
Kind regards 217.253.41.142 (talk) 14:07, 30 April 2024 (UTC)
Lua error: Internal error: The interpreter has terminated with signal "11".
I've been trying to install WikiMedia on a webhosting plan. I'm not great at Linux and such, but done my best with what I've got.
When installing Scribunto, the server host has a Lua version 5.3.4, which isn't compatable with the extention when using usr/bin/lua. If I stick with luastandalone, I get the error: Lua error: Internal error: The interpreter has terminated with signal "11".
I am asusming that there is something I'm missing if it keeps crashing. I've tried to set up error logging with $wgScribuntoEngineConf['luastandalone']['errorFile'] = '/var/log/luastandalone-error.log';
but I get another error of Lua error: Cannot create process: proc_open(/var/log/luastandalone-error.log): Failed to open stream: Permission denied, even though the proc_open setting is set in the ini file for the domain (the wiki is installed in the folder /wiki/, but not as a subomain).
MediaWiki 1.41.1 with PHP 8.2.18. Linux64 web hosting.
Thanks for reading and any advice! Scribbleryn (talk) 14:57, 30 April 2024 (UTC)
- It seems this provider doesn't allow you to execute your own binaries (lua standalone). You can try asking if they are willing to install LuaSandbox, or ask them to allow list your usage of the direct lua binary. —TheDJ (Not WMF) (talk • contribs) 17:04, 30 April 2024 (UTC)
Email password reset not working
Any ideas? NaomiFromThisDay (talk) 15:19, 30 April 2024 (UTC)
- not working where ? for which site ? what is it not doing ? —TheDJ (Not WMF) (talk • contribs) 17:02, 30 April 2024 (UTC)
- Nothing was happening, turned out a problem with the email adress stipulated in the localsettings. Resolved now. NaomiFromThisDay (talk) 09:41, 2 May 2024 (UTC)
Citoid empty manual reference despite an existing Template data.
Hello everyone!
Im using Citoid on local mediawiki instance, in the manual reference tab there is cite web, book, news and Journal options for referencing, i've imported all the templates and modules required.
when i try to add Site web manual reference i get the template Data such as checkboxes and data inputs, but when i try to add a Journal manual reference for example, i get an empty page, no template data, only this message :
The “ Cite Journal ” template does not yet have a description, but there may be information in the documentation shown on the template page .
and if you try to open the link above you will see that the template is imported.
Is there some other templates or modules i need to import or am i missing something?
I appreciate any guidance. Zied dhf (talk) 15:35, 30 April 2024 (UTC)
Template building
Hi, I am very new to mediawiki and ddeveloping with it.
Goal: to create a leader board page that dynamically populates users and there stats.
Problem: Page LeaderBoard is showing data like this: {{#vardefine: Username|Timmy}} {{#vardefine: Score|100}} {{#vardefine: Badges|5}}
Not sure why or how to display better.
I have created Template:UserScore and inputed
and in my page itself i am calling the template and adding values like this
{{UserScore
| Username = Timmy
| Score = 100
| Badges = 5
}} 2601:281:D200:5A50:AC09:D9EB:806C:598E (talk) 17:02, 30 April 2024 (UTC)
Creating a second Admin
I am new to wikis and I need some guidance. How can I either change an account status to administrator or create an admin account for someone that will be helping me create my wiki Thanks Bananatree88 (talk) 17:46, 30 April 2024 (UTC)
- Use the page named Special:UserRights on your wikk Bawolff (talk) 19:08, 30 April 2024 (UTC)
CheckUser extension - where is IP address taken from
I recently had to install TorBlock, LoginNotify and CheckUser extensions. Tables were created successfully for Checkuser extension but during testing only localhost adress 127.0.0.1 showed in Special:CheckUser for a user access. I guess IP gets replaced during the process somewhere incorrectly but I need to find out where to fix it. It might be due to caching but in webserver logs and cache logs IPs are correct. I wonder if TorBlock and LoginNotify extensions may be influenced by this issue. Pspviwki (talk) 20:12, 30 April 2024 (UTC)
- Did you set $wgCdnServersNoPurge correctly?
- Its unlikely that TorBlock or LoginNotify affect this.
- How is your web server setup. Do you have load balancers, caching proxies, etc in front of your web server. If so, do they set X-Forward-For headers properly? Bawolff (talk) 16:53, 2 May 2024 (UTC)
- $wgCdnServersNoPurge was left at default value, that is []. There is varnish cache set up as recommended in Manual:Varnish caching, this setting works
- $wgUseCdn = true;$wgCdnServers = array(); $wgCdnServers[] = "ip address:port"; http.X-Forwarded-For is set up with received client IP address. Pspviwki (talk) 10:11, 3 May 2024 (UTC)