Project:Support desk/Flow/2024/03
| 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. |
Adding a footer link
There are several wiki pages suggesting ways to add links to the footer, but using that code, the link text generated on my site is wrapped in extra characters, appearing as ⧼Contact⧽.
I was able to work around it by simply coding the link myself.
$wgHooks['SkinAddFooterLinks'][] = function( Skin $skin, string $key, array &$footerlinks ) {
if ( $key === 'places' ) {
$footerlinks['contact'] = '<a href="/wiki/Special:Contact">Contact</a>';
};
};
Is anyone else experiencing this issue?
MediaWiki 1.41.0 BrewingForward (talk) 07:23, 1 March 2024 (UTC)
- That just means you are missing an i18n message of that name. It is probably expected you create it as page in mediawiki namespace. Bawolff (talk) 17:00, 2 March 2024 (UTC)
Sidebar Multilevel can be possible in version 1.41
I would like to be able to create in the sidebar a multi-nivel menu as attached to the link, I know that before 1.35 you could have...
Is in version 1.41.0 now possible to achieve?
SideBarMenu Preguntanivell (talk) 10:00, 1 March 2024 (UTC)
Error Messages not showing during wiki config
I am trying to launch mediawiki 1.18.6 on an ubuntu EC2 instance (so to then migrate an old server onto it) to do this I've installed php5.6. However when going onto the mw-config page to configure the wiki, the error messages in error boxes don't seem to appear. Going into the apache2 error logs I found the following:
Invalid argument supplied for foreach() in /var/lib/mediawiki/includes/MagicWord.php on line 835
preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /var/lib/mediawiki/includes/MagicWord.php on line 839
preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /var/lib/mediawiki/includes/MagicWord.php on line 834
I cannot upgrade the mediawiki or php version as the migration won't work, any ideas on what is causing this error or possible fixes? 155.190.60.27 (talk) 11:46, 1 March 2024 (UTC)
- See: https://www.mediawiki.org/w/index.php?title=Project%3ASupport%20desk/Flow/2014/07#h-%5BRESOLVED%5D_Warning%3A_preg_replace%28%29%3A_Compilation_failed%3A_group_name_must_start_wi-2014-07-24T05%3A10%3A00.000Z —TheDJ (Not WMF) (talk • contribs) 18:44, 1 March 2024 (UTC)
- The solution (…/MagicWord.php · Gerrit Code Review (wikimedia.org)) in that thread refers to code that doesn't match that in my project. They edit a "group" function, which my code doesn't even have 155.190.33.7 (talk) 09:18, 4 March 2024 (UTC)
- You're using an unsupported version of MediaWiki. And not just a slightly unsupported version - we are talking over a decade out of date. That means you are on your own when it comes to bugs. You'll have to adapt the patch to your version of MediaWiki, or you have to compile php using an older version of PCRE.
- If you have issues updating, you can post about that. It is much more likely people will help you with that then help you with fixing bugs in a decade old version of MediaWiki. Bawolff (talk) 11:24, 6 March 2024 (UTC)
how do I undo a redirect?
How do I undo a redirect? GLSpres (talk) 13:10, 2 March 2024 (UTC)
- use Special:MovePage to the move the page back? Bawolff (talk) 11:18, 6 March 2024 (UTC)
Translation issues (AF)
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.
(moved to Project:Village Pump) M7 (talk) 13:36, 3 March 2024 (UTC)
Wikipedia like searchbar with image thumbnails and extra text
I want to have a wikipedia like search bar with pictures and extra text ( https://pasteboard.co/Ke0fQ8dfdCPn.png ), how would i achieve this? I have been struggling alot with multiple extensions but i cant seem to make it work? Whitepillwisdom (talk) 20:58, 3 March 2024 (UTC)
- Try using Skin:Vector/2022 or Skin:Minerva_Neue Bawolff (talk) 11:18, 6 March 2024 (UTC)
Look of pages for anonymous users
I've not configured a new instance of mediawiki for a decade and now I'm grappling with 1.41.0. I want to prevent anonymous users from registering and editing. The page layout for anonymous and logged-in users is completely different. I want it all to look exactly the same except for the inclusion or exclusion of the edits, links to special pages, etc. Is this possible? 174.91.148.25 (talk) 21:19, 3 March 2024 (UTC)
- While this hasn't really changed in the last decade.
- Page layout may depend on what skin you are using. Some skins may show different content for logged out users, but most do not look significantly different.
- See manual:$wgGroupPermissions for how to restrict access. Bawolff (talk) 11:17, 6 March 2024 (UTC)
pages showing too much code
Hi,
I used ImportDump to import xml files from wikipedia's special:export.. but the pages are showing too much code in them like:
}}{{#ifeq:{{{pagetype}}}|Disambiguation pages||
here's a sample url:
Stirling radioisotope generator - KYNNpedia (kynnco.com)
how to fix this please?
thanks.. Planetsmartsolutions (talk) 02:55, 4 March 2024 (UTC)
- You haven't installed Extension:ParserFunctions most likely. A note that wikipedia templates can get very complex and require lots of additional dependencies. —TheDJ (Not WMF) (talk • contribs) 13:40, 5 March 2024 (UTC)
Interlanguage linking
I have set up a wiki family of en.example.wiki (English version), id.example.wiki (Indonesian), and my.example.wiki (Burmese).
Not sure if this is relevant but the three wikis are configured to share the same database with $wgSharedDB, $wgSharedTables, $wgSharedPrefix. The purpose of this is that I want users to use the same login in all three wikis.
I've added each wiki in Special:Interwiki and they are recognised properly under interlanguage prefixes.
However, when I want to link the Indonesian Main Page in the English one using [[id:Halaman Utama]], it actually links to the Indonesian Wikipedia id.wikipedia.org rather than my Indonesian wiki id.example.wiki. The same happens when I link pages in the Burmese wiki.
What might have I missed? Appreciate any help the MediaWiki community can offer. I5atw (talk) 04:01, 4 March 2024 (UTC)
- That's definitely odd. If your wiki is public it would be helpful to have a link to it. Bawolff (talk) 11:15, 6 March 2024 (UTC)
Н а смартфоне постоянно открывается м
На смартфоне постоянно открывается настольная версия как сделать чтобы открывалась мобильная 2A03:D000:4102:2163:1:0:99E3:EEC (talk) 12:10, 4 March 2024 (UTC)
- Is this on your own wiki or someone else's wiki? Bawolff (talk) 11:14, 6 March 2024 (UTC)
Easy to use version in wiki format, offline.
I am interested in using the wiki template for private content on my computer.
Is it possible to download the template to the computer, for an easy installation that will not require the use of ubuntu, for example? חיים ש (talk) 13:22, 4 March 2024 (UTC)
- What is "the wiki template"? Do you mean the MediaWiki software itself? In that case, see the Installation guide on the frontpage - Ubuntu is not a requirement. Malyacko (talk) 14:37, 5 March 2024 (UTC)
- You can run MediaWiki locally on any OS including windows & mac. However if you aren't familiar with web servers, you might have to learn some new things to do so, and it might not be the "easiest" for you. Bawolff (talk) 11:13, 6 March 2024 (UTC)
JS Standard
I have a website with MediaWiki software 1.39.6. Can I enable js ES6 support and acync/await syntax? מיכי י-ם (talk) 14:08, 4 March 2024 (UTC)
- I would reccomend using MediaWiki 1.41 and later if you need ES6. However in 1.39, you should be able to use ES6 with extension:Gadgets if the
requiresES6option is specified for the gadget module. Bawolff (talk) 11:12, 6 March 2024 (UTC) - Could you point me to the documentation on configuring requiresES6 מיכי י-ם (talk) 13:02, 6 March 2024 (UTC)
Error using "php run runJobs.php" with PostgreSQL
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.
Never checked (manually) since upgrade to 1.41 for runJobs.php. Everything else (like update, showJobs, refreshLinks, ...) works totally fine.
| MediaWiki | 1.41.0 (a9b6004)
00:46, 3. Mär. 2024 |
| PHP | 7.4.33 (apache2handler) |
| ICU | 67.1 |
| PostgreSQL | 12.18 (Debian 12.18-1.pgdg100+1) |
$wgDBtype = "postgres"; and $wgDBserver, $wgDBport, $wgDBname along with username and password are set (and working since 1.35).
the errors I get when I try to runJobs (even the job queue is empty!):
[2b2aa9f69a1110af340b51f2] [no req] TypeError: Argument 1 passed to Wikimedia\Rdbms\Platform\PostgresPlatform::setCoreSchema() must be of the type string, null given, called in /srv/www/testing/REL1_41/includes/libs/rdbms/database/DatabasePostgres.php on line 805
Backtrace:
from /srv/www/testing/REL1_41/includes/libs/rdbms/platform/PostgresPlatform.php(60)
#0 /srv/www/testing/REL1_41/includes/libs/rdbms/database/DatabasePostgres.php(805): Wikimedia\Rdbms\Platform\PostgresPlatform->setCoreSchema()
#1 /srv/www/testing/REL1_41/includes/libs/rdbms/database/DatabasePostgres.php(131): Wikimedia\Rdbms\DatabasePostgres->determineCoreSchema()
#2 /srv/www/testing/REL1_41/includes/libs/rdbms/database/Database.php(268): Wikimedia\Rdbms\DatabasePostgres->open()
#3 /srv/www/testing/REL1_41/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1075): Wikimedia\Rdbms\Database->initConnection()
#4 /srv/www/testing/REL1_41/includes/libs/rdbms/loadbalancer/LoadBalancer.php(934): Wikimedia\Rdbms\LoadBalancer->reallyOpenConnection()
#5 /srv/www/testing/REL1_41/includes/libs/rdbms/loadbalancer/LoadBalancer.php(801): Wikimedia\Rdbms\LoadBalancer->reuseOrOpenConnectionForNewRef()
#6 /srv/www/testing/REL1_41/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1792): Wikimedia\Rdbms\LoadBalancer->getServerConnection()
#7 /srv/www/testing/REL1_41/includes/libs/objectcache/wancache/WANObjectCache.php(1726): Wikimedia\Rdbms\LoadBalancer->Wikimedia\Rdbms\{closure}()
#8 /srv/www/testing/REL1_41/includes/libs/objectcache/wancache/WANObjectCache.php(1556): WANObjectCache->fetchOrRegenerate()
#9 /srv/www/testing/REL1_41/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1808): WANObjectCache->getWithSetCallback()
#10 /srv/www/testing/REL1_41/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1766): Wikimedia\Rdbms\LoadBalancer->isPrimaryRunningReadOnly()
#11 /srv/www/testing/REL1_41/includes/libs/rdbms/ReadOnlyMode.php(55): Wikimedia\Rdbms\LoadBalancer->getReadOnlyReason()
#12 /srv/www/testing/REL1_41/includes/libs/rdbms/ReadOnlyMode.php(36): Wikimedia\Rdbms\ReadOnlyMode->getReason()
#13 /srv/www/testing/REL1_41/includes/jobqueue/JobRunner.php(168): Wikimedia\Rdbms\ReadOnlyMode->isReadOnly()
#14 /srv/www/testing/REL1_41/maintenance/runJobs.php(98): JobRunner->run()
#15 /srv/www/testing/REL1_41/maintenance/includes/MaintenanceRunner.php(703): RunJobs->execute()
#16 /srv/www/testing/REL1_41/maintenance/run.php(51): MediaWiki\Maintenance\MaintenanceRunner->run()
#17 /srv/www/testing/REL1_41/maintenance/run(3): require(string)
What I'm missing? Brabi81 (talk) 14:10, 4 March 2024 (UTC)
- Just adding some documentation, no idea what the problem is:
- https://github.com/wikimedia/mediawiki/blob/REL1_41/includes/libs/rdbms/database/DatabasePostgres.php#L805
- Means that getCurrentSchema() is returning null (it executes
SELECT current_schema()). As this seems pretty common, I'd expect lots of other stuff to fail if there was a fundamental issue. So most likely is that there is a difference in the entry point that would trigger this. - You might want to file a ticket in Phabricator for this. —TheDJ (Not WMF) (talk • contribs) 10:59, 6 March 2024 (UTC)
- Check what $wgDBmwschema is set to. A common value for postgres is 'mediawiki' Bawolff (talk) 11:08, 6 March 2024 (UTC)
- Running
SELECT current_schema()directly in PostgreSQL works and returns the right schema. It is the same like set in the LocalSettings.php$wgDBmwschema. Change it (for testing) in the LocalSettings.php set a lot more of the page and other things out of work. It looks like its only runJobs.php or JobRunner entry point that fails. With alot of digging, if set the correct schema in thereturnpart ofPostgresPlatform::setCoreSchema()then the runJobs works as expected. - Okay then maybe I should write a ticket. Thanks alot! Brabi81 (talk) 13:46, 6 March 2024 (UTC)
- Put a ticket on this https://phabricator.wikimedia.org/T359510. Here for reference. Brabi81 (talk) 09:45, 7 March 2024 (UTC)
Large number of files in images temp directory
I have a large amount (11G) of files in the temp directory of my images folder. Is there any reason these need to be kept? Is there a maintenance script that should be managing the contents of that folder? Blinkingline (talk) 14:55, 4 March 2024 (UTC)
- It depends on what type of images they are and what created them. Generally though that seems like a lot.
- Try running cleanupUploadStash.php and see if that helps. Bawolff (talk) 11:06, 6 March 2024 (UTC)
OOUI\Exception: OOUI\Theme::singleton was called with no singleton theme set
I pulled mediawiki:latest docker desktop.
I received the notification: "You've just made your tenth edit; thank you, and please keep going!".
When I click on it I see the following error:
http://localhost:999/index.php?title=Potato&oldid=prev&diff=11&markasread=6
Fatal error: OOUI\Exception: OOUI\Theme::singleton was called with no singleton theme set. in /var/www/html/vendor/oojs/oojs-ui/php/Theme.php:31 Stack trace: #0 /var/www/html/vendor/oojs/oojs-ui/php/Element.php(259): OOUI\Theme::singleton() #1 /var/www/html/vendor/oojs/oojs-ui/php/Tag.php(507): OOUI\Element->toString() #2 /var/www/html/extensions/VisualEditor/includes/Hooks.php(244): OOUI\Tag->__toString() #3 /var/www/html/includes/HookContainer/HookContainer.php(161): MediaWiki\Extension\VisualEditor\Hooks->onTextSlotDiffRendererTablePrefix(Object(TextSlotDiffRenderer), Object(RequestContext), Array) #4 /var/www/html/includes/HookContainer/HookRunner.php(1334): MediaWiki\HookContainer\HookContainer->run('TextSlotDiffRen...', Array) #5 /var/www/html/includes/diff/TextSlotDiffRenderer.php(273): MediaWiki\HookContainer\HookRunner->onTextSlotDiffRendererTablePrefix(Object(TextSlotDiffRenderer), Object(RequestContext), Array) #6 /var/www/html/includes/diff/DifferenceEngine.php(942): TextSlotDiffRenderer->getTablePrefix(Object(RequestContext), Object(MediaWiki\Title\Title)) #7 /var/www/html/includes/diff/DifferenceEngine.php(928): DifferenceEngine->showTablePrefixes() #8 /var/www/html/includes/page/Article.php(979): DifferenceEngine->showDiffPage(false) #9 /var/www/html/includes/page/Article.php(490): Article->showDiffPage() #10 /var/www/html/includes/actions/ViewAction.php(78): Article->view() #11 /var/www/html/includes/MediaWiki.php(583): ViewAction->show() #12 /var/www/html/includes/MediaWiki.php(363): MediaWiki->performAction(Object(Article), Object(MediaWiki\Title\Title)) #13 /var/www/html/includes/MediaWiki.php(960): MediaWiki->performRequest() #14 /var/www/html/includes/MediaWiki.php(613): MediaWiki->main() #15 /var/www/html/index.php(50): MediaWiki->run() #16 /var/www/html/index.php(46): wfIndexMain() #17 {main} in /var/www/html/vendor/oojs/oojs-ui/php/Tag.php on line 509
I Googled it and it sent me to https://gerrit.wikimedia.org/r/c/mediawiki/extensions/ConfirmEdit/+/534902
but that line was already in my version of that file.
MediaWiki 1.41.0 PHP 8.1.27 (apache2handler) ICU 72.1 SQLite 3.40.1
How can I fix this error?
I added:
$wgDefaultUserOptions['usebetatoolbar'] = 1; $wgDefaultUserOptions['usebetatoolbar-cgd'] = 1; $wgDefaultUserOptions['usebetatoolbar-cdt'] = 1; $wgDefaultUserOptions['usebetatoolbar-source'] = 1; $wgDefaultUserOptions['usebetatoolbar-diff'] = 1; $wgDefaultUserOptions['usebetatoolbar-wikitext'] = 1;
to LocalSettings.php but that did nothing as far as I can see.
Polygnotus (talk) 13:52, 5 March 2024 (UTC)
- I don't know much about how docker works or how the MW docker image works.
- But my generic advice would be, be sure that VisualEditor is using the correct version for your version of MediaWiki and be sure
composer update[I don't know how the docker image manages such things, so it may already be done] Bawolff (talk) 11:04, 6 March 2024 (UTC)
Category Side Bar Limited?
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 wondering if the side bar is limited? What we have is in our Category:Unreferenced_BLPs at simple, it only shows articles tagged from 2015 on, however, we have a lot more before that. Basically it is saying on the right hand side we have 176 articles without sources, but in reality, we have over 900 pages needing references. So is this a limit via the software or is it something that can be fixed by coding? I looked at the en wiki version and it appears they include all BLP tags in theirs. Thanks! Thanks and edit well!- PDLTalk to me!Please don't eat da 🐑! 16:59, 5 March 2024 (UTC)
- What sidebar are you referring to? Bawolff (talk) 11:03, 6 March 2024 (UTC)
- @Bawolff If you look at [https://simple.wikipedia.org/wiki/Category:BLPs_needing_more_sources it is the box on the right that says we have 118 articles (at the time of this post). It shows back to May 2015, but we have articles that go a lot further back then that which you will see on the bottom half of the page that shows all of them. Thanks and edit well!- PDLTalk to me!Please don't eat da 🐑! 11:22, 6 March 2024 (UTC)
- That is not a mddiawiki feature but a template created on wiki, so it can do anything you want. The only limit is it is only allowed to look up 500 categories (currently at 221 lookups). Bawolff (talk) 08:31, 7 March 2024 (UTC)
- @Bawolff Ok thank you. I will dive into it deeper then. Thanks. Thanks and edit well!- PDLTalk to me!Please don't eat da 🐑! 08:48, 7 March 2024 (UTC)
Extension Score Error
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I get this error from score is 755 enough permissions?
Unable to copy the generated files to their final location: Could not create directory "mwstore://score-backend/score-render/n/o/nocswws3evaq7ip24jyqjza7ynlhpg7". AlgorithmGG (talk) 02:42, 6 March 2024 (UTC)
- Check the permissions and OWNERS in images/lilypond/
- Generally this means that the software running the software is not able to create the directory, because it does not have the permission to do so. While people often remember to check the permissions, they forget that the owner (or if you configured sticky permissions, the group) has the right permissions on the directories to create new directories. —TheDJ (Not WMF) (talk • contribs) 10:44, 6 March 2024 (UTC)
- These are current permission settings:
- how should the owner be set?
- drwxrwxr-x 2 root root 4096 Mar 5 23:21 images/lilypond AlgorithmGG (talk) 19:54, 6 March 2024 (UTC)
Search box searching everything instead of content
Hi,
in our mediawiki installation when using the search box, it searches for Everything instead of content pages, meaning its also showing pages with uploaded images etc. which is kinda useless.
Basically, when i search with the search box for e.g. test, the URL is
search=test&title=Spezial%3ASuche&go=Go
showing the results for "everything" which would be the URL
title=Spezial:Suche&profile=all&search=test&fulltext=1
but what i would want to be used is
title=Spezial:Suche&profile=default&search=test&fulltext=1
switching the profile=all to profile=default.
This does seem to be default (indicated by URL as well), but somehow it isn't for my installation.
How can I change this? I couldn't find a variable for LocalSettings.php. Do I need an apache rewrite rule? I've seen SpecialSearch.php might need to be changed, is that true? That would probably not be update consistent then right?
Thanks for helping! 217.253.41.222 (talk) 13:05, 6 March 2024 (UTC)
How to upload a photo to wikimedia commons via the API in javascript
Hi everyone,
I am trying to build a map using leaflet that allows you to select a location and upload a photo from your device to the wikimedia commons. How do I use the API and do this in javascript. Any tips are appreciated. Thank you WikiCoder890 (talk) 15:56, 6 March 2024 (UTC)
Bugs: Missing files
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I get this error on a page looks like i am missing something. the path not found doesn't exsist.
[ZejV4bJV8XpufbxJaxdk4QAA9Bc] /index.php?title=Synthesizer Error: Class "Wikimedia\CSS\Parser\Parser" not found
Backtrace: AlgorithmGG (talk) 21:09, 6 March 2024 (UTC)
Importing from old version
Hi, we have a wiki running on Mediawiki 1.15.1, can we export it import it into a current version of Mediawiki? 212.222.134.194 (talk) 09:39, 7 March 2024 (UTC)
- See Manual:Upgrading#How_do_I_upgrade_from_a_really_old_version?_In_one_step,_or_in_several_steps?. Jonathan3 (talk) 13:27, 7 March 2024 (UTC)
- see also my topic "migrate from openSUSE to Ubuntu" as I migrated from 1.12. to 1.41 in two steps MisterButcher (talk) 07:29, 9 March 2024 (UTC)
Checking extension/skin non-compatibility automatically
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Is this possible? I suppose I have in mind a script that would save me having to check the "Breaking changes" part of release notes (e.g. https://www.mediawiki.org/wiki/Release_notes/1.36). Jonathan3 (talk) 09:40, 7 March 2024 (UTC)
- No. Or at least you can't check everything automatically. Bawolff (talk) 20:07, 9 March 2024 (UTC)
- Thanks. Jonathan3 (talk) 22:12, 9 March 2024 (UTC)
Forgotten Email/Username
We have taken over a client that uses MediaWiki for a database. The old IT staff didnt document things at all. I have no idea what username/email was used to setup the account. Is there a way to figure this out so I can get the password reset? I have tried a number of the support emails they have and no such luck. 2601:602:8D81:61E0:A8FD:B8CC:484:382D (talk) 19:22, 7 March 2024 (UTC)
- Manual:Resetting passwords —TheDJ (Not WMF) (talk • contribs) 20:25, 7 March 2024 (UTC)
- I cannot access my account. The last time I logged into it was in 2023.
- if I changed my password, I neglected to record it in my lockbox
- how can I access my account? I used both my emails at different times in the off chance I didn’t use my yahoo account
- now what? 2001:579:18BF:16:946C:9DD5:21A3:EEBE (talk) 21:57, 8 March 2024 (UTC)
Template creating two tables
I'm trying to create a template that generates a table. It's all inside <table></table> but for some reason one parameter generates it's own table. Is there a common mistake that might have caused this? 174.86.73.74 (talk) 20:50, 7 March 2024 (UTC)
- Copy and paste your template here and we'll see :-) Jonathan3 (talk) 00:30, 9 March 2024 (UTC)
MediaWiki:Print.css
Hi,
i tried to change font-family on printing. I open MediaWiki:Print.css and added html,body{font-family:"Arial";} but its ignored. How to change CSS on Printpage?
I use latest MW with Skin Vector.
Thx TasteOfIT (talk) 23:17, 7 March 2024 (UTC)
- Hi All,
- any idea to solve this?
- Thx TasteOfIT (talk) 08:36, 11 March 2024 (UTC)
- What extension are you using? AlgorithmGG (talk) 19:54, 11 March 2024 (UTC)
Parameter within calculation
Hi,
I was trying to add a template to compare sizes between the sun and a custom star visually in solar radii; 1 radii is the sun. Simply put; f you put 0.5 into the parameter, the custom star image size will be 50% of the sun's image size.
I tried
[[File:(file)|{{#expr: 300*{{{r}}}}}}px]]
300 is the sun's image size, {{{r}}} is the input.
It did not work. What should I do? 1.4.251.142 (talk) 08:48, 9 March 2024 (UTC)
- nevermind, i put the wrong wikitext on the actual template, while i unintentionally put the ACTUAL one here. it works now. sorry! 1.4.251.142 (talk) 08:52, 9 March 2024 (UTC)
update.php 1.39 removes charset of several columns
Howdy,
when upgrading from 1.35 to 1.39, the script update.php changes the character set and collation of several database columns e.g. page_title to NULL. Why? It shouldn't. Never. N-e-v-e-r.
How can I avoid that? There is, of course, a reason to have a certain character set and collation. 2003:C2:3F21:FD00:D4F9:F84A:F6CC:F3CA (talk) 15:05, 9 March 2024 (UTC)
- Ladies and gentlemen,
- before 1.39 the page_title looked like this:
- mysql> select page_id, page_title from page limit 3;
- +---------+------------+
- | page_id | page_title |
- +---------+------------+
- | 42473 | 'Issch'aa' |
- | 19481 | 'nan-Si |
- | 73864 | 'Tigonos |
- +---------+------------+
- 3 rows in set (0,00 sec)
- now, update.php changes the column to varbinary NULL and the result is:
- mysql> select page_id, page_title from page limit 3;
- +---------+------------------------+
- | page_id | page_title |
- +---------+------------------------+
- | 42473 | 0x27497373636827616127 |
- | 73864 | 0x275469676F6E6F73 |
- | 19481 | 0x276E616E2D5369 |
- +---------+------------------------+
- 3 rows in set (0,00 sec)
- The result is really a little bit annoying. Several db columns are modified that way. WHY do you do that and HOW can I avoid it? 2003:C2:3F21:FD00:C0D4:B817:C0F2:9DF9 (talk) 13:28, 15 March 2024 (UTC)
- Is there anybody out there? 79.224.210.84 (talk) 16:27, 8 April 2024 (UTC)
- As you can see here: Manual:Page table, MediaWiki has long since used binary for strings. It does this because traditionally MediaWiki supported more locales than the databases did and because support for locales across the different db engines was very inconsistent. It pretty much ignores the locale of the tables fields, and only slightly cares about the default locale of the database (mostly because some 3rd party extensions don't follow conventions). —TheDJ (Not WMF) (talk • contribs) 09:00, 9 April 2024 (UTC)
- Would be great if Mediawiki *ignores* the locale of the tables fields. But it does not. The database script deliberately *modifies* the locale from human readable to binary. *Modifying* is exactly the opposite of what you state it does.
- I see it was my fault thinking that Mediawiki developers do care about their users. Just as any closed circles they tend to drift away to outer space. What a pity. 2003:C2:3F21:FD00:38C4:5C36:EBC:90FA (talk) 12:38, 10 April 2024 (UTC)
wiki header change while ranking instead of url
Hello is there anyone who knowns how to chnage site title while ranking on google instead of url
For Example If anyone search XYZ name on google then wikipedia results appear
First in site titile written Wikipedia then Url then Subject name and description how to replace my wiki in site title instead of URL by default URL is appearing 38.137.49.25 (talk) 15:39, 9 March 2024 (UTC)
Using #switch
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 trying to create a template that if you write for example:
{{templatename|a}} it will instead render "b".
I've tried to do it like this:
{{#switch:{{{1|}}}|Test=test|test1=test1}}
The problem is when I type {{templatename|test}} instead of saying "test", it says this:{{#switch:test|Test=test|test1=test1}}
What have I done wrong here? I based this off a template I saw on another wiki so maybe they have an extension we don't allowing it to work? 174.86.73.74 (talk) 23:07, 9 March 2024 (UTC)
- Update, just realized we hadn't downloaded a needed extension first. Problem resolved :) 174.86.73.74 (talk) 23:13, 9 March 2024 (UTC)
Case sensitivity in searching
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.
Provided that I have 3 pages whose name is
- Time.1
- HZFile.1
- HZFILE1
When I type TIME.1 and hzfile1 in the searching box, I can go to page named Time.1 and HZFILE1 directly. But when I type hzfile.1, I cannot go to the page named HZFILE1 directly. Can anyone explain the mechanism of searching of MediaWiki please? Teetrition (talk) 09:48, 10 March 2024 (UTC)
- It seems the search engine will match lower-case, upper-case and first letter capitalization automatically. Teetrition (talk) 10:25, 10 March 2024 (UTC)
Only accept specific inputs - template
I'm setting up a simple template and one part of it just just displays whatever is put in for parameter one. What I'm trying to do is set it up so it only accepts numbers 1-10 or letters a-j and if an someone that isn't that is put in it displays some sort of error message, is there a way to do that? 47.24.152.95 (talk) 18:52, 10 March 2024 (UTC)
- Try out Help:Extension:ParserFunctions##switch.
- The template could have something like this (not checked, and probably there's a more elegant way):
- Jonathan3 (talk) 00:48, 11 March 2024 (UTC)
{{#switch: {{{1|}}} | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 = {{{1|}}} | #default = Some sort of error message }}
Logo not showing using Vector 2022 skin.
Logo's are not appearing when using Vector 2022 Skin, but the logo does show when switching to old. Has anybody resolved this?
Installed software
| Product | Version |
|---|---|
| MediaWiki | 1.42.0-alpha |
| PHP | 8.3.2 (fpm-fcgi) |
| ICU | 70.1 |
| MariaDB | 10.6.16-MariaDB |
| LilyPond | 2.22.1 |
I am unable to find or locate the CSS file.
Skin:Vector/Customizing the logo for special events - MediaWiki AlgorithmGG (talk) 05:10, 11 March 2024 (UTC)
- Please read Manual:$wgLogos. Skin:Vector/Customizing the logo for special events - MediaWiki is not something you should generally use, it is only for local communities to temporarily override a logo. —TheDJ (Not WMF) (talk • contribs) 08:57, 13 March 2024 (UTC)
- Any idea what page the css is written in? or is it being fetch? i have not started looking yet. AlgorithmGG (talk) 02:24, 14 March 2024 (UTC)
Updated to 1.41 and getting performance issues
Hi all,
We have upgraded to 1.41 and updated to Visual Editor version 0.1.2 (e8fb5d8) 06:18, 28 February 2024 and suddenly we are noticing very slow loading times for pages, sometimes VE launches when trying to edit pages, other times it just hangs. We sometimes get 502 and 504 errors, but more often than not we see 200 messages. Does anyone have any insight to share? thanks in advance Waterlooglass (talk) 13:26, 11 March 2024 (UTC)
Prevent Mediawiki from redirecting pages with spaces in page name
When on my Mediawiki 1.39.5 a page is requested with a space in the URL, like
Dummy%20Dummy
then mediawiki seems to issue a 301 redirect to Dummy_Dummy before the page is actually served.
If the page is already in (html) cache as specified by $wgFileCacheDirectory, then no such redirect happens.
The redirect interferes with the indexing of my pages by Google.
Is there a way to set Mediawiki not to issue this 301 redirect? Aloist (talk) 11:07, 12 March 2024 (UTC)
- The proper link is Dummy_Dummy. So maybe fix the inbound links ? I'm not sure why this would interfere with google indexing. I'd also argue that the file cache is not a solution that any mature site should be using. nginx, haproxy and varnish all exist as first class load balancing and have much better caching solutions and are way better at it than MediaWiki itself. —TheDJ (Not WMF) (talk • contribs) 08:29, 13 March 2024 (UTC)
- I can see from browser access log that there are numerous requests from crawlers like crawl-66-249-64-65.googlebot.com
- to pages in out wiki with spaces in the url, space encoded as %20 like this
- /xxxx/Eyre,%20Ella
- The Google search console for my website https://search.google.com/search-console/index
- lists these pages as: page with redirect, not indexed.
- That is the problem: that Google for whatever reason has such URLs in its database, and refuses the index them.
- IF Mediawiki would simply serve that page, without doing a 301 redirect, the problem would go a away.
- I have observed that when the target page /xxxx/Eyre,_Ella is in Mediawiki html cache,
- Then a request to /xxxx/Eyre,%20Ella does not give a 301 redirect, but is served directly.
- There must be some code inside Mediawiki which decides whether to serve (from cache) or redirect.
- I would very much like to know where this code is. I would not hesitate to patch it. Aloist (talk) 12:40, 13 March 2024 (UTC)
- I have found includes/MediaWiki.php::
- private function tryNormaliseRedirect( Title $title )
- it decides whether to redirect or not. I will try patching this. Aloist (talk) 12:46, 13 March 2024 (UTC)
How to download it
Hey,
Does anybody know how to download it into a mac? Or if I need to use a windows computer how do I download it.
Thanks!! 181.41.144.239 (talk) 22:00, 12 March 2024 (UTC)
- Download what ? —TheDJ (Not WMF) (talk • contribs) 08:23, 13 March 2024 (UTC)
Warning when using generateSitemap.php
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 just upgraded from MediaWiki version 1.40.0. to 1.41.0. When I run php maintenance/run.php generateSitemap --server=https://my.wiki.com --fspath=/path/to/my/wiki/ --skip-redirects now, I'm getting the following PHP Warning: "Uninitialized string offset 0 in /path/to/my/wiki/maintenance/generateSitemap.php on line 500".
( $this->urlpath[0] === "/" ? "" : "/" ) .
Any ideas on how to fix this? Thanks, cheers and all the best! Till Kraemer (talk) 03:09, 13 March 2024 (UTC)
- Are you generating a site map without an extension? AlgorithmGG (talk) 07:41, 13 March 2024 (UTC)
- I'm using multiple extensions. Do you have an extension in mind that could cause such an issue? Thanks, cheers and all the best! Till Kraemer (talk) 11:56, 13 March 2024 (UTC)
- The extension I am familiar with creates alot of files, but works. AlgorithmGG (talk) 22:40, 13 March 2024 (UTC)
- Sorry, I misunderstood you! So you're using an extension to generate sitemaps. Is it AutoSitemap? I just checked it out but it says "If your instance is larger than 50k pages, you should use GenerateSitemap.php"; so it would be great if I could somehow get generateSitemap to work again. Maybe I should file a bug report. Thanks, cheers, and all the best! Till Kraemer (talk) 22:53, 14 March 2024 (UTC)
- I upgraded to MediaWiki version 1.41.1 but the warning still appears. I filed a bug report: https://phabricator.wikimedia.org/T361379 Till Kraemer (talk) 16:23, 29 March 2024 (UTC)
- Thank you for the patch! It works perfectly now! Cheers and all the best! Till Kraemer (talk) 13:30, 1 April 2024 (UTC)
About change
I work in an organization. Information about him is written on wikipedia. Now we have changed the data that has changed its name, but the title is not changing, please help
https://uz.wikipedia.org/wiki/Toshkent_davlat_agrar_universitetining_Termiz_filiali Sirojiddinx (talk) 08:18, 13 March 2024 (UTC)
- To change the title (URL) of a page you need to "move" it. This can be done here https://uz.wikipedia.org/wiki/Maxsus:MovePage/Toshkent_davlat_agrar_universitetining_Termiz_filiali
- Be aware that you may need permissions for this.
- Alternatively create a redirect page. Osnard (talk) 10:36, 13 March 2024 (UTC)
- Thanks for all i changed it Sirojiddinx (talk) 09:54, 14 March 2024 (UTC)
URLs ending with periods
In MediaWiki one can create page titles with a wide range of characters, including the dot/period.
E.g. a page like SomePage. is valid for MediaWiki.
Unfortunately many other applications to not allow a dot/period at the end of a URL. Is there maybe some documentation about why MediaWiki allows this? Osnard (talk) 10:41, 13 March 2024 (UTC)
- It's allowed, because the name of some things ends with a dot, especially abbreviations.
- Applications often do allow it, they just don't automatically parse it as part of the url if you dump the url into a freeform textarea. In order to make it a linkable link, the applications need some sort of delimiter to figure out the end of the link, but since you pasted it in as a piece of text, there is no delimiter and it will have to guess. And as it is pretty common for a link to be used in text and people then adding a . to indicate the end of their sentence, such programs will consider "punctuation whitespace" as the end of the url. This is not guaranteed to be correct, but generally it is what people meant, as having links end in punctuation is indeed pretty rare. These programs generally DO work if you use a link insertion dialog, with a dedicated input field for the url (so that the program doesn't have to guess).
- This is further complicated by the fact that a url actually has two forms. The 'readable' one and the 'technical' one (with percent-encoding). Applications now often use the readable version, but that makes it even harder to recognise the end of a url. —TheDJ (Not WMF) (talk • contribs) 11:27, 13 March 2024 (UTC)
- Thanks for the explanation. This is exactly the issue: when pasting a URL with a dot at the end into a tool like Slack, the resulting hyperlink in the message will not contain it, thus the link will be broken.
- One could probably implement a "implicit redirect" easily.
- "When a user visits a non-existing page, check in the DB if there is the same pagename but with a dot at the end. If so, do a redirect."
- But not sure it this is actually worth an extension. Osnard (talk) 15:09, 13 March 2024 (UTC)
Script error with Hatnote functions

Hi, I keep getting "Script error: The function "about/main" doesn't exist." on my hatnote templates. Is there a way to fix this? I'm exporting templates from Wikipedia to my Miraheze wiki, would that be a cause for the errors? How do I fix this? Yuunarichu (talk) 01:05, 14 March 2024 (UTC)
- there are probably additional templates or modules you need to import. Bawolff (talk) 10:11, 14 March 2024 (UTC)
- Hi, do you know which ones I should import? I couldn't find anything that works with the template. Yuunarichu (talk) 01:23, 17 March 2024 (UTC)
- Hi, do you know which ones I should import? I couldn't find anything that works with the template. Yuunarichu (talk) 01:25, 15 March 2024 (UTC)
I am having errors with the Extension:CITE. Any suggestions why?
I am having errors with the Extension:CITE. Any suggestions why?
Photo:
https://imgur.com/a/huQOWPD 2A00:1370:8186:1427:78D8:26C3:E585:7C98 (talk) 01:15, 14 March 2024 (UTC)
- Make sure you have the correct version for your version of mediawiki. Bawolff (talk) 10:10, 14 March 2024 (UTC)
Error on new server
We wanted our site to be on another server as well. We have moved a copy of the site to another server: Şəki Ensiklopediyası (shaki.info)
But there was a problem, it didn't work there. Please help to fix the problem. Шариф Ахмет (talk) 19:37, 14 March 2024 (UTC)
- What language is it? AlgorithmGG (talk) 22:52, 14 March 2024 (UTC)
- Azerbaijani. Шариф Ахмет (talk) 06:48, 15 March 2024 (UTC)
- It looks like proc_open needs to be enabled. AlgorithmGG (talk) 11:04, 15 March 2024 (UTC)
- Here's what happened after activation:
- File:Ekran görüntüsü (371).png
- After that we added the following code to "LocalSettings.php".
- "# Where Lua is the name of the binary file
- # e.g. SourceForge LuaBinaries 5.1.5 - Release 2 name the binary file lua5.1
- $wgScribuntoEngineConf['luastandalone']['luaPath'] = '/path/to/binaries/lua5.1';"
- After that, the site opened, but with a Lua error:
- Şəki Ensiklopediyası (shaki.info) Шариф Ахмет (talk) 12:46, 15 March 2024 (UTC)
- It looks like it is not installed correctly is that the right path? AlgorithmGG (talk) 13:24, 15 March 2024 (UTC)
- Do you mean Lua? Do you mean '/path/to/binaries/lua5.1' ?
- We have "lua5.1" here:
- /domains/shekiwiki.com/public_html/encyclopedia/extensions/Scribunto/includes/Engines/LuaStandalone/binaries/lua5_1_5_Win32_bin/lua5.1.exe Шариф Ахмет (talk) 13:38, 15 March 2024 (UTC)
- This part ['luaPath'] = '/path/to/binaries/lua5.1';"
- Where is say path/to needs to be correct. AlgorithmGG (talk) 14:14, 15 March 2024 (UTC)
Шариф Ахмет (talk) 11:43, 16 March 2024 (UTC)
- How to show the way?
- = '/path/to/binaries/lua5_1_5_Win32_bin/lua5.1.exe';"
- Will it be so?
- That's how we wrote it. But nothing changed?
- On this server, version 1.35 was working normally, but.
- We added the following codes to the LocalSettings.php file:
- $wgShowExeptionDetails = true;
- $wgDebugLogFile = "D:/log/debug-{$wgDBname}.log";
- $wgScribuntoEngineConf['luastandalone']['errorFile'] = 'D:/log/scribunto.log';
- The following errors appeared:
- Error Lua: The process could not be created: proc_open(/dev/null): Failed to open stream: Operation not permitted Error Lua: The process could not be created: proc_open(/dev/null): Failed to open stream: Operation not permitted Error Lua: The process could not be created: proc_open(/dev/null): Failed to open stream: Operation not permitted
- Şəki Ensiklopediyası (shaki.info) Шариф Ахмет (talk) 14:29, 15 March 2024 (UTC)
- Why are you setting
$wgScribuntoEngineConf['luastandalone']['luaPath']in the first place? The default is probably fine. - which operating system is your server? The error sounds unix, but the paths you mention look windows. Bawolff (talk) 09:01, 19 March 2024 (UTC)
- CentOS 7.9
- We transferred our site to "Orangehost" a few days ago. There was no problem there, the site was working normally. But "Orangehost" is a common scammer, after 3 days they closed the host and deleted the site. :) Well, there was a copy on the previous server. Now this is our only site, there is no other: https://sheki.org/wiki/Ana_s%C9%99hif%C9%99
- Please help us fix the site. Шариф Ахмет (talk) 16:21, 19 March 2024 (UTC)
- > CentOS 7.9
- While then any config starting with D:/ is almost certainly wrong.
- I would suggest maybe checking the selinux config (i.e. look through selinux logs if selinux is enabled and check if they are blocking stuff related to mediawiki, apache or lua) Bawolff (talk) 16:37, 19 March 2024 (UTC)
- Selinux is disabled. Шариф Ахмет (talk) 17:54, 19 March 2024 (UTC)
- We have found a solution to the problem. Transfer the site to another server. It works normally on another server. But we didn't copy the wrong version, we copied another version. This version is the same on the new server. When I bring the normal version from the new server here, it happens again.
- Erroneous version: https://shekiwiki.com/encyclopedia/index.php
- Normal version: https://sheki.org/wiki/index.php
- Thanks to all. Шариф Ахмет (talk) 04:42, 21 March 2024 (UTC)
Registration on Wiki with OTP code via SMS
Hello.
How i can realize registraition via SMS OTP code?
I have an SMS provider API (HTTP API, SOAP, SMPP, SQL protocols are supported). 77.120.163.251 (talk) 16:19, 15 March 2024 (UTC)
InnoDB
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 getting alerts that my AWS RDS MySQL Database contains MyISAM tables that have not been migrated to InnoDB. How do I update this in my mediawiki application? Waterlooglass (talk) 18:26, 15 March 2024 (UTC)
- This is not a MediaWiki specific problem. Just follow general mysql instructions on how to convert your mysql myisam tables to innodb. —TheDJ (Not WMF) (talk • contribs) 20:04, 15 March 2024 (UTC)
500 error from load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector
Hi all,
My wiki was working fine until a month ago, and then pages started to time out from loading, and VisualEditor wouldn't launch. I'm seeing a failed to load error for load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector in Chrome and Edge resulting in 502. I'm running Mediawiki 1.41 and VisualEditor version 0.1.2 (e8fb5d8).
Can anyone assist? Waterlooglass (talk) 20:53, 15 March 2024 (UTC)
- Check error logs.
- 502 often means timeout Bawolff (talk) 08:55, 19 March 2024 (UTC)
- error logs are not showing anything, I'm seeing 200 responses. Is it possible it has something to do with cacheing? I don't have it configured by default. Waterlooglass (talk) 19:05, 26 March 2024 (UTC)
How to set italic font
I managed to set a google font (Lato) as the default font in my wiki. However, for the italics, it does not appear as the actual italic font, rather just a slanted version of Lato (faux italic). I wanted it to get actual true italic of the font, how do I do that?
This is my code in MediaWiki:Common.css:
@import url('https://(google api)/css2?family=Lato&display=swap')
body * { font-family: "Lato", sans-serif!important;
} 101.109.31.151 (talk) 11:45, 17 March 2024 (UTC)
- Also I typed (google api) instead of the actual link here to avoid abuse filter. 101.109.31.151 (talk) 11:46, 17 March 2024 (UTC)
- You need a different import probably that includes both font styles.
- Possibly.
- Bawolff (talk) 08:52, 19 March 2024 (UTC)
@import url('https://fonts.googleapis.com/css2?family=Lato:ital@0;1&display=swap')
Class "ResourceLoaderSkinModule" not found
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
when I try install v1.42, this error showed
Class "ResourceLoaderSkinModule" not found Tunglinwu (talk) 14:02, 17 March 2024 (UTC)
- Which exact (URL) installation guide do you follow, and at which exact step are you? Malyacko (talk) 14:02, 17 March 2024 (UTC)
- I want open Main Page.
- I have been update vactor skin and fixed. Tunglinwu (talk) 14:35, 17 March 2024 (UTC)
Error: Class "ResourceLoaderImageModule" not found
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.
TRY SHOW ERROR ONLY
[ec39bead81e092f99b7a609b] /load.php?lang=zh-tw&modules=startup&only=scripts&raw=1&safemode=1&skin=vector Error: Class "ResourceLoaderImageModule" not found
Backtrace:
from /usr/share/nginx/html/hasu/includes/ResourceLoader/ResourceLoader.php(417)
#0 /usr/share/nginx/html/hasu/includes/ResourceLoader/ResourceLoader.php(453): MediaWiki\ResourceLoader\ResourceLoader->getModule()
#1 /usr/share/nginx/html/hasu/includes/ResourceLoader/StartUpModule.php(170): MediaWiki\ResourceLoader\ResourceLoader->preloadModuleInfo()
#2 /usr/share/nginx/html/hasu/includes/ResourceLoader/StartUpModule.php(419): MediaWiki\ResourceLoader\StartUpModule->getModuleRegistrations()
#3 /usr/share/nginx/html/hasu/includes/ResourceLoader/Module.php(839): MediaWiki\ResourceLoader\StartUpModule->getScript()
#4 /usr/share/nginx/html/hasu/includes/ResourceLoader/Module.php(808): MediaWiki\ResourceLoader\Module->buildContent()
#5 /usr/share/nginx/html/hasu/includes/ResourceLoader/Module.php(951): MediaWiki\ResourceLoader\Module->getModuleContent()
#6 /usr/share/nginx/html/hasu/includes/ResourceLoader/ResourceLoader.php(686): MediaWiki\ResourceLoader\Module->getVersionHash()
#7 /usr/share/nginx/html/hasu/includes/ResourceLoader/ResourceLoader.php(786): MediaWiki\ResourceLoader\ResourceLoader->getCombinedVersion()
#8 /usr/share/nginx/html/hasu/includes/ResourceLoader/ResourceLoaderEntryPoint.php(53): MediaWiki\ResourceLoader\ResourceLoader->respond()
#9 /usr/share/nginx/html/hasu/includes/MediaWikiEntryPoint.php(199): MediaWiki\ResourceLoader\ResourceLoaderEntryPoint->execute()
#10 /usr/share/nginx/html/hasu/load.php(42): MediaWiki\MediaWikiEntryPoint->run()
#11 {main} Tunglinwu (talk) 16:49, 17 March 2024 (UTC)
- Generally this will mean that the version of your extension/skin and the version of your core are not of the same release. —TheDJ (Not WMF) (talk • contribs) 12:47, 18 March 2024 (UTC)
- I stop all extension and update skin, but this error still showed.
- 18, Mar 15:40
- fixed, it's cloudflare cached, I update skin and test which extension to thie error. Tunglinwu (talk) 15:37, 18 March 2024 (UTC)
Error after migrating old MW (1.24)
I am trying to update an old MW that was running version 1.24 before it got shutdown since the hosting provider couldn't afford running an old php version due to the security problems that come with it. I downloaded the files and the db and tried to run it locally using XAMPP with a compatible PHP version. I imported everything but when I access the wiki's front page, I am facing several error messages (see at the end of my post).
I think this is due to the migration (= paths that are not valid anymore). How can I tackle this problem before updating the wiki step by step?
Many thanks in advance!
[cc8a6e0e] /wiki/Hauptseite Exception from line 222 of /var/www/vhosts/OLDWIKI.COM/httpdocs/w/includes/Hooks.php: Detected bug in an extension! Hook Cite::checkRefsNoReferences has invalid call signature; Parameter 2 to Cite::checkRefsNoReferences() expected to be a reference, value given
Backtrace:
#0 /var/www/vhosts/OLDWIKI.COM/httpdocs/w/includes/GlobalFunctions.php(3995): Hooks::run()
#1 /var/www/vhosts/OLDWIKI.COM/httpdocs/w/includes/parser/Parser.php(406): wfRunHooks()
#2 /var/www/vhosts/OLDWIKI.COM/httpdocs/w/includes/cache/MessageCache.php(1072): Parser->parse()
#3 /var/www/vhosts/OLDWIKI.COM/httpdocs/w/includes/Message.php(1002): MessageCache->parse()
#4 /var/www/vhosts/OLDWIKI.COM/httpdocs/w/includes/Message.php(698): Message->parseText()
#5 /var/www/vhosts/OLDWIKI.COM/httpdocs/w/includes/Message.php(754): Message->toString()
#6 /var/www/vhosts/OLDWIKI.COM/httpdocs/w/includes/OutputPage.php(1026): Message->parse()
#7 /var/www/vhosts/OLDWIKI.COM/httpdocs/w/includes/page/Article.php(1002): OutputPage->addSubtitle()
#8 /var/www/vhosts/OLDWIKI.COM/httpdocs/w/includes/page/Article.php(593): Article->showRedirectedFromHeader()
#9 /var/www/vhosts/OLDWIKI.COM/httpdocs/w/includes/actions/ViewAction.php(44): Article->view()
#10 /var/www/vhosts/OLDWIKI.COM/httpdocs/w/includes/MediaWiki.php(414): ViewAction->show()
#11 /var/www/vhosts/OLDWIKI.COM/httpdocs/w/includes/MediaWiki.php(282): MediaWiki->performAction()
#12 /var/www/vhosts/OLDWIKI.COM/httpdocs/w/includes/MediaWiki.php(584): MediaWiki->performRequest()
#13 /var/www/vhosts/OLDWIKI.COM/httpdocs/w/includes/MediaWiki.php(435): MediaWiki->main()
#14 /var/www/vhosts/OLDWIKI.COM/httpdocs/w/index.php(46): MediaWiki->run()
#15 {main} Chadsung (talk) 10:01, 18 March 2024 (UTC)
- Update to which MediaWiki version? Which exact Cite version is installed? How did you upgrade extensions? Malyacko (talk) 17:04, 18 March 2024 (UTC)
- Error sounds like you updated mediawiki but not extensions. Bawolff (talk) 08:48, 19 March 2024 (UTC)
Cannot import my wiki to another service provider
Cannot import large wiki to another service provider using Special:Import
This page isn’t working
... is currently unable to handle this request.
HTTP ERROR 500
I don't have the computer skills to import it another way, what should I say to my new service provider? I am on a shared hosting plan. 2A00:1370:8186:1427:8942:91AD:202B:47C7 (talk) 12:04, 18 March 2024 (UTC)
- This can be for various reasons, which is impossible to say exactly without having error logging enabled, but my guess is that the request takes too long to complete and it fails after a partial import, because the hosting provider cut off your connection. —TheDJ (Not WMF) (talk • contribs) 12:39, 18 March 2024 (UTC)
old MW 1.28.2 - Visual Editor 500 error after IP change. Please help.
Hi, we are trying to resolve an issue with Visual Editor -- it displays an error that says "500" after a recent IP change to our wiki server. Should I be adjusting the $wgVirtualRestConfig variable to account for the new IP address (xx.xx.49.46).
Visual Editor: HTTP 500 on Project:Support desk (mediawiki.org)
A similar thread mentions editing the config.yaml file, but I believe after 1.27 that .yaml are deprecated, so I'm not really sure where I find that config file. I managed to find the LocalSettings.php and made a backup of it just in case, but I'm not sure what to do to fix the visual editor error. Any help would be greatly appreciated. I'm a MW novice. Wojtkiewiczd (talk) 20:14, 18 March 2024 (UTC)
- LocalSettings.php
- # Add more configuration options below.
- require_once( "$IP/skins/bootstrap/bootstrapskin.php" );
- $wgDefaultSkin = "bootstrapskin";
- # File Protocoll
- require_once "$IP/extensions/FileProtocolLinks/FileProtocolLinks.php";
- #require_once("$IP/extensions/FileProtocolLinksLinux.php" );
- wfLoadExtension( 'ParserFunctions' );
- #$wgPFEnableStringFunctions = true;
- #VisualEditor Erweiterung
- require_once("$IP/extensions/VisualEditor/VisualEditor.php" );
- // Enable by default for everybody
- $wgDefaultUserOptions['visualeditor-enable'] = 1;
- //Don't allow users to disable it
- $wgHiddenPrefs[] = 'visualeditor-enable';
- $wgVirtualRestConfig['modules']['parsoid'] = array(
- //URL to Parsoid instance
- 'url' => 'http://localhost:8142',
- //Parsoid "domain"
- 'domain' => 'localhost',
- // Parsoid "prefix"
- 'prefix' => 'localhost'
- );
- $wgVisualEditorParsoidURL = 'http://localhost:8142';
- $wgVisualEditorSupportedSkins = array(
- 'vector',
- 'apex',
- 'monobook',
- 'minerva',
- 'blueprint',
- 'bootstrapskin',
- 'bootstrap',
- 'bootstrap/bootstrapskin'
- );
- // Multi-Upload-Extension
- wfLoadExtension('SimpleBatchUpload');
- require_once("extensions/add_multiupload.php");
- //remove edit-button for not logged in users
- $wgDefaultUserOptions ['editsection'] = false;
- # Disable anonymous editing
- $wgGroupPermissions['*']['edit'] = false;
- # Open external links in new windows
- $wgExternalLinkTarget = '_blank';
- # iframe extension
- require_once "$IP/extensions/IframePage/IframePage.php";
- $wgIframePageSrc= array( /* REQUIRED! */ );
- $wgRawHtml = True;
- $wgDebugLogFile = '/var/lib/mediawiki/mediawiki-1.28.2/logfile';
- wfLoadExtension("EmbedVideo"); Wojtkiewiczd (talk) 20:14, 18 March 2024 (UTC)
- You should enable php error reporting to determine what the error actually is. Bawolff (talk) 08:46, 19 March 2024 (UTC)
Look! I findses a glitch!
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.
See https://meta.wikimedia.org/wiki/Universal_Code_of_Conduct/Coordinating_Committee/Election/2024/bcc
Mayhaps there is a reason for this but anyways... JayCubby (talk) 21:39, 18 March 2024 (UTC)
- Someone added a deletion tag on the page display title translation unit. After 11 hours nobody deleted it... I've edited the translation unit to remove the template and fix the display issue. Ciencia Al Poder (talk) 09:08, 19 March 2024 (UTC)
- @Ciencia Al Poder Thank you! JayCubby (talk) 11:24, 19 March 2024 (UTC)
How to upload videos from local to Mediawiki?
Hi, I want to upload videos to Mediawiki from local.
I tried to use the extension TimedMediaHandler. But after installion, there is still issues with no thumbnail. I have follow the all steps about $wgFFmpegLocation and $wgMaxShellMemory.
After that, I tried to install by git, but it shows An error occurred:
TimedMediaHandler is not compatible with the current MediaWiki core (version 1.41.0), it requires: >= 1.42. But as I know there is only 1.41 now...so, what should I do next... Resherry2020 (talk) 04:14, 19 March 2024 (UTC)
- You need to install the correct version of TimedMediaHandler for your version of mediawiki. If using git, use the command
git checkout origin/REL1_41to switch to the version for 1.41. - When installing via git, be sure to run composer install.
- You probably still have to figure out whatever issue was preventing thumbnails in the first place. Bawolff (talk) 08:44, 19 March 2024 (UTC)
- Yes, I installed the right version for 1.41, but it still does not work... Resherry2020 (talk) 03:53, 21 March 2024 (UTC)
- Thanks for your support, but I still don't know how to deal with the thumbnail issue...Do you have any ideas? Resherry2020 (talk) 03:13, 21 March 2024 (UTC)
old mediawiki upgrade
Hello,
I have an old MediaWiki install, version 1.25.1, installed using a tar.gz long ago. I'm wondering what would be the easiest way to upgrade.
I am running Debian 12, I wouldn't mind using packages for easier upgrades, if that's possible. Is it possible to do a new install and then point the settings to the old DB?
Cheers for any tips. 2A01:E0A:970:8170:B1A6:911:33FB:A55B (talk) 11:07, 19 March 2024 (UTC)
- As described in Manual:Upgrading you always have to update to 1.35.x first. General advise is to first disable all your extensions, update your core, update the database with maintenance/update.php, update and enable your extensions and run maintenance/update.php again. Verify everything is working (some extensions might have to be disabled, because they are no longer updated, check their pages on mediawiki.org) and then go to the next LTS release. —TheDJ (Not WMF) (talk • contribs) 14:10, 19 March 2024 (UTC)
- Thanks a bunch. 2A01:E0A:970:8170:B1A6:911:33FB:A55B (talk) 17:50, 19 March 2024 (UTC)
Installing MediaWiki on Secured Systems
Hi, what additional requirements are needed if I am setting up MediaWiki in a secure closed area. 149.32.224.45 (talk) 12:54, 19 March 2024 (UTC)
- That would depend on your security requirements, and is impossible to answer without details. Bawolff (talk) 16:41, 19 March 2024 (UTC)
Extension to link EXIF location data on image description pages directly to OpenStreetMap?
EXIF location data is shown on the image description pages.
I could not find an extension, which directly link that EXIF location data - for example - to OpenStreetMap.
Nice to have. Wikinaut (talk) 13:52, 19 March 2024 (UTC)
- Right now latitude and longitude are shown as separate rows which make linking difficult and is kind of silly.
- You can modify MediaWiki:exif-coordinate-format Bawolff (talk) 04:33, 20 March 2024 (UTC)
- Okay, to get away from the silly separate latitude/longitude fields, a change in /includes/media/FormatMetadata.php would be required.
- Shall I work on that? Would such a valid fix be supported and merged, at least if I let the existing fields unchanged and add a third field with geo: and https://openstreetmap coordinate links? Wikinaut (talk) 23:52, 20 March 2024 (UTC)
Search in PDF
How can I index PDF links and uploaded documents searchable in mediawiki? 24.51.246.58 (talk) 14:55, 19 March 2024 (UTC)
- Try extension:CirrusSearch combined with extension:PDFHandler perhaps. Bawolff (talk) 16:39, 19 March 2024 (UTC)
Singleton was called with no singleton theme set
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, since I upgraded from MediaWiki 1.40.0 to 1.41.0, my Nginx log file is flooded with this error:
2024/03/19 15:54:08 [error] 12345#0: *12345678 FastCGI sent in stderr: "PHP message: PHP Fatal error: OOUI\Exception: OOUI\Theme::singleton was called with no singleton theme set. in /path/to/my/wiki/vendor/oojs/oojs-ui/php/Theme.php:31 Stack trace: #0 /path/to/my/wiki/vendor/oojs/oojs-ui/php/Element.php(259): OOUI\Theme::singleton() #1 /path/to/my/wiki/vendor/oojs/oojs-ui/php/Tag.php(507): OOUI\Element->toString() #2 /path/to/my/wiki/extensions/VisualEditor/includes/Hooks.php(244): OOUI\Tag->__toString() #3 /path/to/my/wiki/includes/HookContainer/HookContainer.php(161): MediaWiki\Extension\VisualEditor\Hooks->onTextSlotDiffRendererTablePrefix() #4 /path/to/my/wiki/includes/HookContainer/HookRunner.php(1334): MediaWiki\HookContainer\HookContainer->run() #5 /path/to/my/wiki/includes/diff/TextSlotDiffRenderer.php(273): MediaWiki\HookContainer\HookRunner->onTextSlotDiffRendererTablePrefix() #6 /path/to/my/wiki/includes/diff/DifferenceEn" while reading response header from upstream, client: 172.70.175.222, server: my.wiki.com, request: "GET /wiki/Special:MobileDiff/3634 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "my.wiki.com"
Any ideas on how to fix this are highly appreciated! Thanks, cheers and all the best! Till Kraemer (talk) 15:04, 19 March 2024 (UTC)
- Did you also update your extensions (esp.mobile frontend and visual editor) when updating mediawiki? Bawolff (talk) 16:39, 19 March 2024 (UTC)
- Thank you, yes, I did that. I'm using MobileFrontend version 2.4.1 (0dad21a) and VisualEditor version 0.1.2 (which came with the mediawiki-1.41.0.zip file). Shall I install the master branch of VisualEditor and see if the error is gone? Till Kraemer (talk) 15:13, 20 March 2024 (UTC)
- You should only use the master branch of MobileFrontend & VisualEditor if you are also using the master branch of MediaWiki (aka 1.42alpha). If you want to use a git version you can use the REL1_41 branch, however generally it should be fine to use the version that was bundled in the tarball as long as that is the version of MW you are using.
- Generally the most important thing is that extension & skin versions match mediawiki versions.
- If its not a version mismatch, i would suggest disabling extensions one at a time to figure out for sure which extension is causing it, and file a bug at https://phabricator.wikimedia.org Bawolff (talk) 15:57, 20 March 2024 (UTC)
- Thank you for the info! It doesn't seem to be a version mismatch: I checked the extension.json files of MobileFrontend 2.4.1 and VisualEditor 0.1.2 and they both require MediaWiki >= 1.41.
- I disabled the VisualEditor extension and now the error is gone. It's probably not related to MobileFrontend because I just noticed I'm also getting variations of the error with
"GET /w/index.php?diff=193481&oldid=prev&title=Article_Name HTTP/1.1". - The error seems to appear when you add "&diff=prev" to the oldest revision of an article. I filed a bug report: https://phabricator.wikimedia.org/T360631
- Thanks again, cheers and all the best! Till Kraemer (talk) 13:23, 21 March 2024 (UTC)
- Thank you so much for the patch! It works perfectly now! Cheers and all the best! Till Kraemer (talk) 13:54, 7 April 2024 (UTC)
Special:Upload Error: Failed opening required
I'm attempting to upload an image and getting 'Special:Upload Error: Failed opening required'.
MediaWiki 1.39.6 PHP 8.2.16 (litespeed) MySQL 5.7.23-23
My 'images' directory is 755 and I just ran the Composer update and have pear-core-minimal 1.10.15.
But this is the error I'm getting: [ZfoQkpQmZxQm65r-eAT0xQAAWDY] /wiki/index.php/Special:Upload Error: Failed opening required '/rosssurnameproject.net/wiki/includes/media/Exif.php' (include_path='/rosssurnameproject.net/wiki/vendor/pear/console_getopt:/rosssurnameproject.net/wiki/vendor/pear/mail:/rosssurnameproject.net/wiki/vendor/pear/mail_mime:/rosssurnameproject.net/wiki/vendor/pear/net_smtp:/rosssurnameproject.net/wiki/vendor/pear/net_socket:/rosssurnameproject.net/wiki/vendor/pear/net_url2:/rosssurnameproject.net/wiki/vendor/pear/pear_exception:/rosssurnameproject.net/wiki/vendor/pear/pear-core-minimal/src:.:/opt/cpanel/ea-php82/root/usr/share/pear')
Backtrace:
from /rosssurnameproject.net/wiki/includes/AutoLoader.php(244)
- 0 /rosssurnameproject.net/wiki/includes/media/BitmapMetadataHandler.php(101): AutoLoader::autoload(string)
- 1 /rosssurnameproject.net/wiki/includes/media/BitmapMetadataHandler.php(200): BitmapMetadataHandler->getExif(string, string)
- 2 /rosssurnameproject.net/wiki/includes/media/JpegHandler.php(107): BitmapMetadataHandler::Jpeg(string)
- 3 /rosssurnameproject.net/wiki/includes/media/MediaHandler.php(225): JpegHandler->getSizeAndMetadata(TrivialMediaHandlerState, string)
- 4 /rosssurnameproject.net/wiki/includes/utils/MWFileProps.php(89): MediaHandler->getSizeAndMetadataWithFallback(FSFile, string)
- 5 /rosssurnameproject.net/wiki/includes/upload/UploadBase.php(560): MWFileProps->getPropsFromPath(string, string)
- 6 /rosssurnameproject.net/wiki/includes/upload/UploadBase.php(492): UploadBase->verifyPartialFile()
- 7 /rosssurnameproject.net/wiki/includes/upload/UploadBase.php(395): UploadBase->verifyFile()
- 8 /rosssurnameproject.net/wiki/includes/upload/UploadFromFile.php(96): UploadBase->verifyUpload()
- 9 /rosssurnameproject.net/wiki/includes/specials/SpecialUpload.php(551): UploadFromFile->verifyUpload()
- 10 /rosssurnameproject.net/wiki/includes/specials/SpecialUpload.php(246): SpecialUpload->processUpload()
- 11 /rosssurnameproject.net/wiki/includes/specialpage/SpecialPage.php(701): SpecialUpload->execute(NULL)
- 12 /rosssurnameproject.net/wiki/includes/specialpage/SpecialPageFactory.php(1428): SpecialPage->run(NULL)
- 13 /rosssurnameproject.net/wiki/includes/MediaWiki.php(316): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, RequestContext)
- 14 /rosssurnameproject.net/wiki/includes/MediaWiki.php(904): MediaWiki->performRequest()
- 15 /rosssurnameproject.net/wiki/includes/MediaWiki.php(562): MediaWiki->main()
- 16 /rosssurnameproject.net/wiki/index.php(50): MediaWiki->run()
- 17 /rosssurnameproject.net/wiki/index.php(46): wfIndexMain()
- 18 {main}
Thanks so much. Redheadkelly (talk) 22:35, 19 March 2024 (UTC)
- While doed the file rosssurnameproject.net/wiki/includes/media/Exif.php exist? That file is part of mediawiki core, so if it is missing you should probably reinstall mediawiki. Bawolff (talk) 04:27, 20 March 2024 (UTC)
- Well, that did it. Not sure why the initial install was incomplete, but that was clearly the problem. Thanks so much. Redheadkelly (talk) 23:18, 20 March 2024 (UTC)
- Or the file permissions are incorrect, causing the webserver not being able to read this specific file. —TheDJ (Not WMF) (talk • contribs) 19:51, 20 March 2024 (UTC)
Style not loading on my wiki
I created the wiki https://naturalibanotica.org which has a vector style applied now.
Here are the problems I'm encountering:
- Style isn't loading when accessing "View history," "Create source..."
- Edit feature isn't loading. Whenever I try to edit/create a page in the visual editor, the loading bar fills and then nothing happens...
What could be the problem here? Can anyone guide me on how to solve these problems? 213.204.92.196 (talk) 03:07, 20 March 2024 (UTC)
- Looks like there's an issue loading images: https://naturalibanotica.org/load.php?lang=en&modules=oojs-ui-widgets.icons Sam Wilson 03:39, 20 March 2024 (UTC)
- Thanks for your observation.
- How can that be corrected please? Is there a guide or a tutorial I can follow to repair it? 213.204.92.196 (talk) 09:44, 20 March 2024 (UTC)
- It's trying to create a 'variant' of an image. But it seems that this original image is not present. The most logical reason for this is either a botched install, where certain files are missing, or incorrect permissions where the webserver cannot read that file in question. —TheDJ (Not WMF) (talk • contribs) 19:47, 20 March 2024 (UTC)
- if you enable a debug log as described in Manual:How to debug, you will probably find a PHP log line warning that will state which file exactly (just before it logs the stacktrace). —TheDJ (Not WMF) (talk • contribs) 19:50, 20 March 2024 (UTC)
- It's okay, problem solved.
- Thanks 213.204.92.196 (talk) 02:21, 21 March 2024 (UTC)
How to configure default options on Special:Block
The reasons in the dropdown can be configured here : MediaWiki:Ipbreason-dropdown
The options for block duration can be configured here : MediaWiki:Ipboptions
However I can't find documentation on how to configure the default selections for the "Block details" section.
Specifically the option to block the IP from creating user accounts.
On my wiki (afwiki) this option is enabled by default, and I don't think most users see this. I am trying to prevent the situation where someone bans an IP indefinitely AND prevents the IP from creating an account.
P.S. I was not logged in when I posted this question. Not sure how to change it so that it pings my account (User:Rooiratel) instead of the IP. 165.49.2.35 (talk) 08:20, 20 March 2024 (UTC)
- That is not configurable, it's hardcoded. Maybe you can use MediaWiki:block-summary message to add a reminder for that. The message is shown on the block special page everytime. – Ammarpad (talk) 15:49, 20 March 2024 (UTC)
- Okay thanks for letting me know. I'll see if I can log a request somewhere to make it configurable since that is a terrible default. Rooiratel (talk) 15:45, 21 March 2024 (UTC)
Not able to create my new wikimedia account
I'm trying to create a new wikimedia account but every time i face an error that captcha mismatch even after entering it so many times my I'm unable to create my account. 2409:4085:E1F:B9D0:58AF:9757:C15A:3121 (talk) 12:33, 20 March 2024 (UTC)
- من هم همین مشکل رو دارم 5.215.117.51 (talk) 12:59, 20 March 2024 (UTC)
- I have the same problem, thats so sick... 212.28.70.134 (talk) 14:36, 20 March 2024 (UTC)
- I also have the same issue. It won't accept my captcha. 81.242.47.168 (talk) 14:44, 20 March 2024 (UTC)
- so there is no fixing for this captcha? 212.28.70.134 (talk) 15:41, 20 March 2024 (UTC)
- You can request for account to be created for you: https://en.wikipedia.org/wiki/Wikipedia:Request_an_account/ACC_Wizard – Ammarpad (talk) 15:43, 20 March 2024 (UTC)
- it worked. Thanks Kenbos1 (talk) 17:28, 20 March 2024 (UTC)
- bro we need account on mediawiki not wikipedia 212.28.70.134 (talk) 17:19, 20 March 2024 (UTC)
- Accounts are shared between wikipedia and mediawiki.org Bawolff (talk) 18:51, 20 March 2024 (UTC)
- This works, thanks :) 103.15.254.209 (talk) 06:24, 21 March 2024 (UTC)
Seed data for Wikibase install via Ansible
I am writing an Ansible deployment script to remotely and automatically deploy the entire Wikibase eco system (wikibase, wdqs, elasticsearch, etc.) to arbitrary hosts.
I want a fresh instance to already have these links in the sidebar menu: Special:NewItem|New item and Special:NewItem|New Property.
I also want a fresh instance to already contain some basic domain-specific properties so that we don't have to enter them manually each time we roll out a new instance.
To be sure: I know how to do this within the web interface. But what scripts or automatable actions can I run as part of the deployment that would accomplish this? Ayco Holleman (talk) 10:47, 21 March 2024 (UTC)
Lint is breaking my signature
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 designed my Wikipedia signature to have a dark background with bright text, but now Lint is breaking my signature with an error (night-mode-unaware-background-color) until I fix it. The contrast is fine, as I've seen it. The background is gray and the text is bright. I'm not sure what to do - my signature never tripped this error until today.
I checked it some more - the error trips with *any* code block with a background color. The color doesn't matter. That definitely isn't normal. Tesseractic (talk) 20:07, 21 March 2024 (UTC)
CAPTCHA fails to authorize my input... HELP!
I am trying to create an account username and password on statefarm.com. Although the CAPTCHA is simple text with wavy lines in it, there is no guessing what it is; even still, the CAPTCHA won't verify my input.
I have tried many times, but you do know the definition of insanity, right? I am currently on the cusp right now.
In order to prevent my fall over that cliff, I need to know:
Is there an existing wiki I can reference (my search results have not yielded any fruit for me) or can someone here help me with my question? I really need to create this account so I can log in and pay an overdue bill.
thanks in advance...
Mike
P.S. This is the same reason you don't see my name here either. 2600:6C55:6700:1857:94C5:220B:79F5:F49B (talk) 22:57, 21 March 2024 (UTC)
- There's an issue with CAPTCHA that'll soon be resolved, see phab:T360717 for details. – Ammarpad (talk) 08:52, 22 March 2024 (UTC)
How to update mediwiki 1.21 to latest
Hi all,
I am using mediawiki 1.21 with php 5.4 and mysql 8
I need to update mediawiki latest version with php 8 and mysql8
Please help me for the same Manish119policy (talk) 09:56, 22 March 2024 (UTC)
Seria possivel alterar o email de cadastro da conta da Wikipedia ?
Caros colegas da comunidade da Wikipedia,
Tenho enfrentado uma pequena dificuldade recentemente e gostaria de compartilhar com vocês para obter orientação e esclarecimentos. Estou tentando alterar o endereço de e-mail associado à minha conta da Wikipedia, porém, tenho encontrado algumas barreiras para realizar esse procedimento.
Após pesquisar nas configurações da minha conta, não consegui encontrar uma opção clara para modificar o meu e-mail de cadastro. Talvez tenha passado despercebido por mim, mas estou em busca de ajuda para entender como posso efetuar essa mudança.
É importante para mim garantir que meu e-mail de contato esteja atualizado, para que eu possa receber notificações importantes da comunidade da Wikipedia e estar totalmente envolvido nas discussões e atividades.
Se alguém puder fornecer orientações sobre como posso proceder para alterar meu endereço de e-mail de forma eficaz, ficaria imensamente grato. Qualquer dica ou direcionamento seria muito bem-vindo.
Agradeço antecipadamente pela atenção e ajuda de todos Vevezaum (talk) 00:20, 23 March 2024 (UTC)
- Preferences (from the profile icon in the upper right) -> User Profile tab -> "Email options" section Clump (talk) 11:28, 23 March 2024 (UTC)
I recently upgraded to 1.35 and none of my pages are displaying
I've tried to run all of the maintenance commands following the upgrade but even after that none of them are displaying. I've also attempted to extract the pages from the database but haven't been able to crack a query that will extract the full and latest version of each page!
Happy to pay for assistance with this issue! Predominantely would like to extract the latest version of each page in the database! 79.78.82.48 (talk) 20:12, 23 March 2024 (UTC)
- Did those updates run successfully however ? It is very common that we see ppl here who have ran the command but ignored the errors those commands were throwing. The errors from those updates would have been the best clue toward solving the problem.
- do you have backups ?
- from which version to which EXACT version did you update ? —TheDJ (Not WMF) (talk • contribs) 10:58, 24 March 2024 (UTC)
OAuth2 Cannot Get the AuthCode
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.
Acccording to the OAuth2 Documentation,I need to get the auth code by sending a POST to the wiki's REST API. So here's my URL.
https://test.frontiers.ac/w/rest.php/oauth2/access_token?grant_type=authorization_code&client_id=87eefc963df4da472c95106ff5edd5da&code=(A-very-long-code)&redirect_uri=https%3A%2F%2Fwiki.frontiers.ac%2FOAuth2&code_challenge=c1_fTz8abyrfcRQGOXq3qMDqB7UU1kpQXObq8NOZAWA&code_challenge_method=S256
Please ignore the domains, they're all pointed to 192.168.*
But then, here's what I got in the responce body part:
{"error":"invalid_request","error_description":"The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.","hint":"Check the `grant_type` parameter","message":"The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed."}
I'm so sure the grant_type is just like what the docs said. But it repeats that.
Thank you! Creamycd (talk) 05:36, 24 March 2024 (UTC)
Possible security holes when using LockDown extension to keep certain pages private on wiki?
Assuming I'm using the LockDown extension to keep certain pages private, and others public on my wiki, what are the various possible ways someone might be able to gain access to the data on my private pages? Stuff like via the Recent changes page, History, etc.
Here is what I have so far in my LocalSettings.php file:
wfLoadExtension( 'Lockdown' ); $wgSpecialPageLockdown['Export'] = [ 'user' ]; $wgSpecialPageLockdown['Recentchanges'] = [ 'user' ]; $wgActionLockdown['history'] = [ 'user' ]; // define custom namespaces $wgExtraNamespaces[100] = 'Private'; $wgExtraNamespaces[101] = 'Private_talk'; // restrict "read" permission to logged in users $wgNamespacePermissionLockdown[100]['read'] = [ 'user' ]; $wgNamespacePermissionLockdown[101]['read'] = [ 'user' ]; // prevent inclusion of pages from that namespace $wgNonincludableNamespaces[] = 100; $wgNonincludableNamespaces[] = 101; M.J.W.B. (talk) 13:55, 24 March 2024 (UTC)
- It's not possible to know that. Read the notice at the top of Extension:Lockdown and use the extension with that in mind if you absolutely need to. – Ammarpad (talk) 16:01, 24 March 2024 (UTC)
- Comparison. We build a car. At some point someone figured out the car actually floats in water and made a rudder for it. Now ppl are using it as a boat. The notice says: this was never designed to be a boat.
- You are asking; please tell me where it is likely to first spring a leak while using this car as a boat. We have no clue. —TheDJ (Not WMF) (talk • contribs) 18:34, 24 March 2024 (UTC)
- ha ha, points taken. I will probably just use two wikis: one for private stuff and another for public stuff. M.J.W.B. (talk) 21:20, 24 March 2024 (UTC)
None of my edits shows up in my 'Contributions' list anymore. What is going on?
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.
With the 'Universal Code of Conduct Coordinating Committee (U4C)' approaching I tried to check on my edits list, knowing I probably haven't made the 500 edits necessary for eligibilty, yet.. But it turns out my list is wiped! How come? And: Is there a way to retrieve it? There should be, I guess, because my edits had been registered properly. It's been quite a while I checked on my contributions list. Last time, in 2023, I had like about 100 edits, if I remember correctly.
Thanks for your help. Korinthus (talk) 21:46, 25 March 2024 (UTC)
- See Special:CentralAuth/Korinthus for a list of all your edits across Wikimedia sites. I am not aware of any way to "wipe" contributions. Malyacko (talk) 12:28, 26 March 2024 (UTC)
- Thanks a lot, Malyacko!
- I'm not sure about what happened. My 'contributions' list was empty yesterday. There was even a statement, saying that it's empty or saying no contributions could be found. But today my edits are back again in the list. Digital magic...
- Have a wonderful springtime! Korinthus (talk) 13:29, 26 March 2024 (UTC)
About Latest Version
we installed the latest version of mediawiki but it's not working???? PHP version is stable with mediawiki requirment. 72.255.3.43 (talk) 09:31, 26 March 2024 (UTC)
- This is way too vague. Please read the sidebar and provide a clear and complete list of exact steps to reproduce the situation, step by step, so that nobody needs to guess or interpret how you performed each step, what happens after performing these steps to reproduce, what you expected to happen instead, a full link to a web address where the issue can be seen, the exact full MediaWiki version, exact PHP version, exact database software name and version, etc., and what exactly makes you think that something "is not working". Malyacko (talk) 12:26, 26 March 2024 (UTC)
- The real issue is that I downloaded the latest version of MediaWiki in a .zip file, but upon extracting it, I discovered that the files were corrupted. I also tried an older version I had, thinking it might be an issue with the new version, but it turned out to be corrupted as well. At first, I thought it might be a problem with my system, so I ran some corruption detectors, only to find out that the files were indeed damaged, not my system. 72.255.3.43 (talk) 08:40, 27 March 2024 (UTC)
- If the local software on your machine corrupts zip files, then there is nothing that can be fixed in MediaWiki itself. Malyacko (talk) 08:42, 27 March 2024 (UTC)
Corrupt File
The latest files of MediaWiki are corrupt file, So any solution???? 72.255.3.43 (talk) 09:55, 26 March 2024 (UTC)
- There is no useful information here. Latest files where, when, how did you access them. Please write an extensive and detailed message if you want any volunteer to help you. —TheDJ (Not WMF) (talk • contribs) 10:17, 26 March 2024 (UTC)
Auth/Login Issue
Hello, I'm trying to make work my auth flow using PluggableAuth and OpenID-Connect-PHP extensions. (Microsoft Entra ID as auth provider)
In my local environment it does work, I get 3 set-cookie response headers that set session, UserID and UserName which are then used to login succefully.
On the other end, using my deployed application I can see my browser get just one set-cookie response header that is supposed to set session, UserID and UserName as well. Unfortunatly in the following http request only the session cookie is correctly set, and that's why the login procedure fails.
The application is behind an application gateway in Azure, but I'm not sure if that could be the problem, I couldn't see anything about cookie manipulation settings there.
Do anyone had the same or a similar issue? Thank you in advance. AndAvvale (talk) 10:26, 26 March 2024 (UTC)
Would updating MediaWiki destroy/restore anything that was lost due to installing extensions?
Hello. Recently I had a problem with some of the extensions that I was installing which apparently lead to some mediawiki (partially my fault) tables on the back end being deleted. The one that I do notice that still hasn't been restored was title_index, while I was trying to delete something.
At the same time I want to update MediaWiki 1.41, but was wondering what would happen if I tried doing it. Would it have problems because some stuff is missing or would it restore the tables? I want to know this just in case I would have to download my entire wiki to save it.
Thanks Guillaume Taillefer (talk) 12:01, 26 March 2024 (UTC)
- In general, backups can save your day, no matter how the software behaves or not. Malyacko (talk) 15:17, 28 March 2024 (UTC)
I'm unable to install Wikibase on my MediaWiki-Docker container
I've been trying to install the Wikibase extension on my Mediawiki container by following this MediaWiki-Docker/Extension/Wikibase guide. Everything went smoothly until I had to run the "update.php" script, when I got this:
root@767207bc625b:/var/www/html# php maintenance/run.php update.php
Fatal error: Uncaught ExtensionDependencyError: WikibaseRepository is not compatible with the current MediaWiki core (version 1.41.0), it requires: >= 1.42.
WikibaseClient is not compatible with the current MediaWiki core (version 1.41.0), it requires: >= 1.42.
in /var/www/html/includes/registration/ExtensionRegistry.php:460
Stack trace:
#0 /var/www/html/includes/registration/ExtensionRegistry.php(314): ExtensionRegistry->readFromQueue(Array)
#1 /var/www/html/includes/Setup.php(285): ExtensionRegistry->loadFromQueue()
#2 /var/www/html/maintenance/run.php(49): require_once('/var/www/html/i...')
#3 {main}
thrown in /var/www/html/includes/registration/ExtensionRegistry.php on line 460
I'm using version 1.41.0, and as I understand it that version is the newest stable version. I'd rather not have to upgrade my mediawiki image. I tried looking for an older version that would be compatible with version 1.41.0 on https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/Wikibase/ and found https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/Wikibase/+/refs/heads/REL1_41 (which I assumed to be the right version) but was unable to clone it due to a 403 error. I then tried downloading the regular wikibase from the download link on Wikibase/Installation, but that didn't work and I got a whole bunch of error messages.
Any ideas?
Thanks for the help. Nikotinel (talk) 14:15, 26 March 2024 (UTC)
- I managed a workaround. When cloning the repo, I used this command instead: 'git clone --branch REL1_41 https://gerrit.wikimedia.org/r/mediawiki/extensions/Wikibase extensions/Wikibase' which cloned the right branch. Then I just followed the instructions on the guide (MediaWiki-Docker/Extension/Wikibase) and it worked. Nikotinel (talk) 13:04, 27 March 2024 (UTC)
Error 500 When Accessing Database
I am not at all a web developer/admin, not my area of expertise. Hoping I can find some guidance here. We have a mediawiki instance installed in Dreamhosts. That is hosting a SQL server that used to be accessible by navigating to bertoni-law.com/wiki. That now returns an error 500 code. I just took over this client so I have no idea how long that has been going on. I cant seem to track down a solution here. If anyone has any ideas that can at least point me in some kind of direction, that would be awesome! 38.88.51.138 (talk) 19:30, 26 March 2024 (UTC)
MediaWiki:Sitenotice does not load CSS classes for .mw-ui-button
In the current version of site notice on slwiki, the CSS classes .mw-ui-button and .mw-ui-progressive are not loaded. When the site notice is displayed, for example, on the main page, the button is not visible even though it is visible at the interface page itself. When inspecting the CSS, it seems that it is dynamically generated in the load.php script. Is there any quick workaround to force these CSS classes to be loaded, or do we need to hard-code the button's appearance in the site notice itself? Smihael (talk) 10:58, 27 March 2024 (UTC)
Hiding website name like on wikipedia.org
Normally in Vector-2022 skin it is set to show the website logo and the website name next to it. But I want to edit that and put it like wikipedia.org, only the logo showing.
I know that I can remove the website name in the LocalSettings.php with this line
$wgSitename = '';
but the thing is that I want the website name to still show in the tab (like it does on wikipedia.org) and not completely remove it...
Any idea how I can achieve this? 213.204.92.196 (talk) 11:38, 27 March 2024 (UTC)
Schema
Hi all,
If we got article pages in mediawiki, and we want to use Schema.org standard to make schema for each of the pages, any suggestions how to do this? Chrisyau3891 (talk) 20:07, 27 March 2024 (UTC)
Database issues "el_to"
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Mediawiki version 1.41.0 PHP 8.1.2-1ubuntu2.14 (fpm-fcgi) ICU 70.1 PostgreSQL 12.11 (Ubuntu 12.11- Oubuntue. 20.04.1) When trying to add an account or utilising an extension which allows/aids account creation, I keep receiving the error: "A database query error has occurred. This may indicate a bug in the software." I then try to run the update script /mw-config and receive a more detailed error message of "Table externallinks contains el to field. Dropping... An error occurred: Error 42704: ERROR: index "el_to" does not exist Function: Wikimedia\Rdbms\Database:: sourceFile( /var/www/mediawiki/maintenance/postgres/archives /patch-externallinks-drop-el _to.sal) Query: DROP INDEX el_to". I can't find any information or help regarding this particular issue online. Can someone please shed some light on the error and advise me on fixing the issue? 82.26.156.45 (talk) 22:48, 27 March 2024 (UTC)
- Some database knowledge is definitely advisable when trying to recover from a situation like this, so if you are unsure, get someone with more experience.
- el_to was removed in 1.41 and the el_to index were removed in 1.41. The script says that the el_to column still exists and thus wants to run maintenance/postgres/archives /patch-externallinks-drop-el _to.sql
- The first command of that database migration is to drop the el_to index. But apparently that index is already gone. This is unexpected, as in 1.41 the index and the column were dropped at the same time, by this same file. Possibly this indicates that something went wrong previously when you updated the installation and you didn't notice that an error was thrown during updating.
- The easiest workaround is to modify maintenance/postgres/archives /patch-externallinks-drop-el _to.sql and change the 4 lines with "DROP INDEX" to be "DROP INDEX IF EXISTS" and rerun the update script. —TheDJ (Not WMF) (talk • contribs) 00:08, 28 March 2024 (UTC)
- Thank you for your reply.
- I updated from 1.35 and there were no errors- everything ran as expected.
- Could you please elaborate on your suggested workaround, as this is all still quite new to me. I have command line access and my instance is hosted on my own server. 82.26.156.45 (talk) 00:17, 28 March 2024 (UTC)
- TheDJ; thank you for solving my problem.
- I found the file and amended it accordingly, re-ran the update and received no errors. Everything is now working as expected, and I'm able to add users.
- Thanks again. 82.26.156.45 (talk) 00:26, 28 March 2024 (UTC)
How to calculate many wikimedia commons images are uploaded in a specific country
Hi everyone,
Is there a way to figure out how many wikimedia commons images are in a specific country or region. For example how many wikimedia commons images were uploaded in England or Wales? Any help is appreciated. 138.251.29.208 (talk) 05:59, 28 March 2024 (UTC)
- Hi, this page is for questions about the MediaWiki software itself. Technical questions about specific Wikimedia wiki installations are best asked on meta:Tech.
- See https://stats.wikimedia.org/ Malyacko (talk) 15:16, 28 March 2024 (UTC)
- But considering WMFs privacy policies, such a calculation would be very unlikely to be possible I'd say. —TheDJ (Not WMF) (talk • contribs) 11:03, 29 March 2024 (UTC)
OAuth invalid client
I've tried to use OAuth2 to authorize my app (written in flutter/dart), and here's what I got:
I/flutter ( 7002): {"error":"invalid_client","error_description":"Client authentication failed","message":"Client authentication failed"}
I/flutter ( 7002): 401
And here's my code:
void getToken() async {
Directory appDir = await getApplicationDocumentsDirectory();
String appDirUse = appDir.path;
final codeChallenge = await File('$appDirUse/code_challenge').readAsString();
Uri sendToUri = Uri.parse('http://$fullServerName${wgScriptPath}rest.php/oauth2/authorize?response_type=code&client_id=$identifier&redirect_uri=$redirectUrl&code_challenge=$codeChallenge&code_challenge_method=S256');
await openInBrowser(sendToUri);
}
Future<void> openAppLink(String deepLink) async {
String code = deepLink.replaceFirst("wikiapp://OAuth2?code=", "");
Directory appDir = await getApplicationDocumentsDirectory();
String appDirUse = appDir.path;
final verifierFile = await File('$appDirUse/code_verifier').readAsString();
Uri sendToUri = Uri.parse("$kScheme://$fullServerName${wgScriptPath}rest.php/oauth2/access_token");
// openInBrowser(sendToUri);
final response = await http.post(
sendToUri,headers: headers, body: {'grant_type': 'client_credentials', 'client_id': identifier, 'code': code, 'redirect_uri': redirectUrl, 'code_verifier': verifierFile}
);
}
I don't know what happened... Why it always 701 and Client authentication failed? Creamycd (talk) 10:34, 28 March 2024 (UTC)
Error ”「LogicException」の致命的例外” was displayed
Hello,
After installing MediaWiki, I visited the website.
Then a error ”[ZgYpLGVlWgz2X928-9hwOAAUxg] 2024-03-29 02:36:44: エラー「LogicException」の致命的例外” was displayed.
How can I resolve this? LocalSettings.php is located.
I usually don't speak or write English so maybe difficult to read. sorry.
My website is using PHP 8.3 and MySQL.
https://orangemedia.ie-t.net/kakuwiki/
MediaWikiをインストールし、最後に出てきたLocalSettings.phpもダウンロードして配置したのですが、作成したWikiにアクセスすると
”[ZgYpLGVlWgz2X928-9hwOAAUxg] 2024-03-29 02:36:44: エラー「LogicException」の致命的例外”
と出てきました。このエラーを解決するにはどうすればいいでしょうか? きくらげさん (talk) 02:56, 29 March 2024 (UTC)
The /.cagefs/tmp/ folder keeps creating merge files
Our site has been moved to a new server for 1 day: https://sheki.org/wiki/index.php
The /.cagefs/tmp/ folder keeps creating merge files like 'merge-your-xYOkiL', 'merge-old-LUv354' etc. in their names. 3-6 times per minute. Each of these consists of the HTML code of one page of the site (5-6 pages in total, mostly large pages). I want to know, what is it for? Should it be avoided?
Thanks in advance. Шариф Ахмет (talk) 10:04, 30 March 2024 (UTC)
- Hi,
- This is used during edit conflicts (when two people edit the same page at the same time) to try and automatically resolve the conflict.
- There is no harm in these files, and they should be deleted automatically after the edit.
- It is possible to disable by setting $wgDiff3 but i dont reccomend as that will significantly increase the frequency of edit conflict pages. Bawolff (talk) 16:30, 4 April 2024 (UTC)
Switch to old look
Hello! I am using Vector 2022 skin and I deleted all other skins from the LocalSettings.php file but the Vector 2012 skin version is still available, how can I disable or delete? Uptonpeat (talk) 14:06, 30 March 2024 (UTC)
Banner
Hello! How can I create a Banner similar like here above the Project:Support desk title step by step please? Uptonpeat (talk) 14:09, 30 March 2024 (UTC)
Cite reference numbers missing at bottom of page
hi - on my wiki, the reference numbers are missing from the </references> section at the bottom of the page. I have only the up arrow - not the number. Example here:
https://jollycontrarian.com/index.php?title=Margin_lock-up
I am sure i have done something obvious somewhere but I can't for the life of me figure it out. any help gladly accepted! ElectricRay (talk) 16:56, 30 March 2024 (UTC)
- Please replace the Templete:Ref as like https://en.wikipedia.org/wiki/Template:Reflist. Then done. Willy1018 (talk) 02:05, 2 April 2024 (UTC)
Is it possible to change the math font?
I'd like to change Latex font to Knuth's AMS Euler font https://en.wikipedia.org/wiki/AMS_Euler
Is this possible? Zeyn1 (talk) 17:26, 30 March 2024 (UTC)
- I tried this:
- On MathJax page https://docs.mathjax.org/en/v2.7-latest/font-support.html#:~:text=The%20page%20author%20can%20configure,installing%20their%20preferred%20fonts%20locally. I see that they support Neo Euler.
- I downloaded Neo Euler and added this code to my common.css:
- .mwe-math-mathml-a11y {
- clip: auto !important;
- overflow: visible !important;
- position: static !important;
- width: auto !important;
- height: auto !important;
- opacity: 1 !important;
- }
- .mwe-math-fallback-image-inline,
- .mwe-math-fallback-image-display {
- display: none !important;
- }
- math {
- font-family: ‘Neo Euler’ !important;
- }
- But this did not work. How can I change the math font that MathJax is using?
- I have this code in my LocalSettings.php: wfLoadExtension( 'SimpleMathJax' ); Zeyn1 (talk) 11:02, 31 March 2024 (UTC)
error
Hello,
I got this error : : failed to mkdir "/path/to/examplecom/sitemap/" mode 0777 [Called from wfMkdirParents in /home/wikicilo/public_html/wiki/includes/GlobalFunctions.php at line 1478] in /home/wikicilo/public_html/wiki/includes/debug/MWDebug.php on line 508
Can not create directory /path/to/examplecom/sitemap/
While I was trying generate the sitemap.
Is there anyone to help me please? Timy5846 (talk) 12:28, 31 March 2024 (UTC)
- Try using sudo to run the script as the same user as the web server runs as (e.g sudo -u www-data ) Bawolff (talk) 16:26, 4 April 2024 (UTC)