Project:Support desk/Flow/2023/07
| 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. |
Error after updating to 1.40
after updating to 1.40 i get this Error: Call to a member function getTemplateData() on array
on my site www.wikimilano.it Brunodapei (talk) 00:46, 1 July 2023 (UTC)
- You have a custom skin and the code is incompatible with the upgrade? 70.29.239.49 (talk) 02:46, 1 July 2023 (UTC)
- hello. no custom skin Brunodapei (talk) 03:04, 1 July 2023 (UTC)
- what skin are you using? 70.29.239.49 (talk) 03:14, 1 July 2023 (UTC)
- nevermind, I can see that you're using the vector skin. 70.29.239.49 (talk) 03:16, 1 July 2023 (UTC)
- I am in the process of upgrading myself and had no issue when using the legacy vector class. that is strange. 70.29.239.49 (talk) 03:37, 1 July 2023 (UTC)
- the error is the same even if i choose a different skin Brunodapei (talk) 09:53, 1 July 2023 (UTC)
- i found out the problem:
- it didnt works with: unset( $wgFooterIcons['poweredby'] ); Brunodapei (talk) 10:10, 1 July 2023 (UTC)
Tryinig to test parser.php and get a surprising bug
mediawiki 1.35.2
when running the test: echo 'foo' | bin/parser.php from the parsoid directory, I get the following php fatal error:
<pre>
Declaration of Wikimedia\Parsoid\Tools\Maintenance::addOption(string $name, string $description, bool $required = false, bool $withArg = false, bool $shortName = false, bool $multiOccurrence = false) must be compatible with Maintenance::addOption($name, $description, $required = false, $withArg = false, $shortName = false, $multiOccurrence = false) in /var/www/html/mediawiki/vendor/wikimedia/parsoid/tools/Maintenance.php on line 79
</pre>
what am I supposed to do now? 70.29.239.49 (talk) 01:54, 1 July 2023 (UTC)
- I think my php version is too recent and not compatible with the php code in this version? 70.29.239.49 (talk) 02:09, 1 July 2023 (UTC)
- File a bug in https://phabricator.wikimedia.org . If you believe it is php8 related add the php8 tag Bawolff (talk) 12:00, 1 July 2023 (UTC)
Runtime-Error in 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.
[3ef3fb38e1ef177230e6be21] 2023-07-01 07:33:44: Fataler Ausnahmefehler des Typs „RuntimeException“
Beim kopieren von Text erscheint manchmal o.a. Meldung. Wer kann helfen? Danke!
[3ef3fb38e1ef177230e6be21] 2023-07-01 07:33:44: Fatal exception error of type 'RuntimeException'
When copying text, the above message sometimes appears. Who can help? Thank you! 2003:E7:A718:5969:D8F1:772:D67:B370 (talk) 07:40, 1 July 2023 (UTC)
- see Manual:How to debug Taavi (talk!) 07:44, 1 July 2023 (UTC)
- I am a beginner. I need more detailed help. Thanks. 2003:E7:A718:5969:D8F1:772:D67:B370 (talk) 08:13, 1 July 2023 (UTC)
- I will use an older version now. Thanks for help! 2003:E7:A718:5969:D8F1:772:D67:B370 (talk) 10:39, 1 July 2023 (UTC)
Debugging unwanted line break
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 there,
A problem arises on the following template:
https://en.wikipedia.org/wiki/Template:Epistemology_sidebar
All articles with this template get an unwanted line break at the top of the article. Take for example: https://en.wikipedia.org/wiki/Epistemology
The problem doesn't arise with the template on philosophy: https://en.wikipedia.org/wiki/Template:Philosophy_sidebar
You can see that https://en.wikipedia.org/wiki/Philosophy doesn't have an unwanted line break.
How can this issues be resolved? Infogiraffic (talk) 08:53, 1 July 2023 (UTC)
- Adding <nowiki/> before resolved the issue Infogiraffic (talk) 10:29, 1 July 2023 (UTC)
MediaWiki:Mainpage no longer 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 have updated to MW 1.39 and realize that even if https://www.mediawikiwidgets.org/MediaWiki:Mainpage is set to Widgets Catalog, I am being served with Main_Page when clicking o the logo. Due to the manual redirections users get the intended page, i.e. Widgets Catalog but I have the feeling that something is not working properly here.
For MW 1.35 this was still working. Did something change here, or is the Foreground skin not up for the job? [[kgh]] (talk) 10:59, 1 July 2023 (UTC)
- It seems to work all right, without any redirect needed. Maybe it is/was a caching thing? Jonathan3 (talk) 14:39, 3 July 2023 (UTC)
- Hmm, ... apparently. Thank you for providing the good news. :) Let's close this one since it works now without me changing anything. [[kgh]] (talk) 16:17, 3 July 2023 (UTC)
mediawiki markup ignored
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 all,
I just installed MediaWiki on my Strato account in Germany. Unfortunately, when I edit the "Hauptseite" (Landing Page), MediaWiki markups are simply ignored. On an additional page, however, markups are recognized as expected, see
http://tuewiki.martin-reiche.de/index.php?title=Hauptseite and
http://tuewiki.martin-reiche.de/index.php?title=BNE-T%C3%BCbingen
Thanks,
Martin 2A02:8070:8E82:BFC0:0:0:0:F16E (talk) 14:24, 1 July 2023 (UTC)
- Problem resolved, sorry for bothering you 2A02:8070:8E82:BFC0:0:0:0:F16E (talk) 20:33, 1 July 2023 (UTC)
Cannot rename epub file
I am trying to rename an epub file that I uploaded. I get the error "The new file extension does not match its type." This is MediaWiki version 1.38.1 running on Debian 11.
I have added .epub to the list of allowed extensions $wgFileExtensions.
How can I fix this? Lbundle (talk) 18:45, 1 July 2023 (UTC)
- Some questions for you: Are you sure the uploaded file is indeed epub? Did you change $wgVerifyMimeType at some point?
- When did you add .epub to $wgFileExtensions (before uploading the file or after)? – Ammarpad (talk) 00:47, 2 July 2023 (UTC)
- Mw sometimes gets confused by zip based fotmats Bawolff (talk) 01:30, 2 July 2023 (UTC)
- I already had the $wgFileExtensions change before the upload, otherwise it was impossible to perform the upload. I did not change $wgVerifyMimeType but may try it now. Lbundle (talk) 03:43, 3 July 2023 (UTC)
- I have tried to set $wgVerifyMimeTime to false, but the error keeps coming up. I have no problems uploading ePub files, so it looks like there is some check on moving/renaming files that I must disable.
- I do not know if my problem is related to this one from some years ago: Project:Support desk/Flow/2020/03#h-importImages.php_Mime_Type_trouble-2020-03-10T13:59:00.000Z Lbundle (talk) 04:13, 3 July 2023 (UTC)
- I have been doing deeper analysis and the problem seems to be in the function: public static function checkExtensionCompatibility
- I am not familiar enough with how it works, but I believe this is where the (failed) checking happens. Lbundle (talk) 04:33, 3 July 2023 (UTC)
- "I already had the $wgFileExtensions change before the upload, otherwise it was impossible to perform the upload." No, it's possible.
- "I have tried to set $wgVerifyMimeTime to false, but the error keeps coming up". There's no config variable $wgVerifyMimeTime in MediaWiki, maybe you're looking for $wgVerifyMimeType. – Ammarpad (talk) 21:40, 3 July 2023 (UTC)
- @Lbundle Please do not delete other people's comment. – Ammarpad (talk) 08:16, 4 July 2023 (UTC)
- @Ammarpad
- $wgVerifyMimeTime was a typo.
- I had to already added to the $wgFileExtensions two years ago because epub files would not upload. Lbundle (talk) 15:05, 4 July 2023 (UTC)
Log out link returns "Server returned error: "HTTP 404"
The log out link at the top right (vector skin) returns an error in a cute pink popup.
Apache msg: [date] [proxy_fcgi:error] [pid 358937:tid 359070] [client 127.0.0.1:56392] AH01071: Got error 'Primary script unknown', referer: http://my-wiki.local/wiki/Main_Page
The link is: http://my-wiki.local/mediawiki/index.php?title=Special:UserLogout&returnto=Main+Page
I put two links in the sidebar, both of which work perfectly:
- http://my-wiki.local/mediawiki/index.php?title=Special:UserLogout&returnto={{FULLPAGENAME}}|Logout 1
- http://my-wiki.local/mediawiki/index.php?title=Special:UserLogout&returnto={{FULLPAGENAMEE}}|Logout 2
I don't want to edit the skin, because that doesn't really fix the problem. Can anyone help with this? I don't know where to start.
MW 1.39.3 PHP 8.1.19 (cli) (built: May 10 2023 13:43:03) Zend Engine v4.1.19 w/Zend OPcache v8.1.19 Fedora version: Fedora Linux 37 (Workstation Edition) GrayanOne (talk) 20:14, 2 July 2023 (UTC)
Which Hook for Editing WikiText Before Save
I would like to get, check, and potentially modify an article's wikitext when a user saves a page. I understand this probably isn't the best form for a general wiki, but this will help us ensure consistency for our internal wiki.
The Manual:Hooks/MultiContentSave hook seemed appropriate, as the hook is called before the save completes. But how does one get the article's title and wikitext as strings from $renderedRevision and how can one replace the edited text?
I'm thinking I might not be in the right area as none of the function's parameters have an ampersand before the dollar sign. 70.160.223.43 (talk) 01:19, 3 July 2023 (UTC)
upgrade fails
I have
| Product | Version |
|---|---|
| MediaWiki | 1.39.3 |
But i have problems upgrading to 1.40.0
I unpack where mediawiki is installed and use update.php.
restart httpd and when i check version in the webgui its still the old.
I cant see any errors when i run update.php 139.122.191.230 (talk) 06:17, 3 July 2023 (UTC)
- i think i found the error. Mediawiki ships its components in a folder called mediawiki-1.40.0. need to test some more 139.122.191.230 (talk) 06:27, 3 July 2023 (UTC)
- Try to make updates via Terminal it's more efficient and stable way to upgrade. Fokebox (talk) 07:08, 3 July 2023 (UTC)
Elastic search, cirrus search indexing issue.
Hi,
We are using
| MediaWiki | 1.39.3 |
| PHP | 8.1.20 (apache2handler) |
| MySQL | 8.0.31 |
| ICU | 72.1 |
| Elasticsearch | 7.10.2 |
using same as specified in https://gerrit.wikimedia.org/g/mediawiki/extensions/CirrusSearch/%2B/HEAD/README
But when trying to run
php /var/www/html/extensions/CirrusSearch/maintenance/UpdateSearchIndexConfig.php
php /var/www/html/extensions/CirrusSearch/maintenance/ForceSearchIndex.php --skipLinks --indexOnSkip
php /var/www/html/extensions/CirrusSearch/maintenance/ForceSearchIndex.php --skipParse
php /var/www/html/maintenance/runJobs.php
Then getting the below error & when trying to search in search engine error message is coming.
also in cirrusearch logs Search backend error during comp_suggest search for 'W' after 5: index_not_found_exception: no such index [wikipoc_titlesuggest]
Updating cluster ... indexing namespaces... Indexing namespaces...done content index... Fetching Elasticsearch version...7.10.2...ok Scanning available plugins...none Picking analyzer...english Inferring index identifier...error Looks like the index has more than one identifier. You should delete all but the one of them currently active.
Here is the list: wikipoc_content,wikipoc_content_1688373423,wikipoc_content_1688373593 [wikipoc] index(es) do not exist.
Did you forget to run updateSearchIndexConfig? [ wikipoc] index(es) do not exist.
Did you forget to run updateSearchIndexConfig?
MediaWiki\Page\PageAssertionException from line 67 of /var/www/html/includes/jobqueue/jobs/RefreshLinksJob.php: The given PageIdentity Special:Badtitle/NS304:Western Sulawesi does not represent a proper page #0 /var/www/html/includes/jobqueue/Job.php(102): RefreshLinksJob->__construct(Object(Title), Array) #1 /var/www/html/includes/jobqueue/JobQueue.php(740): Job::factory('refreshLinksDyn...', Array) #2 /var/www/html/includes/jobqueue/JobQueueDB.php(903): JobQueue->factoryJob('refreshLinksDyn...', Array) #3 /var/www/html/includes/jobqueue/JobQueueDB.php(317): JobQueueDB->jobFromRow(Object(stdClass)) #4 /var/www/html/includes/jobqueue/JobQueue.php(403): JobQueueDB->doPop() #5 /var/www/html/includes/jobqueue/JobQueueGroup.php(287): JobQueue->pop() #6 /var/www/html/includes/jobqueue/JobRunner.php(229): JobQueueGroup->pop(1, 1, Array) #7 /var/www/html/maintenance/runJobs.php(98): JobRunner->run(Array) #8 /var/www/html/maintenance/includes/MaintenanceRunner.php(309): RunJobs->execute() #9 /var/www/html/maintenance/doMaintenance.php(85): MediaWiki\Maintenance\MaintenanceRunner->run() #10 /var/www/html/maintenance/runJobs.php(136): require_once('/var/www/html/m...') #11 {main} Pooja2425 (talk) 09:58, 3 July 2023 (UTC)
Updaing a page using Edit API leaves some page with pending changes
is there a way to completely update the pages using edit api ? as for some pages it is showing Pending Changes once I edit using Edit api.
I have edit access on my user id. 106.213.18.43 (talk) 11:18, 3 July 2023 (UTC)
- I think you need to be in a group that has autoreview rights. See the page Special:ListGroupRights on your wiki. Bawolff (talk) 12:48, 3 July 2023 (UTC)
- So which group is that ? I tried to promote myself to administrator , bureacrate as well and then used edit api to edit . it also giving the same results. Is there any special group which autoreviews ? Chittakk (talk) 15:06, 3 July 2023 (UTC)
- It would depend on your wiki's configuration. Commonly it is included in the admin and reviewers group. Look at Special:listGroupRights to find out Bawolff (talk) 16:11, 3 July 2023 (UTC)
- Actually Pending changes are showing on the pages before I do any changes just after restoring the database. Is there any way to handle this during upgrade? Chittakk (talk) 11:52, 4 July 2023 (UTC)
Do if page contains reference tags
Dear ∀,
I am having a hard time dealing with <ref> tags within templates: How can I place a chapter
=== References ===
in a certain place iff there exist references?
Thank you in advance.
Yours, Ciciban (talk) 11:30, 3 July 2023 (UTC)
- It's all in a div called "mw-references-wrap" so I wonder whether you could add the heading using Common.js. Jonathan3 (talk) 14:34, 3 July 2023 (UTC)
- Should have read before writing! It's possible and here are the details: Help:Cite#Adding_an_automatic_heading_before_the_references_list :-) Jonathan3 (talk) 14:35, 3 July 2023 (UTC)
- 🙏🏻 – Ciciban (talk) 16:46, 3 July 2023 (UTC)
Another newbie experiencing Lua error when trying to get infoboxes.
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I'm brand new to MediaWiki. I've followed the instructions for setting up infoboxes. However, I'm getting the following error and googling the solution hasn't worked out:
Lua error: Cannot create process: proc_open(/dev/null): Failed to open stream: Operation not permitted
proc_open is not disabled, /dev/null permissions are crw-rw-rw- and allow_url_fopen is set to on in php.ini, so in theory this should be working... but it's not.
Any help would be appreciated! RidgelineMedia (talk) 17:09, 3 July 2023 (UTC)
- Fixed, had to remove open_basedir restrictions. RidgelineMedia (talk) 18:51, 3 July 2023 (UTC)
RESTbase deprecation... any migration required?
Given, T262315, will there be any end-user migration requirements? https://wikimedia.org/api/rest_v1/ seems stable (and much improved over the last year or so, thanks to whomever). If so, can one point to docs? Many thanks. Brycehughes (talk) 01:41, 4 July 2023 (UTC)
- @Brycehughes "End user" of what exactly? Do you run your own MediaWiki instance? If so, which version? How do you interact with RESTbase currently? Malyacko (talk) 09:37, 4 July 2023 (UTC)
- Im a bit unclear from the task if there are any user facing changes or if its just how behind the scenes caching stuff works that is getting deprecated. Bawolff (talk) 14:41, 4 July 2023 (UTC)
- I guess (?) it's behind the scenes. But like anything here https://en.wikipedia.org/api/rest_v1/#/ marked as stable. @Malyacko No I don't run my own MW instance. I just consume your (our) content. I do things like hit https://en.wikivoyage.org/api/rest_v1/page/summary/Čičmany @Bawolff Yes, I'm unclear as well. Brycehughes (talk) 17:14, 4 July 2023 (UTC)
- Well i asked on the task. I strongly suspect this is all behind the scenes stuff and you wont be affected. Bawolff (talk) 18:21, 4 July 2023 (UTC)
- Agree. Thanks. Brycehughes (talk) 03:03, 5 July 2023 (UTC)
Api function checkTitlePermissions
When there is a permission error, the error message that is returned is unparsed wikitext. It appears that dieStatus(...) doesnt parse the error message. Is there a way to fix this? 70.29.239.49 (talk) 14:27, 4 July 2023 (UTC)
- Where are you using this and which MW version? – Ammarpad (talk) 09:00, 5 July 2023 (UTC)
Uploaded Images not working
Hello I am creating a wiki page and want to use some images on it. I had previously set up the page on a personal VM to make sure everything was working and it was. Now I've moved the wiki page over to Linux server and my images have stopped working.
This was my first instinct that possibly when moving over the wiki there was something that I needed to change, some file to be modified that I had not done. Below I've listed most of the steps I have tried with no luck, hence my post here.
The way that I had uploaded the images before was using the php maintenance/importImages.php. I also got a confirmation message that the files had been uploaded.
Now that the wiki has been moved to the new server I tried to use the same method as before but now the File:Image_name.png does not work. I went into the special page "Uploads" and I can see the images were uploaded. I am not able to see a thumbnail for the images which makes me think that mediawiki can not actually see the images even if they are uploaded. It also says that the User who uploaded them was "Maintenance script" which is a red font color. (Not sure if the font color is relevant but I've seen medaiwki display that there is an error with red font before)
Something else I have tried is editing my LocalSettings.php file to try and point to my images. I wanted to have the photos stored locally on the server that the wiki is running on. Here are some of the lines in my LocalSettings.php File:
$wgEnableUploads = true;
$wgUploadDirectory ="/local/Photos";
$wgUploadPath = "/local/Photos";
I've used this command to change the permissions of the Photos file:
sudo chmod -R 777 Photos
I feel like there might be something that I am missing please let me know if there is any other information that can help find a solution. Thank you.
Carter Carter.smith1 (talk) 15:06, 4 July 2023 (UTC)
- I just tried to delete all of the photos I had uploaded previously to try and upload them once again. I put my images in /local/Photos then tried to run the following commands.
- $ pwd
- /var/www/html
- $ php maintenance/importImages.php /local/Photos
- Importing Files
- Importing VmwareBluescreen.png...failed. (Could not open lock file for "mwstore://local-backend/local-public/f/fa/VmwareBluescreen.png". 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.)
- Importing gitlab-fork.png...failed. (Could not open lock file for "mwstore://local-backend/local-public/1/16/Gitlab-fork.png". 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.)
- Found: 2
- Failed: 2
- They both failed. I then checked permissions of the folder:
- $ ls -l
- total 4
- drwxrwxrwx 3 root root 4096 Jul 4 11:19 Photos Carter.smith1 (talk) 15:34, 4 July 2023 (UTC)
- SOLUTION:
- I just fixed the issue by giving the images folder 777 permissions. My images folder was located in /var/www/html/images. Carter.smith1 (talk) 17:16, 4 July 2023 (UTC)
- I had the same problem recently. You need to give write permission to php-fpm.
- Do not give 777 permissions on images. 70.29.239.49 (talk) 19:22, 4 July 2023 (UTC)
- I did give 777 permission to images and it worked. Carter.smith1 (talk) 13:38, 5 July 2023 (UTC)
- 777 permissions will work. Some people don't recommend it as it is not the most secure option - although if you are only using the server as a web server and nobody else has access, then it probably doesn't matter much.
- Just for general note, when running importImages.php you should run it as the web user - e.g. if the user that the webserver uses is www-data, you might do
sudo -u www-data importImages.php somedirectoryhereBawolff (talk) 14:02, 5 July 2023 (UTC)
Runjobs are failing after indexing in cirrus search /elastic search
We are using
| MediaWiki | 1.39.3 |
| PHP | 8.1.20 (apache2handler) |
| MySQL | 8.0.31 |
| ICU | 72.1 |
| Elasticsearch | 7.10.2 |
https://extdist.wmflabs.org/dist/extensions/Elastica-master-e018a72.tar.gz
https://extdist.wmflabs.org/dist/extensions/CirrusSearch-REL1_39-da1a983.tar.gz
using same as specified in https://gerrit.wikimedia.org/g/mediawiki/extensions/CirrusSearch/%2B/HEAD/README
in start.sh file we r using below script.
echo '$wgDisableSearchUpdate = true;' >> /var/www/html/LocalSettings.php
php /var/www/html/extensions/CirrusSearch/maintenance/UpdateSearchIndexConfig.php --startOver --conf=/var/www/html/LocalSettings.php
echo '$wgDisableSearchUpdate = false;' >> /var/www/html/LocalSettings.php
php /var/www/html/extensions/CirrusSearch/maintenance/ForceSearchIndex.php --skipLinks --indexOnSkip
php /var/www/html/extensions/CirrusSearch/maintenance/ForceSearchIndex.php --skipParse
php /var/www/html/maintenance/runJobs.php
Also UpdateSearchIndexConfig run properly & indexes done all pages 70455 but at end
Indexed a total of 67420 pages at 6/second
[wikipoc] Indexed 10 pages ending at 70443 at 6/second
[ wikipoc] Indexed 10 pages ending at 70453 at 6/second
wikipoc] Indexed 2 pages ending at 70455 at 6/second
Indexed a total of 67420 pages at 6/second
[ wikipoc] index(es) do not exist. Did you forget to run updateSearchIndexConfig?
2023-07-04 16:24:49 cirrusSearchElasticaWrite Special: method=sendData arguments=["general","array(...)"] cluster=default jobqueue_partition=default-0 createdAt=1688136256 errorCount=0 retryCount=0 requestId=a4279d974ff652ea89baad46 namespace=-1 title= (id=2781663,timestamp=20230630144416) STARTING
2023-07-04 16:25:20 cirrusSearchElasticaWrite Special: method=sendData arguments=["general","array(...)"] cluster=default jobqueue_partition=default-0 createdAt=1688136256 errorCount=0 retryCount=0 requestId=a4279d974ff652ea89baad46 namespace=-1 title= (id=2781663,timestamp=20230630144416) t=31096 error=ElasticaWrite job failed: Requeued
MediaWiki\Page\PageAssertionException from line 67 of /var/www/html/includes/jobqueue/jobs/RefreshLinksJob.php: The given PageIdentity Special:Badtitle/NS424:Gjøa does not represent a proper page
#0 /var/www/html/includes/jobqueue/Job.php(102): RefreshLinksJob->__construct(Object(Title), Array)
#1 /var/www/html/includes/jobqueue/JobQueue.php(740): Job::factory('refreshLinksDyn...', Array)
#2 /var/www/html/includes/jobqueue/JobQueueDB.php(903): JobQueue->factoryJob('refreshLinksDyn...', Array)
#3 /var/www/html/includes/jobqueue/JobQueueDB.php(317): JobQueueDB->jobFromRow(Object(stdClass))
#4 /var/www/html/includes/jobqueue/JobQueue.php(403): JobQueueDB->doPop()
#5 /var/www/html/includes/jobqueue/JobQueueGroup.php(287): JobQueue->pop()
#6 /var/www/html/includes/jobqueue/JobRunner.php(229): JobQueueGroup->pop(1, 1, Array)
#7 /var/www/html/maintenance/runJobs.php(98): JobRunner->run(Array)
#8 /var/www/html/maintenance/includes/MaintenanceRunner.php(309): RunJobs->execute()
#9 /var/www/html/maintenance/doMaintenance.php(85): MediaWiki\Maintenance\MaintenanceRunner->run()
#10 /var/www/html/maintenance/runJobs.php(136): require_once('/var/www/html/m...')
#11 {main}
please suggest , if we try to build container again then all these indexes under data folder going to delete, Are they going to store in db as well.
next build of container will take again 3 hrs of time for all jobs.
please suggest why runjobs are failing. Pooja2425 (talk) 16:49, 4 July 2023 (UTC)
download mirrors?
Is there a mirror to https://lists.wikimedia.org/? the site is down 74.215.149.82 (talk) 20:47, 4 July 2023 (UTC)
- Site is currently up Bawolff (talk) 14:04, 5 July 2023 (UTC)
Namespace

