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.
Please include the exact error Bawolff (talk) 20:36, 1 May 2023 (UTC)
Sorry I edited the post to include it now DemKnux (talk) 22:51, 1 May 2023 (UTC)
Sounds kind of like what would happen if you had a mixture of different versions of mediawiki mixed together. I would suggest reinstalling mediawiki Bawolff (talk) 22:56, 1 May 2023 (UTC)
Ok so I reinstalled the files and now I get this error
[f496cb44a705b282c257050a] /wiki/ LogicException: Process cache for 'en' should be set by now.
Backtrace:
from C:\xampp\htdocs\wiki\includes\language\MessageCache.php(440)
Hi - is there a way of modifying the "permission error" dialog so it is only black text on a white blank screen, without any wiki skin whatsoever?
I want it to function as closely as possible to a template text, as I am trying to transclude it on a page on another wiki. Where the user has permission, it works perfectly. Where the user does not have permission the permission denied dialog tries to render the whole wiki page, including the sidebar, icon and edit menu etc, and it looks really messy.
Lua error in package.lua at line 80: module 'Anorexia is fun' not found.
See the "Cities" section at https://en.wikivoyage.org/api/rest_v1/page/mobile-html/East_Frisia/4502178. Repeated "Lua error in package.lua at line 80: module 'Anorexia is fun' not found" for each Wikivoyage Marker template. Any idea where this comes from? It's not in the page source, nor the template source from what I can see. Thanks. Brycehughes (talk) 10:08, 2 May 2023 (UTC)
Null editing the affected module, template and page failed to flush anything, fwiw. I'm wondering if this is worth a bug report.. Brycehughes (talk) 10:50, 2 May 2023 (UTC)
I feel like i've heard this error message before, but i could be mistaken. I would also suggest trying the latest version of lingo to see if it got fixed recently. Bawolff (talk) 08:49, 3 May 2023 (UTC)
In order to remediate all Vulnerabilities We need to upgrade to MediaWiki 1.39 from existing mediawiki-1.34.1.
As per Wiki We need upgrading of PHP and Maria DB as well.
PHP 7.4.3+
MariaDB 10.3.0+
Can We directly upgrade to 1.39?
If Yes , Do We need to upgrade DB & PHP first in mediawiki-1.34.1 first then proceed with Mediawiki upgrade . Sneel1991 (talk) 09:48, 3 May 2023 (UTC)
Of course backups first. Backup all your config, your mediawiki install, the image upload directory and of course your database. While theoretically it is possible to upgrade in one go, if you do so, please make sure to skip MediaWiki 1.39.0 and 1.39.1 as they may cause dataloss.
As you need to update various critical components along the way, it might be easier however to upgrade these intermediately and verify you have them working before doing the next step. That means you don't have to debug new mariadb, php, webserver and mediawiki installs all at once, but also means more upgrades, so it depends on what you are more comfortable with (and if you have proper backups, you theoretically could try both routes and just see what works best for you :P )
For instance you could:
first upgrade to mariadb 10.1.0
upgrade to mediawiki 1.35 (an LTS)
upgrade to php 7.4
upgrade to mariadb 10.3
upgrade to mediawiki 1.39
upgrade to php 8.0
When upgrading Mediawiki, don't forget to upgrade your extensions and remember that some extensions might have been abandoned and are no longer compatible with newer versions of Mediawiki. If you get stuck with an extension, it is generally a good approach to disable the extension from the config and then trying to re-enabling the extension AFTER you completed the upgrade of the core. —TheDJ (Not WMF) (talk • contribs) 10:21, 3 May 2023 (UTC)
mediawiki error
[a6dec28e3e350d89f01a6ddd] /wiki/index.php?search=%EF%BC%81&title=%E7%89%B9%E5%88%A5%3A%E6%A4%9C%E7%B4%A2&wprov=acrw1_-1&ns0=1 Wikimedia\Rdbms\DBQueryError: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading or after adding a new extension?
Please see https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Upgrading and https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:How_to_debug for more information.
Error 1191: Can't find FULLTEXT index matching the column list
Function: SearchMySQL::searchInternal
Query: SELECT page_id,page_namespace,page_title FROM `mw_page`,`mw_searchindex` WHERE (page_id=si_page) AND ( MATCH(si_text) AGAINST('+u8efbc81 ' IN BOOLEAN MODE) ) AND page_namespace = 0 ORDER BY MATCH(si_text) AGAINST('+u8efbc81 ' IN NATURAL LANGUAGE MODE) DESC LIMIT 21
Backtrace:
from /home/nsdpttpg/public_html/wiki/includes/libs/rdbms/database/Database.php(1524)
2. According to the instructions, I should use the IndividualFileRelease.sh file, changing its permissions. But the following describes instructions for Unix or Linux (changing file permissions) and does not have instructions for changing permissions for running the file in the Windows operating system.
3. I tried using Windows PowerShell and the file was somehow launched. But after running the script in PowerShell, windows open and close cyclically with a black screen where it is impossible to see the content of the task. The execution of the task does not stop until I forcefully close the PowerShell window.
That way the script doesn't create output files that I have to transfer to my webspace.
Do you know how to solve this problem in Windows operating system and what should be the permissions of IndividualFileRelease.sh file in Windows operating system?
If this script is run, what directory should the resulting files be moved to after it finishes?
General error information is as follows:
Fatal error: Uncaught Exception: Unable to open file C:\wamp64\www\mediawiki/extensions/SemanticMediaWiki/extension.json: filemtime(): stat failed for C:\wamp64\www\mediawiki/extensions/SemanticMediaWiki/extension.json in C:\wamp64\www\mediawiki\includes\registration\ExtensionRegistry.php on line 199
(! ) Exception: Unable to open file C:\wamp64\www\mediawiki/extensions/SemanticMediaWiki/extension.json: filemtime(): stat failed for C:\wamp64\www\mediawiki/extensions/SemanticMediaWiki/extension.json in C:\wamp64\www\mediawiki\includes\registration\ExtensionRegistry.php on line 199
Thank you in advance! Euroexp (talk) 13:06, 15 May 2023 (UTC)
I dont know that much about SMW and extensions that insist on composer are a pain. However i think you can use composer on windows, and if you use composer to setup semantic mediawiki you shouldn't need the shell script. I'd try the instructions at https://www.semantic-mediawiki.org/wiki/Help:Installation/Quick_guide
If that doesnt work, there are help forums specificly for semantic mediawiki that might be a good place to ask. Bawolff (talk) 14:53, 15 May 2023 (UTC)
Hey guys, we get the following error when we upload a picture to our mediawiki:
PHP Fatal error: Declaration of Wikimedia\\ParamValidator\\Util\\UploadedFile::getStream() must be compatible with Psr\\Http\\Message\\UploadedFileInterface::getStream(): Psr\\Http\\Message\\StreamInterface in /var/www/html/includes/libs/ParamValidator/Util/UploadedFile.php on line 86, referer: http://website/index.php?title=title&veaction=edit
Do you guys have any tips on how to fix this? 80.228.61.67 (talk) 12:16, 4 May 2023 (UTC)
Please see "Post a new question" in the sidebar. Malyacko (talk) 16:54, 4 May 2023 (UTC)
How did you install MediaWiki and what version? I would normally assume this means you have outdated vendor directory or your mediawiki install files are inconsistent.
If you mean the files to commons - it looks like they don't have copyright releases so they will probably get deleted anyways. For questions on that topic, please ask at commons:commons:Help deskBawolff (talk) 00:10, 6 May 2023 (UTC)
[Timeless Theme] How to change the search form default text?
RESOLVED
Solved by upgrading to 1.35.1
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Greetings, I was wondering how to change the dynamic search form default text? Currently with Timeless theme it displays 'Search 2 pages'. I want to have it display the amount of articles/wiki entries instead of pages, or just 'search'.
The search is giving expected results by showing wiki entries.
What does "embed" mean exactly, functionally wise?
What does your "Example" link have to do with the question? Malyacko (talk) 11:28, 5 May 2023 (UTC)
I think you could have blog.example.com and wiki.example.com, or example.com/blog and example.com/wiki, or example.com (for the blog) and example.com/wiki, etc... Jonathan3 (talk) 11:14, 11 May 2023 (UTC)
That's generally possible using different virtual hosts in the first example or directory configurations in the second example. In any case, MediaWiki and WordPress should be in different directories, and never one inside the other.
The last example may be problematic, because WordPress uses rewrite rules to route to posts, and that will probably conflict with MediaWiki. This may be possible to fix only if you know enough about rewrite rules on the server to override that for the wiki directory. Ciencia Al Poder (talk) 10:20, 13 May 2023 (UTC)
Fatal Exception type 'Logic Exception' on a fresh install
I am all new to MW and have just done my first installation.
Version: 1.39.3
OS: Debian Bullseye
PHP: 7.4.33
The installation process went without errors or anything significant, but on my first attempt to log in I am getting
Fataler Ausnahmefehler des Typs „LogicException“
Backtrace:
[b54b37b55b31008cbb47eb8a] / LogicException: Process cache for 'de' should be set by now.
Backtrace:
from /var/www/wiki-hohnes/includes/language/MessageCache.php(440)
Have you made any configuration changes in LocalSettings.php (especially related to LocalisationCache). What is $wgMainCacheType set to (Does setting it to CACHE_NONE change anything [I would suggest this as a debugging step to rule out causes. setting to CACHE_NONE makes things slow, so i wouldn't reccomend it as a general configuration])? Which extensions do you have enabled (wfLoadExtension lines in LocalSettings.php)? Does the error still happen if you remove them all? Just to verify, the file language/i18n/de.json exists?If none of that applies, can you post a mediawiki debug log (See How to debug for instructions on how to get it).
As an aside, it does sound somewhat similar to https://phabricator.wikimedia.org/T258860 but not sure it is the same thing. Although it sounds like sometimes this happens if memcached config is incorrect.
I think this might be https://phabricator.wikimedia.org/T258860 - it can happen if MediaWiki is configured to use memcached ($wgMainCacheType) but cannot reach the memcached server. Try changing $wgMainCacheType = CACHE_ACCEL; if you have apcu installed, or CACHE_NONE if you don't. Or alternatively check your memcached config. Bawolff (talk) 06:37, 7 May 2023 (UTC)
"memcached" was the hint I needed. For some reason it wasn't running on the server. After restarting it the site is up. Thank you very much!
I'm an admin of a wiki, but my changes are regarded as a bot editing the pages. 223.18.134.72 (talk) 13:33, 5 May 2023 (UTC)
Please see "Post a new question" in the sidebar. Malyacko (talk) 15:26, 5 May 2023 (UTC)
Use the page Special:UserRights to change your rights. Make sure you are not in the bot group. Check Special:ListGroupRights to find out which groups contain the bot right. Bawolff (talk) 06:29, 7 May 2023 (UTC)
Installing WikiMarkdown breaks image uploading
MediaWiki: 1.39.3
PHP: 7.4.3-4ubuntu2.18 (apache2handler)
Database: MariaDB, 10.3.38-MariaDB-0ubuntu0.20.04.1 (though I believe this has nothing to do with database)
Hello,
I'm pretty new to MW, sorry if the question sounds silly.
After I installed Extension:WikiMarkdown as the instructions, the image upload functionality in Visual Editor will always receive a Error 500. (But Special:Upload works without any problem)
Here is the log from Apache:
PHP Fatal error: Declaration of Wikimedia\\ParamValidator\\Util\\UploadedFile::getStream() must be compatible with Psr\\Http\\Message\\UploadedFileInterface::getStream(): Psr\\Http\\Message\\StreamInterface in /var/www/html/includes/libs/ParamValidator/Util/UploadedFile.php on line 86, referer: my_website:/index.php/my_page?veaction=edit
I googled around and found a question that might be relevant. It says composer updatemight have something to do with this behavior (but I cannot really figure out the root cause).
Yes, according to the instructions, I run composer updatein my wiki root directory /var/www/html, and since it's a system directory, I run it with sudo(though composertells me not to). Also the remaining commands are run, though I'm also not sure whether they are troublesome.
So can someone teach me the cause and solution to this problem? Thank you very much. 2001:250:1001:A008:0:0:2:1BB3 (talk) 14:27, 5 May 2023 (UTC)
It seems like WikiMarkdownis not the one to blame, but composer update.
Here is a minimum reproduceable example: install a fresh copy of MW, and runsudo composer updateunder /var/www/html.Then uploading images in Visual Editor will receive Error 500 with the same message as above.
I suspect there are some compatiblity issues with some of the updated package, so here is the log of composer update:
So i think i was the one who suggested it was a composer issue. That was probably wrong, my bad (or at least its not a composer issue that was your fault, but a composer issue that is mediawiki's fault).
This sounds like phab:T333993. Which should be fixed in the next version of MediaWiki.
In the mean time, to work around, run composer require psr/http-message=1.0.1; composer updateBawolff (talk) 06:18, 7 May 2023 (UTC)
For any other person who happen to run composer update directly, you should first run composer -W require guzzlehttp/psr7=2.4.5 to downgrade psr7to 2.4.5, which is the newest version that allows http-message 1.0.1, then run composer require psr/http-message=1.0.1to downgrade http-message. After that, image uploading will be back to normal. 2001:250:1001:A008:0:0:2:1BB3 (talk) 03:09, 8 May 2023 (UTC)
We are currently on version 1.34 & would like to upgrade to version 1.39. Can we go directly from version 1.34 to 1.39? LouiseCooke1 (talk) 19:33, 5 May 2023 (UTC)
I would suggest going to 1.35 first and then to 1.39. Normally it would be fine to go direct, but If i recall there were some issues around 1.34, so safer to go 1.35 first.
I recommend making backups of your DB before doing the upgrade. Bawolff (talk) 23:56, 5 May 2023 (UTC)
I want a single [edit] button in the Mediawiki visual editor.
RESOLVED
Set $wgVisualEditorUseSingleEditTab = true;
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 set this up? ドデカイラーメン (talk) 05:38, 6 May 2023 (UTC)
Set $wgVisualEditorUseSingleEditTab = true; in LocalSettings.php
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
there is not any great navigation tree
Hello,
I'm new to mediawiki. I have been running some tests in order to start using it as a documentation software for my company and I have noticed that there is no categories and pages great navigation tree for the side bar. "CategoryTree" (already integrated in media wiki) works good, but it lacks category reordering easily (drag&drop), displaying pages (I have tried $wgCategoryTreeDefaultMode = 10 with no luck) or expand current displayed category / page tree.
I have used in the past Confluence (it's a SaaS) and had all this features. I was thinking about developing my own extension for adding this features, but it's quite shocking that mediawiki / categorytree doesn't have this features yet.
Does anybody has some advice about how to address this?
Adding a CSS class to category page links containing a specific string
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 MediaWiki community,
I am trying to add a CSS class to links on category pages that contain a specific string (e.g., '@@blur'). I have created a custom MediaWiki extension and tried using several hooks such as onParserBeforeInternalParse, onCategoryPageView, and onBeforePageDisplay. However, I am still unable to successfully add the desired class to the links on the category page.
It seems like the @@blur string is being removed before I can check for its existence in the category page links. Any suggestions or guidance on how to properly implement this feature would be greatly appreciated. Are there any other hooks that I should be using for this task?
Thank you in advance for your help! Gaon12 (talk) 12:51, 7 May 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
SVG Error Error creating thumbnail: Unable to run external programs, proc_open() is disabled.
Hello.
I am on a shared host. I can't do anything more than what a regular user can do. I can, for instance, install Wiki, Drupal, Wordpress, or similar software.
When I upload a SVG image to my server, I can access it normally. When I upload using Wordpress I can access it normally.
But when I upload wit Wikimedia installation I get:
Error creating thumbnail: Unable to run external programs, proc_open() is disabled.
I have read so many topics on it, and lost a lot of time, and I am just a step away from leaving Wikimedia platform. Why is that so difficult to implement? What to do?
My settings are:
#SVG
$wgUseImageMagick = true;
$wgCheckFileExtensions = true;
$wgFileExtensions[] = 'svg, png';
$wgSVGConverter = 'ImageMagick';
#$wgAllowTitlesInSVG = true;
$wgGenerateThumbnailOnParse = true;85.230.192.84 (talk) 16:32, 7 May 2023 (UTC)
To support thumbnailing you need to use a hosting provider that allows proc_open.
$wgFileExtensions is incorrect (cannot use comma to separate, have to do separate line for each). However the error you reported is not the error that would cause
You have $wgUseImageMagick this is not for svgs, but for other image types. Based on your description you probably want it false to make other image types work. Bawolff (talk) 17:46, 7 May 2023 (UTC)
Thank you. This is for the first time I have seen a solution. This worked. 85.230.192.84 (talk) 20:04, 7 May 2023 (UTC)
png to jpg file-page history cloning/moving?
Can a image-page history and its images be (virtually!) moved/cloned(?) in such a way that the new version contains the same data (upload users, dates & commends), but with the images now in in jpg format instead of the original png format?
Virtual: As I know MW don't allows direct changing of the image extension of file-pages. And that I would need to do the png to jpg conversion myself.
Wondering if export + import might allow for something like this ...?
(Not the Bureaucrat/Host, merely Admin on some game related wiki) MvGulik (talk) 20:39, 7 May 2023 (UTC)
Unfortunately, it is not possible Bawolff (talk) 23:31, 7 May 2023 (UTC)
Just not possible for Admins. Or also not possible if one would have direct host access and could dump images directly into the MW-wiki files folder?
Not that "I" can do this. But after reading up on import that did seemed to be the potential way to handle the images part. (although I'm sure there are some other dragons here I'm not aware of) MvGulik (talk) 06:14, 8 May 2023 (UTC)
Hello
My grandfather was in World War II and I want to add him to the list of veterans still alive from World War II does anyone know how I do that Crystal1417 (talk) 22:43, 7 May 2023 (UTC)
For questions about wikipedia, please ask at w:WP:TEAHOUSE. Bawolff (talk) 02:04, 8 May 2023 (UTC)
constant 500 error on local server
I just installed ubuntu1~22.04.1 server installed all dependencies. wget tar.gz, wget zip, through ubuntu. downloaded on windows 10 extracted using 7zip, used cygwin, and sftp extracted files. Even git the repository. This is the apache2 log file https://pastebin.com/x9rPHcWz
The errors stay the same for every time. I go to install open wiki/my-config and I get the 500 error everytime. Any help would be appreciated Wildfirebill (talk) 23:15, 7 May 2023 (UTC)
This error is usually caused by long file names being corrupted. Often an issue with older versions of 7zip processing tar files. Try using either the zip file or a newer version of 7zip. Or decompress with the unix tar tool on ubuntu. Bawolff (talk) 23:30, 7 May 2023 (UTC)
I did as stated above download it via wget and extracted it directly on the ubuntu server to start. Then tried windows and lastly git directly to server. Wildfirebill (talk) 23:37, 7 May 2023 (UTC)
Hello, the page modification does not work after installing the VisualEditor plugin. The "edit" button incompatible with the VisualEditor plugin?
I have a local mediawiki and I have installed the VisualEditor extension.
This extension works perfectly. But once installed I realized that the "edit" button doesn't work anymore I have the following error that appears when I click on it:
Error contacting the Parsoid/RESTBase server: (curl error: 7) Couldn't connect to server
I tried to go back and delete my VisualEditor plugin and the "edit" button works again.
Is the "edit" button incompatible with the VisualEditor plugin? 212.24.219.214 (talk) 08:38, 8 May 2023 (UTC)
Generally this is because the /rest.php endpoint that VisualEditor is attempting to connect to, is not available from the outside world. This can easily happen if you setup a short url redirect and only redirected the index.php and api.php traffic.
As always, check the browser, check the logs, figure out what path it is trying to connect to, and figure out if it is the browser or the configuration that has the incorrect information. —TheDJ (Not WMF) (talk • contribs) 11:14, 8 May 2023 (UTC)
Oracle functions missing, have you compiled PHP with the --with-oci8 option
I am getting below error while accessing few pages in mediawiki application.
the value of $wgDBtype in LocalSettings.php is $wgDBtype = "mysql";
Error:
(Cannot access the database: Oracle functions missing, have you compiled PHP with the --with-oci8 option? (Note: if you recently installed PHP, you may need to restart your webserver and database) ) Santoshkaif (talk) 10:34, 8 May 2023 (UTC)
Feel free to try it yourself, refresh the page a few times and try to hover over the orange text.
What could be causing this? The code is correct and I am loading jQuery + Bootstrap. Ellex2 (talk) 14:18, 10 May 2023 (UTC)
Usually this would mean that your code is running too early, and whether or not it works is based on load timing. Bawolff (talk) 23:24, 10 May 2023 (UTC)
I lost 3 hours of editing for login: how to avoid that?
RESOLVED
Resolved. Answer is tick keep logged in for up to 1 year in login
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 just worked for 3 hours on an edit with citations. When I pressed submit the page said I was not logged in.
Why I do not know. I had no warning and I was logged in yesterday.
I lost my work. I won't contribute if this is how the system works.
What can I do to avoid this, other than some how diligently checking for login?
Sorry! We could not process your edit due to a loss of session data. Please try saving your changes again. If it still does not work, try logging out and logging back in.
I tried again, same outcome:-( Johnjbarton (talk) 19:16, 10 May 2023 (UTC)
i too get sometimes disconnected (but due to my plug, getting out of its socket). To save this situation, my work is on the screen (or i try the back arrow of my browser to retrieve the working screen) of window1. In a new window2 I open a dummy translation session just to be connected as requested. Window1 is now aware the connexion is established and i can send my work. Of course this does not explain why you have been disconnected, may be idle too long during the session. -- Christian 🇫🇷 FR (talk) 21:05, 10 May 2023 (UTC)
I realized after my second fail that maybe the content I wished to post was in the window below the bar. With experience maybe I could work around this bit Johnjbarton (talk) 23:05, 10 May 2023 (UTC)
Which website is this referring to? Is it one that you operate yourself (if you operate it yourself there are things you can do) Bawolff (talk) 23:23, 10 May 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
how to stablish a outside mqtt broker connection on TRB245
RESOLVED
I open this topic without looking and checking the forum. Im deaply sorry.
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.
Good morning / afternoon.
I need some help to stablish a connection between a Teltonika TRB245 and a cluster of HiveMQ broker. I think i need to do it because im devolping a solution for a cliente that needs to control an AO and a DO form a DigiRail Connect Ramix DO ETH using MQTT protocol.
I tryed to connect the TRB245 and the HiveMQ cluster by only ussing the TRB245/Service/Modbus/MqttModbusGateway config, setting the HiveMQ Cluster config (port 8883 and logging data and SSL avaible) from the HiveMQ broker as explain in Wiki link (TRB245 Modbus - Teltonika Networks Wiki (teltonika-networks.com)) but it doesnt work at all. Also tryed ussing the HiveMQ port and logging data and SSL avaible in the TRB245/Service/MQTT/Bridge and in TRB245/Service/Modbus/MqttModbusGateway config setting the same config in both, and also tryed to set it up in the TRB245/Service/MQTT/Bridg and the TRB245/Service/Modbus/MqttModbusGateway config setting up the local broker data, and also without succes.
I don´t know where i have the misteaken config or what else try out.
Please, i need it, im running out of time and in the Wiki from teltonika there is no more info about this subject. StibGrasL (talk) 13:46, 11 May 2023 (UTC)
Hi, this question is off topic for this forum. We can only help with mediawiki questions. Bawolff (talk) 13:48, 11 May 2023 (UTC)
Hey there, thanks a lot. I was redirected from the help of Teltonika Wike page. i assume here is the place.
Do you know the forum i may use to make this statment.
Thanks a lot since now. StibGrasL (talk) 13:56, 11 May 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
Permanently delete specific files?
Hello, I'm currently running a wiki for a community. Currently, we have a large number of unused files from a mass file import of a previous wiki. I want to permanently delete some of these files, ideally making it as if they never existed and were never uploaded in the first place. I also want to remove them from the file backend to free up storage since my server doesn't have a lot of storage.
DeleteArchivedFiles.php deletes every single deleted file and also removes the entry in the filearchive table. However, I don't want to delete every deleted file, only specific unused ones that are no longer needed.
EraseArchivedFile.php lets you erase specific deleted files, which is exactly what I want. But the issue is that it doesn't delete the entry from the filearchive table and theres no toggle to make it do so. From what I've read, it just deletes them from the file backend and calls it a day.
So I'm a bit conflicted on how exactly I'm supposed to permanently delete these specific unused files, while also removing any database entries pertaining to them. Is there a way to achieve this? Smallketchup82 (talk) 14:04, 11 May 2023 (UTC)
I deleted that post because I did not read the OP Wikan Boy 123 (talk) 20:08, 11 May 2023 (UTC)
There are some use cases like what you describe that aren't covered by MediaWiki itself.
Deleting the file physically on disk should be sufficient. The database entry from the filearchive table takes a negligible space and I won't bother about it. Ciencia Al Poder (talk) 10:17, 13 May 2023 (UTC)
Did Wikipedia and MediaWiki start the wiki idea?
RESOLVED
Answer by Arlo Barnes
no, Ward Cunningham et al. did; see w:en:history of wikis#WikiWikiWeb, the first wiki
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
How to make a definition list by VisualEditor?
By CodeEditor, I can easily make a definition list with ; and : like this:
Word
Its Definition
But I find I can't make the same list by VisualEditor. I wonder how to do that. BugCatcher2019 (talk) 04:10, 12 May 2023 (UTC)
See phab:T39938. Its not super common, and there wasn't a real good interface idea back then on how to implement the editing flow for that. So it went on the long todo list and that is where it still is today. —TheDJ (Not WMF) (talk • contribs) 09:50, 13 May 2023 (UTC)
any filter on this support desk to see MY topics only?
Hi all, i would like to search among the topics i have written or replied on this desk. Sometimes you guess your problem is similar to one you have already met/described or just to follow the answers you have received, or to close your obsolete posts.
How can i filter by user? by keyword? by date range? It woul be a plus. Thanks. -- Christian 🇫🇷 FR (talk) 04:37, 12 May 2023 (UTC)
You cant really. Flow is bad forum software. Best results is to use google search. For author you can use Special:contributions and set the namespace to Topic Bawolff (talk) 04:52, 12 May 2023 (UTC)
why does the header of this support page remain in english?
Hi all, since my MW interface is FR and -> https://www.mediawiki.org/wiki/Project:Support_desk/Header/fr exists and displays correctly translated on a sanbox page, why on this current support page the header text always remains in EN? The transclusion seems not to operate.
Parsoid for the option to store posts as HTML ($wgFlowContentFormat = 'html';) which improves performance. This is how WMF wikis are configured
This means the rendered HTML of the code is saved and displayed, which means nothing changes even if you edit the template, or the language is changed. I suspect that if someone else with a different language edits the board summary it and saves it, it will display that language for everyone. Ciencia Al Poder (talk) 10:12, 13 May 2023 (UTC)
LDAPAuthentication2 with LDAPProvider
could you write step by step Active Directory Integration withLDAPAuthentication2 with LDAPProvider?
Thanks I need a guide for dummies. 188.85.1.94 (talk) 05:40, 12 May 2023 (UTC)
Yes its very dificult, I need step by step guide. Thanks 92.187.63.59 (talk) 16:46, 13 May 2023 (UTC)
Does VisualEditor support inserting a single line break?
I have noticed that while using a <br /> element in wikitext is supported, there does not seem to be a easy way (e.g. SHIFT + ENTER) to insert it in VisualEditor.
Does anyone know the reason for this? It feels like this is a very common thing to have in a visual editor. Osnard (talk) 08:53, 12 May 2023 (UTC)
I suspect it is mostly because ppl would use it too much (because they are used to word and google docs) and then en.wp editors would complain about all the <br>'s in their wikitext. BRs, while valid, aren't really that common in wikitext. —TheDJ (Not WMF) (talk • contribs) 09:45, 13 May 2023 (UTC)
Thanks for the response. Attempts to create a "Gadget" that allows to use SHIFT + ENTER to add an <br /> have failed so far. VE doesn't seem to like this kind if interaction. I am still assuming some more technical reason. Osnard (talk) 07:30, 15 May 2023 (UTC)
This request is https://phabricator.wikimedia.org/T95518. In general, please make feature requests in Phabricator, or on an extension's talk page, not in the general support thread, so they're seen by the right people.:-) Jdforrester (WMF) (talk) 13:41, 12 July 2023 (UTC)
Thank you very much! This wasn't really meant as a feature request. I wanted to implement this into some gadget or extensions and was wondering if there were some blockers that I am not aware of. But it is nice to see this as a Phab ticket. Thanks again. Osnard (talk) 08:58, 13 July 2023 (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.
Special:Contributions/177.228.140.237 This IP is adding totally nonsense es translation, but I don't know how to revert it from translation tool. How can I delete that vandalism? LR0725 (talk) 18:01, 13 May 2023 (UTC)
$wgDefaultUserOption['usenewrc'] = 0; Bawolff (talk) 18:31, 14 May 2023 (UTC)
after update blank 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.
Error:
DefaultSettings.php is deprecated and will be removed. Use the ConfigSchema service object instead. [Called from require_once in /homepages/8/d312538493/htdocs/Wiki/LocalSettings.php at line 27] in /homepages/8/d312538493/htdocs/Wiki/includes/debug/MWDebug.php on line 381
Really old versions had a require_once "$IP/includes/DefaultSettings.php"; line in LocalSettings.php. it is not needed anymore and should be deleted. Bawolff (talk) 18:29, 14 May 2023 (UTC)
Notice: Uncommitted DB writes (transaction from Wikimedia\Rdbms\Database::beginIfImplied (LCStoreDB::get)) in /homepages/8/d312538493/htdocs/Wiki/includes/libs/rdbms/database/TransactionManager.php on line 583
Notice: DB transaction writes or callbacks still pending (LCStoreDB::finishWrite, LCStoreDB::finishWrite, LCStoreDB::finishWrite, LCStoreDB::finishWrite, LCStoreDB::finishWrite, LCStoreDB::finishWrite, LCStoreDB::finishWrite, LCStoreDB::finishWrite, LCStoreDB::finishWrite, LCStoreDB::finishWrite, LCStoreDB::finishWrite, LCStoreDB::finishWrite, LCStoreDB::finishWrite, LCStoreDB::finishWrite, LCStoreDB::finishWrite) in /homepages/8/d312538493/htdocs/Wiki/includes/libs/rdbms/database/Database.php on line 37602003:EE:715:46AC:45F2:DCFA:B367:2532 (talk) 19:25, 14 May 2023 (UTC)
Check error logs, and be sure your LocalSettings.php is syntactically valid php code. For example, each statement must end in a semicolon, and strings should be surrounded by double or single quotes. If in doubt, try to paste it here https://phpcodechecker.com/Ciencia Al Poder (talk) 16:23, 16 May 2023 (UTC)
Hi!
Thank you very much! The "" were missing.
I've got one more problem.
The URL is double: ..../Wiki/index.php?title=Hauptseite/Wiki/index.php?title=Hauptseite 2003:EE:715:46AC:6093:9D0:46B7:DF6 (talk) 17:24, 16 May 2023 (UTC)
Fixed.
The "/Wiki/index.php?title=Hauptseite" must not be in the url. Only the base "www.example.net" 2003:EE:715:46AC:F8CE:85C2:DD8:CA52 (talk) 09:54, 17 May 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
ShortURL setup 404'ing
Hello,
Can anyone help me understand what my issue with my shorturl setup may be? I have tried using the tool here: https://shorturls.redwerks.org/ as suggested in one of the guides
My current settings in LocalSettings.php file are as follows:
$wgScriptPath = "/w";
$wgArticlePath = "/wiki/$1";
$wgUsePathInfo = true;
I've attempted to merge the output with my current .htaccess file (located in the public_htm folder):
and I am still running into 404 errors when attempting to use the new expected article path.
I have it partially working?
When I use "domain.com/w" the url is changing to "domain.com/wiki/Main_Page" however it is just a 404 page on my xenforo forum.
Any help identifying what the issue may be would be greatly appreciated.
Thank you for your time Gekiteno (talk) 18:28, 14 May 2023 (UTC)
Multiple image folders
Problem: I'd like to seperate the images folder into 'old' and 'new' to reduce time/ space for backups.
e.g. back up 'old' once and 'new' every X hours.
Presume you can't do this in media wiki and I'm looking mergerfs/ FUSE filesystem level solutions?
Perhaps I should be looking at better way of storing the images? Suggestions welcome Beardedfool (talk) 11:01, 15 May 2023 (UTC)
You can keep images folder at any location on the server and make a soft link to it, so that you don't need to make double copy of the folder. You just make new soft link to images folder once you have files of new MW version. Fokebox (talk) 13:33, 15 May 2023 (UTC)
Many backup utilities support only backing up files that have changed (e.g. based on mtime) Bawolff (talk) 14:47, 15 May 2023 (UTC)
Converting from $wgHashedUploadDirectory true to false
Are the any sql scripts or similar to help with this? Beardedfool (talk) 11:02, 15 May 2023 (UTC)
I dont think so. Bawolff (talk) 14:55, 15 May 2023 (UTC)
Remove tabs is caught by the Spam Filter
Hi -
When trying to insert code into the common.css to hide tabs (per Manual:Remove Tabs) I get the following dialogue:
The text you wanted to publish was blocked by the spam filter. This is probably caused by a link to a forbidden external site.
The following text is what triggered our spam filter: display:none
I don't think I have SpamRegex or SpamBlacklist enabled. Is there a way of configuring things to allow
#ca-nstab-user { display:none!important; }
to be added to MediaWiki:Common.css? ElectricRay (talk) 13:59, 15 May 2023 (UTC)
Do you have $wgSpamRegex set in LocalSettings.php Bawolff (talk) 14:46, 15 May 2023 (UTC)
is there anyway I can leave that in but still conceal those tabs? ElectricRay (talk) 16:36, 15 May 2023 (UTC)
You could add a space between the colon and none. In css that doesn't matter but it wont match the regex anymore. Bawolff (talk) 18:10, 15 May 2023 (UTC)
Hello, I have been attempting to log in on desktop, but am met with a message saying my username/password is incorrect. However, on mobile I can log in just fine. I've ensured that the password I am entering on desktop is identical to that on mobile. The issue persists after clearing cookies as well. I have also tried different browsers on desktop. The issue is not occurring on other wikimedia sites such as Wikipedia. Is there a known solution for this issue? 2603:6010:C1F0:A680:4A:5F7D:B121:A10D (talk) 16:31, 15 May 2023 (UTC)
What site is it occuring on? Bawolff (talk) 18:11, 15 May 2023 (UTC)
error when trying to edit the page
[51858c4830ac1197057e38dd] Caught exception of type Error
Hello! I am fresh at a new job, creating an internal MediaWiki for common internal employee use. I have chosen to make this site password protected, as I get established here. I would like to then add "Please contact Justin Reina (justin@company.com) for access"
How do you add this to the login page? Jmr1985 (talk) 14:44, 16 May 2023 (UTC)
Create a page on your wiki named MediaWiki:loginprompt . The contents of that page should automatically be included on the login page.
Alternatively, add the main page to $wgWhitelistRead so that page is viewable by all and put the instructions there. Bawolff (talk) 15:33, 16 May 2023 (UTC)
Hi, does anyone have a tutorial on how to install an instance with Mediawiki version 1.38 using the VisualEditor extension with docker-compose? 212.24.219.214 (talk) 11:43, 17 May 2023 (UTC)
There are no tutorials that i am aware of on anything that specific.
Maybe you might be interested in Canasta as an example. Bawolff (talk) 11:41, 18 May 2023 (UTC)
Could not store upload in the stash (UploadStashFileException): "Directory "mwstore://local-backend/local-temp/8/85" is read-only.".
Could not store upload in the stash (UploadStashFileException): "Directory "mwstore://local-backend/local-temp/8/85" is read-only.".
I have this erro, every time i try to upload an image. The directory have permissions to IUSR.
そのあたりのアクセス権限を変更すれば行けると思います。 ドデカイラーメン (talk) 02:00, 20 May 2023 (UTC)
いいえ。MediaWikiをインストールしなおしたら直りました。 163.43.137.36 (talk) 05:31, 20 May 2023 (UTC)
Bad Title 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.
Whenever I try to make a new page on my wiki by changing the url end of the URL I get a Bad Title Error. The Error says that my title is too long. I notice that "index.php" is added a bunch of times to my url. I assume this is the reason Mediawiki thinks that the title is too long but I do now understand how to stop it from adding all of the "index.php". Let me know anything I can try and/or if you have had this issue before. Carter.smith1 (talk) 15:08, 17 May 2023 (UTC)
Usually an issue with rewrite rules or short url configuration. Bawolff (talk) 11:39, 18 May 2023 (UTC)
I'm a beginner to Mediawiki. How should I go about resolving this? Carter.smith1 (talk) 12:43, 18 May 2023 (UTC)
You'll have to share all the relevant configuration: rewrite rules, variables in localsettings related to URLs and Paths, and actual URLs you want to rewrite. Sharing which guide have you followed to set up this may also help. Ciencia Al Poder (talk) 13:23, 18 May 2023 (UTC)
## The URL path to static resources (images, scripts, etc.)
$wgResourceBasePath = $wgScriptPath;
## For attaching licensing metadata to pages, and displaying an
## appropriate copyright notice / icon. GNU Free Documentation
## License and Creative Commons licenses are supported so far.
$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
$wgRightsUrl = "";
$wgRightsText = "";
$wgRightsIcon = "";
$wgUsePathInfo = true;
Let me know if there are other variables I should share with you or if you see any issues with what I have sent. Carter.smith1 (talk) 13:46, 18 May 2023 (UTC)
What is your .htaccess file (or other webserver config) Bawolff (talk) 15:59, 18 May 2023 (UTC)
Would that be the file called "apache2.conf"? Carter.smith1 (talk) 18:06, 18 May 2023 (UTC)
The file where you have defined your rewrite rules (search for RewriteRule). This can be done in the apache configuration files (usually split in several files, apache2.conf, vhosts, etc) or in a hidden file in the folder where MediaWiki is installed (or any parent folder) called .htaccess
Rewrite rules are necessary for your server to handle a $wgArticlePath like what you have configured. Ciencia Al Poder (talk) 10:42, 19 May 2023 (UTC)
This is my apache2.conf file:
# This is the main Apache server configuration file. It contains the
# configuration directives that give the server its instructions.
# See http://httpd.apache.org/docs/2.4/ for detailed information about
# the directives and /usr/share/doc/apache2/README.Debian about Debian specific
# hints.
#
#
# Summary of how the Apache 2 configuration works in Debian:
# The Apache 2 web server configuration in Debian is quite different to
# upstream's suggested way to configure the web server. This is because Debian's
# default Apache2 installation attempts to make adding and removing modules,
# virtual hosts, and extra configuration directives as flexible as possible, in
# order to make automating the changes and administering the server as easy as
# possible.
# It is split into several files forming the configuration hierarchy outlined
# below, all located in the /etc/apache2/ directory:
#
# /etc/apache2/
# |-- apache2.conf
# | `-- ports.conf
# |-- mods-enabled
# | |-- *.load
# | `-- *.conf
# |-- conf-enabled
# | `-- *.conf
# `-- sites-enabled
# `-- *.conf
#
#
# * apache2.conf is the main configuration file (this file). It puts the pieces
# together by including all remaining configuration files when starting up the
# web server.
#
# * ports.conf is always included from the main configuration file. It is
# supposed to determine listening ports for incoming connections which can be
# customized anytime.
#
# * Configuration files in the mods-enabled/, conf-enabled/ and sites-enabled/
# directories contain particular configuration snippets which manage modules,
# global configuration fragments, or virtual host configurations,
# respectively.
#
# They are activated by symlinking available configuration files from their
# respective *-available/ counterparts. These should be managed by using our
# helpers a2enmod/a2dismod, a2ensite/a2dissite and a2enconf/a2disconf. See
# their respective man pages for detailed information.
#
# * The binary is called apache2. Due to the use of environment variables, in
# the default configuration, apache2 needs to be started/stopped with
# /etc/init.d/apache2 or apache2ctl. Calling /usr/bin/apache2 directly will not
# work with the default configuration.
# Global configuration
#
#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE! If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the Mutex documentation (available
# at <URL:http://httpd.apache.org/docs/2.4/mod/core.html#mutex>);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
#ServerRoot "/etc/apache2"
#
# The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
#
#Mutex file:${APACHE_LOCK_DIR} default
#
# The directory where shm and other runtime files will be stored.
#
DefaultRuntimeDir ${APACHE_RUN_DIR}
#
# PidFile: The file in which the server should record its process
# identification number when it starts.
# This needs to be set in /etc/apache2/envvars
#
PidFile ${APACHE_PID_FILE}
#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 300
#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive On
#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100
#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 5
# These need to be set in /etc/apache2/envvars
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}
#
# HostnameLookups: Log the names of clients or just their IP addresses
# e.g., www.apache.org (on) or 204.62.129.132 (off).
# The default is off because it'd be overall better for the net if people
# had to knowingly turn this feature on, since enabling it means that
# each client request will result in AT LEAST one lookup request to the
# nameserver.
#
HostnameLookups Off
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here. If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog ${APACHE_LOG_DIR}/error.log
#
# LogLevel: Control the severity of messages logged to the error_log.
# Available values: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the log level for particular modules, e.g.
# "LogLevel info ssl:warn"
#
LogLevel warn
# Include module configuration:
IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf
# Include list of ports to listen on
Include ports.conf
# Sets the default security model of the Apache2 HTTPD server. It does
# not allow access to the root filesystem outside of /usr/share and /var/www.
# The former is used by web applications packaged in Debian,
# the latter may be used for local directories served by the web server. If
# your system is serving content from a sub-directory in /srv you must allow
# access here, or in any related virtual host.
<Directory />
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>
<Directory /usr/share>
AllowOverride None
Require all granted
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
#<Directory /srv/>
# Options Indexes FollowSymLinks
# AllowOverride None
# Require all granted
#</Directory>
# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives. See also the AllowOverride
# directive.
#
AccessFileName .htaccess
#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<FilesMatch "^\.ht">
Require all denied
</FilesMatch>
#
# The following directives define some format nicknames for use with
# a CustomLog directive.
#
# These deviate from the Common Log Format definitions in that they use %O
# (the actual bytes sent including headers) instead of %b (the size of the
# requested file), because the latter makes it impossible to detect partial
# requests.
#
# Note that the use of%{X-Forwarded-For}i instead of %h is not recommended.
# Include of directories ignores editors' and dpkg's backup files,
# see README.Debian for details.
# Include generic snippets of statements
IncludeOptional conf-enabled/*.conf
# Include the virtual host configurations:
IncludeOptional sites-enabled/*.conf
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet Carter.smith1 (talk) 15:19, 19 May 2023 (UTC)
Well, that file has all lines commented-out, doesn't seem useful. However, it has indications for you to locate the relevant files. Ciencia Al Poder (talk) 10:52, 20 May 2023 (UTC)
I appreciate the help. I must of made a mistake when creating the wiki. I restarted and created a new one and the issue was fixed. Carter.smith1 (talk) 13:31, 24 May 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
'Page views in the past 30 days' does not work
MediaWiki
1.39.3 (95b22ca)
07:19, 17. Mai 2023
PHP
7.4.33 (fpm-fcgi)
MariaDB
10.5.17-MariaDB-1:10.5.17+maria~deb11-log
URL:mxlinuxusers.de (hosted at miraheze.org)
They informed me: The "Page views in the past 30 days" parameter in the "Page information" page is powered by the Pageviews Analysis, which only works on Wikpedias.
We'd love to hear your thoughts, so feel free to leave a comment, in any language!!, on the talk pages of these linked pages. The comment period is open until Friday (May 19th).
<div class="errorbox mw-content-ltr"><p>[ZGVOCBfN11ga1dmCW4YnngAAACg] /mw-config/index.php?page=Upgrade RuntimeException from line 511 of /homepages/8/d312538493/htdocs/X-Lexikon/includes/registration/ExtensionProcessor.php: The configuration setting 'wgCaptchaClass' was already set by MediaWiki core or another extension, and cannot be set again by QuestyCaptcha.</p><p>Backtrace:</p><p>#0 /homepages/8/d312538493/htdocs/X-Lexikon/includes/registration/ExtensionProcessor.php(469): ExtensionProcessor->addConfigGlobal()<br />
Go to Special:Version page to know what exact version of MW you have. And if it is so old it requires to make several upgrades like from 1.18 -> 1.19 -> 1.27 -> 1.31. You can't jump from 1.18 to 1.31 as so many thinks in MW are changed since then. Fokebox (talk) 09:52, 18 May 2023 (UTC)
Make sure that your version of ConfirmEdit is correct for your version of mediawiki.
Can you post your LocalSettings.php?
Usually 1.18 to 1.31 is fine. Its newer versions of mediawiki that dont like direct upgrades. If it was an issue with that you would get a database error not an extension processorr error. Bawolff (talk) 11:37, 18 May 2023 (UTC)
<?php
# This file was automatically generated by the MediaWiki installer.
# If you make manual changes, please keep track in case you need to
# recreate them later.
#
# See includes/DefaultSettings.php for all configurable settings
# and their default values, but don't forget to make changes in _this_
# file, not there.
# If you customize your file layout, set $IP to the directory that contains
# the other MediaWiki files. It will be used as a base to locate files.
"Schreibe bitte aeUAOSDae mit vertauschter Groß-/Kleinschreibung in das nächste Feld, dann schreib noch den korrekten Namen des Argon M3 aus X2 hinten dazu." => "AEuaosdAENova",
"Schreibe bitte WOIueueED mit vertauschter Groß-/Kleinschreibung in das nächste Feld, dann schreib noch den korrekten Namen des Teladi M3 aus X2 hinten dazu." => "woiUEUEedFalke",
"Schreibe bitte QWPueMCV mit vertauschter Groß-/Kleinschreibung in das nächste Feld, dann schreib noch den korrekten Namen des Boronen M3 aus X-T hinten dazu." => "qwpUEmcvAal",
"Schreibe bitte EWUaeCXN mit vertauschter Groß-/Kleinschreibung in das nächste Feld, dann schreib noch den korrekten Namen des Teladi M3 aus X2 hinten dazu." => "ewuAEcxnFalke",
"Schreibe bitte ADSoeUZX mit vertauschter Groß-/Kleinschreibung in das nächste Feld, dann schreib noch den korrekten Namen des Boronen M3 aus X-T hinten dazu." => "adsOEuzxAal",
"Schreibe bitte ASLaeYES mit vertauschter Groß-/Kleinschreibung in das nächste Feld, dann schreib noch den korrekten Namen des Argon TL aus X2 hinten dazu." => "aslAEyesMammut",
"Schreibe bitte PUZueWEP mit vertauschter Groß-/Kleinschreibung in das nächste Feld, dann schreib noch den korrekten Namen des Argon TP aus X2 hinten dazu." => "puzUEwepExpress",
"Schreibe bitte MVoePS4I mit vertauschter Groß-/Kleinschreibung in das nächste Feld, dann schreib noch den korrekten Namen des Boronen M3 aus X2 hinten dazu." => "mvOEps4iBarrakuda",
"Schreibe bitte aeEoeLI6D mit vertauschter Groß-/Kleinschreibung in das nächste Feld, dann schreib noch den korrekten Namen des Boronen M5 aus X2 hinten dazu." => "AEeOEli6dOktopus",
"Schreibe bitte aeEI38ID mit vertauschter Groß-/Kleinschreibung in das nächste Feld, dann schreib noch den korrekten Namen des Teladi M3 aus X2 hinten dazu." => "AEei38idFalke",
"Schreibe bitte 0892KNae mit vertauschter Groß-/Kleinschreibung in das nächste Feld, dann schreib noch den korrekten Namen des Argon M3 aus X2 hinten dazu." => "0892knAENova",
"Schreibe bitte aeDueWI3E mit vertauschter Groß-/Kleinschreibung in das nächste Feld, dann schreib noch den korrekten Namen des Argon M5 aus X2 hinten dazu." => "AEdUEwi3eDiscoverer",
"Schreibe bitte 9832LDae mit vertauschter Groß-/Kleinschreibung in das nächste Feld, dann schreib noch den korrekten Namen des Boron M2 aus X2 hinten dazu." => "9832ldAERochen",
"Schreibe bitte ae2392aeA mit vertauschter Groß-/Kleinschreibung in das nächste Feld, dann schreib noch den korrekten Namen des Argon M1 aus X2 hinten dazu." => "AE2392AEaColossus",
"Schreibe bitte ue389SDL mit vertauschter Groß-/Kleinschreibung in das nächste Feld, dann schreib noch den korrekten Namen des Teladi M2 aus X2 hinten dazu." => "UE389sdlPhoenix",
"Schreibe bitte ae8I3HDS mit vertauschter Groß-/Kleinschreibung in das nächste Feld, dann schreib noch den korrekten Namen des Paranid M2 aus X2 hinten dazu." => "AE8i3hdsOdysseus",
"Schreibe bitte ae2IODueS mit vertauschter Groß-/Kleinschreibung in das nächste Feld, dann schreib noch den Namen des Argon M2 aus X2 hinten dazu." => "AE2iodUEsTitan",
//"What is this wiki's name?" => "$wgSitename",
//'Please write the magic secret, "passion", here:' => 'passion',
Ah. In newer versions of mediawiki, instead of require_once to load extensions you need to use wfLoadExtension(). Individual extensions should have documentation on which method they prefer. Bawolff (talk) 16:02, 18 May 2023 (UTC)
If i replace "require_once" with "wfLoadExtension", then i get:
[ZGZR8Oss6dltLLRfwyyALQAAACc] /mw-config/index.php Exception from line 107 of /homepages/8/d312538493/htdocs/X-Lexikon/includes/registration/ExtensionRegistry.php: /homepages/8/d312538493/htdocs/X-Lexikon/extensions//homepages/8/d312538493/htdocs/X-Lexikon/includes/DefaultSettings.php/extension.json does not exist!
How to make the mediawiki redlink url do not jump to the creation page
I want them to jump to a page where the default not exist page, rather than creating a page (equivalent to remove the red link &action=edit ). What should I do? 49.245.77.15 (talk) 12:38, 18 May 2023 (UTC)
Wrong sorting Page in Categories
I sm using the translation tools.
now the sorting of my translatet pages in the categories is fail.
DEFAULTSORT:Bambi ist sortet in its category under "K"
Have you upgraded your MediaWiki from an older version? Or did you change $wgCategoryCollation? You probably need to run updateCollation.php to fix this. Ciencia Al Poder (talk) 13:26, 18 May 2023 (UTC)
The first version was 1.35 but this was there was every update since 1.35
the translation is now new
Did it after that and also updateCollation.php
it does not work either way. HPBorgert (talk) 13:32, 18 May 2023 (UTC)
How can I make a new line inside of the <code> tag?
I would like to make a new line inside of the <code> tag but doing a \n doesn't work. How can I do this?141.248.14.10 (talk) 18:55, 18 May 2023 (UTC)
SSO started working in our application.But Only If we want to test sso from azure app.
Otherwise after sso authentication redirect us to https://wiki/Special:PluggableAuthLogin giving error Fatal error authenticating user.
even we are authenticated, & when we click on login or main page . our username /email id is displaying on app as we r logged in .
can we redirect directly to main_page, as when we are going on main_page sso working. only issue with https://wiki/Special:PluggableAuthLogin this page, rest all pages sso working.
Don't have idea where to set ReturnToURL
please suggest Pooja2425 (talk) 11:52, 19 May 2023 (UTC)
MWException: Error: invalid magic word '='
Hi,
I've been updating an old 1.25.1 wiki to the latest LTS version. I've updated it from 1.25.1 to 1.35.10. I've done this by using the new files & copying over the LocalSettings.php and images. Skins and extension are default & custom code, extensions or skins. This worked perfectly.
In similar fashion I've updated the 1.35.10 version to 1.39.3. This resulted in a Mediawiki error 'MWException: Error: invalid magic word '='' I've enabled Traceback and it shows (somewebsitenl is a placeholder name to protect the innocent;)):
Backtrace:
from /data/sites/web/somewebsitenl/www/w/includes/MagicWord.php(129)
Rebuilding of L10N_cache failed silently due to the database storage was full.
I'm using a shared webhost who limits databases to 1024MB by default, but rebuilding the L10n_cache required at least 1.1GB DB storage. This caused issues.
By enlarging the storage for the DB and running rebuildLocalisationCache.php with --force again it solved my issue with the "MWException:Error: invalid magic word '='" like it did in the thread I mentioned.
LC cache also has an option to use files instead of db (generally faster), which could help if you run into db size issue (that said 1.1 gb is shockingly high, im kind of surprised it needs that) - manual:$wgLocalisationCacheConf] Bawolff (talk) 19:38, 19 May 2023 (UTC)
Can we upgrade to MediaWiki version 1.39 with php version 7.3.17
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 currently on MediaWiki 1.34 and would like to upgrade to 1.39, but our latest available php is 7.3. I do know that that requirements state that php 7.4 is needed, but I'm wondering if MediaWiki would still work with the php 7.3? LouiseCooke1 (talk) 15:18, 19 May 2023 (UTC)
Its unlikely. Bawolff (talk) 19:34, 19 May 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
Trouble with revision tracking
I have recently brought up a new MediaWiki installation -
• Windows 10 PC
• XAMPP v3.3.0
‣ Running Apache & MySQL
And I would like to have external revision control. When I place git repositories in the xampp directories for my wiki & database though I see no changes!
• C:\xampp
• C:\xampp\htdocs\wiki
• C:\xampp\mysql
Where are my pages getting stored? Here is my LocalSettings.php if useful Jmr1985 (talk) 17:18, 19 May 2023 (UTC)
Pages contents are stored in a mysql db (typically .ibd files). Putting that in version control is usually not useful. Bawolff (talk) 19:27, 19 May 2023 (UTC)
I will poke around a little more, this gives me confidence in securing our use for a new work project (my primary source of need is external backups) Jmr1985 (talk) 11:26, 22 May 2023 (UTC)
I would suggest using mysqldump for backups. See also manual:BackupBawolff (talk) 14:57, 22 May 2023 (UTC)
The filename, directory name, or volume label syntax is incorrect.
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
This message is occurring no matter what I do. I've made sure that the path is indeed correct, and it is. This is my LocalSettings.php:
I can't find anything wrong with this, and I can't find anything else by myself, so I'm asking for help. Any ideas? Headmate (talk) 18:40, 19 May 2023 (UTC)
Still haven't been able to fix it. Would anyone have any ideas on how to fix this error? Headmate (talk) 20:45, 19 May 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
Extension:CentralAuth
The topic is as follows:
1. I have created 22 languages with separate databases and separate usernames and passwords, each hosted on a separate server.
2. Each wiki is named with a subdomain. For example:
en.wikiexample.com
fr.wikiexample.com
de.wikiexample.com
3. Each wiki has 150 users registered with the same username and password. For example, in English:
User: A nasab
Password: 123456qwerty
In French:
User: A nasab
Password: 123456qwerty
In German:
User: A nasab
Password: 123456qwerty
4. I mentioned these details to explain that I want to use the Extension: CentralAuth. Sokote zaman (talk) 20:23, 19 May 2023 (UTC)
In lines 23 and 24, only two classes are defined. Is there no need for a username and password? What is the solution? Thank you.Sokote zaman (talk) 20:32, 19 May 2023 (UTC)
pedí una cuenta hace ya un tiempo, me respondiero que no correspondía o que estaba saturado. es un mail de muchos años y soy el titular. pedí la cuenta con nombre de usuario "jorcaba". gracias por su atención. 2800:810:494:223:9734:9A68:F184:B6A0 (talk) 00:09, 20 May 2023 (UTC)
Wie erstellt man eine Infobox?
Ich habe schon vieles ausprobiert, und auch Tutorials angeschaut, aber nirgendwo wird schritt für schritt erklärt wie man ein seine eigene mediawiki - installation einen infobox erstellt. 2A02:8071:5352:E780:6107:4212:6E1E:9095 (talk) 04:57, 20 May 2023 (UTC)
I would like to import and use gadgets from the Japanese version of wikipedia, but I cannot. I tried to use grobal css js, but it didn't work.
I would like to import and use gadgets from the Japanese version of wikipedia, but I cannot. I tried to use grobal css js, but it didn't work. 2400:4152:6600:2900:88C7:543C:4B0B:2AFA (talk) 08:34, 20 May 2023 (UTC)
Please see "Post a new question" in the sidebar. Plese explain whjy you "cannot". Please explain what "didn't work". Please provide your steps, and describe what does happen. Malyacko (talk) 09:03, 21 May 2023 (UTC)
Specific Template refuses to work, and times out the server.
Hello, I'm trying to import the template Template:Infobox_settlement to my wiki, and it refuses to work, and even times out the server. I've been importing new templates related to this template for 2 full days now, and I can't find any others. I've importing everything from other templates, to modules, to even CSS pages. But no matter what I do, the server still just times out. I know it's due to the template because of the fact that I can still make edits to the page without the template, but the moment I add the template, it stops working. Any ideas? Headmate (talk) 01:13, 21 May 2023 (UTC)
P.S. I would like to mention that I'm not sure if "server" is the right word to use. The specific thing that times out appears to be the LuaStandaloneInterpreter of Scribunto. If it helps, the specific error message that it leaves is this:
Fatal error: Maximum execution time of 120 seconds exceeded in C:\xampp\htdocs\w\extensions\Scribunto\includes\engines\LuaStandalone\LuaStandaloneInterpreter.php on line 483Headmate (talk) 01:24, 21 May 2023 (UTC)
Well something is weird because the lua timeout is usually much lower than the php timeout you are hitting. However php timeout errors sometimes report the wrong place.
Ensure you have general performance stuff setup (you have installed apcu php extension and set $wgMainCacheType) Bawolff (talk) 20:35, 24 May 2023 (UTC)
Thank you for telling me that. I did that, but this time, the error it gives me is:
Fatal error: Maximum execution time of 120 seconds exceeded in C:\xampp\htdocs\w\extensions\Scribunto\includes\engines\LuaStandalone\LuaStandaloneInterpreter.php on line 488Headmate (talk) 14:30, 27 May 2023 (UTC)
Error when executing rebuildtextindex.php
An error occurred when executing rebuildtextindex.php. The following error occurred when I ignored it and searched for a nonexistent article name.
Error 1191: Can't find FULLTEXT index matching the column list
Function: SearchMySQL::searchInternal
Query: SELECT page_id,page_namespace,page_title FROM `page`,`searchindex` WHERE (page_id=si_page) AND ( MATCH(si_text) AGAINST('+\"u8e38289u8e3818bu8e381afu8e3818du8e381afu8e3818b\" ' IN BOOLEAN MODE) ) AND page_namespace = 0 ORDER BY MATCH(si_text) AGAINST('+\"u8e38289u8e3818bu8e381afu8e3818du8e381afu8e3818b\" ' IN NATURAL LANGUAGE MODE) DESC LIMIT 21
Backtrace:
I think I can do it by editing it in phpmyadmin, but how do I fix it? 2400:4152:6600:2900:140D:D3BF:6E28:459 (talk) 14:24, 21 May 2023 (UTC)
I guess you could maybe use an ALTER statement to add a fulltext index on si_text. Normally this should be done by mediawiki automatically. Bawolff (talk) 05:32, 22 May 2023 (UTC)
I am a little confused about what you mean. How do I enter this information when setting up the system? 153.131.152.0 (talk) 08:21, 22 May 2023 (UTC)
> An error occurred when executing rebuildtextindex.php
You may want to execute it again and post here the error you got Ciencia Al Poder (talk) 09:35, 22 May 2023 (UTC)
Error creating thumbnail: Unable to save thumbnail to destination
I encountered an error while using an image in the .webp file format. The images are correctly stored in the filesystem, and I have manually created two directories in my mediawiki installation: /images/thumb and /images/tmp. Both of these directories have the file permissions set to drwxr-xr-x. I came across a similar support topic, but there were conflicting responses on how to resolve the issue. I attempted to fix it by adjusting the variables $wgUseFileCache and $wgFileCacheDirectory, but it didn't solve the problem. Can anyone provide guidance on how to resolve this issue? Thank you! MarblehorseNet (talk) 17:58, 21 May 2023 (UTC)
I am able to suppress the error by using
$wgIgnoreImageErrors = true;
However, this only allows me to display full size images and doesn't allow thumbnailing MarblehorseNet (talk) 04:25, 22 May 2023 (UTC)
I ran into this previous topic which led me to put
putenv('TMPDIR=/var/www/html/images/tmp');
into my LocalSettings.php, however I was unable to edit the TempFSFile.php because it no longer had the line of code:
I even tried giving file permissions to all users with
chmod ugo+rwx tmp
However it still wouldn't generate the thumbnails MarblehorseNet (talk) 04:54, 22 May 2023 (UTC)
Please include exact error messages.
> $wgUseFileCache and $wgFileCacheDirectory
These config settings are unrelated to your issue or file handling.
> I was unable to edit the TempFSFile.php
we strongly reccomend you do not edit any mediawiki core files. Bawolff (talk) 05:30, 22 May 2023 (UTC)
The apache log doesn't present any errors at loglevel error, didn't see anything else at loglevel info but I could've missed something, I tried enabling the mediawiki log according the these directions however it wasn't writing to the file provided even though the file permission were 755. The following error shows within the image box as a textbox: "Error creating thumbnail: Unable to save thumbnail to destination". @Bawolff Is there any additional debug information that I should add? MarblehorseNet (talk) 03:11, 23 May 2023 (UTC)
Figured out the error, I had to chmod 777 the tmp directory because it has 775 permissions which weren't enough... MarblehorseNet (talk) 02:26, 26 May 2023 (UTC)
Its important to remember that mediawiki runs as a different user than you probably do. If you are doing 755 permissions, you also need to chown to the user mediawiki is running as (often, but not always www-data) Bawolff (talk) 09:53, 5 December 2023 (UTC)
visual edtior help
how do i fix this error on visual edtior
[ZGqIiN-bTWk4qdbt6OGKjQAAAAY] Exception caught: Could not open '/home/vol1000_8/epizy.com/epiz_34255819/tmp_yaeqjr/mw-GlobalIdGenerator34255819-UUID-128'. Cocopuff2018 (talk) 21:09, 21 May 2023 (UTC)
Try deleting /home/vol1000_8/epizy.com/epiz_34255819/tmp_yaeqjr/mw-GlobalIdGenerator34255819-UUID-128 sometimes caused by running maintenance scripts as root creating the file as the wrong user. Bawolff (talk) 05:33, 22 May 2023 (UTC)
were would i delete (/home/vol1000_8/epizy.com/epiz_34255819/tmp_yaeqjr/mw-GlobalIdGenerator34255819-UUID-128) which file? Cocopuff2018 (talk) 17:35, 22 May 2023 (UTC)
Which file: mw-GlobalIdGenerator34255819-UUID-128
Where: /home/vol1000_8/epizy.com/epiz_34255819/tmp_yaeqjr/ Malyacko (talk) 09:00, 25 May 2023 (UTC)
Please help me to not be blocked from editing my mediawiki page.
RESOLVED
Discussion is technically not suitable for Project:Support desk, as this inquiry is relating to MediaWiki.org and/or another Wikimedia Foundation project.
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.
In sorrow for not understanding all of the stipulations,
in desire to publish on wikipedia I receive automatically
considered "spam" - however, I did learn yesterday and today a better understanding of the rules.
Please reinstate me User:Joschtony, for meta mediawiki,
so I can publish the wiki page and have a talk discussion page,
your help is greatly appreciated, thank you, good today of days.
hopefully I can wade through that what I thought was not as steep a learning curve as I thought, thank you, have a good day. Peace. Joschtony (talk) 05:42, 22 May 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
Error in configuration of $wgGitInfoCacheDirectory
I configured a more restrictive open_basedir. I am obtaining this error
[Mon May 22 09:51:38.950059 2023] [php7:warn] [pid 193235] [client ] PHP Warning: is_readable(): open_basedir restriction in effect. File(/gitinfo/info.json) is not within the allowed path(s): (/var/www/guide) in /var/www/guide/includes/GitInfo.php on line 173
I think the problem is in the configuration of $ wgGitInfoCacheDirectory that point to a root path (not accessible). But I never installed MediaWiki nor any extension with git, so, why I have this problem? What should I check?
I am running MediaWiki 1.39.3 on PHP 7.4.33 (apache2handler).
Thanks for your help and if I have to give other informations please tell me. Marco-Guerrini (talk) 10:03, 22 May 2023 (UTC)
That should be window.on( 'load', function() { // the code goes here } );. Or just $(function(){ // the code goes here }).
Regarding your hook. It's generally better to explain what you want to achieve, instead of asking why your chosen solution doesn't work. Because quite often it turns out that people are focusing on the incorrect solution to the problem. —TheDJ (Not WMF) (talk • contribs) 12:06, 31 May 2023 (UTC)
@TheDJ Thank you for your reply. I've removed the unnecessary parts from that page and no errors are occurring.
Let me elaborate on the issue with the onParserBeforePreprocess function not working.
<?phpclassEnhanceMarkupHooks{publicstaticfunctiononBeforePageDisplay(OutputPage&$out,Skin&$skin){$out->addModules("ext.EnhanceMarkup.styles");$out->addModules("ext.EnhanceMarkup.scripts");returntrue;}publicstaticfunctiononParserFirstCallInit(Parser$parser){// Register each of your custom parser functions with the parser$parser->setHook("random",[self::class,"randomRender"]);returntrue;}publicstaticfunctiononInternalParseBeforeLinks(Parser&$parser,&$text){// - * 4+ == <hr>// Replace sequences of 3-9 '*', '-', or '_' with a horizontal rule$text=preg_replace('/^([-]{3,9})$/m',"<hr>",$text);// [pagecount] show all count of page// Replace [pagecount] with the total number of pages$text=preg_replace_callback("/\[pagecount\]/",function($matches)use($parser){$dbr=wfGetDB(DB_REPLICA);$count=$dbr->selectRowCount("page");return$count;},$text);// Replace [*A text] with <ref group="A">text</ref>$text=preg_replace("/\[\*\s+([^ ]+)\s+(.*?)\]/",'<ref group="$1">$2</ref>',$text);// Replace [*A] with <ref group="A" />$text=preg_replace("/\[\*\s+([^ ]+)\s*\]/",'<ref group="$1" />',$text);// Replace [* text] with <ref>text</ref>$text=preg_replace("/\[\*\s+(.*?)\]/",'<ref>$1</ref>',$text);// Replace [include text] with {{text}}$text=preg_replace("/\[\include\s+(.*?)\]/",'{{$1}}',$text);// Replace [br] with <br>$text=str_replace("[br]","<br>",$text);// Font Size up {{{+1 (content) }}} - Range: 1~5$text=preg_replace_callback('/\{\{\{\+([1-5])\s*(.*?)\s*\}\}\}/s',function($matches){return'<span style="font-size:'.(1+$matches[1]).'em;">'.$matches[2].'</span>';},$text);// Font Size down {{{-1 (content) }}} - Range: 1~5$text=preg_replace_callback('/\{\{\{-([1-5])\s*(.*?)\s*\}\}\}/s',function($matches){return'<span style="font-size:'.(1-$matches[1]/10).'em;">'.$matches[2].'</span>';},$text);returntrue;}// Random// <random range="50">True|False</random>publicstaticfunctionrandomRender($input,array$args,Parser$parser,PPFrame$frame){// Disable caching$parser->getOutput()->updateCacheExpiry(0);// Parse the input$parts=explode("|",$input);// Get the range from args$range=isset($args["range"])?$args["range"]:2;// default to 2// Generate a random number within the range$randomNumber=mt_rand(1,$range);// Choose the output based on the random numberif($randomNumber<=$range/2){// If the random number is in the first half of the range, return the first partreturn$parts[0];}else{// Otherwise, return the second part if it exists, or the first part if it doesn'treturnisset($parts[1])?$parts[1]:$parts[0];}}}
Looking at the code, there doesn't seem to be anything particularly wrong with it - if it's supposed to work, typing something like [* texts] within the wiki should generate a footnote called texts, but for some reason it's outputting literally. Gaon12 (talk) 12:37, 31 May 2023 (UTC)
Unable to connect to a wiki
Hello, I'm unable to connect to my account on this wiki: http://animebathscenewiki.com
My password doesn't work even though it worked on MediaWiki itself, having tested it.
Thank you in advance for your help. DarkraiFerrante (talk) 12:35, 31 May 2023 (UTC)
Multiple pages into one page
I'm creating a wiki with information on it. I want to be able to have all of the information to be displayed on one long page but I also want each topic to have their own page. The long page would ideally be each individual pages one after another. Let me know if there is a way of doing this. Thanks Carter.smith1 (talk) 18:28, 31 May 2023 (UTC)
I don't only want to be able to click a link to get to the other page. Instead I was hoping that the contents of the other pages would be visible on the main page without the need to copy all of the separate pages onto the main page. Carter.smith1 (talk) 18:49, 31 May 2023 (UTC)
Templates were not working earlier now they seem to be. Thanks! Carter.smith1 (talk) 19:33, 31 May 2023 (UTC)
I do have one more question... These template pages, are the accessabale the same way that a normal page would be? If not is there a way to use templates to embed the contents of one page into another. Thanks Carter.smith1 (talk) 19:53, 31 May 2023 (UTC)
If you start the template name with a colon it will embed the normal page named that. E.g. if your page is named Foo then use {{:foo}}Bawolff (talk) 20:13, 31 May 2023 (UTC)
↑ tags ==
Dear ∀,
Is it possible to do <something> within a template iff the page contains a <ref> tag?
Thank you in advance for a solution.
Yours, ~ Ciciban (talk) 15:06, 22 May 2023 (UTC)
$dbKey: must not be empty
I noticed some pages were missing from search, tried to rebuild but have lost me search index.
The site is 20 years old, I am running version 1.38.2.
Grateful for any help / clue what to do.
php maintenance/rebuildall.php
** Rebuilding fulltext search index (if you abort this will break searching; run this script again to fix):
Dropping index...
Clearing searchindex table...Done
Rebuilding index fields for 512234 pages...
...
5000
Wikimedia\Assert\ParameterAssertionException from line 72 of /var/www/html/wiki/vendor/wikimedia/assert/src/Assert.php: Bad value for parameter $dbKey: must not be empty
#0 /var/www/html/wiki/includes/page/PageReferenceValue.php(66): Wikimedia\Assert\Assert::parameter()
#1 /var/www/html/wiki/includes/page/PageIdentityValue.php(87): MediaWiki\Page\PageReferenceValue->__construct()
#2 /var/www/html/wiki/includes/Revision/RevisionStore.php(1722): MediaWiki\Page\PageIdentityValue->__construct()
#3 /var/www/html/wiki/includes/Revision/RevisionStore.php(1609): MediaWiki\Revision\RevisionStore->newRevisionFromRowAndSlots()
#4 /var/www/html/wiki/maintenance/rebuildtextindex.php(116): MediaWiki\Revision\RevisionStore->newRevisionFromRow()
#5 /var/www/html/wiki/maintenance/rebuildtextindex.php(68): RebuildTextIndex->populateSearchIndex()
#6 /var/www/html/wiki/maintenance/rebuildall.php(48): RebuildTextIndex->execute()
#7 /var/www/html/wiki/maintenance/doMaintenance.php(114): RebuildAll->execute()
#8 /var/www/html/wiki/maintenance/rebuildall.php(67): require_once('...')
#9 {main} Ticklehill (talk) 21:07, 22 May 2023 (UTC)
I did a fresh mediawiki-1.39.3 install, updated the DB and still ...
php rebuildall.php
Wikimedia\Assert\ParameterAssertionException from line 72 of /var/www/html/newiki/vendor/wikimedia/assert/src/Assert.php: Bad value for parameter $dbKey: must not be empty
A clue, a hint, a suggestion, anything .... Ticklehill (talk) 11:57, 5 June 2023 (UTC)
We are still stuck with no search index, can anyone help? Ticklehill (talk) 08:29, 12 July 2023 (UTC)
This likely means you have an invalid row in your Database. If you look at rebuildTextIndex.php in function populateSearchIndex, you will find a fragment like this:
So from DB row $s (which I think is a join from the revision and page tables...) it builds a Title and then tries to find the revision records that go with that title. It seems this value is empty or otherwise invalid. This is strange, as it did join on page_latest = rev_id and it has a page_id , but does not have a valid title for it. Try adding some $this->output to the script there, to figure out what the page_id and page_latest are. Then retrieve the values page_namespace and page_title and figure out what is wrong here. Then check your database if you have more entries like this and see if you can maybe fill/overwrite the tables with correct or at least 'usable' data. Always backups first of course. —TheDJ (Not WMF) (talk • contribs) 08:47, 13 July 2023 (UTC)
Many thanks, I put in some debug as below, please would you expand upon the next step
Wikimedia\Assert\ParameterAssertionException from line 72 of /var/www/html/wiki/vendor/wikimedia/assert/src/Assert.php: Bad value for parameter $dbKey: must not be empty
#0 /var/www/html/wiki/includes/page/PageReferenceValue.php(66): Wikimedia\Assert\Assert::parameter() Ticklehill (talk) 17:57, 19 July 2023 (UTC)
You don't have permission to access this resource.
I get this message when trying to access certain pages. It seems it is pages with full stops, like Henrik Keyser d.ä. But I can access the page Keyser, Henrik d.ä.
It happens for a user who is admin and all other groups and for a user who is just "user"
Which setting is wrong?
Fredrik Haeffner (talk) 08:01, 23 May 2023 (UTC)
Hi None of the above links adress the problem I have. It occurs only when a page title ends with two dots like d.y. or d.ä. It does not helt to remove one or both dots. Some of those pages can be shown but not edited or moved
Hi all! When i try to upload a file from the editor (visual or source) a 500 error is thrown and in the logs i find this:
FastCGI sent in stderr: "PHP message: PHP Fatal error: Declaration of Wikimedia\ParamValidator\Util\UploadedFile::getStream() must be compatible with Psr\Http\Message\UploadedFileInterface::getStream(): Psr\Http\Message\StreamInterface in /var/www/wiki/includes/libs/ParamValidator/Util/UploadedFile.php on line 86" while reading response header from upstream
While the upload from the special page works like a charm, any clue?
Thank you Andyts93 (talk) 08:05, 23 May 2023 (UTC)
Which PHP version are you using? Osnard (talk) 06:01, 24 May 2023 (UTC)
Hey guys, I'm having a weird problem
When using the SourceEditor in Mediawiki 1.39.1&1.39.3, there will be an inexplicable bug in my wiki
For example below, when I write:
example
example
example
And click preview, you will get the normal result:
example example
example
But once I save changes, the source code becomes
example
example
example
I can't find the source of the problem, hope to get your help
P.S.
Here are some things to provide
MediaWiki 1.39.3
PHP 8.0.26 (fpm-fcgi)
MySQL 5.7.40-log
ICU 50.2
Lua 5.1.5
This wiki uses zh by default, and the English support is almost zero, and anonymous editing is prohibited. The sandbox address is https://wiki.unitedearth.cc/Help:Sandbox
Source code of the page changes unintentionally after saving the page with the plugin TinyMCE
Hi, I installed the TinyMCE plugin on my local MW instance. My instance and my MW are in version 1.38. The problem is that when I save my page, the content of my page changes. Example it changes from this:
<languages/><translate>= Use case =
to this:
<languages/><translate>= Use case = <span class="mwt-editable mwt-comment" id="R1684920944907" " draggable="false" contenteditable="true">T:1
This totally changes the display. I would like to know why.
Anyone have an idea? Thanks in advance. 212.24.219.214 (talk) 14:33, 23 May 2023 (UTC)
fixing visual edtior
how do i fix this error on visual editor
[ZGqIiN-bTWk4qdbt6OGKjQAAAAY] Exception caught: Could not open '/home/vol1000_8/epizy.com/epiz_34255819/tmp_yaeqjr/mw-GlobalIdGenerator34255819-UUID-128'.
t tried what badwolf said however it didn't fix it at all Cocopuff2018 (talk) 16:37, 23 May 2023 (UTC)
Be aware that for security reasons most modern browsers do not support opening file links anymore. In the past there have been specific browser extensions. But those would need to be enabled on all clients then. Osnard (talk) 05:59, 24 May 2023 (UTC)
I recently created a wiki in a Virtual box VM running ubuntu 22.04. The wiki has been set up fully and I want to be able to access it from another computer. However the link to the wiki only works in the VM. I'm not sure what I am ding wrong but it seems like other devices can not find my wiki page. Let me know if there is something that I am missing Carter.smith1 (talk) 16:49, 24 May 2023 (UTC)
This sounds unrelated to MediaWiki but to hosting a webserver? Have you brought this up in an Ubuntu forum? Malyacko (talk) 08:59, 25 May 2023 (UTC)
If its a vm on your computer, and you havent set up external networking, then it wont be reachable externally.
Generally people use virtualbox VM's for local testing. Bawolff (talk) 10:03, 25 May 2023 (UTC)
The issue was that my VM manager (Virtua box) was creating an ip that was not findable by other devices. The was that I fixed this was going in the VM's settings and under Devices, Network, Network Settings, then switch attached to from NAT to Bridged adapter. This changed my IP address and then I set up the wiki with the new IP and it worked. Carter.smith1 (talk) 18:43, 25 May 2023 (UTC)
Mainpage & Preferences not usable
Hi!
I've got my hands on an external wiki. after updating it to 1.39 i can't edit the mainpage, also the preferences (user settings) of the admin account are all grey and not usable.
Greetings 2003:EE:715:46AC:6CFE:D747:BE2C:9EA6 (talk) 17:20, 24 May 2023 (UTC)
Why can't you edit the main page? What does happen? Malyacko (talk) 08:58, 25 May 2023 (UTC)
There is no "edit" button. I only can see the source code. Other pages i can edit.
The mainpage must be locked, but i have no permission to unlock it.
If you look at the page Special:listgrpuprights on your wiki, are the rights what you think they are? Do admins have editprotected rights? Bawolff (talk) 19:44, 28 May 2023 (UTC)
Ah, that was the mistake. The admins don't have the editprotect rights. Thanks.
They have editprotected rights by default, so I would suggest removing the config taking away those rights. Bawolff (talk) 23:55, 28 May 2023 (UTC)
upgrade MediaWiKi from 1.35 to 1.39
Hello
Can i upgrade MediaWiKi from 1.35 to 1.39 directly or i should upgrade to 1.38 in first time and to 1.39 in second time?
Thanks! 79.95.87.85 (talk) 21:12, 24 May 2023 (UTC)
You can go 1.35->1.39 direct.
Backup your db first just in case. Bawolff (talk) 10:04, 25 May 2023 (UTC)
Hi everybody,
It is possible have a great and good rtfm for implement ldap.
I think they are some plugins not explained with good details.
Example The PluggableAuth. I don't understand how can i config variable: $wgPluggableAuth_Config
They're many people with me included don't understant how implement ldap authentication. I think is not normal.
Everything working fine with CheckConnection.php, CheckLogin.php, ConvertLdapAuthenticationConfig.php, ShowUserGroups.php, ShowUserInfo.php
All results are Ok My question why every people cannot log in with ldap what is wrong?
Thanks for your attention and your answer.
Vote 1
everyone that think like me, increment vote please
king regards Lolotlse (talk) 22:36, 24 May 2023 (UTC)
wikeddif
I cannot install Extension:WikEdDiff. on 1.38. It gives me
[33e90f83c9be4769fd266e4b] /wiki-dir/index.php?title=Main_Page&action=historysubmit&type=revision&diff=611&oldid=610 Error: Call to a member function onDifferenceEngineShowDiffPage() on null
Backtrace:
from /var/www/html/wiki-dir/includes/diff/DifferenceEngine.php(601)
#0 /var/www/html/wiki-dir/includes/page/Article.php(892): DifferenceEngine->showDiffPage()
#1 /var/www/html/wiki-dir/includes/page/Article.php(458): Article->showDiffPage()
#2 /var/www/html/wiki-dir/includes/actions/ViewAction.php(80): Article->view()
#3 /var/www/html/wiki-dir/includes/MediaWiki.php(544): ViewAction->show()
#4 /var/www/html/wiki-dir/includes/MediaWiki.php(321): MediaWiki->performAction()
#5 /var/www/html/wiki-dir/includes/MediaWiki.php(910): MediaWiki->performRequest()
#6 /var/www/html/wiki-dir/includes/MediaWiki.php(564): MediaWiki->main()
#7 /var/www/html/wiki-dir/index.php(53): MediaWiki->run()
#8 /var/www/html/wiki-dir/index.php(46): wfIndexMain()
#9 {main}
The source shows that in DifferenceEngine.php(601) the variable $this->hookRunner is null.
I am looking for further ideas how to debug this. 87.163.194.82 (talk) 08:40, 25 May 2023 (UTC)
MediaWiki not detecting APCu
Hi! I'm trying to install MediaWiki 1.39.3 with PHP 7.4 and when I try to set up the page says that I don't have APCU installed, I tried reinstalling MediaWiki, reinstalling apcu and nothing works Yerolopolo (talk) 13:29, 25 May 2023 (UTC)
Cant install db
info about installation
uname -a
Linux myserver 4.18.0-425.10.1.el8_7.x86_64 #1 SMP Wed Dec 14 16:00:01 EST 2022 x86_64 x86_64 x86_64 GNU/Linux
mediawiki-1.39.3.tar.gz
mysql --version
mysql Ver 8.0.30 for Linux on x86_64 (Source distribution)
mysql> show engines;
+--------------------+---------+----------------------------------------------------------------+--------------+------+------------+
| Engine | Support | Comment | Transactions | XA | Savepoints |
+--------------------+---------+----------------------------------------------------------------+--------------+------+------------+
| FEDERATED | NO | Federated MySQL storage engine | NULL | NULL | NULL |
| MEMORY | YES | Hash based, stored in memory, useful for temporary tables | NO | NO | NO |
| InnoDB | DEFAULT | Supports transactions, row-level locking, and foreign keys | YES | YES | YES |
| PERFORMANCE_SCHEMA | YES | Performance Schema | NO | NO | NO |
| MyISAM | YES | MyISAM storage engine | NO | NO | NO |
| MRG_MYISAM | YES | Collection of identical MyISAM tables | NO | NO | NO |
| BLACKHOLE | YES | /dev/null storage engine (anything you write to it disappears) | NO | NO | NO |
| CSV | YES | CSV storage engine | NO | NO | NO |
| ARCHIVE | YES | Archive storage engine | NO | NO | NO |
+--------------------+---------+----------------------------------------------------------------+--------------+------+------------+
This is the error message that i got.
The environment has been checked. You can install MediaWiki.
Setting up database
done
Creating tables, step one
Wikimedia\Rdbms\DBQueryError from line 1618 of /var/www/html/iwswiki/includes/libs/rdbms/database/Database.php: Error 3161: Storage engine MyISAM is disabled (Table creation is disallowed).
Function: Wikimedia\Rdbms\Database::sourceFile( /var/www/html/iwswiki/maintenance/tables-generated.sql )
Query: CREATE TABLE `searchindex` (
si_page INT UNSIGNED NOT NULL,
si_title VARCHAR(255) DEFAULT '' NOT NULL,
si_text MEDIUMTEXT NOT NULL,
UNIQUE INDEX si_page (si_page),
FULLTEXT INDEX si_title (si_title),
FULLTEXT INDEX si_text (si_text)
) ENGINE = MyISAM DEFAULT CHARSET = utf8 138.106.53.101 (talk) 13:31, 25 May 2023 (UTC)
isnt this database version supported? 139.122.191.225 (talk) 06:09, 26 May 2023 (UTC)
I changed to innodb in tables-generated.sql and it looks ok but idont know if this breaks anything
It should be fine. It is myisam by default for that table because old versions of mysql did not support fulltext indexes on innodb tables, and nobody ever changed mediawiki after support was added to mysql. Bawolff (talk) 15:01, 26 May 2023 (UTC)
Search dont work after updating mediawiki
Hello
I update my mediawiki from 1.28 to 1.35. all things work very well (i updated also the relatif installed extensions )
BUT "default search" dont work, whene i search for any TERM in the left search field i got this message "An error occurred while searching: We were unable to complete your search due to a temporary problem. Please retry later." (translated from frensh:) )
i have "cirrussearch" and "elastica" extensions installed on my wiki (old and new version)
what is the issue please? does i miss to update file or to add configuration to make search work properly?
Thanks a lot 79.95.86.240 (talk) 06:01, 26 May 2023 (UTC)
Unable to increase the file upload size
We have followed the steps provided in the document: Manual:Configuring file uploads - MediaWiki
Unfortunately, it is not working for us. It is affecting our release documentation. Can you please help us resolve this issue? 121.241.162.12 (talk) 06:46, 26 May 2023 (UTC)
What exactly did you change (parameters instead of paraphrasing), which exact steps did you perform, which MediaWiki version? Please see the sidebar. Malyacko (talk) 18:56, 26 May 2023 (UTC)
automatic EN anchor not recognized at level === on translated page?
Error when using Cirrussearch and Elastica extensions
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 Upgade my wiki from 1.28 to 1.35. i update Cirrussearch and Elastica extensions
i got this error whene i tried to make search
"
[7ca837c2f55f23939b24a707] /index.php?title=Sp%C3%A9cial:Version Error from line 90 of /app/httpd/www/mediawiki-1.35.7/extensions/Elastica/includes/ElasticaConnection.php
Class 'Elastica\Client' not found
Backtrace:
#.....
"
i use 6.28.3 of elastic search and PHP 7.4.33 and MariaDB 10.6.11-
both Cirrussearch and Elastica are in 1.35 version
Any help please? 79.95.87.130 (talk) 15:27, 26 May 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
Enquiry on Wikimania 2023
Hello, I want to be part of Wikimania 2023. can you send me details on the events and the link for data stipend for scholarship willing participants?
Thank you for the anticipated favourable response. Ngozi Stella Udechukwu (talk) 15:35, 26 May 2023 (UTC)
when i try to submit modules i get this error how do i fix it
[ZHDcPZoZMaNmiQdASHgl@QAAABs] /index.php?title=Module:Documentation&action=submit MWException: The lua binary (/home/vol1000_8/epizy.com/epiz_34255819/htdocs/extensions/Scribunto/includes/engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua) is not executable.
Backtrace:
from /home/vol1000_8/epizy.com/epiz_34255819/htdocs/extensions/Scribunto/includes/engines/LuaStandalone/LuaStandaloneInterpreter.php(104)
#0 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/extensions/Scribunto/includes/engines/LuaStandalone/LuaStandaloneEngine.php(103): MediaWiki\Extension\Scribunto\Engines\LuaStandalone\LuaStandaloneInterpreter->__construct(MediaWiki\Extension\Scribunto\Engines\LuaStandalone\LuaStandaloneEngine, array)
#1 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/extensions/Scribunto/includes/engines/LuaCommon/LuaEngine.php(131): MediaWiki\Extension\Scribunto\Engines\LuaStandalone\LuaStandaloneEngine->newInterpreter()
#2 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/extensions/Scribunto/includes/engines/LuaStandalone/LuaStandaloneEngine.php(23): Scribunto_LuaEngine->load()
#3 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/extensions/Scribunto/includes/engines/LuaCommon/LuaEngine.php(235): MediaWiki\Extension\Scribunto\Engines\LuaStandalone\LuaStandaloneEngine->load()
#4 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/extensions/Scribunto/includes/engines/LuaCommon/LuaModule.php(41): Scribunto_LuaEngine->getInterpreter()
#5 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/extensions/Scribunto/includes/engines/LuaCommon/LuaModule.php(28): Scribunto_LuaModule->getInitChunk()
#6 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/extensions/Scribunto/includes/ScribuntoEngineBase.php(201): Scribunto_LuaModule->validate()
#7 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/extensions/Scribunto/includes/ScribuntoContentHandler.php(105): MediaWiki\Extension\Scribunto\ScribuntoEngineBase->validate(string, string)
#8 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/extensions/Scribunto/includes/Hooks.php(389): MediaWiki\Extension\Scribunto\ScribuntoContentHandler->validate(MediaWiki\Extension\Scribunto\ScribuntoContent, Title)
#9 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/includes/HookContainer/HookContainer.php(338): MediaWiki\Extension\Scribunto\Hooks::validateScript(DerivativeContext, MediaWiki\Extension\Scribunto\ScribuntoContent, Status, string, User, boolean)
#10 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/includes/HookContainer/HookContainer.php(137): MediaWiki\HookContainer\HookContainer->callLegacyHook(string, array, array, array)
#11 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/includes/HookContainer/HookRunner.php(1474): MediaWiki\HookContainer\HookContainer->run(string, array)
#12 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/includes/editpage/Constraint/EditFilterMergedContentHookConstraint.php(106): MediaWiki\HookContainer\HookRunner->onEditFilterMergedContent(DerivativeContext, MediaWiki\Extension\Scribunto\ScribuntoContent, Status, string, User, boolean)
#13 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/includes/editpage/Constraint/EditConstraintRunner.php(88): MediaWiki\EditPage\Constraint\EditFilterMergedContentHookConstraint->checkConstraint()
#14 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/includes/EditPage.php(2344): MediaWiki\EditPage\Constraint\EditConstraintRunner->checkConstraints()
#15 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/includes/EditPage.php(1904): EditPage->internalAttemptSave(array, boolean, boolean)
#16 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/includes/EditPage.php(721): EditPage->attemptSave(array)
#17 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/includes/actions/EditAction.php(73): EditPage->edit()
#18 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/includes/actions/SubmitAction.php(38): EditAction->show()
#19 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/includes/MediaWiki.php(542): SubmitAction->show()
#20 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/includes/MediaWiki.php(322): MediaWiki->performAction(Article, Title)
#21 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/includes/MediaWiki.php(904): MediaWiki->performRequest()
#22 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/includes/MediaWiki.php(562): MediaWiki->main()
#23 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/index.php(50): MediaWiki->run()
#24 /home/vol1000_8/epizy.com/epiz_34255819/htdocs/index.php(46): wfIndexMain()
#25 {main} Cocopuff2018 (talk) 16:23, 26 May 2023 (UTC)
Please see "Post a new question" in the sidebar for future questions.
See the error message that you posted: The lua binary (/home/vol1000_8/epizy.com/epiz_34255819/htdocs/extensions/Scribunto/includes/engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua) is not executable.
Make it executable. Malyacko (talk) 18:54, 26 May 2023 (UTC)
invalid magic word '=' after 1.35 -> 1.39 upgrade
Hi. I had an old 1.32 mediawiki installation, which I wanted to keep around, but was not willing to pay the php 7.4 support/extortion fee of my host, so I started an upgrade. The 1.32->1.35.10 step went great, however while upgrade.php seemed to work fine for the 1.35.10->1.39.3 step (note, I switched to php 8.0 at this point), visiting the wiki afterwards gives me the very unhelpful:
Although I am a software dev (not php), the backtrace seems to include nothing suspect like extensions etc - it's just core code, so I wouldn't really know where to start. Any suggestions?
TIA Ecuadorgr (talk) 17:13, 27 May 2023 (UTC)
This can sometimes be causes by incompatible localization cache versions. Try running rebuildLocalisationCache.php --force Bawolff (talk) 22:53, 27 May 2023 (UTC)
Thanks, that sounds plausible, the Wiki was in Greek too - I actually googled how to clear caches, but didn't come up with that command, so I restored 1.35 instead. From then I upgraded to 1.38, which gave me an error about an extension (Widgets) - and it worked fine after upgrading that extension. I think I'll stick with 1.38 for now, but will have that in mind next time I upgrade further. Ecuadorgr (talk) 23:37, 27 May 2023 (UTC)
Error: Call to a member function getNamespaces() on null
Hello!
I run a Wiki for an amateur songwriting competition at:
http://www.homecomposed.net/wiki/
MediaWiki 1.39.3PHP 8.1.17 (cgi-fcgi)MySQL 8.0.28-0ubuntu0.20.04.3ICU 60.2
It stopped working properly a few weeks ago, so I upgraded from MediaWiki 1.26.3 to 1.35.10 without problems and everything was fine.
I then came back to it on Friday in order to upgrade further to 1.39.3.
Unfortunately, having done that (incl. running the update script in a browser), some pages now load as they should, whereas many others return "Error: Call to a member function getNamespaces() on null".
For example, the full error report for http://www.homecomposed.net/wiki/index.php?title=Home_Composed_Song_Contest_1994 is as follows:
[ZHNoFVjgJfmtun3AUscyrAAATq4] /wiki/index.php?title=Home_Composed_Song_Contest_1994 Error: Call to a member function getNamespaces() on nullBacktrace:from /home/faulknmd/homecomposed.net/wiki/extensions/Html5mediator/Html5mediator.php(40)#0 /home/faulknmd/homecomposed.net/wiki/includes/parser/Parser.php(4023): wfHtml5MediatorParse(string, array, Parser, PPFrame_Hash)#1 /home/faulknmd/homecomposed.net/wiki/includes/parser/PPFrame_Hash.php(354): Parser->extensionSubstitution(array, PPFrame_Hash, boolean)#2 /home/faulknmd/homecomposed.net/wiki/includes/parser/Parser.php(2955): PPFrame_Hash->expand(PPNode_Hash_Tree, integer)#3 /home/faulknmd/homecomposed.net/wiki/includes/parser/Parser.php(1610): Parser->replaceVariables(string)#4 /home/faulknmd/homecomposed.net/wiki/includes/parser/Parser.php(724): Parser->internalParse(string)#5 /home/faulknmd/homecomposed.net/wiki/includes/content/WikitextContentHandler.php(301): Parser->parse(string, Title, ParserOptions, boolean, boolean, integer)#6 /home/faulknmd/homecomposed.net/wiki/includes/content/ContentHandler.php(1721): WikitextContentHandler->fillParserOutput(WikitextContent, MediaWiki\Content\Renderer\ContentParseParams, ParserOutput)#7 /home/faulknmd/homecomposed.net/wiki/includes/content/Renderer/ContentRenderer.php(47): ContentHandler->getParserOutput(WikitextContent, MediaWiki\Content\Renderer\ContentParseParams)#8 /home/faulknmd/homecomposed.net/wiki/includes/Revision/RenderedRevision.php(266): MediaWiki\Content\Renderer\ContentRenderer->getParserOutput(WikitextContent, Title, integer, ParserOptions, boolean)#9 /home/faulknmd/homecomposed.net/wiki/includes/Revision/RenderedRevision.php(237): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached(WikitextContent, boolean)#10 /home/faulknmd/homecomposed.net/wiki/includes/Revision/RevisionRenderer.php(221): MediaWiki\Revision\RenderedRevision->getSlotParserOutput(string, array)#11 /home/faulknmd/homecomposed.net/wiki/includes/Revision/RevisionRenderer.php(158): MediaWiki\Revision\RevisionRenderer->combineSlotOutput(MediaWiki\Revision\RenderedRevision, array)#12 [internal function]: MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}(MediaWiki\Revision\RenderedRevision, array)#13 /home/faulknmd/homecomposed.net/wiki/includes/Revision/RenderedRevision.php(199): call_user_func(Closure, MediaWiki\Revision\RenderedRevision, array)#14 /home/faulknmd/homecomposed.net/wiki/includes/poolcounter/PoolWorkArticleView.php(91): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()#15 /home/faulknmd/homecomposed.net/wiki/includes/poolcounter/PoolWorkArticleViewCurrent.php(97): PoolWorkArticleView->renderRevision()#16 /home/faulknmd/homecomposed.net/wiki/includes/poolcounter/PoolCounterWork.php(162): PoolWorkArticleViewCurrent->doWork()#17 /home/faulknmd/homecomposed.net/wiki/includes/page/ParserOutputAccess.php(299): PoolCounterWork->execute()#18 /home/faulknmd/homecomposed.net/wiki/includes/page/Article.php(714): MediaWiki\Page\ParserOutputAccess->getParserOutput(WikiPage, ParserOptions, MediaWiki\Revision\RevisionStoreRecord, integer)#19 /home/faulknmd/homecomposed.net/wiki/includes/page/Article.php(528): Article->generateContentOutput(User, ParserOptions, integer, OutputPage, array)#20 /home/faulknmd/homecomposed.net/wiki/includes/actions/ViewAction.php(78): Article->view()#21 /home/faulknmd/homecomposed.net/wiki/includes/MediaWiki.php(542): ViewAction->show()#22 /home/faulknmd/homecomposed.net/wiki/includes/MediaWiki.php(322): MediaWiki->performAction(Article, Title)#23 /home/faulknmd/homecomposed.net/wiki/includes/MediaWiki.php(904): MediaWiki->performRequest()#24 /home/faulknmd/homecomposed.net/wiki/includes/MediaWiki.php(562): MediaWiki->main()#25 /home/faulknmd/homecomposed.net/wiki/index.php(50): MediaWiki->run()#26 /home/faulknmd/homecomposed.net/wiki/index.php(46): wfIndexMain()#27 {main}
Whereas pages like this are working fine, for example: http://www.homecomposed.net/wiki/index.php?title=Netherlands_in_the_Home_Composed_Song_Contest
Can anyone give me any ideas as to why this might have happened and how it could be fixed? Thanks!
Martin Faulknmd (talk) 14:46, 28 May 2023 (UTC)
Sounds like a bug in Html5mediator extension. Maybe the extension isn't compatible with 1.39, or maybe it needs to be updated to a new version. Bawolff (talk) 23:56, 28 May 2023 (UTC)
Thank you! Html5mediator is indeed no longer supported, which is a bummer, but there we go.
I've removed it and the problematic pages do at least work again now, albeit with the Html5mediator code showing, so that's certainly a big step forward.
Unfortunately the supported alternatives (e.g. MP3MediaHandler, TimedMediaHandler) don't seem to allow the embedding of externally hosted audio files, which is what I was using Html5mediator for, so I guess I can look forward to a lot of time spent uploading mp3s in my near future...
Nevertheless, the biggest part of the problem is solved, so thanks again for that!
{{Information
|'''description'''={{en|1=Section Translation is surfaced on mobile when switching into languages where the content is not available yet so that users can translate it.}}
{{'''fr'''|1=La traduction de section est disponible sur les mobiles lorsque l'on passe à des langues pour lesquelles le contenu n'est pas encore disponible ce qui permet au utilisateurs de le traduire.}}
|date=2021-10-07
|source={{own}}
|author=[[User:Pginer-WMF|Pau Giner]]
|permission=
|other versions=
}}
Error 1091: Can't DROP INDEX `tl_namespace` trying to upgrade to 1.35.10
I'm trying to do a minor upgrade to 1.35.10 (from 1.35.1). I get as far as upgrading the tables but then get the following error:
...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 has no field tl_from; added.
Updating backlinking indices ...
An error occurred:
Error 1091: Can't DROP INDEX `tl_namespace`; check that it exists (localhost)
Function: Wikimedia\Rdbms\Database::sourceFile( /home/xxxxxx/public_html/wiki/maintenance/archives/patch-backlinkindexes.sql )
Query: ALTER TABLE `templatelinks`
DROP INDEX tl_namespace,
ADD INDEX tl_namespace(tl_namespace, tl_title, tl_from)
Hi! This error keeps popping up when I want to log in / edit...could someone please let me know what it means??
{{Blocked text|1=Daniel Case|2=Disruptive editing: same as before. [[Cool Hand Luke|3=2600:1017:b40a:bf5a:f939:cf21:eb8a:74a8|4=Daniel Case|5=15115336|6=02:46, 6 July 2025|7=2600:1017:B400:0:0:0:0:0/40|8=02:46, 6 July 2022 |usefullink1=Wikipedia:Blocking policy|Blocking policy |usefullink2=Help:I have been blocked }} MethePinkPeony (talk) 20:10, 29 May 2023 (UTC)
I was looking for a workflow on the MediaWiki instance.
There should be editors and Approvers, Approvers should be able to receive with in wiki notifications when there are new page creations or page edits from editors, and there should be warnings displayed on pages saying page is under review and once the Approvers approve the page or edit it be normal.
Catch here is there will be multiple editor and Approver groups, like Editor1, Editor2 and Approver1 and Approver2.
Will be happy to provide any additional inputs if needed. 14.192.1.54 (talk) 06:40, 30 May 2023 (UTC)
Include text in drawio.svg files in Mediawiki search?
Is it possible? Bedtry (talk) 15:10, 30 May 2023 (UTC)
upgrade Mediawiki from 1.28 to 1.35
Hello,
I am upgrading Mediawiki from 1.28 to 1.35
I have an issue using the search fonctionality (i cant found page ) and i have message (An error occurred while searching: We were unable to complete your search due to a temporary problem. Please retry later.)
I am using CirrusSearch V1.35 and elastica V 1.35 extensions and i have installed elasticseach V6.5.4
In the upgrading process should i also migrate/upgrade data and index from old elasticserach (2.3.3) and restore it to the new version of elasticsearch or i just install elasticseach 6.5.4 with new settings (new cluster ..)?
Thanks very much 79.95.87.42 (talk) 06:34, 31 May 2023 (UTC)
Your data is on the old ElasticSearch cluster. You should reindex your wiki from scratch on the new ElasticSearch cluster. The README of Extension:CirrusSearch contains instructions for indexing your wiki. Ciencia Al Poder (talk) 20:39, 31 May 2023 (UTC)
How do I verify what restricted special pages appear on Special:SpecialPages if I don't have access to them?
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 currently doing a project that involves separating certain special pages that appear on Special:SpecialPages from certain special pages that don't appear on Special:SpecialPages. The problem is that some of the special pages are ones that I don't have access to. If I'm not mistaken, it is possible to verify what special pages appear on Special:SpecialPages by browsing the repositories of their respective extensions on GitHub. But how do I do that?
The special pages that are on my checklist include the following:
Special:DeleteBatch (should appear as 'Delete batch of pages' if it appears on Special:SpecialPages)
Special:EditAccount (should appear as 'Edit account' if it appears on Special:SpecialPages)
There are a few others that are on my checklist, but the extensions associated with them are not ones that have their own extension pages on this site. Therefore, I need to be able to learn how to read the code in the repositories to avoid having to ask those with access to those pages to check for me. ― C.Syde(talk | contribs) 06:45, 31 May 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
Uncaught TypeError: url.indexOf is not a function
When you go to my MediaWiki site (https://www.gaonwiki.com), I get this error in the console.
Uncaught TypeError: url.indexOf is not a function
at jQuery.fn.load (load.php?lang=ko&modules=ext.EnhanceMarkup.scripts%7Cjquery%2Coojs-ui-core%2Coojs-ui-widgets%7Cjquery.ui%7Coojs-ui.styles.icons-editing-advanced&skin=liberty&version=8mj0p:846:335)
at <anonymous>:10:577
at domEval (load.php?lang=ko&modules=startup&only=scripts&raw=1&skin=liberty:10:692)
at runScript (load.php?lang=ko&modules=startup&only=scripts&raw=1&skin=liberty:12:439)
at execute (load.php?lang=ko&modules=startup&only=scripts&raw=1&skin=liberty:13:489)
at doPropagation (load.php?lang=ko&modules=startup&only=scripts&raw=1&skin=liberty:6:492)
jQuery.fn.load @ load.php?lang=ko&modules=ext.EnhanceMarkup.scripts%7Cjquery%2Coojs-ui-core%2Coojs-ui-widgets%7Cjquery.ui%7Coojs-ui.styles.icons-editing-advanced&skin=liberty&version=8mj0p:846
(anonymous) @ VM1451:10
domEval @ load.php?lang=ko&modules=startup&only=scripts&raw=1&skin=liberty:10
runScript @ load.php?lang=ko&modules=startup&only=scripts&raw=1&skin=liberty:12
execute @ load.php?lang=ko&modules=startup&only=scripts&raw=1&skin=liberty:13
doPropagation @ load.php?lang=ko&modules=startup&only=scripts&raw=1&skin=liberty:6
requestIdleCallback (async)
setAndPropagate @ load.php?lang=ko&modules=startup&only=scripts&raw=1&skin=liberty:7
implement @ load.php?lang=ko&modules=startup&only=scripts&raw=1&skin=liberty:18
(anonymous) @ load.php?lang=ko&modules=ext.EnhanceMarkup.scripts%7Cjquery%2Coojs-ui-core%2Coojs-ui-widgets%7Cjquery.ui%7Coojs-ui.styles.icons-editing-advanced&skin=liberty&version=8mj0p:1
I've tried overwriting it with the latest version of the MediaWiki file, I've tried running maintenance/update.php, but it still doesn't go away.
Also, the regex feature of the onParserBeforePreprocess function doesn't work in the extension I'm building, and I don't know why.
<syntaxhighlight>
public static function onParserBeforePreprocess( &$parser, &$text, &$strip_state ) {
$text = preg_replace(
"/\[\*\s+([^ ]+)\s+(.*?)\]/",
'<ref group="$1">$2