Project:Support desk/Flow/2021/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. |
Error 500 with image uploading
Hello, i don't know if i'm posting this in the right place, but i've recently downloaded MediaWiki to replace my formal (slow) wikipedia system, and everything works great, however i am having a small issue that i seem to be unable to figure out:
The server is a CentOS 8 server, using Plesk for web hosting.
I am trying to upload images, but any image i upload appears as the "Missing image" icon, and when I click to view the image source, the server responds with error 500.
I am unsure why this is happening.
What i've tried:
- Allowing read/write access to the "Images" folder
- Ensured "File_uploading" was on in the php configuration file
- Disabling Cloudflare
- Allowing Read/write access to every folder
It doesn't seem to give me any error messages either, I am kind of stumped.
I hope someone can help me out with this issue, thank you TimeWisely (talk) 04:18, 1 March 2021 (UTC)
- what does your web server error logs say? Bawolff (talk) 04:43, 1 March 2021 (UTC)
- 2021-02-28 22:29:11 Access 162.158.75.115 200 GET /index.php?title=File:Plesk.png HTTP/1.0 https://wiki.nightskystudios.net/index.php?title=Special:Upload Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.190 Safari/537.36 20.0 K Apache SSL/TLS access
- 2021-02-28 22:29:12 Error 108.162.216.37 500 GET /images/thumb/d/d6/Plesk.png/800px-Plesk.png HTTP/1.0 https://wiki.nightskystudios.net/index.php?title=File:Plesk.png Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.190 Safari/537.36 1.61 K Apache SSL/TLS access
- 2021-02-28 22:29:12 Error 108.162.216.145 500 GET /images/thumb/d/d6/Plesk.png/120px-Plesk.png HTTP/1.0 https://wiki.nightskystudios.net/index.php?title=File:Plesk.png Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.190 Safari/537.36 1.61 K Apache SSL/TLS access
- 2021-02-28 22:29:12 Error 108.162.216.37 [core:alert] /var/www/vhosts/nightskystudios.net/wiki.nightskystudios.net/images/.htaccess: Option FollowSymLinks not allowed here, referer: https://wiki.nightskystudios.net/index.php?title=File:Plesk.png Apache error
- 2021-02-28 22:29:12 Error 108.162.216.145 [core:alert] /var/www/vhosts/nightskystudios.net/wiki.nightskystudios.net/images/.htaccess: Option FollowSymLinks not allowed here, referer: https://wiki.nightskystudios.net/index.php?title=File:Plesk.png
- Think this is the error log if i'm not mistaking TimeWisely (talk) 04:52, 1 March 2021 (UTC)
- Weird, you could try deleting the
- /var/www/vhosts/nightskystudios.net/wiki.nightskystudios.net/images/.htaccess file (the rewrite rule and followsymlinks part is protecting against a vuln in ie6 that is not relavant anymore. If you have something turning off the php engine in that directory, you probably want to keep that) Bawolff (talk) 07:13, 2 March 2021 (UTC)
Installing Flow on a wiki site
Greetings, How can I install Flow on a wiki? Thank you! ~ 2.53.138.101 (talk) 08:14, 1 March 2021 (UTC)
- Extension:StructuredDiscussions Malyacko (talk) 09:53, 1 March 2021 (UTC)
- And some basic extension installation info:
- Manual:Extensions#Installing an extension TiltedCerebellum (talk) 20:59, 1 March 2021 (UTC)
MWException After 1.31.12 to 1.35.1 Upgrade
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I've just upgraded my instance of MediaWiki from 1.31.12 to 1.35.1 and encountered a MWException. I've not found many examples online of the same issue, and any I've found do not have resolutions for me. I've attempted upgrading to 1.33 and 1.34 with similar errors. I am originally coming from a 1.2x version, but had upgraded to 1.31 to deal with upgrading PHP before going to a later version. 1.31 is stable for me. I currently have snapshots and can freely move my VM between working and non working versions. I also have backups should I need to retrieve data from an earlier version.
Version with the error is currently as follows...
| Product | Version |
|---|---|
| MediaWiki | 1.35.1 |
| PHP | 7.4.15 (cgi-fcgi) |
| MySQL | 5.7.15-log |
I was previously on PHP 7.3.27, but upgraded hoping it would resolve my issue. It did not.
I'm running IIS on Windows Server 2019.
My installation is copied on top of the previous version folder structure. I've done this for years without issue. I've tried running via a clean folder, but could not get the wiki to load whatsoever at that point.
The error I get is as follows...
Original exception: [db2f6cc9dc24371ea2ff7e2a] /index.php?title=Main_Page MWException from line 129 of C:\inetpub\wwwroot\mediawiki\includes\MagicWord.php: Error: invalid magic word 'expectunusedcategory'
Backtrace:
#0 C:\inetpub\wwwroot\mediawiki\includes\MagicWordFactory.php(230): MagicWord->load()
#1 C:\inetpub\wwwroot\mediawiki\includes\MagicWordArray.php(106): MagicWordFactory->get()
#2 C:\inetpub\wwwroot\mediawiki\includes\MagicWordArray.php(138): MagicWordArray->getBaseRegex()
#3 C:\inetpub\wwwroot\mediawiki\includes\MagicWordArray.php(283): MagicWordArray->getRegex()
#4 C:\inetpub\wwwroot\mediawiki\includes\parser\Parser.php(4023): MagicWordArray->matchAndRemove()
#5 C:\inetpub\wwwroot\mediawiki\includes\parser\Parser.php(1582): Parser->handleDoubleUnderscore()
#6 C:\inetpub\wwwroot\mediawiki\includes\parser\Parser.php(651): Parser->internalParse()
#7 C:\inetpub\wwwroot\mediawiki\includes\content\WikitextContent.php(374): Parser->parse()
#8 C:\inetpub\wwwroot\mediawiki\includes\content\AbstractContent.php(590): WikitextContent->fillParserOutput()
#9 C:\inetpub\wwwroot\mediawiki\includes\Revision\RenderedRevision.php(263): AbstractContent->getParserOutput()
#10 C:\inetpub\wwwroot\mediawiki\includes\Revision\RenderedRevision.php(235): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached()
#11 C:\inetpub\wwwroot\mediawiki\includes\Revision\RevisionRenderer.php(215): MediaWiki\Revision\RenderedRevision->getSlotParserOutput()
#12 C:\inetpub\wwwroot\mediawiki\includes\Revision\RevisionRenderer.php(152): MediaWiki\Revision\RevisionRenderer->combineSlotOutput()
#13 [internal function]: MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}()
#14 C:\inetpub\wwwroot\mediawiki\includes\Revision\RenderedRevision.php(197): call_user_func()
#15 C:\inetpub\wwwroot\mediawiki\includes\poolcounter\PoolWorkArticleView.php(216): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()
#16 C:\inetpub\wwwroot\mediawiki\includes\poolcounter\PoolCounterWork.php(162): PoolWorkArticleView->doWork()
#17 C:\inetpub\wwwroot\mediawiki\includes\page\Article.php(810): PoolCounterWork->execute()
#18 C:\inetpub\wwwroot\mediawiki\includes\actions\ViewAction.php(74): Article->view()
#19 C:\inetpub\wwwroot\mediawiki\includes\MediaWiki.php(527): ViewAction->show()
#20 C:\inetpub\wwwroot\mediawiki\includes\MediaWiki.php(313): MediaWiki->performAction()
#21 C:\inetpub\wwwroot\mediawiki\includes\MediaWiki.php(940): MediaWiki->performRequest()
#22 C:\inetpub\wwwroot\mediawiki\includes\MediaWiki.php(543): MediaWiki->main()
#23 C:\inetpub\wwwroot\mediawiki\index.php(53): MediaWiki->run()
#24 C:\inetpub\wwwroot\mediawiki\index.php(46): wfIndexMain()
#25 {main}
Additionally, I also get the following exception...but I did not get this error with 1.33 or 1.34 when I attempted upgrading to those versions instead.
Exception caught inside exception handler: [db2f6cc9dc24371ea2ff7e2a] /index.php?title=Main_Page Error from line 52 of C:\inetpub\wwwroot\mediawiki\skins\Vector\includes\ServiceWiring.php: Class 'Vector\FeatureManagement\Requirements\LatestSkinVersionRequirement' not found
Backtrace:
#0 C:\inetpub\wwwroot\mediawiki\vendor\wikimedia\services\src\ServiceContainer.php(447): Wikimedia\Services\ServiceContainer->{closure}()
#1 C:\inetpub\wwwroot\mediawiki\vendor\wikimedia\services\src\ServiceContainer.php(416): Wikimedia\Services\ServiceContainer->createService()
#2 C:\inetpub\wwwroot\mediawiki\skins\Vector\includes\SkinVector.php(82): Wikimedia\Services\ServiceContainer->getService()
#3 C:\inetpub\wwwroot\mediawiki\skins\Vector\includes\SkinVector.php(47): SkinVector->isLegacy()
#4 C:\inetpub\wwwroot\mediawiki\includes\OutputPage.php(2497): SkinVector->getDefaultModules()
#5 C:\inetpub\wwwroot\mediawiki\includes\OutputPage.php(2604): OutputPage->loadSkinModules()
#6 C:\inetpub\wwwroot\mediawiki\includes\exception\MWException.php(193): OutputPage->output()
#7 C:\inetpub\wwwroot\mediawiki\includes\exception\MWException.php(231): MWException->reportHTML()
#8 C:\inetpub\wwwroot\mediawiki\includes\exception\MWExceptionHandler.php(104): MWException->report()
#9 C:\inetpub\wwwroot\mediawiki\includes\exception\MWExceptionHandler.php(185): MWExceptionHandler::report()
#10 C:\inetpub\wwwroot\mediawiki\includes\MediaWiki.php(576): MWExceptionHandler::handleException()
#11 C:\inetpub\wwwroot\mediawiki\index.php(53): MediaWiki->run()
#12 C:\inetpub\wwwroot\mediawiki\index.php(46): wfIndexMain()
#13 {main}
I've run update.php, rebuildLocalisationCache.php, and cleanupEmptyCategories.php without any resolution. I've added $wgMessageCacheType = CACHE_NONE and did not resolve either. I have not upgraded the DB, but the version I'm on is listed as compatable with 1.35.
My wiki is internal, but would gladly expose it externally if that would be required to figure out this issue.
Any help would be appreciated! Thanks! EarthBoundX5 (talk) 10:02, 1 March 2021 (UTC)
- Project:Support desk/Flow/2020/09#h-Error:_invalid_magic_word_'expectunusedcategory'-2020-09-01T14:55:00.000Z, Project:Support desk/Flow/2020/03#h-Unable_to_upgrade_mediawiki_1.31.7_to_1.34.1-2020-03-27T11:55:00.000Z. Malyacko (talk) 11:08, 1 March 2021 (UTC)
- Project:Support desk/Flow/2020/09#h-Error:_invalid_magic_word_'expectunusedcategory'-2020-09-01T14:55:00.000Z was one I already found; which had prompted me to run the cleanupEmptyCategories.php and add $wgMessageCacheType = CACHE_NONE. Their issue was to skip 1.33 and goto 1.34. I had already attempted the same.
- Project:Support desk/Flow/2020/03#h-Unable_to_upgrade_mediawiki_1.31.7_to_1.34.1-2020-03-27T11:55:00.000Z indicates it's an unknown file that hadn't been updated, but not much more than that for a solution. Is there any way for me to narrow down exactly what to look for, or just hunt and peck?
- Thanks. EarthBoundX5 (talk) 12:13, 1 March 2021 (UTC)
- UPDATE: I found a post related to the skin error suggesting there could be an issue with the extraction of the tarball. I found I was on 2016 version of 7-zip (playing fast and loose with security clearly), and upgraded, re-extracted, moved files over the existing, re-ran mw-config, and got rid of the MagicWord error, but still had the skin error. I dug into the file path and found that the source rar has a file with a partially removed file extension.
- Under...
- .\skins\Vector\includes\FeatureManagement\Requirements\, the file LatestSkinVersionRequirement.p should be named LatestSkinVersionRequirement.php.
- After this correction, my wiki is working again. Although there is some odd behavior with the editor...things are at least functional and thus in the right direction...
- EDIT: The zip download does not have this missing hp from the file name.
- EDIT 2: Reverted snapshot to 1.31.12, and upgraded again from there with the zip for 1.35.1 instead of the tarball. Worked first time. EarthBoundX5 (talk) 09:20, 3 March 2021 (UTC)
- 7zip causes problem when extracting some files, because now MediaWiki and extensions tarballs are generated using some gzip extension that's not fully supported by 7zip. If you use WinRar it should extract it correctly, or dowload a zip file instead. Ciencia Al Poder (talk) 12:56, 3 March 2021 (UTC)
Text only visible to administrators
I'd like to have some text/links within a page visible only to administrators. I don't think this is possible by default. Are there any extensions that would allow this? I can imagine that one might exist to allow the admin-only text to be enclosed in tags. Thanks. Jonathan3 (talk) 10:29, 1 March 2021 (UTC)
- German Wikipedia has defined: de:MediaWiki:Group-sysop.css
- Things you want to hide may be equipped by
class="adminonly" style="display:none;"and will vanish in general but presented to those who undo this by class="adminonly" CSS. Or similar, such CSS is in effect for every named group. - That is rather common, e.g. wrt pages nominated for deletion to provide links to
action=delete, which are pointless and confusing for regular users, but can be utilized by sysops after decision. Gib Senf dazu! (talk) 16:54, 1 March 2021 (UTC) - This sounds just right. Thanks. Jonathan3 (talk) 22:21, 1 March 2021 (UTC)
- Just keep in mind the text is hidden for normal users but not gone. Don't use this method to hide sensitive info like passwords. Bawolff (talk) 07:10, 2 March 2021 (UTC)
- Thanks. It's pretty much exactly for what Gib mentioned - delete and edit links. Jonathan3 (talk) 10:33, 2 March 2021 (UTC)
Internal error
Hi,
I'm trying to access the links form this page: https://www.limspec.com/index.php?title=Category:Specification:All_datasheet_specifications and whichever link i click on, i get the following Internal error:
[3a95a669] /index.php?title=Specification_481750_Export_to_other_applications Exception from line 167 of /mnt/wiki-gfs/limspec.com/extensions/Scribunto/engines/LuaStandalone/LuaStandaloneEngine.php: The lua binary (/mnt/wiki-gfs/limspec.com/extensions/Scribunto/engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua) is not executable.
Any idea why this is happening and what can be done.
Thanks a lot.
cheers,
Aravind 185.55.153.21 (talk) 12:08, 1 March 2021 (UTC)
- You need to make the lua binary executable on that system. Malyacko (talk) 13:05, 1 March 2021 (UTC)
- Thanks for the reply Malyacko....but this has to be done by the administrators of the page right? 185.55.153.21 (talk) 13:13, 1 March 2021 (UTC)
- Extension:Scribunto#Installation I think talks about this as a scribunto setup step that might have been missed? You can look up how to set file permissions in your web host's documentation if you're not sure how to do that. TiltedCerebellum (talk) 20:56, 1 March 2021 (UTC)
- You have to use the chmod command to make sure its executable by the apache user (usually www-data) Bawolff (talk) 07:08, 2 March 2021 (UTC)
Embed bitmap in svg
When I try to upload a svg file with an embedded bitmap I get the following error.
<a> elements can only link (href) to data: (embedded file), http:// or https://, or fragment (#, same-document) targets. For other elements, such as <image>, only data: and fragment are allowed. Try embedding images when exporting your SVG. Found <image http://www.w3.org/1999/xlink:href="video-editing_introduction_screen-layout.png">.
Uploading a svg file without embedded bitmap works just fine.
I like to non-destructively annotate bitmap images, eg. screenshots by embedding them into an svg and then annoting them in Inkscape. This is a non-destructive workflow instead of painting the annotations directly on the bitmap. In that case, changing one (text) annotation requres that you change them all.
Is there a solution for this non-destructive annotation? Hugsch (talk) 13:22, 1 March 2021 (UTC)
- There is some sanitizing mechanism, since SVG has security leaks which might be exploited to run hidden scripts.
- Furthermore I recall that our media people are not happy about bitmap hiding within SVG, which let people expect a tiny SVG but inside there is a huge blob.
- I guess MediaWiki will not create leaks in security concept to satisfy your desire.
- There are other mechanisms available to annotate images, look e.g. at English Wikipedia for old Imagemap feature and more recent Annotated Image jigsaw. Gib Senf dazu! (talk) 17:03, 1 March 2021 (UTC)
- Found the solution myself.
- In Inkscape you can link or embed a bitmap. You have to select "Embed" in the File > Import dialog box. Copy and paste from the clipboard will automatically embed the bitmap. Hugsch (talk) 20:49, 1 March 2021 (UTC)
- It's for security reasons, as a well crafted SVG file could load malicious remote code by this. You likely do not want to change that for your own safety. Malyacko (talk) 06:32, 2 March 2021 (UTC)
- The primary reason is that in the original you were referencing a file that was separate from the svg. We require all svgs to be self-contained. Bawolff (talk) 07:07, 2 March 2021 (UTC)
1.35 Installation Fatal Error
Hi, i get following error when trying to install (fresh install) mediawiki 1.35 on synology nas:
Fatal error: Cannot declare class Maintenance, because the name is already in use in /volume1/web/mediawiki/maintenance/includes/Maintenance.php on line 55
Any ideas? 46.223.129.6 (talk) 13:55, 1 March 2021 (UTC)
- The folks here would probably need more debugging information to help you with that. Also, they'd need more information about your setup such as the info asked for in this page's sidebar: Project:Support desk/Header/en
- Manual:How to debug TiltedCerebellum (talk) 20:53, 1 March 2021 (UTC)
- Hardware:
- Synology NAS DS218+ with DSM 6.2.3-25426 Update 3
- Apache Server 2.2.34
- MariaDB 10.3.21
- PHP 7.3.16
- Media Wiki 1.35.1
- Im afraid i cant manually debug it since i cannot even install it... 46.223.129.6 (talk) 06:07, 2 March 2021 (UTC)
- My guess would be that something is corrupted/broken in your mediawiki install. I would reccomend getting a new copy of mediawiki from official sources and trying again.
- Note: if using the synology package, we dont maintain that package and can only answer questions about the official version. Bawolff (talk) 07:05, 2 March 2021 (UTC)
- Ok i get back in touch with the synology support.
- I´ll report any findings. 46.223.129.6 (talk) 08:33, 2 March 2021 (UTC)
- The synology support is pointing at the media wiki devs, since the package was succesfully installed on my Disk Station but the
- setup of the media wiki itself is leading to this error... 46.223.129.6 (talk) 08:18, 4 March 2021 (UTC)
- Have you tried installing from official MW sources instead and following the corresponding guides, just thinking that way you can get support here? TiltedCerebellum (talk) 01:00, 6 March 2021 (UTC)
- I installed it manually via the web station on the synology and that worked fine.
- I guess they need to check the package that THEY are distributing... 46.223.129.6 (talk) 05:29, 8 March 2021 (UTC)
Why does my IP address not allow posts on WIKIPEDIA?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
We are a simple household of three people. Why can I not post on wikipedia (my IP address appears blocked)? Can someone please look into this? user cdesmazes
Thanks, Christian Cdesmazes (talk) 16:05, 1 March 2021 (UTC)
- You'll have to ask Wikipedia; see Project:About. Leaderboard (talk) 16:08, 1 March 2021 (UTC)
deprecated ResourceLoader module "jquery.throttle-debounce"
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 did upgrade old legacy 1.5 to 1.35 and Extension:MultimediaViewer can't show up some pictures. I see this warning in console:
This page is using the deprecated ResourceLoader module "jquery.throttle-debounce".
Please use OO.ui.throttle/debounce instead. See https://phabricator.wikimedia.org/T213426
How can I fix it? EugeneReut (talk) 19:08, 1 March 2021 (UTC)
- Sorry, it's not a wiki issue, I have to update my backend. EugeneReut (talk) 20:21, 1 March 2021 (UTC)
MediaWiki Browser Issues
I have a MediaWiki that only works when I open it on Firefox. You can see the site here:
http://www.lightmatterinteraction.com/lmiwiki/index.php/Main_Page
I have tried this site on Chrome, Edge, Explorer and Chromium and was not able to see the proper page. I am not sure what the issue is and I am very new to php and SQL type issues. Has anyone seen this issue before? Can anyone point me in the right way as to how to debug this issue?
The domain is registered with GoDaddy which hosts the site using cPanel. I created the instance of MediaWiki with cPanel's Installatron. The only file I have touched is LocalSettings.php which I added (the lines have now been commented):
# This snippet prevents new registrations from anonymous users
# (Sysops can still create user accounts)
#$wgGroupPermissions['*']['createaccount'] = false;
# Disable reading line, for anonymous (not-logged-in => * ) :
#$wgGroupPermissions['*']['read'] = false;
I also added a couple of lines about display the php errors, but I have since deleted, because they did not give me any information.
It might be worth noting that I made all edits to the wiki pages with FireFox. This is MediaWiki ver 1.35.1. Any advice would be great, thanks.
PS. Sorry about the double post, if you want to delete my original post, that is fine, also, I clearly don't know how to use your code embedding functionaliy Svirtue (talk) 00:15, 2 March 2021 (UTC)
- Was able to fix the issue, found it here:
- Project:Support desk/Flow/2021/01#h-Install_Problem_-_binary_in_php_code_(question_marks)-2021-01-01T09:48:00.000Z
- Fix is:
- Add following line to LocalSettings.php:
$wgDisableOutputCompression = true;- And comment out line in includes/MediaWiki.php:
// $response->header( 'Content-Encoding: identity' );Svirtue (talk) 01:37, 2 March 2021 (UTC)
How to use equal sign in table caption?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
How do I use an equal sign ("=" or =) for a table caption without adding a linebreak?
| 1A | 1B |
| 2A | 2B |
Nicole Sharp (talk) 06:58, 2 March 2021 (UTC)
- Never mind. I got it working with CSS:
| 1A | 1B |
| 2A | 2B |
Installing Ads on Media Wiki with Hook
Hello. I am trying to integrate the open source Revive ad server with MediaWiki 1.35.1. I need to put the following code, for example:
<ins data-revive-zoneid="1" data-revive-id="1ff718e019675202116618d59bb87e4d"></ins>
<script async src="//adserver.newtooslo.com/www/delivery/asyncjs.php"></script>
Into here:
$wgHooks['SkinAfterContent'][] = function ( &$data, Skin $skin ) {$data .= '
***I INSERT THE CODE HERE VERBATIM***
';
};
But to no avail. I think I did get this to work correctly but this does not work, just a blank page:
$wgHooks['SkinAfterContent'][] = function ( &$data, Skin $skin ) {$data .= '
<ins data-revive-zoneid="1" data-revive-id="1ff718e019675202116618d59bb87e4d"></ins>
<script async src="//adserver.newtooslo.com/www/delivery/asyncjs.php"></script>
';
};
Thanks,
Dave Davegilligan73 (talk) 09:58, 2 March 2021 (UTC)
- Blankpage means php error. See How to debug to make them show up.
- For this, i would suggest trying to do the string as one line (the opening ' on same line as closing '). Im not sure php lets string literals expand across multiple lines. The html should be fine being all one line. Bawolff (talk) 01:52, 3 March 2021 (UTC)
How to carete this page
https://www.wikipedia.org/ I want to create my wiki like web site, how.
I want to create exactly the same link as the link I gave Suntq (talk) 10:57, 2 March 2021 (UTC)
- @Suntq See https://meta.wikimedia.org/wiki/Project_portals Malyacko (talk) 13:03, 2 March 2021 (UTC)
Include a page from the article scope
Hi. How do I include a page from Article Scope, in Templates We use {{Template Name}} How do we use that in Articles? 41.254.66.111 (talk) 10:58, 2 March 2021 (UTC)
- {{:Page name}} - see Transclusion. Jonathan3 (talk) 22:10, 2 March 2021 (UTC)
Invalid response from the server.
Hi,
I created a new page, cached it and then continued working on it. If I save the changes now, I get the following message:
Invalid response from the server.
What's behind it? 2001:16B8:4088:B400:448B:987C:6CEC:76FD (talk) 12:31, 2 March 2021 (UTC)
- How do you "cache a page" in MediaWiki? Malyacko (talk) 13:03, 2 March 2021 (UTC)
- I saved the page ... and then wanted to continue working. Now I am supposed to indicate changes. when I enter wwhich I get this error message. 2001:16B8:4088:B400:448B:987C:6CEC:76FD (talk) 13:51, 2 March 2021 (UTC)
- Just fyi, that's not what the word cache means in a computer context.
- Check your php error log maybe. Is this error in mobike frontend? Check if web browser developer console has any warnings. Bawolff (talk) 01:47, 3 March 2021 (UTC)
Fatal exception of type MWException
Hello,
Working on a documentation where the owner installed MediaWiki and have given me permissions to add new pages and content. It was working okay, but now it gives the following error.
Fatal exception of type MWException
Can anyone help me out with this? I am quite new to the product.
Thanks! 2405:201:19:D016:11F5:B58:9B44:C9D4 (talk) 13:31, 2 March 2021 (UTC)
- Set $wgShowExceptionDetails=true; Bawolff (talk) 01:45, 3 March 2021 (UTC)
Special characters in Title
Hello,
I'm looking for using special characters like : "[" or "]" to use a system as tag in Title of my different pages.
When I tried to use one in Title, I get the following message : ...It may contain one or more characters that cannot be used in titles.
Is there some tips to use those characters in a Title ?
Thanks for your answer MorenoPierre (talk) 14:46, 2 March 2021 (UTC)
- As documented on Manual:Page title, "[" and "]" are on purpose banned from titles because otherwise you wouldn't be able to link to it from another page. While you can customize
$wgLegalTitleChars, I don't think that will work for the brackets, due to its special meaning. - Have you considered storing the name with brackets as a separate value? For example, for Wikipedias, "iPhone" is not a legal title (as it starts without an upper case) but it is printed as such with the use of templates and javascript: https://en.wikipedia.org/wiki/IPhone JCrespo (WMF) (talk) 15:16, 2 March 2021 (UTC)
- Thanks, I like to have 4 or 5 differents tags like [DEV] [TEST] [Metr] [PAC], and I don't know how to make same thing like "iPhone" page in Wikipedia ? with templates and javascript ? Can you explain me please ? MorenoPierre (talk) 15:30, 2 March 2021 (UTC)
- I am sorry, I gave you outdated advice. iPhone uses DISPLAYTITLE magic word to update its title, not javascript. Sadly that only allows for case changes and underscores.
- I think you would be able to add brackets (I have not tested it) with an extension such as Extension:Display Title. JCrespo (WMF) (talk) 15:57, 2 March 2021 (UTC)
- If you set $wgRestrictDisplayTitle = false; you can put anything in the display title including []. Bawolff (talk) 01:43, 3 March 2021 (UTC)
- This is definitely possible if the text in the square brackets is predictable. You can use round brackets in the title e.g.
Page name (TEST)and use a regular expression to spot when to convert them to square brackets using DISPLAYTITLE e.g.Page name [TEST]. I can't remember how exactly, but hope this message gives you hope while I look into it for you. Jonathan3 (talk) 17:17, 2 March 2021 (UTC) - Ok, it's an extension containing this bit of code. It probably isn't the most efficient way of doing it. You could probably replace the pattern_needs_square function with a simple regex string in your case.
- Jonathan3 (talk) 17:26, 2 March 2021 (UTC)
public static function onParserBeforeStrip ( &$parser, &$text, &$strip_state ) { #This converts page title headers from round to square brackets $title_old = $parser->getTitle(); $title_new = preg_replace( self::pattern_needs_square(), "[" . "$1" . "] " . "$2" , $title_old); if ($title_new!=$title_old) { $text = $text . "{{DISPLAYTITLE:" . $title_new . "}}"; } } - If you add this to LocalSettings.php it converts (TEST) in a page title to [TEST], and the same for DEV, Metr and PAC - hope it works for you :-) I've only tested it out on an old MW 1.27.1 wiki.
- Jonathan3 (talk) 23:34, 3 March 2021 (UTC)
function convertTitle ( &$parser, &$text, &$strip_state ) { $title_old = $parser->getTitle(); $title_new = preg_replace( '~\((TEST|DEV|Metr|PAC)\)~', "[$1]" , $title_old ); if ( $title_new != $title_old ) { $text .= "{{DISPLAYTITLE:$title_new}}"; } } $wgHooks['ParserBeforeStrip'][] = 'convertTitle'; - Thanks a lot Jonathan3, I tried to do it, but that still don't work. Maybe I did something wrong.
- I put your function convertTitle() in my LocalSettings.php and when I try to create a page (TEST) , it doesn't convert it.
- Thanks for your answer MorenoPierre (talk) 15:42, 5 March 2021 (UTC)
- I see you marked this as complete - how did you end up getting it to work?
- Did you notice Bawolff's advice on improving the code, in Project:Support desk/Flow/2021/03#h-What_hook_should_I_use_instead_of_ParserBeforeStrip?-2021-03-09T23:38:00.000Z? Jonathan3 (talk) 21:37, 10 March 2021 (UTC)
- Your function work well, I just made bad things first time. Your function is exactly what I need ! Thanks a lot @Jonathan3 MorenoPierre (talk) 09:55, 11 March 2021 (UTC)
- I'm pleased to hear that. You'll note from Project:Support desk/Flow/2021/03#h-What_hook_should_I_use_instead_of_ParserBeforeStrip?-2021-03-09T23:38:00.000Z that it'll stop working in MW 1.36 because of the hook used (I'm sure there's another suitable one) and there is a better way of doing it in any event :-) Jonathan3 (talk) 20:27, 11 March 2021 (UTC)
ldap groupsync not working after upgrade for existing accounts
we are attempting to upgrade from 1.19.1 on an old server with php 5.4.16 to 1.35.1 on a new server with php 7.3.20, the database is mysql community 5.7.31
as such we are changing from this ldap extension - Extension:LDAP Authentication to the current ldap stack that works on 1.35.1
we have configured 1.35.1 to point to a copy the old version database and to run update.php without the ldap extensions enabled which seem to go through fine, we then enabled all the new ldap extensions and re ran update.php, the ldap_domains table is created
we have configured groupsync with mappedgroups that works correctly for accounts that do not already exist in the wiki and they show up in the ldap_domains table and are added to the right local groups, anyone who already had an account in the wiki is not added to ldap_domains table when they log in and thus the groupsync does not add them to right local groups
is there something we need to remove / change on existing accounts so the groupsync works for existing accounts short of manually adding them to the ldap_domains table which does workaround the problem
we have also tested this configuration on a clean fresh site and the groupsync works for everyone including those whos does not work on the upgraded one
thanks Xethina (talk) 05:56, 3 March 2021 (UTC)
- follow up, looking in the debug log there are these two entries for a new account after the upgrade
- [DBQuery] MediaWiki\Extension\LDAPProvider\UserDomainStore::getDomainForUser [0.001s] sci-mysql01.compute.dc.uq.edu.au: SELECT domain FROM `ldap_domains` WHERE user_id = 779 LIMIT 1
- [DBQuery] MediaWiki\Extension\LDAPProvider\UserDomainStore::setDomainForUser [0.001s] sci-mysql01.compute.dc.uq.edu.au: INSERT INTO `ldap_domains` (domain,user_id) VALUES ('uq.edu.au',779)
- the INSERT one does not appear for existing accounts when they login after the upgrade, they get two SELECTS
- [DBQuery] MediaWiki\Extension\LDAPProvider\UserDomainStore::getDomainForUser [0.001s] sci-mysql01.compute.dc.uq.edu.au: SELECT domain FROM `ldap_domains` WHERE user_id = 777 LIMIT 1
- [DBQuery] MediaWiki\Extension\LDAPProvider\UserDomainStore::getDomainForUser [0.001s] sci-mysql01.compute.dc.uq.edu.au: SELECT domain FROM `ldap_domains` WHERE user_id = 777 LIMIT 1
- so it looks like the insert only happens for new accounts when it is created and not for existing accounts even if the select will return nothing Xethina (talk) 06:08, 3 March 2021 (UTC)
Update files
Hello all,
I use MediaWiki 1.35 and use the "Upload a new version of this file" function to update uploaded files in the wiki without having to constantly create them with a new name.
I noticed that after the update, the file remains unchanged. Only when I select the file and refresh the page where the file is located, the current version is shown to me. Is there any way to show the file directly without refreshing the page again?
I would be happy if someone could help me.
THANKS
onmiy Onmiy (talk) 07:55, 3 March 2021 (UTC)
- Could be something iffy with what caching headers your webserver is set to serve images with.
- MW unfortunately doesnt use content hash based file names which would make this problem much easier to deal with. Bawolff (talk) 09:07, 3 March 2021 (UTC)
- hello,
- Thank you so much for sharing this helpful information, it helped me alot
- Thanks and regards.:) Singhpankaj62 (talk) 09:48, 3 March 2021 (UTC)
- FWIW, I had to create an extension to solve this problem: https://github.com/ciencia/mediawiki-extensions-WikiDexFileRepository Ciencia Al Poder (talk) 12:53, 3 March 2021 (UTC)
- thank you guys :-) Onmiy (talk) 11:11, 4 March 2021 (UTC)
Wrong rendering of Template:SkinInstall on page Skin:Vector
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi all. Translate tags are displayed due to Template problems.
1 Installation
vagrant>Vagrant</>, install with <tvar
<translate> 1>download-link</> and place the file(s) in a directory called Vector in your skins/ folder.</translate>
<translate> Add the follow
of transclusion of Template:SkinInstall
{{#if: {{{vagrant|}}} |
* <translate><!--T:11--> If using {{ll|MediaWiki-Vagrant|Vagrant}}, install with <code>vagrant roles enable {{{vagrant}}} -p</code></translate>
=== <translate><!--T:12--> Manual installation</translate> === ....
Can someone realign please the EN page ? - Thanks. --Christian 🇫🇷 FR (talk) 12:54, 3 March 2021 (UTC)
Import owl ontology to Mediawiki and Reasoner
I could not find an extension or a tool to help me create a Mediawiki based on an ontology created in Protege. I want to know if there is an extension that helps me create categories, pages, and properties automatically.
I would like to know if anybody knows how to reasoner to mediawiki to infer categories and relations 2A02:2F0C:550F:F100:54B7:73D7:ABBD:F9E4 (talk) 13:47, 3 March 2021 (UTC)
- The only thing that comes to mind for Protege is Fresnel Forms, which requires Semantic MediaWiki:
- https://is.cs.ou.nl/OWF/index.php/Fresnel_Forms_Prot%C3%A9g%C3%A9_plugin
- https://www.semantic-mediawiki.org/wiki/SMWCon_Fall_2015/Fresnel_Forms Cavila 08:46, 4 March 2021 (UTC)
how to make links active in TemplateData parameters array ?
In first section '1.Usage' of page Template:SkinInstall, the {{DownloadGitSnapshot}} is an active link - this is ok. But the same statement is written in the Template data parameters array for default parameter download-link and is NOT active there. How to make the links active in the TemplateData ? Thanks. --Christian 🇫🇷 FR (talk) 22:12, 3 March 2021 (UTC)
- ... no ideas ? Christian 🇫🇷 FR 🚨 (talk) 21:06, 18 March 2021 (UTC)
Fatal exception of type "Wikimedia\Rdbms\DBQueryError"
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 trying to create a new account on the wiki, I get this error: Wikimedia\Rdbms\DBQueryError
I've run the update script, but it has no effect on the error.
This is the version info:
- MediaWiki 1.35.0
- PHP 7.4.14 (apache2handler)
- MySQL 8.0.22
- Lua 5.1.5
This is the error backtrace output:
[YEAMosKv6RmIf2@2AAwF4wAAAFE] /wiki/Special:CreateAccount Wikimedia\Rdbms\DBQueryError from line 1699 of /var/www/barfoowiki.com/htdocs/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Error 1062: Duplicate entry '53329' for key 'actor.actor_user' (localhost)
Function: User::updateActorId
Query: INSERT INTO `actor` (actor_user,actor_name) VALUES (53329,'Foobar')
Backtrace:
#0 /var/www/barfoowiki.com/htdocs/includes/libs/rdbms/database/Database.php(1683): Wikimedia\Rdbms\Database->getQueryException()
#1 /var/www/barfoowiki.com/htdocs/includes/libs/rdbms/database/Database.php(1658): Wikimedia\Rdbms\Database->getQueryExceptionAndLog()
#2 /var/www/barfoowiki.com/htdocs/includes/libs/rdbms/database/Database.php(1227): Wikimedia\Rdbms\Database->reportQueryError()
#3 /var/www/barfoowiki.com/htdocs/includes/libs/rdbms/database/Database.php(2343): Wikimedia\Rdbms\Database->query()
#4 /var/www/barfoowiki.com/htdocs/includes/libs/rdbms/database/Database.php(2323): Wikimedia\Rdbms\Database->doInsert()
#5 /var/www/barfoowiki.com/htdocs/includes/user/User.php(3699): Wikimedia\Rdbms\Database->insert()
#6 /var/www/barfoowiki.com/htdocs/includes/user/User.php(3676): User->updateActorId()
#7 /var/www/barfoowiki.com/htdocs/includes/libs/rdbms/database/Database.php(4461): User->{closure}()
#8 /var/www/barfoowiki.com/htdocs/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->doAtomicSection()
#9 /var/www/barfoowiki.com/htdocs/includes/libs/rdbms/database/DBConnRef.php(641): Wikimedia\Rdbms\DBConnRef->__call()
#10 /var/www/barfoowiki.com/htdocs/includes/user/User.php(3679): Wikimedia\Rdbms\DBConnRef->doAtomicSection()
#11 /var/www/barfoowiki.com/htdocs/includes/auth/AuthManager.php(1436): User->addToDatabase()
#12 /var/www/barfoowiki.com/htdocs/includes/auth/AuthManager.php(1163): MediaWiki\Auth\AuthManager->continueAccountCreation()
#13 /var/www/barfoowiki.com/htdocs/includes/specialpage/AuthManagerSpecialPage.php(376): MediaWiki\Auth\AuthManager->beginAccountCreation()
#14 /var/www/barfoowiki.com/htdocs/includes/specialpage/AuthManagerSpecialPage.php(502): AuthManagerSpecialPage->performAuthenticationStep()
#15 /var/www/barfoowiki.com/htdocs/includes/htmlform/HTMLForm.php(707): AuthManagerSpecialPage->handleFormSubmit()
#16 /var/www/barfoowiki.com/htdocs/includes/specialpage/AuthManagerSpecialPage.php(435): HTMLForm->trySubmit()
#17 /var/www/barfoowiki.com/htdocs/includes/specialpage/LoginSignupSpecialPage.php(319): AuthManagerSpecialPage->trySubmit()
#18 /var/www/barfoowiki.com/htdocs/includes/specialpage/SpecialPage.php(600): LoginSignupSpecialPage->execute()
#19 /var/www/barfoowiki.com/htdocs/includes/specialpage/SpecialPageFactory.php(635): SpecialPage->run()
#20 /var/www/barfoowiki.com/htdocs/includes/MediaWiki.php(307): MediaWiki\SpecialPage\SpecialPageFactory->executePath()
#21 /var/www/barfoowiki.com/htdocs/includes/MediaWiki.php(940): MediaWiki->performRequest()
#22 /var/www/barfoowiki.com/htdocs/includes/MediaWiki.php(543): MediaWiki->main()
#23 /var/www/barfoowiki.com/htdocs/index.php(53): MediaWiki->run()
#24 /var/www/barfoowiki.com/htdocs/index.php(46): wfIndexMain()
#25 {main}
Where should I look? It was working fine until very recently. No upgrades have been done recently, either. Thanks! 日本穣 Nihonjoe (talk) 22:41, 3 March 2021 (UTC)
- Looks like there was a hidden (not sure how else to describe it) entry that matched the username trying to be created. This caused it to give the 1062 error. This duplicate does not show up in the list of users, however. I figured it out by modifying the username to be created and it worked. ~ -- 日本穣 Nihonjoe (talk) 01:20, 4 March 2021 (UTC)
Varnish cache script
On Manual:Varnish caching#Configuring Varnish, there's this section of code. It seems like the second section will never be called. Is there some code missing?
if (beresp.ttl < 48h) {
set beresp.ttl = 48h;
}
if (!beresp.ttl > 0s) {
set beresp.uncacheable = true;
return (deliver);
}
Prod (talk) 04:35, 4 March 2021 (UTC)
Translateable page
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello, could anybody please set as translatable "Enables experimental talk page features: Reply to talk page comments in one click and Add new topics using an inline form" on this page? For example, here it displays that it is translated completely (100 %) but it is not. Thanks in advance. Patrik L. (talk) 09:18, 4 March 2021 (UTC)
- I try the update. --Christian 🇫🇷 FR (talk) 11:08, 4 March 2021 (UTC)
Stylesheet looking at http and not https?
Hi for some reason some of our site styleshett is being directed to http instead of https which is causing it not to load - https://www.incosewiki.info/Bristol_Local_Group/index.php?title=Main_Page&oldid=13 please see site here. Any advice please 81.130.170.18 (talk) 09:46, 4 March 2021 (UTC)
- Check $wgServer in LocalSettings.php as well as the contents of Mediawiki:common.css and related pages. Bawolff (talk) 10:44, 4 March 2021 (UTC)
Passwords must be at least 10 characters
Mediawiki 1.35.0, LocalSettings.php has
$wgPasswordPolicy['policies']['default']['MinimalPasswordLength'] = 8;
But when I try to change my (administrator account) password, I get the red text 'Passwords must be at least 10 characters', and it won't accept the 8 character password I want Vicarage (talk) 11:29, 4 March 2021 (UTC)
- That is the 'default' only as the name suggests. Any more specific policy will override it. You're being asked for 10 because that's the requirement for users in 'sysop' group.
- You must to change it there too:
$wgPasswordPolicy['policies']['default']['MinimalPasswordLength'] = 8;. If you're in interface-admin or bureaucrat groups you must also change it for each group. – Ammarpad (talk) 12:57, 4 March 2021 (UTC) - That occurred to me, though its hardly obvious, as a default I specify should override something set inside code so I added the lines to correspond to Special:ActiveUsers
- $wgPasswordPolicy['policies']['default']['MinimalPasswordLength'] = 8;
- $wgPasswordPolicy['policies']['administrator']['MinimalPasswordLength'] = 8;
- $wgPasswordPolicy['policies']['interface administrator']['MinimalPasswordLength'] = 8;
- $wgPasswordPolicy['policies']['bureaucrat']['MinimalPasswordLength'] = 8;
- And nothing changed. I even added sysop, in case that was some daft hidden group
- Only by editing includes/DefaultSettings.php and changing all the 10s to 8s did I manage to beat it into submission. Grrrr Vicarage (talk) 15:35, 4 March 2021 (UTC)
$wgPasswordPolicy['policies'] = ['default' => ['MinimalPasswordLength' => 8]];- Alternatively, you can put var_dump( $wgPasswordPolicy); die(); at the very end of LocalSettings.php to figure out the final value and see if its what you expect. Bawolff (talk) 17:10, 4 March 2021 (UTC)
- There's no group 'administrator', so that line would not do any anything. The canonical name of the group is 'sysop'. You're not supposed to edit DefaultSettings.php. You better copy the relevant lines to LocalSettings.php – Ammarpad (talk) 17:12, 4 March 2021 (UTC)
- Basic information
- Username:John:
- Member of groups:Administrators, Autoconfirmed users, Bureaucrats, Interface administrators, Users
- No sign of sysop here
- $wgPasswordPolicy['policies'] = [ 'default' => ['MinimalPasswordLength' => 12];
- makes my system lock up. I will stick with editing includes/DefaultSettings.php and moaning Vicarage (talk) 18:45, 4 March 2021 (UTC)
- "No sign of sysop here"
- Sysop is the technical name of the administrators group in the software. The 'human' name value of it is "Administrator". This fact is arguably so well hidden in the interface these days, that it is hard to know if you don't know about the old name. A place where you can still see it is in the url of list users: Special:ListUsers/sysop
- $wgPasswordPolicy['policies'] = [ 'default' => ['MinimalPasswordLength' => 12];
- [] need to be balanced. you are missing a ] at the end there. —TheDJ (Not WMF) (talk • contribs) 20:58, 4 March 2021 (UTC)
- Mediawiki seems very confused over Administrator vs sysop. If the public face of the role is Administrator, why do urls and documentation like https://www.mediawiki.org/wiki/Manual:User_rights#List_of_groups talk about 'sysop' and 'bureaucrat' when an installer could imagine both administering things.
- https://www.mediawiki.org/wiki/Manual:$wgPasswordPolicy is as confused as anywhere. Vicarage (talk) 11:58, 5 March 2021 (UTC)
- Maybe you solved this by now but if someone else struggle with this like I did today, here's what worked for me (added to LocalSettings.php):
- ## Change MinimalPasswordLength
- $wgPasswordPolicy['policies']['default']['MinimalPasswordLength'] = 8;
- $wgPasswordPolicy['policies']['sysop']['MinimalPasswordLength'] = 8;
- $wgPasswordPolicy['policies']['interface-admin']['MinimalPasswordLength'] = 8;
- $wgPasswordPolicy['policies']['bureaucrat']['MinimalPasswordLength'] = 8; 158.174.93.211 (talk) 18:03, 31 July 2021 (UTC)
- Hi,
- I yesterday installed a local copy of mediawiki and have the same problem as @Vicarage. I have set the the dump as recommended by @Bawolff. Result is:
array(2) { ["policies"]=> array(5) { ["bureaucrat"]=> array(2) { ["MinimalPasswordLength"]=> int(6) ["MinimumPasswordLengthToLogin"]=> int(1) } ["sysop"]=> array(2) { ["MinimalPasswordLength"]=> int(6) ["MinimumPasswordLengthToLogin"]=> int(1) } ["interface-admin"]=> array(2) { ["MinimalPasswordLength"]=> int(10) ["MinimumPasswordLengthToLogin"]=> int(1) } ["bot"]=> array(2) { ["MinimalPasswordLength"]=> int(10) ["MinimumPasswordLengthToLogin"]=> int(1) } ["default"]=> array(5) { ["MinimalPasswordLength"]=> int(6) ["PasswordCannotBeSubstringInUsername"]=> array(2) { ["value"]=> bool(true) ["suggestChangeOnLogin"]=> bool(true) } ["PasswordCannotMatchDefaults"]=> array(2) { ["value"]=> bool(true) ["suggestChangeOnLogin"]=> bool(true) } ["MaximalPasswordLength"]=> array(2) { ["value"]=> int(4096) ["suggestChangeOnLogin"]=> bool(true) } ["PasswordNotInCommonList"]=> array(2) { ["value"]=> bool(true) ["suggestChangeOnLogin"]=> bool(true) } } } ["checks"]=> array(6) { ["MinimalPasswordLength"]=> string(48) "PasswordPolicyChecks::checkMinimalPasswordLength" ["MinimumPasswordLengthToLogin"]=> string(55) "PasswordPolicyChecks::checkMinimumPasswordLengthToLogin" ["PasswordCannotBeSubstringInUsername"]=> string(62) "PasswordPolicyChecks::checkPasswordCannotBeSubstringInUsername" ["PasswordCannotMatchDefaults"]=> string(54) "PasswordPolicyChecks::checkPasswordCannotMatchDefaults" ["MaximalPasswordLength"]=> string(48) "PasswordPolicyChecks::checkMaximalPasswordLength" ["PasswordNotInCommonList"]=> string(50) "PasswordPolicyChecks::checkPasswordNotInCommonList" } }- From my perspective it shows the param is set and accepted.
- But still, when trying to change the password for a user (the only user created as admin during setup), i get the message the minimum password length is 10.
$wgPasswordPolicy['policies']['default']['MinimalPasswordLength'] = 6; $wgPasswordPolicy['policies']['bureaucrat']['MinimalPasswordLength'] = 6; $wgPasswordPolicy['policies']['sysop']['MinimalPasswordLength'] = 6;
- Any idea why this happens?
- Regards
- Kallewirsch
- Upate:
- when writing the reply I reconcnized the user created during setup might be of role "interface-admin" (makes sense). I added this to the params and now it works for the user where I tested it. KHFischbach (talk) 07:29, 24 September 2022 (UTC)
Error uploading jpg
When I try to upload a jpg file I get the following inernal error:
[YEDUqJPL20dJg2DZY8BFbgAAAHw] /index.php?title=Special:Upload TypeError from line 694 of /home/spatialm/mediawiki/includes/media/Exif.php: abs(): Argument #1 ($num) must be of type int|float, string given
Backtrace:
#0 /home/spatialm/mediawiki/includes/media/Exif.php(694): abs(string)
#1 /home/spatialm/mediawiki/includes/media/Exif.php(716): Exif->isSlong(string)
#2 /home/spatialm/mediawiki/includes/media/Exif.php(801): Exif->isSrational(string)
#3 /home/spatialm/mediawiki/includes/media/Exif.php(336): Exif->validate(string, string, string)
#4 /home/spatialm/mediawiki/includes/media/Exif.php(308): Exif->makeFilteredData()
#5 /home/spatialm/mediawiki/includes/media/BitmapMetadataHandler.php(96): Exif->__construct(string, string)
#6 /home/spatialm/mediawiki/includes/media/BitmapMetadataHandler.php(192): BitmapMetadataHandler->getExif(string, string)
#7 /home/spatialm/mediawiki/includes/media/JpegHandler.php(105): BitmapMetadataHandler::Jpeg(string)
#8 /home/spatialm/mediawiki/includes/utils/MWFileProps.php(87): JpegHandler->getMetadata(FSFile, string)
#9 /home/spatialm/mediawiki/includes/upload/UploadBase.php(547): MWFileProps->getPropsFromPath(string, string)
#10 /home/spatialm/mediawiki/includes/upload/UploadBase.php(482): UploadBase->verifyPartialFile()
#11 /home/spatialm/mediawiki/includes/upload/UploadBase.php(390): UploadBase->verifyFile()
#12 /home/spatialm/mediawiki/includes/upload/UploadFromFile.php(95): UploadBase->verifyUpload()
#13 /home/spatialm/mediawiki/includes/specials/SpecialUpload.php(516): UploadFromFile->verifyUpload()
#14 /home/spatialm/mediawiki/includes/specials/SpecialUpload.php(214): SpecialUpload->processUpload()
#15 /home/spatialm/mediawiki/includes/specialpage/SpecialPage.php(600): SpecialUpload->execute(NULL)
#16 /home/spatialm/mediawiki/includes/specialpage/SpecialPageFactory.php(635): SpecialPage->run(NULL)
#17 /home/spatialm/mediawiki/includes/MediaWiki.php(307): MediaWiki\SpecialPage\SpecialPageFactory->executePath(Title, RequestContext)
#18 /home/spatialm/mediawiki/includes/MediaWiki.php(940): MediaWiki->performRequest()
#19 /home/spatialm/mediawiki/includes/MediaWiki.php(543): MediaWiki->main()
#20 /home/spatialm/mediawiki/index.php(53): MediaWiki->run()
#21 /home/spatialm/mediawiki/index.php(46): wfIndexMain()
#22 {main}
Any ideas? 87.219.208.43 (talk) 12:40, 4 March 2021 (UTC)
- This has been fixed on master branch and has been backported to MW 1.35 – Ammarpad (talk) 12:50, 4 March 2021 (UTC)
- Ok, thanks. It only happens with large images, with small ones I don't get this error, can it be? 87.219.208.43 (talk) 13:35, 4 March 2021 (UTC)
- I think Ammarpad is suggesting you update your mediawiki to the fixed version to prevent this? TiltedCerebellum (talk) 19:40, 4 March 2021 (UTC)
- or use php7 instead. Bawolff (talk) 02:19, 5 March 2021 (UTC)
Error creating image thumbnail
When I try to upload an image I get the following error:
Error creating thumbnail: Error code: -1
Any ideas? 87.219.208.43 (talk) 13:37, 4 March 2021 (UTC)
- See the "Before you post" section in the sidebar (e.g. https://www.mediawiki.org/wiki/Manual:Errors_and_symptoms#Image_Thumbnails_not_working_and/or_appearing ) Malyacko (talk) 13:52, 4 March 2021 (UTC)
- Thanks, I have searched in the link you have recommended but I have not found any case like mine, could anyone help me? 87.219.208.43 (talk) 21:03, 4 March 2021 (UTC)
- Not without further information; please see the sidebar here. And which software is used to create thumbnails. And which permissions that software has. Malyacko (talk) 09:12, 5 March 2021 (UTC)
Issues with Installing WikiBase
I have been having issues with installing wikibase (required for infoboxes)
I believed I followed the instructions correctly, however, following the installation my wiki goes to a white screen. Upon turning on error reporting I get the following error :
Fatal error: Uncaught Error: Class 'Wikimedia\AtEase\AtEase' not found in /home/archive.xxxxxxx.org/includes/registration/ExtensionRegistry.php:171 Stack trace: #0 /home/archive.xxxxxxx.org/includes/GlobalFunctions.php(88): ExtensionRegistry->queue('/home/...') #1 /home/archive.xxxxxxx.org/LocalSettings.php(133): wfLoadSkin('MonoBook') #2 /home/archive.xxxxxxx.org/includes/Setup.php(143): require_once('/home/...') #3 /home/archive.xxxxxxx.org/includes/WebStart.php(89): require_once('/home/...') #4 /home/archive.xxxxxxx.org/index.php(44): require('/home/...') #5 {main} thrown in /home/archive.xxxxxxx.org/includes/registration/ExtensionRegistry.php on line 171
I have tried installing this twice and have had zero luck so far.
Any help would be greatly appreciated! Kommandantjut (talk) 01:37, 5 March 2021 (UTC)
- Check if stuff is missing in the vendor directory. Make sure all your files are from the same version of mediawiki. Bawolff (talk) 02:18, 5 March 2021 (UTC)
- How would I know if something is missing in the vendor directory?
- I did ensure that the versions were matched up with mediawiki Kommandantjut (talk) 02:27, 5 March 2021 (UTC)
Send notifications to all registered users in a wiki
Is there a extension or something else, that can send a notification to all users? I already tried to use the Extension:Newsletter, but I don't know how to subscribe every user to a newsletter. Another thing that I tried was Extension:MassMessage, but for that I think I need a category with every registered user and I don't know how that works. I would be really thankfull if anyone could help me. Simini W (talk) 06:52, 5 March 2021 (UTC)
change my username, please
could someone change my username to: yardom78 , please, thank you yardom78 (talk) 07:22, 5 March 2021 (UTC)
- On which website? Malyacko (talk) 09:11, 5 March 2021 (UTC)
- Ahoj přátelé. MABOX zadám rozlišení 1440x900. Po restartu zůstane nastavení, po vypnutí se změní obraz na 4:3. Mám to nainstalováno ve virtuél boxu KVM. Ve virtuálu mám také Debian a tam je to v pořádku. Děkuji za zprávu. J. Chaloupka. Jindrachal (talk) 09:15, 5 March 2021 (UTC)
- @Jindrachal Welcome to the support desktop for the MediaWiki software. Whatever "MABOX" is, you have to talk to MABOX about that, not to MediaWiki folks. Malyacko (talk) 11:02, 5 March 2021 (UTC)
Centreon
- depuis central copier le plugin à jour vers les PI :
scp -P 2222 /usr/lib/centreon/plugins/centreon_linux_snmp.pl [[1]]
- Ensuite tu vas te connecter au PI en SSH passer en root et exécuter les commandes suivantes :
mv /home/pi/centreon_linux_snmp.pl /usr/lib/centreon/plugins/
chown centreon-engine:centreon-engine /usr/lib/centreon/plugins/centreon_linux_snmp.pl Ndadem (talk) 15:03, 5 March 2021 (UTC)
- @Ndadem Welcome to the support desktop for the MediaWiki software. Whatever "Centreon" is, you have to talk to Centreon about that, not to MediaWiki folks. Malyacko (talk) 15:44, 5 March 2021 (UTC)
Hide and reveal specific pages depending on user
We are creating a privately hosted wiki for a television series in development. We would like different user logins to hide and reveal different iterations of a few pages.
For example on a page with an Infobox television character template, I will have three tabs with three actor's names who are being considered for casting. We would like it so that each actor's representation would be directed to a page where their client is first choice.
Would multiple instances of the wiki be the best route or would something like the AccessControl extension work or does that just restrict access and visibility to certain pages?
Any help being pointed into the right direction would be great. This is a limited, private, wiki and it would be read only for all users aside from a few admins.
Thanks,
Tim Wodendigital (talk) 16:20, 5 March 2021 (UTC)
Magic word for extension versions
Dear All,
Is there a way to show the version number of a certain extension, analogous to {{CURRENTVERSION}} for the mediawiki version?
Thank you in advance!
yours Ciciban (talk) 17:24, 5 March 2021 (UTC)
- No. – Ammarpad (talk) 05:15, 6 March 2021 (UTC)
Score decreases
Why does my score decrease? 2601:2C5:4401:44A0:F814:D4C1:A0EA:AA99 (talk) 02:37, 6 March 2021 (UTC)
- Which score where? Link welcome. Is this about MediaWiki at all? Malyacko (talk) 12:46, 6 March 2021 (UTC)
run create_pygmentize_bundle using local Pygments installation
Hello there,
My goal is add syntax highlighting for my own language. In order to do that, I installed Pygments on my local machine and added my own lexer file (mylexer.py). Since I don't want to pull request the lexer, how do I edit the create_pygmentize_script so it uses the locally installed Pygments to create the bundle? 68.129.140.104 (talk) 04:57, 6 March 2021 (UTC)
Iframe Mobile Mediawiki Issue
Hi community ! Sorry for my bad English :p
I'm at the end of a long search about "iframe" for MediaWiki. I explain my issue, I would like to integrate mediawiki with the mobile version on pc with the href ending by "&mobileaction=toggle_view_mobile". It's works and it's cool. But there is one problem, when I open a link in this iframe :
* In Firefox, perfect ! It opens the link with the mobile skin.
* In Chrome, game over ! The link is open with the pc skin.
Somebody knows if there is an iframe option on mediawiki about this problem ? And maybe somebody knows a way to fix it !
Thank you so much in advance for your help.
And have a nice weekend ! :) Pracarta (talk) 09:33, 6 March 2021 (UTC)
- Finally, Is not perfect on Firefox, because even if the Minerva Neue is deactivate, Mediawiki work with this skin. Pracarta (talk) 10:22, 6 March 2021 (UTC)
- maybe SameSite cookie related (chrome defaults to lax, firefox defaults to none, but is eventually going to copy chrome).
- Have you considered just setting $wgDefaultSkin = "minerva"; (not entirely the same thing as mobile site, its using the mobile skin but the desktop site. There is probably some config you can use to disable autodetection and just use mobile always) Bawolff (talk) 19:44, 6 March 2021 (UTC)
- Thanks you for your advise
- Hum, It could be an good idea.
- but now MediaWiki send me (only for MediaWIki in iframe) this :
- Oups ! L’habillage par défaut pour votre wiki, défini par
$wgDefaultSkincommeMinervaNeue, n’est pas disponible. - Votre installation semble inclure les habillages suivants. Voyez le manuel de configuration des habillages pour savoir comment lesactiver et choisir celui par défaut.
minervaneue/ MinervaNeue (désactivé)monobook/ MonoBook (activé)timeless/ Timeless (activé)vector/ Vector (activé)
- Si vous venez juste d’installer MediaWiki
- Vous l’avez probablement installé depuis git, ou directement depuis le code source avec une autre méthode. C’est normal. Essayez d’installer des habillages depuis le répertoire des habillages de mediawiki.org, en :
- Téléchargeant le fichier tar du programme d’installation, qui comprend plusieurs habillages et extensions. Vous pouvez copier et coller le répertoire
skins/depuis là. - Téléchargeant les fichiers tar d’habillage individuel depuis mediawiki.org.
- Téléchargeant des habillages avec Git.
- Téléchargeant le fichier tar du programme d’installation, qui comprend plusieurs habillages et extensions. Vous pouvez copier et coller le répertoire
- Faire ainsi ne devrait pas interférer avec votre dépôt git, si vous êtes un développeur de MediaWiki.
- Si vous venez juste de mettre à jour MediaWiki
- MediaWiki 1.24 et au-delà n’active plus automatiquement les habillages installés (voyez le manuel sur la découverte automatique des habillages). Vous pouvez coller la ligne suivante dans
LocalSettings.phppour activer l’habillage actuellement installé :
wfLoadSkin( 'MinervaNeue' );- Si vous venez de modifier
LocalSettings.php - Vérifiez deux fois le nom des habillages pour éviter les erreurs de frappe. Pracarta (talk) 21:41, 7 March 2021 (UTC)
- Si vous venez de modifier
- mediawiki 1.24 is pretty old. Maybe that was from before minervaneue was as separate from mobilefrontend. Bawolff (talk) 14:10, 8 March 2021 (UTC)
Malformed json in latest Wikidata dump
Hi,
I have a script to extract entities from Wikidata dumps, that I've been running successfully for years.
The last time I ran it, on current latest-all.json.bz2 (03-Mar-2021 14:10, size 63323125695), it complained about a malformed json:
ijson.common.IncompleteJSONError: parse error: after array element, I expect ',' or ']'
:[]}},"lastrevid":1374358285}{"type":"item","id":"Q27","labe
(right here) ------^
The script runs multiple threads in parallel, so it's able to "crash" on some threads while continuing on others, so I noticed that the error happens not only at that point, but also in a couple more places through the json.
I'm currently downloading the version that is .gz (rather than .bz2) to try running on it (not very hopefully, to be honest). Does anyone know why is this happening? Has there been changes on how Wikidata dumps are generated, or maybe it was just an error on this particular dump?
The last succesfully extraction happened at the beginning of January, on a .bz2 with size 61247031499 (I'm not able to find it in the dumps page) Motagirl2 (talk) 12:42, 6 March 2021 (UTC)
- @Motagirl2 I am seeing the same issue with the last 2 wikidata JSON dump files: 20210222/wikidata-20210222-all.json.bz2 and latest-all.json.bz2. The downloaded files match the md5sums however I am seeing the following errors when parsing the JSON files:
- latest-all.json.bz2 (dated Mar 3 14:10):
- error reading separator after document #11554732: bad JSON array format - found '{' outside JSON object/array in input source
- wikidata-20210222-all.json.bz2 (dated Feb 24 10:42):
- error reading separator after document #11546033: bad JSON array format - found '{' outside JSON object/array in input source
- The latest dump file that I was able to successfully parse was 20210215/wikidata-20210215-all.json.bz2 (dated Feb 17 18:03).
- The same problem occurs with the latest two GZIP (.gz) files as well. Finchsynthos (talk) 04:29, 7 March 2021 (UTC)
- you might get better responses on the xmldatadumps-l mailing list https://lists.wikimedia.org/mailman/listinfo/xmldatadumps-l (technically this isnt an xmldump, but its related) Bawolff (talk) 07:11, 7 March 2021 (UTC)
- @Finchsynthos
- Yes, apparently the last working bz2/gz is the 20210215.
- The issue is reported here https://phabricator.wikimedia.org/T276643 as well. Motagirl2 (talk) 10:33, 7 March 2021 (UTC)
- Thanks for sharing these. 103.120.6.14 (talk) 17:59, 10 March 2021 (UTC)
- it happen again with the lates one, Im parsing and processing the version wikidata-20220103-all.json.gz, got similar error
read_and_import.py", line 54, in skip_objects
- await objects.__anext__()
- ijson.common.IncompleteJSONError: parse error: after array element, I expect ',' or ']'
- :[]}},"lastrevid":1359375592}{"type":"item","id":"Q1666419",
- (right here) ------^ DiegoMExa (talk) 02:54, 14 November 2023 (UTC)
Parsoid/RESTBase server: (curl error: 60) Peer certificate cannot be authenticated with given CA certificates
Hello,
I have the same problem with a self signed certificate that was discussed in another topic here earlier but was never solved.
When i try to edit a page with VisualEdit on any age on the wiki I get the following error:
Error contacting the Parsoid/RESTBase server: (curl error: 60) Peer certificate cannot be authenticated with given CA certificates
I can access mediawiki and edit pages if i return to http configuration.
apache configuration:
/etc/httpd/conf.d/site.com
NameVirtualHost *:443
<VirtualHost *:443>
SSLEngine on
SSLCertificateFile /etc/pki/tls/certs/site_wiki.crt
SSLCertificateKeyFile /etc/pki/tls/private/site_wiki.key
ServerName site.com
ServerAlias site.com
<Directory /var/www/ site.com/www>
AllowOverride All
</Directory>
DocumentRoot /var/www/site.com/www
ErrorLog /var/www/site.com/error.log
CustomLog /var/www/site.com/requests.log combined
</VirtualHost>
LocalSettings.php
$wgForceHTTPS = true;
$wgServer = "//site.com";
$wgInternalServer = "https://site.com";
Installed software
| Product | Version |
|---|---|
| MediaWiki | 1.35.0 |
| PHP | 7.4.16 (fpm-fcgi) |
| MariaDB | 10.3.27-MariaDB |
| ICU | 65.1 |
| Lua | 5.1.5 |
Are there any fixes ?
I am new to mediawiki.
Thank you. SyncmasterN (talk) 21:26, 7 March 2021 (UTC)
- read the documentation for your operating system on how to add a CA to your OS's trust store.
- If using ubuntu. https://superuser.com/questions/437330/how-do-you-add-a-certificate-authority-ca-to-ubuntu
- Or instead of using a selfsigned cert get one from letsencrypt. Its free, after all. Bawolff (talk) 14:06, 8 March 2021 (UTC)
- Hello,
- After many days of search, I have finally figured out what was my problems.
- I have upgraded my wiki version from 1.32.6 to 1.35.1 and VE didn't work.
- I use a private wiki / centos 7 (on vagrant actually, in order to test the upgrade).
- Steps in order to solve my many VE errors (404 or couldn't resolve hostname or certificate issue) :
- - removed previous installation of parsoid
- - removed all lines in LocalSettings related to parsoid and VE (wgVirtualRestConfig, wgDefaultUserOptions, etc...) except "wfLoadExtension( 'VisualEditor' );".
- - add "127.0.0.1 mydomain.com" in /etc/hosts
- - generate selft certificate
- - add my crt file in php.ini (curl.cainfo).
- And now it works perfectly.
- Hope this will help people who were stuck like me.
- Regards, 77.158.228.65 (talk) 15:00, 14 April 2021 (UTC)
- thanks now it works 5.180.207.116 (talk) 13:58, 8 June 2021 (UTC)
Says Username is incorrect
Hello!
I am having trouble getting into my account. I attempted to use my username said it is wrong. I attempted to use my email address as the username & it said it would send me email to reset my password. Which as far as I know it is accepting. I got no email. So, I set up a new account. Now, I need to access all the information from the old account for a large project I am crowd source working on. Also, my edits I made to material did not show up on their end. So, yikes & help please. I can not see my edits on my end. 1.36.0-wmf.33 (2605e79)
19:43, 3 March 2021
That is the version I am using.
Thanks so much for any assistance. I am really stuck. Trecia1 (talk) 22:24, 7 March 2021 (UTC)
Redirect when filename.pdf linked to from outside wiki
Sometimes people link to a pdf (or other file) when I'd prefer them to link to the related wiki page.
Is there any way to detect that the pdf is not being accessed via a wiki page, and redirect to another page. The other page could be the File: page, or some sort of iframe/frame that has some information along the top of the screen and the PDF in the main part of the screen. I'm not 100% sure what I have in mind so please let me know if you'd like me to clarify anything. Thanks. Jonathan3 (talk) 21:09, 8 March 2021 (UTC)
- See https://en.wikipedia.org/wiki/HTTP_referer Malyacko (talk) 22:35, 8 March 2021 (UTC)
- Thanks. I use that in another context but can't think how to achieve the effect described above. Jonathan3 (talk) 09:51, 9 March 2021 (UTC)
username stolen
Hello everyone,
For internet privacy etc. I have always used "Funatiq" as my name on the internet and social media. I wanted to make sure that if someone recognized the name Funatiq thay new it's me, so a made a "sub- / backup- name" Funatiq_ (I would use that if someone already picked Funatiq).
Before I decided to use that as my name I checked almost every social media and even game's and launchers if that name was aviable, and it was!
Now when I try to make an account it says that both names are already in use, which is extremely unlikely, so I tryed to login and it says its not registered yet but also showed me an option to see the info about the account.
The acount has been made on May 15 2020 and is conected to 3 other accounts. The account has not been active since then.
I feel like someone took the user name just to steal it from me, and since it's not being used I would like to take that user name and use it for improving wikipedia.
Can someone help me with this, or tell me how to contact wikipedia?
Kind regards, Funatiq
contact: contact.funatiq@gmail.com 2A02:A44E:368D:1:B0ED:374F:C9E5:3B8E (talk) 08:53, 9 March 2021 (UTC)
- Hi. The software converts underscores in titles (such as user names) to spaces for various reasons, and spaces at the end of titles are stripped, so 'Funatiq' and 'Funatiq_' are treated as the same name. For usurping an existing account name, see meta:Steward requests/Username changes. Thanks. Taavi (talk!) 11:16, 9 March 2021 (UTC)
insert source code in mediawiki
I would need to view the source code inside my mediawiki page and without running the code. how should i enter it? thank you 5.90.108.163 (talk) 09:52, 9 March 2021 (UTC)
Rights in localsetting.php not work
Hello everyone, the right ones in localsetting.php don't work.
I need that only the administrator is allowed to create users. So nobody is allowed to create their own account.
Users created by me are only allowed to read and write e-mail.
I have assigned the following rights in localsettings.php.
Can you help me please.
# Allen Gruppen Benutzererstellung verhintern
$wgGroupPermissions['*']['craeteaccount'] = false;
# normale Benutzer beschränken:
$wgGroupPermissions['User']['upload'] = false;
$wgGroupPermissions['User']['changetags'] = false;
$wgGroupPermissions['User']['writeapi'] = false;
$wgGroupPermissions['User']['editcontentmodel'] = false;
$wgGroupPermissions['User']['movefile'] = false;
$wgGroupPermissions['User']['createtalk'] = false;
$wgGroupPermissions['User']['sendemail'] = true;
$wgGroupPermissions['User']['editmyusercss'] = false;
$wgGroupPermissions['User']['editmyuserjson'] = false;
$wgGroupPermissions['User']['editmyuserjsredirect'] = false;
$wgGroupPermissions['User']['move-rootuserpages'] = false;
$wgGroupPermissions['User']['edit'] = false;
$wgGroupPermissions['User']['move-categorypages'] = false;
$wgGroupPermissions['User']['reupload-shared'] = false;
$wgGroupPermissions['User']['createpage'] = false;
$wgGroupPermissions['User']['move-subpages'] = false;
$wgGroupPermissions['User']['read'] = true;
$wgGroupPermissions['User']['move'] = false;
$wgGroupPermissions['User']['purge'] = false;
$wgGroupPermissions['User']['reupload'] = false;
$wgGroupPermissions['User']['createaccount'] = false;
$wgGroupPermissions['User']['viewmywatchlist'] = true;
$wgGroupPermissions['User']['editmywatchlist'] = false;
$wgGroupPermissions['User']['editmyoptions'] = true;
$wgGroupPermissions['User']['viewmyprivateinfo'] = true;
$wgGroupPermissions['User']['editmyprivateinfo'] = false;
# auto. bestätigten ("autoconfirmed") Benutzern komplett hindern
$wgGroupPermissions['autoconfirmed']['upload'] = false;
$wgGroupPermissions['autoconfirmed']['upload'] = false;
$wgGroupPermissions['autoconfirmed']['changetags'] = false;
$wgGroupPermissions['autoconfirmed']['writeapi'] = false;
$wgGroupPermissions['autoconfirmed']['editcontentmodel'] = false;
$wgGroupPermissions['autoconfirmed']['movefile'] = false;
$wgGroupPermissions['autoconfirmed']['createtalk'] = false;
$wgGroupPermissions['autoconfirmed']['sendemail'] = false;
$wgGroupPermissions['autoconfirmed']['editmyusercss'] = false;
$wgGroupPermissions['autoconfirmed']['editmyuserjson'] = false;
$wgGroupPermissions['autoconfirmed']['editmyuserjsredirect'] = false;
$wgGroupPermissions['autoconfirmed']['move-rootuserpages'] = false;
$wgGroupPermissions['autoconfirmed']['edit'] = false;
$wgGroupPermissions['autoconfirmed']['move-categorypages'] = false;
$wgGroupPermissions['autoconfirmed']['reupload-shared'] = false;
$wgGroupPermissions['autoconfirmed']['createpage'] = false;
$wgGroupPermissions['autoconfirmed']['move-subpages'] = false;
$wgGroupPermissions['autoconfirmed']['read'] = false;
$wgGroupPermissions['autoconfirmed']['move'] = false;
$wgGroupPermissions['autoconfirmedUser']['purge'] = false;
$wgGroupPermissions['autoconfirmed']['reupload'] = false;
$wgGroupPermissions['autoconfirmed']['createaccount'] = false;
$wgGroupPermissions['autoconfirmedUser']['viewmywatchlist'] = false;
$wgGroupPermissions['autoconfirmed']['editmywatchlist'] = false;
$wgGroupPermissions['autoconfirmed']['editmyoptions'] = false;
$wgGroupPermissions['autoconfirmed']['viewmyprivateinfo'] = false;
$wgGroupPermissions['autoconfirmed']['editmyprivateinfo'] = false; TwFEMHDZr5 (talk) 12:17, 9 March 2021 (UTC)
- The tools (special pages) can also be used by those who are not registered. TwFEMHDZr5 (talk) 12:34, 9 March 2021 (UTC)
Template for articles
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello everyone,
Is it possible to have something like a template when I create a new article ? I would to modify this template after.
So if someone in my company want to write an article he can create it and just follow the template by clicking on nothing when he create a page.
Thanks for your help ! MorenoPierre (talk) 15:52, 9 March 2021 (UTC)
- does preload help? People especially like to combine it with extension:inputbox Bawolff (talk) 17:05, 9 March 2021 (UTC)
- Thanks a lot !
- It works well, that's exactly what I need ! MorenoPierre (talk) 13:56, 10 March 2021 (UTC)
Editing Text Below Summary.
How would I edit the text located below the Summary line and above the Save Page button? 2601:248:C201:BF50:D8E2:A0E5:1350:FF1C (talk) 21:48, 9 March 2021 (UTC)
- Is it MediaWiki:Editpage-head-copy-warn? Jonathan3 (talk) 23:10, 9 March 2021 (UTC)
- No sir, it is the blurb which says:
- Please note that all contributions to this site may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
- You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Copyrights for details). Do not submit copyrighted work without permission!
- I am using the Timeless skin. I didn't know if there was a hook for this or if this is hard coded. 2601:248:C201:BF50:D8E2:A0E5:1350:FF1C (talk) 23:25, 9 March 2021 (UTC)
- Maybe MediaWiki:Copyrightwarning or MediaWiki:Copyrightwarning2. Jonathan3 (talk) 23:35, 9 March 2021 (UTC)
- You rock! That's it. Thank you so much for your help. 2601:248:C201:BF50:AD9F:ED4D:DA50:B322 (talk) 10:25, 10 March 2021 (UTC)
- Add the parameter "uselang=qqx" to your URL to find out. Malyacko (talk) 07:47, 10 March 2021 (UTC)
What hook should I use instead of ParserBeforeStrip?
Manual:Hooks/ParserBeforeStrip says it'll be removed in 1.36.
I'm using it to add a {{DISPLAYTITLE}}, as in Project:Support desk/Flow/2021/03#h-Special_characters_in_Title-2021-03-02T14:46:00.000Z.
What do you recommend to use instead? Thanks. Jonathan3 (talk) 23:38, 9 March 2021 (UTC)
- im not sure which hook, but you should probably call the $parser->getOutput()->setDisplayTitle() instead (or whatever its called) and not modify the article text. Bawolff (talk) 02:41, 10 March 2021 (UTC)
- I'll look into that. I suppose then it doesn't matter so much which hook gets used. Thank you yet again! Jonathan3 (talk) 10:33, 10 March 2021 (UTC)
Opensearch api does not have method profile
My environment:
| MediaWiki | 1.35.0 (62a1500) |
| Elastica | 6.1.1 (3e3b76f) |
| CirrusSearch | 6.5.4 (f835850) |
When I get /api.php?action=help&modules=opensearch I see no Parameter profile.
Do I miss a configuration? Baplue Eric (talk) 13:04, 10 March 2021 (UTC)
- I have the same problem with Mediawiki 1.36 - Have you found a solution? Josua Koenig (talk) 09:21, 24 January 2022 (UTC)
"Need to Login" page looks fine, but login page is just nonsense characters at Special:UserLogin
Here is an example of what I see: "������ks�6�{~�¹�$�)Yv����u�H��U۹����@$(!& �%+m�����e���E���u;w3�M��������������/'�d��x�� �"AL��{A�Y��T|���i:�{,�H�����CpFC��0EI0��d��}8��7�.�+" and on every refresh the order of characters change. 73.96.82.222 (talk) 21:22, 10 March 2021 (UTC)
- See Project:Support desk/Flow/2020/12#h-Index.php_displayed_with_wrong_characters-2020-12-25T14:40:00.000Z, Project:Support desk/Flow/2021/01#h-Install_Problem_-_binary_in_php_code_(question_marks)-2021-01-01T09:48:00.000Z, Manual:$wgDisableOutputCompression, etc Malyacko (talk) 08:15, 11 March 2021 (UTC)
iframe works in Firefox, not Chrome
Hello all!
I have a wiki (Mediawiki v1.35.1) that works when unframed – that is, when not embedded as an iframe.
When iframed, the wiki login form:
…works with:
- Firefox, 85.0 Linux
- Firefox, 86.0 Windows
…and does NOT work with:
- Chrome, 89.0 Windows
“Not working” means authentication is blocked and this error is displayed:
There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Please resubmit the form."
I suspect clickjacking defenses are involved.
My Apache (v2.4.6) headers:
Header set Access-Control-Allow-Origin "*"
Header set Content-Security-Policy "frame-ancestors 'self' *.shotgunstudio.com"
Header unset X-Frame-Options
shotgunstudio.com is the embedding domain. Both my wiki and shotgunstudio have valid SSL.
My wiki LocalSettings.php settings:
$wgEditPageFrameOptions = false;
$wgApiFrameOptions =false;
$wgCookiePrefix = "wiki";
$wgBreakFrames = false;
I am especially puzzled by the difference between Firefox and Chrome.
Any ideas on how to fix this?
Sincerely,
Wellington Winterbeef (talk) 22:50, 10 March 2021 (UTC)
- Seems more likely to be due to different default values for the SameSite flag for cookies between firefox and chrome. Especially if chrome works the second time around Bawolff (talk) 03:12, 11 March 2021 (UTC)
- @Bawolff YES! That was it! Thanks so much.
- Manual:$wgCookieSameSite Winterbeef (talk) 17:07, 11 March 2021 (UTC)
Capitalize Privacy Policy
Pardon my OCD, but how do I capitalize the 'P' in policy in the footer where the link says Privacy policy. Every other link capitalizes each major word, except for this link. Petty, but it drives me nuts! 2601:248:C201:BF50:B06A:28EC:51A1:A240 (talk) 00:59, 11 March 2021 (UTC)
- create a page named MediaWiki:privacy . Whatever its content will be used as the text for the privacy policy link. Bawolff (talk) 05:27, 11 March 2021 (UTC)
- Thank you! 2601:248:C201:BF50:B06A:28EC:51A1:A240 (talk) 11:10, 11 March 2021 (UTC)
How to connect a backend CMS-agnostic contact form to MediaWiki?
I have an all-core MediaWiki 1.35 website (no addons installed) and I don't want to use the Special:EmailUser nor do I want to install any (MediaWiki) CMS-gnostic module such as Extension:ContactPage or any other but I still need a backend contact form solution.
To prevent an "XY problem" I could just as well stop here and ask "how would you solve that problem", but that case is a bit more complicated because let's say I have some nice backend CMS-agnostic form built with PHP or Node.JS or whatever and I want to to put it on the same infrastructure of MediaWiki (so it won't be a cloud form but a local form) and I want to refer users to it from the site's main navigation menu after which a user will be redirected to that form and after submission the user would be redirected back to the previous page.
How do I even start to implement such a thing? Please share some opinions or hints about what to with that and how to start. 2001:44C8:4559:7759:6DE2:ADEC:235D:C9A5 (talk) 07:14, 11 March 2021 (UTC)
- you want to link to a non-mediawiki endpoint on the same server from the sidebar? See manual:sidebar Bawolff (talk) 07:47, 11 March 2021 (UTC)
- A "contact us" link should indeed appear in the sidebar but I am not sure where to link it to.
- I don't want to create an HTML contact form either as a mediawiki endpoint or as a
.htmlfile non-mediawiki endpoint because it will probably save data to my own database which I avoid to prevent SQL injections or it would have to include my email address in the HTML source output because then spambots could easily "attack" my email address. - This is why I feel lost and don't know what approach to take and looking for some hints. 2001:44C8:4559:7759:6DE2:ADEC:235D:C9A5 (talk) 08:30, 11 March 2021 (UTC)
- because then spambots = and then spambots* 2001:44C8:4559:7759:6DE2:ADEC:235D:C9A5 (talk) 08:31, 11 March 2021 (UTC)
- Just search the internet for "php contact form". Once you've written the form, you can just link to it from the sidebar. It wouldn't have to save data to a database or expose your email address. Jonathan3 (talk) 11:37, 12 March 2021 (UTC)
- Okay, I understand now,
- Creating a new directory inside my MediaWiki web application root
- Naming the new directory as, say, "cms-agnostic-contact-form" (or just an abbreviation such as "cacf")
- In the new directory, creating an HTML file for the form structure, a JavaScript file for the form frontend behavior, a CSS file for the form styles and some backend (most probably PHP) file for the form backend behavior and get all up and running from an infrastructure stanpoint and alike.
- Linking to the HTML file from my main menu
- I am working on it, thanks a bunch ! 2001:44C8:4559:7759:843F:4EAB:11BF:9DAD (talk) 10:35, 15 March 2021 (UTC)
How to prohibit an article to be showed in a category?
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 want to give an article a category.
But I don't want to see this article being listed in this category.
How can I prohibit it? 89.204.154.116 (talk) 08:44, 11 March 2021 (UTC)
- Why would you want an article to be in a category (whatever that means) but the article shouldn't be in the category (when looking at the category)? What is the underlying problem to solve? Malyacko (talk) 14:01, 11 March 2021 (UTC)
- The complexity of the category hierarchy is too high. I'm trying out things.. 89.204.153.238 (talk) 15:28, 11 March 2021 (UTC)
89.204.154.53 (talk) 08:39, 14 March 2021 (UTC)
- For instance I have the article "Jesus Christ". I put it in the "category:men in bible".
- But when I'm in this category, I want to see "son of god", instead "Jesus Christ".
- I can try to solve it, when I put the label "category:men in bible" not in the article "Jesus Christ" itself, but create the article "Son of god", label it with the category and put a redirection to "Jesus Christ".
- The problem then is that I can not navigate from the article "Jesus Christ" to the "category:men in bible". Servant of Lord Jesus (talk) 15:33, 24 March 2021 (UTC)
- Could please anyone help? Servant of Lord Jesus (talk) 13:41, 17 April 2021 (UTC)
- What you're asking to do is not currently possible. Sorry Ciencia Al Poder (talk) 14:06, 18 April 2021 (UTC)
- Thanks. Closed. Servant of Lord Jesus (talk) 09:03, 10 May 2021 (UTC)
Using VisualEditor inserts metadata into page.
I have search everywhere I can thing on here and in Google and can not find a solution to this problem.
I installed mediawiki on 1.35 on Windows 2019 server and everything operates fine except for editing a page using the visualeditor.
MediaWiki 1.35.1
PHP 7.4.16RC1 (cgi-fcgi)
MySQL 8.0.23
ICU 66.1
Lua 5.1.4
Editing a page with VisualEditor, before saving:
(puzzle piece icon)Sorry this element can only..
THis is a test.
After saving page:
↵Sorry, this element can only be edited in source mode for now.
↵<meta charset="utf-8" />↵<meta property="mw:pageId" content="14" />↵<meta property="mw:pageNamespace" content="0" />
<meta property="mw:revisionSHA1" content="67f549a6febea9781276f6f5f70abce84780dfc3" />↵<meta property="dc:modified" content="2021-03-11T14:33:10.000Z" />↵<meta property="mw:html:version" content="2.1.0" />↵<title>Test Page</title><base href="http://wiki.mysite<nowiki/>.org/" />[/load.php?modules=mediawiki.skinning.content.parsoid%7Cmediawiki.skinning.interface%7Csite.styles%7Cmediawiki.page.gallery.styles%7Cext.cite.style%7Cext.cite.styles&only=styles&skin=vector]↵<meta http-equiv="content-language" content="en" />↵<meta http-equiv="vary" content="Accept" />
THis is a test.
How can I fix this? Bditter (talk) 14:38, 11 March 2021 (UTC)
- I had the exact same problem. Maybe this will help someone stumbling on this page. My LocalSettings.php which I copied from an old setup had UTF-8 encoding with BOM. After removing the BOM the issue was gone for me.
- So you could check with Notepad++ for the encoding of your LocalSettings.php. If it shows UTF-8 BOM, you might have the same problem. In this case convert it to UTF-8 wihtout BOM. 91.249.177.34 (talk) 15:20, 22 September 2021 (UTC)
- This looks like a configuration error. Maybe your redirect rules are intercepting the request to Parsoid, or there's something pointing to a wrong URL Ciencia Al Poder (talk) 20:40, 22 September 2021 (UTC)
wikipedia.org
Hi! I would like to make a similar website as "wikipedia.org" i.e. it has all the language versions of Wikipedia and a search bar. I can't find the source code for this website anywhere (even on GitHub) so I thought I'd ask here where could I get the source code for the website? And Google’s source code tool doesn’t help because it doesn’t provide more specific (PHP codes) for security reasons. I would think such files are publicly visible on Wikimedia because you have open source.
Thank you for the answers in advance and thank you for the effort you have seen! 193.185.246.137 (talk) 15:14, 11 March 2021 (UTC)
- If you're looking to have a website that uses the same backend/interface as Wikipedia, all you need to do is download MediaWiki (whose source code is publicly available) and the associated extensions that Wikipedia uses. Some of your ideas (such as languages) will need some work.
- Edit: I misread your comment, see Pppery's reply below (thanks). Leaderboard (talk) 18:52, 11 March 2021 (UTC)
- The toplevel website https://wikipedia.org is not actually served by MediaWiki. Instead, its PHP source code is at https://github.com/wikimedia/portals * Pppery * it has begun 20:07, 11 March 2021 (UTC)
Confused About ShortURLs
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've read all the documentation on ShortURLs and am unable to make it work. That being said, I read a lot about /wiki and /w. My installation is in the root directory, not a subdirectory. Will short URLs not work in the root directory? If it is possible, can some one give me an example of the .htaccess statements to make it work in a root directory. I've played around with them and failed miserably. LeeMChildress (talk) 15:42, 11 March 2021 (UTC)
- I got/modified what I'm currently using from Manual:Short_URL/Apache. I think the relevant parts are:
- Jonathan3 (talk) 22:44, 11 March 2021 (UTC)
RewriteEngine on RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d RewriteRule ^(.*)$ %{DOCUMENT_ROOT}/index.php [L] - Thanks. Will give it a shot! LeeMChildress (talk) 22:50, 11 March 2021 (UTC)
- That did it!!! Thank you from the bottom of my heart! LeeMChildress (talk) 22:56, 11 March 2021 (UTC)
Gallery type=Slideshow show only a thumbnail for images, not movies
I migrated from Mediawiki 1.31 to 1.35 and now when I walk through the gallery I see only for my pictures a thumbnail as a caption and not for my movies.
When I enable <gallery mode="slideshow" heights="300" widths="200" showthumbnails> I see all my thumbnails Baplue Eric (talk) 16:41, 11 March 2021 (UTC)
Job Queue won't clear, runJobs halts on errors MW1.31
I've inherited a MW 1.31 install on a Win2016 WAMP server.
I haven't worked on a MW server in several years, so I'm not sure if this might be a known issue that was already corrected. showJobs reports over 5000 jobs outstanding, some from 2016. If I try runJobs, the number of jobs will vary, but never go down significantly.
I've tried running runJobs several times and 3 times out of 4, it will return with the following error (or some variation):
2021-03-11 20:38:22 cirrusSearchElasticaWrite Calculating_the_populations_of_a_set_of_zones method=sendData arguments=["content","array(...)"] serialized=1 cluster=default doNotRetry= createdAt=1615490556 errorCount=1 retryCount=0 requestId=8932043d3eeb05ca7f00dc4e (id=11975,timestamp=20210311192238) t=6 error=ElasticaWrite job reported 1 failure(s) and 0 frozen.
Notice: unserialize(): Error at offset 38645 of 65535 bytes in C:\wamp64\www\Waterpedia\includes\jobqueue\JobQueueDB.php on line 817
[8932043d3eeb05ca7f00dc4e] [no req] Error from line 75 of C:\wamp64\www\Waterpedia\extensions\CirrusSearch\includes\Job\ElasticaWrite.php: Unsupported operand types
Backtrace:
#0 C:\wamp64\www\Waterpedia\includes\jobqueue\Job.php(83): CirrusSearch\Job\ElasticaWrite->__construct(Title, boolean)
#1 C:\wamp64\www\Waterpedia\includes\jobqueue\JobQueueDB.php(303): Job::factory(string, Title, boolean, string)
#2 C:\wamp64\www\Waterpedia\includes\jobqueue\JobQueue.php(372): JobQueueDB->doPop()
#3 C:\wamp64\www\Waterpedia\includes\jobqueue\JobQueueGroup.php(263): JobQueue->pop()
#4 C:\wamp64\www\Waterpedia\includes\jobqueue\JobRunner.php(167): JobQueueGroup->pop(integer, integer, array)
#5 C:\wamp64\www\Waterpedia\maintenance\runJobs.php(89): JobRunner->run(array)
#6 C:\wamp64\www\Waterpedia\maintenance\doMaintenance.php(94): RunJobs->execute()
#7 C:\wamp64\www\Waterpedia\maintenance\runJobs.php(122): require_once(string)
#8 {main}
Any ideas? Dmagbelusi (talk) 20:52, 11 March 2021 (UTC)
- This won't be the official answer, but I'd just delete everything in the jobs table, update MediaWiki, extensions etc, and hope for the best after that. On second thoughts, maybe just delete the rows that are of the type that cause that error and try runJobs.php again first... Jonathan3 (talk) 22:38, 11 March 2021 (UTC)
- Check what your commandline version of php is (often this is different than the web version). If its super old update it. If its php8, make sure your copy of cirrus is new enough because php 8 had some minor back compat breaks. Bawolff (talk) 01:26, 12 March 2021 (UTC)
Installed a wiki on my site a year ago and now it full of 22GB of spam! How to clear the spam?!
Is there a CLI or something similar for the wiki that will allow me to completely clear out spam users, pages, and revisions?
My problem is that this spam is so huge it is crushing my server and my whole virtual machine is crippled. I cannot get to the web interface at this point.
I need to completely delete the bad stuff - no need, want, or interest in keeping backups of it.
Besides careful SQL-fu is there a better way?
Here are some of the bogus page titles just for the laffs:
Increasing_Website_Traffic_-_Exactly_What_Does_It_Really_Mean
Successful_Pos_Displays_To_Attract_Purchasers
Luxurious_Family_Pet_Item_That_Are_Worth_Cost_As_Well_As_Are_Unworthy_The_Cost
When_Should_You_Demand_An_Unexpected_Emergency_Locksmith_Professional_Companies
When_Should_You_Need_An_Urgent_Locksmith_Professional_Providers
Exactly_How_To_Pick_The_Very_Best_Pet_Dog_Product_Suppliers_Online
Locksmith_Professional_Company_-_Sorts_Of_Services
Locksmith_Firm_-_Kinds_Of_Solutions
Just_How_To_Raise_Financing_For_Your_Residential_Property_Financial_Investment
Just_How_To_Elevate_Money_For_Your_Property_Expenditure
Just_What_Qualities_Should_You_Look_Out_For_In_A_Locksmith_Professional
Just_What_Qualities_Should_You_Look_Out_For_In_A_Locksmith
Find_Aid_Coming_From_A_Trustworthy_Locksmith_Professional_Provider
Find_Help_From_A_Trustworthy_Locksmith_Firm
Overwatch:_Five_Most_Convenient_Roles
Exactly_How_To_Choose_The_Best_Computer_Game_System
Online_Games_-_The_Greatest_Leisure_Activity
Just_How_To_Choose_The_Very_Best_Computer_Game_System
LOL_Tactic:_The_Reason_Why_As_Well_As_Just_How_To_Start_Tough_Game Benvancitters (talk) 06:47, 12 March 2021 (UTC)
Custom bulletpoints
Hello,
I would like to create an unnumbered list with custom bulletpoints. For what i have found, you need to modify MediaWiki:common.css to achive that. Also you need to create a template. So i have uploaded an image "custom-bullet.png", if have created a template "custom-list", and i have modified common.css. I have cleared my cache:
Mediawiki:common.css
/* Custom list-style */
.custom-list li {
list-style-image: url('custom-bullet.png');
}
Template
Template:custom-list <div class="custom-list"> {{{1}}} </div>
Page
Wiki page {{custom-list|1=
- Foo
- Bar
- Baz
}}
However still the original bullet-points appear on my pages. So i think i'm stuck.
Is there any way to achieve this? Eppw1970 (talk) 08:11, 12 March 2021 (UTC)
- you need to use the full url of the image, not just the file name. If you put the url in your web browser it should go directly to the image not the file description page.
- if it still doesnt work, you can also try adding !important between the ) and the ;
- If it still doesnt work please link to your wiki. The web developer console in your browser can also help you debug this by showing active styles for the dom node. Bawolff (talk) 11:33, 12 March 2021 (UTC)
How to ignore a template parameter value containing }}?
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.
{{TemplateName
|pageviewservice-supported-metrics={u'siteviews': {u'uniques': u'', u'pageviews': u''}, u'mostviewed': {u'pageviews': u''}, u'pageviews': {u'pageviews': u''}}
}}
In this example all parameter following this one drop dead. I am probably having senior moments and do not see the solution. [[kgh]] (talk) 08:53, 12 March 2021 (UTC)
- nowiki tag? Html entity?
- This looks like some sort of data structure thats not whitespace sensitive, so making the last line be {u'pageviews': u''} } with a space separating the } would probably work too. Bawolff (talk) 11:27, 12 March 2021 (UTC)
- @Bawolff: The value is fetched and set via an API call. This if fully automated.
- The question here is if there is a solution once the value like this was already added.
- HTML entity does not work without changing the value in retrospect. The nowiki tag does not help either since the trailing }} are still regarded as closing the template even if you add it.
- Thus it appears that there is no solution once the value is added like this, meaning the issue needs to be resolved prior to adding it or we need to change the values in retrospect?!
- We are talking about Wikiapiary.com where this new item derailed data display for all WMF wikis. [[kgh]] (talk) 16:09, 12 March 2021 (UTC)
- }} is going to close the template. Whatever bot is making it is going to have to escape that somehow. Bawolff (talk) 02:28, 13 March 2021 (UTC)
- Thanks a lot for confirming. Wanted to make sure that I did not overlook something her. [[kgh]] (talk) 15:28, 13 March 2021 (UTC)
Delete a user ?
Hello,
A contributor, on my wiki, has lost his password. But he has no mail link with his account ? Is it possible to delete his account to create a new account with same username ? Or maybe how can he recovers his account ?
Thanks for your answer. MorenoPierre (talk) 13:35, 12 March 2021 (UTC)
- manual:resetting passwords Bawolff (talk) 19:23, 12 March 2021 (UTC)
- Could the user be removed from the database for example? 193.185.246.137 (talk) 19:32, 12 March 2021 (UTC)
- it's easier to do what Bawolff supplied the link to do... change the password for the user using the changePassword.php maintenance script. Provide it to them and then get them to immediately change it. TiltedCerebellum (talk) 06:08, 19 March 2021 (UTC)
Composer, Jeroen Github and a white page. PHP Fatal error.
I totally screwed my Wikimedia installation. Very shortly, I tried to install Jeroen Github extension using composer. However, my host do not provide composer, so I tried to install it. After installing (or trying to install) Jeroen GitHub package a few times, I noticed that my Wikimedia is totally broken. I cannot access it at all, all I get i blank white screen. The error log at https states:
[fcgid:warn] [pid 30624:tid 3970287412992] [client 194.150.65.105:37832] mod_fcgid: stderr: PHP Fatal error: Uncaught Error: Class 'Wikimedia\\AtEase\\AtEase' not found in /home/maol/cod3v.info/includes/registration/ExtensionRegistry.php:130
[fcgid:warn] [pid 25045:tid 3970362947328] [client 146.255.181.204:29387] mod_fcgid: stderr:
Stack trace:
[fcgid:warn] [pid 25045:tid 3970362947328] [client 146.255.181.204:29387] mod_fcgid: stderr: #0 includes/GlobalFunctions.php(89): ExtensionRegistry->queue('...')
[fcgid:warn] [pid 25045:tid 3970362947328] [client 146.255.181.204:29387] mod_fcgid: stderr: #1 LocalSettings.php(127): wfLoadSkin('MonoBook')
[fcgid:warn] [pid 25045:tid 3970362947328] [client 146.255.181.204:29387] mod_fcgid: stderr: #2 includes/Setup.php(124): require_once('...')
[fcgid:warn] [pid 25045:tid 3970362947328] [client 146.255.181.204:29387] mod_fcgid: stderr: #3 includes/WebStart.php(81): require_once('...')
[fcgid:warn] [pid 25045:tid 3970362947328] [client 146.255.181.204:29387] mod_fcgid: stderr: #4 index.php(41): require('...')
[fcgid:warn] [pid 25045:tid 3970362947328] [client 146.255.181.204:29387] mod_fcgid: stderr: #5 > {main}
[fcgid:warn] [pid 25045:tid 3970362947328] [client 146.255.181.204:29387] mod_fcgid: stderr: thrown in includes/registration/ExtensionRegistry.php on line 130
Is there something (simple) I can do?
Thank you for any help, or ideas.
Below is a copy of my history:
I installed Github extension https://www.mediawiki.org/wiki/Extension:GitHub using composer help for Dreamhost (https://help.dreamhost.com/hc/en-us/articles/214899037-Installing-Composer-overview). The steps were following:
$ php -m | grep Phar
> Cannot load Zend OPcache - it was already loaded
> Phar
> ~/cod3v.info$ curl -sS https://getcomposer.org/installer | php
> Cannot load Zend OPcache - it was already loaded
> All settings correct for using Composer
> Downloading...
>
> Composer (version 2.0.11) successfully installed to:
> /home/maol/cod3v.info/composer.phar
> Use it: php composer.phar
After installing (perhaps succesfully?) composer, I tried to install Jeroen Github Extension:
---- bash history with outputs: ----
> ~$ php composer.phar update jeroen/mediawiki-github
> --no-dev -o
> Cannot load Zend OPcache - it was already loaded
> Composer could not find a composer.json file in /home/maol/cod3v.info
> To initialize a project, please create a composer.json file as
> described in the https://getcomposer.org/ "Getting Started" section
> ~$ COMPOSER=composer.local.json php composer.phar require
> --no-update jeroen/mediawiki-github "~1.4"
> Cannot load Zend OPcache - it was already loaded
> The "wikimedia/composer-merge-plugin" plugin was skipped because it
> requires a Plugin API version ("^1.0") that does not match your
> Composer installation ("2.0.0"). You may need to run composer update
> with the "--no-plugins" option.
> composer.local.json has been created
> ~$ php composer.phar update jeroen/mediawiki-github --no-dev -o
> Cannot load Zend OPcache - it was already loaded
> Composer could not find a composer.json file in /home/maol/cod3v.info
> To initialize a project, please create a composer.json file as
> described in the https://getcomposer.org/ "Getting Started" section
> ~$ mv composer.local.json composer.json
> ~$ php composer.phar update jeroen/mediawiki-github
> --no-dev -o
> Cannot load Zend OPcache - it was already loaded
> The "wikimedia/composer-merge-plugin" plugin was skipped because it
> requires a Plugin API version ("^1.0") that does not match your
> Composer installation ("2.0.0"). You may need to run composer update
> with the "--no-plugins" option.
> Cannot update only a partial set of packages without a lock file
> present. Run `composer update` to generate a lock
Cannot load Zend OPcache - it was already loaded
The "wikimedia/composer-merge-plugin" plugin was skipped because it
requires a Plugin API version ("^1.0") that does not match your
Composer installation ("2.0.0"). You may need to run composer update
with the "--no-plugins" option.
Loading composer repositories with package information
Updating dependencies
Lock file operations: 14 installs, 0 updates, 0 removals
- Locking data-values/common (0.4.3)
- Locking data-values/data-values (2.3.0)
- Locking data-values/interfaces (0.2.5)
- Locking data-values/validators (0.1.3)
- Locking ezyang/htmlpurifier (v4.13.0)
- Locking jeroen/file-fetcher (6.0.0)
- Locking jeroen/file-fetcher-cache (1.0.1)
- Locking jeroen/mediawiki-github (1.6.0)
- Locking jeroen/simple-cache (2.0.0)
- Locking mediawiki/parser-hooks (1.6.1)
- Locking michelf/php-markdown (1.9.0)
- Locking param-processor/param-processor (1.10.0)
- Locking psr/log (1.1.3)
- Locking psr/simple-cache (1.0.1)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 13 installs, 1 update, 45 removals
- Downloading michelf/php-markdown (1.9.0)
- Downloading data-values/interfaces (0.2.5)
- Downloading data-values/data-values (2.3.0)
- Downloading data-values/validators (0.1.3)
- Downloading data-values/common (0.4.3)
- Downloading param-processor/param-processor (1.10.0)
- Downloading mediawiki/parser-hooks (1.6.1)
- Downloading jeroen/simple-cache (2.0.0)
- Downloading psr/simple-cache (1.0.1)
- Downloading psr/log (1.1.3)
- Downloading jeroen/file-fetcher (6.0.0)
- Downloading jeroen/file-fetcher-cache (1.0.1)
- Downloading ezyang/htmlpurifier (v4.13.0)
- Downloading jeroen/mediawiki-github (1.6.0)
- Removing zordius/lightncandy (v0.23)
- Removing wikimedia/xmp-reader (0.6.3)
- Removing wikimedia/wrappedstring (v3.0.1)
- Removing wikimedia/wait-condition-loop (v1.0.1)
- Removing wikimedia/utfnormal (v2.0.0)
- Removing wikimedia/timestamp (v3.0.0)
- Removing wikimedia/scoped-callback (v3.0.0)
- Removing wikimedia/running-stat (v1.2.1)
- Removing wikimedia/remex-html (2.1.0)
- Removing wikimedia/relpath (2.1.1)
- Removing wikimedia/purtle (v1.0.7)
- Removing wikimedia/php-session-serializer (v1.0.7)
- Removing wikimedia/password-blacklist (v0.1.4)
- Removing wikimedia/object-factory (v2.1.0)
- Removing wikimedia/less.php (v1.8.0)
- Removing wikimedia/ip-utils (1.0.0)
- Removing wikimedia/ip-set (2.1.0)
- Removing wikimedia/html-formatter (1.0.2)
- Removing wikimedia/composer-merge-plugin (v1.4.1)
- Removing wikimedia/cldr-plural-rule-parser (v1.0.0)
- Removing wikimedia/cdb (1.4.1)
- Removing wikimedia/base-convert (v2.0.0)
- Removing wikimedia/avro (v1.9.0)
- Removing wikimedia/at-ease (v2.0.0)
- Removing wikimedia/assert (v0.2.2)
- Removing ralouphie/getallheaders (2.0.5)
- Removing psr/http-message (1.0.1)
- Removing psr/container (1.0.0)
- Removing pleonasm/bloom-filter (1.0.2)
- Removing pear/pear_exception (v1.0.0)
- Removing pear/pear-core-minimal (v1.10.9)
- Removing pear/net_socket (v1.2.2)
- Removing pear/net_smtp (1.8.1)
- Removing pear/mail_mime (1.10.2)
- Removing pear/mail (v1.4.1)
- Removing pear/console_getopt (v1.4.2)
- Removing oojs/oojs-ui (v0.34.1)
- Removing liuggio/statsd-php-client (v1.0.18)
- Removing jakobo/hotp-php (v1.0.1)
- Removing guzzlehttp/psr7 (1.5.2)
- Removing guzzlehttp/promises (v1.3.1)
- Removing guzzlehttp/guzzle (6.3.3)
- Removing cssjanus/cssjanus (v1.3.0)
- Removing composer/semver (1.5.0)
- Removing christian-riesen/base32 (1.3.2)
- Installing michelf/php-markdown (1.9.0): Extracting archive
- Installing data-values/interfaces (0.2.5): Extracting archive
- Installing data-values/data-values (2.3.0): Extracting archive
- Installing data-values/validators (0.1.3): Extracting archive
- Installing data-values/common (0.4.3): Extracting archive
- Installing param-processor/param-processor (1.10.0): Extracting
archive
- Installing mediawiki/parser-hooks (1.6.1): Extracting archive
- Installing jeroen/simple-cache (2.0.0): Extracting archive
- Installing psr/simple-cache (1.0.1): Extracting archive
- Upgrading psr/log (1.0.2 => 1.1.3): Extracting archive
- Installing jeroen/file-fetcher (6.0.0): Extracting archive
- Installing jeroen/file-fetcher-cache (1.0.1): Extracting archive
- Installing ezyang/htmlpurifier (v4.13.0): Extracting archive
- Installing jeroen/mediawiki-github (1.6.0): Extracting archive
2 package suggestions were added by new dependencies, use `composer
suggest` to see details.
Generating autoload files
1 package you are using is looking for funding.
Use the `composer fund` command to find out more!
~$ php composer.phar suggest
> Cannot load Zend OPcache - it was already loaded
> 2 additional suggestions by transitive dependencies can be shown with --all
~$ php composer.phar suggest --all
> Cannot load Zend OPcache - it was already loaded
> jeroen/file-fetcher suggests:
> - jeroen/file-fetcher-cache : Provides a SimpleCache (PSR-16)
> decorator for file fetchers
> - jeroen/file-fetcher-stopwatch: Provides a Symfony Stopwatch
> decorator for file fetchers
~$ php composer.phar update jeroen/mediawiki-github --no-dev -o
> Cannot load Zend OPcache - it was already loaded
> Loading composer repositories with package information
> Updating dependencies
> Nothing to modify in lock file
> Installing dependencies from lock file
> Nothing to install, update or remove
> Generating optimized autoload files
> 1 package you are using is looking for funding.
> Use the `composer fund` command to find out more!
~$ php composer.phar fund
> Cannot load Zend OPcache - it was already loaded
> Thcde following packages were found in your dependencies which
> publish funding information:
>
> data-values
> data-values
> https://github.com/sponsors/JeroenDeDauw
>
> jeroen
> file-fetcher, file-fetcher-cache, mediawiki-github, simple-cache
> https://github.com/sponsors/JeroenDeDauw
> file-fetcher-cache
> https://www.patreon.com/jeroendedauw
>
> mediawiki
> parser-hooks
> https://github.com/sponsors/JeroenDeDauw
>
> param-processor
> param-processor
> https://github.com/sponsors/JeroenDeDauw
>
> Please consider following these links and sponsoring the work of
> package authors!
> Thank you!
>
> ----- bash history ends -----
Thus, it should be there, However, the my site is broken, and the error log @https states following:
[fcgid:warn] [pid 30624:tid 3970287412992] [client 194.150.65.105:37832] mod_fcgid: stderr: PHP Fatal error: Uncaught Error: Class 'Wikimedia\\AtEase\\AtEase' not found in /home/maol/cod3v.info/includes/registration/ExtensionRegistry.php:130
[Sun Mar 07 08:21:37.715438 2021] [fcgid:warn] [pid 25045:tid 3970362947328] [client 146.255.181.204:29387] mod_fcgid: stderr:
Stack trace:
[Sun Mar 07 08:21:37.715455 2021] [fcgid:warn] [pid 25045:tid 3970362947328] [client 146.255.181.204:29387] mod_fcgid: stderr: #0 includes/GlobalFunctions.php(89): ExtensionRegistry->queue('...')
[Sun Mar 07 08:21:37.715472 2021] [fcgid:warn] [pid 25045:tid 3970362947328] [client 146.255.181.204:29387] mod_fcgid: stderr: #1 LocalSettings.php(127): wfLoadSkin('MonoBook')
[Sun Mar 07 08:21:37.715487 2021] [fcgid:warn] [pid 25045:tid 3970362947328] [client 146.255.181.204:29387] mod_fcgid: stderr: #2 includes/Setup.php(124): require_once('...')
[Sun Mar 07 08:21:37.715503 2021] [fcgid:warn] [pid 25045:tid 3970362947328] [client 146.255.181.204:29387] mod_fcgid: stderr: #3 includes/WebStart.php(81): require_once('...')
[Sun Mar 07 08:21:37.715519 2021] [fcgid:warn] [pid 25045:tid 3970362947328] [client 146.255.181.204:29387] mod_fcgid: stderr: #4 index.php(41): require('...')
[Sun Mar 07 08:21:37.715535 2021] [fcgid:warn] [pid 25045:tid 3970362947328] [client 146.255.181.204:29387] mod_fcgid: stderr: #5 > {main}
[Sun Mar 07 08:21:37.715551 2021] [fcgid:warn] [pid 25045:tid 3970362947328] [client 146.255.181.204:29387] mod_fcgid: stderr: thrown in includes/registration/ExtensionRegistry.php on line 130
(
I tried to install Jeroe Github again, remove the github package and composer, and again, but nothing works. Google seems to be quiet.
So, do you what causes the error, and can I do something for that? Or do I need to reinstall or upgrade my Wikimedia?
Meanwhile, I'll back up my database.
Thanks for any help, or ideas. Molmw (talk) 16:15, 12 March 2021 (UTC)
- @Molmw You cannot install the Wikimedia people, maybe you meant MediaWiki? What is "Jeroen Github extension"? Which MediaWiki version is this about? Malyacko (talk) 21:25, 12 March 2021 (UTC)
- Thanks!
- The mediawiki version is 1.34.1.
- Jeroen Github extension means GitHub extension for MediaWiki by JeroenDeDauw/GitHub.
- So its best to back up everything and start from scratch? Or might there be some solutions? Molmw (talk) 07:39, 13 March 2021 (UTC)
- > - Removing wikimedia/at-ease (v2.0.0)
- That would be your problem. Sounds like in trying to install this extension you managed to remove all of mediawiki's dependencies.
- Honestly, i wish people would stop trying to make extensions installable by composer. Its a bad fit and causes confusion. Bawolff (talk) 02:25, 13 March 2021 (UTC)
- Thanks! Yes, I totally agree. I couldn't/ cannot reinstall Mediawiki's depencies---using Composer. So, it might be best to sit down, backup the file structure and database, and reinstall from scratch?
- Also, it might be a good idea to back up before trying to get the site better. . . Molmw (talk) 07:55, 13 March 2021 (UTC)
Molmw (talk) 07:55, 13 March 2021 (UTC)
- Thanks for ideas!
- It was rather easy to copy the MW and install the newer version. The installation procedure noticed that I am working on an existing database, and fixed that too. Even the images are shown, after copying them back to the correct directory. Great.
- So, no more Composer for me. Molmw (talk) 16:16, 13 March 2021 (UTC)
Vector search bar
Hi again!
I'm now trying to find some variable or code to make the search bar in Vector skin look like even on fr.wikipedia.org. There, the search bar is in a different place than on my wikis and this MediaWiki.org wiki. In Fr.wikipedia, the search bar is in the middle and a little bigger. Can anyone say a variable or code that will get me in the middle of the search bar too? I don't mean the sidebar. 193.185.246.137 (talk) 18:08, 12 March 2021 (UTC)
- It is new functionality currently being rolled out slowly. See Reading/Web/Desktop Improvements/Features for more details on the features and what is being changed. Peculiar Investor (talk) 19:25, 12 March 2021 (UTC)
- Okay, thanks for you! 193.185.246.137 (talk) 19:30, 12 March 2021 (UTC)
Block by Country code
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.
Ip address 146.66.121.88 is being blocked as if its coming from Bulgaria but all internet searches states its coming from Illinois. Please advise. Thx 173.251.79.186 (talk) 10:49, 13 March 2021 (UTC)
- What does this have to do with the MediaWiki software? Please provide sufficient context and steps to reproduce where to see what and how. Malyacko (talk) 11:27, 13 March 2021 (UTC)
Як змінити логін?
Доброго дня! У мене постало питання "Як мені змінити "ім'я" мого логіну?" - у зв'язку з тим, що реєструвався раніш, і зробив невірну транслітерацію, хотів би виправити помилку в своєму логіні, чи видалити цей профіль щоб здійснити нову реєстрацію) 46.98.59.9 (talk) 19:23, 13 March 2021 (UTC)
- To save someone some time - Google Translate says "Hello! I had a question "How do I change" the name of "my login?" - due to the fact that I registered earlier and made an incorrect transliteration, I would like to correct an error in my login, or delete this profile to make a new registration)"
- Does this help? Changing username Jonathan3 (talk) 20:21, 13 March 2021 (UTC)
- Really? And i understand that you can not do it yourself? 46.98.59.9 (talk) 13:52, 10 May 2021 (UTC)
Importing an old backup
I'm trying to resurrect an old MediaWiki site. I was never a MW expert and I've forgotten everything I ever knew about it over the 7+ years since I last used it. I just installed MW 1.31.12 since my web host only has PHP 7.3.11 installed. My web host has MySQL 5.6.40-84.0. The SQL backup file that I have is from 2012 and I believe I was running MW 1.14 at that time. I opened phpMyAdmin, selected the MW database, and used the Import tab to select my backup ".sql.zip". The import process ran successfully but accessing my MW site loads the default Main Page but the All Pages page only lists the Main Page. However, if I browse the database using phpMyAdmin I can see that my imported information is in the mw_archive table. What might I be doing wrong? Was there a format change between MW 1.14 and MW 1.31.12 that might be my problem? McDreimiller (talk) 01:29, 14 March 2021 (UTC)
- the archive table contains only deleted pages (eg. accessible via special:undelete if you are an admin).
- The actual content lives in the page, revision and text table. Bawolff (talk) 08:22, 14 March 2021 (UTC)
- Thanks for the reply. You helped me figure out my problem It turns out that I had used a prefix "mw_" on my old wiki so my Import was creating a new set of tables instead of importing them in to the default table names. Now I have a new problem. I deleted my database and started over. The import is failing because there's a field in my backup that doesn't exist in the "archive" table. Here's a list of all of the fields in "archive" - bolded fields are in my backup:
- ar_actor
- ar_comment
- ar_comment_id
- ar_content_format
- ar_content_model
- ar_deleted
- ar_id
- ar_len
- ar_minor_edit
- ar_namespace
- ar_page_id
- ar_parent_id
- ar_rev_id
- ar_sha1
- ar_text_id
- ar_timestamp
- ar_title
- ar_user
- ar_user_text
- These fields are in my backup but aren't in the "archive" table:
- ar_text
- ar_flags
- I suspect that if I were to manually create the missing fields in the "archive" table before doing the import that there would still be things wrong in "archive" due to the apparent changes since my backup was created, and that the import would run into similar problems in other tables such as the "page" table.
- I'm guessing that if I were to delete MW 1.31.12 and install MW 1.14 that the import would work but then I'd have to figure out what steps I'd need to take to upgrade all the way up to 1.31.12.
- Before I do that is there a simpler way to restore my old backup into MW 1.31.12? McDreimiller (talk) 16:27, 14 March 2021 (UTC)
- just import it and then run update.php it should upgrade the tables to the new version. Bawolff (talk) 21:47, 14 March 2021 (UTC)
- Thanks again, @Bawolff. I added the two missing columns to the archive table and re-tried the import but it failed again, this time due to a missing column (cat_hidden) in the category table. So before trying again I hunted around and found this page listing all of the tables and reviewed every one that existed in v1.14 and noted any fields that have been removed between 1.14 and 1.31.12.
- archive
- ar_text
- ar_flags
- category
- cat_hidden
- page
- page_counter
- recentchanges
- rc_cur_time
- rc_moved_to_ns
- rc_moved_to_title
- site_stats table
- ss_total_views
- ss_admins
- text
- old_namespace
- old_title
- old_comment
- old_user
- old_user_text
- old_timestamp
- old_minor_edit
- inverse_timestamp
- user
- user_options
- After adding all of those manually, and making sure all of the tables were empty, I was then able to import my 9 year old backup successfully. Unfortunately, as I suspected, that backup was made right after I discovered in early 2012 that my wiki had been hacked and was being used to host 1000+ pages of spam. Sadly, I can't find the backup that I made after spending a month deleting all of the spam and I'll have to do all of that deleting again. McDreimiller (talk) 20:17, 15 March 2021 (UTC)
What does this error message mean?
What does this error message mean?
[10-Mar-2021 23:31:58 America/Chicago] PHP Warning: API call had warnings trying to get remote JsonConfig: warnings={"main":{"*":"Subscribe to the mediawiki-api-announce mailing list at \u003Chttps://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce\u003E for notice of API deprecations and breaking changes. Use Special:ApiFeatureUsage to see usage of deprecated features by your application."},"revisions":{"*":"Because \"rvslots\" was not specified, a legacy format has been used for the output. This format is deprecated, and in the future the new format will always be used."}}, query={"action":"query","titles":"Data:I18n/Shared Template Warning.tab","prop":"revisions","rvprop":"content","continue":""} [Called from JsonConfig\JCUtils::warn in /extensions/JsonConfig/includes/JCUtils.php at line 54] in /includes/debug/MWDebug.php on line 333 Farvardyn (talk) 04:53, 14 March 2021 (UTC)
- bump? Farvardyn (talk) 16:13, 16 March 2021 (UTC)
- You probably need to add the information mentioned for posting issues in the right-sidebar on this page (MW version, php version etc.)
- Otherwise, the folks that help here (I'm just a MW user) have know way of knowing if you're using a current version of MW or an outdated one... so for example, this is an old closed one, without knowing your MW version... could it be related to this?
- https://phabricator.wikimedia.org/T204774
- If you're not using an old version of MW, you might try proving some better debugging info from:
- Manual:How to debug TiltedCerebellum (talk) 05:38, 19 March 2021 (UTC)
Ideas to implement reminders of pages?
I am a student and have my wiki as my note system. To review my pages i would like to implement a system kind of like anki works. I have not found any ways to export the names of the pages in other apps like anki because the wiki isnt stable, sometimes i add things, sometimes I delete pages so anything outside of the wiki becomes a mess.
Does anyone have any ideas to implement a system where it reminds me to open a specific page at a specific time?
I could use calendar but that does not get the job done.
Thanks! Bedtry (talk) 08:11, 14 March 2021 (UTC)
- You could use Cargo to store items (and Page Forms to make it easy to enter them). Each item could have a date. Each item could appear as an info box on the relevant pages.
- Then you could have a query on your wiki that showed the most recent items, or overdue items, or items due today or this week, or whatever. Jonathan3 (talk) 13:58, 14 March 2021 (UTC)
- I like the idea! Thanks for that! Bedtry (talk) 16:56, 14 March 2021 (UTC)
Search to include external site
I’d like to be able to have the wiki search results also show (separately) the results for the same search term from an associated website. Is this possible with any existing extension? Thanks. Jonathan3 (talk) 14:02, 14 March 2021 (UTC)
- Perhaps not what you want, but you could try using a
googlewikilink. E.g. "google:MediaWiki site:wikimedia.org" to search for the string "MediaWiki" on the domainwikimedia.org. Nicole Sharp (talk) 15:12, 14 March 2021 (UTC) - Thanks for the idea. Jonathan3 (talk) 01:02, 15 March 2021 (UTC)
How to replace text at all namespaces?
Hi, I want to replace some text. The problem is, I have many articles like for instance
- Animal: bird
- Tree: fir
Because I'm doing so, the system seems to think that all these are special namespaces, and I don't know how make them also be replaced. 89.204.154.53 (talk) 16:20, 14 March 2021 (UTC)
- How do you replace text? Why do you think "the system" thinks they are namespaces? Please provide context and steps to reproduce - thanks. Malyacko (talk) 16:34, 14 March 2021 (UTC)
- Take a look at the Extension:Replace Text Peculiar Investor (talk) 16:34, 14 March 2021 (UTC)
Verifying My Email
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello, I’m new to the Mirahaze Wikias and I can’t get my email verified. I tried clicking on the email code button on my profile but I never get an email.
Please fix that problem. Thank you. 209.172.12.115 (talk) 18:33, 14 March 2021 (UTC)
- This is the wrong support forum. See Miraheze's Help center. AhmadF.Cheema (talk) 19:19, 14 March 2021 (UTC)
Upgrade mediawiki-1.19.2 to mediawiki-1.34 LDAP setup
I am trying to upgrade my mediawiki creating another stand alone VM in order to authenticate against a different Domain so my LocalSetting.php LDAP config got slight change the way to configure so at this stage i am tryng to do a basic authentication against my new Domain that is not working.
how can I generate logs? so i can see the error message of why is not working so i can have a clue how to solved
here is my old config for LDAP:
require_once '/var/lib/mediawiki-1.19.2/extensions/LdapAuthentication/LdapAuthentication.php';
$wgAuth = new LdapAuthenticationPlugin();
$wgLDAPDomainNames = array( 'Zzzzzzz');
$wgLDAPServerNames = array( 'Zzzzzzz' => '172.23.16.2');
$wgLDAPSearchAttributes = array( 'Zzzzzz' => 'sAMAccountName');
$wgLDAPBaseDNs = array( 'Zezzzzz' => 'dc=zeacom,dc=net');
$wgLDAPEncryptionType = array( 'Zzzzzz' => 'clear');
$wgLDAPProxyAgent = array( 'Zzzzz' => 'Zzzzzz\\xxxx');
$wgLDAPProxyAgentPassword = array( 'zzzzz' => 'dddddddddd');
$wgMinimalPasswordLength = 1;
here is my new one that do not work
require_once '/var/www/html/extensions/LdapAuthentication/LdapAuthentication.php';
$wgKdapAuthDomainNames = 'nz.rd.eilab.biz';
$wgLdapAuthServers = 'NDC-DC01.nz.rd.eila.biz';
$wgLdapAuthBindDN = 'cn=MYselfuser,cn=RealUsers,dc=XX,dc=XX,dc=XX,dc=XX';
$wgLdapAuthBindPass = 'XXXXXX';
what i am doing wrong here? 38.126.232.136 (talk) 03:30, 15 March 2021 (UTC)
Request to remove "Multilingual Wikisource" link from Wikipedia Main page template
- Hello. On the English Wikipedia Main page, there is a template ("In other projects") used on the left column of the page that contains links to other projects. I noticed that this template points to the Wikisource project twice. There is "Wikisource" (which points to https://en.wikisource.org/wiki/Main_Page) and "Multilingual Wikisource" (which points to https://wikisource.org/wiki/Main_Page). Seeing as the other project links point to their respective English pages, I would like to request the "Multilingual Wikisource" link be removed, as to improve consistency. Please let me know where this can be properly discussed and how this modification can be done. I have started the discussion on the English Wikipedia Teahouse, and was suggested to ask here. This may be related to Wikimedia main page (Q5296). Somerandomuser (talk) 05:12, 15 March 2021 (UTC)
- That Teahouse could have suggested meta:Tech instead, as this is not related to MediaWiki itself but to Wikimedia stuff... :) Malyacko (talk) 07:13, 15 March 2021 (UTC)
- Oppose, it's related to a magic word {{Noexternallanglinks}} which I even can't find at Help:Magic words. Liuxinyu970226 (talk) 07:55, 15 March 2021 (UTC)
- i imagine its due to the wikidata item Bawolff (talk) 20:55, 15 March 2021 (UTC)
Issue with users when upgrading old mid-size wiki. Please advise
cd Hello. I am trying to rejuvenate an old wiki. I went from 1.17 to 1.31 then to the latest 1.35. Everything seemed to go fine until I tried to log in.
Apache 2.4.35 mySQL 5.7.24 PHP 7.4.16 Local on Laragon
I have the following debug message:
[a88eebc044e7385adb9ab332] /Monstropedia/index.php/Sp%C3%A9cial:Mes_discussions Wikimedia\Rdbms\DBQueryError from line 1699 of C:\laragon\www\monstropedia\includes\libs\rdbms\database\Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading? (see 1 below)
I tried to update the database another time another time and I could see there are issues with users
Your composer.lock file is up to date with current dependencies!
Going to run database updates for monstrop_wiki7
Depending on the size of your database this may take a while!
Abort with control-c in the next five seconds (skip this countdown with --quick) ... 0
...have ipb_id field in ipblocks table.
...have ipb_expiry field in ipblocks table.
...already have interwiki table
...indexes seem up to 20031107 standards.
...have rc_type field in recentchanges table.
...index new_name_timestamp already set on recentchanges table.
...have user_real_name field in user table.
...querycache table already exists.
...objectcache table already exists.
...categorylinks table already exists.
...have pagelinks; skipping old links table updates
...il_from OK
...have rc_ip field in recentchanges table.
...index PRIMARY already set on image table.
...have rc_id field in recentchanges table.
...have rc_patrolled field in recentchanges table.
...logging table already exists.
...have user_token field in user table.
...have wl_notificationtimestamp field in watchlist table.
...watchlist talk page rows already present.
...user table does not contain user_emailauthenticationtimestamp field.
...page table already exists.
...have log_params field in logging table.
...logging table has correct log_title encoding.
...have ar_rev_id field in archive table.
...have page_len field in page table.
...revision table does not contain inverse_timestamp field.
...have rev_deleted field in revision table.
...have img_width field in image table.
...have img_metadata field in image table.
...have user_email_token field in user table.
...page_namespace is already a full int (int(11)).
...ar_namespace is already a full int (int(11)).
...rc_namespace is already a full int (int(11)).
...wl_namespace is already a full int (int(11)).
...qc_namespace is already a full int (int(11)).
...log_namespace is already a full int (int(11)).
...have img_media_type field in image table.
...already have pagelinks table.
...image table does not contain img_type field.
...already have unique user_name index.
...user_groups table exists and is in current format.
...have ss_total_pages field in site_stats table.
...user_newtalk table already exists.
...have iw_trans field in interwiki table.
...wl_notificationtimestamp is already nullable.
...index times already set on logging table.
...have ipb_range_start field in ipblocks table.
...no page_random rows needed to be set
...have user_registration field in user table.
...templatelinks table already exists
...externallinks table already exists.
...job table already exists.
...have ss_images field in site_stats table.
...langlinks table already exists.
...querycache_info table already exists.
...filearchive table already exists.
...have ipb_anon_only field in ipblocks table.
...have user_newpass_time field in user table.
...redirect table already exists.
...querycachetwo table already exists.
...have ipb_enable_autoblock field in ipblocks table.
...index pl_namespace on table pagelinks includes field pl_from.
...index tl_namespace on table templatelinks includes field tl_from.
...index il_to on table imagelinks includes field il_from.
...have rc_old_len field in recentchanges table.
...have user_editcount field in user table.
...page_restrictions table already exists.
...have log_id field in logging table.
...have rev_parent_id field in revision table.
...have pr_id field in page_restrictions table.
...have rev_len field in revision table.
...have rc_deleted field in recentchanges table.
...have log_deleted field in logging table.
...have ar_deleted field in archive table.
...have ipb_deleted field in ipblocks table.
...have fa_deleted field in filearchive table.
...have ar_len field in archive table.
...have ipb_block_email field in ipblocks table.
...index cl_sortkey on table categorylinks includes field cl_from.
...have oi_metadata field in oldimage table.
...have ar_page_id field in archive table.
...have img_sha1 field in image table.
...protected_titles table already exists.
...page_props table already exists.
...updatelog table already exists.
...category table already exists.
...category table already populated.
...have ar_parent_id field in archive table.
...have user_last_timestamp field in user_newtalk table.
...protected_titles table has correct pt_title encoding.
...have ss_active_users field in site_stats table.
...ss_active_users user count set...
...have ipb_allow_usertalk field in ipblocks table.
...change_tag table already exists.
...user_properties table already exists.
...log_search table already exists.
...l10n_cache table already exists.
...ct_rc_id key doesn't exist.
...have rd_interwiki field in redirect table.
...*_mime_minor fields are already long enough.
...iwlinks table already exists.
...index iwl_prefix_title_from already set on iwlinks table.
...have ul_value field in updatelog table.
...have iw_api field in interwiki table.
...iwl_prefix key doesn't exist.
...have cl_collation field in categorylinks table.
...categorylinks up-to-date.
...module_deps table already exists.
...ar_page_revid key doesn't exist.
...skipping index ar_revid because index ar_revid already set on archive table.
...user_last_timestamp is already nullable.
...index user_email already set on user table.
...up_property in table user_properties already modified by patch patch-up_property.sql.
...uploadstash table already exists.
...user_former_groups table already exists.
...have rev_sha1 field in revision table.
...batch conversion of user_options: nothing to migrate. done.
...user table does not contain user_options field.
...have ar_sha1 field in archive table.
...index page_redirect_namespace_len already set on page table.
...have us_chunk_inx field in uploadstash table.
...have job_timestamp field in job table.
...index page_user_timestamp already set on revision table.
...have ipb_parent_block_id field in ipblocks table.
...index ipb_parent_block_id already set on ipblocks table.
...category table does not contain cat_hidden field.
...have rev_content_format field in revision table.
...have rev_content_model field in revision table.
...have ar_content_format field in archive table.
...have ar_content_model field in archive table.
...have page_content_model field in page table.
...site_stats table does not contain ss_admins field.
...recentchanges table does not contain rc_moved_to_title field.
...sites table already exists.
...have fa_sha1 field in filearchive table.
...have job_token field in job table.
...have job_attempts field in job table.
...have us_props field in uploadstash table.
...ug_group in table user_groups already modified by patch patch-ug_group-length-increase-255.sql.
...ufg_group in table user_former_groups already modified by patch patch-ufg_group-length-increase-255.sql.
...index pp_propname_page already set on page_props table.
...index img_media_mime already set on image table.
...iwl_prefix_title_from index is already non-UNIQUE.
...index iwl_prefix_from_title already set on iwlinks table.
...have ar_id field in archive table.
...have el_id field in externallinks table.
...have rc_source field in recentchanges table.
...have page_links_updated field in page table.
...have user_password_expires field in user table.
...have pp_sortkey field in page_props table.
...recentchanges table does not contain rc_cur_time field.
...index wl_user_notificationtimestamp already set on watchlist table.
...have page_lang field in page table.
...have pl_from_namespace field in pagelinks table.
...have tl_from_namespace field in templatelinks table.
...have il_from_namespace field in imagelinks table.
...img_major_mime in table image already modified by patch patch-img_major_mime-chemical.sql.
...oi_major_mime in table oldimage already modified by patch patch-oi_major_mime-chemical.sql.
...fa_major_mime in table filearchive already modified by patch patch-fa_major_mime-chemical.sql.
...comment fields are up to date.
...hitcounter doesn't exist.
...site_stats table does not contain ss_total_views field.
...page table does not contain page_counter field.
...msg_resource_links doesn't exist.
...msg_resource doesn't exist.
...bot_passwords table already exists.
...have wl_id field in watchlist table.
...cl_collation key doesn't exist.
...index cl_collation_ext already set on categorylinks table.
...collations up-to-date.
...index rc_name_type_patrolled_timestamp already set on recentchanges table.
...rev_page_id index not found on revision.
...pl_namespace, tl_namespace, il_to indices are already non-UNIQUE.
...have ct_id field in change_tag table.
...rc_ip in table recentchanges already modified by patch patch-rc_ip_modify.sql.
...have el_index_60 field in externallinks table.
...ug_user_group key doesn't exist.
...have ug_expiry field in user_groups table.
...img_media_type in table image already modified by patch patch-add-3d.sql.
...ip_changes table already exists.
...index PRIMARY already set on categorylinks table.
...index PRIMARY already set on templatelinks table.
...index PRIMARY already set on pagelinks table.
...index PRIMARY already set on text table.
...index PRIMARY already set on imagelinks table.
...index PRIMARY already set on iwlinks table.
...index PRIMARY already set on langlinks table.
...index PRIMARY already set on log_search table.
...index PRIMARY already set on module_deps table.
...index PRIMARY already set on objectcache table.
...index PRIMARY already set on querycache_info table.
...index PRIMARY already set on site_stats table.
...index PRIMARY already set on user_former_groups table.
...index PRIMARY already set on user_properties table.
...comment table already exists.
...revision_comment_temp table already exists.
...have ar_comment_id field in archive table.
...have fa_description_id field in filearchive table.
...img_description in table image already modified by patch patch-image-img_description-default.sql.
...have ipb_reason_id field in ipblocks table.
...have log_comment_id field in logging table.
...have oi_description_id field in oldimage table.
...have pt_reason_id field in protected_titles table.
...have rc_comment_id field in recentchanges table.
...rev_comment in table revision already modified by patch patch-revision-rev_comment-default.sql.
...have img_description_id field in image table.
...index PRIMARY already set on l10n_cache table.
...bot_passwords.bp_user is already unsigned int.
...change_tag.ct_log_id is already unsigned int.
...change_tag.ct_rev_id is already unsigned int.
...page_restrictions.pr_user is already unsigned int.
...user_newtalk.user_id is already unsigned int.
...user_properties.up_user is already unsigned int.
...slots table already exists.
...have slot_origin field in slots table.
...content table already exists.
...slot_roles table already exists.
...content_models table already exists.
...actor table already exists.
...revision_actor_temp table already exists.
...have ar_actor field in archive table.
...have ipb_by_actor field in ipblocks table.
...have img_actor field in image table.
...have oi_actor field in oldimage table.
...have fa_actor field in filearchive table.
...have rc_actor field in recentchanges table.
...have log_actor field in logging table.
Migrating actors to the 'actor' table, printing progress markers. For large
databases, you may want to hit Ctrl-C and do this manually with
maintenance/migrateActors.php.
Creating actor entries for all registered users
... 1 - 101
... 102 - 202
... 203 - 303
... 304 - 404
... 405 - 505
... 506 - 606
... 607 - 707
... 708 - 808
... 809 - 909
... 910 - 1010
... 1011 - 1111
... 1112 - 1212
... 1213 - 1313
... 1314 - 1414
... 1415 - 1515
... 1516 - 1616
... 1617 - 1717
... 1718 - 1818
... 1819 - 1919
... 1920 - 2020
... 2021 - 2121
... 2122 - 2222
... 2223 - 2323
... 2324 - 2424
... 2425 - 2525
... 2526 - 2626
... 2627 - 2727
... 2728 - 2828
... 2829 - 2929
... 2930 - 3030
... 3031 - 3131
... 3132 - 3232
... 3233 - 3333
... 3334 - 3434
... 3435 - 3535
... 3536 - 3636
... 3637 - 3737
... 3738 - 3838
... 3839 - 3939
... 3940 - 4040
... 4041 - 4141
... 4142 - 4242
... 4243 - 4343
... 4344 - 4444
... 4445 - 4545
... 4546 - 4646
... 4647 - 4747
... 4748 - 4848
... 4849 - 4949
... 4950 - 5050
... 5051 - 5151
... 5152 - 5252
... 5253 - 5353
... 5354 - 5454
... 5455 - 5555
... 5556 - 5656
... 5657 - 5757
... 5758 - 5858
... 5859 - 5959
... 5960 - 6060
... 6061 - 6161
... 6162 - 6262
... 6263 - 6363
... 6364 - 6464
... 6465 - 6565
... 6566 - 6666
... 6667 - 6767
... 6768 - 6868
... 6869 - 6960
Completed actor creation, added 0 new actor(s)
Beginning migration of revision.rev_user and revision.rev_user_text to revision_actor_temp.revactor_actor
User name "Cursedtyrant" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.
User name "OmnipotentOculus" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.
User name "PhantomX" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.
User name "Soaring Hawk" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.
... rev_id=1651
... rev_id=2279
User name "Lord Moriya" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.
User name "Chupavuk" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.
User name "The Seeker" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.
... rev_id=4373
User name "Dreammaker" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.
User name "Magnus" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.
User name "Kuro Neko" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.
User name "Koharski" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.
User name "D0pp" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.
User name "Irtemed" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.
... rev_id=6441
Completed migration, updated 0 row(s) with 0 new actor(s), 8 error(s)
Beginning migration of oldimage.oi_user and oldimage.oi_user_text to oldimage.oi_actor
Completed migration, updated 0 row(s) with 0 new actor(s), 0 error(s)
Beginning migration of filearchive.fa_user and filearchive.fa_user_text to filearchive.fa_actor
Completed migration, updated 0 row(s) with 0 new actor(s), 0 error(s)
Beginning migration of recentchanges.rc_user and recentchanges.rc_user_text to recentchanges.rc_actor
Completed migration, updated 0 row(s) with 0 new actor(s), 0 error(s)
Beginning migration of logging.log_user and logging.log_user_text to logging.log_actor
Wikimedia\Rdbms\DBQueryError from line 1699 of C:\laragon\www\monstropedia\includes\libs\rdbms\database\Database.php: Error 1062: Duplicate entry '' for key 'actor_name' (localhost)
Function: MigrateActors::addActorsForRows
Query: INSERT INTO `actor` (actor_name) VALUES ('')
#0 C:\laragon\www\monstropedia\includes\libs\rdbms\database\Database.php(1683): Wikimedia\Rdbms\Database->getQueryException('Duplicate entry...', 1062, 'INSERT INTO `ac...', 'MigrateActors::...')
#1 C:\laragon\www\monstropedia\includes\libs\rdbms\database\Database.php(1658): Wikimedia\Rdbms\Database->getQueryExceptionAndLog('Duplicate entry...', 1062, 'INSERT INTO `ac...', 'MigrateActors::...')
#2 C:\laragon\www\monstropedia\includes\libs\rdbms\database\Database.php(1227): Wikimedia\Rdbms\Database->reportQueryError('Duplicate entry...', 1062, 'INSERT INTO `ac...', 'MigrateActors::...', false)
#3 C:\laragon\www\monstropedia\includes\libs\rdbms\database\Database.php(2343): Wikimedia\Rdbms\Database->query('INSERT INTO `ac...', 'MigrateActors::...', 128)
#4 C:\laragon\www\monstropedia\includes\libs\rdbms\database\Database.php(2323): Wikimedia\Rdbms\Database->doInsert('actor', Array, 'MigrateActors::...')
#5 C:\laragon\www\monstropedia\includes\libs\rdbms\database\DBConnRef.php(68): Wikimedia\Rdbms\Database->insert('actor', Array, 'MigrateActors::...')
#6 C:\laragon\www\monstropedia\includes\libs\rdbms\database\DBConnRef.php(369): Wikimedia\Rdbms\DBConnRef->__call('insert', Array)
#7 C:\laragon\www\monstropedia\maintenance\includes\MigrateActors.php(219): Wikimedia\Rdbms\DBConnRef->insert('actor', Array, 'MigrateActors::...')
#8 C:\laragon\www\monstropedia\maintenance\includes\MigrateActors.php(305): MigrateActors->addActorsForRows(Object(Wikimedia\Rdbms\MaintainableDBConnRef), 'log_user_text', Array, Array, 0)
#9 C:\laragon\www\monstropedia\maintenance\includes\MigrateActors.php(115): MigrateActors->migrate('logging', Array, 'log_user', 'log_user_text', 'log_actor')
#10 C:\laragon\www\monstropedia\maintenance\includes\LoggedUpdateMaintenance.php(45): MigrateActors->doDBUpdates()
#11 C:\laragon\www\monstropedia\includes\installer\DatabaseUpdater.php(1385): LoggedUpdateMaintenance->execute()
#12 C:\laragon\www\monstropedia\includes\installer\DatabaseUpdater.php(554): DatabaseUpdater->migrateActors()
#13 C:\laragon\www\monstropedia\includes\installer\DatabaseUpdater.php(517): DatabaseUpdater->runUpdates(Array, false)
#14 C:\laragon\www\monstropedia\maintenance\update.php(181): DatabaseUpdater->doUpdates(Array)
#15 C:\laragon\www\monstropedia\maintenance\doMaintenance.php(107): UpdateMediaWiki->execute()
#16 C:\laragon\www\monstropedia\maintenance\update.php(253): require_once('C:\\laragon\\www\\...')
#17 {main}
I tried to run cleanupUsersWithNoId.php but it did not solve the problem ...
λ php cleanupUsersWithNoId.php --force --prefix=*
Beginning cleanup of revision
... rev_timestamp=20060814123604 rev_id=4737
... rev_timestamp=20060814190539 rev_id=4773
Completed cleanup, assigned 0 and prefixed 0 row(s)
Beginning cleanup of archive
... ar_id=100
... ar_id=200
... ar_id=300
... ar_id=400
... ar_id=500
... ar_id=600
... ar_id=700
... ar_id=800
... ar_id=900
... ar_id=1000
... ar_id=1100
... ar_id=1200
... ar_id=1300
... ar_id=1400
... ar_id=1500
... ar_id=1600
... ar_id=1700
... ar_id=1800
... ar_id=1900
... ar_id=2000
... ar_id=2100
... ar_id=2200
... ar_id=2300
... ar_id=2400
... ar_id=2500
... ar_id=2600
... ar_id=2700
... ar_id=2800
... ar_id=2900
... ar_id=3000
... ar_id=3100
... ar_id=3200
... ar_id=3300
... ar_id=3400
... ar_id=3500
... ar_id=3600
... ar_id=3700
... ar_id=3800
... ar_id=3900
... ar_id=4000
... ar_id=4100
... ar_id=4200
... ar_id=4300
... ar_id=4400
... ar_id=4498
Completed cleanup, assigned 0 and prefixed 0 row(s)
Beginning cleanup of logging
Completed cleanup, assigned 0 and prefixed 0 row(s)
Beginning cleanup of image
Completed cleanup, assigned 0 and prefixed 0 row(s)
Beginning cleanup of oldimage
... oi_name=Ted_Bundy_3.jpg oi_timestamp=20060528232637
... oi_name=Yūrei.jpg oi_timestamp=20080610195052
Completed cleanup, assigned 0 and prefixed 0 row(s)
Beginning cleanup of filearchive
Completed cleanup, assigned 0 and prefixed 0 row(s)
Beginning cleanup of ipblocks
... ipb_id=275
... ipb_id=292
Completed cleanup, assigned 0 and prefixed 0 row(s)
Beginning cleanup of recentchanges
... rc_id=15829
... rc_id=15929
... rc_id=16029
... rc_id=16140
... rc_id=16240
... rc_id=16340
... rc_id=16440
... rc_id=16540
... rc_id=16640
... rc_id=16740
... rc_id=16840
... rc_id=16924
Completed cleanup, assigned 0 and prefixed 0 row(s)
1:
Error 1146: Table 'monstrop_wiki7.change_tag_def' doesn't exist (localhost)
Function: IndexPager::buildQueryInfo (LogPager)
Query: SELECT /*! STRAIGHT_JOIN */ log_id,log_type,log_action,log_timestamp,log_namespace,log_title,log_params,log_deleted,user_id,user_name,user_editcount,comment_log_comment.comment_text AS `log_comment_text`,comment_log_comment.comment_data AS `log_comment_data`,comment_log_comment.comment_id AS `log_comment_cid`,actor_log_user.actor_user AS `log_user`,actor_log_user.actor_name AS `log_user_text`,log_actor,(SELECT GROUP_CONCAT(ctd_name SEPARATOR ',') FROM `change_tag` JOIN `change_tag_def` ON ((ct_tag_id=ctd_id)) WHERE ct_log_id=log_id ) AS `ts_tags` FROM `logging` IGNORE INDEX (times) JOIN `comment` `comment_log_comment` ON ((comment_log_comment.comment_id = log_comment_id)) JOIN `actor` `actor_log_user` ON ((actor_log_user.actor_id = log_actor)) LEFT JOIN `user` ON ((user_id=actor_log_user.actor_user)) WHERE (log_action != 'revision') AND (log_type != 'suppress') AND log_type IN ('delete','move','protect') AND log_namespace = 3 AND log_title = '127.0.0.1' AND ((log_deleted & 1) = 0) ORDER BY log_timestamp DESC LIMIT 11
Backtrace:
#0 C:\laragon\www\monstropedia\includes\libs\rdbms\database\Database.php(1683): Wikimedia\Rdbms\Database->getQueryException(string, integer, string, string)
#1 C:\laragon\www\monstropedia\includes\libs\rdbms\database\Database.php(1658): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)
#2 C:\laragon\www\monstropedia\includes\libs\rdbms\database\Database.php(1227): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#3 C:\laragon\www\monstropedia\includes\libs\rdbms\database\Database.php(1907): Wikimedia\Rdbms\Database->query(string, string, integer)
#4 C:\laragon\www\monstropedia\includes\libs\rdbms\database\DBConnRef.php(68): Wikimedia\Rdbms\Database->select(array, array, array, string, array, array)
#5 C:\laragon\www\monstropedia\includes\libs\rdbms\database\DBConnRef.php(313): Wikimedia\Rdbms\DBConnRef->__call(string, array)
#6 C:\laragon\www\monstropedia\includes\pager\IndexPager.php(449): Wikimedia\Rdbms\DBConnRef->select(array, array, array, string, array, array)
#7 C:\laragon\www\monstropedia\includes\pager\IndexPager.php(278): IndexPager->reallyDoQuery(string, integer, boolean)
#8 C:\laragon\www\monstropedia\includes\logging\LogPager.php(471): IndexPager->doQuery()
#9 C:\laragon\www\monstropedia\includes\pager\IndexPager.php(588): LogPager->doQuery()
#10 C:\laragon\www\monstropedia\includes\logging\LogEventsList.php(698): IndexPager->getBody()
#11 C:\laragon\www\monstropedia\includes\page\Article.php(1480): LogEventsList::showLogExtract(OutputPage, array, Title, string, array)
#12 C:\laragon\www\monstropedia\includes\page\Article.php(725): Article->showMissingArticle()
#13 C:\laragon\www\monstropedia\includes\actions\ViewAction.php(74): Article->view()
#14 C:\laragon\www\monstropedia\includes\MediaWiki.php(527): ViewAction->show()
#15 C:\laragon\www\monstropedia\includes\MediaWiki.php(313): MediaWiki->performAction(Article, Title)
#16 C:\laragon\www\monstropedia\includes\MediaWiki.php(940): MediaWiki->performRequest()
#17 C:\laragon\www\monstropedia\includes\MediaWiki.php(543): MediaWiki->main()
#18 C:\laragon\www\monstropedia\index.php(53): MediaWiki->run()
#19 C:\laragon\www\monstropedia\index.php(46): wfIndexMain()
#20 {main}
Hope you can help me to upgrade one and for all. Thanks Monstr6 (talk) 09:05, 15 March 2021 (UTC)
- This is a known issue and I would appreciate to have help on this ... https://phabricator.wikimedia.org/T224854 86.227.109.159 (talk) 14:03, 15 March 2021 (UTC)
- Beginning migration of logging.log_user and logging.log_user_text to logging.log_actor
- Wikimedia\Rdbms\DBQueryError from line 1699 of C:\laragon\www\monstropedia\includes\libs\rdbms\database\Database.php: Error 1062: Duplicate entry for key 'actor_name' (localhost)
- Function: MigrateActors::addActorsForRows
- Query: INSERT INTO `actor` (actor_name) VALUES ()
- Is the part that is the problem Bawolff (talk) 20:54, 15 March 2021 (UTC)
ResourceLoader breaking a JavaScript library
I'm trying to have ResourceLoader load a JS library for me, but it keeps breaking. My browser console says "Uncaught SyntaxError: unexpected token: identifier". I click on the error to inspect the code, and it shows me what load.php is serving up. Here's where the error is:
[long line of code]"pnLb":[function(require,module,exports){"use strict";Object.defineProperty(
exports,"__esModule",{value:!0});[code continues]
I think ResourceLoader is breaking the line between "(" and "exports", and that's causing the syntax error.
I'm loading other JS files successfully; this is the only one that breaks. When I load the page using ?debug=true everything loads fine. Any suggestions? DawnPaladin (talk) 20:41, 15 March 2021 (UTC)
- use babel to cross compile to older version of javascript maybe. Bawolff (talk) 20:51, 15 March 2021 (UTC)
- I'm using Parcel to compile it for es5. Is that old enough? DawnPaladin (talk) 22:34, 15 March 2021 (UTC)
/load.php?lang= query string causes three problems in Google Page Speed insights
I have an Hebrew 1.35.1 all-core MediaWiki website; generally I have no significant performance problems reported in Google Page Speed insights besides one problem which occurs in three different contexts there:
- Enable text compression:
/load.php?lang= - Remove unused JavaScript:
/load.php?lang= - Eliminate render-blocking Resources:
/load.php?lang=
I believe this has to do with my site being Hebrew-interfaced (from installation onwards).
MediaWiki developmentwise, can I remove this query string from URLs?
This might solve the problem of Google algorithm recognizing it as "problematic" or "redundant". 2001:44C8:4559:7759:843F:4EAB:11BF:9DAD (talk) 21:11, 15 March 2021 (UTC)
- I should add that as far as I remember, this problem is lurking/roaming above my website since its first MediaWiki version:
- 1.32.x
- 1.33.x
- 1.34.2
- 1.35.1 2001:44C8:4559:7759:455:BFA6:E9EC:814A (talk) 16:18, 16 March 2021 (UTC)
- Any opinion?... 2001:44C8:4559:7759:CDC5:4415:3B3B:3AF1 (talk) 17:52, 17 March 2021 (UTC)
- Core skin is TimeLess. 2001:44C8:4559:7759:9B1:570D:BF96:E9E5 (talk) 07:53, 18 March 2021 (UTC)
- Is it even skin related?... 2001:44C8:4559:7759:9B1:570D:BF96:E9E5 (talk) 15:07, 18 March 2021 (UTC)
- MediaWiki is a very complex software system. It is guaranteed to throw some warnings in a tool like Google Page Speed insights. load.php is the endpoint that serves up Javascript and CSS and should not be removed. It is used at least a dozen times, so without the actual website/results of Page speed insights, it is hard to evaluate if page speed insights is correct or not.
- > "This might solve the problem of Google algorithm recognizing it as "problematic" or "redundant".
- Unlikely. the biggest cause for that would be incorrect canonical urls in the html content being returned, or because you are actually duplicating content. Google hates duplicate content. —TheDJ (Not WMF) (talk • contribs) 15:31, 18 March 2021 (UTC)
- @TheDJ please share a bit more information about what kind of duplicated content you thought about.
- If there is any content duplication, it's not something that I had done or at least intentionally done; given that the website is all-core, I can't think of anything like that.
- The problem happens with every webpage I have ever tested; homepage or any article random page.
- If it helps --- respective examples for a full query string for any such link (the link in the error) are:
- load.php?lang=he&modules=mediawiki.skinning.content.externallinks%7Cskins.timeless&only=styles&skin=timeless
- load.php?lang=he&modules=jquery%2Csite%7Cjquery.client%7Cmediawiki.String%2CTitle%2Capi%2Cbase%2Ccldr%2CjqueryMsg%2Clanguage%2Cutil%7Cmediawiki.libs.pluralruleparser%7Cmediawiki.page.ready%2Cstartup%7Cskins.timeless.js%2Cmobile%7Cuser.defaults&skin=timeless&version=ttuz6
- The webpage itself 2001:44C8:4559:7759:9B1:570D:BF96:E9E5 (talk) 17:36, 18 March 2021 (UTC)
- @Isarra I humbly and cautiously tagging your profile here (thanks for the great skin !) as the problem I am having might be a consideration for you for future development / leading the communal development.
- Please feel free not to suffice a solution or even a hint (although it would very help me if you will because I don't know where to even start with this).
- I don't publish this in Phabricator because I don't have an account there and generally avoid creating accounts in websites from a personal philosophy about creating a person-organization associations.
- This is indeed a rare case for me to tag your profile here.
- With much appreciation, 2001:44C8:4559:7759:D923:4875:A9D5:702D (talk) 07:49, 21 March 2021 (UTC)
- Funny, I didn't link to an important StackExchange discussion about the wider problem that caused the private case described here in this support desk thread;
- ProWebmasters StackExchange:
- MediaWiki: Avoid multiple page redirects
- I understood there from @Tgr that this problem would probably be solved on version 1.34 but I have 1.35.2 and I still experience the exact same problem...
- Any advices? In great plea... 2001:44C8:4207:71AD:FDB5:895B:9EE1:39C8 (talk) 19:30, 18 May 2021 (UTC)
- @Bawolff please your kind help, I can't link to Phabricator phab:T120085
- I get "⧼abusefilter-warning-linkspam⧽" warning here... Man, that's strange...
- Thanks anyway ! 2001:44C8:4207:71AD:FDB5:895B:9EE1:39C8 (talk) 19:32, 18 May 2021 (UTC)
- load.php URLs contain many minified, concatenated CSS/JS files. As such, they are not too useful for pinpointing problems. I doubt the site language is involved in any way. Tgr (talk) 23:56, 18 May 2021 (UTC)
- Thanks @Tgr but aren't these many minified-concatenated resources theme dependent and if I don't load them I'd have front-end issues in my site? 2001:44C8:4207:71AD:A8E4:67A6:513D:7860 (talk) 01:14, 19 May 2021 (UTC)
- If you randomly prevent some of your CSS/JS files from loading, you are very likely to have issues, yes. That's true of both skin assets and non-skin assets. Tgr (talk) 08:31, 19 May 2021 (UTC)
- Please kindly share with us (as other people might have a similar problem), @Tgr if you had a similar situation, how would you have handled it? What might you suggest to try as an elegant solution? Thanks anyway, 2001:44C8:4207:71AD:A8E4:67A6:513D:7860 (talk) 08:57, 19 May 2021 (UTC)
- I would just ignore the warning. Tgr (talk) 09:44, 19 May 2021 (UTC)
- @Tgr I understand that such approach is existing and even common but in my personal case, this error is the only error and it downgrades the Google Pagespeed Insights (GPI) score of my website from 100 to 76 (and one can only "go figure" how this effect the SEO as not all Google's SEO principles are necessarily published out there, some secondary ones might change on the fly and if the solution is minor then I would indeed like to solve it.
- I ask in great plea for an idea, how to tackle this in my particular case.
- I consider to even fork Skin:Timeless and simplify it for my own purposes if that would help but is it really a skin issue?
- I might still misunderstand where this "problem" is coming from. 2001:44C8:4207:71AD:A8E4:67A6:513D:7860 (talk) 10:40, 19 May 2021 (UTC)
- From nearly 100 to nearly 76*
- How it might effect SEO* 2001:44C8:4207:71AD:A8E4:67A6:513D:7860 (talk) 10:57, 19 May 2021 (UTC)
- As I said, it's hard to tell just from the URL where the issue is, because that URL concatenates many unrelated CSS and JS files. Any one of them could be the source of the problem. You could switch to another skin and see if performance improves. Tgr (talk) 11:20, 19 May 2021 (UTC)
The supplied credentials are not associated with any user on this wiki.
Hello, I have just installed MediaWiki according to the website instructions and tried to integrate it with LDAP but cannot login as domain user - The supplied credentials are not associated with any user on this wiki..
Please, any help will be appreciated, thanks in advance. Zagatonovic (talk) 23:28, 15 March 2021 (UTC)
- Is the information on any of these pages helpful?
- Extension talk:LDAPAuthentication2/2020#h-Credentials_are_not_associated_with_any_user_on_this_wiki.-2020-04-28T11:52:00.000Z
- Extension talk:LDAPAuthentication2/2020#h-Authentication_Problems_with_Active_Directory_-_Credentials_Not_Associated_with-2020-01-24T19:54:00.000Z
- Extension talk:LdapAuth#h-LdapAuth_returns_"The_supplied_credentials_are_not_associated_with_any_user_on_t-2020-02-28T00:43:00.000Z
- Extension talk:LDAPAuthentication2/2019#h-The_supplied_credentials_are_not_associated_with_any_user_on_this_wiki.-2019-10-25T18:26:00.000Z TiltedCerebellum (talk) 05:52, 19 March 2021 (UTC)
Bot User - Bot Owner relation in mediawiki database
Hi,
I am querying the wikidatawiki_p database via Toolforge. I checked the documentation, looked at the database schema diagram (v 1.34.0) and ran some test queries but I could not yet find a table storing the relation between a bot user (e.g., user with name "Github-wiki-bot") and the user of its owner/operator (e.g. user with name "Konstin").
Would anyone know where to find this information in the database?
Thanks a lot in advance. Criscod (talk) 12:46, 16 March 2021 (UTC)
Minerva Neue in Chrome Iframe
Hello community,
I still cannot solve my problem. When I have an iframe from Mediawiki on Chrome, the MinervaNeue skin cannot work.
If anyone has a solution, I will be very happy.
Have a nice day Pracarta (talk) 12:59, 16 March 2021 (UTC)
- It is not clear to me what your situation is exactly... perhaps you can elaborate? "Minerva Neue in Chrome Iframe" suggests that maybe you're trying to display a MediaWiki site in an iframe on another site in chrome?--Is that the correct understanding? Why exactly do you want to do that? What do you mean by "iframe from MediaWiki"? Can you please provide a link to what you're talking about to make clear what it is exactly you're trying to do?
- Are there any errors in Chrome console? At current I'm not sure this sounds like a MediaWiki issue. What exactly are you trying to do with an iframe and why? TiltedCerebellum (talk) 05:46, 19 March 2021 (UTC)
Mobile.css breaking on mobile and desktop
- I have a wiki that uses infoboxes, and they display wrong on MobileFrontend. I applied some CSS to fix it, but somehow it doesn't apply on MobileFrontend, and breaks infoboxes on desktop. I'm using some code from Wikipedia's Mobile.css, which is how I got infoboxes working on desktop. Why is it doing this?
- Edit: I fixed infoboxes by applying the CSS through the HTML style tag in Template:Infobox on my wiki, but this still doesn't answer why infoboxes on desktop were effected by CSS it should not even be applying. Jkrosado (talk) 13:18, 16 March 2021 (UTC)
- How can I do that? Please 190.237.108.179 (talk) 18:15, 29 December 2021 (UTC)
- Silly question, did you read this part about "In order for the stylesheet to function you may have to add..." on the following page?
- Extension:MobileFrontend#CSS styling TiltedCerebellum (talk) 05:41, 19 March 2021 (UTC)
- I did. It's there, and it has nothing to do with the problem. I'm most concerned about Mobile.css applying on desktop, and being ignored on MobileFrontend, but not when you set the theme manually. 107.15.100.28 (talk) 14:37, 8 June 2021 (UTC)
non of the pages show citations
as you see many pages in farsi wikipedia dont show citations in the bottom of the page https://fa.wikipedia.org/wiki/اصفهان https://fa.wikipedia.org/wiki/tehran https://fa.wikipedia.org/wiki/%D8%B3%DB%8C%D8%AF_%D8%B9%D9%84%DB%8C_%D8%AE%D8%A7%D9%85%D9%86%D9%87%E2%80%8C%D8%A7%DB%8C Baratiiman (talk) 16:35, 16 March 2021 (UTC)
- @Baratiiman Welcome to the support desk for the MediaWiki software. In general: For local problems on Farsi Wikipedia, see either w:fa:ویکیپدیا:قهوهخانه/فنی, or meta:Tech (if help is needed related to tech on a Wikimedia wiki) or, if it turns out to be a server side problem, How to report a bug.
- Looking at the HTML source code of your link, you can see a lot of ScribuntoErrors about expandTemplate: invalid title \"[[#invoke:Citation/lang]]?'\"`UNIQ--item-641--QINU`\"' Malyacko (talk) 06:31, 17 March 2021 (UTC)
- нггнукненукhiuoiy 2.135.65.240 (talk) 08:59, 17 March 2021 (UTC)
Gzip not enabled
Hello to everybody. I have a wiki installed on a server Debian Buster + Apache2.
I don't understand why gzip is not enabled. The url of the wiki is
In all other cms (phpbb, wordpress and plain php) it works with mod_delfate.
I really don't know what check :(
Thank you in advice! Marcoemmegi (talk) 10:35, 17 March 2021 (UTC)
- Does this help? Manual:$wgUseGzip TiltedCerebellum (talk) 05:32, 19 March 2021 (UTC)
- No, as manual said it isn't for gzip in webpages but only for cache (and also only file cache). 93.71.160.7 (talk) 13:33, 19 March 2021 (UTC)
- I'm probably misunderstanding what you're trying to do, ignore me. TiltedCerebellum (talk) 14:07, 19 March 2021 (UTC)
- This test don't work https://www.giftofspeed.com/gzip-test/ Marcoemmegi (talk) 12:50, 22 March 2021 (UTC)
- I "solved" commenting line 1073 in includes/MediaWiki.php
- apache_setenv( 'no-gzip', '1' );
- Now I am in production so I reverted the mod to avoid problems. Is it a bug? Marcoemmegi (talk) 13:01, 22 March 2021 (UTC)
- There seem to be some interesting (seemingly related to gzip) issues springing forth on phab for users on Apache:
- https://phabricator.wikimedia.org/T235554(might be related to this one?)
- https://phabricator.wikimedia.org/T269985 TiltedCerebellum (talk) 21:43, 22 March 2021 (UTC)
- It might be but the problem is the opposite one. I always get non gzipped pages.
- So the solution is to wait for mediawiki 1.35.2? Marcoemmegi (talk) 15:01, 23 March 2021 (UTC)
- I'm not sure either if somehow related, though I found it interesting your issue was solved by commenting out some of the same mentioned in the first phab task. Might be good to create a phab task for your specific issue? Not sure. It's unclear what the recommended next steps are, I asked but didn't receive a reply and nothing to advise folks on installation or upgrade pages. For now we're waiting to see if patched or new release made available, though our host is bugging us to upgrade--we keep reiterating to them we can't. I was happy to see the task get moved to the prio interrupt board (I took this as potentially meaning priority work interrupt). I'm just an average MediaWiki user though so phab is a bit of a mystery to me still lol. I just keep watching that phab tasks (and related ones) as well as the installation and upgrade pages to see if anything gets posted. TiltedCerebellum (talk) 19:05, 23 March 2021 (UTC)
- Thank you for answering. I am a completly noob mediawiki user. I have some basis of php and sql, nothing more. I find that codeline because i searched for every header and apache_setenv php call because if apache couldn't force gzip something was wrong. I was sure that the server was correctly configured so the problem must be in php code.
- I don't know if disabling it should create problems in other parts of mediawiki, so i disabled my "patch".
- I could try to report the bug (if it is a bug). Marcoemmegi (talk) 09:12, 24 March 2021 (UTC)
Error uploading a JPG
Hello, I'm trying to upload an image but I get an exception:
Theres the log:
https://pastebin.com/fHgb3Mhk 2A02:2E02:97CE:4300:4CB4:5295:B1DC:A487 (talk) 11:29, 17 March 2021 (UTC)
- This has been fixed on master branch and has been backported to MW 1.35. So your should update you wiki to the stable release, or downgrade PHP to 7.x – Ammarpad (talk) 16:10, 17 March 2021 (UTC)
LocalSettings.php seems to be stuck in cached/old/not working version?
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 | 1.35.1 (4d90545)
00:32, 11 August 2020 |
| PHP | 7.4.16 (cgi-fcgi) |
| MySQL | 5.7.32-35-log |
Just upgraded the wiki to 1.35 yesterday. In installing updated extensions did not realize that DynamicPageLists3 and the old DynamicPageLists that has been depreciated would conflict - and so an error occurred
Fatal error: Uncaught UnexpectedValueException: callback 'DynamicPageListHooks::onRegistration' is not callable in /home/customer/www/sentinelswiki.com/public_html/includes/registration/ExtensionRegistry.php:539 Stack trace: #0 /home/customer/www/sentinelswiki.com/public_html/includes/registration/ExtensionRegistry.php(232): ExtensionRegistry->exportExtractedData(Array) #1 /home/customer/www/sentinelswiki.com/public_html/includes/Setup.php(161): ExtensionRegistry->loadFromQueue() #2 /home/customer/www/sentinelswiki.com/public_html/includes/WebStart.php(89): require_once('/home/customer/...') #3 /home/customer/www/sentinelswiki.com/public_html/index.php(44): require('/home/customer/...') #4 {main} thrown in /home/customer/www/sentinelswiki.com/public_html/includes/registration/ExtensionRegistry.php on line 539
As I have come to understand this is due to the two extensions having the same namespace. I have attempted to remove the files - both the extensions and from localSettings.php
However - it doesn't seem to be working. Currently there is no reference in LocalSettings.php to either extension, and yet load.php shows:
Notice: Constant NS_DYNAMICPAGELIST already defined in /home/customer/www/sentinelswiki.com/public_html/LocalSettings.php on line 174
But the LocalSettings.php does not have that in there:
the lines surrounding it:
wfLoadExtension( 'TimedMediaHandler' );
wfLoadExtension( 'PageInCat' );
wfLoadExtension( 'Bootstrap' );
# HeaderTabs Functionality
$wgHeaderTabsRenderSingleTab = true;
line 172 is the Bootstrap load and and line 175 is the headertabs comment - like 174 would of course be the line where the DPL3 was installed but is no longer.
interestingly ... it is ONLY the main page where this error occurs. If I go to any other page on the wiki directly, They load (mostly well - some errors here or there I assume are lreated to this)
I have tried clearing the JobQueue -- is there any other cache / queues or something that I can clear to force it to reload properly? 74.199.26.183 (talk) 15:41, 17 March 2021 (UTC)
- This was resolved by restarting PHP - Should have thought of that earlier. 74.199.26.183 (talk) 16:14, 17 March 2021 (UTC)
Put a template in each entry on the site
I have a widget of comments on the site, and I want to put it on every page on the site. How do I do that? Novike (talk) 16:04, 17 March 2021 (UTC)
- You could put it on MediaWiki:Sitenotice. With most skins that would put it at the very top. See Manual:Interface/Sitenotice.
- You might be able to put it on MediaWiki:Sidebar somehow: Manual:Interface/Sidebar. Jonathan3 (talk) 20:48, 17 March 2021 (UTC)
- I want to put in any value. MediaWiki: Sidenotice will not help because it puts everything at the top of the page. Novike (talk) 06:36, 18 March 2021 (UTC)
- You could edit the skin to have the sitenotice elsewhere.
- In fact, you could edit the skin to add your text wherever you like. Jonathan3 (talk) 11:00, 18 March 2021 (UTC)
- How is the skin edited? Novike (talk) 11:22, 18 March 2021 (UTC)
- From memory - probably
path/to/your/wiki/skins/skinname/index.php. Jonathan3 (talk) 22:43, 18 March 2021 (UTC)
Change Default Page Template
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello all,
unfortunately my Google skills don't seem to be enough to get the knowledge I need, because I can't imagine I'm the first one to have this question: How can I edit the default page template in MediaWiki? Meening: every time a new page is created, a certain text, design or whatever should be automatically included without me having to manually insert a template for it first? I'm guessing there's some term other than "template" for this that I just don't know or can't think of....
Thanks Tim
MediaWiki: MediaWiki 1.33.3 Earthdawn-wiki (talk) 17:31, 17 March 2021 (UTC)
- Extension:MultiBoilerplate shows a drop-down to let you select what boilerplate text to add to a new page.
- Extension:Page Forms lets you create and edit pages that have text already in them.
- I don't know how to have it so that the default text appears when creating a new page in the ordinary course of events. There are some other extensions here: Category:Page creation extensions. Jonathan3 (talk) 20:47, 17 March 2021 (UTC)
- Thank you, this might already help!
- Same with this anwer: Project:Support desk/Flow/2021/03#h-Put_a_template_in_each_entry_on_the_site-2021-03-17T16:04:00.000Z 2001:16B8:4596:6100:8544:F17E:D161:ED72 (talk) 11:05, 18 March 2021 (UTC)
How to "lose weight" in a wiki?
Hello
I realize that the more I erase unnecessary pages, the more the number of pages increases in the statistics.
How can I purge deleted pages from the database?
I use Mediawiki 1.30 Gennievre (talk) 18:53, 17 March 2021 (UTC)
Create and track transactions / sets of changes
Hi,
I had a few questions about change management / propagation. Specifically, I understand that MediaWiki follows the "go ahead - make changes" principal but wanted to know whether there are any layers of protection we can add especially for downstream data consumers.
1) We are currently using categories to track changes that people have made that are "in progress" or "to be reviewed" before they are committed. Is there a better way of going about doing this or forcing this behavior? I have seen Protected Pages as a way to prevent changes to a page, but is there a way to propose edits etc?
2) If user 1 is making changes to pages A, B, and C is there a way to "group" those changes together and identify those were made as one "transaction" and separate from the changes that user 2 is making to pages A, B, and D? (Following the above, one idea was to create a category for each of these sets, but that is quite manual and tedious).
3) I'm hoping to integrate the data contained in MediaWiki with some downstream services and would like changes to the wiki (tracked through EvenBus) to be grouped in sets. I.e. I make a change on page A, B, and C and I want those to be able to group those together. Is that something that is possible / identify those changes in a "transaction" on the change propagation consumer?
Thanks!! Nnaka1 (talk) 20:33, 17 March 2021 (UTC)
- Extension:Approved Revs might help with question 1. Jonathan3 (talk) 20:42, 17 March 2021 (UTC)
Issues Getting shortURLs to work with VisualEditor -- Error contacting the Parsoid/RESTBase server (HTTP 500)
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, there! I'm trying to get short urls to work on my wiki AND get visual editor to work. I've been having problems with the latter task. Here's my setup:
Wiki LinkShared hosting, Siteground
Apache/Nginx Compatible Server
No Root Access
Product
|
Version
|
|---|---|
MediaWiki
|
1.35.1
|
PHP
|
7.3.25 (cgi-fcgi)
|
MySQL
|
5.7.26-29-log
|
ICU
|
63.2
|
My installation is nested in a /w folder, and I have an .htaccess file in the root folder (public_html) where the /w folder is installed. Here's my .htaccess:
RewriteEngine On
# main rewrite rule
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L]
# Redirect / to Main Page
RewriteRule ^/*$ %{DOCUMENT_ROOT}/w/index.php [L]
And I added the following snippet to the LocalSettings.php:
$wgScriptPath = "/w";
$wgArticlePath = "/wiki/$1";
As a result, I went from getting wiki.example.com/index.php?title=Main_Page to wiki.example.com/Main_Page.
I followed the manual here with hopes of getting short URLs to work, which it looks as though it works. The problem is, when I enabled VisualEditor and attempted to edit the main page, for example, I get the following error:
Error contacting the REST/Parsoid Base server
(HTTP 500)
I've consulted the troubleshooting section of the VE page for this error, but I'm getting nothing.
Could I request help on this matter? Thanks a ton! Orribu (talk) 22:12, 17 March 2021 (UTC)
- bump, still having no such luck with solving this. Orribu (talk) 20:05, 19 March 2021 (UTC)
- I've added a dummy account with editing permissions so that anyone willing to help can observe the problem directly.
User: TestuserPass: debugOrribu (talk) 20:20, 20 March 2021 (UTC)- Ah, disregard my comment, I think we already spoke about this in a different thread. TiltedCerebellum (talk) 20:29, 20 March 2021 (UTC)
- Oh yeah no worries! Orribu (talk) 03:13, 21 March 2021 (UTC)
- Bump again. I could really use some help! Orribu (talk) 21:42, 22 March 2021 (UTC)
- Have you seen:
- Manual talk:Short URL/Archive 3/Flow export#h-Visual_Editor_seems_to_defeat_attempts_at_short_URLs-2020-12-31T08:04:00.000Z
- And:
- https://phabricator.wikimedia.org/T270376
- Just thinking some of the other examples in that might help (like kghbln's example maybe, in the absence of a better suggestion from a help desk person I mean--hopefully someone can help you out soon!)?
- You should be getting (and going to) a url like (for viewing a page)
wiki.example.com/wiki/Main_Pageand (for editing a page) you should be getting (and going to)wiki.example.com/w/... - I.e., make sure you yourself are going to and trying the new URL structure, not the old one?--I'm sure you probably already know that, if so please ignore... your example just made this thought cross my mind since I tested the wrong URL at first without thinking. TiltedCerebellum (talk) 22:39, 22 March 2021 (UTC)
- Oh hey @TiltedCerebellum! Thanks for passing these along; I actually ran into the phabricator bug report when I was running around! It definitely seems like we have the same issue just about. I can't thank you enough for your time!
- So just to clarify, what exactly do you mean when you mention New vs. Old URL structure? I'm guessing it's
wiki.example.com/wiki/main_page vs.wiki.example.com/wiki/index.php...but I wanted to double check! - From what I see, for some reason the edit page calls
wiki.twistedfates.net/w/index.php?title=Main_Page&veaction=editbut apparently redirects towiki.twistedfates.net/wiki/Main_Page?veaction=edit, and that's where I run smack into a brick wall. - I tried changing the
/wiki/to/w/and got a 404. Orribu (talk) 02:46, 24 March 2021 (UTC) - Yep, I was referring to
wiki.example.com/wiki/Main_Page, apologies, I was confused by this bit: "As a result, I went from gettingwiki.example.com/index.php?title=Main_Pagetowiki.example.com/Main_Page" and just wanted to make sure you were now trying it at:wiki.example.com/wiki/Main_Pagewhich yes, of course you were, silly me. If it was a 404, perhaps your htaccess rules weren't quite right yet (I wish I wasn't lousy at understanding these lol). I'm gettingError contacting the Parsoid/RESTBase server (HTTP 500)rather than a 404 error when accessing that edit url. What (if any) additional VE config lines do you have set in LocalSettings.php other than just enabling VE with:wfLoadExtension( 'VisualEditor' );?--Now that VE is built in, usually that's all that's required with the setup. - Also, did you install using MediaWiki's official release and instructions or was it from an automated installer provided by your hosting provider (siteground I think looking at whois info)?
- I'm not sure if this info is up to date given the current version and integration with 1.35 but it's worth a look:
- https://www.mediawiki.org/wiki/Extension:VisualEditor#Troubleshooting TiltedCerebellum (talk) 17:35, 26 March 2021 (UTC)
- Heya, thanks for getting back to me!
- Sorry for the confusion! That's weird you got a 404, I'm still getting a 500 when I try the edit link!
- I don't have any VE configuration lines aside from enabling it.
- It was an automated installer provided by my hosting provider; do you think I should try a fresh install from the site itself?
- Thanks for the link! Orribu (talk) 19:09, 30 March 2021 (UTC)
- @TiltedCerebellum, I think I figured it out. I installed Mediawiki from the site itself instead of going through my provider and it looks like all those permission issues and other things aren't an issue!
- Thank you, friend! I really appreciate your help! Orribu (talk) 06:27, 1 April 2021 (UTC)
- Yep, this turns out to be the cause pretty frequently, unfortunately. Always better to use the official MW files and installation instructions. Glad you got it working! Yw and cheers! TiltedCerebellum (talk) 20:24, 3 April 2021 (UTC)
how to display the subfolders of a wikisource main namespace page?
Lost my way naming and relating sub-folders in a Wikisource project. Is there a script or an extension available like the <CategoryTree> which lets me examine a folder structure?Ineuw talk 01:02, 18 March 2021 (UTC)
- what's a subfolder? Bawolff (talk) 10:45, 18 March 2021 (UTC)
- Like
- Title/Chapter 1
- Title/Chapter 2/Part1
- Title/Chapter 2/Part2
- etc. where the page Title is the root — Ineuw talk 00:41, 19 March 2021 (UTC)
- Are you talking about Help:Subpages? The Category Tree extension can provide tree views of categories or pages, or a mix of both. TiltedCerebellum (talk) 17:01, 19 March 2021 (UTC)
help me my pass was block
hello anyone who can help me please? 49.150.32.12 (talk) 03:47, 18 March 2021 (UTC)
- Impossible to say without knowing how to help... Please read the sidebar; thanks. Malyacko (talk) 07:04, 18 March 2021 (UTC)
- Project:Support desk/Header/en TiltedCerebellum (talk) 05:32, 19 March 2021 (UTC)
email no longer valid
I have a account: with:
name: gibra
email: giorgio.brausi@ringsoft.net
but mail email no longer exists (domain terminated) therefore I can't able to request for lost password, to login in Wikipedia.
How I do to solve this problem?
My current email is giorgio@gbrausi.uu.me
Thank. 146.241.212.120 (talk) 06:59, 18 March 2021 (UTC)
- If you're logged in at least one device you should be able to use Special:ChangePassword to change the password. If you're not, you should just create another account. It seems your account exists only on English Wikipedia and you have 0 edits. So surely creating a new account is just the simple thing to do here. – Ammarpad (talk) 08:15, 18 March 2021 (UTC)
Survey post-donation
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, where can I found the translations of the survey which can be compiled after making the donation to Wikimedia in these days? Superchilum (talk) 07:43, 18 March 2021 (UTC)
- no idea. This is the wrong place to ask. Maybe someone at meta:Wikimedia Forum can point you in the right direction. Bawolff (talk) 10:47, 18 March 2021 (UTC)
- Thank you, I'll ask there :) Superchilum (talk) 11:39, 18 March 2021 (UTC)
How do I upgrade my wiki version?
1.31 = 1.35 Novike (talk) 10:21, 18 March 2021 (UTC)
How can I make the email next to the real name appear in the Welcome template?
? Novike (talk) 11:51, 18 March 2021 (UTC)
- @Novike What "Welcome template" where? Please provide steps to reproduce. When you write "email", do you maybe mean "email address" instead? Malyacko (talk) 23:13, 18 March 2021 (UTC)
- Yes. With New User Message extension Novike (talk) 10:40, 19 March 2021 (UTC)
- Extension:NewUserMessage Novike (talk) 10:41, 19 March 2021 (UTC)
Group results by page
English:In "Special:Recent Changes", "Group results by page" is turned on by default. How can I turn it off by default, just like Wikipedia?
Japanese:「特別:最近の更新」では、「ページごとにまとめて表示」がデフォルトでオンになっていますが、これをWikipediaと同じようにデフォルトでオフにするにはどうすればよいでしょうか? 133.106.192.168 (talk) 14:06, 18 March 2021 (UTC)
- Configure
usenewrcvia $wgDefaultUserOptions and set it to 0, to set the default preference of everyone to not collapse recent changes per page. —TheDJ (Not WMF) (talk • contribs) 15:38, 18 March 2021 (UTC)
Mediawiki won't install
Hello, I am currently trying to install mediawiki and am a bloody newbie to this topic. I installed Filezilla and logged into my webserver. Since there are already some folders inside, my first problem is that I dont know where to put the mediawiki files. I experimented and loaded it in the same folder where my wordpress website is in, but nothing happened. I watched a tutorial where it is shown that you can open your webserveradress with mediawiki already on it after you loaded the extracted files on your webserver, but nothing happened. I watched a lot of tutorials and I could nowhere find a user interface shown in filezilla that looked like mine. Please help! Lea93wiki93 (talk) 14:09, 18 March 2021 (UTC)
- Put it in a folder called
/wor something. See Manual:Installing MediaWiki. Good luck. Jonathan3 (talk) 23:05, 18 March 2021 (UTC)
Ideas for category lists workflow
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 want to reviev the pages in a category everyday. Per day i can review lets say 10 Pages.
Great for that would be a system to keep track at least a bit where I am at. Because categories only structure by Name and the wiki itself and its pages change weekly.
Systems where I create my own structure with category:xy|01; category:xy|02 etc. will fail because with every creation of a new page I have to look at which number I am at, thats way too complicated.
I could export the list everyday and let a program number it, but that feels weird (where i say: monday 1-10, tuesday 11-20 etc.)
Any ideas to solve that? Workarounds to sort categories by date of creation? Bedtry (talk) 20:17, 18 March 2021 (UTC)
- You could use a Extension:Cargo table with just a date field, for the date you last reviewed the page. It could be included on the page using a template, though you'd not need to display the date on the page if you didn't want to. You could edit the page using a Extension:Page Forms form, with the main part of the page in a "free text" section and the date as a datepicker/date input.
- Or you could use use Extension:DynamicPageList3, e.g. if you want to review the pages that were edited the longest time ago, you could show the oldest 10 by:
- Jonathan3 (talk) 23:03, 18 March 2021 (UTC)
{{#dpl: |category= |ordermethod=lastedit |order=ascending |count=10 }} - "Workarounds to sort categories by date of creation?"
- Jonathan3 (talk) 23:10, 18 March 2021 (UTC)
{{#dpl: |category= |ordermethod=firstedit }} - Looked into it and that should really work for my needs. Problem is I am still at 1.41 and have never updated my wiki. Tried do install dynamic page list but i does not work on 1.41.
- Dont really know alot about mediawiki it so i would have to take the time to read into how to upgrade. But when I have the time dynamic page list could work great. Thanks! Bedtry (talk) 11:11, 19 March 2021 (UTC)
- What's 1.41?
- It's a simple DPL query so should work with Extension:DynamicPageList (Wikimedia). You might have more luck with that on an old MediaWiki version. It seems on that it'd be
ordermethod=created. Jonathan3 (talk) 13:47, 19 March 2021 (UTC) - 1.41 is the version of mediawiki i am on.
- Tried to install dynamic page list (wikimedia) and it worked wonders. Thats exactly what i needed! Thanks alot! Bedtry (talk) 23:51, 20 March 2021 (UTC)
Special:RecentChanges. Less_Exception_Compiler
I get the following exception when viewing Recent Changes.
2021-03-19 03:42:47: Fatal exception of type "Less_Exception_Compiler"
Turning on wgShowExceptionDetails gave no additional details.
site: www.dustloop.com
| MediaWiki | 1.35.1 |
| PHP | 7.4.16 (fpm-fcgi) |
| MariaDB | 10.2.37-MariaDB |
Shtkn (talk) 03:58, 19 March 2021 (UTC)
- i found the source of the error: some of the .less files under \resources\src\mediawiki.rcfilters\styles had some file names cut off. replacing those files files fixed this issue. Shtkn (talk) 04:04, 21 March 2021 (UTC)
Creation date of an article
How to get the creation date of an article?
I found an old wiki site [1] which provides a solution as magic words, but the templates aren't available anymore.
[1] https://bjohas.de/wiki/Mediawiki/FIRSTREVISION S0ring (talk) 08:07, 19 March 2021 (UTC)
- Just use this wikitext:
{{REVISIONDAY}} {{REVISIONMONTH}} {{REVISIONYEAR}} - See Help:Magic_words#Technical_metadata > "Latest revision to current page" for more options. Stefahn (talk) 09:51, 19 March 2021 (UTC)
- Thanks, I am not interested about lastest revision but the first one, the creation revision. S0ring (talk) 10:11, 19 March 2021 (UTC)
- simply
https://bjohas.de/wiki/Mediawiki/FIRSTREVISION?action=infohttps://bjohas.de/wiki/Mediawiki/FIRSTREVISION?action=history- Greetings Gib Senf dazu! (talk) 10:55, 19 March 2021 (UTC)
- You could get this information on a wiki page easily with DynamicPageList3 or Cargo. Jonathan3 (talk) 13:42, 19 March 2021 (UTC)
- @Gib Senf dazu! I guess my question wasn't good enough formulated, sorry about it.
- My intent is to define new variables similar to
{{FIRSTREVISIONTS}} {{FIRSTREVISIONDATE}} {{FIRSTREVISIONTIME}}S0ring (talk) 15:46, 19 March 2021 (UTC) - Maybe you could create a template (with capital letters so you can imagine it as a variable) using DPL3/Cargo. Jonathan3 (talk) 15:50, 19 March 2021 (UTC)
- Or Manual:Variable might be a good starting point. Jonathan3 (talk) 15:54, 19 March 2021 (UTC)
- There is no such variable implemented in MediaWiki core yet.
- I am afraid this will not happen since not really requested in WMF wikis.
- You might create and implement your own private parser functions, as mentioned.
- Another approach is to use JavaScript gadgets and query via API whatever you want and insert it into page wherever you want. Gib Senf dazu! (talk) 11:22, 22 March 2021 (UTC)
не могу активировать акк
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Здравствуйте, при активации акк в программе постер про активация не проходит ни в ручном режиме не в автоматическом. Выходит браузер и больше ни каких действий. в браузере пишет что отсутствуют api ключи 188.65.242.191 (talk) 08:32, 19 March 2021 (UTC)
- What is an "acc"? What "poster"? Is this about the MediaWiki software at all? Malyacko (talk) 15:06, 19 March 2021 (UTC)
- its russian for "Hello, when you activate the acc in the program, the poster about activation does not take place either in manual mode or in automatic mode. The browser comes out and no more action. the browser says that there are no api keys" 152.22.65.22 (talk) 00:36, 20 March 2021 (UTC)
- nevermind (please delete that post) 152.22.65.22 (talk) 00:37, 20 March 2021 (UTC)
How to add loading="lazy" to all <img> tags?
I'd like to speed up my wikis by adding <code>loading="lazy"</code> to all <code><img></code> tags. I searched for 20 minutes to see if it's already in core and found https://phabricator.wikimedia.org/T148047, which seems to be stuck because of printing issues.
There's an older extension Extension:Lazyload which uses a different approach, is in beta and seems buggy and unmaintained.
Can anyone say if this is on the road map?
And: Which core file would I have to modify to add <code>loading="lazy"</code> so that all sites load faster?
Thanks!
PS: See https://web.dev/browser-level-image-lazy-loading/ for an explanation of <code>loading="lazy"</code>. Stefahn (talk) 09:47, 19 March 2021 (UTC)
- I managed to work something out for external images but not yet for internal ones. Put this in LocalSettings.php:
- Jonathan3 (talk) 11:42, 19 March 2021 (UTC)
$wgAllowExternalImages = true; function makeExternalLazyImages ( &$url, &$alt, &$img ) { $img = Html::element( 'img', [ 'src' => $url, 'alt' => $alt, 'loading' => 'lazy' ] ); return false; } $wgHooks['LinkerMakeExternalImage'][] = 'makeExternalLazyImages'; - There's Manual:$wgNativeImageLazyLoading Ciencia Al Poder (talk) 21:47, 19 March 2021 (UTC)
- Thanks. This is great news. I created a redirect Lazy loading to save other people time finding that configuration setting. Stefahn (talk) 15:02, 22 March 2021 (UTC)
- Haha - ignore my reply then :-) Jonathan3 (talk) 21:54, 19 March 2021 (UTC)
- Thanks for this and cheers! I wasn't aware they had added that yet either wooohooo! Heheheh. :-) TiltedCerebellum (talk) 20:40, 20 March 2021 (UTC)
MediaWiki not working after latest upgrade (on Synology)
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.
Hardware:
Synology DS213
SW:
DSM 6.2.4-25556
Apache HTTP Server 2.2.34-0020
phpMyAdmin 4.9.6-0187
PHP 7.3.16-0008
MariaDB 10.3.21-0063
Web Station 2.1.9-0157
MediaWiki 1.35.1-0140
Error report:
2021/03/09 12:38:09 (system) trigger MediaWiki 1.33.1-0136 Begin start-stop-status stop
pkg-WebStation-php72 start/running, process 1076
2021/03/09 12:38:09 (system) trigger MediaWiki 1.33.1-0136 End start-stop-status stop ret=[0]
2021/03/09 12:39:49 (system) trigger MediaWiki 1.33.1-0136 Begin start-stop-status start
pkg-WebStation-php72 start/running, process 2983
2021/03/09 12:39:49 (system) trigger MediaWiki 1.33.1-0136 End start-stop-status start ret=[0]
2021/03/09 16:17:24 (system) trigger MediaWiki 1.33.1-0136 Begin start-stop-status stop
pkg-WebStation-php72 start/running, process 7890
2021/03/09 16:17:27 (system) trigger MediaWiki 1.33.1-0136 End start-stop-status stop ret=[0]
2021/03/09 16:19:26 (system) trigger MediaWiki 1.33.1-0136 Begin start-stop-status start
pkg-WebStation-php72 start/running, process 11593
2021/03/09 16:19:27 (system) trigger MediaWiki 1.33.1-0136 End start-stop-status start ret=[0]
2021/03/09 23:18:03 upgrade MediaWiki 1.33.1-0136 Begin start-stop-status stop
pkg-WebStation-php72 start/running, process 26233
2021/03/09 23:18:04 upgrade MediaWiki 1.33.1-0136 End start-stop-status stop ret=[0]
2021/03/09 23:18:07 upgrade MediaWiki 1.33.1-0136 Begin preupgrade
2021/03/09 23:18:09 upgrade MediaWiki 1.33.1-0136 End preupgrade ret=[0]
2021/03/09 23:18:09 upgrade MediaWiki 1.33.1-0136 Begin preuninst
rm: refusing to remove '.' or '..' directory: skipping '/volume1/@appstore/.mediawiki/extensions/.'
2021/03/09 23:23:00 upgrade MediaWiki 1.33.1-0136 End preuninst ret=[0]
2021/03/09 23:23:01 upgrade MediaWiki 1.33.1-0136 Begin /bin/rm -rf /volume1/@appstore/MediaWiki
2021/03/09 23:23:02 upgrade MediaWiki 1.33.1-0136 End /bin/rm -rf /volume1/@appstore/MediaWiki ret=[0]
2021/03/09 23:23:03 upgrade MediaWiki 1.33.1-0136 Begin postuninst
2021/03/09 23:23:23 upgrade MediaWiki 1.33.1-0136 End postuninst ret=[0]
2021/03/09 23:23:24 upgrade MediaWiki 1.35.1-0140 Begin preinst
2021/03/09 23:23:24 upgrade MediaWiki 1.35.1-0140 End preinst ret=[0]
2021/03/09 23:23:24 upgrade MediaWiki 1.35.1-0140 Begin /bin/rm -rf /volume1/@appstore/MediaWiki
2021/03/09 23:23:24 upgrade MediaWiki 1.35.1-0140 End /bin/rm -rf /volume1/@appstore/MediaWiki ret=[0]
2021/03/09 23:23:24 upgrade MediaWiki 1.35.1-0140 Begin /bin/mv -f /volume1/@tmp/pkginstall/package /volume1/@appstore/MediaWiki
2021/03/09 23:23:25 upgrade MediaWiki 1.35.1-0140 End /bin/mv -f /volume1/@tmp/pkginstall/package /volume1/@appstore/MediaWiki ret=[0]
2021/03/09 23:23:25 upgrade MediaWiki 1.35.1-0140 Begin /bin/mkdir -p /var/packages/MediaWiki
2021/03/09 23:23:25 upgrade MediaWiki 1.35.1-0140 End /bin/mkdir -p /var/packages/MediaWiki ret=[0]
2021/03/09 23:23:25 upgrade MediaWiki 1.35.1-0140 Begin /bin/mv -f /volume1/@tmp/pkginstall/INFO /var/packages/MediaWiki/INFO
2021/03/09 23:23:25 upgrade MediaWiki 1.35.1-0140 End /bin/mv -f /volume1/@tmp/pkginstall/INFO /var/packages/MediaWiki/INFO ret=[0]
2021/03/09 23:23:25 upgrade MediaWiki 1.35.1-0140 Begin /bin/rm -rf /var/packages/MediaWiki/scripts
2021/03/09 23:23:25 upgrade MediaWiki 1.35.1-0140 End /bin/rm -rf /var/packages/MediaWiki/scripts ret=[0]
2021/03/09 23:23:25 upgrade MediaWiki 1.35.1-0140 Begin /bin/mv -f /volume1/@tmp/pkginstall/scripts /var/packages/MediaWiki/scripts
2021/03/09 23:23:26 upgrade MediaWiki 1.35.1-0140 End /bin/mv -f /volume1/@tmp/pkginstall/scripts /var/packages/MediaWiki/scripts ret=[0]
2021/03/09 23:23:26 upgrade MediaWiki 1.35.1-0140 Begin /bin/rm -rf /var/packages/MediaWiki/WIZARD_UIFILES
2021/03/09 23:23:26 upgrade MediaWiki 1.35.1-0140 End /bin/rm -rf /var/packages/MediaWiki/WIZARD_UIFILES ret=[0]
2021/03/09 23:23:26 upgrade MediaWiki 1.35.1-0140 Begin /bin/mv -f /volume1/@tmp/pkginstall/WIZARD_UIFILES /var/packages/MediaWiki/WIZARD_UIFILES
2021/03/09 23:23:26 upgrade MediaWiki 1.35.1-0140 End /bin/mv -f /volume1/@tmp/pkginstall/WIZARD_UIFILES /var/packages/MediaWiki/WIZARD_UIFILES ret=[0]
2021/03/09 23:23:26 upgrade MediaWiki 1.35.1-0140 Begin /bin/rm -rf /var/packages/MediaWiki/conf
2021/03/09 23:23:26 upgrade MediaWiki 1.35.1-0140 End /bin/rm -rf /var/packages/MediaWiki/conf ret=[0]
2021/03/09 23:23:26 upgrade MediaWiki 1.35.1-0140 Begin /bin/mv -f /volume1/@tmp/pkginstall/conf /var/packages/MediaWiki/conf
2021/03/09 23:23:26 upgrade MediaWiki 1.35.1-0140 End /bin/mv -f /volume1/@tmp/pkginstall/conf /var/packages/MediaWiki/conf ret=[0]
2021/03/09 23:23:27 upgrade MediaWiki 1.35.1-0140 Begin postinst
pkg-WebStation-php73 start/running, process 31991
PHP Warning: PHP Startup: Unable to load dynamic library 'mcrypt.so' (tried: /usr/local/lib/php73/modules/mcrypt.so (/usr/local/lib/php73/modules/mcrypt.so: cannot open shared object file: No such file or directory), /usr/local/lib/php73/modules/mcrypt.so.so (/usr/local/lib/php73/modules/mcrypt.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'mcrypt.so' (tried: /usr/local/lib/php73/modules/mcrypt.so (/usr/local/lib/php73/modules/mcrypt.so: cannot open shared object file: No such file or directory), /usr/local/lib/php73/modules/mcrypt.so.so (/usr/local/lib/php73/modules/mcrypt.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'mysql.so' (tried: /usr/local/lib/php73/modules/mysql.so (/usr/local/lib/php73/modules/mysql.so: cannot open shared object file: No such file or directory), /usr/local/lib/php73/modules/mysql.so.so (/usr/local/lib/php73/modules/mysql.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Fatal error: Cannot declare class Maintenance, because the name is already in use in /volume1/web/mediawiki/maintenance/includes/Maintenance.php on line 55
Fatal error: Cannot declare class Maintenance, because the name is already in use in /volume1/web/mediawiki/maintenance/includes/Maintenance.php on line 55
mv: cannot stat '/var/packages/MediaWiki/target/synology_added/htaccess_php.conf': No such file or directory
2021/03/09 23:28:08 upgrade MediaWiki 1.35.1-0140 End postinst ret=[0]
2021/03/09 23:28:08 upgrade MediaWiki 1.35.1-0140 Begin postupgrade
2021/03/09 23:28:08 upgrade MediaWiki 1.35.1-0140 End postupgrade ret=[0]
2021/03/09 23:28:29 upgrade MediaWiki 1.35.1-0140 Begin start-stop-status start
pkg-WebStation-php73 start/running, process 5975
2021/03/09 23:28:30 upgrade MediaWiki 1.35.1-0140 End start-stop-status start ret=[0]
2021/03/09 23:28:50 upgrade MediaWiki 1.35.1-0140 Begin /bin/rm -rf /volume1/@tmp/pkginstall
2021/03/09 23:28:50 upgrade MediaWiki 1.35.1-0140 End /bin/rm -rf /volume1/@tmp/pkginstall ret=[0]
Question:
Synology has recommended to contact MediaWiki with this error report. Does anybody know what the problem might be? PeterinKorea (talk) 13:00, 19 March 2021 (UTC)
- Please provide steps (commands) how you update. Malyacko (talk) 15:05, 19 March 2021 (UTC)
- Using Synology Package Centre I selected the MediaWiki version 1.35 update button which was available at that time PeterinKorea (talk) 12:38, 20 March 2021 (UTC)
- FYI.. I got the same thing using the installer from Synology on a fresh install (not an upgrade).
- Fatal error: Cannot declare class Maintenance, because the name is already in use in /volume1/web/mediawiki/maintenance/includes/Maintenance.php on line 55 MikeDarling (talk) 20:01, 29 March 2021 (UTC)
- Have you contacted Synology yet? PeterinKorea (talk) 12:29, 31 March 2021 (UTC)
- honestly sounds like something broken on the synology end. Maybe multiple versions installed at once.
- Generally speaking we reccomend using the official package over synology's version. We don't know what synology has changed from our version so its difficult for us to provide help. Bawolff (talk) 06:07, 20 March 2021 (UTC)
- I agree with your assessment that it is probably at the Synology end but I have to try this route first. I have only a single version of MediaWiki.
- I understand your opinion about using the official package. However the MediaWiki package provided by Synology has been working fine for the last couple of years and as a newbie I prefer this route. PeterinKorea (talk) 12:44, 20 March 2021 (UTC)
- Malyacko, did you find a solution to this problem? I have the same issue. 195.206.189.192 (talk) 12:09, 29 March 2021 (UTC)
- No I'm still looking for a solution. Have you contacted Synology yet? PeterinKorea (talk) 12:18, 31 March 2021 (UTC)
- I have the same error using the synology package. How would you perform an install using the downloaded version? Backscheider (talk) 15:33, 30 March 2021 (UTC)
- How far did you get? PeterinKorea (talk) 12:26, 31 March 2021 (UTC)
- Synology MediaWiki is set to work with PHP 7.3.16 while the compatibility list from mediawiki shows 1.35 version is compatible with php7.3.x from 7.3.19 and higher, and any version of PHP 7.4 from 7.4.3 and higher.. I have reported this to Synology but they claim that MediaWiki works fine with PHP 7.3.16 and the later updates are for CVE issues PeterinKorea (talk) 12:25, 31 March 2021 (UTC)
- Does anyone know what the issues were for MediaWiki with PHP 7.3.16? PeterinKorea (talk) 12:36, 31 March 2021 (UTC)
- I found a solution; open /volume1/web/mediawiki/maintenance/Maintenance.php, and change "abstract class Maintenance" to "abstract class OtherMaintenance". The problem is that the class Maintenance is declared in both
- /volume1/web/mediawiki/maintenance/Maintenance.php and
- /volume1/web/mediawiki/maintenance/includes/Maintenance.php
- This is probably not the optimal solution, but it worked for me. 2601:500:C301:1DF0:D9B6:9606:27C8:A4BC (talk) 16:50, 31 March 2021 (UTC)
- Thanks for the suggestion but I still get a blank page at mw-config/index.php.
- I somehow cannot get php error messages on screen, I tried enabling errors in the php7.43 settings.. I did try
- $ cd mw-config
- $ php73 update.php
- and the Maintenance error is gone, so something did improve. (There I get a follow-up message that LocalSettings.php is not present which is as I expected).
- I still get the mcrypt.so and mysqli.so not found warning. Did you solve this problem? PeterinKorea (talk) 13:53, 2 April 2021 (UTC)
- This solution works for me to.
- After upgrade to MediaWiki 1.35.1-0140 on Synology DSM 6.2.3-25426 Update 3, my backup script gave the error "PHP Fatal error: Cannot declare class Maintenance, because the name is already in use in /volume1/web/mediawiki/maintenance/includes/Maintenance.php on line 55".
- My maintenance script had to be changed to use php73 instead of php72.
- I also had an unrelated problem in LocalSettings.php when trying to open my wiki after upgrade: "Parse error: syntax error, unexpected '<first letters of my DB password>' (T_STRING) in /volume1/web/mediawiki/LocalSettings.php on line 62". It looks like that all text on this line was inserted in the middle of the DB password. After removing the inserted text, it worked again. Hansakelund (talk) 08:52, 1 April 2021 (UTC)
- Thanks for your suggestions.
- However as mentioned in my answer to 2601:500:C301:1DF0:D9B6:9606:27C8:A4BC I am still stuck, but tried installing using the mw-config/index.php page.
- Your answer (involving php73) seems to imply you use a script to setup LocalSettings.php, What script are you referring to? PeterinKorea (talk) 14:16, 2 April 2021 (UTC)
- I am using a script to regularly copy my internal wiki from one Synology NAS to another Synology NAS, this script uses in turn some scripts in the maintenance/ directory. This script does not touch LocalSettings.php.
- The problem I had with LocalSettings.php showed as an error message in the web browser when trying to access the wiki and has (most probably) nothing to do with that the class Maintenance is declared twice. Hansakelund (talk) 08:52, 3 April 2021 (UTC)
- I have downloaded MediaWiki from the MediaWiki site and compared the files with the ones from Synology and noticed there are differences:
- diff -rq mediawiki-1.35.1 /volume1/web/mediawiki
- Only in /volume1/web/mediawiki: disabled.html
- Files mediawiki-1.35.1/includes/DefaultSettings.php and /volume1/web/mediawiki/includes/DefaultSettings.php differ
- Files mediawiki-1.35.1/includes/installer/Installer.php and /volume1/web/mediawiki/includes/installer/Installer.php differ
- Files mediawiki-1.35.1/includes/installer/MysqlInstaller.php and /volume1/web/mediawiki/includes/installer/MysqlInstaller.php differ
- Files mediawiki-1.35.1/includes/PHPVersionCheck.php and /volume1/web/mediawiki/includes/PHPVersionCheck.php differ
- Files mediawiki-1.35.1/includes/templates/NoLocalSettings.mustache and /volume1/web/mediawiki/includes/templates/NoLocalSettings.mustache differ
- Only in /volume1/web/mediawiki/maintenance: Maintenance - Copy.php
- Files mediawiki-1.35.1/maintenance/Maintenance.php and /volume1/web/mediawiki/maintenance/Maintenance.php differ
- Take for example the maintenance.php from MediaWiki is only 2 kB versus 47.6 kB from Synology and the one from MediaWiki does not contain the "abstract class Maintenance", PeterinKorea (talk) 12:16, 3 April 2021 (UTC)
- Hi, not sure if my findings are of any help, but please see my SOLVED trouble, which very much sounds like this one here. You can find my findings in this threat: Problems to access the MariaDB on a Synology Diskstation after update...
- Hope you get it working again! Good luck! RalliHH (talk) 08:57, 5 April 2021 (UTC)
- Finally Synology admitted that something went wrong. They disabled "pcre jit" in the /usr/local/etc/php73/cli/conf.d/SYNO.SDS.MediaWiki.ini file. After restoring LocalSettings.php, images and extensions my web pages miraculously appeared.
- Thank you for all your support PeterinKorea (talk) 12:07, 9 April 2021 (UTC)
script '/app/index.php' (request: "GET /index.php") executing too slow
- Hi. I've had a wiki on Mediawiki 1.35.0 running for a few months. Recently, I decided to move the server over to Heroku from another server. That server worked just fine - loaded pages in a second or two, but was otherwise tolerable. I moved it hoping that I could get faster performance. That has not been the case.
- Because I moved it to Heroku, I followed this guide: https://gist.github.com/caseywatts/d04bda6626ef2c6c8f97 which detailed all the necessary steps. After much configuration, I managed to get it working. Almost immediately, though, I noticed something was wrong. Pages loaded in up to 7 seconds rather than 1 or 2 (or less!). Looking at the Heroku logs, I got this error:
2021-03-19T17:50:32.165800+00:00 app[web.1]: [19-Mar-2021 17:50:32] WARNING: [pool www] child 146, script '/app/index.php' (request: "GET /index.php") executing too slow (3.141262 sec), logging2021-03-19T17:50:32.174734+00:00 app[web.1]:2021-03-19T17:50:32.174868+00:00 app[web.1]: [19-Mar-2021 17:50:32] [pool www] pid 1462021-03-19T17:50:32.174972+00:00 app[web.1]: script_filename = /app/index.php2021-03-19T17:50:32.175203+00:00 app[web.1]: [0x00007fcfdf015170] query() /app/includes/libs/rdbms/database/DatabaseMysqli.php:462021-03-19T17:50:32.175435+00:00 app[web.1]: [0x00007fcfdf0150f0] doQuery() /app/includes/libs/rdbms/database/Database.php:13762021-03-19T17:50:32.175694+00:00 app[web.1]: [0x00007fcfdf014f70] executeQueryAttempt() /app/includes/libs/rdbms/database/Database.php:12942021-03-19T17:50:32.175928+00:00 app[web.1]: [0x00007fcfdf014dc0] executeQuery() /app/includes/libs/rdbms/database/Database.php:12232021-03-19T17:50:32.176153+00:00 app[web.1]: [0x00007fcfdf014cd0] query() /app/includes/libs/rdbms/database/Database.php:19072021-03-19T17:50:32.176377+00:00 app[web.1]: [0x00007fcfdf014c00] select() /app/includes/libs/rdbms/database/Database.php:17462021-03-19T17:50:32.176608+00:00 app[web.1]: [0x00007fcfdf014ab0] selectField() /app/includes/libs/rdbms/database/DBConnRef.php:682021-03-19T17:50:32.176842+00:00 app[web.1]: [0x00007fcfdf0149e0] __call() /app/includes/libs/rdbms/database/DBConnRef.php:3002021-03-19T17:50:32.177073+00:00 app[web.1]: [0x00007fcfdf014920] selectField() /app/includes/cache/localisation/LCStoreDB.php:642021-03-19T17:50:32.177307+00:00 app[web.1]: [0x00007fcfdf014880] get() /app/includes/cache/localisation/LocalisationCache.php:4302021-03-19T17:50:32.177566+00:00 app[web.1]: [0x00007fcfdf0147c0] loadSubitem() /app/includes/cache/localisation/LocalisationCache.php:3332021-03-19T17:50:32.177781+00:00 app[web.1]: [0x00007fcfdf014720] getSubitem() /app/languages/Language.php:26452021-03-19T17:50:32.177997+00:00 app[web.1]: [0x00007fcfdf0146b0] getMessage() /app/includes/cache/MessageCache.php:10302021-03-19T17:50:32.178237+00:00 app[web.1]: [0x00007fcfdf0145b0] getMessageForLang() /app/includes/cache/MessageCache.php:9882021-03-19T17:50:32.178486+00:00 app[web.1]: [0x00007fcfdf014500] getMessageFromFallbackChain() /app/includes/cache/MessageCache.php:9302021-03-19T17:50:32.178694+00:00 app[web.1]: [0x00007fcfdf014430] get() /app/includes/language/Message.php:13042021-03-19T17:50:32.178915+00:00 app[web.1]: [0x00007fcfdf014390] fetchMessage() /app/includes/language/Message.php:8622021-03-19T17:50:32.179118+00:00 app[web.1]: [0x00007fcfdf0142d0] toString() /app/includes/language/Message.php:9542021-03-19T17:50:32.179376+00:00 app[web.1]: [0x00007fcfdf014270] text() /app/extensions/FlaggedRevs/frontend/RevisionReviewFormUI.php:3362021-03-19T17:50:32.179650+00:00 app[web.1]: [0x00007fcfdf014020] ratingInputs() /app/extensions/FlaggedRevs/frontend/RevisionReviewFormUI.php:190- Seeing this, I presumed I had selected specs that were way too low. So, I upgraded to a paid server, which at this point was around 5x more powerful than the server I was using before the move. I also moved the MySQL database over to DigitalOcean instead of ClearDB. (Heroku's managed database)
- Even with these specs, I'm seeing the exact same performance metrics on the wiki as with Heroku free server+ClearDB - around 7-9 seconds of loading time.
- I may just end up moving everything back to how it was before, but I really would like some better performance than even that. WAUthethird (talk) 18:01, 19 March 2021 (UTC)
- hi @WAUthethird
- did you find a solution or an explanation ?
- I have the same issue. Benfruc (talk) 14:10, 8 July 2022 (UTC)
- you would probably need to do profiling to figure out what's up, but for starters, check your cache configuration.
- There's a lot more to performance than just the specs on the server. Bawolff (talk) 06:04, 20 March 2021 (UTC)
- you might also be hitting a recache path that is slow one time but the results are then saved so they dont have to recalculate again. If so, it might get cut off before finishing and try and do it on every request. (Localization cache is a common culprit for this) Bawolff (talk) 06:10, 20 March 2021 (UTC)
How to make recent changes crawlable?
MediaWiki 1.351 2001:44C8:4559:7759:3857:CEED:1C13:E4C3 (talk) 19:54, 19 March 2021 (UTC)
- You could probably modify Extension:CrawlableAllPages. Jonathan3 (talk) 23:44, 19 March 2021 (UTC)
Is there a way to suppress Deprecated messages using PHPunit?
I am running the following:
sudo -u www-data env "PHP_IDE_CONFIG=serverName=mwvagrant" "CIRRUS_REBUILD_FIXTURES=yes" "XDEBUG_CONFIG=idekey=netbeans-xdebug" php tests/phpunit/phpunit.php --wiki=wiki --stop-on-failure --stop-on-error extensions/MyExtension/tests/phpunit/
As indicated in the MediaWiki vagrant documentation and I keep getting Deprecated Notices. Is there a way to silence those Deprecated notices?
Thank you 185.69.144.181 (talk) 15:48, 20 March 2021 (UTC)
- I think its intentional that a deprecation warning breaks tests. Bawolff (talk) 01:36, 21 March 2021 (UTC)
- Bawolff, thank you very much for your response.
- The test actually succeed. Its just that I get about 10 deprecation + all the stack traces which means I need to scroll a lot to see whats a warning and whats a deprecation and to find whether it succeeds and what are the errors, etc. its very impractical. 185.69.145.77 (talk) 09:58, 21 March 2021 (UTC)
- You can set
$wgDeprecationReleaseLimit = '1.x';to suppress all deprecation warnings added in version > '1.x'. – Ammarpad (talk) 10:54, 21 March 2021 (UTC) - That is exactly it. Thank you Ammarpad! 185.69.145.77 (talk) 15:38, 21 March 2021 (UTC)
- I had this same problem, with HighlightUS but one message would not disappear!
- Adding '
error_reporting(0);'above the last error message line suppressed this as well Jmr1985 (talk) 13:56, 22 May 2023 (UTC)
Unable to write/commit to the DB through the GUI
I'm seeing this error when trying to save pages (any page):
Usage&action=submit DBTransactionError from line 1052 of /var/www/html/wiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php: Explicit transaction still active. A caller may have caught an error.
Backtrace:
#0 /var/www/html/wiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1390): LoadBalancer->{closure}(DatabaseMysqli)
#1 /var/www/html/wiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1075): LoadBalancer->forEachOpenMasterConnection(Closure)
#2 /var/www/html/wiki/includes/libs/rdbms/lbfactory/LBFactory.php(176): LoadBalancer->approveMasterChanges(array)
#3 /var/www/html/wiki/includes/libs/rdbms/lbfactory/LBFactorySimple.php(134): LBFactory->{closure}(LoadBalancer, string, array)
#4 /var/www/html/wiki/includes/libs/rdbms/lbfactory/LBFactory.php(178): LBFactorySimple->forEachLB(Closure, array)
#5 /var/www/html/wiki/includes/libs/rdbms/lbfactory/LBFactory.php(216): LBFactory->forEachLBCallMethod(string, array)
#6 /var/www/html/wiki/includes/MediaWiki.php(587): LBFactory->commitMasterChanges(string, array)
#7 /var/www/html/wiki/includes/MediaWiki.php(561): MediaWiki::preOutputCommit(RequestContext, NULL)
#8 /var/www/html/wiki/includes/MediaWiki.php(517): MediaWiki->doPreOutputCommit()
#9 /var/www/html/wiki/index.php(43): MediaWiki->run()
#10 {main}
Two things to note, This is a test environment, the DB was restored from a production instance and the source files copied to the new location. All config changes made as needed. The Wiki instance can be fully browsed so we have a successful DB connection. The other note is that the DB server and dbs have been migrated from MySQL to MariaDB. Before laying blame on the DBAs I'd like to know if there's something else I may be missing.
I've run rebuildall.php and upgrade.php which completed w/o issue. However, I'm still unable to save pages.
Any help or insights appreciated.
Thanks! Mcb570 (talk) 17:48, 20 March 2021 (UTC)
- try disabling all extensions.
- > Before laying blame on the DBAs
- Its probably not the DBs fault. Or at least i'd be surprised if it was. Bawolff (talk) 01:34, 21 March 2021 (UTC)
- Duh.. thanks for the reminder. I've disabled them all and it's working. Now... to track down which one it is.
- Thanks! Mcb570 (talk) 19:54, 22 March 2021 (UTC)
Errors after installing extension and widgets
After I put the widget on a page, I get this error message: שגיאה בווידג'ט cat: unable to write file /var/www/wiki/wnew/extensions/Widgets/compiled_templates/wrt60551ddeb5eb72_07838753 Novike (talk) 17:50, 20 March 2021 (UTC)
- See Extension:Widgets which states "Also, the
$IP/extensions/Widgets/compiled_templates/folder should be made writable by the web server." Did you perform this step? Peculiar Investor (talk) 19:23, 20 March 2021 (UTC)
Infobox Character template formatting help
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 want to preform a "switch" on a particular data input value, so it will display differently, but I'm having trouble getting it to work. Of the data perimeters, it's just a single word I want to appear differently "if" its inputted.
In my case, I want the input value for "{{{status}}}" for the term ' Deceased ' to appear as ' Deceased †'
Input Syntax
{{Character
| Status = Deceased
}}
I've tried this (below) and numerous other variations of "if" and or "switch" but it either changes every input value (such as i.e. 'Alive') to display as ' Deceased †' or no input value displays unless the input is exactly 'Deceased' to which it then displays as ' Deceased †'.
<data source="status"><label>Status</label>
<format>{{#if: {{{status|}}}|{{#switch:{{{status}}}|Deceased=Deceased †}}}}</format>
</data>
I was wondering if someone could help me out, and show me what I'm missing or doing wrong. SpiritHawk7 (talk) 00:15, 21 March 2021 (UTC)
- i dont know what the data, format and label tags are. Probably you have to use {{#tag:TAGNAME on the outermost tag instead of its html form. See entry for #tag in help:Magic Words Bawolff (talk) 01:32, 21 March 2021 (UTC)
- Thank you for the link. I had been looking for an index like that. Looking up tags gave me inspiration.
- As for the tags listed in my post, this is what they mean: https://community.fandom.com/wiki/Help:Infoboxes/Tags
- However, the tags aren't really my issue. I'm focused on what's between them. This part:
{{#if: {{{status|}}}|{{#switch:{{{status}}}|Deceased=Deceased †}}}}- There's something wrong in this part that I can't quite figure out unfortunately. I tired other variations such as:
{{#if: {{{status|}}}|{{{status}}}|Deceased=Deceased †}}}} {{#if: {{{status}}}|{{#switch:{{{status}}}|Deceased=Deceased †}}}} {{#switch:{{{status}}}|Deceased=Deceased †}}- etc, etc. Nothing seems to work out just right.
- It's not really too important, as I can still simply add the '†' to the input syntax to make it look like this:
Input Syntax {{Character | Status = Deceased † }}- and not have to worry about changing the formatting in the template, but at the same time it would be easier to format it so it's automatically added for me instead. SpiritHawk7 (talk) 02:52, 21 March 2021 (UTC)
- first of all {{#ifeq: might be easier than #switch. <tagname> syntax generally messes with things like #switch, which is why im suggesting using {{#tag:tagname|... syntax instead for the outermost tag layer, as that syntax wont mess with parser functions.
- P.s. help:Extension:ParserFunctions is another helpful page. Bawolff (talk) 11:59, 21 March 2021 (UTC)
- Thank you for the help and link. :) SpiritHawk7 (talk) 15:52, 21 March 2021 (UTC)
- Try this in
Template:Show status: Status: {{#ifeq: {{{status|}}} | Deceased | Deceased† | {{{status}}} }}- Then on your normal wiki page:
{{Show status|status=Deceased}} {{Show status|status=Alive}}- should show:
Status: Deceased† Status: Alive
- If it helps, "switch" doesn't necessarily mean "switch places" - it is just a neat way effectively to have lots of similar if statements. It's explained well in the link given above. Jonathan3 (talk) 00:03, 22 March 2021 (UTC)
- Thank you for the help. It's very much appreciated. :) SpiritHawk7 (talk) 20:30, 27 March 2021 (UTC)
problem with mediawiki
I installed it using softaculous and it shows up as weird symbols.
The website is https://devhub.org.uk/learn
what it looks like because it is not responding https://imgur.com/nc6g8XD Devboi234 (talk) 14:15, 21 March 2021 (UTC)
- if you can help please do :( Devboi234 (talk) 14:16, 21 March 2021 (UTC)
- version 1.35.1 Devboi234 (talk) 14:19, 21 March 2021 (UTC)
- The website seems to be down now, that's a different problem. For the MediaWiki issue, set
$wgDisableOutputCompression = true;in your LocalSettings.php file. – Ammarpad (talk) 20:12, 21 March 2021 (UTC)
VisualEditor loading error (MW 1.35)
We have upgraded our MW version to 1.35, but can't seem to get VisualEditor's core feature to work. Whenever one tries to edit in VisualEditor mode, it fails:
Error contacting the Parsoid/RESTBase server: (curl error: no status set)
Using the 2017 wikitext editor works just fine however.
The internet does not document this specific error, and trying some of the common suggestions didn't work. Our wiki is read-all but writable only to those who have an account.
Details from Special:Version is shown below. In particular, our server runs on Windows.
Installed software
| Product | Version |
|---|---|
| MediaWiki | 1.35.1 |
| PHP | 7.4.6 (cgi-fcgi) |
| MariaDB | 10.3.9-MariaDB-log |
| ICU | 66.1 |
Thanks in advance. Leaderboard (talk) 14:50, 21 March 2021 (UTC)
- Polite bump (remove if this is inappropriate). Leaderboard (talk) 10:03, 26 March 2021 (UTC)
- Polite bump 3; there is only one more report of this error on Support Desk which has also gotten no replies. Leaderboard (talk) 08:19, 30 March 2021 (UTC)
- Manual:How to debug —TheDJ (Not WMF) (talk • contribs) 11:16, 30 March 2021 (UTC)
- I did that, specifically enabling logging about VisualEditor to a separate file. All I got were generic messages of the type
- 2021-03-30 19:04:18 WIKI_NAME: called on 'ARTICLENAME' with paction: 'parse'
- I also enabled full logging - but that didn't help either - the error message itself wasn't printed.
- If there is something else I need to do, let me know. Leaderboard (talk) 19:12, 30 March 2021 (UTC)
- Hello, same problem:
- Error contacting the Parsoid/RESTBase server: (curl error: no status set)
- Any news on this? Thanks 89.172.129.86 (talk) 15:12, 18 August 2021 (UTC)
How do I arrange the site's email?
? Novike (talk) 16:11, 21 March 2021 (UTC)
- See Email. Malyacko (talk) 07:46, 22 March 2021 (UTC)
- Thanks Novike (talk) 18:31, 22 March 2021 (UTC)
Skin spontaneously changed, now all skins are broken (1.35)
Last night, I was browsing the MediaWiki that I have running on a Raspberry Pi 4, when the custom skin I have been using suddenly was replaced by what appears to be a rather broken version of MonoBook.
I looked at my preferences settings, and they still had my custom skin chosen. I checked the skin directory, my skin is in there. I cleared browser cache, I rebooted the Raspberry Pi, I tried another browser, and logging in on my phone. Still the wrong skin.
I went back into preferences and changed my skin selection to Timeless, on which my custom skin is based, and saw no change; still the broken MonoBook. I switched to Vector, and about half of my skin customizations appeared, such as the logo image, but the layout was not the way I like it, and there were still some things not quite right; it certainly looked nothing like Vector, however. I tried Monobook, and it was about the same as Timeless and my custom skin.
I went into LocalPreferences.php and disabled all skins except my custom skin, rebooted, and still no change, I see a broken version of Monobook. I shut everything down (mariaDB, Apache2) and moved all of the other skins outside of the skins folder, leaving just my custom skin. Brought everything back up, still no change.
Though I'd been editing earlier, at the time this happened, I was looking for more broken external links to update. I am the only user on the Pi, and it's behind a firewall on my local network.
The content is fine, it's just that the skin is hideous.
I figure this has to be something to do with the database, since none of the files in any of the skins directories had been modified since I set up this installation.
I am still running the latest stable version of MediaWiki, and as far as I can tell, all my extensions are up-to-date.
Is there any procedure I can follow to restore the skin functionality?
System Details:
- MediaWiki 1.35.1
- Raspberry Pi 4B, 4GiB RAM
- Raspberry Pi OS (Debian aarch64, built Monday, Feb 22, 2021).
- 256GiB USB 3.1 SSD
- MariaDB 15.1
- PHP v7.3.27 Daniel.glasser (talk) 01:52, 22 March 2021 (UTC)
- check your browsers developer console for errors in the network tab.
- Set $wgShowExceptionDetails = true; and open all load.php files referenced in the html of your page (styles especially) and see if any of them have errors in them.
- Are you sure its a broken version of monobook? Sounds more likely a broken version of your skin you are mistaking for monobook. Bawolff (talk) 07:11, 22 March 2021 (UTC)
- Thanks. I'm rather new to the Wiki stuff, and though I am a fairly ancient software engineer, a lot of this stuff is foreign to me.
- I followed your advice, including adding "$wgShowExcetpionDetails = true;" to the end of my "LocalSettings.php" file, but all I got was a browser warning about the logo image ("thoughts-logo.png") being preloaded but not used within seconds. Then I started my VM on which I'd developed the skin, and opened the prior incarnation of my personal Wiki, and the skin was as I expected. I went to "Preferences" and selected "Monobook" and hit "Preview", and it had a sidebar, which I had not remembered it having, and the fonts looked better than what I've been seeing on the stand-alone (not VM) version on the Pi. I went back to my "TimeyWimey" skin, and it looked as I expected.
- Then I narrowed the browser window to get a screenshot, and the layout changed to what I'm seeing from the Pi. I widened it, and the layout went back to what I had set up. I then changed the page magnification in the browser, and if I made the fonts larger, the layout goes to the broken one, and making them smaller brings back my layout. I have two monitors, one 4k and one 1.5K (1920x1200), and as I drag the browser window between the two screens, the layout changes.
- I'm not sure where in the skins javascript or CSS the switch between layouts is getting chosen, but it's changed across the board; still, but it appears to be a change in the way the font or screen metrics are being reported; oddly, the same size browser window produces different results between the two installations (the VM has 1.35.0 installed, the Pi has 1.35.1), and the older one switches at about 2/3 the width where the newer one does. Also, the mobile browser has different appearance between the two installations.
- It's very odd.
- But it appears the breakage is external to the Wiki itself, I need to adjust something someplace, and reduce the displayed font size in the browser until I work out how to adjust the switch-over point; I also need to clean up the narrower screen CSS to use the same fonts as I'm using for the wider views. Daniel.glasser (talk) 13:59, 23 March 2021 (UTC)
- It sounds like an issue with media queries in your css file.
- Maybe its set up to use different css fikes for different screen sizes (via @media rules or media attribute) and one of the css files are missing. Bawolff (talk) 01:22, 24 March 2021 (UTC)
Error contacting the Parsoid/RESTBase server: (curl error: 28) Timeout was reached
Hello
I'm using mediawiki 1.35 on Ubuntu 20.04 LTS. Problems occur when using Visual Editor. A document of a typical length works well, but if the document contains a lot of <math> sentences or is excessively long, the following occurs:
(1) When switching from original to visual editing, the progress bar stops near 75%.
(2) After a few seconds, the message Error contacting the Parsoid/RESTBase server: (curror: 28) Timeout was read.
I tested my wiki's error-prone document with Wikipedia, and (1) went as it was, but successfully switched to visual editing.
I googled for hours and tested various tests, but it didn't work.
my wiki uses iptime DDNS and also has normal access to http://MyPrivateWikiDDNS.org/mediawiki/rest.php/MyPrivateWikiDDNS.org/v3/page/html/Main_Page. It's also a Private Wiki. The installation document says RESTBase should not be used on the Private Wiki, so I didn't use it. I need your help.
Thank you. 729steven (talk) 04:09, 22 March 2021 (UTC)
- Are you using MediaWiki over mobile? If it so then check your app settings, if the chrome browser is not updated then it happens sometimes. Or if you using it by a computer then reinstall the MediaWiki software. You can change it to source mode. And at least you can download the latest version of MediaWiki (MediaWiki 1.35.1) . Thank you ↠Tanbirzx (✉) 08:02, 22 March 2021 (UTC)
- Thank you for your answer.
- I'm using the latest version of MediaWiki 1.35.1 and it hasn't been a few days since I installed it. Thank you for your help. 729steven (talk) 08:56, 22 March 2021 (UTC)
- Hi,
- I had the same issue when testing locally using PHP Simple Server (
php -S localhost:80). I am not sure whether this applies to you, but I will still post this here since it may be of assistance to someone else. The VisualEditor will not work using PHP Simple Server, since it only supports a single connection at a time. Because the VisualEditor API makes a request to itself through cURL, at least two connections are required. Xxmarijnw (talk) 11:45, 14 July 2021 (UTC)- Hello!
- First of all, thank you for your reply. Can I ask you to explain it in detail? It's a little difficult because I don't have enough knowledge. Thank you. 729steven (talk) 11:57, 8 August 2021 (UTC)
- PHP has a built-in server mainly used for testing and debugging. You can start the built-in server on `localhost` by running `php -S localhost:80`. This will make the directory in which the command was run available via `localhost`. You can find more information about the built-in server on PHP.net.
- The reason the VisualEditor does not work is because this built-in web server only supports a single connection at a time. If two connections come in a the same time, one of them has to wait for the other to finish. Because of legacy code in the VisualEditor API, it needs to make an external request to its own API. This works fine on multi-threaded web servers like Apache and NGINX, but fails for single-threaded web servers. It fails because making an external request to the same web server requires at least two concurrent connections; one for the connection making the request and one for handling the request. If only one connection is supported, the connection making the request will wait for the request to finish, while the connection handling the request will wait for the connection making the request to finish, resulting in a deadlock.
- As I said, this likely won't apply to you, since you are probably not using the built-in web server. I hope this clarifies any doubts you had. Xxmarijnw (talk) 19:29, 8 August 2021 (UTC)
phpinfo() missing mysql mysqlnd section
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello
i'm newby
since a week my mediawiki system (wiki.tes.mi.it) is not working
maybe an upgrade, i don't know
i tried phpinfo() instruction (wiki.tes.mi.it/info.php page) and i noticed mysql, mysqlnd sections are missing
Thanks for helping me Daniele ramon (talk) 09:38, 22 March 2021 (UTC)
I would love for someone to check out my site
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 recently installed a number of extensions to the site, and probably as a result there are a lot of page crashes on the site with the error message: "[3f665bfe746db82132c4e306] 2021-03-22 14:41:54:" InvalidArgumentException "serious error What is this happening to? Maybe it's related to extensions?
My URL: https://aklimus.org.il/
Example of pages not working with the error message: https://aklimus.org.il/index.php?title=%D7%A8%D7%97%D7%95%D7%91%D7%95%D7%AA&mobileaction=toggle_view_desktop
https://aklimus.org.il/index.php/%D7%9B%D7%9E%D7%95%D7%AA_%D7%94%D7%A9%D7%9C%D7%92_%D7%91%D7%97%D7%A8%D7%9E%D7%95%D7%9F Novike (talk) 14:46, 22 March 2021 (UTC)
- A good first step would be to isolate the issues, so start with disabling all the extensions and enable one by one till the crash occurs. Also have you run the update script if it's required by the extension? Leaderboard (talk) 17:34, 22 March 2021 (UTC)
- no Novike (talk) 18:01, 22 March 2021 (UTC)
- You need to do that first. Leaderboard (talk) 18:10, 22 March 2021 (UTC)
- OK. problem solved. This was a problem in one of the extensions.
- thanks anyway! Novike (talk) 18:10, 22 March 2021 (UTC)
Migration + Upgrade from 1.26 to 1.35.1 Hangs
Is anyone willing to log in to my server to arrange the email?
Thanks Novike (talk) 20:13, 22 March 2021 (UTC)
- What is the problem; what you have done so far? In any case, also see Professional development and consulting. Malyacko (talk) 21:34, 22 March 2021 (UTC)
- I then get error messages Novike (talk) 08:19, 23 March 2021 (UTC)
- ? Novike (talk) 10:05, 23 March 2021 (UTC)
- @Novike Would you be more specific and share error messages? Nobody can help with anything if things are kept vague. Malyacko (talk) 10:14, 23 March 2021 (UTC)
Problem with accented french characters sort
Hello, I have tried several things to resolve the problem I am having, but without success. My pages starting with É end up at the end of other pages, which is wikimedia's default sort order. How to sort, so that the É are considered as E? I tried to reenter the line mw.config.set ('tableSorterCollation', {'É': 'E', 'é': 'e', 'ä': 'ae', 'ö': 'oe', 'ß': 'ss' , 'ü': 'ue'}); in my common.js, but it doesn't work, just like I declared $ wgCategoryCollation = "uca-fr"; in my Localsettings.php, but it doesn't work either ... I have the same problem with words that are in capitals like AKTO, which are found before other words and therefore not well sorted ... Can you help me please ? Thank you very much. Benoit. Miawtwo (talk) 04:28, 23 March 2021 (UTC)
- where do you want things sorted (which list is the problem in).
- Note for $wgCategoryCollation, which only applies to categories and nothing else, there is also a maintenance script you have to run for the change to take effect - updateCollation.php Bawolff (talk) 10:33, 23 March 2021 (UTC)
- See also m:Tech:
- You can see the problematic page here. At the start and at the end of the sort.
- https://forma-wiki.fr/index.php/Sp%C3%A9cial:Toutes_les_pages
- Please note that the above page is not a category, and Special:AllPages is not better on Wikipedia either: accented characters come after all sorts of special characters (which themselves are after Z), and À armes inégales is after À Wong Foo, merci pour tout Julie Newmar. Tacsipacsi (talk) 20:49, 23 March 2021 (UTC)
- we do not support collations on that page (or most special pages)
- Some people try to add a database level collation on the page_title field of the page table. YMMV with that as its not really tested. Bawolff (talk) 01:19, 24 March 2021 (UTC)
What is a "Short Page"/"Long Page" on Special Page
Hello world. I have been trying to set up a wiki for my community and found that there is a page named "Special Page" with automated logs and generated data.
Some of the the items are quite self-explanatory. But I got some tricky ones that MediaWiki's manual couldn't help solve.
Would anyone know what is "Long Page" and "Short Page"? Seems to me that there is not a specifically character limit to determine Long or Short, as I have pages with a single line categorized as Long Page as well.
Thanks a lot. Lesliechung26 (talk) 07:01, 23 March 2021 (UTC)
- Hi, please name that Special Page. Malyacko (talk) 10:12, 23 March 2021 (UTC)
- there is no cut off. Long pages just starts at the longest pages in a content namespace and goes down, short pages start from the other direction. If you have a small number of pages on your wiki, both lists will contain all the pages on your wiki. Bawolff (talk) 10:30, 23 March 2021 (UTC)
- Thank you! It seemed that both pages would not include any of the redirected pages though.
- I was looking for a tool, best if currently existing in MediaWiki, that could give me stats on the avg. length of the pages so that the community can have some gauges on how robust the pages are generally are. Would you know if there are any other tools that I can make use of? Lesliechung26 (talk) 06:43, 24 March 2021 (UTC)
- that's correct, redirects are excluded as well as some namespaces (depending on config).
- If you have SQL access, i would suggest using that for add-hoc statistics. For example the following sql query:
SELECT AVG(page_len) FROM page;Bawolff (talk) 05:17, 25 March 2021 (UTC)
Error contacting the Parsoid/RESTBase server: (curl error: 28) Timeout was reached
Hello
I'm using mediawiki 1.35 on Ubuntu 20.04 LTS. Problems occur when using Visual Editor. A document of a typical length works well, but if the document contains a lot of <math> sentences or is excessively long, the following occurs:
(1) When switching from original to visual editing, the progress bar stops near 75%.
(2) After a few seconds, the message Error contacting the Parsoid/RESTBase server: (curror: 28) Timeout was read.
I tested my wiki's error-prone document with Wikipedia, and (1) went as it was, but successfully switched to visual editing.
I googled for hours and tested various tests, but it didn't work.
my wiki uses iptime DDNS and also has normal access to http://MyPrivateWikiDDNS.org/mediawiki/rest.php/MyPrivateWikiDDNS.org/v3/page/html/Main_Page. It's also a Private Wiki. The installation document says RESTBase should not be used on the Private Wiki, so I didn't use it. I need your help.
Thank you. 729steven (talk) 12:29, 23 March 2021 (UTC)
Image Popup On Clicked Link
I've checked extensions and cannot find what I am looking for.
If I have a sentence: "For two years, John Doe has been named fireman of the year.", I would like to be able to click on John Doe and have a picture popup. I don't want to be taken to the image information page. Just a popup with good ole John Doe's pic next to his name. Is there a way to do this? 216.176.132.213 (talk) 13:25, 23 March 2021 (UTC)
- Extension:Popups wouldn't require a click but a mouse-over, if John Doe was a link to a page and that page had an image. Malyacko (talk) 16:08, 23 March 2021 (UTC)
- Thank you. I'll give that a shot. 216.176.132.213 (talk) 17:28, 23 March 2021 (UTC)
How to change the WikiEditor insert link suggestions.
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi All,
So I think I may have done this a long time ago but cannot remember how. I would like to change the suggestions offered by the 2010 WikiEditor. I am also using CirrusSearch, so it looks like I should either change the openapi call in WikiEditor js or maybe CirrusSearch settings to prefer subpages (which would be cool) in the suggester in general
The goal is to offer Subpages in the suggestions of the link inserter as that is the way my wiki is structured, so a preference for the end of the full page name is what I want.
Say my wiki has pages like recipe/bread/white bread recipe/bread/whole wheat recipe/bread/gluten free bread
So if they type 'bread' I'd like those three pages to be show in the link inserter. It seems to work on the left-hand side of the string only to.
TIA Bluedreamer1 (talk) 14:51, 23 March 2021 (UTC)
- So I think I solved my issue, the CirrusSearch completer is off by default so I enabled it with
$wgCirrusSearchUseCompletionSuggester = 'yes';$wgCirrusSearchCompletionSuggesterSubphrases = ['build' => true,'use' => true,'type' => 'subpage','limit' => 20,];- Then I ran
UpdateSuggesterIndex.php - Then I changed build back to false and it works nicely now
$wgCirrusSearchCompletionSuggesterSubphrases = ['build' => false,'use' => true,'type' => 'subpage','limit' => 20,];Bluedreamer1 (talk) 00:47, 24 March 2021 (UTC)
Font color also in toc?
When you change the font color of a heading, is there any way so the toc will also display the color? Bedtry (talk) 15:58, 23 March 2021 (UTC)
- sorry no.
- You might be able to do something like that with a custom extension (not sure) or js, but there is nothing off the shelf for that.
- You could also put __NOTOC__ on the page and manually create a custom toc for the page. Bawolff (talk) 19:01, 23 March 2021 (UTC)
- Man that sucks, thanks though! Bedtry (talk) 19:00, 24 March 2021 (UTC)
Image uploader
Hello, I accidentally uploaded a picture as own work instead of someone else's work. Is there any way to undo this? Thanks! Sayerbay (talk) 16:00, 23 March 2021 (UTC)
- Where? If this is in Commons, please ask there. Leaderboard (talk) 17:48, 23 March 2021 (UTC)
Can a CMS-agnostic contact-form putted inside a wiki page?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
All-core, TimeLess skinned MediaWiki 1.35.1 with no addons besides a CMS-agnostic backend-frontend (HTML-PHP-JavaScript-CSS) contact form. I don't want to install any addons.
To access the CMS-agnostic contact form I go to a webpage such as example.com/contact.html.
My problem
My problem is that this webpage is a standalone webpage without all the bounty of a MediaWiki skin (header, middle, footer, logo, sidebar, menus, etc.).
My question
Can I somehow "plant" or "inject" or "present" or whatever term suitable here the form in its entirety (the output of the HTML, PHP, JavaScript and CSS file/s) inside a Wikipage?
Notes
- The PHP of the form is very minimal and is a utilization of the PHP mail() function so I wouldn't have a problem to put all of it in LocalSettings.php
- The main reason I want to do this is because I don't want to start complexing the form's standalone webpage with links to a "previous page" (which might not be in my site") or to my home page and things like that (logo, disclaimers, etc.) so I just need a way to put it in a wiki page with all these. 2001:44C8:470C:20E7:6CBF:BB98:93CD:63F8 (talk) 17:14, 23 March 2021 (UTC)
- You could use Extension:Widgets to add the HTML form, which has your php script as the target. I guess the php script could redirect to a wiki page once it's sent the email, so that the user only sees wiki pages. Jonathan3 (talk) 20:48, 23 March 2021 (UTC)
- Thanks @Jonathan3 I do very much need a non-addon solution, just to do it with core somehow.... I could write some JavaScript and CSS but all I need is just not exit the limits of working addonless, in this case. 2001:44C8:44C0:71A8:D12F:70A4:1772:DFCB (talk) 03:42, 24 March 2021 (UTC)
- @Jonathan3 also, I want to use the HTML that I myself developed... 2001:44C8:44C0:71A8:D12F:70A4:1772:DFCB (talk) 08:19, 24 March 2021 (UTC)
- You can write it all yourself.
- Just create the HTML form and put it in a Widget on the wiki. If you don't want to use the Widgets extension you could use Manual:$wgRawHtml (which has its own problems). There are probably any number of ways of getting a HTML form onto a wiki page.
- Then create the php script to deal with the form. I'm pretty sure it could send the email and redirect back to a wiki page. Jonathan3 (talk) 09:56, 24 March 2021 (UTC)
- Thanks Jonathan3, 2001:44C8:44C0:71A8:D12F:70A4:1772:DFCB (talk) 12:43, 24 March 2021 (UTC)
Graph extension
Hi, i was looking to add the Graph extension on my wiki but where i enable thoose roles?
- graphs role
- scribunto role
- imagemap role 95.246.26.4 (talk) 11:34, 24 March 2021 (UTC)
- In which wiki you want to add a graph? Please clarify this. ↠Tanbirzx (✉) 16:01, 24 March 2021 (UTC)
- I want to add the graph in my local wiki 79.52.201.97 (talk) 19:43, 24 March 2021 (UTC)
- roles are related to vagrant. If you arent using vagrant you wouldn't enable roles. It is very unlikely you are using vagrant.
- Follow install instructions on the extensions page. Bawolff (talk) 05:14, 25 March 2021 (UTC)
Cible30 (talk) 13:47, 25 March 2021 (UTC)
- No i don't, thank you very much 79.52.201.97 (talk) 13:48, 25 March 2021 (UTC)
Should allowing raw HTML turn all external links form nofollow to dofollow?
Should allowing raw HTML turn all external links form nofollow to dofollow?
If I would have to bet, I'd bet that no, because if I understood the manual correctly, raw HTML in MediaWiki is only about code that comes between two internal <html></html> tags; yet I still ask to ensure that existing links would not be effected in suddenly becoming "dofollow" links if I allow raw HTML.
Thanks, 2001:44C8:44C0:71A8:D12F:70A4:1772:DFCB (talk) 11:48, 24 March 2021 (UTC)
- from nofollow to dofollow* 2001:44C8:44C0:71A8:D12F:70A4:1772:DFCB (talk) 13:10, 24 March 2021 (UTC)
- Your guess is correct. External links outside of raw HTML would still have rel=nofollow, or whatever you configured in $wgNoFollowLinks Ciencia Al Poder (talk) 14:04, 24 March 2021 (UTC)
Namespaces To Be Searched Default
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 want to be searched by default not only pages, but also categories.
I tried this manual but it seems not to work:
Manual:$wgNamespacesToBeSearchedDefault
There I tried to use this line in LocalSettings.php:
$wgNamespacesToBeSearchedDefault[NS_CATEGORIES] = true; Servant of Lord Jesus (talk) 15:54, 24 March 2021 (UTC)
- I think the constant is NS_CATEGORY. Jonathan3 (talk) 21:35, 24 March 2021 (UTC)
- $wgNamespacesToBeSearchedDefault[NS_CATEGORY] = true;
- Solved! Servant of Lord Jesus (talk) 06:26, 27 March 2021 (UTC)
Error displaying templates for copyright
Hello,
i was importing templates of copyright (e.g. [https://it.wikipedia.org/wiki/Template:Cc-by-4.0]) but them are not displayed at all. So i tried to import other pages (like Template:Documentation, Module:TNT, Template:CC-notice ecc...) but i got the following internal error:
[8cd798cebba44567fed73bde] /wiki/index.php/Template:CC-notice MWException from line 630 of C:\xampp\htdocs\wiki\extensions\Scribunto\includes\engines\LuaStandalone\LuaStandaloneEngine.php: Scribunto_LuaStandaloneInterpreter::encodeLuaVar: unable to convert object of type stdClass
Is simplier to create my own templates of copyright or i can fix this error quite easily? Cible30 (talk) 19:51, 24 March 2021 (UTC)
- The message says that something is wrong with your Scribunto installation which will support the programming language Lua.
- I do not know how to remedy that.
- “simplier to create own templates” – well, if you want to solve this particular problem, probably yes.
- In the long run you should try to fix that Lua support issues.
- Many templates occurring in WMF wikis will rely on various other templates and Lua modules. And every WMF wiki is using other things which might be incompatible but share the same name.
- If templates are using a lot of other ingredients you do not know yet and functionality you do not need then brute force and simple text might be a better idea rather than copying a huge number of ingredients every time. A large wiki will organize central maintenance for 10,000 templates and applications by transcluding boring stuff from central sources. If you have just three templates you won’t need that. Gib Senf dazu! (talk) 09:23, 25 March 2021 (UTC)
- Ok so if someone reply about Scribunto error it might be useful for me in the future but for now i think i write the templates manually.
- Thank you! Cible30 (talk) 14:02, 25 March 2021 (UTC)
Copyright
No person may copy without the permission of the website owner.Then I need to use a license D.Peter (talk) 02:17, 25 March 2021 (UTC)
- is there a question here? Bawolff (talk) 05:11, 25 March 2021 (UTC)
- yes.Please let me know which license I will use D.Peter (talk) 05:39, 25 March 2021 (UTC)
- This seems unrelated to MediaWiki; feel free to check documentation on licenses on the internet. We cannot provide legal advice here. Malyacko (talk) 12:18, 25 March 2021 (UTC)
Can't login to my account
Hi. I need help please its been for one month same problem. i install 1.35.1 and i can't login to my account
" There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Please resubmit the form" 70.59.84.216 (talk) 03:13, 25 March 2021 (UTC)
How do I download "Edit" and "History" from the page bar?
Maybe it's better that the surfers did not know that the page can be edited :) Novike (talk) 08:59, 25 March 2021 (UTC)
- "Download" as how? and to where? – Ammarpad (talk) 11:00, 25 March 2021 (UTC)
- On Vector the edit tab is within an li tag with id ca-edit, and the history tab is within an li tag with id ca-history. I guess if you were to put the following into MediaWiki:Common.css it would hide them. I've not tested it so can't be sure.
- Jonathan3 (talk) 11:05, 25 March 2021 (UTC)
#ca-edit, #ca-history { display: none; } - Thank you, working part time Novike (talk) 11:56, 25 March 2021 (UTC)
- You're welcome. I guess by "working part time" you mean that some times the "Edit" and "History" tabs still are still displayed - if so, when? Jonathan3 (talk) 14:45, 25 March 2021 (UTC)
- Values - Yes. MediaWiki - no Novike (talk) 14:57, 25 March 2021 (UTC)
- I'm terribly sorry but I haven't a clue what you mean. Could you possibly rephrase it? Thanks. Jonathan3 (talk) 18:27, 25 March 2021 (UTC)
- English is not my mother tongue, so I am not always clear. Do you know any other language besides English? Novike (talk) 19:27, 25 March 2021 (UTC)
- You are doing very well. If you use more words than "Values - Yes. MediaWiki - no" then I'd probably be able to work it out. Maybe someone else can understand anyway.
- There are good free online translation websites.
- Or just type it here in your own language. Jonathan3 (talk) 23:03, 25 March 2021 (UTC)
- Maybe just take a look at the site and see? Novike (talk) 12:55, 26 March 2021 (UTC)
- Maybe meet me half way and post a link here? Jonathan3 (talk) 14:31, 26 March 2021 (UTC)
- https://aklimus.org.il/index.php/%D7%A2%D7%9E%D7%95%D7%93_%D7%A8%D7%90%D7%A9%D7%99
- This. There's a chat on the site, you can talk to me from it Novike (talk) 14:40, 26 March 2021 (UTC)
- Unfortunately that's in a swiggly language that I don't understand and seems to be using a skin other than Vector.
- You could go your site on Chrome, press F12, and find out the CSS id of each thing you want to hide. Then apply display:none to it. Jonathan3 (talk) 12:26, 27 March 2021 (UTC)
How to create a user through the server ?. Urgent for me!
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.
Thanks!! Novike (talk) 12:43, 25 March 2021 (UTC)
- Manual:Account creation Malyacko (talk) 12:45, 25 March 2021 (UTC)
- Can I have a code? Novike (talk) 12:55, 25 March 2021 (UTC)
- I don't understand the question. Malyacko (talk) 14:02, 25 March 2021 (UTC)
- "Special:CreateAccount"? Malyacko (talk) 14:03, 25 March 2021 (UTC)
- or Manual:CreateAndPromote.php linked from that page? Not sure what you want. Or what's unclear and why. Malyacko (talk) 14:04, 25 March 2021 (UTC)
Are there pages not editable/with static content we can leverage for testing purpose?
hi, my development team is querying Wiki APIs to retrieve content for a given topic.
As part of testing end to end in Production, we are checking that when a topic is queried certain paragraphs surface. However, content may change over time because of different revisions, so we were wondering if there are any pages which are not editable(e.g. protected pages) we can query for our tests without having to create a new test page just for this on wiki? 188.28.98.175 (talk) 13:21, 25 March 2021 (UTC)
- bumping this one, and clarifying the question is simply: Are there any pages not editable/with static content? 188.28.98.175 (talk) 14:42, 25 March 2021 (UTC)
- These pages seem to be protected: Special:WhatLinksHere/Template:Security. Jonathan3 (talk) 14:48, 25 March 2021 (UTC)
- Thanks Jonathan3! I see that they have some new revisions, does that mean that protected pages are still edited right? is there any wiki page for which you can guarantee the content won't change/will v rarely change? 188.28.98.175 (talk) 15:00, 25 March 2021 (UTC)
- Special:blankpage but you cant access via the api. (And even that is subject to editing i18n message)
- Generally no, everything is editable of you have sufficient rights Bawolff (talk) 15:35, 25 March 2021 (UTC)
- You can create a page on the MediaWiki: namespace. Those pages are protected by default (only editable for users with the editinterface right). Since it's on this namespace, it won't display on Special:Random and generally it won't be indexed by search engines nor displayed on normal searches. Give it a distinct name that wouldn't clash with an existing or future message (like MediaWiki:Custom_test_page) and you should be good to go. Ciencia Al Poder (talk) 09:10, 30 March 2021 (UTC)
How to fix Lua error: Internal error: The interpreter has terminated with signal "11"
I was importing Template:Infobox company after complete it i show this Lua error: Internal error: The interpreter has terminated with signal "11".
website https://wikidot.com.au/wiki/Template:Infobox_company Mayurbhatt (talk) 13:29, 25 March 2021 (UTC)
- See Extension talk:Scribunto/2013#h-Script_error:_Lua_error:_Internal_error:_The_interpreter_has_terminated_with_sig-2013-07-06T15:52:00.000Z, https://webmasters.stackexchange.com/questions/50756/mediawiki-error-lua-error-internal-error-the-interpreter-has-terminated-with Malyacko (talk) 14:01, 25 March 2021 (UTC)
Email address obfuscation
I see that Category:Email address obfuscation extensions is empty - is there an extension anyone could recommend? Thanks. Jonathan3 (talk) 14:44, 25 March 2021 (UTC)
Where can I download version 1.35.1 in a zip file?
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.
- Thanks Novike (talk) 15:36, 25 March 2021 (UTC)
- Download is linked from the frontpage of this website. Malyacko (talk) 15:58, 25 March 2021 (UTC)
- * For version update Novike (talk) 15:36, 25 March 2021 (UTC)
- Thanks Novike (talk) 16:19, 25 March 2021 (UTC)
I uploaded version 1.35 to the server, what next?
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 would be happy if you write me an explanation and not a reference to the page. Thanks :) Novike (talk) 16:21, 25 March 2021 (UTC)
- See the links on https://www.mediawiki.org/wiki/MediaWiki under "Set up and run MediaWiki". If you can explain what you would like to do and if you follow documentation (which page?) and if something is unclear in the documentation (which section?) and if you have a specific question, then please feel free to ask a specific question. Thanks a lot. Malyacko (talk) 07:14, 26 March 2021 (UTC)
- Thanks, I got along. Novike (talk) 12:57, 26 March 2021 (UTC)
Contact Page Extension
I needed to have a Contact page on my wiki. I tried to install the Extension:ContactPage but it shows fatal error. Then I to report the issue and found it has been reported previously. Then I posted the error I found from my installation 4 months ago (Extension talk:ContactPage/Archive 2/Flow export#h-Fatal_Exception-2020-10-03T20:31:00.000Z). But as I did not got any reply and the issue exists till today I though this extension is abandoned.
Can anyone please confirm that am I the only person who is facing the issue or it is happening for others too?
Also I need some help to create a Contact page where anyone can contact us by submitting a form. Nasir Khan Saikat • talk • 19:44, 25 March 2021 (UTC)
- Where is the report? Context and references welcome. Malyacko (talk) 07:12, 26 March 2021 (UTC)
- I mentioned the Fatal Error Topic link above, here I am adding again Extension talk:ContactPage/Archive 2/Flow export#h-Fatal_Exception-2020-10-03T20:31:00.000Z Nasir Khan Saikat • talk • 13:30, 26 March 2021 (UTC)
- are you using the master version of the extension?
- Or you could also install extension:ConfirmEdit
- Issue in theory got fixed in latest version. Issue probably only appeared when it is installed without confirmedit. Bawolff (talk) 09:46, 26 March 2021 (UTC)
How to Lua error: Internal error: The interpreter exited with status 127.
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I was importing Template:Infobox company to my site first it show
Lua error: Internal error: The interpreter has terminated with signal "11"
So i include this code in localsettings.php
$wgScribuntoEngineConf['luastandalone']['luaPath'] = '/path/to/binaries/lua5.1';
$wgPFEnableStringFunctions = true;
now it show
Lua error: Internal error: The interpreter exited with status 127.
https://wikidot.com.au/wiki/Template:Infobox_companyhow to fix it? Mayurbhatt (talk) 04:54, 26 March 2021 (UTC)
- Please do not post duplicates. Malyacko (talk) 07:11, 26 March 2021 (UTC)
RESTBase installed and setup but continually giving me not found errors when attempting to access
Hello! When I try accessing https://wiki.nzyps.org/api/rest_v1/ it spits back the following:
{"type": "https://mediawiki.org/wiki/HyperSwitch/errors/not_found#route","title": "Not found.","method": "get","uri": "/api/rest_v1/"}
I have followed the nginx configuration steps as per RESTBase/Installation#Nginx.
Alongside that, here is my RESTBase configuration:
# RESTBase config for small wiki installs
#
# - sqlite backend
# - parsoid at http://localhost:8142
# - wiki at http://localhost/w/api.php
#
# Quick setup:
# - npm install
# If you see errors about sqlite, you might have to `apt-get install
# libsqlite3-dev`.
# - cp config.example.yaml config.yaml
# - double-check and possibly modify lines marked with XXX, then start restbase with
#
# node server
#
# - If all went well, http://localhost:7231/localhost/v1/page/html/Main_Page
# should show your wiki's [[Main Page]].
services:
- name: restbase
module: hyperswitch
conf:
port: 7231
salt: secret
default_page_size: 125
user_agent: RESTBase
ui_name: RESTBase
ui_url: https://www.mediawiki.org/wiki/RESTBase
ui_title: RESTBase docs
spec:
x-request-filters:
- path: lib/security_response_header_filter.js
- path: lib/normalize_headers_filter.js
x-sub-request-filters:
- type: default
name: http
options:
allow:
- pattern: http://localhost/w/api.php
forward_headers: true
- pattern: http://localhost:8142
forward_headers: true
- pattern: /^https?:\/\//
paths:
/{domain:wiki.nzyps.org}/{api:v1}:
x-modules:
- spec:
info:
version: 1.0.0
title: Wikimedia REST API
description: Welcome to your RESTBase API.
x-host-basePath: /api/rest_v1
x-route-filters:
- path: ./lib/normalize_title_filter.js
options:
redirect_cache_control: 's-maxage=0, max-age=86400'
paths:
/page:
x-modules:
- path: v1/content.yaml
options:
response_cache_control: 's-maxage=0, max-age=86400'
- path: v1/common_schemas.yaml # Doesn't really matter where to mount it.
/transform:
x-modules:
- path: v1/transform.yaml
/{domain:wiki.nzyps.org}/{api:sys}:
x-modules:
- path: projects/proxy.yaml
options:
backend_host_template: '{{"/{domain}/sys/legacy"}}'
- spec:
paths:
/table:
x-modules:
- path: sys/table.js
options:
conf:
backend: sqlite
dbname: db.sqlite3
pool_idle_timeout: 20000
retry_delay: 250
retry_limit: 10
show_sql: false
storage_groups:
- name: local
domains: /./
/legacy/key_value:
x-modules:
- path: sys/key_value.js
/legacy/page_revisions:
x-modules:
- path: sys/page_revisions.js
/post_data:
x-modules:
- path: sys/post_data.js
/action:
x-modules:
- path: sys/action.js
options:
# XXX Check API URL!
apiUriTemplate: https://wiki.nzyps.org/api.php
# XXX Check the base RESTBase URI
baseUriTemplate: "{{'https://wiki.nzyps.org/api/rest_v1'}}"
/page_save:
x-modules:
- path: sys/page_save.js
/parsoid:
x-modules:
- path: sys/parsoid.js
options:
parsoidHost: https://wiki.nzyps.org/rest.php
response_cache_control: 's-maxage=0, max-age=86400'
# Finally, a standard service-runner config.
info:
name: restbase
logging:
name: restbase
level: info
If anyone could help, it would be deeply appreciated! <3 Carolina2k22 (talk) 05:15, 26 March 2021 (UTC)
Hijack error when trying to login after install
Got exactly this problem: Project:Support desk/Flow/2014/03#h-Session_Hijacking_error_after_Update_1.19.14-2014-03-31T05:54:00.000Z
Was fixed by adding:
$wgSessionCacheType = CACHE_DB;
to LocalSettings.php as suggested in one of the replies.
The post is 4 years ago! How come this is still a problem?
FYI installed on raspberry pi 4 in docker, using MariaDB in another container . Doc dist is:
| mediawiki:latest |
from docker hub. Amarden (talk) 05:59, 26 March 2021 (UTC)
- because its a problem on your end not mediawik's. (The config tells mediawiki to ignore your cache server) Bawolff (talk) 09:42, 26 March 2021 (UTC)
Lua error: Internal error: The interpreter exited with status 127.
My websites many page affected with Lua error: Internal error: The interpreter exited with status 127. error
https://wikidot.com.au/index.php?title=Category:Pages_with_script_errors&action=edit&redlink=1
I was importing Template:Infobox_company
i add
$wgScribuntoEngineConf['luastandalone']['luaPath'] = 'chcon -t httpd_sys_script_exec_t /path/to/extensions/Scribunto/includes/engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua';
$wgPFEnableStringFunctions = true;
in my localsettings.php
Please
Please
Please Help Mayurbhatt (talk) 06:44, 26 March 2021 (UTC)
- Please search. :) See e.g. Extension talk:Scribunto/2014#h-Lua_scribunto_error_on_many_pages_(status_127)-2014-10-05T16:53:00.000Z. Does "/path/to/extensions/Scribunto/includes/engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua" exist? How did you check? Malyacko (talk) 07:10, 26 March 2021 (UTC)
- You have posted this topic three times on this page in the last 24 hours. That isn't a good use of anyone's time. Malyacko (talk) 07:14, 26 March 2021 (UTC)
- Sorry, See i m new in mediawiki and it`s my first site so don`t know how to fix.
- Re path: it was not existed i insert it manually. Mayurbhatt (talk) 07:57, 26 March 2021 (UTC)
- I have Scribunto with
- lua5_1_5_linux_64_generic
- lua5_1_5_linux_32_generic
- lua5_1_5_mac_lion_fat_generic
- lua5_1_5_Win32_bin
- lua5_1_5_Win64_bin
- in
- LuaStandalone/binaries Mayurbhatt (talk) 08:14, 26 March 2021 (UTC)
- It should point to wherever the Lua binary is located. Where is your Lua binary located (full path)? Malyacko (talk) 10:51, 26 March 2021 (UTC)
- /public_html/extensions/Scribunto/includes/engines/LuaStandalone/binaries/
- Malyacko Mayurbhatt (talk) 04:57, 27 March 2021 (UTC)
- should i upgrade it to https://www.lua.org/ftp/lua-5.4.2.tar.gz Mayurbhatt (talk) 04:59, 27 March 2021 (UTC)
- Please help my all template and module pages are affected with error i Mayurbhatt (talk) 05:05, 27 March 2021 (UTC)
- Please correct your binary path in your configuration then. Malyacko (talk) 09:11, 28 March 2021 (UTC)
- I upgrade lua to https://www.lua.org/ftp/lua-5.4.2.tar.gz and change path to
- $wgScribuntoEngineConf['luastandalone']['luaPath'] = '/path/to/extensions/Scribunto/includes/engines/LuaStandalone/binaries/lua-5.4.2/doc/lua';
- but still error appear Mayurbhatt (talk) 10:41, 2 April 2021 (UTC)
- I can share screen short if you want. Mayurbhatt (talk) 10:54, 2 April 2021 (UTC)
- Please help! Problem is not fixed yet. I was importing this one https://wikidot.com.au/wiki/Template:Infobox_company Lua error: Internal error: The interpreter exited with status 127. Mayurbhatt (talk) 10:22, 8 April 2021 (UTC)
- You can contact me on skype about it
- Skype: live:mayurbhatt Mayurbhatt (talk) 10:27, 8 April 2021 (UTC)
VisualEditor Gadgets - Problems when adding multiple Templates
Hi, I adapted this example to add a template using VisualEditor Gadgets: VisualEditor/Gadgets/Add a tool
I customized it according to my needs, but the problem I have also exists with the code from the sample without any changes. It works very well generally, I do have only one problem in the VisualEditor "visual" mode. When I add the template via the menue, I can then press the "edit" button of the template in the VisualEditor and edit the parameters of the template. I can also use the menue a second time to add the same template a second time. When I then edit the parameter of the second template, also the parameter of the first already inserted templates get modified which surely is not intended to happen.
I guess it is because the tool insers the same instance of the object again instead of creating a new object or something like that (?), but my JavaScript expertise is not good enough to know what I need to change here. If someone has a hint I would be thankful. Thank you Brue (talk) 12:06, 26 March 2021 (UTC)
Is it possible to put links to social networks in a wiki?
Have every page on the wiki Novike (talk) 12:58, 26 March 2021 (UTC)
- Maybe it is possible. You can add a social address link in a wiki page. At first copy the link and then paste on a wiki page. This is simple. ↠Tanbirzx (✉) 13:07, 26 March 2021 (UTC)
- To be displayed in the sidebar Novike (talk) 13:12, 26 March 2021 (UTC)
- Have you tried searching this website? Manual:Interface/Sidebar. Malyacko (talk) 14:47, 26 March 2021 (UTC)
- yes Novike (talk) 15:04, 26 March 2021 (UTC)
Is it possible to prevent an IP address from accessing a website?
Is it technically possible? Novike (talk) 13:01, 26 March 2021 (UTC)
- Yes it is, and this has nothing to do with MediaWiki. Malyacko (talk) 14:46, 26 March 2021 (UTC)
- But rather? Novike (talk) 15:03, 26 March 2021 (UTC)
- its a system administration (firewall) or web server question depending on which layer you want to implement the restriction. Bawolff (talk) 00:27, 27 March 2021 (UTC)
- e.g. https://httpd.apache.org/docs/2.4/mod/mod_access_compat.html#deny or
- https://ubuntu.com/server/docs/security-firewall
- For some common examples but it will depend on what other software you use. Asking at a system admin specific forum may get you better answers Bawolff (talk) 04:37, 27 March 2021 (UTC)
Invalid CSRF token
I am trying to log in to the wiki using the API. I generate a token using the PHP example given at API:Tokens, and use my username and password to log in. However when I run the code I always get this error:
{"error":{"code":"badtoken","info":"Invalid CSRF token.","*":"See http://192.168.1.56/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecations and breaking changes."}}
I did url-encode it like all my parameters and this shows in the request body, and I always generate a different token every time, but it's not working. 2A02:587:920B:8C00:B050:56E4:F7BA:EF5E (talk) 13:16, 26 March 2021 (UTC)
- BTW I am using the latest stable MediaWiki version 1.35.1. 2A02:587:920B:8C00:B050:56E4:F7BA:EF5E (talk) 13:22, 26 March 2021 (UTC)
- a lot of things could go wrong here,its basically impossible to say without knowing more:
- does your wiki work generally. Can you login normally?
- are you sending correct cookies with request
- are you using correct token type
- is token actually being sent correctly
- Etc. Bawolff (talk) 09:37, 27 March 2021 (UTC)
Link To CiteThisPage (Solved)
I have installed the CiteThisPage extension and it works as it should except no link is generated under Page Tools. Is there a way to add a sidebar link to cite the current page? 216.176.132.213 (talk) 14:25, 26 March 2021 (UTC)
- by default it only shows up in content namespaces (manual:$wgContentNamespaces) and namespaces specified in $wgCiteThisPageAdditionalNamespaces. Is the page you are looking at a content namespace?
- If its still not showing up, maybe a skin issue. what skin are you using? Bawolff (talk) 09:34, 27 March 2021 (UTC)
- I am using the Timeless skin 2601:248:C201:BF50:A9B0:D3F6:EA96:E9CD (talk) 12:58, 27 March 2021 (UTC)
- hmm. I dont see cite this page link on https://en.wikipedia.org/wiki/Baron_Marks_of_Broughton?useskin=timeless . Maybe it is a timeless bug. I suggest filing a bug at https://phabricator.wikimedia.org making sure to add both Timeless and extension-CiteThisPage as tags. Bawolff (talk) 02:50, 28 March 2021 (UTC)
- There's a 'cite this page' link at the bottom right under Wiki Tools (at least for me) – Ammarpad (talk) 06:45, 28 March 2021 (UTC)
- Thanks to all. I had used the extension CiteThisPage which comes packaged with Mediawiki. I deleted the extension and downloaded a new copy and now it works as it should. 2601:248:C201:BF50:85FE:E7AD:28C7:A70E (talk) 12:56, 28 March 2021 (UTC)
MC25 Volume fluctuating on audio and video playback
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.
My volume level is fluctuating randomly as songs or videos playback. I suspected volume leveling or clip protection, so I turned them off. Still doing it. Then I turned off all DSP settings and it is still happening. Anyone having this problem or have any ideas? 71.234.228.42 (talk) 16:04, 26 March 2021 (UTC)
- This does not seem to be related to MediaWiki; see Project:About. Leaderboard (talk) 18:19, 26 March 2021 (UTC)
The font of Japanese characters in my wiki's editor interface has changed. How do I revert this?
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, it seems that over night, the font of Japanese text in my own wiki has changed from this to this. I don't know why, since I didn't access the server files or changed anything around.
Does anyone know what could've happened or how I can fix it? :/
Update: So it seems like the monospaced font is at fault. I use it in both my own wiki and the Japanese wiki. But as you can see on the pictures, it looks fine in the latter and weird in the former...
Update 2: So for whatever reason, I had to change the font Firefox uses for serif fonts to MS Gothic (instead of standard TNR). This is despite using monospaced font in my user settings on the wiki.
I don't know what exactly is going on, but I feel like it has to do with the most recent FF update, don't know. Seelentau (talk) 18:41, 26 March 2021 (UTC)
Can't start Mediawiki 1.35 garbage displayed
I have just installed mediawiki 1.35 it was working fine but when I come back today, all I get displayed is garbage when I try to access my wiki see below
�����ks�6�s�+���IZS��y�> �Ю�JY?O���HH�gd���V״�ޒQ�sՏET��Uǽ�����V��� J��B-�J#�N������Xd��f)��Rc��+���Cs��#�y&;�P+Q��N�F4�U@(�����_={����w�2q�[���s�B��bG+f���&���V���ʈ�=���7�Y,��x���ӷ�:y)���2ӻ��i�W�T��scd�6T���È�+?����d�l���[ke,�2e�>v��!�c�}ۅI��J�3��|�ݏANU!��l�!}�� j7UQ�l�d1�[���y���?��)��I��^`��0����l���(�.2�ɓ�{��X� �盆Rٻt��~����]��kW���s�Vӿ^�q[�^�~���Z0�r�Ӝ�,��L��F��~�H�P9ˢ^��YDKI�COd��t�[5�����>=�}o�tT�i�=b��N9 ����`���/���v��vV5���0dBIo@&@���J&�"M�T��t#���JE8���cH'�݁?��L�h�f9`�y���C����X���p���]�Ӧ��`g��R��н�s&�!wYvo�/Z��G�m����h���n7�������Nyn�Ӝ�e�z��`����*Vd�����R� �9z��������j�k|����#�L2���.YUı=�^�s'�O�����>'O���fz Y0)�"b���A�w�C��I����V��;�,���m���]���D��b��c��-�7/��rP��ֻ�u����q�*�ft�O@=������]_�E��?C�Q�l߄��&5�n�c�vu�VMb�����X.B����V���4�����UN./�l���b?�JЋ�֛��\b0L�����$י�j����TYdJT݇ �V0Hw�m�'I����ȱ�K�H5���ai��"���ص?�2�U$5�+H4�&���T��F��d��r8�,�ßN��N@�/��h�����@�U)���@�Гc�����k�?��{籙X����zE�H˵��(�?������д�����j?��f�%y 9^"R���w���F �� \�������҆�@�vF<�&�C��"�^P����^o �zt%0�������i*�f�E��������&*%~�?]����w0�4�D��҇������Y�H[$E|���"m��.�s�u�<�(�S���A��Y����Һo����H���?7�����O�r���M#�k7a��:��I�L���Z��.>���a����ނ��p�cZ̪/1��I� s��vq[)�n���t�Zk�Q�cW�xP_��j�jh���v������ $�P4־���M�LX�?�d��9K����i�N�D1 81.100.245.102 (talk) 22:07, 26 March 2021 (UTC)
- Common and known problem. See https://m.mediawiki.org/wiki/Project%3ASupport%20desk/Flow/2020/12#h-MediaWiki_version_1.35.1_garbled_text_encoding_problem_%28MySQL_database_incorrect-2020-12-20T01%3A29%3A00.000Z Peculiar Investor (talk) 00:43, 27 March 2021 (UTC)
How do I revert entire imports?
Hello!
I imported the incorrect pages, and I am wondering if there is an easy way to simply just revert the import?
Thanks. Carolina2k22 (talk) 00:22, 27 March 2021 (UTC)
- Where do you import the incorrect pages?
- See this Special:GadgetUsage ↠Tanbirzx (✉) 04:34, 27 March 2021 (UTC)
- I imported incorrect pages on my own wiki, and what do I look at on the gadget usage page? Carolina2k22 (talk) 06:18, 27 March 2021 (UTC)
- gadgetusage seems unrelated to this question.
- Basically if you didn't make a backup its pretty annoying. Easiest would be to make a one off script to look at the import log and then delete all the pages. So basically the answer is no. Bawolff (talk) 09:26, 27 March 2021 (UTC)
I have enabled raw HTML but I can't include HTML files with rel="import"
- MediaWiki 1.35.1.
- I have enabled raw HTML by adding
$wgRawHtml = true;to the end of my LocalSettings.php file and I can present HTML files directly inside MediaWiki articles. - But, for some reason, I can't include HTML files with
rel="import". - For example, I can access example.com/contact_form.html from my browser, but if I do do the following inside
<html></html>tags in a wiki article, that very webpage won't appear there:How solve that problem? 2001:44C8:4559:C64F:D82C:DE61:659E:8AAF (talk) 10:36, 27 March 2021 (UTC)<html> <head> <link rel="import" href="https://example.com/contact_form.html"> </head> </html>
- You cant put a head element inside the body element of the html. That said link rel=import isnt even supposed to be inside a head tag. Bawolff (talk) 02:41, 28 March 2021 (UTC)
- Either way, I have managed to get a similar result with:2001:44C8:4559:C64F:D82C:DE61:659E:8AAF (talk) 11:01, 27 March 2021 (UTC)
<html> <head> <script> var content = document.querySelector("#content"); var ajax = new XMLHttpRequest(); ajax.open("GET", "html/contact_form.html", false); ajax.send(); content.innerHTML += ajax.responseText; </script> </head> </html> - An expected result* 2001:44C8:4559:C64F:D82C:DE61:659E:8AAF (talk) 12:49, 27 March 2021 (UTC)
- google chrome removed support for html imports last year https://www.chromestatus.com/feature/5144752345317376 . No other browser ever supported it as far as i know.
- You have to use js like you have above, or an iframe tag (make sure to disable borders if using an iframe) Bawolff (talk) 02:46, 28 March 2021 (UTC)
How to disable sub header being fat?
Hi, when I am using headers like this or deeper
<nowiki>===header===</nowiki>
then the text of it gets smaller, but it's always fat. Please help me disable it. Servant of Lord Jesus (talk) 11:29, 27 March 2021 (UTC)
- see CSS Bawolff (talk) 02:39, 28 March 2021 (UTC)
- Thanks, but unfortunately I have no knowledge about CSS. Is there a simpler way to solve it? Servant of Lord Jesus (talk) 07:05, 28 March 2021 (UTC)
- No, as CSS is the simplest way. Malyacko (talk) 09:10, 28 March 2021 (UTC)
Revert edits in multiple pages?
I want to revert the 300 or so latest edits on my wiki that were done via the ReplaceText extension and attributed to a specific user. Is there any easy way of doing that? There have not been any other edits since. MW 1.31. Spiros71 (talk) 14:54, 27 March 2021 (UTC)
- You can use ReplaceText with the reverse paramaters: so if you changed "cat" to "dog", use ReplaceText to change "dog" to "cat". This, of course, will be harder in case there were instances of "dog" before you made the change. Leaderboard (talk) 15:18, 27 March 2021 (UTC)
- Thanks, but in my case it is much more complex than that :) Pity there is no such function in MW. Spiros71 (talk) 08:17, 28 March 2021 (UTC)
Login help
I accidentally logged out and I'm having trouble logging back in and I keep getting this message
"There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Please resubmit the form"
(I'm on my phone and I could really use some help) 2600:6C44:447F:DF74:E0E3:7402:18BB:2DE9 (talk) 16:24, 27 March 2021 (UTC)
- delete all your cookies and try again. Bawolff (talk) 02:38, 28 March 2021 (UTC)
- Ok thanks 2600:6C44:447F:DF74:E0E3:7402:18BB:2DE9 (talk) 03:05, 28 March 2021 (UTC)
- I've cleared my cookies, but this issue is still happening 2600:6C44:447F:DF74:E0E3:7402:18BB:2DE9 (talk) 03:15, 28 March 2021 (UTC)
- See Manual:How to debug/Login problems Malyacko (talk) 09:09, 28 March 2021 (UTC)
- Got it 2600:6C44:447F:DF74:E0E3:7402:18BB:2DE9 (talk) 13:53, 28 March 2021 (UTC)
- How do I get to the pages with those keys (like Session.refer_check, or session.auto_start) 2600:6C44:447F:DF74:E0E3:7402:18BB:2DE9 (talk) 14:25, 28 March 2021 (UTC)
- How exactly do I use the keys that the manual mentions (Session.refer_check and session.auto_start) and what page do I need to get to find them? 2600:6C44:447F:DF74:A1EC:9D66:9714:B106 (talk) 16:15, 29 March 2021 (UTC)
Skin
https://ballotpedia.org/Main_Page ballotpedia is using what skin D.Peter (talk) 02:22, 28 March 2021 (UTC)
- based on the class attribute of the body element in html source, it is using ballotpediabootstrap skin. Which sounds custom but maybe based on Skin:MediaWikiBootstrap Bawolff (talk) 02:36, 28 March 2021 (UTC)
Missing Images (After Upgrade)
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
So I upgraded MediaWiki tonight to version 1.35. Something strange happened. The images on our Main Page are broken. https://www.baseball-reference.com/bullpen/Main_Page. Clicking through to one of the pages (https://www.baseball-reference.com/bullpen/Larry_Jansen) the image is broken there as well. Going to the file page (https://www.baseball-reference.com/bullpen/File:LarryJansen.jpg) it says "No file by this name exists, but you can upload it".
If I try to upload it, it tells me the file already exists and it's the same as an image already there. The file is on the filesystem as well.
I can't really figure out what to do. It seems to only be images that are being used on the Main_Page. I tried `rebuildImages.php` but that didn't seem to make a difference. NickSportsRef (talk) 04:34, 28 March 2021 (UTC)
- Nevermind, turns out it was a memcached issue. NickSportsRef (talk) 17:45, 28 March 2021 (UTC)
How to deactivate "leaves behind a redirect" when moving
I have often to move sites, and there are marked by default:
- leaves behind a redirect
- watch source- and target page
How can I make them be deactivated by default? Servant of Lord Jesus (talk) 07:10, 28 March 2021 (UTC)
- probably custom javascript in mediawiki:common.js would be the way Bawolff (talk) 20:00, 28 March 2021 (UTC)
$wgUploadPath not set in LocalSettings.php
Sometimes it's the simple things... like trying to configure MW to use an uploaded image file for the logo, as per the documentation (option 1): Manual:FAQ#How do I change the logo?
In my case (fresh install), I've deployed files to /w and run the installation script. MediaWiki seems to run successfully but tracing $wgUploadPath in LocalSettings.php suggests it's not being set to the default value ("$wgScriptPath/images"), as it should be by includes/DefaultSettings.php and includes/Setup.php. Instead, I get an empty string--why?!?
$wgEnableUploads is set true and uploading works fine. The logo file can be successfully uploaded to and served from the images directory.
I can work around this in LocalSettings.php as follows but doing so feels dirty:
$wgUploadPath = "$wgScriptPath/images";
$wgLogos = [ '1x' => "{$wgUploadPath}/2/20/logo-135-test.jpg" ];
This also works:
{$wgScriptPath}/images
includes/DefaultSettings.php:
/**
* The URL path for the images directory.
* Defaults to "{$wgScriptPath}/images".
*/
$wgUploadPath = false;
includes/Setup.php:
if ( $wgUploadPath === false ) {
$wgUploadPath = "$wgScriptPath/images";
} Michhes (talk) 11:16, 28 March 2021 (UTC)
- > tracing $wgUploadPath in LocalSettings.php suggests it's not being set to the default value ("$wgScriptPath/images")
- What did you do to "trace" it?
- It is the expected behaviour that it would be false in LocalSettings.php, and the empty string in a string interopolation context. If you use it to make another variable, you have to set it explicitly (or use extension function callback but i dont teccomend that for this case).
- To be clear, the default behaviour is to set to $wgScriptPath/images after LocalSettings.php. we can't set it before or during LocalSettings.php because we dont yet know what you set $wgScriptPath to. Bawolff (talk) 19:58, 28 March 2021 (UTC)
- Thanks, that makes sense (I wasn't clear on the execution order of the various files and was thrown by the online documentation which refers to $wgLogo, the inline documentation which refers to $wgLogos, and the default logo which also refers to $wgLogos).
- It's rudimentary but I just stuck a print statement in my LocalSettings.php file right before I use $wgUploadPath to assign $wgLogos:
- print "wgUploadPath: {$wgUploadPath}";
- #$wgLogos = [ '1x' => "$wgResourceBasePath/resources/assets/wiki.png" ];
- $wgLogos = [ '1x' => "{$wgUploadPath}/2/20/logo-135-test.jpg" ];
- So instead of the above, I'll now do this (which works):
- $wgLogos = [ '1x' => "{$wgScriptPath}/images/2/20/logo-135-test.jpg" ]; Michhes (talk) 11:36, 29 March 2021 (UTC)
Populating Category pages
I am a contributor to the Mythtv wiki which I understand is based on Mediawiki.
Yesterday I did a few small edits to one of my pages:
https://www.mythtv.org/wiki/Channel_Editor
and included links (at the foot of the page) to two extra category pages: ‘HOWTO’ and ‘Knowledge Base’.
https://www.mythtv.org/wiki/Category:HOWTO
https://www.mythtv.org/wiki/Category:Knowledge_Base
You can link to the category pages from my page but the reverse links – back to my page- only appear in the category pages whilst the reader is logged in. Log out and they vanish, login and they reappear.
Another contributor has confirmed that he experiences this too.
The category links I created back in 2018 are fine, though I recall that I had to perform ‘null’ edits to the category pages to make them stick. That trick no longer works as I can no longer do ‘null’ edits.
Can anyone shed light on this? How can I populate the category pages?
Phil
PhilBrady (talk) 11:27, 28 March 2021 (UTC)
- there was a long standing bug where category pages aren't purged from varnish/browser cache on category additions (hence effecting logged out only).
- You can force purge the category page by going to https://www.mythtv.org/wiki/Category:Knowledge_Base?action=purge
- See https://phabricator.wikimedia.org/T26575 for the bug Bawolff (talk) 19:52, 28 March 2021 (UTC)
- Thanks bawolff but ?action=purge does not work.
- What does work is a trivial edit (double full stop at end of text) and saving the category page. PhilBrady (talk) 16:11, 29 March 2021 (UTC)
Changes on a page, display date for each word
Is there a way or an extension that does exactly that? You hover over a word and it shows you the last time someone editet that word or sentence? Bedtry (talk) 18:47, 28 March 2021 (UTC)
- there's been some efforts but they have mostly been external tools aimed at wikipedia like Who Wrote That? w:Wikipedia:WikiBlame Bawolff (talk) 19:48, 28 March 2021 (UTC)
- Thanks, but i read into it and it seems quite complicatet (at least for me) to get it installed in my own wiki. Sad that it only comes as a browser extension and not as a mediawiki extension. Bedtry (talk) 11:53, 29 March 2021 (UTC)
Can't seem to restrict Module namespace?
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 restrict Module editing just to sysop but none of the normal namespace protection things seem to work. I've copied other protections from my wiki (e.g. Template - which does work fine), but users can always edit Module pages. Here's my latest detailed config - all users with normal 'edit' rights can edit the page. Any clues?
$wgNamespaceProtection[NS_MODULE] = ['edit-module'];
$wgGroupPermissions['*']['edit-module'] = false;
$wgGroupPermissions['user']['edit-module'] = false;
$wgGroupPermissions['emailconfirmed']['edit-module'] = false;
$wgGroupPermissions['autoconfirmed']['edit-module'] = false;
$wgGroupPermissions['manualconfirmed']['edit-module'] = false;
$wgGroupPermissions['bureaucrat']['edit-module'] = true; 91.125.240.46 (talk) 21:45, 28 March 2021 (UTC)
- Use the literal 828 instead of NS_MODULE.
$wgNamespaceProtection[828] = ['edit-module'];- The constant may not be available in LocalSettings.php and you're probably suppressing errors/notices, so you don't see anything. Ammarpad (talk) 05:29, 29 March 2021 (UTC)
- Ah, fantastic, this has worked. Thanks! 91.125.240.46 (talk) 09:36, 29 March 2021 (UTC)
OAuth 2 extension problem, with Wikibase 1.35 (docker-compose)
Hi,
I'm trying to use the OAuth 2 extension included in the Wikibase 1.35 (docker-compose bundle, found here : https://github.com/wmde/wikibase-docker).
First, I've tried OAuth2, just with this url in my browser :"myWikiUrl"/w/rest.php/oauth2/resource/profile
And I've got this error :
"Notice: Key file "file://" permissions are not correct, recommend changing to 600 or 660 instead of 755 in /var/www/html/extensions/OAuth/vendor/league/oauth2-server/src/CryptKey.php on line 63 "
So, I've generated private and public keys, with :
openssl genrsa -out private.key 2048
openssl rsa -in private.key -pubout -out public.key
Then, I've added those parameters : $wgOAuth2PrivateKey and $wgOAuth2PublicKey , to the end of my LocalSettings.php file, and I've set them to my generated keys paths.
I "chmod 660", the keys and "chown" them to www-data:www-data .
Then, I've tried to authenticate with PostMan, with an OAuth 2 configuration : "Authorization Code" Grant type, a Callback URL, an Auth URL : "w/rest.php/oauth2/authorize" , an Access Token URL : "w/rest.php/oauth2/access_token", my Cliend ID and my Client Secret, and with the option "Client Authentication send as Basic Auth header".
The authentication was ok, but the access_token returned this error (same error if I used : "myWikiUrl"/w/rest.php/oauth2/resource/profile ) :
<br /> <b>Fatal error</b>: Method MediaWiki\Extensions\OAuth\Entity\AccessTokenEntity::__toString() must not throw an exception, caught ParseError: syntax error, unexpected 'Parser' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in <b>/var/www/html/extensions/OAuth/vendor/league/oauth2-server/src/ResponseTypes/BearerTokenResponse.php</b> on line <b>0</b><br />↵
I don't know what is not correct..
Thanks in advance AurelienCharot (talk) 22:23, 28 March 2021 (UTC)
- Hi,
- A solution was found here : https://phabricator.wikimedia.org/T279056 AurelienCharot (talk) 17:53, 10 April 2021 (UTC)
remind
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 guys, could someone solve this problem and delete this please
How to prohibit an article to be showed in a category? on Project:Support desk (mediawiki.org) Servant of Lord Jesus (talk) 08:01, 29 March 2021 (UTC)
- Hi, please do not deliberately post separate duplicate posting which waste time and defragment conversations. (PS: No guys needed.) Thanks! Malyacko (talk) 09:22, 29 March 2021 (UTC)
Fehlermeldung: No writable temporary directory could be found
Ich bin der folgenden Anleitung gefolgt : Manual:Installing MediaWiki on Windows Server 2019
Beim versuch das Wiki auf dem lokalen Server zu öffnen (http://127.0.0.1/mediawiki/mw-config/index.php )
bekomme ich folgende Fehlermeldung:
MediaWiki internal error.
Original exception: [8275600733b593409257db1d] [no req] RuntimeException from line 105 of C:\inetpub\wwwroot\mediawiki\includes\libs\filebackend\fsfile\TempFSFile.php: No writable temporary directory could be found. Please explicitly specify a writable directory in configuration.
Backtrace:
#0 C:\inetpub\wwwroot\mediawiki\includes\GlobalFunctions.php(1879): TempFSFile::getUsableTempDirectory()
#1 C:\inetpub\wwwroot\mediawiki\includes\Setup.php(589): wfTempDir()
#2 C:\inetpub\wwwroot\mediawiki\includes\WebStart.php(89): require_once(string)
#3 C:\inetpub\wwwroot\mediawiki\mw-config\index.php(38): require(string)
#4 {main}
Exception caught inside exception handler: [8275600733b593409257db1d] [no req] Error from line 2153 of C:\inetpub\wwwroot\mediawiki\includes\user\User.php: Call to a member function getIP() on null
Backtrace:
#0 C:\inetpub\wwwroot\mediawiki\includes\session\SessionBackend.php(742): User->getName()
#1 C:\inetpub\wwwroot\mediawiki\includes\session\SessionBackend.php(215): MediaWiki\Session\SessionBackend->save(boolean)
#2 C:\inetpub\wwwroot\mediawiki\includes\session\Session.php(73): MediaWiki\Session\SessionBackend->deregisterSession(integer)
#3 C:\inetpub\wwwroot\mediawiki\includes\session\SessionManager.php(220): MediaWiki\Session\Session->__destruct()
#4 C:\inetpub\wwwroot\mediawiki\includes\WebRequest.php(826): MediaWiki\Session\SessionManager->getSessionForRequest(WebRequest)
#5 C:\inetpub\wwwroot\mediawiki\includes\user\User.php(1169): WebRequest->getSession()
#6 C:\inetpub\wwwroot\mediawiki\includes\user\User.php(338): User->loadDefaults()
#7 C:\inetpub\wwwroot\mediawiki\includes\user\User.php(2125): User->load()
#8 C:\inetpub\wwwroot\mediawiki\includes\user\User.php(3064): User->getId()
#9 C:\inetpub\wwwroot\mediawiki\includes\user\UserOptionsManager.php(584): User->isRegistered()
#10 C:\inetpub\wwwroot\mediawiki\includes\user\UserOptionsManager.php(487): MediaWiki\User\UserOptionsManager->getCacheKey(User)
#11 C:\inetpub\wwwroot\mediawiki\includes\user\UserOptionsManager.php(135): MediaWiki\User\UserOptionsManager->loadUserOptions(User, integer)
#12 C:\inetpub\wwwroot\mediawiki\includes\user\User.php(2665): MediaWiki\User\UserOptionsManager->getOption(User, string, NULL, boolean)
#13 C:\inetpub\wwwroot\mediawiki\includes\context\RequestContext.php(355): User->getOption(string)
#14 C:\inetpub\wwwroot\mediawiki\includes\language\Message.php(404): RequestContext->getLanguage()
#15 C:\inetpub\wwwroot\mediawiki\includes\language\Message.php(1304): Message->getLanguage()
#16 C:\inetpub\wwwroot\mediawiki\includes\language\Message.php(862): Message->fetchMessage()
#17 C:\inetpub\wwwroot\mediawiki\includes\language\Message.php(954): Message->toString(string)
#18 C:\inetpub\wwwroot\mediawiki\includes\exception\MWExceptionRenderer.php(221): Message->text()
#19 C:\inetpub\wwwroot\mediawiki\includes\exception\MWExceptionRenderer.php(156): MWExceptionRenderer::msg(string, string)
#20 C:\inetpub\wwwroot\mediawiki\includes\exception\MWExceptionRenderer.php(65): MWExceptionRenderer::reportHTML(RuntimeException)
#21 C:\inetpub\wwwroot\mediawiki\includes\exception\MWExceptionHandler.php(106): MWExceptionRenderer::output(RuntimeException, integer)
#22 C:\inetpub\wwwroot\mediawiki\includes\exception\MWExceptionHandler.php(185): MWExceptionHandler::report(RuntimeException)
#23 C:\inetpub\wwwroot\mediawiki\includes\exception\MWExceptionHandler.php(156): MWExceptionHandler::handleException(RuntimeException, string)
#24 [internal function]: MWExceptionHandler::handleUncaughtException(RuntimeException)
#25 {main}
Kann mir jemand helfen? Denyo12 (talk) 08:49, 29 March 2021 (UTC)
- (I don't speak German?). Set $wgTmpDirectory to a writable directory. – Ammarpad (talk) 18:47, 29 March 2021 (UTC)
- make sure the web server can access C:\Windows\Temp and can creare subdirectories.
- Otherwise set TEMP environment variable to somewhere writeable by the webserver. Bawolff (talk) 00:42, 30 March 2021 (UTC)
favicon.ico:1 Failed to load resource: the server responded with a status of 404 ()
MediaWiki 1.35.1 all-core with Skin:Timeless.
I don't use a favicon and prefer not to use one.
Each time I access the browser console in devtool I get this message:
favicon.ico:1 Failed to load resource: the server responded with a status of 404 ()
How to get rid of this error?
I am afraid it might sabotage the rest of my JavaScript processing. 2001:44C8:4559:C64F:440B:B7A8:4591:9F13 (talk) 15:19, 29 March 2021 (UTC)
- > I am afraid it might sabotage the rest of my JavaScript processing
- It won't (its not a javascript error or related to js).
- You can set $wgFavicon = false; which will stop mediawiki from setting one. However most browsers will assume that favicon.ico in the root web directory is the favicon if the website does not set one, and hence is outside of mediawiki's control. Bawolff (talk) 00:38, 30 March 2021 (UTC)
- I am not sure if I understood you correctly.
- I have added to the end of my LocalSettings.php the code
$wgFavicon = false;(which was not there before) and saved the file. - I then totally refreshed the webpage with CTRL+Shift+R in both Chrome and Edge and both displayed an error:
- Chrome error
GET DOMAIN/favicon.ico 404 favicon.ico:1
- Edge error
GET DOMAIN/favicon.ico 404 favicon.ico:1
- Do you think this is totally unrelated to MediaWiki?
- Thanks, 2001:44C8:44C6:DC57:111B:6A1F:642:6F2F (talk) 04:32, 30 March 2021 (UTC)
- > Do you think this is totally unrelated to MediaWiki?
- yes. See https://en.wikipedia.org/wiki/Favicon#How_to_use Bawolff (talk) 07:11, 30 March 2021 (UTC)
- There are some thoughts on this here:
- https://stackoverflow.com/questions/1321878/how-to-prevent-favicon-ico-requests Jonathan3 (talk) 05:00, 1 April 2021 (UTC)
Why are there South African languages in Wikipedia
Why aren't there no South African languages in Wikipedia 41.113.36.89 (talk) 17:48, 29 March 2021 (UTC)
- There are. Check "
metawikimedia:list of Wikipedias." Nicole Sharp (talk) 20:45, 29 March 2021 (UTC) - For example: "
wikipedia:zu:Main Page" or "wikipedia:xh:Main Page". Nicole Sharp (talk) 20:47, 29 March 2021 (UTC) - All twelve of the official languages of South Africa are also available on the Wikipedia multilingual homepage, each with their own Wikipedia (with more than 100 articles in each language):
https://www.wikipedia.org/. Nicole Sharp (talk) 21:14, 29 March 2021 (UTC) - see also https://meta.wikimedia.org/wiki/Language_proposal_policy for info on what qualifies Bawolff (talk) 00:32, 30 March 2021 (UTC)
Log In from other site ClientLogin doesnt work
Hi
I have this problem where i'm trying to log in to my media wiki (www.biblioteca.xxxxx.com) from another site (www.somesite.com) using ClientLogin.
$temp_folder = '../app/Http/Biblioteca/Cookies/';
$cookie_jar = tempnam($temp_folder,'cookie');
$endPoint = "http://www.biblioteca.xxxxxxx.com/api.php";
$params = [
"action" => "query",
"meta" => "tokens",
"type" => "login",
"format" => "json"
];
$url = $endPoint . "?" . http_build_query( $params );
$ch = curl_init( $url );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
curl_setopt( $ch, CURLOPT_COOKIEJAR, $cookie_jar );
curl_setopt( $ch, CURLOPT_COOKIEFILE, $cookie_jar );
$output = curl_exec( $ch );
$result = json_decode( $output, true );
$token = $result['query']['tokens']['logintoken'];
curl_setopt_array($ch, array(
CURLOPT_URL => $endPoint,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => array(
'action' => 'clientlogin',
'format' => 'json',
'loginreturnurl' => 'http://www.biblioteca.xxxxxxx.com',
'logintoken' => $token,
'username' => $username,
'password' => $password,
'rememberMe' => '1',
),
));
$output = curl_exec( $ch );
curl_close( $ch );
echo($output);
I get PASS code but when i redirect to 'http://www.biblioteca.xxxxxxx.com' im not loged in.
Sorry for bad english CodingCred (talk) 19:48, 29 March 2021 (UTC)
- this code is in my www.somesite.com project, my 'www.biblioteca.xxxxxx.com' WikiMedia version is 1.29 CodingCred (talk) 19:52, 29 March 2021 (UTC)
- ?How can i get it to redirect and already be logged in? CodingCred (talk) 19:53, 29 March 2021 (UTC)
- you're sending a redirect to the browser? The browser would not have the cookies that got set to curl so it would not be logged in.
- This is not the right approach to do single sign on. See SessionManager for the reccomended approach. Bawolff (talk) 00:30, 30 March 2021 (UTC)
- @CodingCred Also note that 1.29 is an ancient insecure version which has been unsupported for 30 months and has seurity issues. Please use recent and secure software versions. Malyacko (talk) 07:29, 30 March 2021 (UTC)
word-wrap large numbers
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 noticed that MediaWiki doesn't have a native way to word-wrap large numbers in wikitext. They are wrapped when using the SyntaxHighlightPages plaintext page content model, but not when using the MediaWiki plaintext page content model or the MediaWiki wikitext page content model. Can you recommend a way to insert a wordbreak (<wbr />) once every 16 (or 10) characters? I can use an external text editor to insert <wbr /> after every "0", but for irrational numbers, that means that the wordbreaks are randomly distributed. It would look nicer on the wikipage if they were evenly distributed instead.
No breaks:
2.7182818284590452353602874713526624977572470936999595749669676277240766303535475945713821785251664274274663919320030599218174135966290435729003342952605956307381323286279434907632338298807531952510190115738341879307021540891499348841675092447614606680822648001684774118537423454424371075390777449920695517027618386062613313845830007520449338265602976067371132007093287091274437470472306969772093101416928368190255151086574637721112523897844250569536967707854499699679468644549059879316368892300987931277361782154
Random breaks:
2.7182818284590
Nicole Sharp (talk) 20:27, 29 March 2021 (UTC)
- Hm. It looks like the Flow extension does wrap the numbers. But need this for mainspace pages. Nicole Sharp (talk) 20:27, 29 March 2021 (UTC)
- it might depend on your skin & css.
- you could ass some css to set overflow-wrap: break-word;
- https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-wrap Bawolff (talk) 00:27, 30 March 2021 (UTC)
- Thanks!!! I didn't know that CSS could control linebreaks/wordbreaks. That worked. I was also able to get it working by using
syntaxhighlight. SyntaxHighlight blocks off the large number from the regular wikitext, so that is probably the best option. - CSS:
- 2.7182818284590452353602874713526624977572470936999595749669676277240766303535475945713821785251664274274663919320030599218174135966290435729003342952605956307381323286279434907632338298807531952510190115738341879307021540891499348841675092447614606680822648001684774118537423454424371075390777449920695517027618386062613313845830007520449338265602976067371132007093287091274437470472306969772093101416928368190255151086574637721112523897844250569536967707854499699679468644549059879316368892300987931277361782154
- SyntaxHighlight:
2.7182818284590452353602874713526624977572470936999595749669676277240766303535475945713821785251664274274663919320030599218174135966290435729003342952605956307381323286279434907632338298807531952510190115738341879307021540891499348841675092447614606680822648001684774118537423454424371075390777449920695517027618386062613313845830007520449338265602976067371132007093287091274437470472306969772093101416928368190255151086574637721112523897844250569536967707854499699679468644549059879316368892300987931277361782154
- Nicole Sharp (talk) 08:04, 30 March 2021 (UTC)
- It would be cool if there was a MediaWiki extension that could underline every 10th digit (and maybe also put every 100th digit in bold) to help read big numbers. Nicole Sharp (talk) 08:07, 30 March 2021 (UTC)
- Just using
prealso works:user:Nicole Sharp/sandbox/numbers. Nicole Sharp (talk) 08:13, 30 March 2021 (UTC)
How to Change Footer Links in Vector Skin
I'm trying to follow this with mediawiki 1.35.1
Manual:Hooks/SkinAddFooterLinks
I've tried registering the hook in the skin.json, and then adding the following to Hooks.php
public static function onSkinAddFooterLinks( Skin $skin, string $key, array &$footerlinks ) { if ( $key === 'places' ) { $footerlinks['my_url'] = Html::rawElement( 'a', [ 'href' => 'https://my.url/' ], 'My URL' ); } }
without the if statement, so that the link should show up on the footer of every page.
This doesn't seem to change the footer links at all. I already have some default links, but have no idea how to edit them or add more (using this method).
Please let me know what to do, thanks! Overfeedrumbling (talk) 06:51, 30 March 2021 (UTC)
- Have you seen this? Skin:Vector/Customize Jonathan3 (talk) 04:26, 31 March 2021 (UTC)
ottenere backup wiki
Ciao a tutti, è stata chiusa la mia wiki per inattività (https://meta.miraheze.org/wiki/User_talk:Umpc#Wiki_created). Non è possibile, mi hanno detto, ripristinarla. Come posso ottenere il beckup del materiale che avevo inserito? Grazie per l'aiuto Caputoa (talk) 08:15, 30 March 2021 (UTC)
- @Caputoa Ciao, non siamo Miraheze. Si prega di contattare Miraheze per i contenuti su Miraheze. Grazie! Malyacko (talk) 18:25, 30 March 2021 (UTC)
413 error while trying to fetch using desktop api
hey I am getting status code 413 while requesting an article page using desktop rest api here is the url I am using -> https://hi.wikibooks.org/api/rest_v1/page/html/%E0%A4%B5%E0%A4%BF%E0%A4%95%E0%A4%BF%E0%A4%AA%E0%A5%81%E0%A4%B8%E0%A5%8D%E0%A4%A4%E0%A4%95%3A%E0%A4%9A%E0%A5%8C%E0%A4%AA%E0%A4%BE%E0%A4%B2%2F%E0%A4%B8%E0%A4%AE%E0%A4%BE%E0%A4%9A%E0%A4%BE%E0%A4%B0 can anyone help me with how I can avoid this 413 error I couldn't find anything here https://hi.wikibooks.org/api/rest_v1/#/Page%20content/get_page_html__title_ what should I add in headers which might help me 2401:4900:16D9:FBD4:A462:D8C:74E0:A66A (talk) 11:39, 30 March 2021 (UTC)
- I suspect its a bug related to the length of that page. Bawolff (talk) 00:50, 31 March 2021 (UTC)
Search for draw extension
I im searching for an implementation of draw.ms or differently. Just a simple way to scribble some notes with a graphic tablet. Alternatives to Extension:SVGEdit? Bedtry (talk) 14:15, 30 March 2021 (UTC)
Unable to move units
Update is not allowing units to be move after latest update. 2603:9001:6502:2C1E:7D3E:8935:D0A9:781E (talk) 15:15, 30 March 2021 (UTC)
- Update of what? From which version to which version? Which "units"? Is this about MediaWiki at all? Malyacko (talk) 18:23, 30 March 2021 (UTC)
While upgrading MediaWiki from 1.31.8 to 1.35.1 I'm getting the following 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.
MediaWiki internal error.
Original exception: [d3ea77693d4970337b4d7e6f] /wiki/Main_Page MediaWiki\Revision\RevisionAccessException from line 1033 of D:\Bitnami\wampstack\apps\mediawiki\includes\Revision\RevisionStore.php: Failed to load data blob from tt:17846: Unable to fetch blob at tt:17846 Backtrace:
- 0 D:\Bitnami\wampstack\apps\mediawiki\includes\Revision\RevisionStore.php(1280): MediaWiki\Revision\RevisionStore->loadSlotContent(MediaWiki\Revision\SlotRecord, NULL, NULL, NULL, integer)
- 1 [internal function]: MediaWiki\Revision\RevisionStore->MediaWiki\Revision\{closure}(MediaWiki\Revision\SlotRecord)
- 2 D:\Bitnami\wampstack\apps\mediawiki\includes\Revision\SlotRecord.php(307): call_user_func(Closure, MediaWiki\Revision\SlotRecord)
- 3 D:\Bitnami\wampstack\apps\mediawiki\includes\Revision\RevisionRecord.php(175): MediaWiki\Revision\SlotRecord->getContent()
- 4 D:\Bitnami\wampstack\apps\mediawiki\includes\cache\MessageCache.php(1185): MediaWiki\Revision\RevisionRecord->getContent(string)
- 5 D:\Bitnami\wampstack\apps\mediawiki\includes\libs\objectcache\wancache\WANObjectCache.php(1529): MessageCache->{closure}(boolean, integer, array, NULL, array)
- 6 D:\Bitnami\wampstack\apps\mediawiki\includes\libs\objectcache\wancache\WANObjectCache.php(1376): WANObjectCache->fetchOrRegenerate(string, integer, Closure, array, array)
- 7 D:\Bitnami\wampstack\apps\mediawiki\includes\cache\MessageCache.php(1205): WANObjectCache->getWithSetCallback(string, integer, Closure)
- 8 D:\Bitnami\wampstack\apps\mediawiki\includes\libs\objectcache\BagOStuff.php(149): MessageCache->{closure}(integer)
- 9 D:\Bitnami\wampstack\apps\mediawiki\includes\cache\MessageCache.php(1207): BagOStuff->getWithSetCallback(string, integer, Closure)
- 10 D:\Bitnami\wampstack\apps\mediawiki\includes\cache\MessageCache.php(1109): MessageCache->loadCachedMessagePageEntry(string, string, string)
- 11 D:\Bitnami\wampstack\apps\mediawiki\includes\cache\MessageCache.php(1017): MessageCache->getMsgFromNamespace(string, string)
- 12 D:\Bitnami\wampstack\apps\mediawiki\includes\cache\MessageCache.php(988): MessageCache->getMessageForLang(LanguageEn, string, boolean, array)
- 13 D:\Bitnami\wampstack\apps\mediawiki\includes\cache\MessageCache.php(930): MessageCache->getMessageFromFallbackChain(LanguageEn, string, boolean)
- 14 D:\Bitnami\wampstack\apps\mediawiki\includes\language\Message.php(1304): MessageCache->get(string, boolean, LanguageEn)
- 15 D:\Bitnami\wampstack\apps\mediawiki\includes\language\Message.php(862): Message->fetchMessage()
- 16 D:\Bitnami\wampstack\apps\mediawiki\includes\language\Message.php(954): Message->toString(string)
- 17 D:\Bitnami\wampstack\apps\mediawiki\includes\skins\SkinTemplate.php(775): Message->text()
- 18 D:\Bitnami\wampstack\apps\mediawiki\includes\skins\SkinTemplate.php(1046): SkinTemplate->getWatchLinkAttrs(string, User, Title, string, boolean)
- 19 D:\Bitnami\wampstack\apps\mediawiki\includes\skins\SkinTemplate.php(379): SkinTemplate->buildContentNavigationUrls()
- 20 D:\Bitnami\wampstack\apps\mediawiki\skins\chameleon\src\Chameleon.php(165): SkinTemplate->prepareQuickTemplate()
- 21 D:\Bitnami\wampstack\apps\mediawiki\includes\skins\SkinTemplate.php(127): Skins\Chameleon\Chameleon->prepareQuickTemplate()
- 22 D:\Bitnami\wampstack\apps\mediawiki\includes\skins\SkinTemplate.php(144): SkinTemplate->generateHTML()
- 23 D:\Bitnami\wampstack\apps\mediawiki\includes\OutputPage.php(2615): SkinTemplate->outputPage()
- 24 D:\Bitnami\wampstack\apps\mediawiki\includes\MediaWiki.php(947): OutputPage->output(boolean)
- 25 D:\Bitnami\wampstack\apps\mediawiki\includes\MediaWiki.php(960): MediaWiki->{closure}()
- 26 D:\Bitnami\wampstack\apps\mediawiki\includes\MediaWiki.php(543): MediaWiki->main()
- 27 D:\Bitnami\wampstack\apps\mediawiki\index.php(53): MediaWiki->run()
- 28 D:\Bitnami\wampstack\apps\mediawiki\index.php(46): wfIndexMain()
- 29 {main}
Exception caught inside exception handler: [d3ea77693d4970337b4d7e6f] /wiki/Main_Page MediaWiki\Revision\RevisionAccessException from line 1033 of D:\Bitnami\wampstack\apps\mediawiki\includes\Revision\RevisionStore.php: Failed to load data blob from tt:17846: Unable to fetch blob at tt:17846 Backtrace:
- 0 D:\Bitnami\wampstack\apps\mediawiki\includes\Revision\RevisionStore.php(1280): MediaWiki\Revision\RevisionStore->loadSlotContent(MediaWiki\Revision\SlotRecord, NULL, NULL, NULL, integer)
- 1 [internal function]: MediaWiki\Revision\RevisionStore->MediaWiki\Revision\{closure}(MediaWiki\Revision\SlotRecord)
- 2 D:\Bitnami\wampstack\apps\mediawiki\includes\Revision\SlotRecord.php(307): call_user_func(Closure, MediaWiki\Revision\SlotRecord)
- 3 D:\Bitnami\wampstack\apps\mediawiki\includes\Revision\RevisionRecord.php(175): MediaWiki\Revision\SlotRecord->getContent()
- 4 D:\Bitnami\wampstack\apps\mediawiki\includes\cache\MessageCache.php(1185): MediaWiki\Revision\RevisionRecord->getContent(string)
- 5 D:\Bitnami\wampstack\apps\mediawiki\includes\libs\objectcache\wancache\WANObjectCache.php(1529): MessageCache->{closure}(boolean, integer, array, NULL, array)
- 6 D:\Bitnami\wampstack\apps\mediawiki\includes\libs\objectcache\wancache\WANObjectCache.php(1376): WANObjectCache->fetchOrRegenerate(string, integer, Closure, array, array)
- 7 D:\Bitnami\wampstack\apps\mediawiki\includes\cache\MessageCache.php(1205): WANObjectCache->getWithSetCallback(string, integer, Closure)
- 8 D:\Bitnami\wampstack\apps\mediawiki\includes\libs\objectcache\BagOStuff.php(149): MessageCache->{closure}(integer)
- 9 D:\Bitnami\wampstack\apps\mediawiki\includes\cache\MessageCache.php(1207): BagOStuff->getWithSetCallback(string, integer, Closure)
- 10 D:\Bitnami\wampstack\apps\mediawiki\includes\cache\MessageCache.php(1109): MessageCache->loadCachedMessagePageEntry(string, string, string)
- 11 D:\Bitnami\wampstack\apps\mediawiki\includes\cache\MessageCache.php(1017): MessageCache->getMsgFromNamespace(string, string)
- 12 D:\Bitnami\wampstack\apps\mediawiki\includes\cache\MessageCache.php(988): MessageCache->getMessageForLang(LanguageEn, string, boolean, array)
- 13 D:\Bitnami\wampstack\apps\mediawiki\includes\cache\MessageCache.php(930): MessageCache->getMessageFromFallbackChain(LanguageEn, string, boolean)
- 14 D:\Bitnami\wampstack\apps\mediawiki\includes\language\Message.php(1304): MessageCache->get(string, boolean, LanguageEn)
- 15 D:\Bitnami\wampstack\apps\mediawiki\includes\language\Message.php(862): Message->fetchMessage()
- 16 D:\Bitnami\wampstack\apps\mediawiki\includes\language\Message.php(954): Message->toString(string)
- 17 D:\Bitnami\wampstack\apps\mediawiki\includes\skins\SkinTemplate.php(775): Message->text()
- 18 D:\Bitnami\wampstack\apps\mediawiki\includes\skins\SkinTemplate.php(1046): SkinTemplate->getWatchLinkAttrs(string, User, Title, string, boolean)
- 19 D:\Bitnami\wampstack\apps\mediawiki\includes\skins\SkinTemplate.php(379): SkinTemplate->buildContentNavigationUrls()
- 20 D:\Bitnami\wampstack\apps\mediawiki\skins\chameleon\src\Chameleon.php(165): SkinTemplate->prepareQuickTemplate()
- 21 D:\Bitnami\wampstack\apps\mediawiki\includes\skins\SkinTemplate.php(127): Skins\Chameleon\Chameleon->prepareQuickTemplate()
- 22 D:\Bitnami\wampstack\apps\mediawiki\includes\skins\SkinTemplate.php(144): SkinTemplate->generateHTML()
- 23 D:\Bitnami\wampstack\apps\mediawiki\includes\OutputPage.php(2615): SkinTemplate->outputPage()
- 24 D:\Bitnami\wampstack\apps\mediawiki\includes\exception\MWExceptionRenderer.php(153): OutputPage->output()
- 25 D:\Bitnami\wampstack\apps\mediawiki\includes\exception\MWExceptionRenderer.php(65): MWExceptionRenderer::reportHTML(MediaWiki\Revision\RevisionAccessException)
- 26 D:\Bitnami\wampstack\apps\mediawiki\includes\exception\MWExceptionHandler.php(106): MWExceptionRenderer::output(MediaWiki\Revision\RevisionAccessException, integer)
- 27 D:\Bitnami\wampstack\apps\mediawiki\includes\exception\MWExceptionHandler.php(185): MWExceptionHandler::report(MediaWiki\Revision\RevisionAccessException)
- 28 D:\Bitnami\wampstack\apps\mediawiki\includes\MediaWiki.php(576): MWExceptionHandler::handleException(MediaWiki\Revision\RevisionAccessException, string)
- 29 D:\Bitnami\wampstack\apps\mediawiki\index.php(53): MediaWiki->run()
- 30 D:\Bitnami\wampstack\apps\mediawiki\index.php(46): wfIndexMain()
- 31 {main} Legaulph (talk) 15:55, 30 March 2021 (UTC)
- sounds like a referential integrity issue. You are probably missing an entry in the text table with old_id=17846 Bawolff (talk) 00:45, 31 March 2021 (UTC)
- Thanks for the quick response Bawolff.
- When I run SELECT * FROM kb_text WHERE old_id = 17846
- Nothing there
- I do find the ID under kb_revision
- SELECT * FROM kb_revision WHERE rev_id = 17846
| rev_id | rev_page | rev_comment_id | rev_actor | rev_timestamp | rev_minor_edit | rev_deleted | rev_len | rev_parent_id |
|---|---|---|---|---|---|---|---|---|
| 17846 | 5161 | 0 | 0 | 20091022175611 | 0 | 0 | 20 | 0 |
- Legaulph (talk) 14:09, 31 March 2021 (UTC)
- Thanks Legaulph (talk) 14:09, 31 March 2021 (UTC)
- That's probably a coincidence (rev_id and text.old_id use different numbering schemes).
- You could try adding a dummy entry for that id into the text table. Bawolff (talk) 01:37, 2 April 2021 (UTC)
- Thanks Bawolff,
- I actually had 2 ids it was failing on and I inserted them both and the site came up.
- I have some other issues so I probably will add another issue.
- Legaulph (talk) 17:59, 2 April 2021 (UTC)
Short Urls on Nginx raise 404 Error on /wiki/File:Image.png/.gif/.jpg Only
We are migrating our installation from an Apache (Bitnami) to Nginx on Ubuntu 20 (Focal). Installation and upgrade went smoothly. Using ImageMagick for thumbnails.
Followed the manual to create Short URLs and they seem to work fine except for images ONLY - a 404 error is displayed. Add anything after the image extension (eg. '/wiki/FILE:image.png.aaa' and the normal wiki "not found" is raised.)
Appears to be a rewrite issue. Following the manual added the following in the nginx config
[...]
# Handling for the article path (pretty URLs)
location /wiki {
rewrite ^/wiki[/]?([^\?]*) /index.php?title=$1&$args last;
}
[...]
Not sure what I am missing. Please help! User9216 (talk) 20:41, 30 March 2021 (UTC)
- I've not looked at your config line yet but is the problem below your only one?
- "Add anything after the image extension (eg. '/wiki/FILE:image.png.aaa' and the normal wiki "not found" is raised.)"
- That seems normal. Jonathan3 (talk) 04:23, 31 March 2021 (UTC)
Copying over mediawiki folder to another host with all the packages installed throwing this exception
[213feadfe6ffab9a0b70449f] /mediawiki/ Wikimedia\Rdbms\DBQueryError from line 1699 of /var/lib/mediawiki/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Error 1146: Table 'my_wiki.l10n_cache' doesn't exist (localhost)
Function: LCStoreDB::get
Query: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'deps' LIMIT 1
Backtrace:
#0 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1683): Wikimedia\Rdbms\Database->getQueryException()
#1 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1658): Wikimedia\Rdbms\Database->getQueryExceptionAndLog()
#2 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1227): Wikimedia\Rdbms\Database->reportQueryError()
#3 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1907): Wikimedia\Rdbms\Database->query()
#4 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1746): Wikimedia\Rdbms\Database->select()
#5 /var/lib/mediawiki/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->selectField()
#6 /var/lib/mediawiki/includes/libs/rdbms/database/DBConnRef.php(300): Wikimedia\Rdbms\DBConnRef->__call()
#7 /var/lib/mediawiki/includes/cache/localisation/LCStoreDB.php(63): Wikimedia\Rdbms\DBConnRef->selectField()
#8 /var/lib/mediawiki/includes/cache/localisation/LocalisationCache.php(449): LCStoreDB->get()
#9 /var/lib/mediawiki/includes/cache/localisation/LocalisationCache.php(495): LocalisationCache->isExpired()
#10 /var/lib/mediawiki/includes/cache/localisation/LocalisationCache.php(414): LocalisationCache->initLanguage()
#11 /var/lib/mediawiki/includes/cache/localisation/LocalisationCache.php(333): LocalisationCache->loadSubitem()
#12 /var/lib/mediawiki/languages/Language.php(2645): LocalisationCache->getSubitem()
#13 /var/lib/mediawiki/includes/cache/MessageCache.php(1030): Language->getMessage()
#14 /var/lib/mediawiki/includes/cache/MessageCache.php(988): MessageCache->getMessageForLang()
#15 /var/lib/mediawiki/includes/cache/MessageCache.php(930): MessageCache->getMessageFromFallbackChain()
#16 /var/lib/mediawiki/includes/language/Message.php(1304): MessageCache->get()
#17 /var/lib/mediawiki/includes/language/Message.php(862): Message->fetchMessage()
#18 /var/lib/mediawiki/includes/language/Message.php(954): Message->toString()
#19 /var/lib/mediawiki/includes/title/MalformedTitleException.php(51): Message->text()
#20 /var/lib/mediawiki/includes/title/MediaWikiTitleCodec.php(346): MalformedTitleException->__construct()
#21 /var/lib/mediawiki/includes/Title.php(3413): MediaWikiTitleCodec->splitTitleString()
#22 /var/lib/mediawiki/includes/Title.php(427): Title->secureAndSplit()
#23 /var/lib/mediawiki/includes/MediaWiki.php(88): Title::newFromURL()
#24 /var/lib/mediawiki/includes/MediaWiki.php(151): MediaWiki->parseTitle()
#25 /var/lib/mediawiki/includes/MediaWiki.php(902): MediaWiki->getTitle()
#26 /var/lib/mediawiki/includes/MediaWiki.php(543): MediaWiki->main()
#27 /var/lib/mediawiki/index.php(53): MediaWiki->run()
#28 /var/lib/mediawiki/index.php(46): wfIndexMain()
#29 {main} 68.129.140.104 (talk) 22:13, 30 March 2021 (UTC)
- FYI, i ran the update.php under the maintenance folder and got this:
MediaWiki 1.35.1 UpdaterYour composer.lock file is up to date with current dependencies!Going to run database updates for my_wikiDepending on the size of your database this may take a while!Abort with control-c in the next five seconds (skip this countdown with --quick) ... 0...ipblocks table does not exist, skipping new field patch....ipblocks table does not exist, skipping new field patch....already have interwiki tableMWException from line 524 of /var/lib/mediawiki/includes/installer/MysqlUpdater.php: Missing rc_timestamp field of recentchanges table. Should not happen.#0 /var/lib/mediawiki/includes/installer/DatabaseUpdater.php(554): MysqlUpdater->doIndexUpdate()#1 /var/lib/mediawiki/includes/installer/DatabaseUpdater.php(517): DatabaseUpdater->runUpdates()#2 /var/lib/mediawiki/maintenance/update.php(181): DatabaseUpdater->doUpdates()#3 /var/lib/mediawiki/maintenance/doMaintenance.php(107): UpdateMediaWiki->execute()#4 /var/lib/mediawiki/maintenance/update.php(253): require_once('/var/lib/mediaw...')#5 {main}68.129.140.104 (talk) 22:20, 30 March 2021 (UTC)- if you dont copy the database its not going to work... Bawolff (talk) 00:41, 31 March 2021 (UTC)
- Thanks for responding @Bawolff! I was able to copy over the database using mysqldump and it works now. 100.33.190.181 (talk) 14:40, 31 March 2021 (UTC)
How to upgrade PHP without upgrading MediaWIKI?
Hi,
I'm running MediaWIKI 1.28.0 (includes PHP 5.6.24). I would like to upgrade PHP version to 5.6.X where X is 25 or higher. I don't want to upgrade MediaWIKI.
I couldn't find any instructions on this can be done.
Regards
James Jamesyoungottawa (talk) 13:39, 31 March 2021 (UTC)
- This is a PHP issue not MediaWiki's. This (https://www.php.net/manual/en/migration56.php) seems closer to what you're looking for. If after upgrading, you got new problem for MediaWiki, then you should probably upgrade that too. – Ammarpad (talk) 13:44, 31 March 2021 (UTC)
- From a security point of view using end-of-life (EOL) and unsupported versions is not a good idea.
- PHP: Unsupported Branches indicates that PHP 5.6.x went EOL over 2 years ago.
- And Version lifecycle shows MediaWiki 1.28.0 is long EOL as well. It isn't even the 'latest' 1.28.x release. Look at Release notes/1.28, which indicates you've missed two security releases. Peculiar Investor (talk) 14:01, 31 March 2021 (UTC)
- It looks from the Compatibility chart that you won't have any problem upgrading PHP but keeping the existing MediaWiki version. Jonathan3 (talk) 04:52, 1 April 2021 (UTC)