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.
Welcome to the MediaWiki Support desk. This is a place where you can ask any questions you have about installing, using or administrating the MediaWiki software.
For issues about the mediawiki.org website, report to Village Pump instead.
Ask technical questions about Wikimedia websites on meta:Tech instead.
Post a new question
To help us answer your questions, please indicate which version of MediaWiki you are using, as found on your wiki's Special:Version page:
If possible, add $wgShowExceptionDetails = true;error_reporting( -1 );ini_set( 'display_errors', 1 ); to LocalSettings.php in order to make MediaWiki show more detailed error messages.
Please include the web address (URL) to your wiki if possible. It's often easier for us to identify the source of the problem if we can see the error directly.
To start a new thread, click the box with the text "Add topic".
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 teachers must use wikiqoutes in the classroom and ho 197.188.220.41 (talk) 05:31, 1 October 2022 (UTC)
Please ask in a support forum of Wikiquote. This support desk is for MediaWiki questions only.Malyacko (talk) 08:48, 1 October 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
If I use long URLs, how do I put all articles under a "wiki" directory?
If I use long URLs, how do I put all articles under a "wiki" (/wiki/ARTICLE) directory? 2A10:8012:9:333E:3535:FE7:D027:EE66 (talk) 10:20, 1 October 2022 (UTC)
I got some guidance from the danish Wiki people, suggesting, that I put my idea here:
To whom it may concern,
I've contributed to the article on the Trachtenberg System, by adding mathematical proofs to the various methods.
I see that the page counts the number of visitors for a period of 60 days backwards.
BUT
This number will be going towards zero over time.
Hence the suggestion:
Is it possible to make a grand total count, i.e. how many visitors have come by, all time max ...
Med venlig hilsen/kind regards /René Rln2700 (talk) 12:01, 1 October 2022 (UTC)
Which wiki are we talking about? Please always add links to avoid confusion and guessing. —TheDJ (Not WMF) (talk • contribs) 14:07, 1 October 2022 (UTC)
Well, as I wrote: on the Trachtenberg System,
and as the abuse filter blocks - use the link without _
OK, so "English Wikipedia" is the wiki in question. In that case, no that is not possible. English Wikipedia (and Wikimedia wikis in general) get so much traffic that keeping track of that much pageview data in a performant way is very complex and expensive. —TheDJ (Not WMF) (talk • contribs) 18:26, 19 October 2022 (UTC)
Well, have it your way.
But it seems VERY strange to me, that an even unexperienced programmer cannot make this small count.
You may close my "ticket" then... Rln2700 (talk) 09:32, 23 October 2022 (UTC)
But there are no long term guarantees on how far back that data will be kept (currently 2015). —TheDJ (Not WMF) (talk • contribs) 11:15, 24 October 2022 (UTC)
Great, thank you! Exactly what I was looking for!! Rln2700 (talk) 15:43, 2 November 2022 (UTC)
On a historical note, early versions of MediaWiki did report the total number of pageviews at the bottom of each page. This was removed from the core functionality somewhere around 2015 (RfC discussion). It is still available as Extension:HitCounters. Flounder ceo (talk) 20:01, 4 November 2022 (UTC)
BOTS/Adding Texts to my Wiki?
Hello - I am new at this, however I think there is a bot or maybe I being hacked. How do I turn off "something" adding messages and texts to my wiki? Here is the link and what it looks like:
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.
je suis marie talon j'ai écrit le texte de ma page wikimonde en 2014 ou je ne sais plus au juste, mais j'aimerais bien pouvoir actualiser!!!! je ne vois pas comment faire de plus il manque une photo je veux bien la mettre mais je n'ai toujours pas trouvé le bouton sur lequel appuyer qui me demanderait de joindre la photo en question!! Voilamarie (talk) 09:25, 2 October 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
cirrusSearch update jobs getting into delayed queue
For some reason some cirrusSearchIncomingLinkCount jobs get delayed, the count is rising and never going down; cirrusSearchIncomingLinkCount: 0 queued; 0 claimed (0 active, 0 abandoned); 72 delayed. It is not for every page update, looks random, could not find any pattern in it. showJobs.php --list shows: cirrusSearchIncomingLinkCount page_name cluster= jobReleaseTimestamp=1664451200 namespace=0 title=page_name requestId=dd390dc412db263d9a341422 (uuid=c07b189e556d4edfa172955ea1861b30,timestamp=1664451197,attempts=) status=delayed. What might be the root cause? Search is otherwise fine. Pspviwki (talk) 11:09, 2 October 2022 (UTC)
- In Front Of Main Page Title
Hi,
When I load into my wiki from the url nedefenses.com it displays a dash in front of the page title. How do I remove this? I did not add it and it appeared after I hid the redirect message to make that page the main page. JulianMalcolm08 (talk) 01:00, 3 October 2022 (UTC)
I try upgrade my mediawiki 1.37.6 to 1.38.4 and I receive this error
Fatal error: Uncaught Wikimedia\Services\NoSuchServiceException: No such service: DBLoadBalancerFactory in /var/www/mediawiki1_38/vendor/wikimedia/services/src/ServiceContainer.php:468
I have tried to install the EasyTimeline extension so that my Wiki, Gearknob, can support timelines. It has found Ploticus, since it no longer throws up that error, but after uploading a copy of Strawberry to the FTP, it is not recognising perl.exe as an application.
The error reads as thus: "Perl could not be executed: /perl/perl/bin/perl.exe is not an executable file. Make sure $wgTimelinePerlCommand is set correctly."
The executable's directory has been set as $wgTimelinePerlCommand = "$wgResourceBasePath/perl/perl/bin/perl.exe"; in LocalSettings.php and checking this in the FTP confirms it is the perl application. Yet it is not recognising it as such. AlexGRFan97 (talk) 11:52, 3 October 2022 (UTC)
For starters, just to confirm, which operating system is your server running?
Is almost certainly wrong, as $wgResourceBasePath is a url value not a file system path (your error message also suggests that you are setting this in the wrong order and it might be uninitialized when you set wgTimelinePerlCommand). Without knowing where you put the perl binary on your server, i can't tell you what the correct value would be. Bawolff (talk) 13:18, 3 October 2022 (UTC)
The server was provided by OVH, but attempts to access it with SSH in order to identify the OS, even after checking that my account had SSH privileges, I've been unable to access it after following their guide, and have received zero technical support despite multiple correspondences, a common problem many on the provider have noted. And there's no way for me to get a refund.
Foolish on my part to have not done more proper vetting before registering my domain with them, but I'll likely move to another provider next time around which is a little more receptive.
I can provide a file tree if it'll help in regards to the second part of your response, but at this point it seems more likely I'll just use Wikipedia as a proxy to generate the timelines I require in the editor and then upload the generated image to my Wiki. AlexGRFan97 (talk) 18:10, 3 October 2022 (UTC)
The reason i asked for your OS, is it sounds like you uploaded a windows version of perl, however most web servers run linux, so that might be part of your issues. Often linux servers will have perl pre-installed, so you might want to check if that is the case (in such a case you could try $wgTimelinePerlCommand = "perl";)
As far as path goes, you just need to ensure that the path you use is whereever perl is on the system. Bawolff (talk) 22:21, 3 October 2022 (UTC)
Coolest Tool Award 2022: Call for nominations
The fourth edition of the Coolest Tool Award welcomes your nominations! What is your favorite Wikimedia related software tool? Please submit your favorite tools by October 12, 2022! The awarded projects will be announced and showcased in a virtual ceremony in December.
So, seemingly simple question: What do I need to install, and how do I need to install it, so that my locally hosted MediaWiki instance offers some way of setting text in a multicolumn layout without using HTML tables? BinUnterwegs (talk) 18:35, 3 October 2022 (UTC)
E.g. use <div style="columns: 2">put some text here</div>
Which makes:
put some text here. Here is some more text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse faucibus, massa vitae facilisis interdum, urna dolor vehicula magna, sit amet laoreet odio ex non tellus. Donec laoreet tempor erat rhoncus congue. Integer a vestibulum odio. Ut scelerisque, ipsum sed auctor finibus, massa neque maximus ante, aliquam sagittis ex enim non tellus. Pellentesque lectus turpis, malesuada vitae commodo sit amet, congue in diam. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce quam risus, interdum vitae mi ac, varius consectetur sem.
Thanks for that suggestion, but the templates seem to bring some added functionality on the table -- wouldn't I lose, e.g., the ability to add breaks at arbitrary places?
I still would prefer to try them out, so if you could provide me with pointers on installation, I'd be very grateful. BinUnterwegs (talk) 13:54, 4 October 2022 (UTC)
I'm attempting to edit a page's content by updating the underlying MySQL text table. By editing and committing this table, the new content flows through to the front end 'Edit' page but not the 'Read' page.
For example, I can append 'test str' within the MySQL text table. The appended 'test str' does not appear when refreshing a page, but DOES appear when going into edit the page on the front end. In other words, I can input changes via the SQL backend but have to commit them by hitting 'Save changes' on the front end.
I suspect I'm just missing a final step here in the underlying SQL. When 'Save changes' is executed on the front end in the normal process of updating an existing page, what SQL functionality or subprocess does this correspond to on the backend? 67.247.107.18 (talk) 19:02, 3 October 2022 (UTC)
I did not solve the issue but found an effecitve work around by first updating the old_test field in the text table within the SQL and then running $ php update.php. This doesn't answer the question above but works in my use case.
For posterity, I was not able to fund the solution for the above but I suspect it has to do with updating the content_sha1, rev_sha1 and rev_len values though the problem is likely much deeper than just correctly updating these three values. 67.247.107.18 (talk) 20:03, 3 October 2022 (UTC)
Don't do this, you're missing like 15 steps and causing potential referential integrity issues. There is a high liklihood that your wiki will break in mysterious ways later down the line.
If you need to edit from the command line, use edit.php maintenance script, or the api. If you are doing this because you need some way to redact some content, use RevDelBawolff (talk) 22:09, 3 October 2022 (UTC)
The lua binary is not executable - Internal Error (Scribunto)
Tried making a Module: page but it was refusing to let me.
[2b17c8bd0979eba08baf7dec] /index.php?title=Module:Graph&action=submit MWException: The lua binary (/var/www/html/extensions/Scribunto/includes/engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua) is not executable.
Backtrace:
from /var/www/html/extensions/Scribunto/includes/engines/LuaStandalone/LuaStandaloneInterpreter.php(97)
#42 {main} Bradcoxy (talk) 12:21, 4 October 2022 (UTC)
You should make the lua binary executable.
e.g. using ssh, run the command
chmod a+x /var/www/html/extensions/Scribunto/includes/engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/luaBawolff (talk) 17:18, 4 October 2022 (UTC)
Thank you, but I'm doing this on behalf of someone and I'm not very used to SSH, could you kindly send me some resources on how do ssh commands? Because I don't even have the app and neither does the person I'm working with. Bradcoxy (talk) 16:26, 5 October 2022 (UTC)
if you don't have ssh access, you might have a file manager app that can do the same thing.
Generally instructions for how to gain ssh access vary significantly between different web hosts and operating systems, and you would be better to consult specific documentation for your web host and OS. Bawolff (talk) 19:44, 5 October 2022 (UTC)
What is the best upgrade route from 1.16.1?
Yes, I know this is a very old version but the person that created the site left the company and no one has had the time or skills to upgrade it. We are using WAMP for the site. I have tried upgrading all the way to 1.35.6 but am running into a lot of compatibility issues so wondered if there was a version I should upgrade to first. Thank you for any assistance you can give. Mbiorn (talk) 14:16, 4 October 2022 (UTC)
What is the nature of the issues you are running into? Bawolff (talk) 17:17, 4 October 2022 (UTC)
Else, for such a very old wiki, you can try to upgrade through intermediary versions (with the corresponding set of extensions and skins), let’s say 1.23, then 1.31, then 1.35 (or 1.39 coming soon). But, according to my experience, there may be issues to be analysed and solved, and it may take some time. And before trying the upgrade, you should check if all installed extensions are still useful for you, and if they are still maintained (else search for equivalent extensions): the less there are extensions, the less there are potential issues to be solved. ~ Seb35[^_^] 11:31, 7 October 2022 (UTC)
Thumbs not shows up in Bitnami Mediawiki
Hello. I'm using localhost Bitnami Mediawiki 1.38.2-0, installed under Windows 10 x64.
After uploading an Image I can't see a thumbnails, also I can't see thumbs when using images in a pages like this *
File:File.png|left|thumb|200x200px|Caption
. But image itself opens fine when I launched it from a Special:ListFiles.
Please, help.
Here is my LocalSettings.php file. DuDexPoint (talk) 06:31, 5 October 2022 (UTC)
LocalSettings.php not found.
This file cannot be found for debugging because of an installation error.
I searched the contents of the includes and skins folders, but I couldn't find them.
You have to upload it your self, so you would probably know.
If it exists it has to be in your wiki base directory (same directory as index.php) Bawolff (talk) 14:35, 5 October 2022 (UTC)
Template with template data on subpage
RESOLVED
Transclusion works perfectly with the above solution.
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 friends,
I followed the guides for creating a simple template here.
So creating the template was quite easy even with named parameters. Then I used template data plugin to fill in some additional information about the parameters and also the standard value. Everything works great.
Then I found out that the template date should be on a subpage. So I created a subpage "MyTemplate/doc" how it was mentioned on the help article. When I go to the main Template page "MyTemplate" I get the message that the templatedata is on a subpage. Everything works great till here.
However when I go to the main TemplatePage I don't get the template with the right (standard) parameters. And when I transclude my Template somewhere no standard parameters are used.
So there should be a way to make use of the template data from the subpage on the main template page. How do I do this? I didn't find out.
Does somebody has a hint how to go on? Help is much appreciated. Thanks a lot in advance.
i think usually peopld do something like <noinclude>{{/doc}}</noinclude> to transclude the subpage on to the template. Bawolff (talk) 14:33, 5 October 2022 (UTC)
Hello Bawolff. Thanks for you kind reply and help. The solution you mentioned does work for transclusion to the templates main page.
I forgot to give the standard parameters inline. The template data only manages the documentation. Now I added the standard parameters and everything works great.
Thank you very much Fhihu (talk) 15:21, 5 October 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
Google Search Console "Mobile Usability issues detected in ..."
I run ccmdb.kuality.ca (MW1.34.8; Vector 1.0.0) and Google Search Console has notified me that I have "Mobile Usability issues detected", the top (and only) issue being "Viewport not set". As far as I know I run a standard Vector Skin, but this wiki is quite old and it's possible that some modifiers have been applied at some point. What does this error mean, and how do I troubleshoot it? Tenbergen (talk) 15:34, 5 October 2022 (UTC)
If Google states that Google detected "Mobile Usability issues" then Google can probably tell you best what Google means by that and how you can troubleshoot that.
Or maybe you could install the MobileFrontend extension. Malyacko (talk) 15:42, 5 October 2022 (UTC)
Google did tell me what it thinks is the problem: viewport not set. I googled what that means, and if I understand right it is something that would be set in the skin. Skins are complicated and vector is the standard skin, so rather than messing with it I figured I'd ask here. I realize vector is not a fully mobile skin, but was wondering if this is one of those cases where a small change (by someone who knows this stuff) could fix this, and fix it for everyone, not just me. Tenbergen (talk) 14:23, 6 October 2022 (UTC)
The standard vector skin is a desktop skin and not mobile compatible (it is not responsive). So Google got that part right:) —TheDJ (Not WMF) (talk • contribs) 10:48, 6 October 2022 (UTC)
So is setting a viewport necessarily relevant only for responsive applications? Tenbergen (talk) 14:24, 6 October 2022 (UTC)
Mystery newlines
I'm making a template, and I wanna know how are newlines added to templates and how to control them. When I use this template, a newline gets placed at the end of it.
I have this template, which is already strangely formatted due to the issue in the title, but I can't figure out where the last newline is. 185.237.158.41 (talk) 16:31, 5 October 2022 (UTC)
I haven't looked at it in detail but likely you just need to squish all everything into one line, instead of starting each if statement on a new line. Jonathan3 (talk) 21:01, 5 October 2022 (UTC)
Track connections between pages?
is there any tool that reads the connections of the pages, so that:
Is there any connection (link) between Page A and C? And if so which route is possible?
I know you can visualize it with extension: network.
Redirect from example.com/wiki/filename.ext, not just from File:Filename.ext
When a File: page is moved, e.g. File:A.jpg to File:B.jpg, you can leave a redirect behind on the old wiki page File:A.jpg.
But going to example.com/wiki/images/A.jpg will give a 404 error.
What is the best way to have example.com/wiki/images/A.jpg redirect to example.com/wiki/images/B.jpg? Jonathan3 (talk) 20:58, 5 October 2022 (UTC)
For thumbnails, enable Manual:thumb_handler.php this will take care of redirects for thumbnail urls.
For the actual full sized original images - i am less sure. You might have to write your own middleware script. WMF might be doing something with swift&varnish, but there image setup is so different it is probably not reusable. Bawolff (talk) 09:46, 6 October 2022 (UTC)
Thanks. Is there a way to use the API to find out whether there's a wiki redirect for a particular File: page? Jonathan3 (talk) 10:23, 7 October 2022 (UTC)
Yes, for local files its the same as just a normal redirect.
It would probably be more efficient to use mediawiki directly. img_auth.php is already 90% of the way there Bawolff (talk) 21:35, 7 October 2022 (UTC)
Here's what I have so far in my 404.php. At the minute I just want to deal with PDF files. I haven't looked into how to work out whether the File:filename.ext page is a redirect.
How to fix TIFF/TIF files uploading as two pages instead of one
I'm trying to test out uploading some single-paged tiff files of old documents that I scanned (I'm using PagedTiffHandler extension btw), and whenever I upload them to my wiki, they almost always show that theres two pages of the tiff file(s) that you can look that. Theres two ways that this shows, the most common being that the first page will be a grey background with an error message saying: Error creating thumbnail: File with dimensions greater than _#_ MP, with the second page being the actual tif file that I uploaded. While uploading them through UploadWizard, it shows that the thumbnail wasn't able to be created (represented by a broken file), with an error message saying:
The upload succeeded, but the server could not get a preview thumbnail.
I had asked about this stuff elsewhere, and Bawolf told me that I should modify the $wgMaxImageArea to fix the first problem, however when I even set it to even 10e7, it would still give me the issue, although a different number in MP.
The second issue that I would have is that I would do the same thing, but instead it would give me a thumbnail, but there would still be two pages, one being a duplicate of the other. The first page had this under the image: Size of this JPG preview of this TIF file: 800 × 522 pixels. Other resolution: 2,560 × 1,671 pixels. (each pixel size with their own link), and the second page being: Size of this JPG preview of this TIF file: 800 × 522 pixels.
But then theres sometimes when theres a tiff that doesn't do this, and theres just one tiff page, without duplicates or errors.
If anyone could help that'd be great, thanks. Guillaume Taillefer (talk) 02:51, 6 October 2022 (UTC)
Maybe its some sort of weird embedded preview where one page is the real image and one page is a low resolution preview, both stored in the same file. Bawolff (talk) 09:41, 6 October 2022 (UTC)
TIFF has many substandard and many of them indeed store both a small and a full version of a scan. If the small version is not properly marked in the metadata, or if the metadata is broken, or is a substandard which the MediaWiki extension doesn't understand, then you will see this second problem. —TheDJ (Not WMF) (talk • contribs) 10:45, 6 October 2022 (UTC)
Before I try and spend hours and days trying to properly install and configure exiv2 (because being on shared hosting does limit the amount of things you can do so I have to try and find a way around it), do you know if there is any way to fix these metadata issues, or get PagedTiff Handler to stop showing two different pages? Thanks Guillaume Taillefer (talk) 14:45, 7 October 2022 (UTC)
I'm doubtful your version of exiv2 is relavent to this situation. Bawolff (talk) 15:24, 7 October 2022 (UTC)
I see, that would explain the second version of the problem that I mentioned, but I am still confused as to how the first one occurs (maybe its the same exact problem as the second, but somehow the file is too big for it and therefore displays the error message. Although that I don't get either since it can rescale down the image like it does with the other things?). Maybe trying to configure exif2 or something like that will help with the double image problem due to the non-properly marked metadata. Otherwise I was maybe thinking that there was possibly a rebuildImages.php or some other maintenance script that might fix this. Guillaume Taillefer (talk) 11:06, 6 October 2022 (UTC)
What dimensions does the commandline identify program think the file is? Bawolff (talk) 19:20, 6 October 2022 (UTC)
For one of the ones with the two pages the first being an error message, it says this: Original file (8,738 × 13,457 pixels, file size: 340.82 MB, MIME type: image/tiff, 2 pages)
For the one with two pages both being the same thing but one isn't with errors it shows this:
I think this is what you were looking for but let me know if it was something else Guillaume Taillefer (talk) 20:23, 6 October 2022 (UTC)
Well the first one, image magick thinks its 2 pages, so clearly not a mediawiki issue.
Given that the image area for that image is bigger than 10e7, its not surprising that setting wgMaxImageArea to 10e7 wasnt sufficient. Bawolff (talk) 15:20, 7 October 2022 (UTC)
Ok Ill ask on ImageMagick to see if they have any answers Guillaume Taillefer (talk) 16:44, 7 October 2022 (UTC)
In the end the issue wasn't resolved, because I'm on shared hosting Guillaume Taillefer (talk) 22:39, 12 October 2022 (UTC)
How to specify which page of a pdf or other file you want to display on an article through Visual Editor
Hello, I'm trying to test out imputing pdfs and other multi-page files in the articles of my wiki through VisualEditor, and as I discovered, while clicking on the option to import a file, even though the pdf clearly has multiple pages, nowhere in the options to modify the appearance, etc does it allow you to choose which page you want to display. I found out on the PDFHandler extension page, that you have to manually go onto the source to insert the line |page=#| where the name of the file is, in order to get the specific page that you want. I tried seeing if there was the same problem on Wikipedia itself, and so I went to try it in my sandbox, and there was the same problem, that there was no option to choose what page you were displaying. Is there a way around this, where I can make it so that an option while inserting a file in the article pops up for you to choose which page to insert? Thanks Guillaume Taillefer (talk) 04:09, 6 October 2022 (UTC)
Not at this time no. If there were, it wouldn't be a problem on wikipedia itself;) —TheDJ (Not WMF) (talk • contribs) 10:43, 6 October 2022 (UTC)
Internal Error When Updating MediaWiki to latest version
Hello everyone. I updated my MediaWiki installation from 1.38.2 to latest version via Softaculous installer (which I usually do). After upgrading I ran the update script via mydomain/mw-config and my site crashed with the following error:
[f77285c945336f4a32792466] /mw-config/ Exception: Unable to open file /home/sydchako/public_html/skins/CologneBlue/skin.json: filemtime(): stat failed for /home/sydchako/public_html/skins/CologneBlue/skin.json
Backtrace:
from /home/sydchako/public_html/includes/registration/ExtensionRegistry.php(182)
#0 /home/sydchako/public_html/includes/GlobalFunctions.php(89): ExtensionRegistry->queue(string)
#1 /home/sydchako/public_html/LocalSettings.php(538): wfLoadSkin(string)
#2 /home/sydchako/public_html/includes/installer/Installer.php(695): require(string)
#3 /home/sydchako/public_html/includes/installer/WebInstallerExistingWiki.php(29): Installer::getExistingLocalSettings()
#4 /home/sydchako/public_html/includes/installer/WebInstaller.php(270): WebInstallerExistingWiki->execute()
#5 /home/sydchako/public_html/mw-config/index.php(82): WebInstaller->execute(array)
#6 /home/sydchako/public_html/mw-config/index.php(40): wfInstallerMain()
#7 {main}
I am not good at interpreting that error but I think I see something about the CologneBlue skin not found. Of course I don't have that skin because I don't use it and I don't even reference it in LocalSettings.php. Can someone help me fix that error? In the meantime I have downgraded to the previous version, which works fine.
Product Version
MediaWiki 1.38.2
PHP 7.4.30 (litespeed)
MariaDB 10.3.36-MariaDB-cll-lve
ICU 63.1
Lua 5.1.5 Sydchako (talk) 08:53, 6 October 2022 (UTC)
What is on line 538 of your LocalSettings.php? Bawolff (talk) 09:38, 6 October 2022 (UTC)
There is nothing. The last line is line 534. Sydchako (talk) 14:53, 6 October 2022 (UTC)
Are you sure you are reading the correct LocalSettings.php? Bawolff (talk) 17:04, 6 October 2022 (UTC)
Yes and the last line is $wgShowExceptionDetails = true; on 534. Couldn't this be some sort of a bug in the latest version of MediaWiki, because previous versions are working fine? Sydchako (talk) 05:44, 7 October 2022 (UTC)
The error you posted has a backtrace generated by PHP, and mentions specifically:
Can you check now if the error is the same, on the same line (538)? Maybe you changed something in LocalSettings after posting the error here causing the line numbers to not match the actual contents. Ciencia Al Poder (talk) 07:42, 7 October 2022 (UTC)
The only thing I changed after the error is that I reverted to the previous version which I had backed up. This error occurred after I had updated MediaWiki using Softaculous. Its a one-click update. I never wrote or removed anything from LocalSettings.php for more than a week now, unless if MediaWiki itself changed something there during update.
I can't reproduce the error again because I downgraded to the previous version which isn't causing the error. This error happens only when I update to the latest version. I can't update. I never touched the LocalSettings.php before or after the update.
So maybe its a mystery. Sydchako (talk) 11:09, 7 October 2022 (UTC)
I had to do this in LocalSettings.php before being able to run the update.php script for 1.39 successfully, commenting out the require_once() call:
Removing the line would also do it. In my LocalSettings.php that is line 25. 73.222.27.157 (talk) 23:26, 19 December 2022 (UTC)
use 'UserPageViewTracker' extension
I want to use the UserPageViewTracker extension on my wiki. I have manually imported the required database tables to my xampp mysql database. but still, I am getting the following errors
Original exception: [9ee8dca085d0280e93026e74] /mediawiki/index.php/Main_Page Wikimedia\Rdbms\DBUnexpectedError: The unique key array should contain a single unique index
Backtrace:
from C:\xampp\htdocs\mediawiki\includes\libs\rdbms\database\Database.php(2121)
Exception caught inside exception handler: [9ee8dca085d0280e93026e74] /mediawiki/index.php/Main_Page Wikimedia\Rdbms\DBUnexpectedError: The unique key array should contain a single unique index
Backtrace:
from C:\xampp\htdocs\mediawiki\includes\libs\rdbms\database\Database.php(2121)
any idea how can i install and use this extension? Misty-2409 (talk) 17:14, 6 October 2022 (UTC)
Sounds like a bug in the extension Bawolff (talk) 17:27, 6 October 2022 (UTC)
I want to know how long a user was on a particular page and how many times that user visited the page..is there any other extension for this purpose? Misty-2409 (talk) 19:22, 6 October 2022 (UTC)
Internal error on watchlist
Hello I am trying to Startup my wiki but whenever an admin account tries to reach special:watchlist, it says there’s an internal error
MediaWiki internal error.
——
Original exception: [82040949b775cf6b94c2561d] /index.php/Special:Watchlist 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.
Exception caught inside exception handler: [82040949b775cf6b94c2561d] /index.php/Special:Watchlist 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.
if anyone has any solutions please let me know. 213.237.86.18 (talk) 07:37, 7 October 2022 (UTC)
The error is because the Extension:ConfirmAccount is trying to access the database table Wiki_account_requests, which does not exist.
Have you installed Extension:ConfirmAccount recently? Try to run update.php from the command line, to allow extensions create their necessary tables to work. Ciencia Al Poder (talk) 07:45, 7 October 2022 (UTC)
how do I run update.php from a command line? I use cpanel.net and I’ve tried to ssh before but it didn’t work.@Ciencia Al Poder213.237.86.18 (talk) 08:10, 7 October 2022 (UTC)
how do I run update.php from a command line? I use cpanel.net and I’ve tried to ssh before but it didn’t work. 213.237.86.18 (talk) 07:51, 7 October 2022 (UTC)
Visit yourdomain/mw-config and follow the instructions given. That is how you run the update script without shell access. Sydchako (talk) 10:58, 7 October 2022 (UTC)
What didn't work? Running update.php failed (which error did you get)? or after running update.php the error still comes up? Ciencia Al Poder (talk) 08:19, 7 October 2022 (UTC)
@Ciencia Al Poder trying to ssh to command line didn’t work. my question is how do I run update.php in cpanel.net version 102.0.21? 213.237.86.18 (talk) 08:28, 7 October 2022 (UTC)
You should ask your hosting provider for support about running command line scripts from terminal.
Alternatively, look at the section "From the browser" of the update.php manual page (not recommended for large wikis). Ciencia Al Poder (talk) 09:15, 7 October 2022 (UTC)
A database query error has occurred
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I have created a brand new MediaWiki 1.38.4 install and copied a LocalSettings.php file from another website to that brand new install.
In LocalSettings.php I have changed DOMAIN_1 to DOMAIN_2 anywhere.
I then went to NEW_INSTALL/maintenance and ran
php update.php --quick
But I still get the following error when I try to access the installation wizard:
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?2A10:8012:9:333E:2CD6:3420:4209:44D7 (talk) 11:56, 7 October 2022 (UTC)
What I had to do was to delete the new LocalSettings.php, then click the somewhat elusive button to install the Wiki, and then to install MediaWiki regularly and only then copy the new LocalSettings.php file to the new website's directory. 2A10:8012:9:333E:2CD6:3420:4209:44D7 (talk) 12:14, 7 October 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
MediaWiki and Nginx - MIME type ('text/html') is not a supported stylesheet MIME type
I installed MediaWiki on Ubuntu,using Nginx as media server:
Nginx config:
server {
server_name server.example.com;
root /domains/server.example.com/htdocs;
index index.php index.html;
access_log /var/log/nginx/server.example.com-access.log main;
error_log /var/log/nginx/server.example.com.is-error.log warn;
include /etc/nginx/conf.i/serverdefaults.conf;
location ~ [^/]\.php(/|$) {
client_max_body_size 522M;
proxy_buffers 16 24k;
proxy_buffer_size 24k;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_index index.php;
fastcgi_pass unix:/etc/php/default.sock;
fastcgi_read_timeout 601;
include fastcgi_params;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires max;
}
location / {
try_files $uri $uri/ =404;
}
listen 443 ssl http2; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
server {
if ($host = server.example.com) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80;
server_name server.example.com;
return 404; # managed by Certbot
}
$wgScriptPath = "";
$wgScriptExtension = ".php"
And getting:
GET https://server.example.com/index.php?title=Workqual 404 (Not Found)
index.php:1 Refused to apply style from 'https://server.example.com/load.php?debug=false&lang=en&modules=mediawiki.legacy.commonPrint%2Cshared%7Cmediawiki.sectionAnchor%7Cmediawiki.skinning.content.externallinks%7Cmediawiki.skinning.interface%7Cskins.monobook.styles&only=styles&skin=monobook' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
index.php:12 GET https://server.example.com/load.php?debug=false&lang=en&modules=startup&only=scripts&skin=monobook net::ERR_ABORTED 500 (Internal Server Error)82.221.9.49 (talk) 13:30, 7 October 2022 (UTC)
Sounds like an issue with your short url setup. You cant redirect things going to load.php to index.php or it will break styles. Bawolff (talk) 15:13, 7 October 2022 (UTC)
Thanks Bawolff, i'm new to MediaWiki, what file i need to edit, nginx config? 178.221.182.138 (talk) 08:55, 8 October 2022 (UTC)
VisualEditor diffs translations place
Hi! I want to know where are the translations related to VisualEditor/Diffs.
Use curl or wget. There is nothing special about mediawiki in this regard.
If you want answers somewhere else you should ask there not here. Bawolff (talk) 21:33, 7 October 2022 (UTC)
Job gets stuck in claimed and active status indefinitely
One kind of job appeared in the stats and is stuck there: EchoNotificationDeleteJob: 0 queued; 1 claimed (1 active, 0 abandoned); 0 delayed. runjobs does not make it processed. MediaWiki 1.38.2. Pspviwki (talk) 08:28, 8 October 2022 (UTC)
Db Query 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.
Hello. I have a webhost by OVH. I also have a MySQL Database with 200Mb. When I try to install Mediawiki on it, it says:
"[Y0L9ZJk02TFUiext8r7F0wAAASY] /mediawiki-1.38.4/mw-config/index.php?page=Install Wikimedia\Rdbms\DBQueryError: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading or after adding a new extension?
For some reason the operating system says /static/wiki/extensions/VisualEditor/extension.json does not exist. So you have to figure out if you have the wrong path, the wrong permissions for the user, the wrong permissions overall or some sort of ACL violation. —TheDJ (Not WMF) (talk • contribs) 15:32, 10 October 2022 (UTC)
I am getting btw this error "thrown in /static/wiki/includes/registration/ExtensionRegistry.php on line 182" while reading response header from upstream" in the error log, is this helping? I have no clue KatastrophenKommando (talk) 17:43, 10 October 2022 (UTC)
Like TheDJ, I would say the file extension.json in the VisualEditor cannot be read from the point of view of the webserver (Apache, nginx…) and you have to check the permissions (you can force the permissions to the mode "664" or "-rw-rw-r--", see the explanation on English Wikipedia).
The error "ExtensionRegistry.php line 182" is not the root cause, it is the location in the code where the error is issued. If you open this file, you will see "@filemtime( $path )": MediaWiki try to read the file extension.json, but cannot, so it fails. ~ Seb35[^_^] 07:46, 11 October 2022 (UTC)
Okay thank you. I am using ngnix and i am not really sure what i could change. Do you have an idea what could be wrong setted up or where i can see it? In the logs there is only that text i posted KatastrophenKommando (talk) 06:15, 12 October 2022 (UTC)
Error contacting the Parsoid/RESTBase server: (curl error: 47) Number of redirects hit maximum
Hello I am using version 1.38.4
My wiki was stable I made a new test for the visual editor But after reverting the changes, I get the following error and I can't open the visual editor
Error contacting the Parsoid/RESTBase server: (curl error: 47) Number of redirects hit maximum
Thanks for any advice Sokote zaman (talk) 04:48, 10 October 2022 (UTC)
How to upgrade MediaWiki with Composer?
If it at all possible?
I would desire to just execute composer update inside a MediaWiki website directory and presto! have it all upgraded (LocalSettings.php, robots.txt and Google_verification_file all stay the same). 2A10:8012:9:333E:49F8:2ECC:ECD1:1090 (talk) 13:42, 10 October 2022 (UTC)
I dont think that is possible. Bawolff (talk) 16:58, 10 October 2022 (UTC)
I created Lingua Libre/SignIt page. I want to introduce the extension but I don't known the default infobox template to introduce such project, so I used {{Wikimedia engineering project information}} , but it is no appropriate either. What should I use? Yug (talk) 13:43, 10 October 2022 (UTC)
I dont think there is one. I think wikimedia engineering project is probably fine. Or just make a new infobox. Bawolff (talk) 23:36, 10 October 2022 (UTC)
For my own sanity, I would prefer not to launch myself into such adventure as forking a lua-powered template. If no alternative exist, maybe i (or someone more skilled) can tinker one of those templates so they can be more flexible. 🤔
EDIT: I added a "sponsor" parameter, a IF statement, with default result if empty falling back on current/former "Wikimedia Foundation project", but event when sponsor has a value it seems to fails, or it need some times for the Lua template edits to propagate? Dont know. I tried what i could. Help needed (review of the IF statement). Yug (talk) 10:21, 11 October 2022 (UTC)
Seems to work as expected now. Yug (talk) 10:28, 12 October 2022 (UTC)
Static Compile Wikimedia Dumps
Sorry if this is a repeat question, but I have been digging for a few hours now, and can't find anything other than stale responses from more than a few years ago.
What's currently the simplest way to get static HTML from a Wikimedia XML dump? I'm OK with running MediaWiki/other tools, as long as the output can be served from an S3-compatible bucket without a server in front of it. Previously, the tool recommended for use was DumpHTML, but that one seems to be archived. There is also a project to rip each page one-by-one, but that would take forever(and would probably be a burden on the servers). And if it isn't possible, that's ok. HelloImAlastair (talk) 20:59, 10 October 2022 (UTC)
Probably mediawiki followed by just downloading each page. However that's far from simple because you need to replicate wikimedia config.
I would suggest maybe using a kiwix zim file, depending on your usecase. Bawolff (talk) 23:34, 10 October 2022 (UTC)
Is there a way to convert a ZIM file to regular HTML, that is viewable in a browser without a special app? Trying to create a Proof-of-Concept for a file storage system by mirroring the entire Wiki onto it. It doesn't have to have all of the functionality, just a static page with content and links would be fine. HelloImAlastair (talk) 16:13, 11 October 2022 (UTC)
How do I modify/change the tutorial section on UploadWizard?
How would I be able to modify the tutorial image that is displayed at the beginning of the upload process? I want to display other instructions/tutorial on Uploading files to my wiki, and plus it says "What can I upload to Wikimedia Commons", which my site is of course not wikimedia commons. Which file and variable(s) do I have to modify that gives the content of the tutorial section (in this case it being the tutorial image)? Thanks Guillaume Taillefer (talk) 23:05, 10 October 2022 (UTC)
i think something like
$wgUploadWizardConfig["tutorial"] = [ ... settings here ];
How would I go about replacing "Licensing_tutorial_$1.svg" in the template option to the contents of a page on my wiki? Guillaume Taillefer (talk) 00:22, 11 October 2022 (UTC)
(as a test its not going to be the Main Page but I will create the page for the tutorial) and when I went to upload wizard's tutorial section, it gave me this error:
Sorry, we could not find any files for the tutorial that is supposed to go here. Please contact the system administrators.Guillaume Taillefer (talk) 00:44, 11 October 2022 (UTC)
Assuming you have a file on your wiki named fileNameHere.svg.
(I dont really know if you can specify just template or need the other keys of tutorial as well) Bawolff (talk) 01:29, 11 October 2022 (UTC)
Is there any way that I could get around the fact that I have to use Licensing_tutorial_$1.svg for template? Guillaume Taillefer (talk) 03:31, 11 October 2022 (UTC)
You do not have to use that as the template. You can use any filename you want. Bawolff (talk) 05:05, 11 October 2022 (UTC)
Then how do I display the content of a page on my wiki through the wgUploadWizardConfig = ['tutorial' => ['template' => "wikipage"]];? I tried putting the names of one of my files (File:2ndhhhhhhhhhh.pdf) into the "wikipage" value, and it came up with the image of the file. However when I try to do the same for a normal page with content, such as Main Page, it doesnt work. I tried all of these with another page than Main page, but I tried "Main Page", "Main_Page", "Page:Main_Page" and "Page:Main Page", but they don't work in showing the content of the page Guillaume Taillefer (talk) 05:33, 11 October 2022 (UTC)
You cannot show a page, you have to use an image. Bawolff (talk) 16:30, 11 October 2022 (UTC)
Is it possible to make an image a clickable link which will bring them to the page I wanted to show in question? I see that you are able to do it through wikicode, but I don't know if you can do it in normal php Guillaume Taillefer (talk) 16:34, 11 October 2022 (UTC)
I've tried through html way of doing it (img tag enclosed in a tags), but it seems that UploadWizard doesn't recognize it, and gives the same error when using it. If there is a way to do it other than the html and wikicode methods, I wouldn't know of it. Otherwise, is there a way for me to instead try to modify one of the other files to make it display a link, and maybe either have an image displaying a screen capture of the page or an image with a message saying to click the link? Thanks Guillaume Taillefer (talk) 23:11, 12 October 2022 (UTC)
Images show as link instead after upgrade
RESOLVED
Images are working again, Appreciate the quick response
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 upgraded from a really old version 1.14.1 to 1.38.4 - I was able to do a xmldump in the old version and import xml then import the images and things are looking better.
However, on every page there is an image I get a link instead of the image.
If I edit/save the page it shows the image. I cant edit 8000 pages. is there a way to fix?
Image code on the pages are Image:filename.png
should this somehow be switched to File:filename.png?
I've done the rebuildall,fiximages,rebuildimages,refreshLinks, cleanupUsersWithNoId,
refreshLinks.php should probably fix that. If not that, make a small edit to LocalSettings.php (e.g. add an extra space somewhere) Bawolff (talk) 00:14, 11 October 2022 (UTC)
thanks, I reran the refreshLinks.php and made an edit in the LocalSettings.php and somehow its working. Itechmandan (talk) 11:55, 11 October 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
Error contacting the Parsoid/RESTBase server: (curl error: 28) Timeout was reached
Using nginx Deny/Allow to prevent access from non-corporate IPs results in error
Hello,
we are using deny/allow ruleset of our webserver to prevent IP adreses from outside our organisation from accessing the MediaWiki. The default functions of preventing reading and creating accounts is actually not enough for use.
So, If using the visual editor to edit something we get the error "error contacting the Parsoid/RESTBase server HTTP 403"
Does anyone have an idea?
Thanks a lot in advance! Magent (talk) 13:19, 11 October 2022 (UTC)
Are you blocking 127.0.0.1 (or::1)? Bawolff (talk) 16:28, 11 October 2022 (UTC)
Hi, I'm not blocking local hosts. Magent (talk) 07:35, 12 October 2022 (UTC)
any idea? :D Magent (talk) 15:09, 14 October 2022 (UTC)
Kaktovik web font
Is this the place to discuss web fonts?
We have a CC font that includes the Kaktovik numeral block that was just added to Unicode. The glyphs are the ones used for the Unicode proposal. I can trim it down to just the Kaktovik block, if that's something we could use here.
Don't know if I'll be notified on WP-en if you ping me here... Kwamikagami (talk) 19:41, 11 October 2022 (UTC)
Thanks (and yes, the ping went through, even though I have a separate sign-in here) Kwamikagami (talk) 22:11, 11 October 2022 (UTC)
There's been some discussion on Phabricator, but the project is still open. T320581. The font has been uploaded, but deploying it is beyond my skill level. If anyone here would like to help out, I'd appreciate it. It would be nice for the Iñupiat community for this to display properly. Kwamikagami (talk) 21:11, 18 March 2023 (UTC)
Indeed, but presumably there are people here who are capable of installing a web font. Kwamikagami (talk) 08:40, 19 March 2023 (UTC)
Maybe there are also people in the supermarket who can install a web font.:) My point is that forumshopping usually doesn't help much... Malyacko (talk) 10:59, 19 March 2023 (UTC)
Having an error with Hatnotes, Lua error
It doesn't seem like the module for hatnotes are up on the dev wiki, so we tried using Wikipedia's Module:Hatnotes and Template:Hatnotes, and any time a Hatnote is called, this error happens:
Lua error in package.lua at line 80: module 'Module:Arguments' not found.
Is there an alternative way to get functioning hatnotes, or fix this problem? Help would be much appreciated. 207.47.225.186 (talk) 00:25, 12 October 2022 (UTC)
You also need all the modules that hatnotes use.
I suggest using w:Special:Export with include templates checkbox checked. Bawolff (talk) 00:59, 12 October 2022 (UTC)
VisualEditor and other extensions get HTTP 403 Error
RESOLVED
I have found the solution. I was supposed to change "-le-ssl.conf" file instead of the normal one.
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.
Hey there I have been trying to fix this issue for a while.
I cant get VisualEditor to work. It says "Server returned error: HTTP 403".
Also other extensions do not work. SimpleBatchUpload extension returns "(filename.png) ERROR: Could not get token."
Thus i assumed it has something to do permission. I have tried setting chmod to 777, that did not help.
These are my permissions atm.
chown -R www-data:www-data /var/www/
chmod -R 775 /var/www/
I am using certbot for https. It is also set to "redirect". This is my config file:
<VirtualHost *:80>
ServerAdmin admin@brotato.wiki.spellsandguns.com
DocumentRoot /var/www/html/brotato.wiki/
ServerName brotato.wiki.spellsandguns.com
<Directory /var/www/html/brotato.wiki/>
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
<Directory "/var/www/html/brotato.wiki/images">
# Ignore .htaccess files
AllowOverride None
# Serve HTML as plaintext, don't execute SHTML
AddType text/plain .html .htm .shtml .phtml
# Don't run arbitrary PHP code.
php_admin_flag engine off
# If you've other scripting languages, disable them too.
</Directory>
<Files "/var/www/html/brotato.wiki/api.php">
Require all granted
Order allow,deny
Allow from all
</Files>
<Directory "/var/www/html/brotato.wiki/api.php">
Require all granted
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/brotato.wiki_error
CustomLog /var/log/apache2/brotato.wiki_access common
RewriteEngine on
RewriteCond %{SERVER_NAME} =brotato.wiki.spellsandguns.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
Here is my .htaccess:
# Create Short URLs
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?title=$1 [NC,L,QSA]
# END Create Short URLs
Error in apache error log:
AH01630: client denied by server configuration: /var/www/html/brotato.wiki/api.php
Is there a way to fix this problem? Help would be much appreciated. Ta11ha (talk) 03:39, 12 October 2022 (UTC)
Have you checked that api.php on disk has the correct file permissions? —TheDJ (Not WMF) (talk • contribs) 10:22, 12 October 2022 (UTC)
Solved the problem. I was supposed to change the "-le-ssl.conf" file instead of the normal one. As certbot was using the -le-ssl.conf my changes on the normal one was not affecting the website. Ta11ha (talk) 11:46, 12 October 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
Fatal error: Uncaught Exception: Unable to open file /home/allajwzo/wiki.allan.network/extensions/MobileFrontend/extension.json: filemtime(): stat failed for /home/allajwzo/wiki.allan.network/extensions/MobileFrontend/extension.json in /home/allajwzo/wiki.allan.network/includes/registration/ExtensionRegistry.php:182 Stack trace: #0 /home/allajwzo/wiki.allan.network/includes/GlobalFunctions.php(52): ExtensionRegistry->queue('/home/allajwzo/...') #1 /home/allajwzo/wiki.allan.network/LocalSettings.php(200): wfLoadExtension('MobileFrontend') #2 /home/allajwzo/wiki.allan.network/includes/Setup.php(204): require_once('/home/allajwzo/...') #3 /home/allajwzo/wiki.allan.network/includes/WebStart.php(93): require_once('/home/allajwzo/...') #4 /home/allajwzo/wiki.allan.network/index.php(44): require('/home/allajwzo/...') #5 {main} thrown in /home/allajwzo/wiki.allan.network/includes/registration/ExtensionRegistry.php on line 182213.237.84.228 (talk) 05:24, 13 October 2022 (UTC)
Error means you need to install MobileFrontend extension.
You might also try using a newer version of mediawiki. I dont believe recent versions of minerva depend on mobilefrontend anymore. Bawolff (talk) 05:39, 13 October 2022 (UTC)
@Bawolff I have mobilefronted installed and my version is 1.38.4 213.237.84.228 (talk) 14:40, 13 October 2022 (UTC)
While the error message you are posting says otherwise. Bawolff (talk) 15:57, 13 October 2022 (UTC)
@Bawolff its really confusing since I have the extensions in my extensions/ folder 185.85.44.156 (talk) 05:59, 14 October 2022 (UTC)
Are you exactly sure that the folder for MobileFrontend in the extensions folder is exactly called "MobileFrontend"? Because sometimes when you are installing extensions the actual folder is a slightly different name from the name of the extension. Often times when this happens you get something like "MobileFrontend-main" or something like that, instead of "MobileFrontend". To fix this, either change the name of the folder to "MobileFrontend" or change the wfLoadExtension('MobileFrontend'); to wfLoadExtension('MobileFrontend-main'); or whatever the name of the folder in the extensions folder is. Or maybe you didn't Unzip the file? Guillaume Taillefer (talk) 23:26, 17 October 2022 (UTC)
The revision # of the page named "Name of Page" does not exist. This is usually caused by following an outdated history link to a page that has been deleted. Details can be found in the deletion log.
Hi I have inherited a wiki and was doing a couple of updates through Installatron cPanel, the first one 1.27 to 1.30 went fine but when I tried to go to 1.31 I am now getting the above error on all pages.
I tried to restore from the backup I did prior to the updates but get the same error and when I try and log into the wiki from the page but won’t allow any logins either and I'm unsure of how to get into the wiki backend via terminal using cPanel.
My knowledge of wiki is limited so I am at a loss of what to do next, any help would be appreciated. Tyler1478 (talk) 01:29, 13 October 2022 (UTC)
This is typically caused by something going wrong with the schema update for either the comments table or the actor table (more typically the latter)
Extension only works after altering LocalSettings.php
I'm currently using ApprovedRevs hoping to accomplish that when a registered user creates a page the page show blank content until an admin approves the edit. However after playing with ApprovedRevs for a while, I noticed that the unapproved page only becomes blank after adjusting the php file (e.g., adding a comment, disabling a extension, changing any minor detail). Currently a registered user and non-registered user can view the contents of an unapproved page unless I alter the LocalSettings.php. I've checked with the developer of ApprovedRevs, and he confirmed the setting of ApprovedRevs is valid, the compatibility of mediawiki (1.38.2) and ApprovedRevs(1.7.3), and other extensions were not interferring with the ApprovedRevs.
Can anyone shed some light on this situation? Any comment or suggestion are welcome and very much appriciated! Ay2014 (talk) 06:31, 13 October 2022 (UTC)
Editing localsettings clears all cache, so it might be a cache issue. I would check if the Job queue is working properly Bawolff (talk) 22:02, 13 October 2022 (UTC)
@Bawolff Thanks for the tip! I read the Job queue webpage throughly, but I'm not sure if I understand what it meant to convey. Most of the solutions seems to be creating a bash script of some sort, but there isn't a file in mediawiki I should check. So clearly there's a cache issue but if there a setting in one of the file in mediawiki I should check specifically or just my server in general? Ay2014 (talk) 03:32, 18 October 2022 (UTC)
Jobs are related to clearing cache in mediawiki. If something is going wrong with them it might manifest as pages showing old versions. Its just something to check - there might be nothing wrong with your jobs.
Generally you can check the current status by running showJobs.php --group from the commandline.
$wgJobRunRate controls how fast jobs are processed via the web. If your wiki is making jobs faster than they are being processed, you can either increase that value, or use a commandline script to run jobs. Bawolff (talk) 05:05, 18 October 2022 (UTC)
So I tried messing around with the value of $wgJobRunRate and nothing changes.
Currently I'm using cron job to substitute but I still hope to overcome this issue Ay2014 (talk) 06:21, 18 October 2022 (UTC)
How do I log into Encyclopedia Dramatica
I tried to log into the site but they won't let me. I even went to reset my password. But I have to wait 24 hours.
How can I get editing on the site without problems? Tommypezmaster90 (talk) 03:56, 14 October 2022 (UTC)
You would have to contact an ED admin. We can only answer general questions about mediawiki, not stuff specific to the running of a specific wiki Bawolff (talk) 06:36, 14 October 2022 (UTC)
Error contacting the Parsoid/RESTBase server: (curl error: 28) Timeout was reached
I know this has been discussed several times, but I can't seem to find an answer that resolves my issue.
I have an install of MediaWiki on an Intranet, I am trying to create a Wiki farm with multiple Wikis. Using the setup detailed below allows me to get into the Visual Editor, but it is just a blank screen. When I try and save the page it comes with the error::
Error contacting the Parsoid/RESTBase server: (curl error: 28) Timeout was reached
Hi All, I'm still having this issue with Parsoid/VE. I think it may be something to do with the rest.php.
I should point out, I am using a Wiki farm/family. This is one of the, what I call them, "fields". This is in a directory where the files are symbolic links.
I have changed the LocalSettings.php code detailed above to:
Now, when I try and edit using Visual Editor I just get:
Blank error
When I comment out $wgVisualEditorFullRestbaseURL = 'https://domain.com/field1/rest.php'; I get:
Curl error 22
When I try and open a URL with the rest.php, I get:
Error connecting to restbase
I have just tested this on a non Wiki farm Wiki, the rest.php did what I would expect, but I still have the same errors.
Obviously, this looks like something isn't quite right.
Does the RESTBase Api require a port open for it to work as detailed in RESTBase/Installation. This looks like it is still referring to the old JS Parsoid rather than PHP.
Any help is appreciated. Squeak24 (talk) 17:34, 3 November 2022 (UTC)
After looking into this during the week, and some other issues I have been experiencing, I think I may know the issue. Just a question on how to resolve it.
Basically, the server can't "see" itself. The server is on an Intranet, it's only computer connected to the local intranet that can see it. The server is not one of those computers, hence I think that's the issue. I have tried adding the URL to the 127.0.0.1 in the hosts file, but it having a bit of an issue seeing it due to the https://
Hopefully I can speak with some of the server devs next week to see how we can overcome this. Squeak24 (talk) 16:55, 11 November 2022 (UTC)
After doing some debugging with one our developers this morning, we think we may know what the issue is.
Another issue I have encountered, not sure if this is the same as this issue. I have some raw HTML on some pages, that is coming up with a 403 error. Squeak24 (talk) 17:36, 15 November 2022 (UTC)
Subfolders of "images" directory
MW 1.35.7
Howdy,
here's a question that I hope is rather easy for you. Our images directory is pretty big, 25 GB by now. There are some subfolders:
archive 1.3 GB and deleted 438 MB, what is the difference?
Archive is old versions of images that are still viewable in image history. Deleted are deleted images not generally viewable except by admins.
If you have 404 handling enabled, then its safe to delete things in thumb because they would be regenerated on the fly as needed. Bawolff (talk) 16:13, 14 October 2022 (UTC)
1.38
I use NamespaceHTML to place a background image on a page via a template & I thought it was not showing at all until I logged out. Checked it on multiple browsers & it's always the same: it will show, but only if one is not logged in. Any thoughts?
@
I checked this with raw html set to true & background image shows up. Definitely got to be an issue with the extension. Thanks for any thoughts you may have. All the best Christharp (talk) 19:51, 15 October 2022 (UTC)
Thanks for the bug report. I'd recommend creating a Phabricator issue for it with steps to reproduce. MediaWiki 1.38 is not officially supported since it is not LTS, but we'll likely do some updates for 1.39 compatibility that may resolve this issue. If you need an immediate fix, please contact WikiTeq. Ike Hecht 21:03, 16 October 2022 (UTC)
Adding Header and Footer on Each Page of Generated PDF
I would like users to have a header and footer in the PDFs they generate for sharing to users who do not have access to the MW instance I am running.
Right now I am using the Mediawiki header footer extensions but it only appends the Header on the first page of PDF and on the last page of PDF. The pages in the middle do not have the header or footer.
Any ideas about how to implement this? 154.118.155.57 (talk) 16:46, 14 October 2022 (UTC)
Unfortunately, print style sheets that allow you to target per page things like footer and header, don’t yet really exist, other than in a few tweaked proprietary systems. So this is not yet technically possible —TheDJ (Not WMF) (talk • contribs) 15:35, 15 October 2022 (UTC)
I'm not sure there is a good solution here. I think some people reccomend using position: fixed in a print stylesheet (mediawiki:print.css) but there are complications to making that work. Bawolff (talk) 02:08, 15 October 2022 (UTC)
@Bawolff do you have a lead to such an attempt at the implementation? 154.118.155.57 (talk) 10:34, 17 October 2022 (UTC)
Hi @Bawolff, thank you for the links. However none of the methods highlighted has worked for. I inserted the code below to my Mediawiki:common.css and I also tried it in the MediaWiki:Print.css. I have installed Extension:Header Footer that supplies the top notice as top-notice and bottom-notice as the bottom one. So I supplied these two divs to the css file but when I print it does not repeat on each pdf page
That's not the class name used by the extension, also there was more to it then that in the link.
Ultimately i think TheDJ has the more correct answer. Bawolff (talk) 09:20, 19 October 2022 (UTC)
Error contacting the Parsoid/RESTBase server: (curl error: 6) Couldn't resolve host name
I have installed mediawiki but for a strange reason there is a problem with visualeditor (I don't know if it is from parsoid) when I edit an existing page with the visual editor I get the following error:
Error contacting the Parsoid/RESTBase server: (curl error: 6) Couldn't resolve host name
I don't know if the problem comes from parsoid or from the visual editor but I have been trying various configurations and I don't know what is happening, any idea what is happening?
my configuration:
Fatal error: Maximum execution time of 120 seconds exceeded when importing
When i try to import xml files, specifically wikipedia infoboxes, sometimes i get
Fatal error: Maximum execution time of 120 seconds exceeded in D:\wamp\www\wiki\extensions\Scribunto\includes\engines\LuaCommon\LuaEngine.php on line 560
Now, i checked Project:Support desk/Flow/2016/08#h-Fatal_error:_Maximum_execution_time_of_120_seconds_exceeded..._(importing_pages)-2016-08-08T13:35:00.000Z and Project:Support desk/Flow/2016/04#h-Error-2016-04-27T04:38:00.000Z, and
The web server (i run wamp 64 bit on my pc, its not an ideal setup but works) isnt taking up a lot of cpu, memory or disk (i still have 80% memory, cpu free - everything on my pc uses like 20% of it), and i checked event viewer and i cant see any errors from wamp, apache, php, mariadb or anything else.
Is there a way to fix this, or, enough for me, turn off or extend the 120 second limit for importing files? Tobawiki (talk) 14:04, 15 October 2022 (UTC)
Often ensuring you have cache enabled (e.g. apcu. See manual:$wgMainCacheType) can make things take much less time. Bawolff (talk) 17:34, 15 October 2022 (UTC)
Great, i tried importDump.php and it imported the pages (at least thats what it said), but now that i have done that, if i go to the Template:Infobox (and other pages) i get
Fatal error: Maximum execution time of 120 seconds exceeded in D:\wamp\www\wiki\extensions\Scribunto\includes\engines\LuaStandalone\LuaStandaloneInterpreter.php on line 465
again. I ran the mainenance scripts i should have after running importDump, even rebuildall, restarted it like 10 times i cant fix it.
So help please? Ill try to get APCU up and running to speed it up, although again apache or anything isnt using anything more than 5% cpu and memory so i that is propably overkill. Tobawiki (talk) 15:34, 17 October 2022 (UTC)
You could also try using luasandbox php extension, but that is hard to setup on windows, and probably not as important as apcu.
the item in your php.ini to change is max_execution_time. Bawolff (talk) 15:39, 17 October 2022 (UTC)
If i go to the Template:Infobox page after importing everything,
Fatal error: Maximum execution time of 120 seconds exceeded in D:\wamp\www\wiki\extensions\Scribunto\includes\engines\LuaStandalone\LuaStandaloneInterpreter.php on line 465
i cant fix it, i have like 80 articles, ill export everything, reinstall everything maybe that will fix it but id still like to know why i cant open the Template:Infobox page Tobawiki (talk) 16:37, 17 October 2022 (UTC)
it seems unlikely that reinstalling everything will fix your problem if you dont fix the underlying issue. Bawolff (talk) 16:44, 17 October 2022 (UTC)
Yeah, I'm just desperate. Thanks for all the help so far Tobawiki (talk) 18:32, 17 October 2022 (UTC)
How can I make the password change available in ldap stack+active directory?
How can I make the password change available in ldap stack+active directory? Launchpad555 (talk) 10:00, 16 October 2022 (UTC)
Please see "Post a new question" in the sidebar, plus provide sufficient context. Malyacko (talk) 14:54, 16 October 2022 (UTC)
Prohibited from posting a reply due to "linkspam"
I can't post a reply with a solution to a problem (Visual Editor crashing) which has been posted here and discussed for two months.
The link:
Extension talk:VisualEditor/2020#h-Maybe_they'll_fix_it-2020-10-02T19:05:00.000Z
My explanation and solution(s):
http://paste.debian.net/plainh/1c6a1af0 (made new paste with more information)
Posting it gets me: ⧼abusefilter-warning-linkspam⧽. This is nonsense.
Please help, all my work would be such a waste of time if I can't even share my solution. Oberman23 (talk) 06:40, 17 October 2022 (UTC)
Post the link without the http part. That should get you past the spam filter, and i can edit the post after to turn the link back into a link. Bawolff (talk) 06:58, 17 October 2022 (UTC)
Project:Support desk/Flow/2022/10 not working correctly in sidebar
When I try to use {{FULLPAGENAME}} within my MediaWiki:Sidebar, it seems to always return the page name of the main page instead of the page you are currently on. Is there a way to fix this? Tajoshu (talk) 08:07, 17 October 2022 (UTC)
I dont know if that is suported in modern mediawiki. In older mediawiki you had to make sure $wgEnableSidebarCache was false (its default) Bawolff (talk) 19:23, 17 October 2022 (UTC)
How to create a button for a page that will add a user to a certain User Group
Hello, I'm trying to implement a "style guide" and editor rule set to my wiki that I want to make users read it in order to have edit access to the wiki. I know that trying to do a whole questioning process will take a lot of programming and time I don't want to spend on, so I decided that I should instead at the bottom have a button that says that they agree to follow the rules of being an editor, and that they are ready to be one. When they click this button, they will be added to the User Group "Editor" that I created. I know that this wouldn't be an easy process, and requires me to do some php, which I'm willing to do, I just don't know exactly the variables, includes, functions, etc that I would need to use to do this, or how or where to put my code, etc.
Ideally I would like to do this on a page with the namespace holding the name of the wiki (like the Wikipedia namespace on Wikipedia). Thanks Guillaume Taillefer (talk) 23:18, 17 October 2022 (UTC)
Most people implement this sort of thing as an ectra page in the create account process (see AuthManager but i think there are also pre-existing extensions you might be able to use or adapt)
Doing it as a separate page is harder. You would probably have to create an api module (API:Extensions) to do the backend step, decide whether you want this to be a real or implicit group (i.e. like $wgAutopromote). Alternatively you could skip the custom api module and use $wgGroupsAddToSelf and the builtin user group management backend - API:User group membership. You also have to create a ResourceLoader module to create the button on the page (see OOUI) and do sone sort of ajax thing (mediawiki.api) that hits the api. Bawolff (talk) 21:09, 18 October 2022 (UTC)
Ok thanks so much! I'll take a look through this stuff Guillaume Taillefer (talk) 22:20, 18 October 2022 (UTC)
Our application uses Wiki and it's hosted on LINUX server. We are getting vulnerabilities warning from our Org to Upgrade it .Request You to please guide .
Our application uses Wiki and it's hosted on LINUX server. We are getting vulnerabilities warning from our Org to Upgrade it .Request You to please guide .
Which version We should upgrade; Is there any documentation? 149.111.30.128 (talk) 05:36, 18 October 2022 (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.
I need to recover a few deleted pages but I don't know their exact names.
Is there a list of deleted pages? 2A10:8012:21:2E67:6C88:7F88:CB8B:D544 (talk) 07:35, 18 October 2022 (UTC)
Special:log/delete lists page deletions.
Special:undelete has a search box.
Special:DeletedContributions can show you deleted pages edited by a specific user. Bawolff (talk) 09:18, 18 October 2022 (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.
A database query error has occurred. This may indicate a bug in the software.
[6e52aecb-0455-485b-860d-d288f6e92e04] 2022-10-18 08:46:28: Fatal exception of type "Wikimedia\Rdbms\DBQueryError"
at 10:47 am FR time on logon page when trying to enter . not reproductible.
Christian 🇫🇷 FR (talk) 08:51, 18 October 2022 (UTC)
Is this for a wikimedia wiki or your own wiki?
If your own wiki, please set $wgShowExceptionDetails=true; Bawolff (talk) 09:11, 18 October 2022 (UTC)
Standard wikimedia logon panel , for me to continue translations. May be transitional state. None owned Wiki. Christian 🇫🇷 FR 🚨 (talk) 09:23, 18 October 2022 (UTC)
Which exact website (full URL) is this about? Please always provide sufficient context - thanks! Malyacko (talk) 12:43, 18 October 2022 (UTC)
but I dont know the end since history is no longer accessible. Sure it was the last request Special:... when I disconnected yesterday.
Just ignore since it is the first time this occurs. Christian 🇫🇷 FR 🚨 (talk) 13:07, 18 October 2022 (UTC)
Looked up error, it was:
[6e52aecb-0455-485b-860d-d288f6e92e04] /w/index.php?returnto=MediaWiki&title=Special:UserLogin Wikimedia\Rdbms\DBQueryError: Error 1054: Unknown column 'cuc_private' in 'field list' Function: MediaWiki\CheckUser\Hooks::onAuthManagerLoginAuthenticateAudit Query: INSERT INTO `cu_changes` (cuc_page_id,cuc_namespace,cuc_minor,cuc_title,cuc_user,cuc_user_text,cuc_actiontext,cuc_comment,cuc_this_oldid,cuc_last_oldid,cuc_type,cuc_timestamp,cuc_ip,cuc_ip_hex,cuc_xff,cuc_xff_hex,cuc_agent,cuc_private,cuc_actor) VALUES... [rest omitted for privacy]
So looks like someone merged a patch before running the schema update, or something of that nature, although i don't see any patches that seem obviously at fault Bawolff (talk) 03:55, 19 October 2022 (UTC)
DROP trigger trigername; Bawolff (talk) 21:00, 18 October 2022 (UTC)
Yeah, thanks a lot for this. It helped. From phpmyadmin, I just went to the Triggers tab on the 'page' table and deleted them all (they were inserted by ACL). Thanks again. Airammontessori (talk) 15:35, 24 October 2022 (UTC)
Overzealous slur filter
Hi, I made a lengthy edit earlier (took me about 2 hours as I was incredibly bored and had nothing else to do) on a page and apparently there is a slur in my edit (there's not) so I was wondering if I could see a slur list or something like that to see where the "slur" is. Ihaveanaccountalreadylol (talk) 10:37, 18 October 2022 (UTC)
Hi, please elaborate what exactly happened and what makes you think so and which website this is about. See also "Post a new question" in the sidebar. Thanks. Malyacko (talk) 12:42, 18 October 2022 (UTC)
Oh sorry. Well I logged out by mistake and lost my edit anyway. Thx for responding Ihaveanaccountalreadylol (talk) 13:48, 18 October 2022 (UTC)
Note the admin on the site in question can recover edits that were flagged by AbuseFilter. I just checked, No edits on this wiki (mediawiki.org) by Ihaveanaccountalreadylol were flagged, so its likely a different wiki where the issue was. We do help for all the wikis, but you have to talk to the original wiki for anything that is site specific. Bawolff (talk) 20:58, 18 October 2022 (UTC)
Can't log in after firmware upgrade
Hello. I upgraded to latest firmware and now can't login either with default or the password that I changed to for 'admin' user. How do I fix this? Cheers, Mark Mdamara (talk) 15:36, 18 October 2022 (UTC)
There is no firmware in MediaWiki. Please see the sidebar - thanks. Malyacko (talk) 19:02, 18 October 2022 (UTC)
Server Capacity
Hi,
This wiki https://rpm.rcabc.org/index.php is taking up almost 5GB of space on the server and we're looking for best practices to clean out the bloat and trim it to what's actually there. Prob less than 1GB.
We've started doing delete, undelete and killing tons of revisions and have removed much of the archives. Is there a 'best practices' SOG's documentation that you can direct me to?
Thank you.
rudy Roodee2gmail (talk) 23:05, 18 October 2022 (UTC)
So first off, i would suggest trying to measure the sizes of all db tables so you can make informed decisions as to what to optimize.
A big thing to do is enable $wgCompressRevisions to use gzip on page text. There is also compressOld.php which may offer better compression ratios (im not sure how well its tested on modern mediawiki though, make a backup first).
The other common thing is the objectcache table. If you dont have a cache like apcu enabled, stuff gets cached here. You may want to consider enabling an object cache like apcu for $wgMainCacheType if you dont already. You can also delete the stuff from the object cache table. Most of its contents are assumed to be ephemeral and deletable at any time (some of its contents might cause minor issues if deleted, like logging users out, but not serious issues). Bawolff (talk) 03:38, 19 October 2022 (UTC)
Install the StopForumSpam extension to block known spammer IPs. the solution to my problem? 207.195.120.208 (talk) 07:06, 20 October 2022 (UTC)
Try to set up something with the Extension:ConfirmEdit, this is a pretty common situation (I've had it happen before they're extremely annoying), but sometimes they're prepared for some of this stuff so what I did was a QuestyCaptcha with some more uncommon knowledge questions. Every once in a while try to change it (because sometimes it can get cracked). What I did as well was setting out exactly what questions I was going to do, and copied all the code down. Then I completely wiped MediaWiki off the server, and then reinstalled it. Right when I did I immediately put the code into LocalSettings.php and saved it. Hope that helped Guillaume Taillefer (talk) 22:37, 21 October 2022 (UTC)
MediaWiki on IIS SSL renewal
I am an infrastructure person but inherited our wiki server due to an employee departure. Recently renewed our SSL certificate and have it loaded into IIS. Was told by departed employee that is all that was needed to be done. However, the website fails to see the new certificate. Any help is appreciated. Thanks. ACIwiki (talk) 23:41, 20 October 2022 (UTC)
This doesn't sound like a MediaWiki question as certificates are handled at the layer below mediawiki. Have you tried asking at an IIS forum? Bawolff (talk) 00:59, 21 October 2022 (UTC)
My thought exactly. Everything is good on the IIS side and other sites using the SAN certificate are working fine. Thanks. ACIwiki (talk) 19:37, 24 October 2022 (UTC)
translate: ambigous list of parameters when hyphen is present in the message
انا اترجم هذه الصفحة لاول مرة ويظهر لي خطأ في المراجع احتاج مساعده Aziza2022oct (talk) 08:33, 21 October 2022 (UTC)
title=User: Error 404
Just got started with MediaWiki and everything seems to be working fine except my user pages. If i go to any user page im getting a error 404. CredenceHamby (talk) 10:49, 21 October 2022 (UTC)
Which webserver software are you using? IIS for example may have trouble with colons in titles. Ciencia Al Poder (talk) 10:54, 21 October 2022 (UTC)
Maybe a sign that there is something wrong with rewrite rules Bawolff (talk) 17:49, 21 October 2022 (UTC)
Have tried it with and without rewrite rules and its only the user pages giving a 404. 173.190.155.80 (talk) 23:35, 21 October 2022 (UTC)
It could be a lot of things. We would really need more details (What does your server config look like? What type of 404 page do you get [one generated by the webserver or one by mediawiki]? Does it happen to only user pages, or does it happen to other pages with a colon in them? Bawolff (talk) 01:35, 22 October 2022 (UTC)
Creating a no exact match page
RESOLVED
Use mediawiki:search-nonefound
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.
If you are an interfaceadmin create it just like any other page. Bawolff (talk) 17:49, 21 October 2022 (UTC)
I did create it and added some content, but it is not displayed when there is no match. Spiros71 (talk) 07:25, 22 October 2022 (UTC)
Maybe the name got changed to mediawiki:search-nonefound? Bawolff (talk) 06:43, 24 October 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
Is there a way to have parts of a template editable in visual editor?
Im trying to use the poem extension, the only problem is is that poem doesn't have an option in visual editor. Instead I had an idea to put it in a template to use. I was thinking of creating one template that has one poem box that is editable, and another that has two boxes next to each other, each one being editable on their own (in visual editor). I checked the documentation of Help:Templates, but there doesn't seem to appear to be a way to be able to make part of a template editable. My apologies if this is pretty obvious and I'm ignorant about it. Thanks Guillaume Taillefer (talk) 22:25, 21 October 2022 (UTC)
If the poem is a parameter to the template, then you could edit it like any other template parameter. Bawolff (talk) 09:31, 22 October 2022 (UTC)
I just figured out that I really don't need poem, thanks. I could just place the template, which has a div tag surrounding the parameter, and then edit the parameter. However the problem that I'm getting is that most of the time when I press the return key to a new line in the editor for the parameter, it doesn't show it going to a new line, it just puts the new line on the same line as the previous one. Do you know how to fix that? Thanks
Edit: The only way that I could get it to recognize a new line is by putting a ":" before each line. I don't really want to have to do this every single time, so is there a way to stop it from doing this? Guillaume Taillefer (talk) 20:45, 22 October 2022 (UTC)
You can also have the temate do something like {{#tag:poem|{{{1}}}}}Bawolff (talk) 22:29, 23 October 2022 (UTC)
I ported some functional widgets from a different wiki running MW 1.31 and Widgets v1.3.1 to mine, which is running MW 1.38 and Widgets v1.4.1. However, some of these ported widgets are not working. In particular, I see errors about mw.hook and mw.loader.using not being a function.
I tried to log them in the console as the widget loads, mw shows up as an object with all the expected properties, but mw.hook and mw.loader.using are both undefined.
A simple script to reproduce the issue is as follows:
window.RLQ.push(async () => {
console.log(mw); // this shows up as a regular object
console.log(mw.loader.using); // this shows up as undefined
console.log(mw.hook); // this shows up as undefined
});
I typed the names of all these packages in the console after the web page loaded. Everything shows up normally, implying that the widget is perhaps loaded before core mw packages are available.
I feel like I'm missing something very obvious, but I don't know much about javascript and cannot find any migration guides/tutorials that may explain this phenomenon. Every guide I saw suggested that mw.hook and mw.loader.using are loaded before everything else and that I don't need to do anything special to use them. Any help is appreciated. Thank you! PetraMagna (talk) 07:13, 22 October 2022 (UTC)
Widgets do not use RL natively, so the information on RL won't neccesarily apply to them. That said, i would expect it to work from inside an RLQ callback. Bawolff (talk) 09:30, 22 October 2022 (UTC)
That's odd. I tried logging everything again with a delay. Calling the log function immediately will result in two undefined being logged into the console. However, after waiting for 3 seconds, everything works: both mw.hook and mw.loader.using are no longer undefined. Somehow, window.RLQ is not doing its thing since mw modules are not loaded when a function in the queue is called.
Update: I was informed that window.RLQ no longer works in MediaWiki 1.34+. I am unable to find information concerning its deprecation, but this seems like a compelling explanation for the above anomaly. PetraMagna (talk) 08:44, 20 November 2022 (UTC)
window.RLQ isnt really a public api, so there probably wouldnt be a deprecation notice for it. Bawolff (talk) 13:53, 20 November 2022 (UTC)
sommaire sur la page d'accueil
Bonjour je cherche à créer un sommaire de l'ensemble du wiki sur la page d'accueil du wiki
comment procede t'on Schub srx (talk) 10:36, 22 October 2022 (UTC)
By editing the main page. If that does not help, please elaborate. (Please see "Post a new question" in the sidebar here.) Malyacko (talk) 17:52, 22 October 2022 (UTC)
Raccourcis creeation/modification
Je ne trouve pas le moyen de mettre les icones de raccourcis (gras, italique, ajout fichiers,..) a
Merci Schub srx (talk) 10:38, 22 October 2022 (UTC)
Please see "Post a new question" in the sidebar, plus please elaborate where to see something, and after which steps. Malyacko (talk) 17:52, 22 October 2022 (UTC)
Localsettings.php issue
MediaWiki 1.31.0
PHP 7.4.32 (fpm-fcgi)
MariaDB 10.3.34-MariaDB-0ubuntu0.20.04.1
ICU 66.1
I am a total noob at this and struggling to learn everything from the ground up and I am probably doing this all wrong lol.
As I understand it, you must never edit the defaulfsettings.php and any configurations are to be put in localsettings.
in the file we have this
# End of automatically generated settings.
# Add more configuration options below.
And I add my configuration below this, but they don't work, and I catually have to edit the defaultsettings file for nthem to take effect. (I have a back up of the original file, this is a test installation on my home server to get to know it before I let it out into the world)
Here is an example of a change I am trying to make happen
$wgGroupPermissions['*']['edit'] = false;
I want to stop users who are not logged in from editing.
What am I doing wrong? it works if I edit defaulstsettings but doesn't work if I add it to localsettings
The same question applies to the $wgSMTP variable? ( I am using WAMP and I don't have a mail server so I am going to use googles SMTP) how do I add it to the localsettings so it will work? Finallyanamethatnoneelsehasalreadychosen (talk) 12:52, 22 October 2022 (UTC)
There are no thumbnials for any uploadsand I can't reference the file with file: or Image:, either give me just a text link.
I have looked at all the help files and I can see my install isn't creating a thumbnails dir in /images and I think I have to do something on the server to make that happen, but you might as well be talking Martian when it comes to that because not only do I not have a clue but doing anything on the server scares me. Finallyanamethatnoneelsehasalreadychosen (talk) 00:30, 23 October 2022 (UTC)
Huh.
So it looks like there are at least two issues uploads.
Second, as far as creating the thumbnail - https://stevewoodmore.com/mediawiki/thumb.php?f=File:Chissign.png&w=40 gives an error saying source file does not exist. This is a pretty unusual error, and probably indicates something went wrong with the upload process itself (or the file was manually deleted from the webserver). This could be permission related but it would be slightly unusual. I would try uploading some additional files and see if it happens to all of them.
Check also your webserver and php error logs. Bawolff (talk) 00:44, 23 October 2022 (UTC)
internal_api_error_Error on API module an my extension
I am developing an extension and I was able to create the DB tables using the onLoadSchemaUpdates hook.
Now, I want to be able to use those tables in my frontend project so I'm trying to create the API module, but I'm totally lost.
In includes/api folder I have the file ApiAllFarmers.php:
<?php
namespace MediaWiki\Extension\MyExtension\api;
use ApiQueryBase;
class ApiAllClasses extends ApiQueryBase {
public function __construct(
ApiQuery $query,
$moduleName
) {
parent::__construct( $query, $moduleName, 'wmi' );
}
public function execute() {
$db = $this->getDB();
$this->addTables('farmers');
$this->addFields(['farmer_id', 'farmer_name']);
$res = $this->select(__METHOD__);
$result = $this->getResult();
}
}
I have also registered the module in the extensions.json file:
"APIListModules": {
"allclasses": "MediaWiki\\Extension\\MyExtension\\api\\ApiAllFarmers"
},
But I'm getting this error:
{
"error": {
"code": "internal_api_error_Error",
"info": "[8d9851a8fc0823250d995ad9] Caught exception of type Error",
"errorclass": "Error"
}
}
Can anyone guide me in this issue? 2A02:AA10:4101:CA80:ED6D:E2D2:D86A:BE41 (talk) 10:02, 23 October 2022 (UTC)
Can you set $wgShowExceptionDetails = true; in LocalSettings.php? Bawolff (talk) 12:10, 23 October 2022 (UTC)
How to get template parameters to recognize a new line without the use of ":"
I'm having a problem with editing parameters for a template where whenever I try to create a new line of text, it doesn't recognize it. Even though I try to press the return or enter key and start typing a new line of text in the input box for a parameter, when I click save changes it doesn't recognize the new line, and just puts the new line with the previous ones. The only way that I've figured out that it would recognize a new line is if you put a ":" before each new line, which creates an indentation as well. However I don't want to have my users have to keep doing this every single time, and want to know if there is any way to make the parameter recognize a new line without doing this. Thanks Guillaume Taillefer (talk) 14:25, 23 October 2022 (UTC)
You need to add 2 newlines, or <br>
Or <pre> or <poem> Bawolff (talk) 22:01, 23 October 2022 (UTC)
I have run into an issue when importing a Template into my wiki:
Lua error in package.lua at line 80: module 'strict' not found.
Upon inspecting the error, I see that Module:Message box is using require('strict').
Upon researching require('strict'), I found on this page under Lua/Tutorial#Usage that in order to use it, one should create a file named strict.lua.
Please forgive my ignorance, but where exactly am I supposed to create this file? Somewhere under the Scribunto extension folder? I have tried creating a similar file both under /w/extensions/Scribunto/includes/engines/LuaStandalone and under /w/extensions/Scribunto/includes/engines/LuaCommon/lualib to no avail. Lwangaman (talk) 15:13, 23 October 2022 (UTC)
And the module 'strict' not found error seems to have gone away (I'm getting other errors now!) Lwangaman (talk) 15:37, 23 October 2022 (UTC)
I think strict module was added in mediawiki 1.40. Your version is probably just not new enough. Bawolff (talk) 21:59, 23 October 2022 (UTC)
menu tab, search bar problems
hello,
i activated new vector skin on my wiki, but it still has the old tab menu, i want to have new one that is active on mediawiki (tab menu is being the menu at the top read, edit, history)
and how can i disable images on the search bar results?
Hi, please see and follow "Post a new question" in the sidebar. Please only post one topic per one thread. Thanks. Malyacko (talk) 15:29, 24 October 2022 (UTC)
missed it, added the needed info. Dragsugur (talk) 18:59, 24 October 2022 (UTC)
Lua gives Lua error: expandTemplate: template loop detected when importing CC & other copyright templates
I tried exporting and then importing some copyright templates for display on the File: pages. The ones in particular that are of concern are:
Template:Cc-by-3.0
Template:Cc-by-4.0
Template:Cc-by-sa-2.5
Template:Cc-by-sa-3.0
Template:Cc-by-sa-4.0
Template:PD
Template:PD-ineligible
When I had uploaded them and clicked on their links they gave me the following error:
Lua error: expandTemplate: template loop detected.
I looked up this error and apparently it has something to do with a template "referring" to itself in its code. However I don't know how I would go about trying to fix that for each of these templates without screwing up the code. If anyone could help that'd be great, Thanks. Guillaume Taillefer (talk) 04:01, 24 October 2022 (UTC)
Not all of those ppl and companies are guaranteed to be available and they have not been officially vetted by MediaWiki or something similar. —TheDJ (Not WMF) (talk • contribs) 11:19, 24 October 2022 (UTC)
How to prevent "detached head" when downloading bundled extensions with Git?
After downloading the MediaWiki 1.38 core I do git submodule update --init --recursive to download all bundled extensions.
The problem is: All extensions are checked out as a "detached head". I need to do git checkout REL1_38 in all extensions subfolders to fix that. Otherwise I can't update the extensions with git pull.
Is there an easy way to checkout REL1_38 directly and prevent the detached heads? Stefahn (talk) 10:04, 24 October 2022 (UTC)
Just to confirm, when you say "After downloading the MediaWiki 1.38 core" you mean that you git clone'd the mediawiki git repo, and then checked out REL1_38?
I suspect your issue might have to do with REL1_38 being a remote branch. Bawolff (talk) 12:08, 24 October 2022 (UTC)
After that I do git submodule update --init --recursive
Am I missing a git command or should I change a command? Stefahn (talk) 16:34, 26 October 2022 (UTC)
I used git once for MediaWiki core, thinking it would save time in the long run, but it didn't, and now I just download the tarball when I upgrade. I only use git for extensions and skins. I know that doesn't directly answer your question... Jonathan3 (talk) 23:16, 30 October 2022 (UTC)
Git saves me a lot of time when updating - no more searching for patch files and stuff.
Has anyone a solution to prevent the "detached head" problem? Stefahn (talk) 15:56, 25 November 2022 (UTC)
Instead of using git pull, maybe try git submodule update --remote --recursive (never trued myself, but i hear it works)
You could also use git submodule foreach to do the checkout command on each submodule.
You may get better answers on a git support forum. Bawolff (talk) 08:21, 26 November 2022 (UTC)
how my wiki application will be upgraded with latest version of 1.39 from 1.35 with PHP 8.x version
Hi ,
How my wiki application will be upgraded with latest version of 1.39 from 1.35 with PHP 8.x version, MySQL 8.x , ICU 72.1,Elastic search 8. Need help in what files can be changed / modified in this topic ..! MwikiMSK (talk) 10:21, 24 October 2022 (UTC)
Hello Support desk,
I run the https://24hourpets.com domain and want to install MediaWiki as a subdomain to the site (mediawiki.24hourpets.com). The site is hosted at SiteGround with Wordpress + WooCommerce, but I don't understand how to fix the Deprecated errors or install to the subdomain. Can you please let me know what I should do? I like Wikispecies and think an integration with the site would be great. Thank you. Roger.jay.yang 12:57, 24 October 2022 (UTC)
What deprecated errors are you experiencing? Usually deprecated errors are just warnings that may indicate something should be updated but can be safely ignored. Bawolff (talk) 21:08, 24 October 2022 (UTC)
@Bawolff The deprecated errors are various for /customer, and they arose when I tried to install to [24hourpets.com/mediawiki]: {deprecated: /home/customer/www/24hourpets.com/public_html/mediawiki/...} I can send a PDF printscreen I have.
I don't know how to install MediaWiki as mediawiki.24hourpets.com, SiteGround only gives an option for a folder under public_html, not to install as mediawiki.24hourpets.com Roger.jay.yang 23:18, 24 October 2022 (UTC)
It would be preferable if you pasted the entire error here. You cut it off before the useful part.
How to make subdomains varries with different hosting providers and is not a mediawiki question. You should ask your hosting provider about that. Bawolff (talk) 23:56, 24 October 2022 (UTC)
It's 2 pages of PDF, and the errors are for an install to 24hourpets.com/mediawiki so the log isn't relevant to how the site should be constructed. I will work on the subdomain issue with my hosting provider. Thank you @Bawolff. Roger.jay.yang 01:54, 25 October 2022 (UTC)
Please post full and complete error messages without any paraphrasing. Otherwise we're all just guessing. Thanks. Malyacko (talk) 07:54, 25 October 2022 (UTC)
CVE-2022-42889 Vulnerability
Hello,
We currently host a wiki using media wiki, I am aware Media wiki uses a version of Apache.
Is Media Wiki vulnerable to the CVE-2022-42889 "Text4Shell" vulnerability?
Regards, 2A02:6B61:D805:0:7578:5EF4:91DF:C6F (talk) 16:07, 24 October 2022 (UTC)
Mediawiki does not use Apache Commons Text. It is not vulnerable to that cve. Bawolff (talk) 19:58, 24 October 2022 (UTC)
Error when running update.php from the new mediawiki directory.
Hi everyone,
We're trying to do an in-place upgrade on our mediawiki server from 1.31.1 to the most recent version - 1.38.
I've updated the php and mariadb components without issue, and I've edited the httpd.conf file to use the new mediawiki folder I've installed. However, it still shows the 1.31.1 version on the Special Pages in the wiki. I've tried running the update.php in the new mediawiki directory and this is the output:
PHP Fatal error: Uncaught Exception: Unable to open file /var/www/mediawiki/mediawiki-current/extensions/YouTube/extension.json: filemtime(): stat failed for /var/www/mediawiki/mediawiki-current/extensions/YouTube/extension.json in /var/www/mediawiki/mediawiki-current/includes/registration/ExtensionRegistry.php:182
Stack trace:
#0 /var/www/mediawiki/mediawiki-current/includes/GlobalFunctions.php(52): ExtensionRegistry->queue('/var/www/mediaw...')
#1 /var/www/mediawiki/mediawiki-current/LocalSettings.php(155): wfLoadExtension('YouTube')
#2 /var/www/mediawiki/mediawiki-current/includes/Setup.php(204): require_once('/var/www/mediaw...')
#3 /var/www/mediawiki/mediawiki-current/maintenance/doMaintenance.php(96): require_once('/var/www/mediaw...')
#4 /var/www/mediawiki/mediawiki-current/maintenance/update.php(264): require_once('/var/www/mediaw...')
#5 {main}
thrown in /var/www/mediawiki/mediawiki-current/includes/registration/ExtensionRegistry.php on line 182
I'm pretty new to most of this, so I'm having trouble interpreting this error. Any help would be greatly appreciated! Nimae1 (talk) 19:59, 24 October 2022 (UTC)
It means the youtube extension is missing. There is a wfLoadExtension call in LocalSettings.php but the extension is not in the extensions directory. Bawolff (talk) 21:07, 24 October 2022 (UTC)
Gotcha, that seems to be what it is. For some reason, when I copied the contents of the old /extensions folder not everything copied over.
However, I've tried copying the /Youtube folder and now I'm getting a 'No such file or directory'. Any idea what could be causing it? Tried changing the permissions on the folder but it doesn't see the folder. I can also open the /Youtube folder in Files with no issue.
This is running on CentOS 7 since it wasn't stated in the initial post. Nimae1 (talk) 18:47, 25 October 2022 (UTC)
How are you copying it? What command are you using? Bawolff (talk) 20:42, 25 October 2022 (UTC)
but it'll say the file or directory doesn't exist. I also tried using "mv" with no success. Nimae1 (talk) 12:13, 27 October 2022 (UTC)
You're sure that /var/www/html/extensions/Youtube is the correct path? Does ls /var/www/html/extensions/Youtube show you the expected contents of the directory? Bawolff (talk) 02:12, 28 October 2022 (UTC)
Correct. I've navigated to that path in Files and see the /Youtube folder in that file path as expected.
I can also open the Youtube directory and see its contents, but trying to copy the directory to a new location as root user is returning that error. Nimae1 (talk) 13:18, 28 October 2022 (UTC)
When trying the command listed:
[root@wiki /]# ls /var/www/html/extensions/Youtube
ls: cannot access /var/www/html/extensions/Youtube: No such file or directory Nimae1 (talk) 19:17, 28 October 2022 (UTC)
So in one error you have written YouTube, in a different one Youtube. Linux is case sensitive, are you sure you have the right capitalization? Bawolff (talk) 19:20, 28 October 2022 (UTC)
The capitalization was definitely it. I've gone ahead and copied it over now and ran the update.php from the /maintenance directory in the new mediawiki install. Output is:
[root@wiki maintenance]# php update.php
PHP Fatal error: Uncaught Exception: Unable to open file /var/www/mediawiki/mediawiki-current/extensions/MagicNoCache/extension.json: filemtime(): stat failed for /var/www/mediawiki/mediawiki-current/extensions/MagicNoCache/extension.json in /var/www/mediawiki/mediawiki-current/includes/registration/ExtensionRegistry.php:182
thrown in /var/www/mediawiki/mediawiki-current/includes/registration/ExtensionRegistry.php on line 182 Nimae1 (talk) 12:46, 31 October 2022 (UTC)
Well did you do the same thing for the extension mentioned in the new error? Bawolff (talk) 19:52, 31 October 2022 (UTC)
So I did as you mentioned, and copied over the directories that didn't get copied over initially. This includes:
- Youtube
-MagicNoCache
-NoTitle
-EmailForm
-Widgets
And then the php update.php was able to run it looks like. However, when launching the wiki page, I get this now:
[Y2LHFvwId-eradM-Vq0UHgAAAAA] / mysqli_sql_exception from line 46 of /var/www/html/includes/libs/rdbms/database/DatabaseMysqli.php: Unknown column 'rev_text_id' in 'on clause'
The new mediawiki install is in /var/www/mediawiki. I've updated the settings in the localsettings.php to point to new install location, so not sure why it's displaying this. Nimae1 (talk) 19:43, 2 November 2022 (UTC)
Some extensions go to a 404 when you try to download them.
Recently within just today while trying to download the following extensions (theres probably more but I haven't gotten to my complete list):
Extension:Labeled Section TransclusionExtension:PoolCounterExtension:PageAssessments
For each of these pages I tried to go to their respective download pages, and when they try to give me the option to download the tar.gz files, it gives me a 404 error saying: 404 Not Found <hr> nginx/1.18.0
Does this mean that these extensions have been taken down or is this some sort of MediaWiki issue, because I can download some other extensions but just not these. Thanks Guillaume Taillefer (talk) 22:22, 24 October 2022 (UTC)
Its an issue on our end. The extensions are still popular extensions.
Hopefully this will be fixed soon, but in the meantime, github also offers a download zip file option which you can use. Bawolff (talk) 00:01, 25 October 2022 (UTC)
Ok thanks Bawolff I'll try and see if the git hub files work Guillaume Taillefer (talk) 00:06, 25 October 2022 (UTC)
Ok they do work so far, I downloaded the PoolCounter zip from the git master link, then unzipped it in the extensions folder, and then renamed the folder from mediawiki-extensions-PoolCounter-master to PoolCounter so that it works with the load extension variable. It seems to be working. Guillaume Taillefer (talk) 00:11, 25 October 2022 (UTC)
btw, this is fixed now. The server extension distributor was running on ran out of disk space, but it should be good now. Bawolff (talk) 08:44, 25 October 2022 (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.
So Plesk has 1.31 built in and I've tried this a few times now but each time I try and update the site the thumbnails stop working. Anyone had this issue before? Even just tried installed the script on its on without using the app inside Plesk. 1.31 works great.
EDIT. Ill take that back images dont seem to be working at all. If i click on the image url i get an error 500. CredenceHamby (talk) 22:29, 24 October 2022 (UTC)
Seems that the .htaccess file in the image folder is the issue. CredenceHamby (talk) 00:21, 25 October 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
error on wiki
does anyone know how to fix this?
Fatal error: Cannot declare class ResourceLoader, because the name is already in use in /home/allajwzo/wiki.allan.network/includes/resourceloader/ResourceLoader.php on line 60213.237.83.248 (talk) 14:54, 25 October 2022 (UTC)
Hi, please read "Post a new question" in the sidebar, plus provide a full stacktrace. Thanks. Malyacko (talk) 15:13, 25 October 2022 (UTC)
mediawiki Version: 1.38.4
Php 7.4.32 is installed 213.237.83.248 (talk) 15:24, 25 October 2022 (UTC)
it’s still showing it 213.237.83.248 (talk) 18:24, 28 October 2022 (UTC)
After performing which exact, full, complete steps, without any paraphrasing? Malyacko (talk) 19:38, 28 October 2022 (UTC)
i backed up extensions, skins, and resources including localsettings.php then installed a new mediawiki system 213.237.83.248 (talk) 20:23, 28 October 2022 (UTC)
We don't know if you completely erased anything in some (where?) previous location. Or how you "installed a new MediaWiki system". Without clear commands (without paraphrasing) and a clear list of steps we're all just guessing. Malyacko (talk) 20:36, 28 October 2022 (UTC)
I also just ran the update.php from the command line but no difference. 213.237.83.248 (talk) 10:53, 29 October 2022 (UTC)
First I backedup the resources folder, extensions folder, skins folder, and localsettings.php. Then I uninstalled mediawiki using softaculous and only kept databases then I reinstalled mediawiki and moved the folders and files back. 213.237.83.248 (talk) 09:24, 29 October 2022 (UTC)
Why are you backing up the resources folder? You should not do that. Bawolff (talk) 18:28, 29 October 2022 (UTC)
I'm not sure how many more times to point out that being vague is a waste of everyone's time and to please stop paraphrasing. "reinstalled MediaWiki" how? Did you follow the Upgrading link above? Yes? No? Something else? Who knows? Why would you move back a "resources folder" and where exactly was that recommended? Malyacko (talk) 12:09, 29 October 2022 (UTC)
There were more open questions Malyacko (talk) 12:35, 29 October 2022 (UTC)
@Malyacko update: I fixed it. it wasn’t that the wiki was outdated it was to my knowledge, something wrong with the extension and or the minervaskin. But it’s working now. 213.237.83.248 (talk) 18:15, 29 October 2022 (UTC)
i removed the minervaskin and mobilefronted extensions from the localsettings.php and then my wiki loads fine. I’m very sure that reinstalling or updating the wiki will not change anything. @Malyacko213.237.83.248 (talk) 12:40, 29 October 2022 (UTC)
UploadWizard won't let me upload certain file extensions even though I allow them
RESOLVED
Extensions from BlueSpice were causing the problem
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I'm trying to test out the uploading process of my wiki through UploadWizard and have found out that it won't let me upload certain files even though I had specifically allowed for those specific file extensions. Specifically I tried to upload an mp4 and mov files. I know that I have both of these allowed to be uploaded on my LocalSettings.php. As I have it written:
$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'doc', 'mpp', 'pdf', 'tiff', 'bmp', 'odt', 'ods', 'odp', 'odg', 'mp3', 'mp4', '.mp4', 'tif', 'mov', 'webm');$wgStrictFileExtensions = false;
despite this, it still gives me the following error message:
This wiki does not accept filenames that end in the extension ".mp4".
or
This wiki does not accept filenames that end in the extension ".mov".
So I tried even adding .mp4 to the list as seen but it doesn't work, it still gives me this errror. I know that this must be a recent thing because I've tried uploading these two filetypes before and they've worked just fine Guillaume Taillefer (talk) 22:41, 25 October 2022 (UTC)
I then ignored the warning and it brought me to the page of the file.
I don't know how you could have all these file types but not have one of the most basic file types for a video included Guillaume Taillefer (talk) 00:53, 26 October 2022 (UTC)
Make sure you don't have $wgFileExtensions specified multiple times in LocalSettings.php Bawolff (talk) 06:51, 26 October 2022 (UTC)
Nope I only have it once in LocalSettings once Guillaume Taillefer (talk) 11:08, 26 October 2022 (UTC)
Can you post your LocalSettings.php with any passwords or secret keys removed? Bawolff (talk) 18:32, 26 October 2022 (UTC)
<?php
# This file was automatically generated by the MediaWiki 1.38.1
# installer. If you make manual changes, please keep track in case you
# need to recreate them later.
#
# See docs/Configuration.md for all configurable settings
# and their default values, but don't forget to make changes in _this_
# file, not there.
#
# Further documentation for configuration settings may be found at:
/*------------------------------- Namespaces ---------------------------------*/Guillaume Taillefer (talk) 21:55, 26 October 2022 (UTC)
I'm not sure but i suspect it has something to do with the BlueSpiceFoundation extension. Maybe try disabling it to see if that changes anything. Bawolff (talk) 02:27, 27 October 2022 (UTC)
Thats what I thought was potentially causing it. It has been ever since BlueSpice was downloaded that this problem started. I'll try it Guillaume Taillefer (talk) 02:52, 27 October 2022 (UTC)
So I just commented out the BlueSpice extensions and now it is working and will let me upload those files. Thank goodness that the only thing I was using BlueSpice for was a temporary thing Guillaume Taillefer (talk) 02:56, 27 October 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
Get HTTP500 error after adding wfLoadExtension( 'TemplateData' ) in LocalSetting.php
RESOLVED
TemplateData folder can not been recongnized correctly. If you are using any control panel to manage your files, please using FTP clients softwares to upload TemplateData folder instead of using default control panel manager.
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 am searching some template knownledge so I am following this document:Extension:TemplateData/zh. But after I added the code: wfLoadExtension( 'TemplateData' ); at the bottom of my LocalSettings.php: I get the HTTP500 error and can not access my wiki site.
After removing the code wfLoadExtension( 'TemplateData' ); , it is back to normal.
My mediawiki version is 1.38.1
Can someone help me to figue it out? Thanks. M.Lv (talk) 12:53, 26 October 2022 (UTC)
It had been resolved. I don't know why but it seems that TemplateData folder can not been recongnized correctly. I deleted all and uploaded them again using FTP and they are going well. M.Lv (talk) 02:50, 30 October 2022 (UTC)
See How to debug. What does your php error log say? Bawolff (talk) 18:30, 26 October 2022 (UTC)
I did see that it says "use a code editor like Atom instead of a text editor" on this page . So I used Atom, but it still doesn't seem to work M.Lv (talk) 09:52, 28 October 2022 (UTC)
If that was the issue (e.g. BOM) you would get a different error message. Bawolff (talk) 10:30, 28 October 2022 (UTC)
Also when I debug it I see:
Uncaught Exception: Unable to open file /myrootfolder/mywikisite/extensions/TemplateData/extension.json: filemtime(): stat failed for /myrootfolder/mywikisite/extensions/TemplateData/extension.json in /myrootfolder/mywikisite/includes/registration/ExtensionRegistry.php:182 Stack trace: #0 /myrootfolder/mywikisite/includes/GlobalFunctions.php(52): ExtensionRegistry->queue() #1 /myrootfolder/mywikisite/LocalSettings.php(157): wfLoadExtension() #2 /myrootfolder/mywikisite/includes/Setup.php(204): require_once('...') #3 /myrootfolder/mywikisite/includes/WebStart.php(93): require_once('...') #4 /myrootfolder/mywikisite/index.php(44): require('...') #5 {main} thrown in /myrootfolder/mywikisite/includes/registration/ExtensionRegistry.php on line 182
I have changed my site's real folder and domain due to security concerns. M.Lv (talk) 10:03, 28 October 2022 (UTC)
Its saying it cant find the TemplateData extension. Did you download it and put it in the right folder? (Normally mediawiki comes with this extension automatically, but i suppose you could be missing it for some reason) Bawolff (talk) 10:33, 28 October 2022 (UTC)
Should it be put under the /extensions? Like myrootfolder/mywikifolder/extensions/TemplateData? I think it exists. M.Lv (talk) 10:41, 28 October 2022 (UTC)
Yes.
The error message is saying it doesn't.
Its case-sensitive so make sure everything is spelling. Bawolff (talk) 17:01, 29 October 2022 (UTC)
Maybe try downloading some other extension and including it at the same position in LocalSettings.php (to see whether it's something with this particular extension). Jonathan3 (talk) 11:33, 27 October 2022 (UTC)
Hello. I tried a extension called the "examples" and get the same error. First I get the error shows:
MediaWiki internal error.
Original exception: [Y1uv9rtScVCn3ptUeXTj0QAAAAY] 2022-10-28 10:33:27: Fatal exception of type "Error"
Exception caught inside exception handler.
Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information.
And after I put the "$wgShowExceptionDetails = true" at the bottom of LocalSettings.php, I get the same HTTP500 Error. M.Lv (talk) 10:36, 28 October 2022 (UTC)
Just to clarify, the semicolon after true is important. Bawolff (talk) 17:02, 29 October 2022 (UTC)
Can you suggest me what extension can I do a try? Thank you. M.Lv (talk) 10:05, 28 October 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
Contents formatting
I've done a few hours of research and testing and still seem to be unable to move the Contents list to the right like most of the MediaWiki pages have as standard (see how it has been set in the article below).
Manual:Preventing access#Restrict editing of an entire namespace
Is it possible to do this on our own sites? David.bucknor (talk) 15:45, 26 October 2022 (UTC)
Hi, please see "Post a new question" in the sidebar. If you refer to a Table of Contents on the left, that's part of Reading/Web/Desktop Improvements and the Vector skin. Malyacko (talk) 16:09, 26 October 2022 (UTC)
Thanks - noted, and yes currently using the Vector 2022 skin but I still have the sidebar and TOC not replacing it on the left hand side sticky version like many of the media wiki web pages. That's all I need to achieve David.bucknor (talk) 17:34, 3 November 2022 (UTC)
Further to your response - these are the version details. I've tried loading the de-toc extension but it breaks the page as soon as it is added to localsettings.php. I'd really like to use the Vector skin but without a sidebar and just replace this with my TOC on the left
I don't think I'm on the right topic, but I'm very sorry if I'm wrong. I have a problem on Discord, I click on that emoji to check and in vain, it doesn't give me access to the other rooms, I've been a part of the Discord server since yesterday and I still don't get access, I try to contact the moderators and I can't... If it's also need a video, Discord name is KaPoNe#6820 I have a profile picture of a monkey. Kapone04 (talk) 17:46, 26 October 2022 (UTC)
Which discord server? The mediawiki one? Bawolff (talk) 21:44, 26 October 2022 (UTC)
I don't think the MediaWiki one, we have no "click on emoji to see channels" flow in the MediaWiki server. I also don't think it's the English Wikimedia server either, for the same reason. Izno (talk) 05:44, 27 October 2022 (UTC)
Translate Extension and 500 Error
Hi There, I am new to MediaWiki
I installed the Translate extension and put the required information into the localsettings.php.
When I refresh the site, I get a 500 error.
What did I do wrong?
Thanks! 146.196.39.41 (talk) 07:14, 27 October 2022 (UTC)
I'm guessing this is very simple but I simply cannot find the answer. In case I call a template called "General aspects" in a page:
{{General aspects | Description = This is a piece of art}}
How do I call the value of the property "Description" in that same page outside the template? As if I wanted to make a section in the page just for the description. Jdm.oliveira (talk) 10:17, 27 October 2022 (UTC)
In Cargo if the General aspects template saved data to a table, you could include a Cargo query on the same page to obtain its "Description" value. I imagine it's similar for SMW, and think the equivalent is #ask. Jonathan3 (talk) 11:30, 27 October 2022 (UTC)
Thank you for your answer. I found another solution that worked for me in the meantime:
{{#show: {{PAGENAME}}|?Description}}Jdm.oliveira (talk) 15:31, 28 October 2022 (UTC)
Good. That looks like the sort of thing I had in mind. I've never used SMW and don't know the difference between #ask and #show... Jonathan3 (talk) 17:08, 28 October 2022 (UTC)
How to create Dofollow links?
We have a MediaWiki website (I don't know the version but it's probably from last year) in which we need some links to be "Dofollow" (non nofollow).
How to do that?
How to selectively make links "Dofollow? 2A10:8012:13:C234:8826:21F9:D8AF:534C (talk) 21:39, 27 October 2022 (UTC)
I didn't find there any explanation about how to make exceptions. i.e. generally links would be nofollow besides those that get an excpetion. 2A10:8012:13:C234:74A4:14A4:BF6B:B0C6 (talk) 09:31, 28 October 2022 (UTC)
I recently upgraded to MediaWiki version 1.38.2 and now I'm getting this error when I attempt any search:
Error: Call to undefined method User::getEffectiveGroups()
Product
Version
MediaWiki
1.38.2
PHP
7.3.33 (cgi-fcgi)
MariaDB
10.3.36-MariaDB-log
ICU
50.2
I've been searching on this error, including this forum, but have found no reference. Can anyone please provide some insight on where I might begin looking for a resolution?
Thanks Andorithian (talk) 02:30, 28 October 2022 (UTC)
Does the error have a backtrace?(usually present in your php error log) Bawolff (talk) 04:35, 28 October 2022 (UTC)
[ZBUWiMuKF040Nc-sHzUYFgADlxQ] /andorith01/index.php?title=Special%3ASearch&search=paper&go=Go Error: Call to undefined method User::getEffectiveGroups()
Backtrace:
from /home/mwyler5/andorith.mwyler.com/andorith01/extensions/Lockdown/src/Hooks.php(207)
Do you have the correct version of Extension:Lockdown for your version of mediawiki? Bawolff (talk) 12:34, 18 March 2023 (UTC)
Thank you, Bawolff, that was the issue. I updated Lockdown to the correct version and it's working. That also helped me to see how to read the backtrace. Andorithian (talk) 23:06, 1 April 2023 (UTC)
DeleteArchivedFiles.php
hi, i wish to delete all of the archived files on my wiki using the DeleteArchivedFiles.php maintenance script
but i want to know, should i run it with force or not? what would happen if i didnt run it using force? thanks Smallketchup82 (talk) 14:40, 28 October 2022 (UTC)
Whether or not the deleted versions are still listed in special:undelete. Bawolff (talk) 17:12, 28 October 2022 (UTC)
Calling property values within HTML (Kartographer)
I have a problem in which I want to call the coordinate values within a property inside the extension Kartographer, so that a user doesn't have to manually insert the coordinates in the Kartographer and it reuses the value of the coordinate property.
The problem is that when I call the value of said property:
<mapframe latitude={{#show: {{PAGENAME}}|?latitude}} ...>...</mapframe>
It sends me the message: "Attribute "latitude" has an invalid value"
Is there a way to avoid this problem? Jdm.oliveira (talk) 15:38, 28 October 2022 (UTC)
It might be to do with the order that things in < and things in } get parsed.
Would it be possible to use {{#tag:mapframe...?
Or maybe put the #show code in a template (just guessing - this might lead to the same problem). Jonathan3 (talk) 17:05, 28 October 2022 (UTC)
What Johnathan said with #tag is correct - you need to use #tag version of mapframe if any parameters contain templates.
Additionally, it depends on if SMW uses strip markers in its output (i honestly dont know). If yes, then it wont work at all, if no, then #tag should work. Bawolff (talk) 20:56, 28 October 2022 (UTC)
Thank you for your answers. I did try using the {{#tag:mapframe|...|...}}, but I get a new error: "<mapframe>:Couldn't parse JSON: syntax error"
I have tried changing the format of the input but had no luck so far.
Edit: Nevermind, managed to fix that, the problem there was with the order I was putting the attributes. Thank you again for the help Jdm.oliveira (talk) 11:11, 2 November 2022 (UTC)
Uploading mediawiki to a host
I've installed mediawiki on a local host, and after installing it and setting it up; I want to upload it to a host. I uploaded the files in htdocs to the same host folder, but the website didn't load showing this error: This site can’t provide a secure connection.
I know that I can install mediawiki with softaculous, however, the mediawiki it supports is outdated. So, how can I fix the error above? The Savvy Wizard (talk) 09:27, 29 October 2022 (UTC)
Hi, if your webserver software configuration is incorrect then this problem sounds unrelated to the MediaWiki software. Malyacko (talk) 12:11, 29 October 2022 (UTC)
Verify that you have the right url for your site (especially the http part).
if you also uploaded your LocalSettings.php, probably it contains settings for your local system. You should delete it and rerun the installer. Bawolff (talk) 16:59, 29 October 2022 (UTC)
Proofread Page extension: transcluded page not showing as expected
Testing Proofread Page extension, MediaWiki 1.38.2, PHP, 7.4.30 (fpm-fcgi), ProofreadPage – (05f73cd) 05:02, 26 October 2022, PDF Handler, LabeledSectionTransclusion – (67e3ec4) 05:08, 6 July 2022.
All looks fine when in Page namespace, except when using page tage <pages index="pdf file.pdf" from=1 to=1 /> for transcluding from Pages to Main, it does not show expected page from the file but only a thin stripe; hovering mouse above it, it reads: 1 validated page, 0 only proofread pages and 0 not proofread pages. Something missing somewhere? Pspviwki (talk) 11:54, 29 October 2022 (UTC)
You could put the opening bracket in nowiki tags. E.g. <nowiki>[</nowiki> Bawolff (talk) 23:00, 29 October 2022 (UTC)
You mean link this?
<nowiki>[</nowiki>{{{1|}}} {{{2|}}}, Band S. {{{3|}}}]: {{{4|}}}
This does not work for me. I still only get [Band foo, S. bar]: baz., i.e. the parameter filled with the URL is being ignored. 2003:F1:C713:C500:B761:9238:2E7C:8F18 (talk) 23:05, 29 October 2022 (UTC)
It appears that MediaWiki cannot do the job which I think is a bit awkward. Anyhow from looking at some other template here on this wiki I got the following solution to just explode the link into two parts, one which is the same for every link and one that changes and is fed with the parameter. I cannot post the solution since the abusefilter qualifies me as being a spammer when trying to do so.:( 2003:F1:C713:C500:B761:9238:2E7C:8F18 (talk) 00:01, 30 October 2022 (UTC)
Nope this did not work either for the given link, even "exploded". If someone has a solution for this it will be great ... 2003:F1:C713:C500:B761:9238:2E7C:8F18 (talk) 00:13, 30 October 2022 (UTC)
To cut it short: How can I pass a link like mentione in my first post into a template? Currently a myth to me. 2003:F1:C713:C500:B761:9238:2E7C:8F18 (talk) 00:18, 30 October 2022 (UTC)
Sorry, i misunderstood earlier. I thought you wanted the opposite of what you wanted. My bad for reading too fast.
The issue here is the = sign confuses things when using unnamed parameters. There's 2 ways to solve this.
Way 1:
Call the template like {{MyTemplate|1=https://www.digitale-sammlungen.de/de/view/bsb10400812?page=102,103|2=foo|3=bar|4=baz}}
Way 2:
Use named parameters. Instead of {{{1}}} in the template, use {{{url}}} in the template, and call the template like {{MyTemplate|url=https://whatever|...}}Bawolff (talk) 03:18, 30 October 2022 (UTC)
Nice. No problems. Happens all the time to me, too.:)
Thanks for elaborating the cause of the "issue". Makes sense to me and calling the tempate with paramters makes all of this work.
SemanticMediaWiki error installing: Fatal error: Uncaught Error: Call to undefined function enableSemantics()
I've tried everything to get this to work but nothing does. I tried following the following steps from Semantic MediaWiki's page about installing Semantic Mediawiki. I used the command mentioned for creating the composer.local.json file, and it worked (in my home directory, so outside of public_html and extensions). I then used the command to update composer, which worked. I then tried adding the
wfLoadExtension( 'SemanticMediaWiki' );enableSemantics( 'wwii-archives.org' );
commands to LocalSettings.php, however of course, since I they don't even tell you the fact that you need to install the SemanticMediaWiki extension to the extension folder, because without it it gives you the error that it couldn't find the extension, I had to try and look for the extension. Their more detailed explanation about installing it is even worse, where they don't even acknowledge that now you need to add the wfLoadExtension() function for newer MediaWiki versions (I'm on 1.38.4).
I then found this page about installation without the command line. It then links to this git hub page with the different releases. So I download the 4.0.2 and add it to the extensions folder (and unzip it, and then rename it to just SemanticMediaWiki), and now the error that it couldn't find the extension goes away, and is replaced by the Fatal error: Uncaught Error: Call to undefined function enableSemantics()...
I noticed that on the git hub page for each entry it mentioned that it needed extra dependencies. And so I went to the page for Individual file release and downloaded it (to the root folder again outside of public_html). I then followed the instructions, chmod 700 IndividualFileRelease.sh then ./IndividualFileRelease.sh, with some errors, but don't seem to affect anything. I then went back to my site, and the same error is there. Then I thought to try and put the IndividualFileRelease.sh into the SemanticMediaWiki folder in extensions, and went through the same process again with the same results. But then going back to check and the same stupid error appears.
I then tried then consulting the page that talks about this error, but its so useful that it just tells you to go back to the installation pages and re-read the instructions. Well I can't do that if there is nothing else I can do to try and fix this problem.
Any help would be appreciated, thanks
Update: It seems that part of the problem is that composer.local.json doesn't really work. I tried adding some other extensions to the required section, and when I try to load them MediaWiki doesn't recognize that they're there. I also had to try to create a new composer.json to add in the same directory that composer.phar and composer.local.json is, when I was trying to use the composer update --no-dev command again. I'm not sure what to do Guillaume Taillefer (talk) 15:35, 30 October 2022 (UTC)
You could probably use the Cargo extension instead. It's just one extension and doesn't require composer. Jonathan3 (talk) 07:44, 31 October 2022 (UTC)
I expect so. The first extension is by Sam Wilson, who sometimes answers questions here, and who I believe also uses Cargo. You could contact him on the extension talk page. The second extension is unmaintained so might not work with either SMW or Cargo. Jonathan3 (talk) 20:16, 31 October 2022 (UTC)
Alright thank you so much I'll ask him Guillaume Taillefer (talk) 20:26, 31 October 2022 (UTC)
TemplateParser.php internal error
I have a local wiki (MediaWiki 1.38.4; Apache with xampp 8.1.10) that worked perfectly for a few weeks, but today I tried to edit a few articles that have templates and it started giving me errors with the TemplateParser.php, and now is completely unnaccesible and shows the following error details:
MediaWiki internal error.
Original exception: [3d60e113338e8a53946d26be] /fangirlbook/index.php/P%C3%A1gina_principal TypeError: Cannot access offset of type string on string
Backtrace:
from C:\xampp\htdocs\fangirlbook\includes\TemplateParser.php(134)
Exception caught inside exception handler: [3d60e113338e8a53946d26be] /fangirlbook/index.php/P%C3%A1gina_principal TypeError: Cannot access offset of type string on string
Backtrace:
from C:\xampp\htdocs\fangirlbook\includes\TemplateParser.php(134)
I have already restarted the system, re-installed the wiki and copying the manual backup I had of the files and the database, and no solution. Any ideas? BeaKarnstein (talk) 16:45, 30 October 2022 (UTC)
So despite the name, this probably has nothing to do with MediaWiki templates.
This might be some issue with invalid cache values.
If possible, i would try force clearing all cache to see if that helps. I think update.php clears the objectcache table but if not, you can run the SQL command TRUNCATE objectcache;. If using APCu cache, probably the easiest is to just restart apache Bawolff (talk) 05:53, 1 November 2022 (UTC)
Clickable Buttons
I am trying to add clickable buttons to the main page of my wiki and I cannot figure out how to add one in. I have looked for answers but nothing that makes much sense to me.
Thanks JulianMalcolm08 (talk) 22:13, 30 October 2022 (UTC)
What have you tried? Jonathan3 (talk) 22:21, 30 October 2022 (UTC)
I asked a question about adding a button specifically to a particular page for a particular function.
to let translators know which wikitext restrictions apply.
<translate>
=== mw.msg === <!--T:107-->
2) after first section edition a blank line is saved before T107:
to let translators know which wikitext restrictions apply.
<translate>
=== mw.msg === <!--T:107-->
</translate>
3) further section update leave the blank line unchanged and even when deleting this line at the bottom of the edition frame, it reappears again and again when the section is saved.
to let translators know which wikitext restrictions apply.
<translate>
=== mw.msg === <!--T:107-->
</translate>
4.=> What was always expected:
to let translators know which wikitext restrictions apply.
<translate>
=== mw.msg === <!--T:107-->
Problem: the following text is shifted down artificially (then the delete line can only be done via a manual update TAB of the global page at the respective points).
Christian 🇫🇷 FR (talk) 10:13, 31 October 2022 (UTC)
Displays correctly Kirrus (talk) 10:51, 31 October 2022 (UTC)
Unsure, but did you check that any of the extensions that you have installed is not interfering? note you will have to edit the page (or preview it) to force it to render the same wikitext again with the new settings. —TheDJ (Not WMF) (talk • contribs) 15:07, 31 October 2022 (UTC)
Thank you both. It looks like this is a known issue in the DisplayTitle extension, with a patch pending, check phabricator T305623 (Abusefilter won't let me link it!) Kirrus (talk) 13:56, 1 November 2022 (UTC)
As a quick fix, waiting for the patch merge, I've commented out lines 142-145 and line 148 of extensions/DisplayTitle/includes/DisplayTitleHooks.php, which appears to have fixed the issue. Kirrus (talk) 14:22, 1 November 2022 (UTC)
Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted
When I try to write Module:pagename in Lua, I get the error tips above.
I have found some same tickets but I can not get some clear and unambiguous answers. So if anyone can help me I will be very grateful. M.Lv (talk) 12:55, 31 October 2022 (UTC)
I checked my php.ini page and seems I didn't set any value for open_basedir. It's just blank after the equal sign of " open_basedir = "
Updated: I have commont out the line of open_basedir = but the error tips still exsit. proc_open(): open_basedir restriction in effect. File(/temp) is not within the allowed path(s): M.Lv (talk) 02:33, 1 November 2022 (UTC)
I run my site in a VPS. I don't know if it's related with open_basedir restriction. I will try to debug it first and to see if I can provider more details. Thank you. M.Lv (talk) 01:43, 1 November 2022 (UTC)
Visual Editor button to insert template
Hi.
I successfully added a few custom tools in my mediawiki and they are working great, but none of them is capable of open a dialong in which the user can input parameters for my templates. I would love to add a button to my Visual Editor where users could press it to pass a string value to a parameter called "titulo" in my template called "Fluxograma" for instance, but I can't make it work properly.
PS: "Fluxograma" stands for "Flowchart" in portuguese, and the template is using DrawIo Extension and is working properly, but I would like to make it easier to insert new flowchars than manually searching in the template menu. I would like a buttom for itself, asking for a name/title ("Titulo) and inserting the template.
I also intend to use the same strategy to add a buttom to insert highlightjs (extension) tags (passing the language parameter and the text with the code to be highlighted), is this indeed the best strategy for such things?
My attempt so far is on the code below:
Can anyone help me? Rodrigo Jäger (talk) 17:49, 31 October 2022 (UTC)
CSS issue with "More" drop-down menu not connecting with the actual "More" tab?
Been trying to modify the CSS of a wiki, but for some reason the section for the "More" drop-down menu (seems to be called "nav#p-cactions"?) does not connect with the actual drop-down menu; instead, the drop-down menu is a bit further down.
Can't figure out why it's doing this, but the only culprit seems to be the CSS, as that's the only thing that's changed in this entire process. Yet finding what line of CSS is causing this and what to change to fix it is unclear. The full Vector.css can be seen here. If anyone has any bright ideas to get the "More" tab to actually attach to where it's meant to, that would be much appreciated. Camwoodstock (talk) 19:10, 31 October 2022 (UTC)
You've modified the height of the <h3> element, but not the top offset of .vector-menu-dropdown .vector-menu-content-list . If you match that to 30px+border it matches. A web inspector is really handy to debug problems like this. —TheDJ (Not WMF) (talk • contribs) 09:52, 1 November 2022 (UTC)
You're a life-saver. Was struggling to find the culprit, and you hit it right on the head. Thank you very much! Camwoodstock (talk) 01:47, 2 November 2022 (UTC)
npm WARN tar ENOENT: no such file or directory
I'm going to repost this here so that I can get a better chance at getting an answer.
I tried installing both the translation-server and the zotero service from mediawiki via their git commands, and upon going in their respective directories, and trying to use npm install, they give me 100+ different versions of the same error:
npm WARN tar ENOENT: no such file or directory ...
For example one of the ones from translation-service:
npm WARN tar ENOENT: no such file or directory, lstat '/home2/wwiiarch/translation-server/node_modules/.staging/core-js-f5f4dd1d/modules'
The common thing that I have found for both of these is that when I go into each node_modules directory, it shows that they're emtpy. This is despite the fact that none of the isntructions tell me anything about this, and just say to use the git command. However it seems that I use the npm commands its looking for a .staging folder inside node_modules.
My version of node is v10.24.1 (before I was trying v12.22.12 but it doesn't seem to change anything), and my version of npm is 6.14.16
How do I fix this problem? Thanks Guillaume Taillefer (talk) 22:49, 31 October 2022 (UTC)
windows, linux, local machine, managed or cloud? —TheDJ (Not WMF) (talk • contribs) 09:45, 1 November 2022 (UTC)
If you already have package-lock.json file just delete it and try again. Liliarif (talk) 13:29, 7 November 2022 (UTC)
Ok so I deleted that from the zotero folder, and when I go into the zotero folder again and do npm install, it does the deprecated error messages at first like before, then it gives me this new error:
npm ERR! A complete log of this run can be found in:
npm ERR! /home2/wwiiarch/.npm/_logs/2022-11-07T21_29_27_222Z-debug.logGuillaume Taillefer (talk) 21:36, 7 November 2022 (UTC)
If I put the package-lock.json files back in their original folders, then it returns to the same old error and deprecated messages Guillaume Taillefer (talk) 12:25, 8 November 2022 (UTC)
If it helps these are the deprecated messages for npm install in zotero folder:
npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!
npm WARN deprecated core-js@2.6.5: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm WARN deprecated formidable@1.2.1: Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIau
npm WARN deprecated har-validator@5.1.3: this library is no longer supported
npm WARN deprecated mkdirp@0.5.1: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated request@2.88.0: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated request-promise-native@1.0.7: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated superagent@3.8.3: Please upgrade to v7.0.2+ of superagent. We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing. See the releases tab for more information at <https://github.com/visionmedia/superagent/releases>.
npm WARN deprecated uuid@3.3.2: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated w3c-hr-time@1.0.1: Use your platform's native performance.now() and performance.timeOrigin.Guillaume Taillefer (talk) 01:04, 9 November 2022 (UTC)
I just tried to delete npm and node, and redownload them through nvm. Currently I am using v12.22.22. I then also updated npm using npm install -g npm. I then decided to use the following:
npm install --save core-js
So far everything pretty successful. I had then used npm outdated in zotero to see what was missing, and many things including aws-sdk, md5, require, and others. Because of this I decided to do npm install aws-adk, which then led to mostly success, to which the rest of the problems were solved with npm audit fix --force. This was successful. I then moved onto doing npm start. It then gave me this:
at wrapSafe (internal/modules/cjs/loader.js:915:16)
at Module._compile (internal/modules/cjs/loader.js:963:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (/home2/wwiiarch/zotero/node_modules/jsdom/lib/jsdom/browser/parser/index.js:4:20)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
I have no idea what to do with this, because going into the code it seems that it is supposed to all be there. If anyone has a solution that'd be great, Thanks Guillaume Taillefer (talk) 03:24, 9 November 2022 (UTC)