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.
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)
Latest comment: 3 years ago1 comment1 person in discussion
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.
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)
What's ideal steps for Upgrading
Latest comment: 3 years ago2 comments2 people in discussion
We are currently using :-mediawiki-1.34.1
PHP Version :- 7.3.17 (cli) (built: May 10 2020 11:38:44) ( NTS )
MariaDB Version :-5.5.68-1
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
Latest comment: 3 years ago2 comments2 people in discussion
[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
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)
Latest comment: 3 years ago3 comments3 people in discussion
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
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.
[Timeless Theme] How to change the search form default text?
Latest comment: 3 years ago2 comments1 person in discussion
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.
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
Latest comment: 3 years ago3 comments3 people in discussion
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!
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
Latest comment: 3 years ago4 comments2 people in discussion
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.
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.
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)
Latest comment: 3 years ago2 comments2 people in discussion
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 want a single [edit] button in the Mediawiki visual editor.
Latest comment: 3 years ago3 comments2 people in discussion
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.
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
Latest comment: 3 years ago2 comments2 people in discussion
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
Latest comment: 3 years ago1 comment1 person in discussion
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?
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.
Latest comment: 3 years ago3 comments2 people in discussion
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?
$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)
Latest comment: 3 years ago3 comments2 people in discussion
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 ... ?
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
Latest comment: 3 years ago2 comments2 people in discussion
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)
Latest comment: 3 years ago3 comments2 people in discussion
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?
Latest comment: 3 years ago2 comments2 people in discussion
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.
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
Latest comment: 3 years ago2 comments2 people in discussion
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)
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?
Latest comment: 3 years ago7 comments4 people in discussion
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 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
Latest comment: 3 years ago3 comments2 people in discussion
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)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
Permanently delete specific files?
Latest comment: 2 years ago3 comments3 people in discussion
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)
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?
Latest comment: 3 years ago3 comments2 people in discussion
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.
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 ?
Latest comment: 3 years ago2 comments2 people in discussion
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)
why does the header of this support page remain in english ?
Latest comment: 2 years ago2 comments2 people in discussion
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
Latest comment: 2 years ago3 comments3 people in discussion
could you write step by step Active Directory Integration withLDAPAuthentication2 with LDAPProvider ?
Does VisualEditor support inserting a single line break?
Latest comment: 2 years ago5 comments3 people in discussion
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)
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)
manual:run.php
Latest comment: 3 years ago1 comment1 person in discussion
Latest comment: 2 years ago3 comments2 people in discussion
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.
Latest comment: 2 years ago13 comments9 people in discussion
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)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
ShortURL setup 404'ing
Latest comment: 2 years ago1 comment1 person in discussion
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):
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)
Latest comment: 2 years ago5 comments2 people in discussion
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
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)
Latest comment: 2 years ago2 comments2 people in discussion
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)
Latest comment: 2 years ago3 comments2 people in discussion
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"
Latest comment: 2 years ago2 comments2 people in discussion
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.
Latest comment: 2 years ago11 comments3 people in discussion
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)
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 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
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
Latest comment: 2 years ago2 comments2 people in discussion
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
Latest comment: 2 years ago1 comment1 person in discussion
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
Latest comment: 2 years ago3 comments2 people in discussion
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"
Latest comment: 2 years ago1 comment1 person in discussion
HI,
we are using MW version 1.39.3
PluggableAuth 6.2,
SimpleSAMLphp extension 5.0.1,
Simplesamlphp library 2.0.3
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.
Latest comment: 2 years ago3 comments2 people in discussion
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
Latest comment: 2 years ago3 comments2 people in discussion
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)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
Trouble with revision tracking
Latest comment: 2 years ago4 comments2 people in discussion
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!
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)
The filename, directory name, or volume label syntax is incorrect.
Latest comment: 2 years ago2 comments1 person in discussion
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)
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)
Latest comment: 2 years ago1 comment1 person in discussion
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?
Latest comment: 2 years ago1 comment1 person in discussion
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.
Latest comment: 2 years ago4 comments2 people in discussion
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
Latest comment: 2 years ago4 comments4 people in discussion
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)
Error creating thumbnail: Unable to save thumbnail to destination
Latest comment: 2 years ago8 comments2 people in discussion
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)
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)
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
Latest comment: 2 years ago4 comments3 people in discussion
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)
Please help me to not be blocked from editing my mediawiki page.
Latest comment: 2 years ago3 comments2 people in discussion
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
Latest comment: 2 years ago4 comments3 people in discussion
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).
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
Latest comment: 2 years ago1 comment1 person in discussion
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.
Latest comment: 2 years ago6 comments2 people in discussion
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)
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)