In my wiki, I would like to add three namespaces "Annex:" "Wikiproject:" and "Portal:" and I also want to change the word "page" to "article" as in wikipedia in the (main) namespace. Lomeno 24 (Contact me here) 22:41, 4 July 2023 (UTC)
- How about this? Manual:Using custom namespaces. Jonathan3 (talk) 22:47, 4 July 2023 (UTC)

Sakura Sakuragi Wiki 
Wikipedia - It worked, now I just need to change the word "Page" for the word "Article", how do I do it? Lomeno 24 (Contact me here) 02:44, 5 July 2023 (UTC)
- Edit the page MediaWiki:Nstab-main on your wiki. – Ammarpad (talk) 08:58, 5 July 2023 (UTC)
Certain pages generate "There is currently no text in this page." and cannot be moved.
Greetings.
I've found a couple of pages in my wiki that display "There is currently no text in this page." instead of their prior content. When viewing the page history, I can see the full content in last revision. Trying to edit it shows a conflicting edit, and won't let me save. Attempting to move the page results in "Internal Error - [ZKVvLF5khI-rxJ4N4aNL-gAAAAU] 2023-07-05 13:25:00: Fatal exception of type "MWException"
http://antir.sca.wiki/index.php?title=Skippy%27s_List
I searched and found an old help request on this. I see in the page source that the <input type="hidden" value="20230705131738" name="wpStarttime"/><input type="hidden" value="20230705131738" name="wpEdittime"/> appear with the same value.
So far, I've only seen it on two pages (the page in question, and the part too that it links to). Any ideas? Medwards98020 (talk) 13:29, 5 July 2023 (UTC)
Issue with wiki url
I just set up a wiki on a VM that is running a Linux server. I had been using the IP address of the VM to access the wiki. 10.10.1.43. Now I want the website to be findable by a name. In my LocalSettings.php file my $wgServer = "http://10.10.1.43"; but then I changed it to
$wgServer = "http://wiki-name";
Now when I put the IP in the address bar it changes to http://wiki-name but I receive a 404 File not found error.
When I try to look up the wiki by the name http://wiki-name I get a page that seems like the page does not exist. It says its the "future home for something awesome."
All that I want to be able to do is to acces my wiki through both the IP address and the wiki name. Let me know if you know any solutions. Thanks
Carter Carter.smith1 (talk) 14:54, 5 July 2023 (UTC)
- Do you have the A record set correctly for your domain name? Do you have virtual host options in your web server set correctly?
- Keep in mind that ip addresses starting with 10 are local network only and wont be accessible on the open internet. Bawolff (talk) 16:27, 6 July 2023 (UTC)
- I don't think I need to worry about teh A record because the wiki will not be open to the internet. Only people connected to our network can access it. As for the virtual host options. Where would I need to go to changes these settings? Also what should they be set to? Thanks Carter.smith1 (talk) 18:03, 6 July 2023 (UTC)
- You need the correct A record set for the domain name to work, even if its local network only (on a local only network you might be using a private dns system instead of the public one, but you would still need to set A records, or be using something like /etc/hosts) Bawolff (talk) 21:07, 6 July 2023 (UTC)
- Right now in my etc/hosts it says the following:
- 127.0.1.1 wiki-name
- 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
- ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
- Do you think I should change the 127... number at the top to the actual IP of the machine. 10.10.1.43? If not what do I need to change in this file? Thanks Carter.smith1 (talk) 14:35, 7 July 2023 (UTC)
- Probably. 127.0.1.1 would normally be the current host, not the VM. Bawolff (talk) 20:24, 7 July 2023 (UTC)
- The issue was resolved because our company uses a firewall to define all of the IP and hostnames i had to add my wiki-name and IP there so they would be associated together. Carter.smith1 (talk) 16:45, 12 July 2023 (UTC)
admin
how would someone like me become an admin? Dc883 (talk) 15:02, 5 July 2023 (UTC)
- There is no set formula or protocol for which users can become administrators. After thinking for a while, I would perhaps say this: In order for the users of the wiki community to be able to consider you as the administrator of the project, you must have a long - already years of experience and expertise with the wiki and its practices. You will be able to show your reliability and by participating in all activities of the wiki community and get along with them.
- But as I said, this kind of trust can only be built up after a year at the earliest, which means that the road to becoming an administrator in Wikimedia projects can be long and it requires patience and activity for the sake of the wiki. So I also dare to claim that hardly any of the current administrators of a project have initially sought the position of administrator when joining the project.
- But in principle, any user can become an administrator and certainly will, if they ever agree to such a thing and have the majority support of the community. I hope this helped you somehow. Kanasalaatti (talk) 15:29, 6 July 2023 (UTC)
- Why do you want to be an admin?
- Generally i would suggest not trying to be an admin. Try to be helpful and useful. Eventually (after years) being an admin will be forced on you. Bawolff (talk) 16:22, 6 July 2023 (UTC)
- ah got it thanks Dc883 (talk) 09:50, 24 March 2024 (UTC)
Database error on search
Whenever I try to search for something on my wiki, things appear and thumbnails show, however whenever I click "Search for pages containing 'A'" I get an error. Here is the following error, I am getting:
[10947ca4f74de88bd7695b12] /index.php?title=Special:Search&fulltext=1&search=a 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 145: Table './my_wiki/searchindex' is marked as crashed and should be repaired
Function: SearchMySQL::searchInternal
Query: SELECT page_id,page_namespace,page_title FROM `page`,`searchindex` WHERE (page_id=si_page) AND ( MATCH(si_title) AGAINST('+au800 ' IN BOOLEAN MODE) ) AND page_namespace = 0 ORDER BY MATCH(si_title) AGAINST('+au800 ' IN NATURAL LANGUAGE MODE) DESC LIMIT 21
I am not sure how to resolve this, can you please help me? MarblehorseNet (talk) 22:23, 5 July 2023 (UTC)
- This is rather unusual, but what you need to do is run the mysql
REPAIR TABLEcommand. Either directly via the command line, or via something like phpmyadmin. There are lots of google searches and online course available to help you with this MySQL problem. —TheDJ (Not WMF) (talk • contribs) 12:51, 6 July 2023 (UTC) - Works perfectly, Thank you @TheDJ, had to run
mysqlcheck --repair --databases my_wiki- to get it working properly MarblehorseNet (talk) 16:35, 6 July 2023 (UTC)
Advanced sidebar settings and backup copy
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Greetings to everyone,
during configuration of my wiki, I am struggling with the following issues:
- Having entered a <charinsert> tag into MediaWiki:Edittools of my wiki, it appears below all editing fields as wished. But the characters are not clickable; they are rather exactly shown as within the tag. In combinations such as [[+]], the + character remains unchanged. What is the reason? (You could visit my wiki knowledgereference.org for better understanding.)
- In the Sidebar appearing at the left side of each page, how can I add single links for creating a pdf version and a printable version of the displayed page (like in some Wikipedia versions, such as Italian and German)? I didn't find a hint atManual:Interface/Sidebar. * TOOLBOX does create a link for printable version, but along with many other links which I wish to omit. Thus, I would just like to add the two links (pdf, print) individually into an existing box of customised links at the Sidebar.
- Does Mediawiki have a manual for customising the bar at the bottom of each page? I mean the bar showing Privacy Policy, About, Disclaimer etc. by default.
- Is there a standard function for administrators or for everyone to make backup copies of the wiki's entire contents? I know that Wikipedia offers a function to download its text contents, but this may be a specifically added function.
Thank you for any useful hints! Beliam (talk) 06:07, 6 July 2023 (UTC)
- Question 3 - Manual:Footer. Jonathan3 (talk) 15:06, 6 July 2023 (UTC)
- Thanks to Jonathan for the hint. It works and the issue is solved.
- @Everyone, could you kindly help me with the other questions? Beliam (talk) 08:02, 7 July 2023 (UTC)
- Might be better to close this and create separate topics if the questions are unrelated. The titles might attract the attention of people who know the answers. Jonathan3 (talk) 08:28, 7 July 2023 (UTC)
- Thank you, I will follow your recommendation and post each topic separately. Beliam (talk) 11:14, 7 July 2023 (UTC)
Display redirects literally in search suggestions?
How do I configure my wiki (1.39.4, Vector skin) to display redirects as search suggestions for all users, including anonymous users? Right now, if my wiki has a redirect named "foo" that redirects to "bar", and I type "foo" in the search box, no suggestion appears for "foo". I read Extension:CirrusSearch/CompletionSuggester and, as an experiment, I tried all the different preferences for myself, but the behavior of the search box didn't change for me, even here on mediawiki.org. Thank you very much. Djbwiki (talk) 11:57, 6 July 2023 (UTC)
- On my wiki, redirects are suggested, and I wish they weren't. I don't use Cirrus Search, though an considering it. If you get to the bottom of this, please let us know here :-) Jonathan3 (talk) 15:05, 6 July 2023 (UTC)
- Actually, my site doesn't use CirrusSearch either! So I guess that preference is a red herring. Strangely, I am running 5 wikis on the same codebase, and three of them suggest redirects and two of them don't. Djbwiki (talk) 19:42, 6 July 2023 (UTC)
Text instead of buttons in toolbar
Hi everyone. I have a fresh installation of MediaWiki 1.39. After enabling WikiEdit in LocalSettings.php on edit page toolbar buttons look like this: <wikieditor-toolbar-section-advanced>. What do you think might be the reason for this behavior? Meatlove047 (talk) 15:33, 6 July 2023 (UTC)
- Usually a localisation cache issue.
- Sometimes removing the extension from LocalSettings.php,viewing a page, then adding it back, can help. Bawolff (talk) 16:19, 6 July 2023 (UTC)
- I found how to fix it. For some reason it wasnt saving cache to database, after changing in settings saving cache to folder everything works fine. Dont know what the downside might be Meatlove047 (talk) 21:26, 6 July 2023 (UTC)
- Cache to folder is generally faster anyways Bawolff (talk) 03:39, 7 July 2023 (UTC)
REST PCS not working after REST MCS deprecation
I know Mobile Content Service was set to be deprecated: https://lists.wikimedia.org/hyperkitty/list/mediawiki-api-announce@lists.wikimedia.org/thread/ZBYSZ4VQYIVZFOCEUNCL3ZSSIEECBK6H/
Following the deprecation, it seems some calls to the Page Content Service do not work for Wikivoyage. For example, https://en.wikivoyage.org/api/rest_v1/page/mobile-html/Toronto fails, but works for Wikipedia: https://en.wikipedia.org/api/rest_v1/page/mobile-html/Toronto
Any idea why the discrepancy? Brycehughes (talk) 16:12, 6 July 2023 (UTC)
- Seems like both fail fof me. Maybe one of them was cached and it takes a while for cache to expire. Bawolff (talk) 16:17, 6 July 2023 (UTC)
- That's bizarre... I didn't see any notification of the PCS endpoints being deprecated, and they're not marked as deprecated in the docs. Is there something I missed? Or is this perhaps a bug? Brycehughes (talk) 16:32, 6 July 2023 (UTC)
- It was a misconfigured setting. They've fixed it now. (With impressive speed to be honest) Brycehughes (talk) 17:21, 6 July 2023 (UTC)
Issue with Group Permissions and editing interface.
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 just created a wiki that will be hosted on a private server. I want to allow any user to be able to edit the Sidebar. I understand that to edit the sidebar the user must be logged in. So if I can get new user to make an account then they should be able to edit it. I added the following lines in my LocalSettings.php file to try and give new user the permission to editinterface:
$wgGroupPermissions['Users']['editinterface'] = true;
$wgGroupPermissions['Autoconfirmed users']['editinterface'] = true;
The reason I used those groups is because I created a test account and that was the group that it was put in by default. I'm not sure what I am doing wrong please let me know if I am missing something. Thank you. Carter.smith1 (talk) 16:24, 6 July 2023 (UTC)
- These are the UI names. The group name is "user" for Users, case-sensitive. Autoconfirmed is "autoconfirmed" likewise. – Ammarpad (talk) 16:39, 6 July 2023 (UTC)
- You're amazing! Thank you! Carter.smith1 (talk) 16:48, 6 July 2023 (UTC)
Extension:GeoCrumbs/en needs more translate tags
After recent Fuzzy on Extension:GeoCrumbs/en and Extension:GeoCrumbs/ja, I see smaller pairs of translation tags in /ja page[1]: kindly update tag pairs for translation segments, thank you.
[1]=
Extension:GeoCrumbs/ja at 2023-07-07T02:28:59 Omotecho (talk) 05:06, 7 July 2023 (UTC)
- This page is for MediaWiki support questions; for issues about the mediawiki.org website, report to Village Pump instead. Thanks. Malyacko (talk) 07:50, 7 July 2023 (UTC)
- Thank you, but I am afraid we are translating on mw as well... Omotecho (talk) 08:23, 7 July 2023 (UTC)
CharInsert does not work properly
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,
Following the manual Extension:CharInsert, I have added a <charinsert> tag into MediaWiki:Edittools of my wiki in order to make certain clickable characters appear under each page editing field. The content of the tag shows up at the correct location. But the characters are not clickable; they are rather exactly shown as within the tag. Furthermore, in combinations such as [[+]], the + character remains unchanged. What is the reason? (You could visit my wiki knowledgereference.org for better understanding.)
Thank you for any hint! Beliam (talk) 11:23, 7 July 2023 (UTC)
- Special:Version shows that you do not have the CharInsert extension installed, so there is no code installed that would know what to do with those <charinsert> tags. Please also note that you run an outdated unsupported MediaWiki version - please upgrade for your own safety. Malyacko (talk) 12:58, 7 July 2023 (UTC)
- Thank you for the support. Upgrading the MediaWiki version will be my next task. I have downloaded and unzipped charinstert extension and uploaded it in the extensions directory of my wiki. The instruction further says that I "need to register the extension in LocalSettings.php. The extension documentation should have instructions on how to do this." Can you please tell me where to find that documentation or how to register the extension in LocalSettings.php? Beliam (talk) 14:24, 7 July 2023 (UTC)
- Documentation at extension:CharInsert. But basically, add
wfLoadExtension('CharInsert');to LocalSettings.php Bawolff (talk) 20:24, 7 July 2023 (UTC) - Thank you! Beliam (talk) 08:25, 10 July 2023 (UTC)
Losing permission when logging in wiki
Hello, I'm new to Mediawiki and I'm trying to use the LDAP STACK extensions, I was able to login to Mediawiki with an AD user, but what happens is that when the user logs in and enters the homepage the permission I had given on the Wiki some. For example: I created a user in AD and gave permission on the wiki to sysop, I access it using the command php maintenance/createAndPromote.php it appears in the user_groups table, but as soon as he logs in, the table is empty and he loses permission .
Any idea what it could be? I'm using wiki 1.39 but with 1.35 extensions (I already used 1.39 extensions, but I couldn't even login with AD user)
Thanks!!! 200.201.190.186 (talk) 13:16, 7 July 2023 (UTC)
- Do you have Extension:LDAPGroups enabled? Maybe it is misconfigured and removes the locally assigned groups.
- Can you share your configuration? Please remove all sensitive information. Osnard (talk) 15:00, 8 July 2023 (UTC)
How to make an infobox like the ones on the pages?
Those infoboxes with the green title that you have on some pages of Mediawiki (like Extension:Scribunto). What extension is used to make them? Where can I get the code? Rdm15000 (talk) 23:14, 7 July 2023 (UTC)
- That's Template:Extension. See Help:Templates. Malyacko (talk) 09:28, 8 July 2023 (UTC)
- I must be extremely stupid, because I read the entire two pages and I still don't understand how to put this infobox. Rdm15000 (talk) 12:15, 4 August 2023 (UTC)
규정집을 미디어위키로 운영하고 싶습니다.
우리단체는 종교단체입니다. 별도 규정집을 미디어위키로 운영하고 싶습니다.
위키백과에서 일부 문서를 입력하여 게시했지만 기여계정이 아니라고 차단되었습니다.
여기서도 마찬가지인가요? 단지 별도 권한부여된 사람들만 볼 수 있으며 편집, 읽기, 토론을 했으면 하는데요. 가능할까요? Shinung (talk) 02:12, 8 July 2023 (UTC)
- Hi, see Project:About for what this website is about and what is out of scope.
- You could set up your own server and install the MediaWiki software on your server, if you wanted to host your own wiki on your own server. Malyacko (talk) 09:26, 8 July 2023 (UTC)
Trouble with Infoboxes (Template:Infobox source seems to be added along with actual infobox.)
Hello! I'm pretty new to this side of things, so please forgive me if I've made any fairly obvious mistakes.
For a bit of background, I'm running MediaWiki 1.35.6-1061 off of a Synology NAS. I'm using the version in the package center, and this is the newest available version. I would prefer not to, but if necessary, I'm getting close to the point of doing a manual install through Docker which...I don't know how to use, so I'd prefer not to, but needs must and all. (My Scribunto version should also be compatible with 1.35... I had to roll it back manually--the one that was autodownloaded was a newer version.)
The main issue that I'm having with the Infobox is that that literally any use of this infobox (And indeed any infobox in general. My imported Template:Infobox page is NOT pretty.) seems to just paste the Template:Infobox text into the page along with the actual infobox.
This is the infobox I'm using for testing. It does seem to be working for the most part.
{{infobox
| abovestyle = background:#93c2a0;
| headerstyle = background:#bddec6;
| autoheaders = y
| above = {{{name|<includeonly>{{PAGENAME}}</includeonly>}}}
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size=200px|alt={{{alt|}}}|suppressplaceholder=yes}}
| caption = {{{caption|}}}
| header1 = Section
| label2 = First
| data2 = {{{first|}}}
| label3 = Second
| data3 = {{{second|}}}
}}
This is the extra stuff that I do not want there:
{{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Template|Template
| template
| other
}}
}}
| template = {{#ifeq:Infobox character|Infobox||{{#ifeq:Infobox|Infobox|}}}} | other | #default = }}
(And yes, the if bit is the only part in a code block. The rest of it shows up as plain text.) (And I skip directly to label2 instead of label1 because for some reason label1/data1 just don't show up in the infobox if it's on another page other than this one? It's not really a serious issue since I can just work around it, assuming it's not by design.)
https://imgur.com/a/O94XKZ7 <- I've put some screenshots of what I'm working with here plus some explanation and a screenshot of my source, since I seem to be unable to paste it as plaintext anywhere. Pentodel (talk) 09:52, 8 July 2023 (UTC)
- Figured it out. It seems I was missing wfLoadExtension( 'ParserFunctions' ); in my LocalSettings.php file. Pentodel (talk) 12:07, 9 July 2023 (UTC)
#if and Template:PROTECTIONEXPIRY Failing for Apostrophes
On a template used by many of my main namespace pages I have {{#if:{{PROTECTIONEXPIRY:edit|File:{{PAGENAME}} - image.jpg}}|{{filepath:{{PAGENAME}} - image.jpg}}}}. This shows the filepath if there's an image the matches the current title with " - image.jpg" at the end. (I'm using the workaround mentioned on the Help:Extension:ParserFunctions##if page to prevent the images included on the wanted pages list.
This works well to show most image filepaths when the images exists, but I've noticed it fails if the page has an apostrophe in its title. (I'm sure there are other places where it may fail but apostrophes are probably the most prevalent edge case.)
How can I get it to show me the image filepath if a page is titled "Dante's Inferno" and I have an image at "File:Dante's Inferno - image.jpg". 70.160.223.43 (talk) 01:02, 9 July 2023 (UTC)
- I think I can distill the problem down to just:
{{PROTECTIONEXPIRY:edit|File:Dante's Inferno - image.jpg}}returns infinity even when that image exists.- I've tried different combinations from Manual:PAGENAMEE encoding but I can't seem to find anything that works. 70.160.223.43 (talk) 01:45, 9 July 2023 (UTC)
Disabling or merging an account here
I realized that I've created second account here (this one), on mediawiki.org, while I could login w/ account I've made previously on Wikipedia. I'm sorry but I don't know where to ask for either disabling (since it has zero contributions) or merging an account on this very wiki. Thank you. KatozzKita (talk) 12:26, 9 July 2023 (UTC)
- You should simply stop using the account. – Ammarpad (talk) 19:21, 9 July 2023 (UTC)
Search box doesn't work properly
Dear all,
I'm using wikibase for a personal research project and the search function doesn't seem to be working properly.
First of all, I used the docker image file distributed by Wikimedia Germany and deployed it on the Digital Ocean server.
https://github.com/wmde/wikibase-release-pipeline
Afterwards, I imported a backed up XML file that I worked with on my local server. During this process, I referred to this tutorial: https://www.wikibase.consulting/transferring-wikibase-data-between-wikis/
The import itself went well and each Q-item is accessed and displayed by its URL.
The problem is that the search bar is not working, it used to show a preview of all the matches, now it just shows a spinning wheel no matter what you type and then returns "no matches found".
To resolve this issue, I referenced the article below,
I set LocalSettings.php to the following settings
wgWBRepoSettings['enableEntitySearchUI'] = false;
$wgResourceModules['wikibase.ui.entitysearch']['scripts'] = [];
But that still didn't solve the problem.
I also deleted the docker volume and reinstalled wikibase to try to fix the problem, but even then the search bar didn't work.
The problem was that the search bar didn't work after I changed the settings in the docker-compose.yml file to the IP address below, as referenced in this tutorial.
https://semlab.io/howto/wikibase_basic
QS_PUBLIC_SCHEME_HOST_AND_PORT=http://167.99.xxx.xxx:9191
wb_public_scheme_host_and_port=http://167.99.xxx.xxx:8181
Nevertheless, I believe the search bar itself should work if you have reinstalled.
What could be the problem? Any help would be greatly appreciated.
Thanks Runtonky (talk) 13:27, 9 July 2023 (UTC)
Error messages: 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?
I have deleted MySQL accidently, without any backup processes.
When I try to access the Wiki homepage afterwards, I see the following error messages.
How do I solve this problem? Any help would be greatly appreciated.
Thanks for your attention.
-------------------------------------------------------------------------------------------------
[2065b8a0aec65bb5688b1e43] /w/index.php/%EB%8C%80%EB%AC%B8 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 'policywiki.l10n_cache' doesn't exist
Function: LCStoreDB::get
Query: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'ko' AND lc_key = 'deps' LIMIT 1
Backtrace:
from C:\Apache24\htdocs\w\includes\libs\rdbms\database\Database.php(1618)
#0 C:\Apache24\htdocs\w\includes\libs\rdbms\database\Database.php(1602): Wikimedia\Rdbms\Database->getQueryException()
#1 C:\Apache24\htdocs\w\includes\libs\rdbms\database\Database.php(1576): Wikimedia\Rdbms\Database->getQueryExceptionAndLog()
#2 C:\Apache24\htdocs\w\includes\libs\rdbms\database\Database.php(952): Wikimedia\Rdbms\Database->reportQueryError()
#3 C:\Apache24\htdocs\w\includes\libs\rdbms\database\Database.php(1711): Wikimedia\Rdbms\Database->query()
#4 C:\Apache24\htdocs\w\includes\libs\rdbms\database\Database.php(1664): Wikimedia\Rdbms\Database->select()
#5 C:\Apache24\htdocs\w\includes\libs\rdbms\database\DBConnRef.php(103): Wikimedia\Rdbms\Database->selectField()
#6 C:\Apache24\htdocs\w\includes\libs\rdbms\database\DBConnRef.php(313): Wikimedia\Rdbms\DBConnRef->__call()
#7 C:\Apache24\htdocs\w\includes\language\LCStoreDB.php(61): Wikimedia\Rdbms\DBConnRef->selectField()
#8 C:\Apache24\htdocs\w\includes\language\LocalisationCache.php(451): LCStoreDB->get()
#9 C:\Apache24\htdocs\w\includes\language\LocalisationCache.php(497): LocalisationCache->isExpired()
#10 C:\Apache24\htdocs\w\includes\language\LocalisationCache.php(373): LocalisationCache->initLanguage()
#11 C:\Apache24\htdocs\w\includes\language\LocalisationCache.php(314): LocalisationCache->loadItem()
#12 C:\Apache24\htdocs\w\includes\language\LanguageFallback.php(106): LocalisationCache->getItem()
#13 C:\Apache24\htdocs\w\includes\language\LanguageFactory.php(186): MediaWiki\Languages\LanguageFallback->getAll()
#14 C:\Apache24\htdocs\w\includes\language\LanguageFactory.php(144): MediaWiki\Languages\LanguageFactory->newFromCode()
#15 C:\Apache24\htdocs\w\includes\libs\MapCacheLRU.php(274): MediaWiki\Languages\LanguageFactory->MediaWiki\Languages\{closure}()
#16 C:\Apache24\htdocs\w\includes\language\LanguageFactory.php(141): MapCacheLRU->getWithSetCallback()
#17 C:\Apache24\htdocs\w\includes\language\LanguageFactory.php(128): MediaWiki\Languages\LanguageFactory->getRawLanguage()
#18 C:\Apache24\htdocs\w\includes\ServiceWiring.php(452): MediaWiki\Languages\LanguageFactory->getLanguage()
#19 C:\Apache24\htdocs\w\vendor\wikimedia\services\src\ServiceContainer.php(445): Wikimedia\Services\ServiceContainer::{closure}()
#20 C:\Apache24\htdocs\w\vendor\wikimedia\services\src\ServiceContainer.php(411): Wikimedia\Services\ServiceContainer->createService()
#21 C:\Apache24\htdocs\w\includes\MediaWikiServices.php(301): Wikimedia\Services\ServiceContainer->getService()
#22 C:\Apache24\htdocs\w\includes\MediaWikiServices.php(855): MediaWiki\MediaWikiServices->getService()
#23 C:\Apache24\htdocs\w\includes\ServiceWiring.php(2060): MediaWiki\MediaWikiServices->getContentLanguage()
#24 C:\Apache24\htdocs\w\vendor\wikimedia\services\src\ServiceContainer.php(445): Wikimedia\Services\ServiceContainer::{closure}()
#25 C:\Apache24\htdocs\w\vendor\wikimedia\services\src\ServiceContainer.php(411): Wikimedia\Services\ServiceContainer->createService()
#26 C:\Apache24\htdocs\w\includes\MediaWikiServices.php(301): Wikimedia\Services\ServiceContainer->getService()
#27 C:\Apache24\htdocs\w\includes\MediaWikiServices.php(1940): MediaWiki\MediaWikiServices->getService()
#28 C:\Apache24\htdocs\w\includes\session\SessionManager.php(224): MediaWiki\MediaWikiServices->getUserNameUtils()
#29 C:\Apache24\htdocs\w\includes\session\SessionManager.php(130): MediaWiki\Session\SessionManager->__construct()
#30 C:\Apache24\htdocs\w\includes\Setup.php(440): MediaWiki\Session\SessionManager::singleton()
#31 C:\Apache24\htdocs\w\includes\WebStart.php(86): require_once(string)
#32 C:\Apache24\htdocs\w\index.php(44): require(string)
#33 {main} PathfinderIk (talk) 05:26, 10 July 2023 (UTC)
- "deleted MySQL accidently, without any backup processes" then you are screwed and will have to do a fresh new install. —TheDJ (Not WMF) (talk • contribs) 15:17, 10 July 2023 (UTC)
- I should try it. Thanks for answer and your kindness. PathfinderIk (talk) 05:39, 12 July 2023 (UTC)
Backup copy of wiki contents
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, does Media Wiki offer a standard function to make backup copies of a wiki's entire contents? Both human readable format or a file which can be uploaded into the wiki again would be fine. I know that Wikipedia offers a function to download its text contents (see https://en.wikipedia.org/wiki/Wikipedia:Database_download), but this might be a specifically added function. Beliam (talk) 08:46, 10 July 2023 (UTC)
- Manual:Backing up a wiki; Manual:Restoring a wiki from backup Malyacko (talk) 11:10, 10 July 2023 (UTC)
- Thank you, it has worked. Beliam (talk) 13:52, 11 July 2023 (UTC)
How can I hide this navigation?
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, might be a stupid question but how can I hide the navigation panel that's on the left?
Where it says:
"Main page"
"recent changes"
"randon page"
"help about mediawiki"
etc
I want to make the maig page section wider so it fits on the screen. 2A02:C7C:943A:7F00:7D88:26D1:AB29:607D (talk) 08:57, 10 July 2023 (UTC)
search result "out of" value is not correct
The search result "out of" value is not correct. It only show the search result in the current page to the total search result from the search query.
eg: if I search for something I get 1 – 27 of 27 but If i click next 20 there are more results..
I'm upgrading to 1.39 from 1.26->1.35. Previously I was on SphinxSearch but I decided to drop it since the project is not being maintained. Jeffryjohar (talk) 16:54, 10 July 2023 (UTC)
Cannot access ExtensionDistributor
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi, I am new to MediaWiki so please forgive me if this is unrelated to the MediaWiki software. I cannot seem to download any extensions from https://www.mediawiki.org/wiki/Special:ExtensionDistributor. When I open the link, I am just greeted with "Unable to fetch extension list!". This was working fine for me just a few days ago. How do I fix this? Blyatman9000 (talk) 06:12, 11 July 2023 (UTC)
- It likely was a temporary glitch. It seems to work for me now. —TheDJ (Not WMF) (talk • contribs) 09:28, 11 July 2023 (UTC)
- Oh ok, yeah it works for me now. Guess it was just unfortunate timing on my part. I spent a while configuring all my settings so when it suddenly stopped working I thought I broke something and started panicking. Blyatman9000 (talk) 10:10, 11 July 2023 (UTC)
User Groups
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.
Do we have the interface to add new user groups ? If not, do we have any extension to enable this ?
We have Mediawiki 1.40 configured and I have admin rights 27.59.183.39 (talk) 07:14, 11 July 2023 (UTC)
- Yes, use Special:Userrights page. – Ammarpad (talk) 08:17, 11 July 2023 (UTC)
- If you want to DEFINE new user groups, you have to do that via LocalSettings.php See also: Manual:User_rights#Creating_a_new_group_and_assigning_permissions_to_it —TheDJ (Not WMF) (talk • contribs) 09:26, 11 July 2023 (UTC)
- Oh, yes. I misread the question. – Ammarpad (talk) 14:03, 11 July 2023 (UTC)
Warning: dba_open ..cache/l10n_cache-de.cdb.tmp
I upgraded from Version 1.36 to 1.39.4. I copied all the necessary files to the new wiki (rights are set to 577, I updated all extensions and run .../mw-config/. Database changes were made successfully but I get the following error messages:
Warning: dba_open(/volume1/web/mediawiki/cache/l10n_cache-de.cdb.tmp.1927634506): failed to open stream: Permission denied in /volume1/web/mediawiki/vendor/wikimedia/cdb/src/Writer/DBA.php on line 35
[d4c0eeba6c942f190c06c795] /mediawiki/ MWException: Unable to open CDB file for write "/volume1/web/mediawiki/cache/l10n_cache-de.cdb"
In the 1.39.4-Wiki the cache folder was empty. After I have read the error message I copied the whole cache folder from 1.36 to the new 1.39.4 wiki. With no success.
Backtrace:
from /volume1/web/mediawiki/includes/language/LCStoreCDB.php(100)
#0 /volume1/web/mediawiki/includes/language/LocalisationCache.php(1047): LCStoreCDB->startWrite(string)
#1 /volume1/web/mediawiki/includes/language/LocalisationCache.php(499): LocalisationCache->recache(string)
#2 /volume1/web/mediawiki/includes/language/LocalisationCache.php(373): LocalisationCache->initLanguage(string)
#3 /volume1/web/mediawiki/includes/language/LocalisationCache.php(314): LocalisationCache->loadItem(string, string)
#4 /volume1/web/mediawiki/includes/language/LanguageFallback.php(106): LocalisationCache->getItem(string, string)
#5 /volume1/web/mediawiki/includes/language/LanguageFactory.php(186): MediaWiki\Languages\LanguageFallback->getAll(string)
#6 /volume1/web/mediawiki/includes/language/LanguageFactory.php(144): MediaWiki\Languages\LanguageFactory->newFromCode(string)
#7 /volume1/web/mediawiki/includes/libs/MapCacheLRU.php(274): MediaWiki\Languages\LanguageFactory->MediaWiki\Languages\{closure}()
#8 /volume1/web/mediawiki/includes/language/LanguageFactory.php(145): MapCacheLRU->getWithSetCallback(string, Closure)
#9 /volume1/web/mediawiki/includes/language/LanguageFactory.php(128): MediaWiki\Languages\LanguageFactory->getRawLanguage(string)
#10 /volume1/web/mediawiki/includes/ServiceWiring.php(453): MediaWiki\Languages\LanguageFactory->getLanguage(string)
#11 /volume1/web/mediawiki/vendor/wikimedia/services/src/ServiceContainer.php(447): Wikimedia\Services\ServiceContainer::{closure}(MediaWiki\MediaWikiServices)
#12 /volume1/web/mediawiki/vendor/wikimedia/services/src/ServiceContainer.php(411): Wikimedia\Services\ServiceContainer->createService(string)
#13 /volume1/web/mediawiki/includes/MediaWikiServices.php(301): Wikimedia\Services\ServiceContainer->getService(string)
#14 /volume1/web/mediawiki/includes/MediaWikiServices.php(855): MediaWiki\MediaWikiServices->getService(string)
#15 /volume1/web/mediawiki/includes/ServiceWiring.php(2060): MediaWiki\MediaWikiServices->getContentLanguage()
#16 /volume1/web/mediawiki/vendor/wikimedia/services/src/ServiceContainer.php(447): Wikimedia\Services\ServiceContainer::{closure}(MediaWiki\MediaWikiServices)
#17 /volume1/web/mediawiki/vendor/wikimedia/services/src/ServiceContainer.php(411): Wikimedia\Services\ServiceContainer->createService(string)
#18 /volume1/web/mediawiki/includes/MediaWikiServices.php(301): Wikimedia\Services\ServiceContainer->getService(string)
#19 /volume1/web/mediawiki/includes/MediaWikiServices.php(1940): MediaWiki\MediaWikiServices->getService(string)
#20 /volume1/web/mediawiki/includes/session/SessionManager.php(224): MediaWiki\MediaWikiServices->getUserNameUtils()
#21 /volume1/web/mediawiki/includes/session/SessionManager.php(130): MediaWiki\Session\SessionManager->__construct()
#22 /volume1/web/mediawiki/includes/Setup.php(440): MediaWiki\Session\SessionManager::singleton()
#23 /volume1/web/mediawiki/includes/WebStart.php(86): require_once(string)
#24 /volume1/web/mediawiki/index.php(44): require(string)
#25 {main}
Do somebody know where the problem is?
Thomas TS (talk) 07:32, 11 July 2023 (UTC)
- 577 means that the owner is only allowed to read from the cache and not to write. The rights for /volume1/web/mediawiki/cache (and also for things like the uploads directory) should be 755 or 775 (depending on your linux group setups etc). —TheDJ (Not WMF) (talk • contribs) 09:24, 11 July 2023 (UTC)
- I set the rights first to 755 then to 775. The error message remains the same.
- Any suggestions?
- Is there a possibility to prevent writing to the cache?
- Thanks in advance
- Thomas TS (talk) 13:34, 12 July 2023 (UTC)
- I set $wgMainCacheType to CACHE_NONE and now it seems to work but I got problems with my pictures and thumbnails.
- I will go back to version 1.35 and stick there. I don't know why this upgrade is not working properly.
- Thomas TS (talk) 14:47, 12 July 2023 (UTC)
- Instead of setting $wgMainCacheType to none, you could just not set $wgCacheDirectory, which is not as extreme as disabling all cache.
- It is most likely when copying over files you copied them with different permissions or user (e.g. maybe previously the directory was owned by www-data and now its owned by some other user.). Use
ls -lato check what the permissions, group and owner are on the old server and the new server, and see if they match, particularly for the cache directory and everything in it. - Another possibility (albeit less likely) is something like selinux. Bawolff (talk) 16:39, 14 July 2023 (UTC)
- The rights are set everywhere to 755 but how can I change the owner? TS (talk) 09:36, 21 July 2023 (UTC)
- From the command line you can use the chown command. You may have to use it with sudo Bawolff (talk) 20:29, 21 July 2023 (UTC)
issue whene searching some pages after upgrade MW
Hello,
i upgrade my MW from 1.28 to 1.39, all things is OK and a have the same number of articles after upgrade.
i'm using elastica and CirrusSearch for searching pages on MW
after upgrade the MW i run this two command to reindex wiki
php updateSearchIndexConfig.php --reindexAndRemoveOk --indexIdentifier now
php forceSearchIndex.php
on the new version, when I search for pages by entering a word in the search bar, sometimes, it shows me all the results (the pages) which contain this word but in other cases it tells me "There were no results matching the query" WHILE in the OLD version of MW it shows me all the results (the pages) which contain this word and if I type the exact name of the page (which contain this word) in the search bar on the new MW I find it.
Do you have any idea please for this behavor ?
Thank you Raoufgui (talk) 10:45, 11 July 2023 (UTC)
The only bureaucrat is not available/ creating new administrators?
Hello,
I am new to MediaWiki and don't know programming, but can get by doing some basic editing in our wiki. I asked an IT-guy at work for help but he couldn't figure it out/ wondered where the php-files are stored.
The question:
At my workplace we have a wiki: TDMwiki (farmakologiportalen.no) but the only bureaucrat is no longer available to us. Is it possible to make a few of us into bureaucrats so that we can turn more users into administrators of the wiki? It would be useful to us if more users could have the right to add new users. 91.186.70.24 (talk) 11:25, 11 July 2023 (UTC)
- Maybe this? Manual:createAndPromote.php. Jonathan3 (talk) 13:23, 11 July 2023 (UTC)
I want to open each link on new tab.
If possible all links defined on page should get open on new tab 49.207.202.162 (talk) 14:39, 11 July 2023 (UTC)
- just for you, or for all users, and on which website(s) —TheDJ (Not WMF) (talk • contribs) 11:25, 12 July 2023 (UTC)
How to delete account?
Is it possible to delete an account on a Wiki hosted on MediaWiki? I created multiple accounts, but am no longer interested in having them, and so would like to delete most of them if possible. 89.35.25.28 (talk) 15:48, 11 July 2023 (UTC)
- Depends on the wiki in question. Different wikis have different policies on this. You should contact an administrator of the wiki in question. Bawolff (talk) 16:40, 14 July 2023 (UTC)
Review articles before import
Hi everyone! I'm experimenting with a wiki of my own. I would like to import articles from wikipedia and review them before they are published on my wiki. I would like imported articles to be invisible until the review is done. Is this possible? 45.148.17.35 (talk) 16:33, 11 July 2023 (UTC)
WikibaseCirrusSearch
I installed Wikibase using the docker image pipeline distributed by Wikimedia Germany. elasticsearch was also installed using docker-compose.extra.yml.
https://github.com/wmde/wikibase-release-pipeline/blob/main/example/docker-compose.extra.yml
From the documentation below, it looks like additional extensions like CirrusSearch were installed in the container folder when installing Wikipedia,
https://github.com/wmde/wikibase-release-pipeline/tree/wmde.11/Docker/build/WikibaseBundle
So, since the template in LocalSettings.php.template is automatically applied during compose-up, I don't need to add any additional settings in LocalSettings.php like wfLoadExtension( 'WikibaseCirrusSearch' );?
I am not sure if I understand how this works correctly. Runtonky (talk) 17:24, 11 July 2023 (UTC)
Is an account here the same as having an account on Conservapedia
I followed a create account link from Conservapedia and when I try to log in there to ask a question on a talk page I am told there is no such user as the one I am currently logged in here posting with. I can't do anything on Conservapedia without being logged in even though mouse hovers say otherwise. In case anyone here has a CP account, my objection to an statement about maximum human life span on Biblical Scientific Foreknowledge is that Genesis 6:3 does not say man will live no longer than 120 years. There are plenty of examples contradicting that view, even up to modern times. DavidAlanNix (talk) 22:30, 11 July 2023 (UTC)
- Conservapedia requires a separate account creation as that project and MediaWiki.org are operated by separate organizations. An account can only be made by sysops (administrators) there because the
$wgGroupPermissions ['*'] ['createaccount']is set tofalse. See Manual:Preventing access. Tropicalkitty (talk) 03:52, 12 July 2023 (UTC)
Technical support
we are looking for a technical support to install, configure and migrate from existing application. Please let me know your contact matrix, so that I can include my team as well. It be helpful if we can have a on-call support. Szmypge (talk) 07:34, 12 July 2023 (UTC)
[[Archivo: to [[File:
I have a MediaWiki with many entries where each photo is entered with the tag [[Archivo:imagen.jpg and I see that now the standard is File and doing a simple restoration of the site only the images work for me if I change Archivo to File. How should I change Archivo to File? DaniGED (talk) 14:09, 12 July 2023 (UTC)
- Nobody knows how to change all posts at once from "[[Archivo:" to [[File:? DaniGED (talk) 08:59, 13 July 2023 (UTC)
- You can use Extension:Replace Text for this. – Ammarpad (talk) 10:21, 13 July 2023 (UTC)
- thanks Ammarpad ! good solution DaniGED (talk) 07:22, 14 July 2023 (UTC)
- Alternatively you can:
- Set the language of mediawiki to "es" so it uses spanish for the file namespace
- Set
$wgNamespaceAliases['Archivo'] = NS_FILE;which will make Archivo be an alias for the file namespace even if the language of the wiki is not spanish. Bawolff (talk) 16:31, 14 July 2023 (UTC)
Incorrect username or password entered. Please try again.
Trying to login in to mediawiki locally but it does not allow me.
Please help. 2600:1700:EB50:5CD0:5D97:698F:647B:3E68 (talk) 14:33, 12 July 2023 (UTC)
- What is your question? Please also read "Post a new question" in the sidebar first and provide some basic info plus clear (!) steps to reproduce. Malyacko (talk) 08:18, 13 July 2023 (UTC)
Error deleting file: Could not open lock file
I was trying to delete an image that I had uploaded using the maintenance scrip. When I go to delete it I get the following error:
Error deleting file: Could not open lock file for "mwstore://local-backend/local-public/0/03/Smiley.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.
The following are line in my local settings file:
$wgUploadDirectory ="/var/www/html/images";
$wgGroupPermissions['users']['delete'] = true;
$wgGroupPermissions['autoconfirmed']['delete'] = true;
The images directory has 777 permissions. I dont know why it wont let me delete teh image. Let me know if you have any advice. Thanks Carter.smith1 (talk) 15:09, 12 July 2023 (UTC)
Is koha installation from git repository possible in ubuntu 22.04?
I am trying to install koha from git repository in ubuntu 22.04. Installation is failing in "make test" step..is there any tutorial avaialble or can i use the same tutorial mentioned for 14.04?
I would like to clone the application and need to try some custom integrations , host in our own server. Is this possible? Youv23 (talk) 05:59, 13 July 2023 (UTC)
- @Youv23 Welcome to the MediaWiki Support desk, where you can ask MediaWiki questions! What makes you think that we know what "koha" is or know anything about it? Malyacko (talk) 08:17, 13 July 2023 (UTC)
MediaWiki 1.40 internal error
Hi,
I have here a Windows Server 2022 Datacenter where I run IIS.
Now I should install and set up PHP8.2 and MediaWiki1.40.
Unfortunately after the installation of MediaWiki it comes to the following message:
MediaWiki 1.40 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:
- mbstring (more information)
- fileinfo (more information)
- intl (more information)
But I have also already looked where the PHP.ini is and tried to change so that the listed points are activated.
Unfortunately without success!
PHPinfo.php has unfortunately also not been able to help, because there
Configuration file (php.ini) path no value
Loaded configuration file (none), see following.
PHP Version 8.2.7
| System | Windows NT SERVER-NEU 10.0 build 20348 (Windows Server 2022) AMD64 |
| Build Date | Jun 7 2023 10:21:37 |
| Build System | Microsoft Windows Server 2019 Datacenter [10.0.17763] |
| Compiler | Visual C++ 2019 |
| Architecture | x64 |
| Configure Command | cscript /nologo /e:jscript configure.js "--enable-snapshot-build" "--enable-debug-pack" "--disable-zts" "--with-pdo-oci=..\..\..\..\instantclient\sdk,shared" "--with-oci8-19=..\..\..\..\instantclient\sdk,shared" "--enable-object-out-dir=../obj/" "--enable-com-dotnet=shared" "--without-analyzer" "--with-pgo" |
| Server API | CGI/FastCGI |
| Virtual Directory Support | disabled |
| Configuration File (php.ini) Path | no value |
| Loaded Configuration File | (none) |
| Scan this dir for additional .ini files | (none) |
| Additional .ini files parsed | (none) |
| PHP API | 20220829 |
| PHP Extension | 20220829 |
| Zend Extension | 420220829 |
| Zend Extension Build | API420220829,NTS,VS16 |
| PHP Extension Build | API20220829,NTS,VS16 |
| Debug Build | no |
| Thread Safety | disabled |
| Zend Signal Handling | disabled |
| Zend Memory Manager | enabled |
| Zend Multibyte Support | disabled |
| Zend Max Execution Timers | disabled |
| IPv6 Support | enabled |
| DTrace Support | disabled |
| Registered PHP Streams | php, file, glob, data, http, ftp, compress.zlib, phar |
| Registered Stream Socket Transports | tcp, udp |
| Registered Stream Filters | convert.iconv.*, string.rot13, string.toupper, string.tolower, convert.*, consumed, dechunk, zlib.* |
Linklabor (talk) 08:49, 13 July 2023 (UTC)
- You should consult the documentation of wherever you got your version of PHP. You may have to download a separate DLL file for these extensions.
- You might also be editing the wrong php.ini file. Which php.ini file is the correct one depends on a number of factors. You should consult the documentation of your copy of PHP as it may be different for different sources of php. Bawolff (talk) 16:32, 14 July 2023 (UTC)
Problem with search
When i try to search smth in my mediawiki, this error occurs
[7a688317071b9e8f4bcd34d4] /index.php?search=se&title=%D0%A1%D0%BB%D1%83%D0%B6%D0%B5%D0%B1%D0%BD%D0%B0%D1%8F%3A%D0%9F%D0%BE%D0%B8%D1%81%D0%BA&fulltext=1 Wikimedia\Assert\PreconditionException: Precondition failed: This Title instance does not represent a proper page, but merely a link target.
Backtrace:
from /var/www/html/vendor/wikimedia/assert/src/Assert.php(49)
#0 /var/www/html/includes/title/Title.php(4253): Wikimedia\Assert\Assert::precondition()
#1 /var/www/html/includes/title/Title.php(4234): MediaWiki\Title\Title->assertProperPage()
#2 /var/www/html/includes/Revision/RevisionStore.php(1831): MediaWiki\Title\Title->getId()
#3 /var/www/html/includes/Revision/RevisionStore.php(1736): MediaWiki\Revision\RevisionStore->ensureRevisionRowMatchesPage()
#4 /var/www/html/includes/Revision/RevisionStore.php(1612): MediaWiki\Revision\RevisionStore->newRevisionFromRowAndSlots()
#5 /var/www/html/includes/Revision/RevisionStore.php(2349): MediaWiki\Revision\RevisionStore->newRevisionFromRow()
#6 /var/www/html/includes/Revision/RevisionStore.php(1291): MediaWiki\Revision\RevisionStore->loadRevisionFromConds()
#7 /var/www/html/includes/search/RevisionSearchResultTrait.php(53): MediaWiki\Revision\RevisionStore->getRevisionByTitle()
#8 /var/www/html/includes/search/RevisionSearchResult.php(18): RevisionSearchResult->initFromTitle()
#9 /var/www/html/includes/search/SqlSearchResult.php(37): RevisionSearchResult->__construct()
#10 /var/www/html/includes/search/SqlSearchResultSet.php(61): SqlSearchResult->__construct()
#11 /var/www/html/includes/search/SearchResultSet.php(76): SqlSearchResultSet->extractResults()
#12 /var/www/html/includes/search/SearchResultSet.php(187): SearchResultSet->count()
#13 /var/www/html/includes/search/SearchEngine.php(203): SearchResultSet->shrink()
#14 /var/www/html/includes/search/SearchEngine.php(98): SearchEngine->maybePaginate()
#15 /var/www/html/includes/specials/SpecialSearch.php(468): SearchEngine->searchText()
#16 /var/www/html/includes/specials/SpecialSearch.php(250): SpecialSearch->showResults()
#17 /var/www/html/includes/specialpage/SpecialPage.php(701): SpecialSearch->execute()
#18 /var/www/html/includes/specialpage/SpecialPageFactory.php(1475): SpecialPage->run()
#19 /var/www/html/includes/MediaWiki.php(327): MediaWiki\SpecialPage\SpecialPageFactory->executePath()
#20 /var/www/html/includes/MediaWiki.php(923): MediaWiki->performRequest()
#21 /var/www/html/includes/MediaWiki.php(576): MediaWiki->main()
#22 /var/www/html/index.php(50): MediaWiki->run()
#23 /var/www/html/index.php(46): wfIndexMain()
#24 {main} Zyerb (talk) 09:37, 13 July 2023 (UTC)
- I am using
| MediaWiki | 1.40.0 |
| PHP | 8.1.2-1ubuntu2.13 (apache2handler) |
| ICU | 70.1 |
| MySQL | 8.0.33-0ubuntu0.22.04.2 |
- I have this error when i am trying to search things that exactly exist, for example "server" in my mediawiki, when i am searching random words, that are not in articles, for example "asdf", there are no error Zyerb (talk) 09:44, 13 July 2023 (UTC)
- https://wiki.smartplayer.org link to the mediawiki Zyerb (talk) 10:00, 13 July 2023 (UTC)
Clickable image+text
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi,
Is there a way to make a <div> within the source editor, it includes an image and then text, into a single clickable button that then links to a different page?
<a href=""> doesn't seem allowed in the source editor, so the css trick doesn't seem to work.
Cheers Zarathustra999 (talk) 10:14, 13 July 2023 (UTC)
LDAP Authentication failed
I am getting "The supplied credentials could not be authenticated." can anyone tell why I am getting this and tried with all possibilities.
I am using all latest versions of extensions but still this error occurs
If there is any extensions with specified version that supports medieswiki1.4.0 let me know. It will be helpful if you provide any solution for this issue.
Thanks 106.51.81.230 (talk) 11:44, 13 July 2023 (UTC)
- Hello,
- It seems that you have something wrong in LDAP configuration, because that error happens when there are no "primary authentication providers" to process your credentials.
- Could you please share with me part of your
LocalSettings.phpconfiguration related to LDAP? - Also it would be great to some logs to understand where is the problem. You can get logs by enabling them in
LocalSettings.php:Then either try to authenticate again or use these LDAP scripts from CLI:$wgDebugLogGroups['PluggableAuth'] = $wgDebugLogGroups['authentication'] = $wgDebugLogGroups['LDAP'] = $wgDebugLogGroups['MediaWiki\\Extension\\LDAPProvider\\Client'] = $wgDebugLogGroups['LDAPGroups'] = $wgDebugLogGroups['LDAPUserInfo'] = $wgDebugLogGroups['LDAPAuthentication2'] = $wgDebugLogGroups['LDAPAuthorization'] = '/tmp/LDAP.log';
php extensions/LDAPProvider/maintenance/ShowUserInfo.php --domain YourDomain --username SomeUserphp extensions/LDAPProvider/maintenance/ShowUserGroups.php --domain YourDomain --username SomeUserphp extensions/LDAPProvider/maintenance/CheckLogin.php --domain YourDomain --username SomeUser- Be aware that
YourDomainneeds to be the exact same value that is specified in the domain config (e.g. the root node ofldapprovider.json). AKulbii (talk) 19:45, 15 July 2023 (UTC)
CEST to UTC
I need help to change the CEST to UTC in the signatures with date and time in my wiki.


Lomeno 24 (Contact me here) 00:46, 14 July 2023 (UTC)
(skin: vector-2022) Nice TOC not on Main page, other pages ok
Hello team,
I like the TOC of vector-2022 very much. I have it on all my pages now, much better than the traditional one on the top. There is one thing I struggle with. I cannot set this on my Main page, even when I make a brand new one.
Any idea?
Thanks, JB
| Version | MediaWiki 1.39.3 |
| Skin | vector-2022 |
| Screenprint | [screenprint] |
Janbartbergers (talk) 13:52, 14 July 2023 (UTC)
- Do the mainpage has enough sections to generate TOC? Also ensure there's no
- __NOTOC__
anywhere in the page (or even from a template transcluded in the page) – Ammarpad (talk) 14:47, 14 July 2023 (UTC)- There are sufficient sections yes, also no
- __NOTOC__
. I might have read somewhere that someone else had an issue with it. Thought it might be a known issue.- See screenshots
| 1. As it shows on the Main page | [screenprint] |
| 2. It shows TOC after clicking icon on other pages | [screenprint] |
| 3. It moves to the sidebar when clicked | [screenprint] |
- And 2. and 3. as I would like to have, but not able to set at Main page.
- When I delete the Main page and create a new one, same issue. Each other new normal (not Main) page no problem.
- Thanks for replying,
- -JB Janbartbergers (talk) 18:47, 14 July 2023 (UTC)
- You say there's no
__NOTOC__, but there's. You should remove that first and let the TOC show up (before fixing issue of how it's displayed). – Ammarpad (talk) 06:23, 15 July 2023 (UTC) - Hi Ammarpad,
- you got me wrong. Correct I added the
__NOTOC__(again) because I don't want the traditional TOC on top of the page but the Vector-2022 fancy thing. - When I remove the NOTOC directive you will see this [screenprint] and that is not what I want.
- My issue is not having a TOC on my Main page but not succeeding in getting the Vector-2022 one as in [screenprint] and [screenprint]
- Sorry that I might be not clear in my communication.
- -JB Janbartbergers (talk) 09:26, 15 July 2023 (UTC)
How to let template parameter receive raw wikitext ?
Without using <nowiki> tag when calling the template. Cirno.Tim (talk) 04:31, 15 July 2023 (UTC)
- What's the underlying usecase? Malyacko (talk) 19:37, 15 July 2023 (UTC)
Does MediaWiki only write to directory images?
Does the MediaWiki Software only write to the directory "images" (and to the database)? That would give me the possibility to write protect all other directories to prevent possible security issues.
| Software | Version |
|---|---|
| MediaWiki | 1.39.4 |
| PHP | 8.0.28 (cgi-fcgi) |
| MariaDB | 10.6.12-MariaDB-1:10.6.12+maria~deb11-log |
Tags for searches: strato site lock Wolf Dieter Dallinger (talk) 09:41, 15 July 2023 (UTC)
- The MediaWiki web application usually only needs write access to the
images/andcache/directories in the file system. Everything else that the application needs to touch lives in the database. - So yes, for security reasons only those directories should be writeable by the webserver. Also you should make sure only the entrypoint scripts like
index.php,load.php,api.php... are web accessible. Be careful: Some extensions/skins also load image files from theextensions//skins/directory. But those directories should only serve static files. - See also Apache_configuration and Manual:System_administration in general. Osnard (talk) 06:21, 17 July 2023 (UTC)
The diff engine's handling of Western and Eastern languages
Hi everyone,
I have my own MediaWiki at poke-sources.info. The wiki contains a mixture of English and Japanese content.
The problem is that, by default, MediaWiki's diff engine doesn't work on Japanese text. See this: https://poke-sources.info/w/index.php?title=Sandbox&diff=3797&oldid=3796
The diff engine marks the entire paragraph as changed, instead of the specific characters that were changed. The engine is in 'Western mode', in which the languages use spaces to separate words. In Japanese, spaces are often not used like that.
Is there a way to switch the diff engine to 'bicoastal mode' or something, so that it not only knows how to handle Western languages, but also Eastern languages (Japanese, Chinese, Thai, etc.)?
If that isn't possible, can someone tell me how to change the language of the diff engine, but not the entire wiki? Manifestation (talk) 15:00, 15 July 2023 (UTC)
- I'm not entirely sure why this is a problem. The only thing I can think of is that the builtin diff algo of MediaWiki, this doesn't work and that you might have to use the wikidiff2 php extension. —TheDJ (Not WMF) (talk • contribs) 12:52, 18 July 2023 (UTC)
- I did look at the Wikidiff2 page. It has no install instruction for Windows. Note that Wikidiff2 isn't a MediaWiki extension, but a PHP module that needs to be compiled. I never tried that before, but I'll give it a shot. If I succeed, I'll write a tutorial about it on the Wikidiff2 page.
- I still don't get why MediaWiki/PHP can't just support these Eastern languages by default. Western bias, I guess...? Manifestation (talk) 18:36, 18 July 2023 (UTC)
- Does the diff behaviour on https://ja.wikipedia.org match your expectations? If so, wikidiff2 is probably the way to go.
- There is some builtin support for this sort of thing in MediaWiki (Language::segmentForDiff), but it seems like it is only implemented for chinese not japanese.
- I don't think this would fix it, but the following can't hurt to try: For pages in Japanese, have you tried setting $wgPageLanguageUseDB = true; in LocalSettings.php and then adjusting the language to ja just for that page via Special:PageLanguage. Bawolff (talk) 20:11, 18 July 2023 (UTC)
visual edtior error
How do i fix this error
[ZLLtIPyy521VC9h3hmSw6AAAADY] Exception caught: Argument 5 passed to MediaWiki\Parser\Parsoid\Config\PageConfigFactory::create() must implement interface Wikimedia\Bcp47Code\Bcp47Code or be null, string given, called in /home/vol19_2/ezzeblog.com/qblog_34370375/htdocs/extensions/VisualEditor/includes/VisualEditorParsoidClient.php on line 113 Cocopuff2018 (talk) 19:03, 15 July 2023 (UTC)
- Please follow "Post a new question" in the sidebar, plus provide sufficient context what happened before this error shows. For example, if you installed MediaWiki, provide exact and full steps. Malyacko (talk) 19:36, 15 July 2023 (UTC)
Forcing New Lines in Parser Functions
If I can't control whats immediately before or after a ParserFunction, is there a way I can make the wikitext render when it needs to start on a new line?
LOREM{{#if:{{{x|}}}|==Insert Title==}}IPSUM
For example, something like this:
LOREM{{#if:{{{x|}}}|\n\n==Insert Title==\n\n}}IPSUM 70.160.223.43 (talk) 20:22, 15 July 2023 (UTC)
These seem to work with the heading example you give:
<nowiki>
LOREM{{#if:{{{x|}}}||​
==Insert Title==
​}}IPSUM
</nowiki><nowiki>
LOREM{{#if:{{{x|}}}||<h2>Insert Title</h2>}}IPSUM
</nowiki>&# x200B; is a zero-width space.
I changed the #if to show the wikitext if not x, just to make it easier for me to check. Jonathan3 (talk) 21:47, 15 July 2023 (UTC)
Searching for specific template fields
I would like to create page that users on my wiki could use to search for specific data that has been entered into a template field.
Say for example there is a template which displays character information:
{{Infobox Character
|name = Bob
|eyes = blue
|hair = brown
}}
What I want to do is create a search function that would search all pages that use the Infobox Character template, based on what is entered into one of the fields. For example, a search that would result in a list of all characters with blue eyes (ie, every page that has "blue" in the "eyes" field).
Is something like this possible? RasgarBlue (talk) 01:09, 16 July 2023 (UTC)
- Yes it is possible, you will have to use some extensions.
- Have a look at the Semantic MediaWiki extension or the Cargo extension to add your properties like "blue eyes" and create search functions.
- SMW : Extension:Semantic MediaWiki
- Cargo : Extension:Cargo
- Then use the Page forms extension (if you want) to create forms which will be used in different manners :
- Page forms : Extension:Page Forms
- Good luck ! 193.56.33.6 (talk) 11:34, 17 July 2023 (UTC)
表の外側にある余白
| aaa | |||
|---|---|---|---|
| bbb | ccc
| ||
目次bbbの中に、表dddeeeがあります。しかし、お判りでしょうか。表dddeeeの周りに余白があるのです。この余白を削除する方法を探しています。
In the table of contents bbb there is a table dddeee. But guess what? There is a margin around the table dddeee. I'm looking for a way to remove this margin. (by Google translate) きくらげさん (talk) 02:19, 16 July 2023 (UTC)
- より分かりやすくしました。
- made it easier to understand. (by Google translate)
| aaa | |||||
|---|---|---|---|---|---|
| bbb |
| ||||
- きくらげさん (talk) 02:22, 16 July 2023 (UTC)
- How is this related to MediaWiki? Please see "Post a new question" in the sidebar. Malyacko (talk) 08:30, 16 July 2023 (UTC)
$wgLogos
I am sorry but I have the wiki set-up under 1.40. All is fine but the wgLogos. I have a logo.jpg file, but I do not know where to upload it and what to enter in the LocalSetting file. I just want a logo, no additional text. Thx a lot !!!
PS. I suppose I am not the only one ....
@Jefsey 193.252.172.116 (talk) 08:20, 16 July 2023 (UTC)
- Hi, see Manual:$wgLogos. If something is unclear, please point out what exactly is unclear. Malyacko (talk) 08:30, 16 July 2023 (UTC)
- Most is unclear to me. It uses /path/to. I do not know how to replace it. 193.252.172.116 (talk) 09:02, 16 July 2023 (UTC)
- See the section "Example paths" right below. Malyacko (talk) 13:12, 16 July 2023 (UTC)
tvars/wikitext not being interpreted in popup messages
Hi! I'm not currently an admin but I'm helping out in the Maltese Wikipedia website and I'm noticing that some popup messages show "$1" or "$2" without this being interpreted. An example is when you click on the star to watch an article. You can test this by clicking on the star of the main page. Here is a screenshot of what comes up:
I was wondering what the reasons for these translation variables not getting interpreted would be. If you unwatch an article, you'll even see meta characters like '''$1''' which means that this is probably a general wikitext interpretation problem.
I hope you can help me guide the admin to fixing this. Here are the current version numbers of the Wikipedia in question.
| Product | Version |
|---|---|
| MediaWiki | 1.41.0-wmf.17 (f6a674b)
23:28, 10 Lulju 2023 |
| PHP | 7.4.33 (fpm-fcgi) |
| ICU | 63.1 |
| MariaDB | 10.4.26-MariaDB-log |
| wikidiff2 | 1.13.0 |
| Pygments | 2.15.1 |
| LilyPond | 2.22.0 |
| Elasticsearch | 7.10.2 |
| LuaSandbox | 4.0.2 |
| Lua | 5.1.5 |
Mtanti (talk) 10:02, 16 July 2023 (UTC)
Uploading an image with OOUI
I'm trying to upload an image with OOUI, but I seem to be encountering an error, and I can't seem to get around it.
Here is what I'm doing:
$fileName = $data['image'];
$request = $this->getRequest();
$request->setVal( 'wpDestFile', $fileName );
$uploadBase = UploadBase::createFromRequest( $request, $data['image'] );
if ( !$uploadBase->isEnabled() ) {
return Status::newFatal( 'uploaddisabled' );
}
$permission = $uploadBase->isAllowed( $this->getUser() );
if ( $permission !== true ) {
return User::newFatalPermissionDeniedStatus( $permission );
}
$status = $uploadBase->fetchFile();
if ( !$status->isOK() ) {
return $status;
}
$status = $uploadBase->tryStashFile( $this->getUser() );
if ( !$status->isGood() ) {
return $status;
}
$repo = $this->repoGroup->getLocalRepo();;
$uploadStash = new UploadStash($repo, $this->getUser() );
$fileKey = $status->getStatusValue()->getValue()->getFileKey();
$file = $uploadStash->getFile( $fileKey );
$status = $repo->publish(
$file->getPath(),
'/images/' . $fileName,
'/images/archive/' . $fileName,
FileRepo::DELETE_SOURCE
);
if ( !$status->isOK() ) {
return $status;
}
But I keep getting thrown the error, `Could not store upload in the stash (UploadStashBadPathException): "Path doesn't exist.".` Does anyone know what I'm doing wrong, here? Original Authority (talk) 16:31, 16 July 2023 (UTC)
- Couldn't you just use the regular Upload API?
- I could, but ideally, I'd like to use the built in OOUI module. Original Authority (talk) 21:36, 31 July 2023 (UTC)
- Well the second argument to createFromRequest looks wrong.
- Are you sure the form is uploading the file in the correct form field name and using multipart/form-data Bawolff (talk) 23:39, 31 July 2023 (UTC)
- I'm pretty sure it's stored in the correct field:
protected function getFormFields() { return [ 'title' => [ 'type' => 'text', 'label-message' => 'createachievement-title', 'required' => true ], 'description' => [ 'type' => 'text', 'label-message' => 'createachievement-description', 'required' => true ], 'image' => [ 'type' => 'file', 'label-message' => 'createachievement-image', 'required' => true ], 'points' => [ 'type' => 'int', 'label-message' => 'createachievement-points', 'required' => true, 'validation-callback' => [$this, 'validatePoints'], ], 'type' => [ 'class' => 'HTMLSelectField', 'label' => 'Achievement Type', 'options' => [ 'Edit' => KarmaAchievementTypes::EDIT, 'Upload' => KarmaAchievementTypes::UPLOAD, 'Patrol' => KarmaAchievementTypes::PATROL, 'Email' => KarmaAchievementTypes::EMAIL, 'Category' => KarmaAchievementTypes::CATEGORY, ], ], 'progress_required' => [ 'type' => 'int', 'label-message' => 'createachievement-progressrequired', 'required' => true, 'validation-callback' => [$this, 'validateProgressRequired'], ] ]; }- Unless I'm doing something stupid, here? Original Authority (talk) 19:25, 1 August 2023 (UTC)
- UploadBase::createFromRequest is expecting the upload file to be in a form field named wpUploadFile. I would suggest instead doing new UploadFromFile and calling ->initalize where you can chose the field name, followed by ->performUpload. This should probably let you skip all the stash stuff as well.
- Unfortunately the file upload code is not the most well architectured and a bit confusing. Bawolff (talk) 01:40, 2 August 2023 (UTC)
- Do you know of any extensions and/or examples of where this is done? Since I'm a bit confused as to how that works.
- I tried
$fileName = $data['title'] . '.png'; $upload = new UploadFromFile(); $initialized = $upload->initialize( $data['image'], $webRequestUpload); $initialized->performUpload();
- Which would get the file name from the title field, but it still doesn't seem to be getting the actual image, which is passed as null
Error: Call to a member function getTempName() on nullOriginal Authority (talk) 22:23, 2 August 2023 (UTC)- https://github.com/wikimedia/mediawiki/blob/master/includes/api/ApiUpload.php would be my go to example but its very confusingly written and hard to follow. There is also https://gerrit.wikimedia.org/g/mediawiki/extensions/SiteSettings/+/98822952040b72ba82d611c99f7824f1864110d8/specials/SpecialSiteSettings.php#438 but it doesnt do a full upload just a temp file.
- The first argument to initalize would be the file name, and the second argument would be $request->getUpload("image"). The error message suggests the second argument might be wrong.
- it should probably be $upload->performUpload() not $initalized->performUpload Bawolff (talk) 23:56, 2 August 2023 (UTC)
- What "OOUI module" are you referring to exactly?
- There are mw.Upload.Dialog and mw.ForeignStructuredUpload.BookletLayout for example. Those also use the Upload-API in the background. Osnard (talk) 11:52, 1 August 2023 (UTC)
Installing Scribunto onto a wiki installed onto my hosting (host gator) through softaculous
Hi!
I found the scribuntu download and installation guide but its not very clear. the mediawiki wiki installed onto my hostgator hosting through softaculous does not have scribunto (so i cant use templates). I am at a loss as to host to install extensions onto it (i tried uploading the files as suggested in step one, then updated the .php file, but i have no idea how to :
- Set execute permissions for the Lua binaries bundled with this extension
and:
- Set type to
httpd_sys_script_exec_tif SELinux is enforced:
how can i set up that extension onto my wiki? 185.13.107.165 (talk) 20:03, 16 July 2023 (UTC)
- We do not provide support for 3rd party hosters or softaculous and your problem seems to be somewhere in the customisations that these parties have made. —TheDJ (Not WMF) (talk • contribs) 10:55, 18 July 2023 (UTC)
Indexing WIKI after a database restore
Hello
i have two MW servers that work fine :
1 - production server
2- backup server
i will restore the data base backuped from production server to the second server in order to move it to run
the database on the production server is more recent and contains more data
after restoring the DB and running the update script :
- should i build index from scratch on the second server ?
- if no, does the new data (difference of data between the 02 DB) will be automatically indexed or shoud i run specific script to index the new data
-how to confirm that all data are indexed on the second server and i will have the same results of search like the first server ?
NB: I'm using CirrusSearch plugin and elasticsearch
Thanks Raoufgui (talk) 07:14, 17 July 2023 (UTC)
Privacy policy, Disclaimer on private wiki
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'm going to host a private wiki online for me and some friends.
As far as I now every hosted website should have a privacy policy, disclaimer etc. .
Because my Wiki is private these pages can only be view if a user is logged in.
MediaWiki Version: 1.39.4
Is there a way to just make these few pages accessible without a login?
- General disclaimer
- Privacy policy
Thanks in advance Rakon12 (talk) 11:29, 17 July 2023 (UTC)
- See Manual:Preventing access. You can place the "general disclamer" and "privacy policy" places under a whitelist/allowlist. Leaderboard (talk) 13:33, 17 July 2023 (UTC)
- Thank you works like a charm.
- I've added the following line to LocalSettings.php:
$wgWhitelistRead = [ "myWiki:About", "myWiki:General disclaimer", "myWiki:Privacy policy"];Rakon12 (talk) 08:09, 19 July 2023 (UTC)
- Or just host plain html pages with apache, and make sure the specific routes map to the apache html page. —TheDJ (Not WMF) (talk • contribs) 10:51, 18 July 2023 (UTC)
- I think that would be better for security. But I would need to style the page manually due to it cannot use the given MediaWiki skin.
- Thank for the advise. Rakon12 (talk) 08:12, 19 July 2023 (UTC)
some pages does not exist after upgrade MW from 1.28 to 1.39
Hello,
i upgrade my MW from 1.28 to 1.39 passing by MW 1.35
the proccess of upgrade was work fine
after restoring the database and running the update.php (first in 1.35 and than in 1.39) script MW show the same numbers of articles that in MW 1.28 but many pages doest not exist whene i puting the URL on web navigator while others pages exist

why some pages does not exist and ohters exist ? does this mean that i loss data ?
how can i resolve the issue please ?
thanks Raoufgui (talk) 10:52, 18 July 2023 (UTC)
- did the upgrade scripts complete without errors ? Because generally when this happens some sort of error has been returned during the upgrade script.
- And please take note of "Do not upgrade from a MediaWiki version older than 1.33 to MediaWiki 1.39.1, or you may lose data! Upgrade to 1.35 first. See task T326071." as noted on Manual:Upgrading. —TheDJ (Not WMF) (talk • contribs) 12:38, 18 July 2023 (UTC)
Special:ResetPassword not found
Hi,
I'm fairly new to MW and am running version 1.39.3. When I search for Special:ResetPassword, I get the following error:
Not Found.
The requested URL was not found on this server.
Apache/2.4.54 (Win64) OpenSSL/1.1.1p PHP/8.2.0 Server at <mydomain.com.au> Port 80
What is causing this and how can I fix it? It did work intermittently for a day or two, but aside from those 2 miracle days I've been getting the above error. Blyatman9000 (talk) 10:56, 18 July 2023 (UTC)
- This seems like a webserver configuration problem. Check your webserver and php logs. Use curl to validate if the paths that are being used are properly available. —TheDJ (Not WMF) (talk • contribs) 12:36, 18 July 2023 (UTC)
- My apologies, I'm not very familiar with how to do this. Are you able to show me how this is done? I understand that it might be a bit difficult to explain, so it's fine if you prefer not to.
- Also, when using Special:ResetPassword to reset passwords, does anything else need to be configured? E.g. does $wgSMTP need to be set? Or should the password reset work on an out-of-the-box installation of MW without needing to configure LocalSettings.php? Before when I was able to access the Special:ResetPassword page, it didn't send me a password reset link to my email when I try to reset the password. Blyatman9000 (talk) 07:45, 20 July 2023 (UTC)
- > does $wgSMTP need to be set?
- On linux with an MTA installed, no. On windows probably yes. Bawolff (talk) 01:58, 21 July 2023 (UTC)
SSL error in composer update step - docker installation from mediawiki repo
Hello,
We have cloned the mediawiki repo(https://github.com/wikimedia/mediawiki) and trying to run it locally with the instructions specified in Developers.md file. The default setup uses sqlite as db and we have followed MediaWiki-Docker/Configuration recipes/Alternative databases (MariaDB (single database server) to use MariaDB.
- Running docker-compose up, created all the 4 containers
- The second step is to run docker-compose exec mediawiki composer update to install php dependencies for mediawiki. This gives the below error.
In CurlDownloader.php line 375:
curl error 60 while downloading https://packagist.org/p2/pear/mail_mime.json: SSL certificate problem: self signed certificate in certificate chain
Tried this https://stackoverflow.com/questions/66276070/composer-curl-error-60-ssl-certificate-problem-unable-to-get-local-issuer-cert to update php.ini file but it didnt solve the issue.
Any help will be really appreciated!
Santhoshnaf (talk) 11:07, 18 July 2023 (UTC)
- This should not happen and indicates a security problem. You might be on a company network that is man in the middling packages.org or you have not made the external network properly available to the docker container in some other way. —TheDJ (Not WMF) (talk • contribs) 12:34, 18 July 2023 (UTC)
Indexing WIKI after a database restore
Hello
i have two MW servers that work fine :
1 - production server
2- backup server
i will restore the data base backuped from production server to the second server in order to move it to run
the database on the production server is more recent and contains more data
after restoring the DB and running the update script :
- should i build index from scratch on the second server ?
- if no, does the new data (difference of data between the 02 DB) will be automatically indexed or shoud i run specific script to index the new data
-how to confirm that all data are indexed on the second server and i will have the same results of search like the first server ?
NB: I'm using CirrusSearch plugin and elasticsearch
Thanks Raoufgui (talk) 17:22, 18 July 2023 (UTC)
Lost pages after re-opening wiki
Hello!
I wasn't sure if this was the appropriate place to ask, so if not, please let me know!
I recently re-opened my wiki (https://viscera.miraheze.org/wiki/Special:Version) after a long hiatus, but even though I've regained access, all the pages I'd created are gone. Is there any way to find and retrieve them, or are they just unrecoverable?
Any assistance you could offer would be much appreciated! Chillbones (talk) 03:41, 19 July 2023 (UTC)
- Please turn to the miraheze support venues. https://meta.miraheze.org/wiki/Help_center —TheDJ (Not WMF) (talk • contribs) 08:09, 19 July 2023 (UTC)
How to add non alphanumeric characters to cites sections
This is a sample cite which can't be added because has the '|' character in the title:
cite web |title=Title | Subtitle |url=https://url.com |website=Website part 1 |access-date=19 July 202
Is possible to fix this or such characters just can't be used?
Tried using https://en.wikipedia.org/wiki/Help:Entering_special_characters#Keyboard_code however when inline editing an article says:
The template Template:Unicode has been deprecated since 11 May 2016, and is retained only for old revisions. If this page is a current revision, please remove the template. Raddihs (talk) 10:36, 19 July 2023 (UTC)
Raddihs (talk) 10:44, 19 July 2023 (UTC)
- You should use the magic word
{{!}}to escape it. – Ammarpad (talk) 21:10, 19 July 2023 (UTC) - Works! Thank yo very much! Raddihs (talk) 22:40, 19 July 2023 (UTC)
On category page: Show pages above subcategories?
On a category page MediaWiki first shows subcategories and below this all pages.
Is there a way to swap it, so that pages come first and then subcategories?
Thanks! Stefahn (talk) 14:54, 19 July 2023 (UTC)
- No. – Ammarpad (talk) 21:04, 19 July 2023 (UTC)
- The structure of it seems to be that the categories are in a div with id "mw-subcategories", and the pages are in a div with id "mw-pages", all within a div with class "mw-category-generated". I wonder whether you could use JavaScript to swap the two inner divs. Jonathan3 (talk) 12:35, 20 July 2023 (UTC)
Sintax error pops randomly on Postgresql logs
I installed mediawiki 1.39.4 and my SGBD randomly prints this error on wiki database:
' ERROR: syntax error at or near "pg_advisory_unlock_all" at character 1 '
Investigating the code, I found that the file DatabasePostgres.php on doFlushSession function, call a sql query "pg_advisory_unlock_all()" without the lexic SELECT and I think that is why it isnt working. 201.49.154.3 (talk) 19:36, 19 July 2023 (UTC)
- Reported as https://phabricator.wikimedia.org/T342351 —TheDJ (Not WMF) (talk • contribs) 14:31, 20 July 2023 (UTC)
TemplateStyles doesn't exist in extensions/
While trying to enable infobox templates, I noticed Extension:TemplateStyles requires the downloaded file to be placed in the directory TemplateStyles in extensions/. The only problem is TemplateStyles doesn't seem to exist. Is there another location? Nythar (talk) 00:30, 21 July 2023 (UTC)
- You are misunderstanding the instructions. Normally the TemplateStyles directory is the one coming from the extension. You place it in the extensions directory Bawolff (talk) 01:54, 21 July 2023 (UTC)
- @Bawolff: Sorry for being a bit uninformed, but Extension:TemplateStyles#Installation isn't too clear about how TemplateStyles should be installed. How am I supposed to follow the first step if the directory doesn't yet exist? I'm probably missing something. Nythar (talk) 16:21, 22 July 2023 (UTC)
- The "TemplateStyles" directory is the top-level directory in the extension archive file (.tar.gz) that you downloaded. Either extract the archive directly into your extensions directory (as described on the download page) or extract the archive elsewhere and then move the extracted TemplateStyles directory (including its contents) to your extensions directory. Either way you should end up with a "/var/www/mediawiki/extensions/TemplateStyles" directory that has the extensions files in it. Then modify your LocalSettings.php as described in the installation instructions. Clump (talk) 17:27, 22 July 2023 (UTC)
File Upload Error: Could not store upload in the stash (UploadStashFileException): "Could not create directory "mwstore://local-backend/local-temp/5/57".".
I have a very similar issue as discussed on this thread Project:Support desk/Flow/2013/06#h-[RESOLVED]_Problem_uploading_files:_Could_not_create_directory_"mwstore://local--2013-06-12T13:21:00.000Z but ran though all the steps but the error persists. I have no idea what is causing this.
I get the error when trying to upload any standard image file (or any file for that matter).
Error reads:
Could not store upload in the stash (UploadStashFileException): "Could not create directory "mwstore://local-backend/local-temp/5/57".".
Running locally on Ubuntu Server
| MediaWiki | 1.40.0 |
| PHP | 8.1.2-1ubuntu2.13 (apache2handler) |
| ICU | 70.1 |
| MariaDB | 10.6.12-MariaDB-0ubuntu0.22.04.1 |
Things I have performed so far:
php.ini is file_uploads = On
LocalSettings.php $wgEnableUploads = true;
/images directory permissions set to 777. (also tried 775, but no luck) Benmfp (talk) 21:28, 21 July 2023 (UTC)
Install Error 1050
I've searched this Wiki for "Error 1050" with no results, so I'm submitting this topic.
I'm trying to install MediaWiki on a USB drive.
I'm using xampp-portable-windows-x64-8.2.4-0-VS16-installer and mediawiki-1.40.0 as well.
My OS is Windows 10.
I've followed the instructions provided on this page: Manual:Installing MediaWiki on XAMPP
However, when i go to install after selecting all the options and settings, I'm confronted with "Error 1050" -- text is further below the line break.
I've done a lot of googling, but I cannot find anyone who has adequately provided a solution. If anyone can assist so I get a wiki running on my jump drive, I'd be deeply grateful.
[4feae550c22fc37f43a949ae] /wiki/mw-config/index.php?page=Install 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 1050: Table 'site_identifiers' already exists
Function: Wikimedia\Rdbms\Database::sourceFile( D:\xampp\htdocs\wiki/maintenance/tables-generated.sql )
Query: CREATE TABLE `site_identifiers` (
si_type VARBINARY(32) NOT NULL,
si_key VARBINARY(32) NOT NULL,
si_site INT UNSIGNED NOT NULL,
INDEX si_site (si_site),
INDEX si_key (si_key),
PRIMARY KEY(si_type, si_key)
) ENGINE=InnoDB, DEFAULT CHARSET=binary
Backtrace:
from D:\xampp\htdocs\wiki\includes\libs\rdbms\database\Database.php(1524)
#0 D:\xampp\htdocs\wiki\includes\libs\rdbms\database\Database.php(1508): Wikimedia\Rdbms\Database->getQueryException(string, integer, string, string)
#1 D:\xampp\htdocs\wiki\includes\libs\rdbms\database\Database.php(1482): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)
#2 D:\xampp\htdocs\wiki\includes\libs\rdbms\database\Database.php(855): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#3 D:\xampp\htdocs\wiki\includes\libs\rdbms\database\Database.php(3087): Wikimedia\Rdbms\Database->query(string, string)
#4 D:\xampp\htdocs\wiki\includes\libs\rdbms\database\Database.php(3025): Wikimedia\Rdbms\Database->sourceStream(resource (closed), NULL, NULL, string, NULL)
#5 D:\xampp\htdocs\wiki\includes\installer\DatabaseInstaller.php(234): Wikimedia\Rdbms\Database->sourceFile(string)
#6 D:\xampp\htdocs\wiki\includes\installer\DatabaseInstaller.php(259): DatabaseInstaller->stepApplySourceFile(string, string, string)
#7 D:\xampp\htdocs\wiki\includes\installer\Installer.php(1686): DatabaseInstaller->createTables(MysqlInstaller)
#8 D:\xampp\htdocs\wiki\includes\installer\WebInstallerInstall.php(42): Installer->performInstallation(array, array)
#9 D:\xampp\htdocs\wiki\includes\installer\WebInstaller.php(271): WebInstallerInstall->execute()
#10 D:\xampp\htdocs\wiki\mw-config\index.php(82): WebInstaller->execute(array)
#11 D:\xampp\htdocs\wiki\mw-config\index.php(40): wfInstallerMain()
#12 {main} Sylvandroid (talk) 03:07, 23 July 2023 (UTC)
- Did you remember to update your wiki? See the instructions on the page Manual:Update.php. Kanasalaatti (talk) 07:10, 24 July 2023 (UTC)
problem changing password for closing logos
I set up a new e-mail address last year.
I am trying to change my password for the Closing Logos page and I was sent a temporary password to sign in with. When I enter my username and the temporary password I can't log in.
This is rather frustrating. What should I do? Thanks. KramdenII (talk) 21:47, 23 July 2023 (UTC)
- Are you talking about the closinglogos.com website? You'll need to contact one of their admins or technical contact to debug the problem. Ciencia Al Poder (talk) 14:42, 24 July 2023 (UTC)
Elasticsearch not working
Hi,
I am trying to configure Elastic Search on our wiki server. But when I search for something, it does not give the search results. I followed the document and all the jobs completed properly. I don't see errors in the logs. I feel like the Extension document has very less information regarding the configuration.
Below are the environment details running on RHEL 7.9.
| Product | Version |
|---|---|
| MediaWiki | 1.39.4 |
| PHP | 8.0.25 (apache2handler) |
| MySQL | 8.0.26 |
| ICU | 71.1 |
| Lua | 5.1.5 |
| Pygments | 2.11.2 |
| Elasticsearch | 7.10.2 |
| CirrusSearch | 6.5.4 (71808cb) 06:12, 11 July 2023 |
| Elastica | 6.2.0 (aa4dc98) 06:12, 9 May 2023 |
# netstat -an | grep 9200
tcp6 0 0 127.0.0.1:9200 :::* LISTEN
tcp6 0 0 ::1:9200 :::* LISTEN
# netstat -an | grep 9300
tcp6 0 0 127.0.0.1:9300 :::* LISTEN
tcp6 0 0 ::1:9300 :::* LISTEN
Can someone suggest how to properly configure elastic search ?
--
GT Testergt1302 (talk) 09:31, 24 July 2023 (UTC)
- Ensure you've followed the steps listed in the README Ciencia Al Poder (talk) 14:52, 24 July 2023 (UTC)
- Yes, I followed the same, but one thing I am confused about the versions.
- As per the README,
- "Only Elasticsearch v6.8 is supported."
- As per the CirrusSearch extension page- Extension:CirrusSearch
- "MediaWiki 1.39+ require Elasticsearch 7.10.2"
- So, which version of Elasticsearch will work with MW 1.39? Testergt1302 (talk) 15:11, 24 July 2023 (UTC)
- The README is outdated regarding ElasticSearch versions supported, but everything else is current.
- You may try some of the debug parameters listed in Extension:CirrusSearch#API to see if you find something that may give you some clue. Ciencia Al Poder (talk) 18:24, 24 July 2023 (UTC)
References are not formatted
Hi, I want to include reference notes and references in my mediaWiki: like [1]>
- ↑ hello again
2003:CF:874D:6C00:FD20:F266:6185:A319 (talk) 17:27, 24 July 2023 (UTC)
- but neither the reference notes nor the references are being formatted.
- Would be great, if someone could help! 2003:CF:874D:6C00:FD20:F266:6185:A319 (talk) 17:28, 24 July 2023 (UTC)
- Make sure the Cite extension is enabled. – Ammarpad (talk) 23:49, 24 July 2023 (UTC)
get changes from a db which i can't connect throgh mediawiki instance
Hi, I have a database that encountered a problem, so I can't connect MediaWiki to it. I managed to repair it from a backup, but I'm missing about 1500 changes in the backup.
I can connect to the database directly without any issues. Is there an easy way to move the records from the old database to the new one?
It's important to mention that the problem happened when I tried to upgrade from MediaWiki version 1.38.4 to version 1.39.4. So, the old database is compatible with version 1.39.4, while the new one is for version 1.38.4.
I would appreciate any help. Thanks. בקש (talk) 07:36, 25 July 2023 (UTC)
Why would "MediaWikiServices::getInstance()->getContentRenderer();" cause 500 error?
Is there any reason that the following line of code in an extension would give me a 500 error?
$contentRenderer = MediaWikiServices::getInstance()->getContentRenderer();
I wonder whether it's my MW version (1.35.8) or maybe something else about how things are set up on my wiki.
Further details at Extension_talk:Cargo#RSS:_Does_"feed"_export_display_format_work_with_MW1.35?.
Thanks. Jonathan3 (talk) 14:38, 25 July 2023 (UTC)
- Hi!
- Yes, this code is only available since MediaWiki 1.38. See https://github.com/wikimedia/mediawiki/blob/c16fae21f5225a188cb0d89da8db26f1549a8df5/includes/MediaWikiServices.php#L973-L979
- You will either need to download a version of Extension:Cargo that is compatible to MediaWiki 1.35, or upgrade to the latest MediaWiki LTS version 1.39. Osnard (talk) 15:13, 25 July 2023 (UTC)
- Thank you for the helpful reply. I plan to upgrade soon. Another option might be to persuade the extension authors to provide a fallback option for older wiki versions. Your information might help with that :-) Jonathan3 (talk) 20:32, 25 July 2023 (UTC)
Add protection levels?
Hi,
I have a question: Can I add new protection levels (e.g. Edit pages only by bureaucrat) to my wiki and how?
Bye 188.192.222.178 (talk) 15:15, 25 July 2023 (UTC)
- Yes. See example here Manual:$wgRestrictionLevels#Details. – Ammarpad (talk) 15:51, 25 July 2023 (UTC)
Download a whole database of a wiki
I want to download a public wiki to my computer
I'm wondering that if there is a way to download it to a single (or muitiple) file
I'm not familiar with HTML and XML or other things about advance internet knowledge
Only have a few programming experience
How to download it in a easy way?
btw I have already have kiwix
If it could, I want it to be a zim. file
Thanks. 106.1.89.111 (talk) 03:27, 26 July 2023 (UTC)
- It depends on which wiki.
- Wikimedia wikis provide dumps in XML format at https://dumps.wikimedia.org - however this is a mw xml format, not an actual database format.
- For a small wiki you could use
wget -rto download the whole website, but some web admins do not appreciate that and might block you. Bawolff (talk) 17:25, 26 July 2023 (UTC)
Multi language wiki
Hello,
I intend to start a new MW multilingual project.
I would like each language to have a separate folder like:
mywiki.com/en-gb/page1
mywiki.com/en-us/page1
mywiki.com/en-ca/page1
mywiki.com/it/page1
mywiki.com/de-ch/page1
mywiki.com/de-de/page1
How can I achieve this? I did some research but I don't find a solution. Is there a plugin or something?
thank you! Balrogmedia (talk) 13:33, 26 July 2023 (UTC)
- With each wiki being totally separate? See manual:Wiki farm Bawolff (talk) 17:24, 26 July 2023 (UTC)
Permalink
Hello again,
is it possible to avoid the /wiki/ in the permalink? For example:
Instead of
mywiki.com/wiki/Main_Page
I would like to have
mywiki.com/Main_Page
thanks Balrogmedia (talk) 13:37, 26 July 2023 (UTC)
- yes, depending on web server config. See manual:Short urls.
- Some people like using short urls like https://en.wikipedia.org/?curid=1234 (the article id when viewing page information) Bawolff (talk) 17:23, 26 July 2023 (UTC)
Transclude from Wikipedia
Is it possible to transclude pages or sections of pages from Wikipedia into another wiki? The equivalent of {{#lsth:}} with a wikipedia page reference, such as https://en.wikipedia.org/wiki/MediaWiki
Thanks! Stevesuny (talk) 13:52, 26 July 2023 (UTC)
- You would need a custom extension.
- There is Manual:$wgEnableScaryTranscluding but it doesn't work per-section. Bawolff (talk) 17:22, 26 July 2023 (UTC)
Ejecución (por línea de comandos) de php
Hola,
os escribo desde una nueva wiki que estoy creando con mediawiki.
La URL es: https://darfe.es/ciberwiki
No puedo realizar ninguna de las consultas con los enlaces "especiales", por ejemplo: https://darfe.es/ciberwiki/Special:UserRights
y no entiendo la razón. POr esa razón, tampoco puedo deciros el número de versión, ni la información que pedís.
Más allá de esto (que si también me dais una mano os lo agradecería), creo que el fallo radica en la conexión con la base de datos (la cual funciona, pues crea páginas, enlaces, categorías, etc.. y me puedo conectar perfectamente desde phpadmin), pero al ejecutar cualquiera de las herramientas del directorio "/maintenance" me da error, os pegoa abajo uno de ellos (son todos iguales):
/var/www/vhosts/darfe.es/httpdocs/ciberwiki/maintenance# php createAndPromote.php
[ccb6887c6ef82e635c99db5a] [no req] InvalidArgumentException: Wikimedia\Rdbms\DatabaseFactory::getClass no viable database extension found for type 'mysql'
Backtrace:
from /var/www/vhosts/darfe.es/httpdocs/ciberwiki/includes/libs/rdbms/database/DatabaseFactory.php(198)
#0 /var/www/vhosts/darfe.es/httpdocs/ciberwiki/includes/libs/rdbms/database/DatabaseFactory.php(143): Wikimedia\Rdbms\DatabaseFactory->getClass()
#1 /var/www/vhosts/darfe.es/httpdocs/ciberwiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1066): Wikimedia\Rdbms\DatabaseFactory->attributesFromType()
#2 /var/www/vhosts/darfe.es/httpdocs/ciberwiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1104): Wikimedia\Rdbms\LoadBalancer->getServerAttributes()
#3 /var/www/vhosts/darfe.es/httpdocs/ciberwiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1023): Wikimedia\Rdbms\LoadBalancer->reallyOpenConnection()
#4 /var/www/vhosts/darfe.es/httpdocs/ciberwiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(869): Wikimedia\Rdbms\LoadBalancer->reuseOrOpenConnectionForNewRef()
.......... y sigue.........
Por favor dadme alguna pista sobre lo que está sucediendo, pues no puedo crear usuarios administradores, bloquear páginas, ni nada referido a tareas de adminsiración.
muchas gracias Acorletti (talk) 15:15, 27 July 2023 (UTC)
- Your php host is missing the php extension mysqli, the php module that provides methods to interact with a mysql database and that is a requirement for MediaWiki+MySQL —TheDJ (Not WMF) (talk • contribs) 13:09, 31 July 2023 (UTC)
- Please tell me how I can fix it, as I urgently need to get it working OK.
- Thank you very much Acorletti (talk) 15:25, 31 July 2023 (UTC)
- The exact answer how to install a PHP extension depends on your operating system. Manual:Installation requirements#PHP Malyacko (talk) 16:52, 31 July 2023 (UTC)
Removing a page redirect with special characters
I had tried to create a page named "X:\ Drive Examples" recently which showed up as a redirect but fell short. Now I just have three broken redirects in the All Pages listing!
Broken Redirects
- X:\DriveExamples
- X:\\DriveExamples
- X:\ Drive Examples
Is is possible to remove these? I can't figure this out! 216.194.98.197 (talk) 13:51, 30 July 2023 (UTC)
- try using index.php?title=X:%5CDriveExamples style url. Web browsers usually replace \ with / in /wiki/page_name style urls but not in in index.php?title= style urls.
- In the worst case, if you know tge page id you can use ?curid=<id number> url Bawolff (talk) 20:11, 31 July 2023 (UTC)
- Thank you Bawolff, interesting! This worked for -
- X:\DriveExamples
- - wiki/index.php?title=X:%5CDriveExamples
- X:\\DriveExamples
- - wiki/index.php?title=X:%5C%5CDriveExamples
- But having trouble with spaces -
- X:\ Drive Examples
- - (x) wiki/index.php?title=X:%5C%20Drive%20Examples
- Do you have recommendations for this last address? Thank you for this help! Jmr1985 (talk) 12:12, 1 August 2023 (UTC)
- Try underscores instead of %20 Bawolff (talk) 17:51, 1 August 2023 (UTC)
Image click returns "invalid source image"
MediaWiki ver 1.40.0
PHP ver 7.4.33 (litespeed)
Database 10.5.19-MariaDB-cll-lve
Today it came to my attention that clicking on images on my wiki no longer takes the user to the image's attachment page. Instead, a white screen displays that says "invalid source image" in the top left corner (Firefox, Edge). In Safari, I get a small square icon with a question mark inside it.
Example page where this happens: https://akairondragon.ca/books/aoswiki/index.php/Ardrakin_Social_Classes
"Invalid source image" also displays after using the "Upload file" page to upload an allowed file type (eg, JPG or PNG).
I'm not sure what has changed on my wiki to create this behavior. A few weeks ago I was able to click the image on the example page, go to its attachment page, and successfully replace the image with a newer version.
What did I break? Akairondragon (talk) 20:27, 30 July 2023 (UTC)
- See your web browser's console: The URL of the image file shows a HTTP 422 error. Malyacko (talk) 09:22, 31 July 2023 (UTC)
- Opening https://akairondragon.ca/books/aoswiki/index.php/File:Ardrakin_Social_Classes_Chart.jpg in the browser directly returns: "Invalid source image". This is not a default response by MediaWiki as far as I can tell. Possibly something from the proxy service that your hoster is using. ? —TheDJ (Not WMF) (talk • contribs) 13:06, 31 July 2023 (UTC)
- https://akairondragon.ca/books/aoswiki/index.php?title=File:Ardrakin_Social_Classes_Chart.jpg is fine so a work around might be to set $wgUsePathInfo = false; (or adjust wgArticlePath) Bawolff (talk) 20:14, 31 July 2023 (UTC)
- You have saved the day! I tried $wgUsePathInfo = false; and now everything appears to work! Thank you very much. Akairondragon (talk) 00:32, 1 August 2023 (UTC)
Why does none of the supplied examples actually work?
Again, after updating the mediawiki engine, some random parts in my own extension failed. This alone is bad enough - that some people do something new, and then just drop the old ways because *they* don't use them anymore.
But this time it was way worse. Someone decided to rework how to access the underlying databases, and while I've got just one function using this, it is a pretty central one. So, again, I had to hunt through the bad excuse for no documentation that a doxygen dump is, and found this:
Manual:Database access#Database Abstraction Layer
None of the supplied examples of "how to read data from a database table" on this page come even close to working. I have given up on expecting what once was a gold standard of documentation: One tested and working example for each function (or at least function group), but to supply completely broken and partially nonsensical "example" code for a functionality as basic as this is a new low, even for mediawiki "documentation" quality levels. 176.95.227.119 (talk) 10:01, 31 July 2023 (UTC)
- You will have to be more specific as to which information is wrong or confusing. Bawolff (talk) 20:11, 31 July 2023 (UTC)
Extension cas for mediawiki 1.4.0
Hello, I have coded and written an extension for authentication with cas server. Because the extension casauth don’t work with last version mediawiki. The extension works fine with mediawiki version 1.4.0 and apereo cas server 6.3.7 and and php 8 and library apereo phpcas 1.6.1. It use the last structure of extension mediawiki with pluggableauth module and automatically autocreates the user in the database of mediawiki and adds the user in groups Sysop or interface-admin or bureaucrat from attributes cas (attribute memberOf from cas). How can I publish my extension ? On GitHub? But for the mediwiki website how can I do this ? Mhetru (talk) 11:23, 31 July 2023 (UTC)
- You can publish wherever you want. On mediawiki.org, you can create a page at Extension:CasAuth (or however you named it). For a simple example of the page to create, you can look at the wikicode of another pluggalbeauth module such as this simple one: https://www.mediawiki.org/w/index.php?title=Extension:WSOAuth&action=edit —TheDJ (Not WMF) (talk • contribs) 12:51, 31 July 2023 (UTC)
- Thanks but i cannot create the page i got this message :
- You do not have permission to create this page, for the following reason:
- The title "Extension:CasAuth?action=edit&redlink=1" has been banned from creation. It matches the following disallowed titles list entry:
.*[?&]+[^=]+=[^&]+.*Mhetru (talk) 10:08, 1 August 2023 (UTC)- There is a bug in flow where redlinks dont work properly :( Bawolff (talk) 21:48, 7 August 2023 (UTC)
- The source code of my cas extension for mediawiki is available here : https://github.com/l3-team/mediawiki-extensions-cas Mhetru (talk) 10:09, 1 August 2023 (UTC)
- It is ok I have successfully created the wiki page of Cas extension
- Thanks Mhetru (talk) 09:26, 7 August 2023 (UTC)
Looking for a redaction feature
This is is for a mediawiki installation that I manage. There is a use case where it is for research communications, mainly internal but also for external uses and some parts of the content on a page need to be hidden (ideally shown as redacted - maybe with asterisks or another character) except for logged in users. I suppose that one way would be to use transclusion - of protected pages - which show or do not show depending on whether a user is logged in. Is there a nicer template based way of achieving this... Shyamal (talk) 13:28, 31 July 2023 (UTC)
- Manual:Preventing_access Malyacko (talk) 16:49, 31 July 2023 (UTC)
- Thank you. I do not see any option to hide only some parts within a page. To give you a clearer understanding, it could be an interview with a person. Logged in users may be able to see the name of the interviewee but logged out users will only see the text but not the name of the person. Shyamal (talk) 17:04, 31 July 2023 (UTC)
Creating an Infobox template
Hello. Can someone please list the specific steps on how I can create a template for an Infobox or warning with an icon of an exclamation point or something like that. I have spent lots of time trying to follow the directions on mediaWiki page but I just don't get it. All I want is to have certain Text shown in a box either with a lightbulb or exclamation point; etc. Any help would be much appreciated Thank you and I am sorry for not being able to follow the instructions on mediaWiki. Of Antonino.lara (talk) 17:46, 31 July 2023 (UTC)

