Project:Support desk/Flow/2020/12
| This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
| This page is an archive. |
| Please ask questions on the current support desk. |
Cannot log in - Session hijacking warning
I'm running V1.32.1, and for a while now I cannot log into my wiki anymore; I get the message "There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Please resubmit the form."
Searching for this issue, I found different suggestions regarding the cache settings, but none of them seem to have an effect. What I'm using now is
$wgMainCacheType = CACHE_ACCEL;
$wgSessionCacheType = CACHE_DB;
The weird thing is, it works in Edge, but not Brave (the browser I'm normally using). And, even weirder, it works if I start a private session. I tried disabling all extensions, and deleted all cookies, but that didn't help. 23.233.157.14 (talk) 01:12, 1 December 2020 (UTC)
- that would strongly suggest something is messed up with your cookies on your browser.
- Check also ad blockers and the like. Bawolff (talk) 02:05, 1 December 2020 (UTC)
- Yeah, that's what I thought, too — that's why I disabled all extensions and deleted all site cookies, but the problem persists... 23.233.157.14 (talk) 15:47, 1 December 2020 (UTC)
- yeah the same problem arised with me too, is there anyone who can guide me in keeping my account safe from the threats which they are talking about Suryansh9 (talk) 16:31, 1 December 2020 (UTC)
- This isn't an answer as such, but I had the same thing recently, after a minor upgrade and move to new server - that message with my usual browser, but not with other ones - after messing about with clearing browser cache, LocalSettings.php as above etc, it just started working again by itself after a day or so. Jonathan3 (talk) 21:34, 3 December 2020 (UTC)
Permissions error when saving pages, but not main_page
Doesn't even make sense how this could be happening, but I can save the main_page, however any other page gives me a permission error.
However I _can_ create and edit new pages. It seems that just existing pages can't be edited. It worked last time I tried.
Any thoughts?
Version 1.35.0
UPDATE - this seems to only happen if I use formatting characters. 123hostcomau (talk) 07:37, 1 December 2020 (UTC)
- please include precise text of the error message. Bawolff (talk) 08:11, 1 December 2020 (UTC)
Get the current section number within wiki code
Dear All,
Is there a magic word or some other means to get the current section number within the wiki page code?
Thank you in advance!
Ciciban (talk) 08:46, 1 December 2020 (UTC)
- im pretty sure the answer is no. Bawolff (talk) 08:35, 2 December 2020 (UTC)
How to prohibit newline at hyphen?
Hi, I am using tables, where I write bible verses like for example:
Mt 7:21-23
When I use the "-" (hyphen), the system often uses it to allow newline. Then I see:
Mt 7:21-
23
How can I prohibit this? I would like to make an order at the beginning of the table, than hyphen should be prohibited for newline in the whole table.
Thanks. Polyphon522 (talk) 08:49, 1 December 2020 (UTC)
- @Polyphon522 Hi, you could use a non-breaking hyphen character (U+2011). (This question is not MediaWiki specific; it could be asked in any web forum.) Malyacko (talk) 11:11, 1 December 2020 (UTC)
- in addition to thr non-breaking hyphan character that Malyacko mentions (copy paste ‑ or in wikicode use the code ‑) the other alternative is to use the white-space css rule (<span style="white-space:nowrap">Mt 7:21-23</span>)
- You can use Templates to make writing the syntax easier.
- See also https://developer.mozilla.org/en-US/docs/Web/CSS/white-space Bawolff (talk) 12:35, 1 December 2020 (UTC)
- Ok thanks.
- But is there a way to easily define for the whole table or Namespace, that all hyphen must be non-breaking? I would save a lot time tiping ‑ Polyphon522 (talk) 13:58, 1 December 2020 (UTC)
- not easily. Its possible to write an extension to do that though, but a bit tricky to make sure it doesnt mess up intentional uses of normal dash.
- Some people use extension:CharInsert to make it easier to insert a formatting code.
- Another commin practise is to create a template named template:- containing just the code for the fancy hyphen, and just do {{-}} which is easier to type and remember. Bawolff (talk) 08:35, 2 December 2020 (UTC)
- Ok. I have still a problem.
- I want for instance to wirte:
- Mt 7:21-23
- To make the line non-breaking, I write:
- Mt 7:21‑23
- I am using the RefTagger (https://de.reftagger.com/). It marks the verse, so the reader is able to make the verse pop-up.
- When I use Mt 7:21‑23, it will only count Mt 7:21 as a verse, and ignore "-23"... Polyphon522 (talk) 14:44, 2 December 2020 (UTC)
- hmm. I think in that case <span style="white-space: nowrap">MT 7:21-23</span> is likely to work better. Bawolff (talk) 12:29, 3 December 2020 (UTC)
You might try adding a class on the table, too, similar to how you'd add class="wikitable sortable" to a MediaWiki table. That could potentially save you a lot of typing
Something like this (untested) might work for you:
/* in your wiki's MediaWiki:Common.css */
.nowrap {
/* see also: https://developer.mozilla.org/en-US/docs/Web/CSS/white-space */
white-space: nowrap;
}
then your table(s) would look something like this:
{| class="wikitable sortable nowrap"
! header one !! header two
|-
| and so on…
|}The situation in CSS with breaking within words, on hyphens, and whether or not to hyphenate at all is somewhat complex, and I get confused by all the different options. You might want to refer to this article to make sure you're using CSS attributes that work in all web browsers. Ernstkm (talk) 16:38, 3 December 2020 (UTC)
Desktop Improvements (Vector skin)
Is there a way to use the new Desktop Improvements on my own wiki? 95.192.5.124 (talk) 12:32, 1 December 2020 (UTC)
- See Project:Support desk/Flow/2020/11#h-Vector_Desktop_Improvements-2020-11-09T08:29:00.000Z – Ammarpad (talk) 03:15, 2 December 2020 (UTC)
RESTBase error
When I try to start up RESTbase, I get this error:
"levelPath":"info/service-runner","msg":"master(21336) initializing 4 workers"}
{"levelPath":"error/metrics","msg":"No such metrics client: 'undefined'}
{"levelPath":"warn/startup","msg":"listening on *:7231"}
I'm assuming it's got something to do with the port RESTbase is listening on, but if anyone can confirm or correct me if I'm wrong? I've set up my config.yaml from RESTBase/Installation#Configuration - Let me know if I sections are needed to be analyzed. Thanks in advance! Trickpants (talk) 16:13, 1 December 2020 (UTC)
Your session data was lost! during initial installation of MediaWiki
I am running the following:
Windows Server 2019
Apache 2.4.46 (Win64)
PHP 7.3.25
MySQL 5.7.29.0 (community distribution)
MediaWiki 1.34.4
I am at present following the basic installation guidelines provided here:
Manual:Installing MediaWiki on Windows Server 2019
During initial MediaWiki installation, after language selection, the installation indicates that session data was lost and to check the php.ini file and the session.save_path. The save path is established and session files are being stored into it. Selecting to Restart installation asks to clear all saved data and restart the installation process. Even after doing this, the same error occurs.
I have tried several combinations of PHP and MediaWiki and all yield the same result during installation.
Any assistance would be greatly appreciated! Agrusczak (talk) 17:01, 1 December 2020 (UTC)
Visual Editor not working after update
I just update to 1.35.0 but Visual Editor will not work anymore, I get “Error contacting the Parsoid/RESTBase server: (curl error: 18) Transferred a partial file)”.
What is the matter? How to correct that? KlausiMaus (talk) 17:08, 1 December 2020 (UTC)
- See phab:T266037 – Ammarpad (talk) 03:13, 2 December 2020 (UTC)
- Anyway, I can't do it.
- What exactly has to be done to get the visual editor up and running? KlausiMaus (talk) 14:33, 4 December 2020 (UTC)
How to multiply collapse tables?
I want for exaple to start the table called ANIMALS.
After I've started with the table head ANIMALS, there comes a new headline called "WILD ANIMALS" and another new headline called "DOMESTIC ANIMALS".
Now I wish to have collapse-element at both "WILD ANIMALS" und "DOMESTIC ANIMALS". There I want to write further contect.
At the same time, I want all three headlines to be at one(!) frame, without any breaks.
How can I do such? Polyphon522 (talk) 17:56, 1 December 2020 (UTC)
- Is this any good?
| Animals | |||||||
|---|---|---|---|---|---|---|---|
|
Jonathan3 (talk) 21:22, 3 December 2020 (UTC)
- Please show me the source code. Polyphon522 (talk) 09:49, 4 December 2020 (UTC)
- You can see the source code following this link Ciencia Al Poder (talk) 11:53, 4 December 2020 (UTC)
Cookies in example.com and dev.example.com conflict, preventing logins
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 two MediaWiki instances hosted at example.com (a remote server) and dev.example.com (my localhost). Whenever I perform a login on example.com, I immediately become unable to log into dev.example.com due to some kind of cookie problem. I get the error message on dev.example.com's login page: "There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Please resubmit the form."
If I delete all cookies for the example.com wiki, I can then log into dev.example.com without any error. But if I then log into example.com again, and log out of dev.example.com, I can't log back into dev.example.com.
The behavior is repeatable in my browser's incognito mode.
I assume I'm not the first person to encounter this behavior. I read about $wgCookieDomain but the docs are sparse. What is a specific solution to this problem so the two sites' cookies do not clash? Thank you very much.
PS: I'm running MW 1.34.4 on PHP 7.4.3 on Ubuntu 18.04. I know MW 1.34.4 is deprecated, but I can't upgrade to 1.35 until I fix this problem. Maiden taiwan (talk) 22:58, 1 December 2020 (UTC)
- So normally people use different db names for the wiki, which prevents cookies from clashing.
- Otherwise you should set $wgCookiePrefix to something different for both wikis to prevent the conflict (i would reccomend not messing with wgCookieDomain and leave it to its default) Bawolff (talk) 08:30, 2 December 2020 (UTC)
- Thank you! Setting $wgCookiePrefix worked. Maiden taiwan (talk) 20:43, 3 December 2020 (UTC)
Retrieving a wikidata QID knowing only a property value using LUA?
Copied from: Extension talk:Wikibase Client/Lua#Retrieving an ID knowing only a property value?
Is it possible to use any extension to retrieve a QID based on a property value within mediawiki? For example, knowing an author's ORCID number, and returning their QID within mediawiki?
- Something like
wikibase.getEntityIdForPropertyValue(Property, Value) - Such that
wikibase.getEntityIdForPropertyValue(P496,'0000-0002-6779-3151')→ Q4693015
Any ideas welcomed! T.Shafee(Evo﹠Evo)talk 08:04, 2 December 2020 (UTC)
- its possible using https://query.wikidata.org . It is also possible using the search feature - https://www.mediawiki.org/wiki/Help:Extension:WikibaseCirrusSearch#haswbstatement
- However, i am not aware of how to do this in lua. Bawolff (talk) 08:24, 2 December 2020 (UTC)
Please open this thread:
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 to change the label translations of ContactPage?
I think it's not correct to mark it as solved - I also tried to add the following text to it as a comment to @Ciencia Al Poder but couldn't post it:
49.230.19.188 (talk) 08:41, 2 December 2020 (UTC)The way I used was the easiest for me;Because I found no search box for the page's content in general I used filtering with CTRL+F as described;
A search box I did find is "סינון לפי קידומת:" which I would freely translate as "filtering by prefix" (I don't know what is the original English text) but it's not helpful to find the messages themselves (perhaps in future versions there will be a more general search box).
- The question you asked: How to change the label translations of ContactPage?.
- Your last message: After I did the described action I checked my form and saw the change.
- Therefore, I think the issue has been resolved. If you have another question please open a new thread (as you have actually done, but with no clear goal or question) Ciencia Al Poder (talk) 08:45, 2 December 2020 (UTC)
- @Ciencia Al Poder I understand your point but I was trying to share my opinion about how the current searching mechanism in the messages webpage could be improved in an "agile" way (as an anonymous user which isn't registered and hence don't file "bug reports").
- Anyway, basically the issue was resolved yes, but I have yet to fully test the forms as with pseudo-inquiries so perhaps I didn't quite 100% tested it (the form-edit-page output is fine yes - but I am not sure about the sent-form output) and I thought I might update about it in the future in the same thread. Again, just sharing my opinion - if you still think the thread should be kept locked I respect it. 49.230.19.188 (talk) 09:09, 2 December 2020 (UTC)
- Instead of searching, you could do the qqx trick, linked in the small Finding messages section.
- It's generally advisable to open a new thread when you have a new issue that diverges from the original thread title, as people may just skip it based on the message title, or if the thread has replies from other users, potentially losing opportunities to get replies from more users. Ciencia Al Poder (talk) 09:26, 2 December 2020 (UTC)
- Ciencia, I didn't recognize a Finding messages section in the "system messages" (translated from Hebrew) webpage in my MediaWiki 1.34.2 installation; I assume it's in another webpage then.
- Thank you for the comments. 49.230.19.188 (talk) 09:42, 2 December 2020 (UTC)
- Localisation/he#Finding_messages Ciencia Al Poder (talk) 10:01, 2 December 2020 (UTC)
Imagemagick in Docker
Hello, i want to use Imagemagick that runs inside Docker. I created a convert.sh file that runs my Imagemagick with arguments:
convert.sh :
#!/bin/bash
IMAGE=imagemagick
ARGS=$@
exec docker run --rm -i --user="$(id -u):$(id -g)" \
-v "$PWD":/workdir \
$IMAGE /bin/bash -c \
"/usr/bin/convert $ARGS"
Command:
./convert.sh --version
Output:
Version: ImageMagick 6.9.7-4 Q16 x86_64 20170114 http://www.imagemagick.org Copyright: © 1999-2017 ImageMagick Studio LLC License: http://www.imagemagick.org/script/license.php Features: Cipher DPC Modules OpenMP Delegates (built-in): bzlib djvu fftw fontconfig freetype jbig jng jpeg lcms lqr ltdl lzma openexr pangocairo png tiff wmf x xml zlib
So my imagemagick is accessible.
Inside LocalSetting.php i added:
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/path/to/my/convert.sh";
Sadly this isn't working. I get the error
Error creating the preview image: sh: 1: convert: not found
How can i fix that? 2003:CB:D71A:8E00:F8AD:5904:858F:DA47 (talk) 10:38, 2 December 2020 (UTC)
MW1_35 This error is repeated rewritten to my error_log file PLEASE HELP
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
text/x-generic error_log ( ASCII text ) [02-Dec-2020 05:57:02 America/Boise] PHP Warning: array_key_exists() expects parameter 2 to be array, bool given in /home1/logosneg/public_html/en/w/extensions/AbuseFilter/includes/AbuseFilterHooks.php on line 52 [02-Dec-2020 05:57:02 America/Boise] PHP Warning: array_key_exists() expects parameter 2 to be array, bool given in /home1/logosneg/public_html/en/w/extensions/AbuseFilter/includes/AbuseFilterHooks.php on line 57 [02-Dec-2020 05:57:17 America/Boise] PHP Warning: array_key_exists() expects parameter 2 to be array, bool given in /home1/logosneg/public_html/en/w/extensions/AbuseFilter/includes/AbuseFilterHooks.php on line 52 [02-Dec-2020 05:57:17 America/Boise] PHP Warning: array_key_exists() expects parameter 2 to be array, bool given in /home1/logosneg/public_html/en/w/extensions/AbuseFilter/includes/AbuseFilterHooks.php on line 57Goodman Andrew (talk) 13:21, 2 December 2020 (UTC)
- @Goodman Andrew What is configured as $wgGroupPermissions for AbuseFilter? See also Extension:AbuseFilter Malyacko (talk) 14:14, 2 December 2020 (UTC)
- @Malyacko: I used the following default from the extension page:
$wgGroupPermissions['sysop']['abusefilter-modify'] = true; $wgGroupPermissions['*']['abusefilter-log-detail'] = true; $wgGroupPermissions['*']['abusefilter-view'] = true; $wgGroupPermissions['*']['abusefilter-log'] = true; $wgGroupPermissions['sysop']['abusefilter-privatedetails'] = true; $wgGroupPermissions['sysop']['abusefilter-modify-restricted'] = true; $wgGroupPermissions['sysop']['abusefilter-revert'] = true;
- What's the solution? Goodman Andrew (talk) 02:08, 3 December 2020 (UTC)
- AbuseFilter reads all values from $wgGroupPermissions. The values you provided are correct. However, you may have some incorrect setting in your LocalSettings.php file not related to abusefilter permissions.
- Check any other setting of $wgGroupPermissions in your LocalSettings.php and be sure it's set correctly Ciencia Al Poder (talk) 12:48, 3 December 2020 (UTC)
Required components You are missing a required extension to PHP that MediaWiki requires to run. Please install:
I've been looking at post for an answer to this and none of them appear to help me. I just upgraded to MediaWiki 1.35. I'm now getting the generic error that I'm missing extensions for mbstring and fileinfo. I have tried now 2 different versions of php (7.3.25, 7.4.13) with no success. I have created my php.ini config file and uncommented my extension_dir to the directory of my dll's. I have also enabled my extensions for fileinfo and mbstring. This didn't work so I tried to enable extensions for php_fileinfo and php_mbstring. At this point I'm really getting annoyed. I had the site working for 1.34 and now I'm having issues. I have also ran php -m and see that fileinfo and mbstring show up. I look at php -i and can see the path to the ini file looks to be correct.
I'm not sure what else to do at this point. 130.76.112.24 (talk) 17:20, 2 December 2020 (UTC)
- commandline php usually uses a different config file than webserver php. So the output of php -i is only relavent to command line maintenance scripts.
- Create a file named info.php containing just:
<?php phpinfo();
- And browse to in in your web browser to check if the needed extensions are installed Bawolff (talk) 20:53, 2 December 2020 (UTC)
PHP Error
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I'm getting the following error: any ideas?
2020/12/02 00:00:48 [error] 486#486: *7870 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Exception: Unable to open file /var/$
Stack trace:
#0 /var/www/prod/w/includes/GlobalFunctions.php(51): ExtensionRegistry->queue('/var/www/prod/w...')
#1 /var/www/prod/w/LocalSettings.php(164): wfLoadExtension('CategoryTree')
#2 /var/www/prod/w/includes/Setup.php(143): require_once('/var/www/prod/w...')
#3 /var/www/prod/w/includes/WebStart.php(89): require_once('/var/www/prod/w...')
#4 /var/www/prod/w/index.php(44): require('/var/www/prod/w...')
#5 {main} The1gofer (talk) 18:02, 2 December 2020 (UTC)
Remove noindex from Special:AllPages
Is there an easy way to have meta robots "noindex" removed from Special:AllPages.
I want all my pages to be in my sitemap.
I tried $wgArticleRobotPolicies = array( 'All_pages' => 'index,follow' ); and this did not do it. CL Wayland (talk) 23:57, 2 December 2020 (UTC)
- I wrote CrawlableAllPages for exactly your use case. ☠MarkAHershberger☢(talk)☣ 19:36, 3 December 2020 (UTC)
Appointment setting with ContactPage
In a MediaWiki 1.34.2 website with Extension:ContactPage I have a principally all-core contact form by which potential customers can inquire about work services.
I desire to add a form field which its label is, approximately:
When would you like to have your appointment approximately?
I contemplate two options to do so:
- A simple text field in which the potential customer writes something like "tomorrow" or "perhaps next week" or "01/01/21" (a flexible approach to suggest an appointment time)
- Some kind of a date field in which a potential customer picks up DD/MM/YY details from a modal window, hence cannot freely write phrases such as "tomorrow" or "perhaps next week" and so forth
Is the second option feasible with the current MediaWiki core release and anyway what approach would you took, would you say? 49.230.13.180 (talk) 07:32, 3 December 2020 (UTC)
- By the way, about option 2, you might want to elaborate about how to let a potential customer to choose an hour and minute, alongside the DD/MM/YY. 49.230.13.180 (talk) 10:27, 3 December 2020 (UTC)
- You should look at PageForms which has a calendar input widget.
- If you want to do this without adding an extension, you're going to have to write some JavaScript. You can probably find an example of how to do this via your favorite search engine. ☠MarkAHershberger☢(talk)☣ 19:39, 3 December 2020 (UTC)
- @MarkAHershberger thanks;
- From
It wasn't clear to me if this extension is an "alternative" or "rival" to ContactPage with a similar purpose (creating contact forms) but with just different features, or perhaps its some kind of an add-on on top of ContactPage?... 49.230.13.180 (talk) 20:09, 3 December 2020 (UTC)an extension to MediaWiki that allows users to add, edit and query data using forms- PageForms will just let you create forms that result in wiki pages. Since you are looking to send notifications, maybe this wouldn't work for you.
- But then.... maybe it would since you could have the forms add on to someone's talk page. ☠MarkAHershberger☢(talk)☣ 20:36, 3 December 2020 (UTC)
- contact page supports field types named date, time or datetime. Why don't you try one of those [1], see what happens. Bawolff (talk) 05:17, 4 December 2020 (UTC)
- Thank you @Bawolff
- Funny, I didn't find data about this at:
- About:
'date' => HTMLDateTimeField::class,'time' => HTMLDateTimeField::class,'datetime' => HTMLDateTimeField::class,
- I assume that
datetimewould be the best for me. - I am not sure how it is correct to create an additional field from that; is there a code example somewhere? How about;? 49.230.13.180 (talk) 06:05, 4 December 2020 (UTC)
'additional_field_x' => array( 'class' => 'datetime', 'label' => 'myLabel', ), - You should try and see the result. – Ammarpad (talk) 06:28, 4 December 2020 (UTC)
- @Ammarpad after adding that code block to LocalSettings.php I get a "שגיאה פנימית" ("inner error" - translated from Hebrew) in the form's webpage with:
49.230.13.180 (talk) 07:13, 4 December 2020 (UTC)TypeError from line 521 of /home/progra87/x/example.com/includes/htmlform/HTMLForm.php: DateTime::__construct() expects parameter 1 to be string, array given- just to clarify, the simple names like 'datetime' go in the type field not the class field (class and type do the same thing with different syntax. You can use either one) Bawolff (talk) 20:57, 4 December 2020 (UTC)
- Use 'class' => HTMLDateTimeField::class – Ammarpad (talk) 08:25, 4 December 2020 (UTC)
Thank you @Ammarpad
It might be a problem unique to Hebrew-builds of MediaWiki but the date field appears somewhat gibberishi for me, either when not clicked or when clicked; I can't paste images here so here are illustrations;
Unclicked:
__ : : _
Clicked:
ו' 4 דצמ' 2020 8:8:8 Z
@Amire80 if you haven't already, you might find it surprising 49.230.13.180 (talk) 09:03, 4 December 2020 (UTC)
- it should look similar to the date field on https://he.wikipedia.org/wiki/מיוחד:תרומות?uselang=he (assuming ooui mode is enabled. Im not sure what contactform's default is) Bawolff (talk) 21:01, 4 December 2020 (UTC)
- Should OOUI be enabled for ContactPage in a separate process than it is enabled for MediaWiki core? 49.230.62.86 (talk) 11:49, 5 December 2020 (UTC)
- Seems my last question should be a separate question. 49.230.62.86 (talk) 14:41, 5 December 2020 (UTC)
- looking at contactpage's source, it looks like ooui is enabled by default. Bawolff (talk) 01:31, 6 December 2020 (UTC)
- As a way to make an appointment with ContactPage was given by Bawolff and Ammarpad, I think this thread should be locked.
- The problem I currently have about normally presenting date widgets in Hebrew websites should deserve another post. 49.230.62.86 (talk) 07:45, 6 December 2020 (UTC)
Lost email
I have lost my old email, and it looks like I cannot reset my password for my existing username roddalitz with a new email address. Please advise. 31.127.254.130 (talk) 11:41, 3 December 2020 (UTC)
- make a new account Bawolff (talk) 12:25, 3 December 2020 (UTC)
"hlist"
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 incorporate the "hlist" feature onto my wiki, but I don't seem to be having much success. I know I've done something like this before; and when I talked to an admin on another wiki that used this feature, he said something about importing an xml document (which he gladly provided), which I did. I also included the CSS for the "hlist" feature. However, neither one of them has seemed to work. Is there something I'm doing wrong?
If it helps, the MediaWiki version I'm using is 1.35.0. The-Psychid (talk) 18:30, 3 December 2020 (UTC)
- The linked page says
Have you done that? ☠MarkAHershberger☢(talk)☣ 19:41, 3 December 2020 (UTC)Using horizontal lists only requires adding the
hlistclass to a container element that holds a HTML list. - I don't think I have. How do I do that? The-Psychid (talk) 20:39, 3 December 2020 (UTC)
- I've launched XAMPP again, and now the "hlist" seems to be working. However, I have no idea what I did. I did upload some xml documents (multiple times, even!), and even put in the CSS. But how it managed to work now as opposed to then is something out of my knowledge. The-Psychid (talk) 01:16, 4 December 2020 (UTC)
- The XML probably was used to import styles to MediaWiki:Common.css or similar. Site CSS is usually cached, and may take some minutes to be applied by the browser. Ciencia Al Poder (talk) 11:56, 4 December 2020 (UTC)
List of links to uncreated pages?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Is the any way to get a list of all internal links, that lead to uncreated pages (red links)? Аргскригициониец (talk) 22:38, 3 December 2020 (UTC)
wiki language
Hi, my cloud provider provides me with country headers. so i was thinking of setting the wiki language depending on the country.
something like this in localsettings:
if country == france
$wgLanguageCode = french
elseif country == germany
$wgLanguageCode = german
and so on.
was also planning on using those headers for if ... wfLoadExtension( 'CookieWarning' ); else don't load
would that be a problem? i guess if its a problem it could only be a problem with the database
I know there's uls but i really don't like all the bloat.
Thank you 85.255.234.218 (talk) 23:30, 3 December 2020 (UTC)
- Not a problem for me personally, but just because I traveled to Whateverland doesn't mean that I know how to speak Whateverish. :) Malyacko (talk) 23:49, 3 December 2020 (UTC)
- :)
- so you also believe that it likely wouldn't break anything? 85.255.234.218 (talk) 01:45, 4 December 2020 (UTC)
- its a bad idea to change $wgLanguageCode (i.e. the Content Language) of a wiki dynamically. This controls things like the urls of special pages, namespace names, certain parts of wikisyntax, name of which page is considered the main page, among other things. These have to be consistent for all users otherwise there could be major cache consistency issues and pages might randomly not work depending on who is viewing.
- However its totally fine to change the "user language". This is different from $wgLanguageCode and is what the language option in Special:Preferences controls and what Extension:UniversalLanguageSelector controls. Bawolff (talk) 01:49, 4 December 2020 (UTC)
- understood. thank you very much 85.255.234.218 (talk) 09:40, 4 December 2020 (UTC)
- actually, can I ask:
- which variable is the one I should change instead of $wgLanguageCode and will it override user preferences?
- Thank you 85.255.234.218 (talk) 13:24, 4 December 2020 (UTC)
trade
hello. i think players should be able to directly trade resources to other players in their coalition. or even be able to just send resources to them. instead of having to go through the market which can cause problems 2603:6081:3840:43B:C5BF:3AB3:54B2:8F64 (talk) 23:48, 3 December 2020 (UTC)
- Welcome to the MediaWiki support desk. Your comment seems to be unrelated to MediaWiki (no idea what "players" are), so you seem to be in the wrong place. Malyacko (talk) 00:17, 4 December 2020 (UTC)
How to change (css) style of ordered list.
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 change style (bullet) from disc to circle in an unordered list (ul) in all articles.
I changed common.css adding
"body .mw-content-ltr li { list-style-type: circle; }"
and it changed ordered list (ol) with circle bullet but not unordered list (it remains with disc bullet)
- I don't know why only ol changed even though ol and ul both uses 'li' tag.
if you see the status, you can come inside to 'eyewiki.net'
- 1st div includes ul which is not changed, and 2nd div includes ol which is changed to circle.
2. Actually I want to change only 2nd-degree ul (which starts with '**') to circle.
(I mean I wanna make 1st-degree ul remain with disc bullet.)
How I can do that?
thank you in advance. Smilewhj (talk) 00:23, 4 December 2020 (UTC)
- its probably because the bullet image is overriding it. You probably want something like:
- Bawolff (talk) 01:44, 4 December 2020 (UTC)
body .mw-content-ltr ul > ul { list-style-type: circle; list-style-image: none;} - Oh, it works. I didn't know mediawiki uses bullet image.
- Thank you very much. Smilewhj (talk) 02:45, 4 December 2020 (UTC)
How to prevent profanity in ContactPage contact form subjects?
MediaWiki 1.34.2 with Extension:ContactPage
All-core contact forms by ContactPage arrive with three fields: "Your name", "Your email" and "Subject".
All three field somewhat allow f"ree text" and this could include profanity, such as "fuck you", "mother fucker" and much worse insults and curses.
Is there a way to reject form submissions if the forms include such terms? 49.230.13.180 (talk) 08:56, 4 December 2020 (UTC)
- There is none by default; you are free to implement a custom blocklist of terms to cover any kind of human languages. Malyacko (talk) 11:03, 4 December 2020 (UTC)
- Per Malyacko's comment I ask;
- Is there something communally maintained (containing translations to all languages)?
- Perhaps something that is being shared between different CMSs (MediaWiki, WordPress, Drupal) and developed according to some accessibility standard. 49.230.13.180 (talk) 11:57, 4 December 2020 (UTC)
Kindly suggest MediaWiki source to upgrade MediaWiki v1.35.0 in the Cloud
HI Support Desk,
Following are the installed software product version(s) those are being used in our RHEL7 server environment.
Installed software
| Product | Version |
|---|---|
| MediaWiki | 1.31.1 |
| PHP | 7.1.30 (apache2handler) |
| MySQL | 5.6.40 |
| ICU | 50.1.2 |
And we are in process of migrating MediaWiki 1.35.0(LTS) version to the Azure Cloud.
So, please suggest us either of following sources such as : Bitnami or MediaWIKI is best to choose for the MediaWiki upgrade in the Azure cloud ?
https://bitnami.com/stack/mediawiki
Thanks in Adv ,
Sanjay SanjayKSahu (talk) 09:14, 4 December 2020 (UTC)
- we make official mediawiki. We dont know anything about how bitnami works. Bawolff (talk) 02:37, 5 December 2020 (UTC)
- Thanks for updates !
- Could you confirm if the mediawiki official release( v1.35.0) LTS is supported to be used/upgraded in cloud environment as well? SanjayKSahu (talk) 14:08, 5 December 2020 (UTC)
- MediaWiki can be used in any cloud environment. You may have to adapt the configuration to your needs, though. ☠MarkAHershberger☢(talk)☣ 17:20, 7 December 2020 (UTC)
last modified
can i put this sentence on the footer "This page was last modified on 4 December 2020, at 19:24."
to the body text? or is there anyother way to show last updated/modified date on top of article instead of scrolling down to bottom?
thank you Dayflying (talk) 12:28, 4 December 2020 (UTC)
- Adding something like this inside the body of text requires Magic Words, however, I think there isn't any for edited date.
- Since the edited date is variable content, afaik the only way of achieving this would be through JavaScript; something like adding the footer-info-lastmod id under the siteSub id. AhmadF.Cheema (talk) 13:11, 5 December 2020 (UTC)
- There are some magic words under the heading "Latest revision to current page" on the Magic Words page. Would one of them be useful? Jonathan3 (talk) 19:12, 8 December 2020 (UTC)
Cargo question (bit of a noob)
Any help really appreciated, as I've been stuck on this for days.
I am following Extension:Cargo/Browsing data, and storing page data so that I can query by full text (Extension:Cargo/Storing data#Storing page data) - I specified to save full page text, and then when running 'php setCargoPageData.php'. I'm getting this error when running that:
MWUnknownContentModelException from line 201 of /opt/bitnami/mediawiki/includes/content/ContentHandlerFactory.php: The content model 'smw/schema' is not registered on this wiki.See https://www.mediawiki.org/wiki/Content_handlers to find out which extensions handle this content model.#0 /opt/bitnami/mediawiki/includes/content/ContentHandlerFactory.php(266): MediaWiki\Content\ContentHandlerFactory->validateContentHandler('smw/schema', NULL)#1 /opt/bitnami/mediawiki/includes/content/ContentHandlerFactory.php(189): MediaWiki\Content\ContentHandlerFactory->createContentHandlerFromHook('smw/schema')
etc..
Is this because I haven't properly uninstalled smw? Maybe?
Any help really welcome :) Willemvgfruit (talk) 13:07, 4 December 2020 (UTC)
- This is really a question for @Yaron Koren. ☠MarkAHershberger☢(talk)☣ 17:22, 7 December 2020 (UTC)
- @MarkAHershberger - thanks for tagging me. @Willemvgfruit - it looks like the issue is that you still have one or more pages in the "smw/schema" namespace, and Cargo is crashing on that. I just checked in a fix for this - if you get the latest Cargo code, that script will hopefully run better. Yaron Koren (talk) 18:33, 7 December 2020 (UTC)
Slave server stuck on ChronologyProtector "expected but failed to find position index"
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 a slave setup like this:
$wgServer = "https://example.com";
$wgDBservers = [
[
'host' => "172.xx.x.xxx",
'dbname' => "wikidb",
'user' => "wiki_user",
'password' => "mypassword",
'type' => "mysql",
'flags' => DBO_DEFAULT,
'load' => 0,
],
[
'host' => "localhost",
'dbname' => "wikidb",
'user' => "wiki_user",
'password' => "mypassword",
'type' => "mysql",
'flags' => DBO_DEFAULT,
'load' => 1,
],
];
$wgDBname = "wikidb";
Saving pages takes a long time. When investigating I found a delay in ChronologyProtector here:But I'm not sure how to debug this further. in ChronologyProtector.php there is private const POS_STORE_WAIT_TIMEOUT = 5; and I can shorten the amount of time it sits and waits that way, but it's probably not a great solution. T0lk (talk) 21:00, 4 December 2020 (UTC)2020-12-04 20:44:38 ip-172-33-1-xx wikidb: Wikimedia\Rdbms\ChronologyProtector::getStartupMasterPositions: client ID is a9cc53aa3c4961a92ec98e6c4331772 (read) 2020-12-04 20:44:44 ip-172-33-1-xx wikidb: Wikimedia\Rdbms\ChronologyProtector::getStartupMasterPositions: expected but failed to find position index. 2020-12-04 20:44:44 ip-172-33-1-xx wikidb: Wikimedia\Rdbms\ChronologyProtector::getStartupMasterPositions: key is global:Wikimedia\Rdbms\ChronologyProtector:a9cc53aa3c4961a92ec98e6c4331772:v2 (read)
- What is $wgMainStash set to, if you have set it? The error means its waiting for something in $wgMainStash that never gets set.
- Although honestly, the change at https://gerrit.wikimedia.org/r/c/mediawiki/core/+/627555 doesn't look right to me. Bawolff (talk) 22:17, 5 December 2020 (UTC)
- Awesome, thanks for the heads up! $wgMainStash was unset. I had begun experimenting with Redis just before you posted this, so I set MainStash to redis on both master/slave servers with replication and the problem was resolved. You helped me find redis too in this Project:Support desk/Flow/2020/10#h-Is_it_possible_to_share_a_login_session_across_multiple_servers?-2020-10-31T09:36:00.000Z though I don't know if I did replication correctly. T0lk (talk) 07:44, 6 December 2020 (UTC)
Change domain
Good day I've just reinstalled media Wikipedia in a new server but I installed using a wrong domain, now all our old content aren't accessible , how can I change my domain after installed?
I've already tried to reinstall but many of the options aren't available anymore. 62.172.76.131 (talk) 22:05, 4 December 2020 (UTC)
- in LocalSettings.php, adjust $wgServer
- If you changed directory structure, you may also have to update $wgScriptPath and $wgArticlePath Bawolff (talk) 02:33, 5 December 2020 (UTC)
How to enable OOUI mode in a default simplest (all core) way?
I have read on OOUI/Using OOUI in MediaWiki and found various ways for enabling OOUI mode.
I understand that the fundamental default way is comprised of two tasks:
- Loading OOUI PHP library
- Turning on OOUI mode in MediaWiki in some way
Because I use a principally all core MediaWiki 1.34.2 version (with just one external extension - Extension:ContactPage) I would most likely do well with the simplest turning on possible which from my understanding is pasting the following code in my index.php?title=MediaWiki:Common.js:
function execute( $param ) {
$out = $this->getOutput();
$out->enableOOUI();
// … More code here …
$group = new OOUI\ButtonGroupWidget( [
// … More widgets here …
] );
$out->addHTML( $group );
}
This didn't help me to solve a problem I have, perhaps because I host my website on a FaaS-modeled hosting environment ("shared hosting") in which OOUI PHP library isn't loaded (I don't think I can control which PHP libraries are installed there).
Have I enabled OOUI correctly?
How to enable OOUI mode in a default simplest (all core) way? 49.230.62.86 (talk) 08:35, 5 December 2020 (UTC)
- Looking at the ContactForm source, it looks like it enables OOUI by default. Bawolff (talk) 22:07, 5 December 2020 (UTC)
- @Bawolff thank you ; here I meant to ask about OOUI in general (not just for ContactPage).
- Is it default in MediaWiki core? 49.230.62.86 (talk) 06:00, 6 December 2020 (UTC)
- I understood it isn't. 49.230.62.86 (talk) 06:00, 6 December 2020 (UTC)
- From:
- php -i | grep -i OOUI
- php -m | grep -i OOUI
- I understand that I don't have OOUI library in my PHP environment (which I can't broadly control because it's FaaS hosting platform). 49.230.62.86 (talk) 07:32, 6 December 2020 (UTC)
- OOUI is not a php extension, so it doesn't show up in php module list. Its a php library, which is included with MediaWiki (It should be in the vendor subdirectory, or a few levels down anyways)
- In general, mediawiki should automatically include it on pages that need it. Bawolff (talk) 20:14, 6 December 2020 (UTC)
SimpleBatchUpload copy/paste images
I've read here that SimpleBatchUpload support the function of copy and paste images, how can i setup it? Thanks Nicola497 (talk) 12:55, 5 December 2020 (UTC)
- See the installation instructions for help with installation. ☠MarkAHershberger☢(talk)☣ 17:24, 7 December 2020 (UTC)
Can I reference the header name as a template parameter?
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.
Ex: let's say I have a {{template}} under == Header ==, can I reference the header name like such: {{template|key=reference to header name}}? Do any extensions make this possible? YousufSSyed (talk) 17:25, 5 December 2020 (UTC)
- 2404:160:8105:81a6:e224:27b3:54dc:2a33 had renamed this to MasFauzi, which I really don't like. I haven't found a way to report the user. can the user get blocked or something? YousufSSyed (talk) 18:58, 5 December 2020 (UTC)
- Unless there's a history or it's persistent/repeated just fixing (as you did) & ignoring is better; most are one-offs. Clump (talk) 19:13, 5 December 2020 (UTC)
Semantic Mediawiki: A subobject query shows the relevant subobjects, but also shows subobjects right below that 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.
Example Query:
{{#ask:[[-Has subobject::+]]
[[Label::~*Test*]]
|?Date
|?Text
}}
Wikitext on page:
{Entry|Date=Dec 4 2020|Label=Test|Text=text}}
{{Entry|Date=Dec 4 2020|Label=Tst|Text=text2}}
Output:
| Date | Text | |
|---|---|---|
| Mediawiki-owner#:Dec 4 2020 | 4 December 2020 | texttext2 |
How can I make it so that the extra subobjects don't show up? YousufSSyed (talk) 19:04, 5 December 2020 (UTC)
VisualEditor missing MediaWiki 1.35
Hi I don't understand why but Visualeditor doesn't load in my editing page, no eeors in console, no error in php_errorlog, simply when I click edit I only see a white box. If I write inside and save everything is good. It's a 1.35 Mediawiki release on php 7.3
I read that on this version I don't activate it.
Maybe I miss simply thing, I'm very new about Mediawiki, it's the 10th hour... but I'm stucked.
Thanks for any advices. KaIrOs (talk) 22:11, 5 December 2020 (UTC)
- based on https://www.contradakruzeta.org/index.php?title=Special:Version , it looks like extension:VisualEditor is not installed. Bawolff (talk) 01:34, 6 December 2020 (UTC)
- Thank you so much, I read everywhere that in version 1.35 it's already installed I feel myself so stupid. KaIrOs (talk) 06:24, 6 December 2020 (UTC)
- During the install phase of MediaWiki, there should be a step asking you if you want to install any extensions. I think what they meant by included in version 1.35 is that VisualEditor is now listed as a choice on that page. Bawolff (talk) 20:12, 6 December 2020 (UTC)
Footer link language
Hi, looking at Manual:Footer (and for example at MediaWiki:Aboutsite), it doesn't seem you can translate the footer link text...
Does that mean that to change the language I'd need to delete those links and create new ones by creating a message and rebuilding with a hook as in the example? 185.69.145.115 (talk) 00:17, 6 December 2020 (UTC)
- Im not sure i understand your question. You can change the text of the link by editing MediaWiki:Aboutsite and you can change the page it points to by editing mediawiki:aboutpage Bawolff (talk) 02:42, 6 December 2020 (UTC)
- Thank you Bawolff and apologies if I wasn't very clear. My question was regarding translation of the link, if I change MediaWiki:Aboutsite I only see the English name of the link.
- Is there a way for a multilanguage wiki to specify different languages for the text of the link, like you can do with the i18n messages in Mediawiki?
- for example in Mediawiki:Aboutsite specifying en: About es: Acerca de and so on.
- So that the linked text is not always About
- Thank you 185.69.145.115 (talk) 11:16, 6 December 2020 (UTC)
- Mediawiki:Aboutsite should control the default (content) language for your wiki (i.e. Whatever $wgLanguageCode is set to). If you've changed your user language in your preferences, then it looks at the subpage for the trasnlation (So Mediawiki:Aboutsite/es controls the spanish version for users who have set their language to spanish in Special:Preferences
- Generally speaking, there are two types of messages in MediaWiki - Content messages which ignore the language in user preferences, and user language messages which take that into account. Aboutpage should be the user langauge type of message. You can also force content messages to be user messages by using $wgForceUIMsgAsContentMsg [but that can sometimes cause issues] Bawolff (talk) 20:11, 6 December 2020 (UTC)
- right ok, understood. Thank you very much Bawolff, that is very helpful
- I didn't realize the subpage would work for translation 185.69.145.115 (talk) 01:04, 7 December 2020 (UTC)
How to create case insensitive readline links
So I modified my database to create case insensitive page links with the following collation/charset changes
lock table page write, temp_page write; create table temp_page like page; insert into temp_page select * from page; alter table temp_page modify page_title varchar(255) character set utf8mb4 collate utf8mb4_general_ci not null; rename table page to backup_20201206_page, temp_page to page; unlock tables;
But now I'd like the redline links to know that they are also case insensitive, is there another table maybe to modify?
eg. I have a actual page called "The_Puddles" - and I link it on a page with [[the Puddles]], the link shows up as a redline/create page link, but when clicked it takes you to the existing page "The_Puddles".
Any help appreciated Bluedreamer1 (talk) 18:30, 6 December 2020 (UTC)
- Initial letters are always considered to be capitalized. Other letters aren't really meant to be case-insensitive. SuggestedTitles automatically creates case-insensitive links, though, with no DB modification. ☠MarkAHershberger☢(talk)☣ 17:28, 7 December 2020 (UTC)
auto made (see this too) list -list of pages in a category with som text
hi all
what i have been looking for is how to make a list of pages in a category not only page name, but with som text too, eks the top form the pages - like the text betwin <strong>xxxxxx</strong> or somthing simular
i work offline on a ampps server php ver 7.3.11 and mediawiki 1.31.10
eks on the list i like to make ::
2020_12_04_12_34(page name): today i tested wind 100m to 500m with my airplane ugly(this text com from the page)
2020_12_01_10:42: another text that tell about what on this page
2020_11_26_18_03: this page is about xxxx x x x xxxx x x x x x
and so on with all pages in a category
thanks BrunoChristensen (talk) 20:30, 6 December 2020 (UTC)
- some of the forks of DynamicPageList (aka not the wikimedia one) could perhaps do that. maybe semantic mediawiki could do that as well. You might have to combine with labelled section transclude extension. Bawolff (talk) 23:46, 6 December 2020 (UTC)
- You could use Extension:DynamicPageList3 to show the page name and an extract from the page (e.g. the first 1000 characters, or everything under a certain heading) for each page in a category. Jonathan3 (talk) 19:07, 8 December 2020 (UTC)
I need help - DonationInterface extension
I need help with DonationInterface extension. I'm stuck and can't get it work Davidsmeltzer07 (talk) 22:34, 6 December 2020 (UTC)
- If you need help, you have to be more specific on what exactly does not work. See Manual:How to debug – Ammarpad (talk) 05:42, 7 December 2020 (UTC)
- DonationInterface extension not showing up in Special:Version.
- This is what I have tried so far:
- I downloaded the extension, placed it in a folder in /extension/, added this wfLoadExtension( 'DonationInterface' ); in LocalSettings.php. Then added this also $wgPaypalGatewayEnabled = true;
- $wgPaypalGatewayAccountInfo = array( 'default' => array( 'AccountEmail' => 'example@gmail.com', ), );
- What else can I do please because it's not working yet? Davidsmeltzer07 (talk) 08:00, 7 December 2020 (UTC)
- I'm still waiting for your reply please Davidsmeltzer07 (talk) 10:36, 7 December 2020 (UTC)
- If it's not being displayed in Special:Version, the extension isn't installed nor enabled in LocalSettings.php. Be sure you edited the right LocalSettings.php file (on the right server, directory, etc) Ciencia Al Poder (talk) 12:19, 7 December 2020 (UTC)
- I have installed more than 5 extensions with this process and they are all working.
- I'm thinking I am not doing something right about DonationInterface Davidsmeltzer07 (talk) 12:34, 7 December 2020 (UTC)
- Can you please go through the extension documentation, and help me with what and what to do, please? Davidsmeltzer07 (talk) 12:35, 7 December 2020 (UTC)
- What do you mean it is not working? Can you link us to your site so we can see what the problem is? ☠MarkAHershberger☢(talk)☣ 17:17, 7 December 2020 (UTC)
- https://wikimass.org
- And I am thinking if a page is needed to be created for the extension to output form. The documentation in the extension is not clear to me. I just need clear steps to follow to make it work Davidsmeltzer07 (talk) 06:08, 8 December 2020 (UTC)
- Looks like your php engine is crashing (probably a SEGFAULT). Look at the error logs of your web server and/or php and come with a meaningful error message Ciencia Al Poder (talk) 14:30, 8 December 2020 (UTC)
- Could it be as a result of using shared hosting instead of VPS? Just thinking... Davidsmeltzer07 (talk) 14:41, 8 December 2020 (UTC)
- [07-Dec-2020 02:56:26 America/New_York] PHP Fatal error: Uncaught Error: Class 'SmashPig\PaymentData\FinalStatus' not found in /home/wikiwoed/public_html/extensions/DonationInterface/DonationInterfaceFormSettings.php:857
- Stack trace:
- 0 /home/wikiwoed/public_html/extensions/DonationInterface/DonationInterface.class.php(34): require_once()
- 1 /home/wikiwoed/public_html/includes/registration/ExtensionRegistry.php(541): DonationInterface::registerExtension(Array)
- 2 /home/wikiwoed/public_html/includes/registration/ExtensionRegistry.php(232): ExtensionRegistry->exportExtractedData(Array)
- 3 /home/wikiwoed/public_html/includes/Setup.php(161): ExtensionRegistry->loadFromQueue()
- 4 /home/wikiwoed/public_html/includes/WebStart.php(89): require_once('/home/wikiwoed/...')
- 5 /home/wikiwoed/public_html/index.php(44): require('/home/wikiwoed/...')
- 6 {main}
thrown in /home/wikiwoed/public_html/extensions/DonationInterface/DonationInterfaceFormSettings.php on line 857Davidsmeltzer07 (talk) 14:50, 8 December 2020 (UTC)- And this is what i have in line 857 in DonationInterfaceFormSettins.php
- 'payment_status' => [ FinalStatus::CANCELLED ], Davidsmeltzer07 (talk) 14:55, 8 December 2020 (UTC)
- It looks like auto-loading is not working since this code is not being loaded. ☠MarkAHershberger☢(talk)☣ 15:50, 8 December 2020 (UTC)
- Thanks, seems I will leave the extension for now.
- If there is any alternative of DonationInterface extension for accepting donations, kindly suggest Davidsmeltzer07 (talk) 18:07, 8 December 2020 (UTC)
- You can put nearly anything in a wiki page using Extension:Widgets including a PayPal donation button, for instance. Jonathan3 (talk) 19:05, 8 December 2020 (UTC)
- Thanks everyone who helped 😊
- I am currently customizing a donation Interface of my choice with WordPress. And I just added a donate button to the sidebar of both vector skin and mobilefrontend. Davidsmeltzer07 (talk) 07:23, 10 December 2020 (UTC)
LocalSettings.php not found.
Hello. I want to use mediawiki 1.35.0, and I even downloaded it, bot it doesn't work! In this site, I can see LocalSettings.php not found. Please set up the wiki first., but when I click the link, there's HTML Error 500. It drives me crazy.. Whitetiger (talk) 05:02, 7 December 2020 (UTC)
- You've yet to upload it probably. Note that it will not be automatically uploaded for you. See Manual:LocalSettings.php#File_contents – Ammarpad (talk) 05:38, 7 December 2020 (UTC)
- You mean that I have to download it by myself? Whitetiger (talk) 05:44, 7 December 2020 (UTC)
- it sounds like the mediawiki installer is giving the 500 error. Check your php error log for the real error. Bawolff (talk) 06:33, 7 December 2020 (UTC)
A date field appears as gibberish
On my FasS-modeled hosting environment with some old CentOS and Bash 3.2.52(2) I have a principally all core MediaWiki 1.34.2 with primary language being Hebrew and just one external extension installed - a principally all core ContactPage.
I have added to ContactPage's 'AdditionalFields' => array() the following date field:
'additional_field_y' => array(
'class' => HTMLDateTimeField::class,
'label' => 'תור רצוי לפגישה (אם יש)',
),
My problem
I have a problem that might be unique to Hebrew or RTL builds of MediaWiki in which a date field appears somewhat gibberish, either when not clicked or when clicked;
I can't post here pictures so here are illustrations:
Unclicked:
__ : : _
Clicked
ו' 4 דצמ' 2020 8:8:8 Z
Further details
As far as I know, the above date field depends on the OOUI PHP library and OOUI should work by default in my website (I don't recall ever doing any action to disable OOUI). It is unlikely that my hosting provider has disabled OOUI on PHP but I could check with them if I need to do so.
My question
Why do I have the above somewhat-gibberish-appearance problem (which also includes some image corruption with some letters appear deleted) and what can I do to solve it so that the date field would work without a problem? 49.230.221.87 (talk) 08:10, 7 December 2020 (UTC)
- appear deleted = appear partially deleted* 49.230.221.87 (talk) 09:42, 7 December 2020 (UTC)
- @AhmadF.Cheema 49.230.221.87 (talk) 09:43, 7 December 2020 (UTC)
- @Eburcat 49.230.138.166 (talk) 19:53, 7 December 2020 (UTC)
- @Yaron Koren did you have any experience with this in Hebrew sites and can help? 49.230.138.166 (talk) 00:46, 8 December 2020 (UTC)
- This sounds like it's a bug in ContactPage... Yaron Koren (talk) 18:22, 8 December 2020 (UTC)
- Actually trying this, the output makes more sense in context. Its unclear to me what you want it to display, and why displaying blank before clicking, and a date after clicking is not what you want.
- Although its pretty hard to tell what you are seeing based on your description, maybe i'm seeing something different. You can use a service like imagur or something to upload images. Bawolff (talk) 07:29, 9 December 2020 (UTC)
- @Bawolff thank you so much for your comment;
- I have created an imagur gallery with two images - when I put a link here I get "⧼abusefilter-warning-linkspam⧽"; anyway, the he imagur path is
/a/2eHr0Yh(edit by bawolff: https://m.imgur.com/a/2eHr0Yh )- The first image reflects an unclicked date field and the second reflects a clicked date field
- I assume that the unclicked field should appear just blank or contain a message such as "click here to set a date" instead the
__ : : _part. - I find the data in the second image misrendered. 182.232.157.44 (talk) 09:28, 9 December 2020 (UTC)
- btw, you should be able to include links if you create an account. Bawolff (talk) 11:50, 9 December 2020 (UTC)
- and Bawolff please feel free to edit including deleting anything you see fit from my comment above (including deleting this comment). 182.232.157.44 (talk) 10:51, 9 December 2020 (UTC)
- hmm. The second image does look misrendered. The baseline of the text looks incorrect and the font size is wrong causing some numbers to be cut off. I'm not sure why that's happening. Is there any custkm css involved?
- I think the first image is working as expected. Bawolff (talk) 11:51, 9 December 2020 (UTC)
- @Bawolff I have deleted all custom CSS from Common.CSS (as well as all JavaScript from Common.js) saved and reloaded the contact form in a hard reload (CTRL+Shift+F5) but it looks for me the same (both in latest Chrome and latest Edge).
- By the way, my skin is Timeless. Perhaps the author / maintainer of the theme is active here and could suffice an advice (if it's not you). 182.232.157.44 (talk) 12:53, 9 December 2020 (UTC)
- Yep, this seems to be a skin issue with Timeless because with Vector I don't have this problem. 182.232.193.236 (talk) 04:53, 10 December 2020 (UTC)
- The
Zappears also in Vector though. 182.232.193.236 (talk) 04:54, 10 December 2020 (UTC) - @Isarra I tag your profile only because I am not registered and cannot file a "bug" about Timeless (a skin I like a lot); I ideologically avoid registering to generally any website.
- Please review this thread in your free time. 182.232.193.236 (talk) 08:02, 11 December 2020 (UTC)
- What is the
Z? 49.230.195.186 (talk) 07:08, 15 December 2020 (UTC) - Anyone who knows what is the Z is welcome to answer here. 49.230.199.165 (talk) 16:49, 16 December 2020 (UTC)
- See phab:T270366 for the Timeless improper rendering – Ammarpad (talk) 08:45, 17 December 2020 (UTC)
- wow thanks ! 49.230.10.186 (talk) 13:31, 17 December 2020 (UTC)
Remove Table of contents
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 is it possible to remove the table of contents on the main page? Thanks Onmiy (talk) 11:18, 7 December 2020 (UTC)
- @Onmiy The first search result is Manual:Table of contents Malyacko (talk) 11:23, 7 December 2020 (UTC)
Search bar
Hello is it possible to start the first page of the wiki only with a search bar like 'Wikipedia' ? Onmiy (talk) 11:52, 7 December 2020 (UTC)
- Yes. Create a custom static HTML page with the search bar and place it on your server. Then, you can set in your server (apache, nginx...) to load that page instead of index.php when someone reaches the root directory of the server. Ciencia Al Poder (talk) 12:18, 7 December 2020 (UTC)
- Thank you. Can I also put a bigger search bar on the main page? Onmiy (talk) 13:44, 7 December 2020 (UTC)
- You may try using Extension:InputBox Ciencia Al Poder (talk) 13:57, 7 December 2020 (UTC)
Changes to MediaWiki & Gadgets Namespaces
Just FYI that the Gadgets page has some confusing instructions that may lead users astray. This is due to what I think is irrelevant instruction on that page. It would be great if a curator could revise or split out the offending section with a 'notice' and also add a link to the Extension:Gadgets/Gadgets_2.0 page. It is a subpage of Gadgets, but nobody will find it without a link.
See my post over there for more detail.
Thanks! ~z929669
Talk 22:45, 7 December 2020 (UTC)
Is there a way to load images frontendly?
We have a MediaWiki 1.35.0 website in which some articles contain images that are being drawn with a REFERRER from WikiCommons.
Large webpages with say 60 images taken from WikiCommons crash (bad gateway 502) once in about three loadings;
For example, the article "מדבריות האורן" crashes about every three times it is loaded in a web browser; if all WikiCommons images are removed from this webpage or if all WikiCommons images are replaced with local images (i.e images that are being loaded from the site's own server environment) the problem is gone and the webpage gets loaded fine generally each time - there is generally no crash of any kind.
Our supervising sysadmin concluded that WikiCommons limit the capacity in which we can draw images from it and proposed to draw them frontendly instead backendly, somehow...
Is there a way to load images frontendly?
It is indeed likely that if we draw images from WikiCommons frontendly (say, in accordance with webpage-fold / webpage-scolling) we will solve the crashing problem once and for all. 49.230.138.166 (talk) 23:57, 7 December 2020 (UTC)
- its probably more to do with loading the image metadata than the image itself, so its very unlikely loading the images on the frontend side would fix your issue.
- some things you might try:
- set $wgResponsiveImages = false; (this may reduce quality on high res displays)
- increase php max execution time (just a bandaid)
- set up some sort of connection pooling system (maybe nginx or envoy could do this, never tried and dont know anyone who has, but in theory this should help a lot)
- normally i am loath to suggest something like this, but for some reason its not configurable and the default is way too short: increase https://github.com/wikimedia/mediawiki/blob/master/includes/filerepo/ForeignAPIRepo.php#L566 $cacheTTL default from 3600 (1 hour) to 604800 (1 week). (Controls how long metadata is cached for)
- upload images locally.
- https://www.mediawiki.org/wiki/Manual:$wgForeignFileRepos#Performance might also contain some helpful advice. Bawolff (talk) 04:30, 8 December 2020 (UTC)
- @Eburcat 49.230.142.106 (talk) 06:41, 9 December 2020 (UTC)
- Sorry for the delayed response
- Thanks for asking the question, 49.230.142.106, and thanks for response @Bawolff!
- I just tried to reproduce the issue, and it does not seem to happen 33% of the time. After a lot of trials, I did manage to reproduce the issue once on a mobile device - closer to 3%, and even then - it was 20-30 seconds for the page to load - without any errors.
- I'm not sure what are the implications of setting Responsiveness to false, and prefer not to hurt other pages at the moment
- At the moment the issue seems to be rare - and when the loading was slow - the php did not reach its timeout, so I don't think this specific band-aid is needed at the moment
- Yep, we loath the 1 month cache as well, but since the changes on this metadata are so rare - I doubt this cache will cause any problem ever
- At the moment that's probably a last resort if the problem keeps annoying us... Doesn't scale as a generic method to cope with this problem, but I don't think we have a lot of pages and page-views with this problem anyway, so we may not need a scalable solution, and locally uploading the files in 3 or 5 pages may be the pragmatic solution to this. Again, if the problem persist. To me it seems rare at the moment, but 49.230.142.106 may have a different experience(?). Eburcat (talk) 06:57, 22 October 2021 (UTC)
Canonical xml.bz2 dump file for unit testing
I am cleaning up a popular dump parser (wikiextractor) and want to add unit tests. For that it would be ideal to have a dump file or two that have all the typical features of the dumps. I have searched high and low but my Google-foo is lacking. Any idea where I might find (or construct) some reasonably sized files for unit testing? AntonOfTheWoods (talk) 01:48, 8 December 2020 (UTC)
- You could use a dump from a small wiki. acewiki dumps look fairly small. ☠MarkAHershberger☢(talk)☣ 15:43, 8 December 2020 (UTC)
- Thanks. I would have thought there would be better ways than that with one of the internet's most used sites but I can always make a couple of examples. AntonOfTheWoods (talk) 04:01, 9 December 2020 (UTC)
Image not showing
Dear users
The x ray images are not showing on the website. Does any one else experience the same issue? 49.196.12.67 (talk) 06:07, 8 December 2020 (UTC)
- Please provide a link; please check your error logs; please explain which filetype; which MediaWiki version, etc. See the sidebar. Also see Manual:Errors and symptoms#Image Thumbnails not working and/or appearing. Malyacko (talk) 08:48, 8 December 2020 (UTC)
UrlShortener error
UrlShortener url is http://gomdoli.info/wikipediatwiki/Special:UrlShortener
$wgUrlShortenerAllowedDomains = array( '(.*\.)?gomdoli\.info', );
I added localsettings.php but error has occurred. Warning: array_map(): Expected parameter 2 to be an array, bool given in /host/home2/gomdoliwiki/html/wikipediat/extensions/UrlShortener/includes/UrlShortenerUtils.php on line 343
Warning: implode(): Invalid arguments passed in /host/home2/gomdoliwiki/html/wikipediat/extensions/UrlShortener/includes/UrlShortenerUtils.php on line 343
Warning: array_map(): Expected parameter 2 to be an array, bool given in /host/home2/gomdoliwiki/html/wikipediat/extensions/UrlShortener/includes/UrlShortenerUtils.php on line 343
Warning: implode(): Invalid arguments passed in /host/home2/gomdoliwiki/html/wikipediat/extensions/UrlShortener/includes/UrlShortenerUtils.php on line 343
like this. So how to fix this error? Gomdoli (talk) 07:19, 8 December 2020 (UTC)
- It looks like you've fixed the problem? What did you do? ☠MarkAHershberger☢(talk)☣ 15:40, 8 December 2020 (UTC)
- Just deleted that commend. Gomdoli (talk) 22:55, 8 December 2020 (UTC)
- There were some recent changes to that part of the extension, could you try downloading the master version of the extension, see if that works better? Bawolff (talk) 06:50, 9 December 2020 (UTC)
Does Phabricator have any APIs?
Hello,
Does Phabricator have any APIs to get some information (e.g. a title of a task)? Atmark-chan <T/C> 14:04, 8 December 2020 (UTC)
- Yes. See the documentation. ☠MarkAHershberger☢(talk)☣ 15:33, 8 December 2020 (UTC)
- See the Help linked from the frontpage of Phabricator: Phabricator/Help. Malyacko (talk) 17:10, 8 December 2020 (UTC)
- @MarkAHershberger, @Malyacko: Thank you!
- I tried, but an error occurred... It is:
Access to XMLHttpRequest at 'https://phabricator.wikimedia.org/api/maniphest.info?...' from origin 'https://www.mediawiki.org' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.- Does it mean I don't have rights or something? How can I resolve the error? Atmark-chan <T/C> 12:13, 9 December 2020 (UTC)
- @Atmark-chan Hi, please always provide clear and complete steps to reproduce a situation. I don't see how or why mediawiki.org should be involved at all. Thanks! Malyacko (talk) 15:49, 9 December 2020 (UTC)
- @Malyacko: Sorry about that... I tried to run this code as a test:
var api = new mw.ForeignApi('https://phabricator.wikimedia.org/api/maniphest.info'); api.get({ 'task_id': '12345' });
- Then the error occurred:
- Atmark-chan <T/C> 10:14, 12 December 2020 (UTC)
Access to XMLHttpRequest at 'https://phabricator.wikimedia.org/api/maniphest.info?action=query&format=json&origin=https%3A%2F%2Fwww.mediawiki.org¢ralauthtoken=6a7ee6767b6e8cc6d3b63dac650f74db38dde76&task_id=12345' from origin 'https://www.mediawiki.org' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
- It looks like you are trying some cross site scripting. This will not work if phabricator does not allow it. See the wikipedia article on CORS or the local page on CORS. ☠MarkAHershberger☢(talk)☣ 22:16, 12 December 2020 (UTC)
- Run that code where? Run that code how?
- Currently this thread lacks most required information to allow someone to reproduce something somewhere. Malyacko (talk) 15:56, 12 December 2020 (UTC)
- I guess that "mw.ForeignApi" call implies that this is some on-wiki stuff somewhere in some page called somehow. But what do I know. Malyacko (talk) 16:02, 12 December 2020 (UTC)
- @Malyacko, @MarkAHershberger: Yes. I tried to do that from https://www.wikimedia.org with the console of the browser (the browser is Google Chrome). It seems requests from https://www.wikimedia.org isn't allowed, but I have no idea to resolve it. Atmark-chan <T/C> 10:23, 13 December 2020 (UTC)
- @Atmark-chan That is very unlikely, as the website www.wikimedia.org will have no idea about "mw" as it is not a MediaWiki site.
- Yes, Phabricator has APIs., to answer the question. Malyacko (talk) 15:10, 13 December 2020 (UTC)
- @Malyacko: That is very unlikely, as the website www.wikimedia.org will have no idea about "mw" as it is not a MediaWiki site.
- Oops, I misunderstood the url. It is www.mediawiki.org (here) not www.wikimedia.org, sorry. Atmark-chan <T/C> 09:47, 15 December 2020 (UTC)
- I still have no idea what *exactly* you are trying to achieve and which problem you try to solve and why... If you have a specific question and clear and complete steps to reproduce, please feel free to ask it including ALL relevant information and background and the problem you actually want to solve, and where, in a dedicated new thread. Thanks. Malyacko (talk) 15:44, 15 December 2020 (UTC)
I need help to enable Macros for my account.
I need help to enable Macros for my account. How would I reach an administrator? 50.55.54.210 (talk) 14:31, 8 December 2020 (UTC)
- Is this related to MediaWiki? AhmadF.Cheema (talk) 14:56, 8 December 2020 (UTC)
- I am not sure. I am in the process of creating an article for Wikipedia and need to generate a content index. It seems like I need to get Macros activated to do this. Any suggestions? 50.55.54.210 (talk) 17:32, 8 December 2020 (UTC)
- What is a "content index" and why do you think that you need to create that? If you refer to "Table of Content" boxes in existing Wikipedia articles, this happens automatically. For further questions about editing a Wikipedia, you may want to refer to support forums on that Wikipedia (as mediawiki.org is about software support for the MediaWiki software). Malyacko (talk) 17:35, 8 December 2020 (UTC)
- Yes, I am referring to "Table of Content" boxes. Is it automatically created after the article is accepted for publication in Wiki? Thanks! 50.55.54.210 (talk) 18:28, 8 December 2020 (UTC)
- Yes, they are created automatically from the section headings, e.g. ==Heading name here== and ===Subheading name here=== if there are enough of them or if __FORCETOC__ appears on the page.
- See w:Help:Cheatsheet and Manual:Table of contents. Jonathan3 (talk) 19:20, 8 December 2020 (UTC)
OAuth Application Connection Error
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I'm rewriting the MediaWikiAuth scripts for phabricator to use OAuth2. Currently I'm getting an Application Connection Error when I try to login.
The necessary parameters are provided, yet I get the error. I don't understand why.
The source code is https://github.com/Test-Wiki/phabricator-extensions/tree/master/src/oauth
I wasn't sure how else to go about debugging this. MacFan4000 (talk) 17:44, 8 December 2020 (UTC)
- I'm using MediaWiki 1.35 with PHP 7.4 MacFan4000 (talk) 21:19, 8 December 2020 (UTC)
- I also don't see anything related in the error log. MacFan4000 (talk) 14:51, 9 December 2020 (UTC)
- https://github.com/wikimedia/mediawiki-extensions-OAuth/tree/d64a696e32bbfe39b0ecbe0946aaf6300f2f4b8e is the version of Extension:OAuth that I'm using. MacFan4000 (talk) 15:07, 10 December 2020 (UTC)
Change Users Email
Is there a way for an administrator to change users email address. Our Domain changed and we have many emails that need to be updated. Or, will each user have to go in and change it themselves? I'm worried about those that don't remember their password and won't be able to get a reset. 50.207.3.194 (talk) 22:03, 8 December 2020 (UTC)
- resetUserEmail.php script can be used to change user email. – Ammarpad (talk) 06:16, 9 December 2020 (UTC)
- Does this work for mywikis.net? I don't know I have access to maintenance as described. Perhaps I just don't know enough about mediawiki. 50.207.3.194 (talk) 19:29, 10 December 2020 (UTC)
MediaWiki 1_35 error log never stops logging the following error every time a page is refreshed
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
In a matter of an hour the error_log file is about 1GB in size with only the following error:
09-Dec-2020 01:08:52 America/Boise] PHP Warning: array_key_exists() expects parameter 2 to be array, bool given in /home1/logosneg/public_html/en/w/extensions/AbuseFilter/includes/AbuseFilterHooks.php on line 52 [09-Dec-2020 01:08:52 America/Boise] PHP Warning: array_key_exists() expects parameter 2 to be array, bool given in /home1/logosneg/public_html/en/w/extensions/AbuseFilter/includes/AbuseFilterHooks.php on line 57 [09-Dec-2020 01:10:24 America/Boise] PHP Warning: array_key_exists() expects parameter 2 to be array, bool given in /home1/logosneg/public_html/en/w/extensions/AbuseFilter/includes/AbuseFilterHooks.php on line 52 [09-Dec-2020 01:10:24 America/Boise] PHP Warning: array_key_exists() expects parameter 2 to be array, bool given in /home1/logosneg/public_html/en/w/extensions/AbuseFilter/includes/AbuseFilterHooks.php on line 57 [09-Dec-2020 01:10:29 America/Boise] PHP Warning: array_key_exists() expects parameter 2 to be array, bool given in /home1/logosneg/public_html/en/w/extensions/AbuseFilter/includes/AbuseFilterHooks.php on line 52 [09-Dec-2020 01:10:29 America/Boise] PHP Warning: array_key_exists() expects parameter 2 to be array, bool given in /home1/logosneg/public_html/en/w/extensions/AbuseFilter/includes/AbuseFilterHooks.php on line 57 [09-Dec-2020 01:10:32 America/Boise] PHP Warning: array_key_exists() expects parameter 2 to be array, bool given in /home1/logosneg/public_html/en/w/extensions/AbuseFilter/includes/AbuseFilterHooks.php on line 52 [09-Dec-2020 01:10:32 America/Boise] PHP Warning: array_key_exists() expects parameter 2 to be array, bool given in /home1/logosneg/public_html/en/w/extensions/AbuseFilter/includes/AbuseFilterHooks.php on line 57 [09-Dec-2020 01:10:33 America/Boise] PHP Warning: array_key_exists() expects parameter 2 to be array, bool given in /home1/logosneg/public_html/en/w/extensions/AbuseFilter/includes/AbuseFilterHooks.php on line 52 [09-Dec-2020 01:10:33 America/Boise] PHP Warning: array_key_exists() expects parameter 2 to be array, bool given in /home1/logosneg/public_html/en/w/extensions/AbuseFilter/includes/AbuseFilterHooks.php on line 57 [09-Dec-2020 01:11:47 America/Boise] PHP Warning: array_key_exists() expects parameter 2 to be array, bool given in /home1/logosneg/public_html/en/w/extensions/AbuseFilter/includes/AbuseFilterHooks.php on line 52 [09-Dec-2020 01:11:47 America/Boise] PHP Warning: array_key_exists() expects parameter 2 to be array, bool given in /home1/logosneg/public_html/en/w/extensions/AbuseFilter/includes/AbuseFilterHooks.php on line 57
What's happening, Abusefilter works fine at the page level. And I have only use the recommended default settings:
$wgGroupPermissions['sysop']['abusefilter-modify'] = true; $wgGroupPermissions['*']['abusefilter-log-detail'] = true; $wgGroupPermissions['*']['abusefilter-view'] = true; $wgGroupPermissions['*']['abusefilter-log'] = true; $wgGroupPermissions['sysop']['abusefilter-privatedetails'] = true; $wgGroupPermissions['sysop']['abusefilter-modify-restricted'] = true; $wgGroupPermissions['sysop']['abusefilter-revert'] = true;Goodman Andrew (talk) 08:20, 9 December 2020 (UTC)
- @Goodman Andrew Do not spam this place. You already posted this. Malyacko (talk) 08:58, 9 December 2020 (UTC)
- You have something wrong in $wgGroupPermissions in LocalSettings.php. Post what's there here – Ammarpad (talk) 11:23, 9 December 2020 (UTC)
- also you should consider setting up logrotated Bawolff (talk) 11:54, 9 December 2020 (UTC)
- @Ammarpad: thanks, there were mistakes in $wgGroupPermissions
- Solved. Goodman Andrew (talk) 07:27, 13 December 2020 (UTC)
Do not download thumbnail images in mobile devices?
I have used css media queries and display:none in the parent div of thumbnails (div.thumb.tright) in order not to display thumbnails in mobile devices. However, when I check with browser tools I see that it is still downloaded. Is there anyway for them not to download for mobile devices or at least load a much smaller thumbnail size?
Using MW 1.31/Timeless Spiros71 (talk) 14:27, 9 December 2020 (UTC)
- you need something more like extension:MobileFrontend for something like that (not sure if it does support that, just that is the sort of thing you would need). Note MobileFrontend can be configured to use Timeless instead of default Minerva skin.
- Also be sure to check using real phones because image download behaviour of phones might be different from a desktop browser. Bawolff (talk) 08:45, 13 December 2020 (UTC)
- Thanks, I have used the extension + MinervaNeu for the mobile. MinervaNeu is optimal in this case. Spiros71 (talk) 09:30, 13 December 2020 (UTC)
Two extensions
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I'm trying to install MediaWiki 1.35 on my Apache2 webserver with Linux Mint 20 Cinnamon 4.6.6 and PHP 7.4.3. I have the dpkg packages php-mbstring and php-xml with both having the version 2:7.4+75 installed. When I go to the MediaWiki folder and load index.php, it says that the two extensions are missing.
EDIT: I got it, I just had to restart the browser. No Clue Whatsoever (talk) 15:00, 9 December 2020 (UTC)
How to only enable one single primary authentication provider.
Hello! I'm trying to use Google Login to enable authoritative login (Extension:GoogleLogin#Authoritative mode).
To achieve this I need to only have ONE primary authentication provider. Where do I manage the primary authentication providers? And ensure GoogleLogin is the only one?
Thanks :) Willemvgfruit (talk) 15:20, 9 December 2020 (UTC)
- You might consider using PluggableAuth instead since it allows you to use Google as your primary and only authentication provider. ☠MarkAHershberger☢(talk)☣ 14:52, 11 December 2020 (UTC)
- normally you would use $wgAuthManagerConfig Bawolff (talk) 08:43, 13 December 2020 (UTC)
When editing on my site it says forbidden
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi. I am currently editing the Main Page on my site (frogcog.com/app) and whenever I try and edit, show changes or preview it says Forbidden on an error page. Jayatleeds (talk) 15:41, 9 December 2020 (UTC)
- Are you logged in? What is the complete and full error message? What are your group permissions for editing? Malyacko (talk) 08:45, 10 December 2020 (UTC)
- yes Jayatleeds (talk) 21:59, 10 December 2020 (UTC)
- I am logged in with the username "Admin". With all permissions Jayatleeds (talk) 22:00, 10 December 2020 (UTC)
- Won't let me do anything like wiki table or anything like wikitable code. Jayatleeds (talk) 22:03, 10 December 2020 (UTC)
- Hello? Jayatleeds (talk) 23:15, 10 December 2020 (UTC)
- ima just make this again Jayatleeds (talk) 23:25, 10 December 2020 (UTC)
Can I reference the header name as a template parameter?
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.
Ex: let's say I have a {{[[Template:{{{1}}}|{{{1}}}]]}} under == Header ==, can I reference the header name like such: {{[[Template:{{{1}}}|{{{1}}}]]}}? Do any extensions make this possible? YousufSSyed (talk) 16:39, 9 December 2020 (UTC)
Recreate MediaWiki startpage design
Hello, I just started creating my own wiki. I'd like to use the same structure (with the three boxes) on my own frontpage. Since the wiki frontpage content is protected, I can't view how it is done... is there a way to view how it was constructed? Or a tutorial to basic page design that you could point me to?
Best regards and thanks, Hannes 147.87.242.26 (talk) 16:40, 9 December 2020 (UTC)
- Hi, which website is this about? Is this about mediawiki.org? If so, you can still see the front page: Protection only refers to editing, not to viewing. Malyacko (talk) 17:54, 9 December 2020 (UTC)
- There are so many translate tags and other things on the Mediawiki home page template that you might be better just searching the internet about how to do it from scratch. Here it is: https://www.mediawiki.org/w/index.php?title=Template:Main_page&action=edit
- The easiest way to start would likely be Help:Tables, if you want to use HTML tables. Jonathan3 (talk) 11:18, 10 December 2020 (UTC)
- It's a quite bad idea to (ab)use tables for layout and that won't work on smaller screens. That's what CSS is for. Malyacko (talk) 13:40, 10 December 2020 (UTC)
- Yes that is the theory, but in practice sometimes it's all right (see this comment for instance). It's the easy way and was trying to help someone who seemed to be a beginner :-) Jonathan3 (talk) 23:04, 10 December 2020 (UTC)
- Thanks, Malyacko and Jonathan3 for your input. I haven't had time to follow up until now... but it seems like a hard task to use the Mediawiki homepage as a basis. Indeed many translate tags and all that. I was hoping for a simple re-usable styling element built-in to the Mediawiki framework... but it seem like I have to know actual HTML/CSS to rebuild a structure as dynamic, "pretty" and clear as this :( 147.87.242.150 (talk) 15:22, 15 December 2020 (UTC)
- Not really, you can simply strip all translate tags, set up TemplateStyles, and keep custom HTML to a minimum. (But indeed, MediaWiki itself does not provide CSS Box styles.) Malyacko (talk) 10:26, 16 December 2020 (UTC)
Semantic Mediawiki: A subobject query shows the relevant subobjects, but also shows subobjects right below that one
Example Query:
{{#ask:[[-Has subobject::+]]
[[Label::~*Test*]]
|?Date
|?Text
}}
Wikitext on page:
{Entry|Date=Dec 4 2020|Label=Test|Text=text}}
{{Entry|Date=Dec 4 2020|Label=Tst|Text=text2}}
Output:
| Date | Text | |
|---|---|---|
| Mediawiki-owner#:Dec 4 2020 | 4 December 2020 | texttext2 |
How can I make it so that the extra subobjects don't show up? YousufSSyed (talk) 16:42, 9 December 2020 (UTC)
- Please don't spam. You already posted this at Project:Support desk/Flow/2020/12#h-Semantic_Mediawiki:_A_subobject_query_shows_the_relevant_subobjects,_but_also_sh-2020-12-05T19:04:00.000Z Malyacko (talk) 17:18, 9 December 2020 (UTC)
- Fine, I'll keep this one open and the other one closed. I won't open more threads on this. YousufSSyed (talk) 18:55, 9 December 2020 (UTC)
how do you insert external links to a page?
- how to insert? Theewolfsterproject (talk) 19:49, 9 December 2020 (UTC)
- Where is this 'reply'? Theewolfsterproject (talk) 19:53, 9 December 2020 (UTC)
- [http://www.example.com Example link]
- ... displays as ...
- Example link Jonathan3 (talk) 11:14, 10 December 2020 (UTC)
Temporarily hiding / unhiding text
How do you create a paragraph of content hidden / unhidden by a "twistie" ? 161.97.211.93 (talk) 21:36, 9 December 2020 (UTC)
ContactPage: How to automatically send copies of messages?
MediaWiki 1.34.2 with ContactPage 2.3.
In the end of every generally-default ContactPage contact form there is a small text like (translating from Hebrew):
Send me a copy of my message
Right next to that text there is a small box to check - if the box is checked and the form was submitted, a copy of the submitted form would also be sent to the sender.
I personally believe that it is best to always send a copy of a message to a sender and I desire to prevent a case were a user mistakenly didn't check the checkbox and then feels bad for not doing so; furthermore, I also need a smaller form.
- How to automatically send copies of messages to a sender (and by doing so, programmatically eliminate the need to decide and to check any checkbox for that purpose)? 182.232.193.236 (talk) 06:44, 10 December 2020 (UTC)
- You could edit the extension - or maybe use jQuery and CSS to change the form? Jonathan3 (talk) 11:13, 10 December 2020 (UTC)
- Do you mean to something like:
- ==JavaScript==
document.querySelector("#ooui-php-10").click();- // After
DOMContentLoadedevent or afterloadevent - ==CSS==
#ooui-php-10 {display: none}- ==If so==
- I can do that, but I would prefer a backend way because JavaScript can often be elusive or is more prone to sometimes not taking place in comparison to backend behavior. 182.232.193.236 (talk) 11:28, 10 December 2020 (UTC)
- Using the JS is also OK. If you want it enforced server side, you'll have to edit the extension source files and so. – Ammarpad (talk) 11:54, 10 December 2020 (UTC)
- This is the JavaScript I used in Common.JS:After executing it I have executed
document.querySelector("#ooui-php-10").click(); document.querySelector("#ooui-php-22").style.display = "none";document.querySelector("#ooui-php-22").style.display = "block";and I got a checked box. - I ask for a review of this code; would you do it slightly differently? 182.232.193.236 (talk) 12:33, 10 December 2020 (UTC)
- i would try and find a more explicit way to select that checkbox. ooui-php-22 sounds like an identifier that might change if the form gets more fields Bawolff (talk) 08:40, 13 December 2020 (UTC)
- If it works it works! Jonathan3 (talk) 23:12, 10 December 2020 (UTC)
- @Jonathan3 I generally agree, but I should update that I had a problem with my above approach:
- If I add "additional fields" to the field before a field which currently have the id of
"#ooui-php-10"theclick()no longer works. - I think there is a broader problem fields not having "really" unique IDs. 182.232.193.236 (talk) 15:53, 11 December 2020 (UTC)
- I’ve not used this extension, but once you have finalised your form do the different elements all have unique id’s that remain the same each time the form is displayed? Jonathan3 (talk) 16:04, 11 December 2020 (UTC)
- @Jonathan3 if I understood correctly than my answer is yes,
- But, in this time of "beta" (or shall I say "alpha") version of my website, I often add or remove fields and the "ordinal ID's" are changed (their numbers are changed). 182.232.193.236 (talk) 16:42, 11 December 2020 (UTC)
- It sounds like the answer is to change Common.js whenever necessary after changing the form :-) Jonathan3 (talk) 16:50, 11 December 2020 (UTC)
- Yes; indeed fixed selectors to the fixed elements would prevent such need. 182.232.193.236 (talk) 03:33, 12 December 2020 (UTC)
Changes
So im upgrading from version 1.17 up to 1.19.24. What are the changes that i need to do when using the same LocalSettings.php, same /images folder and /extensions folder from the old exsisting one. And then i use that with the new 1.19.24 version.
Because im gonna push it up to 1.31, but without breaking it all i push version after version. (or almost) 2A00:E08:4008:1305:3893:982E:7425:7191 (talk) 09:19, 10 December 2020 (UTC)
- Everybody on here seems to advise just upgrading all in one go. Although there is a paragraph about it here - Manual:Upgrading#How_do_I_upgrade_from_a_really_old_version?_In_one_step,_or_in_several_steps? - which seems more cautious.
- The remainder of that page answers your other questions (download the tarball, copy across the files/directories you're keeping, and run update.php). It may be that there is a way to see what the new defaults are in LocalSettings.php - something I've never done over the years - see the unanswered question here: Project:Support desk/Flow/2020/11#h-Update_LocalSettings.php-2020-11-23T22:34:00.000Z. Jonathan3 (talk) 11:09, 10 December 2020 (UTC)
Chackuser problem
I am using CheckUser extension but my wiki is not working my wiki link https://bn.gyaanipedia.co.in/wiki/index.php/%E0%A6%AA%E0%A7%8D%E0%A6%B0%E0%A6%A7%E0%A6%BE%E0%A6%A8_%E0%A6%AA%E0%A6%BE%E0%A6%A4%E0%A6%BE 116.58.203.19 (talk) 09:43, 10 December 2020 (UTC)
- See Manual:How to debug – Ammarpad (talk) 11:52, 10 December 2020 (UTC)
- See now is not resolved 116.58.201.16 (talk) 13:37, 10 December 2020 (UTC)
- See the error message. It says that you use incompatible version. Please explain how exactly you downloaded the 1.35 branch (!) of CheckUser if you use a 1.35 version of MediaWiki. Malyacko (talk) 13:38, 10 December 2020 (UTC)
Searching full-text when keyword matches page title
Hey people, so let's say I have this situation:
- I opened a page named "Test".
- I wanted to do a full-text search for other pages containing the keyword "test".
- I went ahead to the search bar and typed "test".
- When I pressed enter, it jumped back to the article "Test" instead of the Special:Search page.
Is it possible to somehow alter this behaviour, through JS maybe? i.e. Check if the search keyword matches the page title, and if so, jump to a full-text search instead of back to self? Leranjun (talk) 11:21, 10 December 2020 (UTC)
- Don't do step 4. Instead, after step 3, use your mouse/finger and select the isolated item in the result suggestion, which is usually the last item, you'll see it with italicised description "containing..." and is not bolded. – Ammarpad (talk) 11:49, 10 December 2020 (UTC)
- Thanks, I see that. Is there any way to make it default when this kind of situation happens? Leranjun (talk) 11:54, 10 December 2020 (UTC)
Remove translated pages out of search results.
Hello mediawiki, support and users,
we got mediawiki version 1.34 and just installed the translation extensions:
Babel
cldr
CleanChanges
Translate
UniversalLanguageSelector
Now it works fine we think but we don't like the way it creates 2 new pages when translating.
Is there a way to remove translated pages out of the search results and category summary? on this moment we translated two pages and it creates two new pages with an prefix /en (english) or /nl (dutch) switching works fine but i don't want to see these pages i only want to see the one main page.
Thank you for the information 89.105.214.210 (talk) 13:52, 10 December 2020 (UTC)
- It is a simmilar quistion as Project:Village Pump/Flow/2013#h-Multiple_languages_in_search_results-2013-10-16T19:09:00.000Z Any change in the last 5 years? 89.105.214.210 (talk) 07:48, 11 December 2020 (UTC)
- In case that you use Extension:CirrusSearch you can pass "inlanguage:en" as an additional search parameter, in addition to your search term. See Help:CirrusSearch. With the default MediaWiki search, no idea. Malyacko (talk) 08:19, 11 December 2020 (UTC)
- Hello malyacko,
- Yes i am using cirrusearch with elastisceach... Is there a way to always force the inlanguage:en or inlanguage:NL search? Or is there a way to exlude pages to be found if the have the /nl or /en prefix behind them. TeunEbb (talk) 08:48, 11 December 2020 (UTC)
This JavaScript greatly distort the content of the page it's called from
<div class="alignleft">
<script type="text/javascript">
amzn_assoc_ad_type = "banner";
amzn_assoc_marketplace = "amazon";
amzn_assoc_region = "US";
amzn_assoc_placement = "assoc_banner_placement_default";
amzn_assoc_campaigns = "pets";
amzn_assoc_banner_type = "category";
amzn_assoc_p = "290";
amzn_assoc_isresponsive = "false";
amzn_assoc_banner_id = "0R20J8BH7NWMY00Z62R2";
amzn_assoc_width = "320";
amzn_assoc_height = "250";
amzn_assoc_tracking_id = "example-20";
amzn_assoc_linkid = "5e8b1bc589c24dce3fed35bd032";
</script>
<script src="//z-na.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&Operation=GetScript&ID=OneJS&WS=1"></script>
</div>
It iframe version works well but the display ads aren't responsive.
Implementation I placed the code in a widget page like 'Widget:Amazon pets' and called it from a wiki page that I want the ad on.
The wiki in question is MW_1_35
Observation JavaScript from another company works well, like:
<script async="async" data-cfasync="false" src="//pl15492318.passtechusa.com/f89aff248cafa8900d29c7e25b678e44/invoke.js"></script>
Goodman Andrew (talk) 14:52, 10 December 2020 (UTC)
- Hi, why was this posted here? Do you have some question? that is related to MediaWiki? Malyacko (talk) 18:52, 10 December 2020 (UTC)
- @Malyacko: I thought it has something to do with JS settings of the MW instance or how the widget extension handles JS? Goodman Andrew (talk) 05:10, 11 December 2020 (UTC)
- So you have the Widget extension installed. That's useful information to initially mention. If anything "distorts" something then please explain what and how.
- (Also, 1.33 is an ancient unsupported version full of security vulnerabilities. Please run supported software and run secure systems.) Malyacko (talk) 08:15, 11 December 2020 (UTC)
- @Malyacko: I'm sorry, I meant MW_1_35 and the widget extension is up-to-date too.
- By distortion, I mean the Amazon associate ad code folded the entire page contents into a tiny width(about 1/3 of width) to the left of the page, leaving a widther white space on the right hand side in the desktop view. Nothing happens in mobile view.
- I think it has something to do with the statement "div class="alignleft">..." at the start of the code, but when I removed it or charged it to something else, no ads display. The code was generated automatically as I choice ads banner on Amazon. Goodman Andrew (talk) 00:15, 12 December 2020 (UTC)
- this is a question more for amazon support than us.
- > I think it has something to do with the statement div class="alignleft">
- Probably pretty unlikely, but you can use your browsers developer console to figure out what css is applied to that div, before and after the script is loaded. Bawolff (talk) 08:36, 13 December 2020 (UTC)
Collapsible menu/navigation item in the sidebar
I am new to MediaWiki and trying to create a collapsible menu/navigation structure in the sidebar area, but seems like options for the 1.35.0 version are non-existent. Can someone help me out by pointing me in the correct direction. We are utilizing the Vector skin. 167.21.141.39 (talk) 14:56, 10 December 2020 (UTC)
- Collapsing the complete panel/sidebar horizontally? Collapsing some sections in the sidebar vertically? Malyacko (talk) 08:17, 11 December 2020 (UTC)
It seems that $wgNamespaceRobotPolicies doesn't work
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 wanted to restrict indexing of all template pages. So, I added these strings from Manual:$wgNamespaceRobotPolicies
$wgNamespaceRobotPolicies = [ NS_TEMPLATE => 'noindex' ];
$wgNamespaceRobotPolicies = [ NS_TEMPLATE_TALK => 'noindex' ];
And there was absolutely no effect, I didn't see any noindex tag in source code of templates (I checked through browser source code view). I tried this on clean install 1.35, result was the same, no effect. Аргскригициониец (talk) 17:05, 10 December 2020 (UTC)
- you're overriding values, so what you wrote, only the last one would take effect.
- Try instead:
- $wgNamespaceRobotPolicies[NS_TEMPLATE] = "noindex";
- $wgNamespaceRobotPolicies[NS_TEMPLATE_TALK] = "noindex";
- also there might be cache involved (although in theory any edit to LocalSettings.php should clear that). If it still doesnt show up after changing LocalSettings.php, try making a simple edit to the page to see if that causes the meta tags to change, just to rule out caching as an issue. Bawolff (talk) 08:32, 13 December 2020 (UTC)
- It actually works now, thanks! I think, there should be some examples like that in the Manual:$wgNamespaceRobotPolicies. Аргскригициониец (talk) 17:18, 14 December 2020 (UTC)
Forgot Both My User Name and Password to Account
Some years ago I created a Wikipedia user account which I did not end up using. I also did not retain a note of either the use name or password I had chosen. Recently, I tried to access an account under my name and a series of guessed passwords but was denied because there was an account under that name already, presumably mine. Is there anyway to recover the original account without creating a new one?
Thank you for your help. 204.111.17.10 (talk) 17:18, 10 December 2020 (UTC)
- If you have email attached and have access to it, you can use Special:PasswordReset to regain access. Otherwise the alternative is to create new account. – Ammarpad (talk) 18:42, 10 December 2020 (UTC)
Why wouldn't a template render this?
[{{{URL|}}} {{{name|}}}]
renders [ http://sample.org name]
rather than what you would expect [http://sample.org name]
Both URL and name render as expected on their own, but media wiki doesn't make the external link. 68.110.86.107 (talk) 19:41, 10 December 2020 (UTC)
- what's the code that calls the template?
- What you posted should definitely work. Bawolff (talk) 08:26, 13 December 2020 (UTC)
I can't edit something on my site (wiki)
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Why can't I post
<code> {| cellspacing="5" cellpadding="0" style="margin: 0em 0em 1em 0em; border: 1px solid #1DA0E7; background: #B3DDF4; width: 100%"
| '''''Alert Text Here''''' </code>
Each time it says forbidden and it also says it for simple tables Jayatleeds (talk) 21:57, 10 December 2020 (UTC)
- miss out the <code> and </code> tags Jayatleeds (talk) 21:58, 10 December 2020 (UTC)
When editing things with wikitable it says "Forbidden"
- The following code does not work when I try to add it to my MainPage as it says it is Forbidden?
- {| cellspacing="5" cellpadding="0" style="margin: 0em 0em 1em 0em; border: 1px solid #1DA0E7; background: #B3DDF4; width: 100%"
- | '''''Alert Text Here'''''
- |}
- -- Or any code to do with wikitables it just says "Forbidden". Jayatleeds (talk) 23:27, 10 December 2020 (UTC)
- What is the full and complete error message, at which stage, after which actions? Malyacko (talk) 08:16, 11 December 2020 (UTC)
- I tested the code out on my user page but it won't let me post it. Jayatleeds (talk) 10:02, 11 December 2020 (UTC)
- just the word "Forbidden" Jayatleeds (talk) 10:02, 11 December 2020 (UTC)
- - whenever I enter anything like wikitable or anything like that Jayatleeds (talk) 10:34, 11 December 2020 (UTC)
- What is the full and complete error message, at which stage, after which actions? Malyacko (talk) 08:16, 11 December 2020 (UTC)
- You click the "Publish Changes" button at the bottom? Then a complete new blank page is shown and its only content is "Forbidden"?
- Which MediaWiki version?
- Is this a public MediaWiki installation that you could link to?
- Is there anything in the log of your webserver software? Malyacko (talk) 12:02, 11 December 2020 (UTC)
- I am using shared hosting, on namecheap, and you can view the installation. It is not public generally yet but people can login / signup: frogcog.com/app
- I think the version is the latest: 1.35.0
- @Malyacko Jayatleeds (talk) 15:30, 11 December 2020 (UTC)
- Manual:Common errors and symptoms#Attempting to save an edit gives you a 403 Forbidden error, or you get redirected to the main page Malyacko (talk) 16:31, 11 December 2020 (UTC)
Help with Debug Message
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.
Can anyone please advise what is wrong? Site seems to be functioning properly besides the message on displayed at the bottom of every page:
[SQLBagOStuff] MainObjectStash using store ReplicatedBagOStuff[objectcache] MainWANObjectCache using store APCUBagOStuffIP: 172.23.0.1Start request GET /w/index.php/Special:NewItemHTTP HEADERS:HOST: localhost:8181CONNECTION: keep-aliveUPGRADE-INSECURE-REQUESTS: 1USER-AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.67 Safari/537.36 Edg/87.0.664.55ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9SEC-FETCH-SITE: same-originSEC-FETCH-MODE: navigateSEC-FETCH-USER: ?1SEC-FETCH-DEST: documentREFERER: http://localhost:8181/w/index.php/Special:SpecialPagesACCEPT-ENCODING: gzip, deflate, brACCEPT-LANGUAGE: en-US,en;q=0.9COOKIE: mw_installer_session=10b270fb852a1753cf5882dbf25e1b0f; catalyzerwiki_cwUserName=Tw; quickstatements=59f62a888543a3f04e6888577e7a06cd[Wikibase] Wikibase\SettingsArray::getSetting: setting conceptBaseUri was given as a closure, resolve it to 'http://localhost:8181/entity/'[localisation] LocalisationCache: using store LCStoreDB[session] SessionManager using store APCUBagOStuff[session] SessionBackend "k3fkf42265f50hj58nampt8pb4vnu5c1" is unsaved, marking dirty in constructor[session] SessionBackend "k3fkf42265f50hj58nampt8pb4vnu5c1" save: dataDirty=1 metaDirty=1 forcePersist=0[cookie] already deleted setcookie: "catalyzerwiki_session", "", "1576124957", "/", "", "", "1", ""[cookie] already deleted setcookie: "catalyzerwikiUserID", "", "1576124957", "/", "", "", "1", ""[cookie] already deleted setcookie: "catalyzerwikiToken", "", "1576124957", "/", "", "", "1", ""[cookie] already deleted setcookie: "forceHTTPS", "", "1576124957", "/", "", "", "1", ""[DBReplication] Cannot use ChronologyProtector with EmptyBagOStuff[DBReplication] Wikimedia\Rdbms\LBFactory::getChronologyProtector: request info {"IPAddress": "172.23.0.1","UserAgent": "Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/87.0.4280.67 Safari\/537.36 Edg\/87.0.664.55","ChronologyProtection": false,"ChronologyPositionIndex": 0,"ChronologyClientId": false}[DBConnection] Wikimedia\Rdbms\LoadBalancer::lazyLoadReplicationPositions: executed chronology callback.[DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: connected to database 0 at 'mysql'.[Wikibase] Wikibase\SettingsArray::getSetting: setting dataRightsUrl was given as a closure, resolve it to 'https://creativecommons.org/licenses/by-nc-sa/4.0/'[Wikibase] Wikibase\SettingsArray::getSetting: setting dataRightsText was given as a closure, resolve it to 'Creative Commons Attribution-NonCommercial-ShareAlike'Unstubbing $wgLang on call of $wgLang::unstub from Wikibase\Repo\WikibaseRepo->getUserLanguage[MessageCache] MessageCache using store APCUBagOStuff[MessageCache] MessageCache::load: Loading en... local cache is empty, global cache is expired/volatile, loading from databaseParserFactory: using preprocessor: Preprocessor_Hash[Wikibase] Wikibase\SettingsArray::getSetting: setting thisWikiIsTheRepo was given as a closure, resolve it to true[Wikibase] Wikibase\SettingsArray::getSetting: setting repoUrl was given as a closure, resolve it to 'http://localhost:8181'[Wikibase] Wikibase\SettingsArray::getSetting: setting repositories was given as a closure, resolve it to array ('' =>array ('repoDatabase' => false,'baseUri' => 'http://localhost:8181/entity/','entityNamespaces' =>array ('item' => 120,'property' => 122,),'prefixMapping' =>array ('' => '',),),)[Wikibase] Wikibase\SettingsArray::getSetting: setting siteGlobalID was given as a closure, resolve it to 'catalyzerwiki'User::getBlockedStatus: checking...[GlobalTitleFail] MessageCache::parse called by Wikibase\Repo\Specials\SpecialPageCopyrightView->getHtml/Wikibase\Repo\Specials\SpecialPageCopyrightView->render/Message->parse/Message->toString/Message->parseText/MessageCache->parse with no title set.MediaWiki::preOutputCommit: primary transaction round committedMediaWiki::preOutputCommit: pre-send deferred updates completedMediaWiki::preOutputCommit: session changes committedMediaWiki::preOutputCommit: LBFactory shutdown completedTinyttt (talk) 04:45, 11 December 2020 (UTC)
- Please see the sidebar and provide basic version information etc Malyacko (talk) 08:16, 11 December 2020 (UTC)
- Ah, was running v1.34 instead of 1.35. Updated and the message is gone thank you! Tinyttt (talk) 19:28, 11 December 2020 (UTC)
- You have probably set
$wgShowDebug = true;in LocalSettings.php file. You need to find and remove that line or set it to falsey value. – Ammarpad (talk) 10:09, 11 December 2020 (UTC) - Thank you. To confirm though, there are no actual bugs in this message? I thought the code only shows bugs if there are any
$wgShowDebug = true;Tinyttt (talk) 18:48, 11 December 2020 (UTC) - Yes, there's no bug. – Ammarpad (talk) 19:26, 11 December 2020 (UTC)
set up 버튼을 눌렀는데 http 500 오류가 뜹니다.
미디어위키 파일을 서버에 설치하고 set up 버튼을 눌렀는데 http 오류가 뜹니다. 해결 방법을 아십니까? 219.254.55.96 (talk) 12:55, 11 December 2020 (UTC)
- Which button where at which step? What does the webserver log say? Malyacko (talk) 13:57, 11 December 2020 (UTC)
Visual Editor doesn't show thumbnails
Hello mediawiki, support and users,
We have Mediawiki 1.34 together with visual editor and parsoid. We are testing it to see if it can use it withing our company. Now we where first in the english language but most of our pages where dutch so we changed the sitecontent to nl $wgLanguageCode = "nl"; ..
so far no problems everything seemed to work but now when creating a new page and uploading pictures using visual editor everything seems fine the image's are showing up and you are able to edit them. Then when you save it the page look fine images are there nothing to worry about. But when you then reopen it all the image's turn into a blue text saying thumb no preview images. And when you follow the link where thumb is linked to it says error. When you save it again and navigate to the page the images are there so mediawiki it self has no problem with it..
I think it has something todo that now the file extenstion has changed when uploading from [[file:something.png|thumb]] to [[bestand:something.png|thumb]]. I tried changing the sourcetext manually from "bestand" back to "File" when i do that the preview pictures are back... How can i prevent this from happing can't visual editor preview handle other languages?
best regards 89.105.214.210 (talk) 13:05, 11 December 2020 (UTC)
- Try using 1.35 and seeing if the bug is fixed there. As a bonus, 1.35 has a longer support cycle and doesn't require a separate Parsoid. ☠MarkAHershberger☢(talk)☣ 14:45, 11 December 2020 (UTC)
- Hello @MarkAHershberger an any other who read this. thank you for your reply. Can i upgrade the visual editor to 1.35 while staying on 1.34 with the wiki itself? There isn't some language setting within visual editor that has to be changed ? I find it wierd that visual editor can't handle an change in language and is only made for English i can't really believe that.
- Thank you for your reply 46.231.85.162 (talk) 14:52, 14 December 2020 (UTC)
- @MarkAHershberger just upgraded to mediawiki 1.35 wich included an visual editor same problem exist over there. Please advice 176.74.243.129 (talk) 12:57, 16 December 2020 (UTC)
- If you otherwise have VE working, but are simply experiencing this problem with the uploaded images, then please file a bug in Phabricator. ☠MarkAHershberger☢(talk)☣ 19:19, 16 December 2020 (UTC)
Having a certain skin for the website in general but another for forms
I am having this problem which happens with the skin Timeless and which currently doesn't have a solution from the community.
A workaround to the problem is to format my ContactPage contact forms per another skin (i.e a skin which is not Timeless) --- I could have, for example a form formatted per Vector instead Timeless.
Can I have a certain skin for the website in general but another for forms and if so how could this be done? 182.232.193.236 (talk) 13:41, 11 December 2020 (UTC)
- I don't know of a way to fix this, but I would file a bug against Timeless. ☠MarkAHershberger☢(talk)☣ 14:41, 11 December 2020 (UTC)
- You could try Extension:SkinPerPage. Jonathan3 (talk) 18:01, 11 December 2020 (UTC)
1.35 migrateActors.php SQL 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'm upgrading Mediawiki from 1.27 to 1.35 and I'm getting SQL error in migrateActors.php during update.php script. I think the problem is with double brackets i the SQL statement. Im using PostgreSQL 9.4
Thanks for help
Radek
Creating actor entries for all registered users
... 1 - 101
Wikimedia\Rdbms\DBQueryError from line 1699 of /var/www/wiki/includes/libs/rdbms/database/Database.php: Error 42601: ERROR: INSERT has more target columns than expressions
LINE 1: ...eActors::doDBUpdates */ INTO "actor" (actor_user,actor_name...
^
HINT: The insertion source is a row expression containing the same number of columns expected by the INSERT. Did you accidentally use extra parentheses?
Function: MigrateActors::doDBUpdates
Query: INSERT INTO "actor" (actor_user,actor_name) VALUES (('1','Admin'))
#0 /var/www/wiki/includes/libs/rdbms/database/Database.php(1683): Wikimedia\Rdbms\Database->getQueryException('ERROR: INSERT ...', '42601', 'INSERT INTO "ac...', 'MigrateActors::...')
#1 /var/www/wiki/includes/libs/rdbms/database/Database.php(1658): Wikimedia\Rdbms\Database->getQueryExceptionAndLog('ERROR: INSERT ...', '42601', 'INSERT INTO "ac...', 'MigrateActors::...')
#2 /var/www/wiki/includes/libs/rdbms/database/Database.php(1227): Wikimedia\Rdbms\Database->reportQueryError('ERROR: INSERT ...', '42601', 'INSERT INTO "ac...', 'MigrateActors::...', false)
#3 /var/www/wiki/includes/libs/rdbms/database/DatabasePostgres.php(578): Wikimedia\Rdbms\Database->query('INSERT INTO "ac...', 'MigrateActors::...', 128)
#4 /var/www/wiki/includes/libs/rdbms/database/Database.php(2321): Wikimedia\Rdbms\DatabasePostgres->doInsertNonConflicting('actor', Array, 'MigrateActors::...')
#5 /var/www/wiki/includes/libs/rdbms/database/Database.php(3566): Wikimedia\Rdbms\Database->insert('actor', Array, 'MigrateActors::...', Array)
#6 /var/www/wiki/includes/libs/rdbms/database/DatabasePostgres.php(656): Wikimedia\Rdbms\Database->doInsertSelectGeneric('actor', 'user', Array, Array, 'MigrateActors::...', Array, Array, Array)
#7 /var/www/wiki/includes/libs/rdbms/database/Database.php(3477): Wikimedia\Rdbms\DatabasePostgres->doInsertSelectNative('actor', 'user', Array, Array, 'MigrateActors::...', Array, Array, Array)
#8 /var/www/wiki/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->insertSelect('actor', 'user', Array, Array, 'MigrateActors::...', Array, Array)
#9 /var/www/wiki/includes/libs/rdbms/database/DBConnRef.php(527): Wikimedia\Rdbms\DBConnRef->__call('insertSelect', Array)
#10 /var/www/wiki/maintenance/includes/MigrateActors.php(78): Wikimedia\Rdbms\DBConnRef->insertSelect('actor', 'user', Array, Array, 'MigrateActors::...', Array, Array)
#11 /var/www/wiki/maintenance/includes/LoggedUpdateMaintenance.php(45): MigrateActors->doDBUpdates()
#12 /var/www/wiki/maintenance/doMaintenance.php(107): LoggedUpdateMaintenance->execute()
#13 /var/www/wiki/maintenance/migrateActors.php(27): require_once('/var/www/wiki/m...')
#14 {main} 164.61.210.154 (talk) 13:42, 11 December 2020 (UTC)
- It would be good to get an SQL log of what is going on here if we could.
- Could you add to your LocalSettings.php and then tell us what the last few lines in that file are when you re-run update.php? ☠MarkAHershberger☢(talk)☣ 15:18, 11 December 2020 (UTC)
$wgDebugLogGroups = [ 'DBQuery' => "$wgTmpDirectory/query.log" ];
- Hi, query.log here:
- 2020-12-11 15:48:06 PRG11WEB3P10001 wikidb-wiki-: Schema "wiki" added to the search path
- 2020-12-11 15:48:11 PRG11WEB3P10001 wikidb-wiki-: startAtomic: entering level 0 (MigrateActors::doDBUpdates)
- 2020-12-11 15:48:11 PRG11WEB3P10001 wikidb-wiki-: startAtomic: entering level 1 (MigrateActors::doDBUpdates (outer))
- 2020-12-11 15:48:11 PRG11WEB3P10001 wikidb-wiki-: startAtomic: entering level 2 (MigrateActors::doDBUpdates (inner))
- 2020-12-11 15:48:11 PRG11WEB3P10001 wikidb-wiki-: Error 42601 from MigrateActors::doDBUpdates, ERROR: INSERT has more target columns than expressions
- LINE 1: ...eActors::doDBUpdates */ INTO "actor" (actor_user,actor_name...
- ^
- HINT: The insertion source is a row expression containing the same number of columns expected by the INSERT. Did you accidentally use extra parentheses?
- INSERT INTO "actor" (actor_user,actor_name) VALUES (('1','Admin')) localhost
- #0 /var/www/wiki/includes/libs/rdbms/database/Database.php(1658): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, string, string, string)
- #1 /var/www/wiki/includes/libs/rdbms/database/Database.php(1227): Wikimedia\Rdbms\Database->reportQueryError(string, string, string, string, boolean)
- #2 /var/www/wiki/includes/libs/rdbms/database/DatabasePostgres.php(578): Wikimedia\Rdbms\Database->query(string, string, integer)
- #3 /var/www/wiki/includes/libs/rdbms/database/Database.php(2321): Wikimedia\Rdbms\DatabasePostgres->doInsertNonConflicting(string, array, string)
- #4 /var/www/wiki/includes/libs/rdbms/database/Database.php(3566): Wikimedia\Rdbms\Database->insert(string, array, string, array)
- #5 /var/www/wiki/includes/libs/rdbms/database/DatabasePostgres.php(656): Wikimedia\Rdbms\Database->doInsertSelectGeneric(string, string, array, array, string, array, array, array)
- #6 /var/www/wiki/includes/libs/rdbms/database/Database.php(3477): Wikimedia\Rdbms\DatabasePostgres->doInsertSelectNative(string, string, array, array, string, array, array, array)
- #7 /var/www/wiki/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->insertSelect(string, string, array, array, string, array, array)
- #8 /var/www/wiki/includes/libs/rdbms/database/DBConnRef.php(527): Wikimedia\Rdbms\DBConnRef->__call(string, array)
- #9 /var/www/wiki/maintenance/includes/MigrateActors.php(78): Wikimedia\Rdbms\DBConnRef->insertSelect(string, string, array, array, string, array, array)
- #10 /var/www/wiki/maintenance/includes/LoggedUpdateMaintenance.php(45): MigrateActors->doDBUpdates()
- #11 /var/www/wiki/includes/installer/DatabaseUpdater.php(1343): LoggedUpdateMaintenance->execute()
- #12 /var/www/wiki/includes/installer/DatabaseUpdater.php(512): DatabaseUpdater->migrateActors()
- #13 /var/www/wiki/includes/installer/DatabaseUpdater.php(475): DatabaseUpdater->runUpdates(array, boolean)
- #14 /var/www/wiki/maintenance/update.php(181): DatabaseUpdater->doUpdates(array)
- #15 /var/www/wiki/maintenance/doMaintenance.php(107): UpdateMediaWiki->execute()
- #16 /var/www/wiki/maintenance/update.php(253): require_once(string)
- #17 {main}
- 2020-12-11 15:48:11 PRG11WEB3P10001 wikidb-wiki-: cancelAtomic: canceling level 2 (MigrateActors::doDBUpdates (inner))
- 2020-12-11 15:48:11 PRG11WEB3P10001 wikidb-wiki-: cancelAtomic: canceling level 1 (MigrateActors::doDBUpdates (outer))
- 2020-12-11 15:48:11 PRG11WEB3P10001 wikidb-wiki-: cancelAtomic: canceling level 0 (MigrateActors::doDBUpdates) 164.61.210.154 (talk) 15:49, 11 December 2020 (UTC)
- Hmm... I was hoping to see some SQL statements. Could you replace that with
$wgDebugLogFile = "$wgTmpDirectory/debug.log";
- and then paste the results? ☠MarkAHershberger☢(talk)☣ 16:52, 11 December 2020 (UTC)
- Hi, see below. No SQL statements. I found out on general postgres discussion that it is caused by double brackets at the end of the statement (in values). However I am not able to find, where in mediawiki code, the statement is generated.
- root@PRG11WEB3P10001:/var/www/wiki# more debug.log
- [objectcache] MainWANObjectCache using store EmptyBagOStuff
- Start command line script update.php
- [localisation] LocalisationCache using store LCStoreNull
- [localisation] LocalisationCache::isExpired(cs): cache missing, need to make one
- [localisation] LocalisationCache::recache: got localisation for cs from source
- [session] SessionManager using store SqlBagOStuff
- [DBReplication] Wikimedia\Rdbms\LBFactory::getChronologyProtector: request info {
- "IPAddress": "127.0.0.1",
- "UserAgent": false,
- "ChronologyProtection": false,
- "ChronologyPositionIndex": 0,
- "ChronologyClientId": false
- }
- [DBConnection] Wikimedia\Rdbms\LoadBalancer::lazyLoadReplicationPositions: executed chronology callback.
- [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: opened new connection for 0
- [DBConnection] Wikimedia\Rdbms\LBFactory::destroy: closing connection to database 'localhost'. 164.61.210.154 (talk) 18:27, 11 December 2020 (UTC)
- can you file a bug for this in phabricator? ☠MarkAHershberger☢(talk)☣ 19:20, 11 December 2020 (UTC)
- Can you point me how exactly should I do that? I never used phabricator. So it is a bug and there is no way to continue the upgrade, just rollback? Thanks
- Radek 185.51.248.11 (talk) 19:30, 11 December 2020 (UTC)
- Nevermind, Bug submitted: https://phabricator.wikimedia.org/T269964 Unhspider (talk) 20:05, 11 December 2020 (UTC)
short URL problems..
I have a configered wiki directed to mydomain.com:8080. It is only reachable from the internal net. Now I have to make it reachable under mydomain.com/wiki, so I followed the instructions given in Manual:Short URL/Apache#Setting up the rewrite rules. Since I am more confident with the Alias Directive, I use this instead of the Rewrite Directives.
The problem is, that I only get a 500 error in the Browser and the following Error in Apache: PHP Parse error: syntax error, unexpected '$wgArticlePath' (T_VARIABLE) in /var/www/mediawiki/LocalSettings.php on Line 40. It seems to be obvious that I set the ArticlePath wrong, but I do not see any mistakes.
The mediawiki is located in /var/www/mediawiki, our main website is located in /var/www/ourdomain.com/http. The main website is reachable under ourdomain.com/home.
The version of mediawiki is 1.31.1, of php is 7.2.24-0ubuntu0.18.04.7, of mysql is 5.7.32-0ubuntu0.18.04.1 and of apache is 2.4.29.
The vhost.conf for Apache looks like this:
| vhost.conf |
|---|
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName ourdomain.com
ServerAlias ourdomain.com
DocumentRoot /var/www
<Location /home>
Order Allow,Deny
Allow from all
</Location>
Alias /home "/var/www/ourdomain.com/html"
<Directory /var/www/ourdomain.com/html>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ScriptAlias /cgi-bin /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# RewriteEngine On
# RewriteRule ^/?(/.*)?$ %{DOCUMENT_ROOT}/ourdomain.com/html/$1 [L]
<Location /wiki>
Order Allow,Deny
Allow from all
</Location>
Alias /wiki "/var/www/mediawiki/index.php/"
<Directory /var/www/mediawiki>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
Include /etc/mediawiki/mediawiki.conf
# RewriteEngine On
# RewriteRule ^/?wiki(/.*)?$ /mediawiki/index.php [L]
</VirtualHost>
|
The LocalSettings.php looks like this:
| LocalSettings.php |
|---|
<?php
# This file was automatically generated by the MediaWiki 1.31.1
# installer. If you make manual changes, please keep track in case you
# need to recreate them later.
#
# See includes/DefaultSettings.php for all configurable settings
# and their default values, but don't forget to make changes in _this_
# file, not there.
#
# Further documentation for configuration settings may be found at:
# https://www.mediawiki.org/wiki/Manual:Configuration_settings
# Protect against web entry
if ( !defined( 'MEDIAWIKI' ) ) {
exit;
}
## Uncomment this to disable output compression
# $wgDisableOutputCompression = true;
$wgSitename = "ourwiki";
$wgMetaNamespace = "Ourwiki";
## The URL base path to the directory containing the wiki;
## defaults for all runtime URL paths are based off of this.
## For more information on customizing the URLs
## (like /w/index.php/Page_title to /wiki/Page_title) please see:
## https://www.mediawiki.org/wiki/Manual:Short_URL
## Die Zeile stammt aus dem Test, das Wiki aus dem Internet erreichen
## zu können mit der "ourdomain.com.test.conf" für Apache:
$wgServer = "http://www.ourdomain.com";
$wgScriptPath = "/mediawiki"
$wgArticlePath = "/wiki/$1"
$wgUsePathInfo = false
$wgDebugLogFile = "/var/log/mediawiki/ourdomain.com.test.log"
wfErrorLog( "An error occurred.\n", '/var/log/mediawiki/my-custom-debug.log' );
## The URL path to static resources (images, scripts, etc.)
$wgResourceBasePath = $wgScriptPath;
## The URL path to the logo. Make sure you change this from the default,
## or else you'll overwrite your logo when you upgrade!
$wgLogo = "$wgResourceBasePath/resources/assets/mediawiki.png";
## UPO means: this is also a user preference option
$wgEnableEmail = true;
$wgEnableUserEmail = true; # UPO
$wgEmergencyContact = "apache@www.ourdomain.com";
$wgPasswordSender = "apache@www.ourdomain.com";
$wgEnotifUserTalk = false; # UPO
$wgEnotifWatchlist = false; # UPO
$wgEmailAuthentication = true;
## Database settings
$wgDBtype = "mysql";
$wgDBserver = "localhost";
$wgDBname = "wikidb";
$wgDBuser = "wikiuser";
$wgDBpassword = "***********";
# MySQL specific settings
$wgDBprefix = "";
# MySQL table options to use during installation or update
$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary";
## Shared memory settings
$wgMainCacheType = CACHE_ACCEL;
$wgMemCachedServers = [];
## To enable image uploads, make sure the 'images' directory
## is writable, then set this to true:
$wgEnableUploads = true;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";
# InstantCommons allows wiki to use images from https://commons.wikimedia.org
$wgUseInstantCommons = false;
# Periodically send a pingback to https://www.mediawiki.org/ with basic data
# about this MediaWiki instance. The Wikimedia Foundation shares this data
# with MediaWiki developers to help guide future development efforts.
$wgPingback = true;
## If you use ImageMagick (or any other shell command) on a
## Linux server, this will need to be set to the name of an
## available UTF-8 locale
$wgShellLocale = "C.UTF-8";
## Set $wgCacheDirectory to a writable directory on the web server
## to make your wiki go slightly faster. The directory should not
## be publically accessible from the web.
#$wgCacheDirectory = "$IP/cache";
# Site language code, should be one of the list in ./languages/data/Names.php
$wgLanguageCode = "de";
$wgSecretKey = "****************************************************************";
# Changing this will log out all existing sessions.
$wgAuthenticationTokenVersion = "1";
# Site upgrade key. Must be set to a string (default provided) to turn on the
# web installer while LocalSettings.php is in place
$wgUpgradeKey = "***********************";
## For attaching licensing metadata to pages, and displaying an
## appropriate copyright notice / icon. GNU Free Documentation
## License and Creative Commons licenses are supported so far.
$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
$wgRightsUrl = "https://creativecommons.org/licenses/by/4.0/";
$wgRightsText = "Creative Commons „Namensnennung“";
$wgRightsIcon = "$wgResourceBasePath/resources/assets/licenses/cc-by.png";
# Path to the GNU diff3 utility. Used for conflict resolution.
$wgDiff3 = "/usr/bin/diff3";
## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'vector', 'monobook':
$wgDefaultSkin = "timeless";
# Enabled skins.
# The following skins were automatically enabled:
wfLoadSkin( 'MonoBook' );
wfLoadSkin( 'Timeless' );
wfLoadSkin( 'Vector' );
# Enabled extensions. Most of the extensions are enabled by adding
# wfLoadExtensions('ExtensionName');
# to LocalSettings.php. Check specific extension documentation for more details.
# The following extensions were automatically enabled:
wfLoadExtension( 'PdfHandler' );
# End of automatically generated settings.
# Add more configuration options below.
## Folgende Dateitypen kann man hochaden:
$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'doc',
'xls', 'mpp', 'pdf', 'ppt', 'tiff', 'bmp', 'docx', 'xlsx',
'pptx', 'ps', 'odt', 'ods', 'odp', 'odg'
);
|
I am trying now for three days, please help me ... Markus96hd (talk) 13:58, 11 December 2020 (UTC)
- Your LocalSettings.php file is PHP code and the end of each statement is signified by a semi-colon (";").
- You are missing some semi-colons. For example,
$wgScriptPath = "/mediawiki" $wgArticlePath = "/wiki/$1" $wgUsePathInfo = false $wgDebugLogFile = "/var/log/mediawiki/ourdomain.com.test.log"
- should be
$wgScriptPath = "/mediawiki"; $wgArticlePath = "/wiki/$1"; $wgUsePathInfo = false; $wgDebugLogFile = "/var/log/mediawiki/ourdomain.com.test.log";
- That is what the error "syntax error, unexpected '$wgArticlePath' (T_VARIABLE)" is telling you. ☠MarkAHershberger☢(talk)☣ 15:04, 11 December 2020 (UTC)
- Hi, Did you try https://shorturls.redwerks.org/ ? Kirikouk (talk) 15:07, 11 December 2020 (UTC)
- OMG.. thanks a lot!!!!! I feel a bit ashamed..
- Now I have the problem that it doesn't load any pictures and Skins. In the URL it links to ourdomain.com/mediawiki/... instead of ourdomain.com/wiki/... Markus96hd (talk) 15:21, 11 December 2020 (UTC)
- At this point, you should probably take @Kirikouk's suggestion and try the shorturls helper. The SSL cert for the site was expired when I last checked, but the site itself still works. ☠MarkAHershberger☢(talk)☣ 15:27, 11 December 2020 (UTC)
- @MarkAHershberger @Kirikouk If I would know you in real-life I would spend you a beer.. I will try it the suggestion Markus96hd (talk) 15:31, 11 December 2020 (UTC)
infobox error from xml FANDOM import
hi,
I imported an xml backup from removed FANDOM wiki and I want to install it for try and I get this error for infobox.
I try many things to install infobox but dont find way to do. You can see below the error with fresh install of latests mediawiki 1.35.0 without any extension.
Do you thing is easy to done ? Thanks Kirikouk (talk) 14:56, 11 December 2020 (UTC)
- It looks like fandom support some tags (e.g.
<infobox>) that MediaWiki does not support out of the box. To address this, you should install whatever extensions they have that support these. ☠MarkAHershberger☢(talk)☣ 15:22, 11 December 2020 (UTC) - Thanks for replying.
- I do lot of things but cannot do InfoBox in my Wiki and I dont find solutions. Kirikouk (talk) 17:22, 11 December 2020 (UTC)
- Hello,
- I try this : http://www.note.id.lv/2015/05/wikimedia-install-manual-ubuntu-1404.html
- But doens't work for me to old maybe. Someone have freshest tuto ?
- Thanks. Kirikouk (talk) 17:09, 13 December 2020 (UTC)
How to make ContactPage "message body" output RTL?
Mediawiki 1.34.2 in Hebrew with ContactPage.
I have tested my ContactPage contact form and the output I got in my email client Gmail was generally fine besides that the "message body" output is Left To Right (LTR) Instead Right To Left (RTL) and it is also aligned to the left (of the document) instead of being aligned to the right (of the document).
Current output format:
מספר הטלפון שלך: 0500000000 אתר (אם יש): example.com תפקיד בארגון (אם יש): מנכ"ל
Desired output format:
מספר הטלפון שלך: 0500000000 אתר (אם יש): example.com תפקיד בארגון (אם יש): מנכ"ל
Interim note
This problem doesn't exist with headings/titles --- headings are indeed RTL even if they include special characters and/or English (unlike the "message body"); perhaps because the headings are reformatted by Gmail but "message bodies" aren't.
My question
How to make ContactPage "message body" output RTL? 182.232.193.236 (talk) 16:11, 11 December 2020 (UTC)
- If you think it’s Gmail then try with a different one and compare.
- Maybe best to ask this on the extension talk page? Jonathan3 (talk) 17:55, 11 December 2020 (UTC)
- @Jonathan3 I think that the "message body" output is LTR because of MediaWiki; thus I seek a way to make it RTL from MediaWiki. 182.232.193.236 (talk) 03:32, 12 December 2020 (UTC)
- so email is a bit of a mess when it comes to directionality and can vary between email clients.
- I am just talking generally here and not about this specific extension (i have no idea what it does)
- Rich text email is the most reliable approach, where you can use html (e.g. <div dir="rtl" lang="he">...body of email... </div>) to specify the desired directionality. This works effectively and consistently and is the best choice but im not sure the extension supports that.
- If that is not an option (i.e. only plaintext email is supported), the second best approach is to add hidden unicode control characters. You need to make the email start with a U+202B RIGHT-TO-LEFT EMBEDDING at the very beginning, and end with a U+202C POP DIRECTIONAL FORMATTING. If you are editing LocalSettings.php, you can write these characters as
"\u{202B}rest of starting text"and use \u{202C} for the pop directional formatting character. Note this only works with double quotes (") not single quotes ('). It can also be confusing what is the "beginning" of the string when mixing with hebrew because the bidirectionality may display it at the end even if the computer displays it at the beginning and vice versa. - See also https://www.w3.org/International/questions/qa-bidi-unicode-controls Bawolff (talk) 08:21, 13 December 2020 (UTC)
- I should ask in Hebrew Wikipedia if they implemented rich text email and can explain what to do. 182.232.193.236 (talk) 18:08, 14 December 2020 (UTC)
- @Bawolff
- I understand that Hebrew Wikipedia doesn't have any contact forms besides the core Special:EmailUser; they actually refer users who wish to contact them formally to direct email addresses of the Israeli branch of WikiMedia Foundation, which according to What CMS dot org, uses WordPress.
- I have tried to search data about my problem and found nothing.
- I think that I would prefer Rich text email but as I am not a PHP programmer I don't know how to start to implement it. I ask for some graceful hints what to do as I might understand it from my little JavaScript knowledge. 49.230.195.186 (talk) 08:31, 15 December 2020 (UTC)
- I have tried to search data about my problem and found nothing. => I have tried to search data about how to add rich text to my ContactPage emails and found nothing.* 49.230.195.186 (talk) 08:52, 15 December 2020 (UTC)
I can't add the following string in a page text field "://"
Hi,
I've a problem since i moved my Mediawiki project on a serverless infra (AWS Elastic container + Aurora). Everthing seems to work properly except one problem : I can't post a particular string in some new or existing text field of an article. The string is : ://
It's a pretty big deal because i can't refer to any http link anymore ! Each time I try to update a page with a link I get a "HTTP 403 Forbbiden"
I tried to start a new Mediawiki on a standalone EC2 with a brand new DB created by the setup (MariaDB/Mysql) on Aurora : same problem. It seems that Aurora is the problem..
Any feedback on this infra particular setting ?
Thx in advance.
Julien 93.6.177.190 (talk) 16:44, 11 December 2020 (UTC)
- This isn't really a MediaWiki issue. You should probably ask the AWS folks. ☠MarkAHershberger☢(talk)☣ 16:53, 11 December 2020 (UTC)
- Probably caused by ModSecurity if you have it enabled in your server. Ciencia Al Poder (talk) 22:20, 11 December 2020 (UTC)
- Thx for the answers, I'm gonna try to check around ModSecurity. It seems that it can be disabled via .htacces... Let's try !
- I still feel a bit surprised that on a fresh install it doesn't work. Mediawiki's Docker image must have been used with AWS serverless DB i guess. I'll keep try to tune the new DB. 93.6.177.190 (talk) 14:57, 14 December 2020 (UTC)
How to import DokuWiki pages into MediaWiki install?
Hi there. Can anyone help me figure out how to import a whole bunch of DokuWiki pages into my new MediaWiki installation? I think it should be possible using the "importTextFiles.php" maintenance script, but I am getting stuck. I don't know how to run scripts without root server access. I'm on a shared Namecheap account.
I got Extension:Maintenance working (so I can run maintenance scripts), but "importTextFiles.php" isn’t in its list of supported scripts, and I can't figure out how to add it (as per Extension:Maintenance).
Anyone already done this recently?
Michael Beijer Michaelbeijer (talk) 23:39, 11 December 2020 (UTC)
- To run those PHP scripts, you don't need root server access, limited SSH access should be enough. Shared hosting plans from probably all major hosting providers include such SSH access.
- Namecheap appears to as well. Further see How to enable SSH (Shell) in cPanel and How to access a hosting account via SSH. AhmadF.Cheema (talk) 16:12, 12 December 2020 (UTC)
- Thanks! So now I know how to run PHP scripts on my Namecheap server via SSH (in putty). However, I can't seem to get the script to work. Not even sure how to use it (yet). It's the "importTextFiles.php" maintenance script. Apparently, it’s broken in MediaWiki 1.35.0, but this version works: https://gerrit.wikimedia.org/g/mediawiki/core/%2B/REL1_35/maintenance/importTextFiles.php
- I am now trying to figure out how to actually use this script (via ssh/putty) to import DokuWiki .txt pages into my MediaWiki installation. Any pointers would be great! Michaelbeijer (talk) 18:18, 12 December 2020 (UTC)
- OK, getting there.
- I now know how to use dokuwiki2mediawiki.php (http://www.staerk.de/thorsten/Mediasyntax ), via SSH/putty) to convert DokuWiki .txt files to MediaWiki .txt files.
- I also managed to get the "importTextFiles.php" maintenance script to work, and when run it is creating new pages in my MediaWiki install.
- Just need to figure out how to run batches with both, so I don't have to do it one by one ... Michaelbeijer (talk) 18:34, 12 December 2020 (UTC)
- OK, figured out the batches too. Just copied the long list of .txt files on my computer to a list (with XYplorer), and just used these in the script.
- Only problem is the conversion (by dokuwiki2mediawiki.php) from DokuWiki .txt to MediaWiki .txt didn't always work flawlessly, which was to be expected, since I have all kinds of non-standard crap in my DokuWiki pages, messy tables, etc.
- Anyway, thanks for helping! Michaelbeijer (talk) 23:31, 12 December 2020 (UTC)
Article Delete
My wikimedia website`s article delete is not working showing error [3cf6220f3c83908673d9c25f] 2020-12-12 05:35:46: Fatal exception of type "Wikimedia\Rdbms\DBQueryError"
Can any one guide me with what to do? or how to enable it? Mayurbhatt (talk) 05:40, 12 December 2020 (UTC)
- See Manual:How to debug – Ammarpad (talk) 05:52, 12 December 2020 (UTC)
- Showing
- [ebe7ba62a0a19c6f0f8e3832] /index.php?title=Hookup_Females_The_Excellent_the_Bad_and_also_the_Unpleasant&action=delete Wikimedia\Rdbms\DBQueryError from line 1699 of /home2/wikidotcom/public_html/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
- Error 1146: Table 'wikidotc_wp.lcrx_geo_tags' doesn't exist (localhost)
- Function: GeoData\Hooks::onArticleDeleteComplete
- Query: DELETE FROM `lcrx_geo_tags` WHERE gt_page_id = 16264
- Backtrace:
- #0 /home2/wikidotcom/public_html/includes/libs/rdbms/database/Database.php(1683): Wikimedia\Rdbms\Database->getQueryException(string, integer, string, string)
- #1 /home2/wikidotcom/public_html/includes/libs/rdbms/database/Database.php(1658): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)
- #2 /home2/wikidotcom/public_html/includes/libs/rdbms/database/Database.php(1227): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
- #3 /home2/wikidotcom/public_html/includes/libs/rdbms/database/Database.php(3453): Wikimedia\Rdbms\Database->query(string, string, integer)
- #4 /home2/wikidotcom/public_html/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->delete(string, string, string)
- #5 /home2/wikidotcom/public_html/includes/libs/rdbms/database/DBConnRef.php(518): Wikimedia\Rdbms\DBConnRef->__call(string, array)
- #6 /home2/wikidotcom/public_html/extensions/GeoData/includes/Hooks.php(117): Wikimedia\Rdbms\DBConnRef->delete(string, array, string)
- #7 /home2/wikidotcom/public_html/includes/HookContainer/HookContainer.php(320): GeoData\Hooks::onArticleDeleteComplete(WikiPage, User, string, integer, WikitextContent, ManualLogEntry, integer)
- #8 /home2/wikidotcom/public_html/includes/HookContainer/HookContainer.php(131): MediaWiki\HookContainer\HookContainer->callLegacyHook(string, array, array, array)
- #9 /home2/wikidotcom/public_html/includes/HookContainer/HookRunner.php(727): MediaWiki\HookContainer\HookContainer->run(string, array)
- #10 /home2/wikidotcom/public_html/includes/page/WikiPage.php(2983): MediaWiki\HookContainer\HookRunner->onArticleDeleteComplete(WikiPage, User, string, integer, WikitextContent, ManualLogEntry, integer)
- #11 /home2/wikidotcom/public_html/includes/page/WikiPage.php(2819): WikiPage->doDeleteArticleBatched(string, boolean, User, array, string, boolean)
- #12 /home2/wikidotcom/public_html/includes/page/Article.php(2167): WikiPage->doDeleteArticleReal(string, NULL, boolean, NULL, string, User, array, string, boolean)
- #13 /home2/wikidotcom/public_html/includes/page/Article.php(1903): Article->doDelete(string, boolean)
- #14 /home2/wikidotcom/public_html/includes/actions/DeleteAction.php(41): Article->delete()
- #15 /home2/wikidotcom/public_html/includes/MediaWiki.php(527): DeleteAction->show()
- #16 /home2/wikidotcom/public_html/includes/MediaWiki.php(313): MediaWiki->performAction(Article, Title)
- #17 /home2/wikidotcom/public_html/includes/MediaWiki.php(940): MediaWiki->performRequest()
- #18 /home2/wikidotcom/public_html/includes/MediaWiki.php(543): MediaWiki->main()
- #19 /home2/wikidotcom/public_html/index.php(53): MediaWiki->run()
- #20 /home2/wikidotcom/public_html/index.php(46): wfIndexMain()
- #21 {main} Mayurbhatt (talk) 05:55, 12 December 2020 (UTC)
- So the GeoData's 'lcrx_geo_tags' table does not exist. If you recently added the extension without running update.php script, you need to do so. See Template:Extension#needs-updatephp – Ammarpad (talk) 06:18, 12 December 2020 (UTC)
- I insert code in LocalSettings.php
- cd path/to/wiki_install_directory
- cd maintenance
- php update.php
- Website show 500 Internal Server Error An internal server error has occured. Mayurbhatt (talk) 06:43, 12 December 2020 (UTC)
- Please be specific - if you inserted something in LocalSettings.php then explain exactly what you inserted.
- If your webserver software shows an 500 error, then please check the error log of your web server software for details why it shows a 500 error. Malyacko (talk) 13:28, 12 December 2020 (UTC)
- to be clear the above commands (e.g. php update.php) are to be entered at the command line (via ssh). They are not to be put in LocalSettings.php Bawolff (talk) 20:02, 12 December 2020 (UTC)
- Can you join me with skype or anywhere? to guide me properly.
- i just face two problems
- First article delete
- second install infobox templates Mayurbhatt (talk) 06:54, 12 December 2020 (UTC)
- I don't know what a "First article delete problem" is. Please be way more specific, clear, and complete with lists of instructions what to see where after which steps exactly. Thanks. Malyacko (talk) 13:29, 12 December 2020 (UTC)
- Problem is shorted with proper guidance by Ammarpad
- Thank you for your support Mayurbhatt (talk) 04:51, 13 December 2020 (UTC)
needs-updatephp
I follow Template:Extension#needs-updatephp
insert code in LocalSettings.php
cd path/to/wiki_install_directory
cd maintenance
php update.php
Website show 500 Internal Server Error An internal server error has occurred.
Actually my delete function is not working so i follow info that i understand
So the GeoData's 'lcrx_geo_tags' table does not exist. If you recently added the extension without running update.php script, you need to do so. See Template:Extension#needs-updatephp Mayurbhatt (talk) 07:43, 12 December 2020 (UTC)
- To resolve the issue, come with a meaningful error message. See Blank page for instructions to get the error message. Ciencia Al Poder (talk) 12:15, 12 December 2020 (UTC)
Preventing "anonymous" human trolling via contact forms
MediaWiki 1.34.2 with ContactPage (no other external extensions are installed).
My ContactPage contact form is very simple (currently 7 fields and I think never more than 10) to ensure comfortability of use for as many as potential customers as possible; it is and will be open for anonymous users.
My problem
Sometimes, anonymous human users use contact forms to "troll" a site owner, or community by submitting many form inputs time and again and this could fill up an email box. I recon two ways to lower the chance this would happen:
- A captcha
- A way to limit submissions to X amount of times in Y amount of times (say, up to 3 submissions in 1 hour) per IP
Of course, many anonymous users can simply change their IPs but not everyone would want to do that and I want to inhibit trolling from a single IP anyway.
My question
How would you handle the problem I describe?
Notes
- Although I don't ask about anonymous bot users, a solution to the problem I described can help against such trolling also. 182.232.193.236 (talk) 15:12, 12 December 2020 (UTC)
- extension:ConfirmEdit can provide captchas (including to contactform). Manual:$wgRateLimits provides rate limits. You can also block specific ips if they are causing problems.
- This mostly prevents automated abuse. It doesn't stop humans behaving badly in a non automated fashion. Nothing can really stop that but for most sites nobody cares enough to be annoying. Bawolff (talk) 22:35, 13 December 2020 (UTC)
- Thank you @Bawolff
- I have read in the page Manual:$wgRateLimits and I am not sure that this covers any email sending which is not done by Special:EmailUser and update here.
- I guess I should take the time and try but if anyone here knows the answer it would help others and myself save time. 182.232.193.236 (talk) 13:09, 14 December 2020 (UTC)
- @Malyacko what should I do if this session of mine was trolled (please read the above four comments). 49.230.195.186 (talk) 05:57, 15 December 2020 (UTC)
- Why do you ask me in this thread that I have not been active in? Malyacko (talk) 15:40, 15 December 2020 (UTC)
- @Malyacko I recalled that you hided spam at least twice; I am sorry for any bad feeling and generally should not tag your profile again unless you commented in a relevant thread already. 49.230.195.186 (talk) 15:48, 15 December 2020 (UTC)
How to have a template transclude "" tags
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 a template that adds a category to pages eg Template:GroupOrganization which contains
<noinclude>Template docs...</noinclude><includeonly>[[Category:Groups and Organizations]]</includeonly>
Which works great. Now I want to transclude that group page without the category.
{{:The Large Group}}
If I put noinclude tags inside the includeonly tags, no surprise the category is not included. I thought years ago when I worked with mediawiki there was a "includeonce" tag which was removed after the first transclusion. Is there something like that still or a way of replicating that. Bluedreamer1 (talk) 15:19, 12 December 2020 (UTC)
- there was never an includeonce tag.
- Usual approaches to this problem, is to transclude the GroupOrganization template into a noinclude section of TheLargeGroup page. Other approaches are to use extension:ParserFunctions to check what the current page or namespace is. Bawolff (talk) 08:01, 13 December 2020 (UTC)
How to add css to sidebar elements?
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 add CSS styles for sidebar elements. By default, for example, main page link in the sidebar has id: n-mainpage-description
I'm adding the following code to MediaWiki:common.css:
#n-mainpage-description
{
color:red;
}
But it doesn't work. What's wrong? Аргскригициониец (talk) 21:47, 12 December 2020 (UTC)
- Where are you adding it? Can you show us a sample?
- When I modify my local CSS here, the color of that element is overridden unless I use
#n-mainpage-description a { color:red; }- since the
.vector-menu-content li a:visitedis in the default CSS. - You should be able to see these overrides in your browser's developer tools. ☠MarkAHershberger☢(talk)☣ 22:31, 12 December 2020 (UTC)
- > Where are you adding it? Can you show us a sample?
- Mediawiki:Common.css
- UPD: now it works, the problem was in missing a element in my example. Аргскригициониец (talk) 08:33, 22 December 2020 (UTC)
Infobox setup
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 need support for infobox setup on my wikidot website
Started with Manual:Importing Wikipedia infoboxes tutorial.
i setup js and css files
i export template xml
but it`s upload is failed Mayurbhatt (talk) 04:56, 13 December 2020 (UTC)
- isn't wikidot not a mediawiki based website? I think you would have to ask the wikidot people. We only know about mediawiki stuff. Bawolff (talk) 07:57, 13 December 2020 (UTC)
- My website is wikidot.com.au based on media wiki. will you please help with Project:Support desk/Flow/2021/03#h-Lua_error:_Internal_error:_The_interpreter_exited_with_status_127.-2021-03-26T06:44:00.000Z Mayurbhatt (talk) 05:07, 27 March 2021 (UTC)
Why haven't someone said something about T267132 ?
I want all {{NOINDEX}} pages off sitemap. And not just those NOINDEX pages whose tag is added at the page level, but also those applied via $NamespaceRobotsPolicy. learn more
PS. The wiki in question is by default NOINDEX for all pages; we want only pages with the INDEX tag to appear in sitemap or can someone suggest a way to add NOINDEX tag in about 30,000 pages in one day? Extension:MassEditRegex isn't effective and Special:ReplaceText isn't applicable. Goodman Andrew (talk) 07:34, 13 December 2020 (UTC)
- @MarkAHershberger: No one is saying anything about it on Phabricator. Unlike here, it is as if there is no one there. Please help me poke the relevant people they. Goodman Andrew (talk) 15:53, 13 December 2020 (UTC)
- From skimming your phabricator task, it looks like you are saying that generateSitemap.php has a bug. It looks like you've suggested a fix and the bug wrangler, @AKlapper (WMF) has responded appropriately by suggesting you get gerrit access and submitting a patch.
- Have you tried that? ☠MarkAHershberger☢(talk)☣ 15:59, 13 December 2020 (UTC)
- Also, I just noticed @Bawolff has also subscribed to your task in Phabricator. The two people who have at least given the task attention are not insignificant, but, as you have suggested code, I think you should take the next step of submitting a patch in gerrit. ☠MarkAHershberger☢(talk)☣ 16:02, 13 December 2020 (UTC)
- i kind of stopped caring after https://www.mediawiki.org/wiki/Project%3ASupport%20desk/Flow/2020/11#h-Please_someone_should_help_expedite_phab%3AT267132-2020-11-16T08%3A14%3A00.000Z , but yeah, if someone writes a patch i would be willing to review it. Bawolff (talk) 22:26, 13 December 2020 (UTC)
- @Bawolff: do you have an idea of those who can write us a patch so that I can talk to them about it? Goodman Andrew (talk) 23:44, 13 December 2020 (UTC)
- @Goodman Andrew See Professional development and consulting Malyacko (talk) 10:27, 16 December 2020 (UTC)
- Because often people have other things to do. See Bug management/Development prioritization. Malyacko (talk) 16:10, 13 December 2020 (UTC)
- @MarkAHershberger: you are wrong. That's a patch for generateSitemap.php meant for MW_1_36 which is supposed to removed NOINDEX pages from sitemap.
- What I'm saying is that, though the patch works, but it doesn't removed pages tagged NOINDEX via localsettings.php using settings like $NamespaceRobotsPolicy. But it does remove pages tagged with the behavior switch magic word __ at the page level from sitemap. Therefore, I'm requesting another patch to handle (removed) pages tagged NOINDEX from the LocalSettings.php.
- But why does people easily misunderstand me on this issue?
- PS. The script: generateSitemap.php is so dumb, there's no way to even exempt a namespace, the only option was to skip redirect pages until the 1_36 patch came, yet not enough.
- Please help me push this issue to the most relevant people. Goodman Andrew (talk) 16:11, 13 December 2020 (UTC)
- @Goodman Andrew You or anyone else interested is free to write that other patch. Malyacko (talk) 16:15, 13 December 2020 (UTC)
- @Malyacko: I wish I could, but I don't know a thing in about PHP.
- Please help push this issue to people who can. Goodman Andrew (talk) 16:17, 13 December 2020 (UTC)
- @Goodman Andrew Please read Bug management/Development prioritization. Malyacko (talk) 16:19, 13 December 2020 (UTC)
- @Malyacko: what do you mean exactly?
- That's no need for me to hope... Goodman Andrew (talk) 16:25, 13 December 2020 (UTC)
- That you can "push" (whatever that means) as much as anyone else (and maybe that I don't know why this support desk thread was created when there's already a Phab task). Malyacko (talk) 16:34, 13 December 2020 (UTC)
error installation
MediaWiki 1.35 requires at least PHP version 7.3.19; you are using PHP 7.2.24-0ubuntu0.18.04.7. 103.99.204.154 (talk) 15:29, 13 December 2020 (UTC)
- It sounds like you're asking about an error you got and your OS (Ubuntu 18.04) has an outdated version of PHP. (PHP 7.2 is EOL.)
- If you search for how to update php, you'll find pages like this one: Upgrading to PHP 7.3 on Ubuntu Bionic 18.04 LTS. ☠MarkAHershberger☢(talk)☣ 15:45, 13 December 2020 (UTC)
How do I disable lazy load for a single image on a page?
What HTML or Wiki syntax would do this for the mobile version of MW_1_35 ? Goodman Andrew (talk) 15:55, 13 December 2020 (UTC)
- What is the use case and underlying problem to solve? Malyacko (talk) 16:13, 13 December 2020 (UTC)
- @Malyacko: I have an image ad that I don't want lazy loaded among many others that I want lazy loaded. Goodman Andrew (talk) 16:29, 13 December 2020 (UTC)
cant make an account?
I tried to make an account but it says some random guy tried using my IP to spam links to external websites. That's weird cuz I've never made an account before, any suggestions for what to do? 23.240.81.59 (talk) 21:30, 13 December 2020 (UTC)
- what website? For english wikipedia, see w:Wikipedia:Request an account Bawolff (talk) 22:31, 13 December 2020 (UTC)
Bearbeitungs-Icons
Seit dem Upgrad habe ich beim Bearbeiten von Seiten/Artikeln keine Bearbeitungs-Icons mehr.
Können diese wieder eingeblendet werden?
Gruss
Jörg 213.221.214.164 (talk) 09:32, 14 December 2020 (UTC)
- Which update exactly, and from what to what? Which MediaWiki version is this about? Where exactly to see icons? What are the errors shown in the developer tools of your web browser, or your webserver software log? Malyacko (talk) 10:21, 14 December 2020 (UTC)
- I miss the Style Text Icons like bold, italic ..
- I don't have an error 213.221.214.164 (talk) 10:55, 14 December 2020 (UTC)
- See my previous comment and please answer all questions. Also, which editor is this about? Malyacko (talk) 12:27, 14 December 2020 (UTC)
- MediaWiki: 1.35.0
- PHP: 7.4.13 (cgi.fcgi)
- Maria DB: 10.2.33-MariaDB
- ICU: 50.2
- Vector: -(771c876) / Lizenz GPL-2-.0-or-later 213.221.214.164 (talk) 13:33, 14 December 2020 (UTC)
- Please do see my previous questions: I wrote: "Also, which editor is this about?"
- Please also see my earlier questions: I wrote: "Which update exactly, and from what to what? What are the errors in your webserver software log?" Malyacko (talk) 14:48, 14 December 2020 (UTC)
VisualEditor : Error Parsoid/RESTBase server (HTTP 500) when edit page with accents in title
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi guys,
I'm having some issues when i try to edit pages with title containing accents (like é è ...) using the VisualEditor.
I have not issue when using the "wikicode" editor.
The exact error is "Error contacting the Parsoid/RESTBase server (HTTP 500)" but i'm not using the RESTBased VisualEditor.
The Wiki is private and running on an IIS Server. I am using MediaWiki 1.35, with the default version of VisualEditor.
The wiki's content is writen in Frensh so we use plenty of accents in our words and this bug quite annoying.
I have activated the following Extensions :
wfLoadExtension( 'ParserFunctions' );
wfLoadExtension( 'Scribunto' );
wfLoadExtension( 'TemplateData' );
wfLoadExtension( 'TemplateStyles' );
wfLoadExtension( 'VisualEditor' );
wfLoadExtension( 'WikiEditor' );
$wgScribuntoDefaultEngine = 'luastandalone';
Trying to fixe the problem i have tried the following user permissions
$wgGroupPermissions['user']['writeapi'] = true;
$wgGroupPermissions['*']['writeapi'] = true;
if ( !isset( $_SERVER['REMOTE_ADDR'] ) OR $_SERVER['REMOTE_ADDR'] == '127.0.0.1' ) {
$wgGroupPermissions['*']['read'] = true;
$wgGroupPermissions['*']['edit'] = true;
$wgGroupPermissions['*']['writeapi'] = true;
}
and tried the options :
$wgDefaultUserOptions['visualeditor-enable'] = 1;
$wgDefaultUserOptions['visualeditor-editor'] = "visualeditor";
$wgHiddenPrefs[] = 'visualeditor-enable';
$wgDefaultUserOptions['visualeditor-enable-experimental'] = 1;
Did anybody cross similar error and have a fix to this? Is anyone running a wiki in Frensh or Spanish with no error like this on?
Thank you
Geoffrey GeoffreyHfr (talk) 09:54, 14 December 2020 (UTC)
- Edit :
- I have find a workaround to the problem :
- 1 : I create a page named "Page échantillon"
- 2 : Rename it "Page echantillon" with a redirection link
- 3 : Use
{{DISPLAYTITLE=Page échantillon}}variable in the wikicode to correct the title - But this solution is quite contraining... If anyone knows how i could create and edit (with the VisualEditor) a page with accents in its title, let me know!
- Thank you for your help ! GeoffreyHfr (talk) 15:57, 15 December 2020 (UTC)
- You should file a bug report may be there's a bug somewhere. – Ammarpad (talk) 02:21, 17 December 2020 (UTC)
- Thank you for leting me know of the Bug Tracker.
- I have found a topic about my problem : https://phabricator.wikimedia.org/T269673
- I seem to be a problem in the IIS configuration.
- https://support.microsoft.com/en-us/help/2277918/fix-a-php-application-that-depends-on-the-request-uri-server-variable GeoffreyHfr (talk) 09:15, 18 December 2020 (UTC)
What does it mean to "limit email confirmations"?
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 a problem understanding the documentation Manual:$wgRateLimits.
I understand what it is to limit the rate about:
- Emailing other users using MediaWiki with
'emailuser' => [...] 'changeemail' => [...]- Triggering password reset emails using
'mailpassword' => [...]
But I don't understand what is to limit the rate about email confirmations (as far as I know users get only one email confirmation per each of the actions above).
What does it mean to "limit email confirmations"? 182.232.193.236 (talk) 12:15, 14 December 2020 (UTC)
- When you register or change your email, you get a confirmation email, with a link for you to confirm that you own that email address. That's the kind of email confirmations this rate limit applies to. Ciencia Al Poder (talk) 09:14, 15 December 2020 (UTC)
- @Ciencia Al Poder but isn't
'changeemail' => [...]should already cover this situation? - Registering a user by email --- per IP --- should also cover such situation... No? 49.230.195.186 (talk) 10:27, 15 December 2020 (UTC)
- You can resend a confirmation email if for some reason it didn't arrive, or you let the link expire, without the need to change the email. Ciencia Al Poder (talk) 10:56, 15 December 2020 (UTC)
- Yes, funny I didn't think about it. I think this issue is solved. Thank you. 49.230.195.186 (talk) 11:02, 15 December 2020 (UTC)
Syntaxhighlight extension not working in 1.35 when Visual Editor enabled
I just installed version 1.35. Existing pages that already had syntax highlighting no longer load, and when I try to edit or create a page with syntax highlighting I get the following error: "The server didn't respond within the expected time." Any ideas how to resolve this?
Thanks JGTompkins (talk) 15:08, 14 December 2020 (UTC)
Can't sign on
I have been a member for over 10 years and never had a problem signing on. Today it says that my email address must be verified before I can sign on. When I ask it to send me an authorization page to my email I don't receive it. i have two email address that currently are active and it didn't come to either one.
Is there something I must do to be able to sign-on again?
haydnguy 173.218.178.247 (talk) 15:18, 14 December 2020 (UTC)
- Which exact website (full address) is this about? Malyacko (talk) 18:58, 14 December 2020 (UTC)
'Protecting Google Chrome users from insecure forms'
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi all. Something I've noticed happening today (may be a recent problem, last edit was last week). Whenever an edit is made using my MediaWiki installation - https://www.vulcanverselore.com/HouseOfRecords/index.php/Main_Page, I'm getting an 'The information you're about to submit is not secure' page, with an option to 'Send anyway' or Cancel'. A search tells me that this is due to a recent change to Google Chrome, related to completing forms on secure (HTTPS) pages that are submitted insecurely.
"These “mixed forms” (forms on HTTPS sites that do not submit on HTTPS) are a risk to users’ security and privacy. Information submitted on these forms can be visible to eavesdroppers, allowing malicious parties to read or change sensitive form data"
The Chrome security team is encouraging developers to fully migrate forms on their site to HTTPS to protect their users. Is there a fix / way round this?
Thanks. Neswulf (talk) 19:35, 14 December 2020 (UTC)
- does $wgServer in LocalSettings.php start with https:// ? (The s being important) Bawolff (talk) 21:12, 14 December 2020 (UTC)
- Thanks @Bawolff, solved! Neswulf (talk) 22:32, 14 December 2020 (UTC)
Import of exported file from same wiki fails MW 1.35
Trying to import an exported file from the same MW 1.35 wiki which fails with
Import failed: No interwiki prefix was supplied
Never had problems doing an export / import to the same wiki before. What gives?
where do I find the interwiki prefix?
There is no interwiki involved. The export was from the same wiki so i would not lose changes made to some files before I restored the database Ken Roy (talk) 00:24, 15 December 2020 (UTC)
- Some developers have been under stay at home for too long I think :) No indication on how to solve this problem anywhere in MediaWiki, but I did find the answer to my import problem on the following site https://community.fandom.com/f/p/3861457800265730342
- Just enter anything in the prefix field. Does not really make sense to me. Posting the answer here in case it helps someone when no interwiki is involved Ken Roy (talk) 01:03, 15 December 2020 (UTC)
- Might also be an answer to Project:Support desk/Flow/2019/09#h-Importing_wiki_pages_appends_Interwiki_Prefix_to_User_Name-2019-09-17T10:54:00.000Z Ken Roy (talk) 01:12, 15 December 2020 (UTC)
- Apparently this error shouldn't happen if you mark "Assign edits to local users where the named user exists locally". Of course, those users must exist, and I think that should be true if you're importing to the same wiki Ciencia Al Poder (talk) 09:12, 15 December 2020 (UTC)
- Thanks Ciencia Al Poder,
- But I got that same error when I marked "Assign edits to local users where the named user exists locally" before I created this comment on the support desk.
- If I am importing to the same wiki that I exported from, the users do exist Ken Roy (talk) 10:40, 15 December 2020 (UTC)
- Ok. I understand the situation. MediaWiki doesn't know beforehand if you're importing from the same wiki or if the users exists. Supplying the interwiki prefix is mandatory. If ypu mark "Assign edits to local users where the named user exists locally" and all users exist, the interwiki prefix won't be used. However, if some users don't exist, their edits will be imported with the supplied prefix. Ciencia Al Poder (talk) 10:59, 15 December 2020 (UTC)
- Thanks for your reply Ciencia Al Poder,
- However in MediaWiki 1.35, that was not my experience. I got the same error message
- Import failed: No interwiki prefix was supplied
- whether I checked the box for "Assign edits to local users where the named user exists locally" or not.
- It was not until I add "test" as the Interwiki prefix that I was able to import the file that I exported from the same MediaWiki 1.35. Sounds to me like there is a logic error in the Import script Ken Roy (talk) 12:28, 15 December 2020 (UTC)
- What I said is that the prefix is mandatory, because MediaWiki doesn't know beforehand if it will need to use it. The validation seems correct. Of course, a better description of what's supposed to be that interwiki prefix would prevent those misunderstandings. Ciencia Al Poder (talk) 12:52, 15 December 2020 (UTC)
- There's no logic error in the script, this is intentional and it was enforced to deal with the huge mess caused by previously not requiring the prefix, there's some info at phab:T179832 and related tasks. Ciencia is right, MediaWiki does not know offhand whether you're importing from the wiki you exported or not and there's does not seem to be a reason for it to do. – Ammarpad (talk) 02:16, 17 December 2020 (UTC)
Tracker
Hello is it possible to insert a field on the main page of the wiki with "last added/ latest news" for all changes or new addings? Thank you 46.189.37.196 (talk) 13:35, 15 December 2020 (UTC)
- You can list all most recent changes of the wiki by transcluding the RC special page, for instance by adding {{Special:RecentChanges}} somewhere on the mainpage. You can also limit how many entries are shown, for example if you need only 5 most recent changes, you can do {{Special:RecentChanges/5}} – Ammarpad (talk) 14:08, 15 December 2020 (UTC)
- you might also try extension:DynamicPageList (Wikimedia) Bawolff (talk) 20:04, 15 December 2020 (UTC)
Search function
Is it possible to extend the search function? With the search bar on the top left, you only get answer with exact same words. But would it be possible, to search for e.g. "hou" and find "House"? Onmiy (talk) 14:26, 15 December 2020 (UTC)
- All that is already possible if you use the CirrusSearch extension. See Help:CirrusSearch Malyacko (talk) 15:39, 15 December 2020 (UTC)
Uploading scanned/photographed covers
Hi
I am trying to upload my own covers from photographs I have taken of the book covers, as I always do successfully, but currently not allowed to do so. I keep getting the message:
"PROBLEM
We are unable to process that as an image."
Anyone else experiencing the same issue? 185.94.76.209 (talk) 16:02, 15 December 2020 (UTC)
- Upload where, how, in which file format, on which MediaWiki version? Please see the sidebar - thanks. :) Malyacko (talk) 16:32, 15 December 2020 (UTC)
Search not covering bullet lists
This has been bugging me for a while, and please shut me down if this has been fixed in any of the recent MW releases: Search does not cover bullet lists. Any text that is in lists, is not or hardly ever found in full text search, it might not even get indexed. Is there something I'm overlooking? For my wiki it is essential that full text search covers lists as they hold essential info people are looking for 2001:16B8:480D:AC00:3518:F4A9:5A02:8BBC (talk) 16:38, 15 December 2020 (UTC)
- in general bullet lists should not have any special treatment, they should be treated like any other text.
- Hmm, i wonder if the * right beside the word is making search confused and its thinking the * is one of the letters.
- Anyways, maybe try extension:CirrusSearch it gives much better quality results. Bawolff (talk) 20:03, 15 December 2020 (UTC)
- Yes planning on implementing Cirrus soon, but as you said, it shouldn't impact it. By the way, there is more than a word after the asterisk, so even if it skips the first one, the rest should be indexed I presume. 2001:16B8:480D:AC00:E969:77BC:4E5A:7C33 (talk) 20:43, 15 December 2020 (UTC)
Is there any way to upload the documents hosted on an internal company portal to MediaWiki's latest version?
Is there any way to upload the documents hosted on an internal company portal to MediaWiki's latest version? 183.87.60.15 (talk) 17:50, 15 December 2020 (UTC)
- The "Special:Upload" page on your wiki? :) Malyacko (talk) 20:26, 15 December 2020 (UTC)
Stripping namespace prefix from titles
I'd like a solution similar to #titleparts that also considers the colon in addition to the slash. Basically, I want to strip off the namespace prefix in page lists (or on print). I still need the namespace prefix in the logic but want to eliminate the redundancy on print.
Example
I have a template containing the following code:
[{{#ask:[[{{{ModName}}}]]|mainlabel=-|?SourceURL#|headers=hide}} {{#titleparts: {{{ModName}}} | | -1 }}]
- ModName = a page title, including the namespace
- If #titleparts parsed on the colon in addition to the slash then 'Foo:bar' in this case would return just 'bar'
I don't see any means to strip off the namespace other than using {{PAGENAME}} or similar magic words, which will not work here.
Any suggestions? ~z929669
Talk 18:54, 15 December 2020 (UTC)
- Answered my own question. The solution:
{{#explode:{{{ModName}}}|:|1}} [{{#ask:[[{{{ModName}}}]]|mainlabel=-|?SourceURL#|headers=hide}} {{#explode:{{{ModName}}}|:|1}}]- ... works after setting
$wgPFEnableStringFunctions = true;in LocalSettings ~z929669
Talk 21:52, 15 December 2020 (UTC) - why wouldnt
{{PAGENAME:{{{ModName}}}}}have worked here? Bawolff (talk) 02:27, 16 December 2020 (UTC) - Presumably, because
{{{ModName}}}is a value for a Property of type Page, and{{PAGENAME}}only works within the context of the page calling it. ~z929669
Talk 05:29, 16 December 2020 (UTC) - pagename can take a value for what page to operate on. {{PAGENAME:Talk:Foo}} → Foo regardless of what page you're on. Bawolff (talk) 20:18, 16 December 2020 (UTC)
- Ahhh yes, you are correct. I missed that. ~z929669
Talk 23:02, 21 December 2020 (UTC)
ref showing as html entities ("[1]" shown as "& #91;1& #93;")
referred by @AKlapper (WMF) at https://phabricator.wikimedia.org/T269410
MediaWiki: 1.35.0
PHP: 7.4.13 (apache2handler)
MariaDB: 10.1.47-MariaDB-0ubuntu0.18.04.1
Example Url:
https://wikidr.net/wiki/Dr._Carolyn_Borrow_MD_St._Paul_MN
also bdi tags are showing rather than being parsed. WikiDrNet2 (talk) 20:49, 15 December 2020 (UTC)
- seems like all system messages are being double escaped. Very weird.
- Can you try disabling all extensions (except Cite) see if it still happens, if not, reenable one by one to figure out the culprit. Bawolff (talk) 02:25, 16 December 2020 (UTC)
- It is the Link_Attributes extension, thanks for pointing me in the right direction. WikiDrNet2 (talk) 14:58, 17 December 2020 (UTC)
UNCLink / SAPPLM Link
Hi there,
Today in my local mediawiki, i include UNCLinks (G:\documents\test.pdf) in my pages, and as long as I am using internet explorer, all those links open fine.
Today, i have a another local link that I would like to include in mediawiki,
This is the link. Today, if i paste this in my internet explorer, it will pop up and ask if i want to allow website to open a program from the computer.
sapplm://ectr?system=DEV&client=123&type=doc&sapkey=IAC00000000001&filename=test.pdf&action=open
How do I include this link in the mediawiki so it runs the application? I have tried to include as search link, external link it did not work. AmazingTrans (talk) 22:08, 15 December 2020 (UTC)
- it seems like i can get it to work with <ext> syntax. thanks AmazingTrans (talk) 23:52, 15 December 2020 (UTC)
- $wgUrlProtocols.
- Also i am not sure what precisely you are doing with <ext> syntax, but be careful about enabling all protocols because some (especially javascript: ) are very dangerous and can lead to security issues. Bawolff (talk) 02:21, 16 December 2020 (UTC)
Rating ContactPage submit limit
MediaWiki 1.34.2 with ContactPage.
I want to rate the limits in which emails are being sent from ContactPage by anonymous users.
Perhaps $wgRateLimits 'emailuser' => [...] is a good start. 49.230.195.186 (talk) 05:10, 16 December 2020 (UTC)
- 'emailuser' will only limit the use of inbuilt Special:EmailUser. For ContactPage email, you'd need to use a key like 'contactpage'. However, this is not currently supported by the extension itself, so you'll need to file a request for this to be supported first if necessary. Alternatively you can disallow anonymous user from sending mails through the form by setting
'MustBeLoggedIn' => truein the $wgContactConfig array. – Ammarpad (talk) 05:48, 16 December 2020 (UTC) - my bad from earlier, i thought it had rate limits builtin. Bawolff (talk) 16:26, 16 December 2020 (UTC)
What is the Z in date fields?
MediaWiki 1.34.2 in Hebrew and ContactPage.
In my ContactPage contact form I have a date and time field, which I have added with 'class' => HTMLDateTimeField::class.
This is an output example of the field in Vector and Timeless:
ד' 16 דצמ' 2020 05 : 21 : 45 Z
ד means Wednesday
16 means day of month
דצמ' means December
05 means hour (I guess)
21 means minute (I guess)
45 means second (I guess - this is a problem in case the field is for potential customers settings appointments because no potential customer would set a second)
I have no idea what Z means
What is the Z in date fields? 49.230.195.186 (talk) 05:33, 16 December 2020 (UTC)
- can it mean "Zulu time" ? I di not know. 109.192.194.150 (talk) 06:50, 16 December 2020 (UTC)
- See w:Coordinated_Universal_Time#Time_zones – Ammarpad (talk) 15:51, 16 December 2020 (UTC)
- Thanks @Ammarpad
- I wonder why even putting it in the field (output) in the first place. 49.230.199.165 (talk) 17:30, 16 December 2020 (UTC)
"Translate to" button not working
In Translation window, when i try to change language for translation through the slider at right top corner, it is not wot working. Please Help 103.140.2.170 (talk) 07:51, 16 December 2020 (UTC)
- Please provide context. How and where to see some "Translate to" button? Is this about Extension:ContentTranslation maybe? If it is then see Extension talk:ContentTranslation. Malyacko (talk) 09:04, 16 December 2020 (UTC)
How to remove second inputs from date fields?
MediaWiki 1.34.2 with ContactPage.
In my ContactPage contact form I have a date and time field, which I have added with 'class' => HTMLDateTimeField::class
The output of this field includes year, month, day, hour, minute and second; How could I remove the "seconds" from there so that a user which wishes to set an appointment won't be troubled by being asked about seconds? 49.230.199.165 (talk) 08:49, 16 December 2020 (UTC)
- It's not possible. But you can remove the time part entirely, maybe that would work better for your use-case. Try using
'type' => 'date'instead of 'datetime' in the config setting. – Ammarpad (talk) 15:03, 16 December 2020 (UTC) - @Ammarpad thanks, but I do need hour and minute because this is about appointment setting; I clearly ask the potential customer to pick a date and lesser time (hour/minute) in the field's label.
- Well, what can I say, bummer... 49.230.199.165 (talk) 18:22, 16 December 2020 (UTC)
- Perhaps hiding the seconds with CSS
display:noneor JS is some good approach? 49.230.199.165 (talk) 18:23, 16 December 2020 (UTC)
Need to Install PDF Renderer Service which would support to embed the images.
HI Support Desk,
Following are the installed software product version(s) those are being used in our RHEL7 server environment.
Installed software
| Product | Version |
|---|---|
| MediaWiki | 1.35.1 |
| PHP | 7.4.15 (apache2handler) |
| MySQL | 8 |
| OS | LINUX |
We are looking for PDF Renderer Service which would support to embed the images in a Wiki page to a downloaded PDF file.
We have tried with Extension:ElectronPdfService which is referred the Electron server under Git. But its not working it's deprecated.
So, please suggest us if there any other pdf renderer server available which is being used in https://www.mediawiki.org/ page. We expect if we could implement same in our wiki application
Thanks
Ashish Akki30 (talk) 11:08, 16 December 2020 (UTC)
- See the first link on that page: Wikimedia websites use Proton (which might not work well with the ancient unsupported MediaWiki version 1.31.1)... Malyacko (talk) 12:30, 16 December 2020 (UTC)
- Hello,
- I have installed this Proton, but it did not work properly. As it's not well explained that how to integrate proton.
- I followed this, https://m.mediawiki.org/wiki/ServiceTemplateNode/GettingStarted
- it did not work successfully.
- Error: {"status":500,"type":"internal_error","title":"ReferenceError","detail":"preq is not defined","method":"GET","uri":"/wikipoc.xyz.com/v1/png/Square_funny"}
- URL: http://10.73.21.15:8080/wikipoc.xyz.com/v1/png/Square_funny
- Kindly suggest how we can use this in our wiki 1.35.1.
- Thanks Akki30 (talk) 08:47, 2 June 2021 (UTC)
MediaWiki requires the PSR-3 logging library
For fuck sake --> Project:Support desk/Flow/2015/12#h-Upgrade_issue_to_1.26.0:_MediaWiki_requires_the_PSR-3_logging_library_to_be_pres-2015-12-07T17:11:00.000Z --> we're all having this issue and don't know what to do about it. I have vendor/psr too and I still get the following in my browser when resolving the page.
> MediaWiki requires the PSR-3 logging library to be present. This library is not embedded
> directly in MediaWiki's git repository and must be installed separately by the end user. Please
> see mediawiki.org for help on installing the required components.
Can't install mediawiki bc of it. Tried to install the dam thing with $ composer require psr/log but it bitches about dependencies (and my composer version). I try to install dependencies but it still bitches --and fails! STuck on StUPId over here.. why don't someone more experience speak up and save the day?
PS: I use composer for other stuff on my machine.. not trying to downgrade the version or anything like that. Besides, like the op in the Topic linked in the first line of this post, it looks to psr/log seems to be present (the vendor/psr directory sure is). Blahboybaz (talk) 11:25, 16 December 2020 (UTC)
- Not much anyone can help with without full steps to reproduce, version info, and without error messages (without any paraphrasing)... Malyacko (talk) 12:28, 16 December 2020 (UTC)
- > Tried to install the dam thing with $ composer require psr/log
- For the record, this is never the correct thing to do.
- Follow instructions for installing mediawiki. I have no idea what went wrong for you, because you haven't said what you actually did. Bawolff (talk) 20:14, 16 December 2020 (UTC)
- Hey gang :), this is an interesting one. If you come up with a solution, please post it.
- I suspect that it would be helpful to know exactly what PSR-3 logging library consists of, let alone exactly what it does. Let us take a moment to reflect upon those that have fallen... So good so far! MWilsonCK (talk) 00:41, 23 February 2021 (UTC)
- The top link mentions unsupported 1.26 and is more than 5 years old. No idea why this would resurface here.
- Project:Support desk/Header/en TiltedCerebellum (talk) 21:37, 1 March 2021 (UTC)
DrawIO and Image Magick Text empty
When I create a graphic with DrawIo it works without any problems. But as soon as a text is used in the image, it is then empty in the SVG. What exactly can I do there? 85.190.88.170 (talk) 12:33, 16 December 2020 (UTC)
- How is this question related to MediaWiki (see the sidebar on the right)? Malyacko (talk) 12:36, 16 December 2020 (UTC)
Error after updaing mediawiki
I'm getting this error after updating my mediawiki site:
"Warning : Private methods cannot be final as they are never overridden by other classes in D:\Apps\FEWS\wiki\includes\actions\Action.php on line 82"
Running media wiki with the newest xampp 8.0 for apache and php on windows. Using mediawiki 1.35.
Any suggestions on what this error might be? 152.87.3.5 (talk) 15:57, 16 December 2020 (UTC)
- This is my version:
| Product | Version |
|---|---|
| MediaWiki | 1.35.0 |
| PHP | 8.0.0 (apache2handler) |
| MariaDB | 10.4.17-MariaDB |
152.87.3.5 (talk) 16:15, 16 December 2020 (UTC)
- This was fixed a while back on master (so will be in MW 1.36), but I guess it was not back-ported to MediaWiki 1.35. MediaWiki is not yet fully compatible with PHP 8, see phab:T269711 – Ammarpad (talk) 16:18, 16 December 2020 (UTC)
- Thank you. I'll upgrade to 1.36 152.87.3.5 (talk) 16:19, 16 December 2020 (UTC)
- OK, the change seems to be already in MW 1.35, so I am not sure why you're getting the error. From where did you got Mediawiki? – Ammarpad (talk) 16:29, 16 December 2020 (UTC)
- from your site. but I got it a few weeks ago. Would the 1.35 version be updated again? 152.87.3.5 (talk) 16:48, 16 December 2020 (UTC)
- Looks like the file size is slightly different, so I'll try updating to the latest 1.35.0. If that doesn't work I will try updating the the master branch from the repo 152.87.3.5 (talk) 16:52, 16 December 2020 (UTC)
After I updated Mediawiki to 1.35, the ForeignFileRepos in my wiki family became unusable.
It's doesn't work whatever which sites I tried.
This is how I set it in LocalSettings.php.
#ParaCommons
$wgForeignFileRepos[] = [
'class' => 'ForeignDBRepo',
'name' => 'commons',
'url' => "https://commons.parawikis.com/images",
'directory' => '/***/***/www.parawikis.com/images',
'hashLevels' => 2, // This must be the same for the other family member
'dbType' => 'mysql',
'dbServer' => 'localhost',
'dbUser' => '***',
'dbPassword' => '***',
'dbFlags' => DBO_DEFAULT,
'dbName' => 'commons',
'tablePrefix' => '',
'hasSharedCache' => false,
'descBaseUrl' => 'https://commons.parawikis.com/wiki/File:',
'fetchDescription' => false
];
Any suggestions please? Gokouruki (talk) 21:14, 16 December 2020 (UTC)
- doesnt work how? (Images render as link? Images show as box but dont load? Something else?)
- Anything in php log or mediawiki debug log related to this? Bawolff (talk) 01:24, 17 December 2020 (UTC)
- Thanks for your attention to this issue.
- It's just like I didn't use this feature. Images render as red update-need links.
- I put this
- " error_reporting( -1 );
- ini_set( 'display_errors', 1 ); "
- to LocalSettings.php but no errors are output. Gokouruki (talk) 09:30, 17 December 2020 (UTC)
- btw no errors in console too. Gokouruki (talk) 09:30, 17 December 2020 (UTC)
- Anything in https://www.mediawiki.org/wiki/Manual:How_to_debug#Setting_up_a_debug_log_file related to this? That debug log file is very noisy, but i think if anything would have errors, it would most likely be that (You would need to visit the image description page, or edit a page to add a new image, while that logging is turned on, for any errors to show up in it) Bawolff (talk) 10:15, 17 December 2020 (UTC)
- Hey, I have enabled it, but how do I find the corresponding error?
- Thank you. Gokouruki (talk) 10:23, 17 December 2020 (UTC)
- In order not to affect the use of the website, I temporarily switched to the api method. Gokouruki (talk) 11:54, 17 December 2020 (UTC)
Is LinkSuggest incompatible with CodeMirror?
I recently installed CodeMirror extension on my wiki and I noticed that, when the highlight is on, Extension:LinkSuggest extension stops showing suggestion as I type. I am using MediaWiki version 1.35 and corresponding versions of the two extensions.
Is this a known behaviour? And is it a bug or a feature? Can the two extensions be made compatibles?
Thanks Luca Mauri (talk) 21:20, 16 December 2020 (UTC)
- Check your javascript console to see if their are any errors there. ☠MarkAHershberger☢(talk)☣ 01:20, 17 December 2020 (UTC)
- LinkSuggest only works on a plain textarea, which CodeMirror is not using. T95100 is the bug for implementing an autocompletion freature on CodeMirror Ciencia Al Poder (talk) 10:18, 17 December 2020 (UTC)
why can't i zoom in any more
why can't i zoom in any more 24.115.11.234 (talk) 01:19, 17 December 2020 (UTC)
- Ask the application that you use for zooming. Not us. Malyacko (talk) 07:45, 17 December 2020 (UTC)
Using Quibble outside of Wikimedia Gerrit
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 am struggling with Quibble Docker image to make it work with a third-party extension hosted on Github.
I think I have to disable Zuul, because it is a gateway between Gerrit and Jenkins. Alternatively, I manually cloned mediawiki/core and mediawiki/skins/Vector into src directory(on the host machine which is mounted in /workspace/src on the container). And also copied my extension too.
But running Quibble with just composer-test didn't seem to catch any errors.
What happened? Is it not possible to test a third-party extension with Quibble?
Regards. Lens0021 (talk) 04:51, 17 December 2020 (UTC)
- I'm not sure if the right people for this question monitor Project:Support_desk. If you don't get a response here, I would strongly recommend asking at the #wikimedia-releng IRC channel on freenode. Bawolff (talk) 10:13, 17 December 2020 (UTC)
Mediawiki on Windows Server 2019 with LDAP authentication
Dear all,
I have installed Mediawiki 1.35 on a Windows Server 2019 by using IIS. Local authentication works flawless, but I´m struggling with the LDAP authentication.
I found some threads here which were into my direction, but most of the users had Mediawiki installed on Linux. Isn´t there a working manual or guideline what exactly to do to get this working?
| Software | Version |
|---|---|
| MediaWiki | 1.35.0 |
| PHP | 7.3.25 (cgi-fcgi) |
| MySQL | 8.0.22 |
| ICU | 64.2 |
Tuxhater (talk) 10:46, 17 December 2020 (UTC)
- There shouldn't be much difference between Windows and Linux setups. What have you tried and what happened?
- (Also, pinging @Osnard since he has done a lot on LDAP.) ☠MarkAHershberger☢(talk)☣ 14:56, 17 December 2020 (UTC)
- LDAP on Windows should work pretty much the same way as on Linux. Please have a look at Manual:Active_Directory_Integration or LDAP_hub/Migration_from_extension_LDAPAuthentication Osnard (talk) 12:30, 18 December 2020 (UTC)
- First I followed the instructions on Manual:Installing MediaWiki on Windows Server 2019 which is by the way a little bit confusing.
- But after some time I got it to work with local authentication. Then I exctracted the downloaded Extensions "LDAPProvider" and "LDAPAuthentication2" to the /extensions folder. I´ve read both of the manuals that @Osnard mentioned, but must I follow both of them? Or are these just two different ways? In Manual:Active Directory Integration I should prepare ldap.json, this file doesn´t exist on Windows. Where should I save it, C:\inetpub\wwwroot? Afterwards I just have to edit my LocalSettings.php, as shown in the example? Tuxhater (talk) 09:01, 21 December 2020 (UTC)
- You ill need both extensions, as LDAPAuthentication requires LDAPProvider. Please have a look at LDAP_hub or any of the extension pages for more information on thow to set them up.
- The "ldap.json" (=domain config file) can be places anywhere you want. The webserver user (IUSR) must be able to read it, but it should not be within the webroot (=downloadable), as it contains sensitive information. Osnard (talk) 13:50, 21 December 2020 (UTC)
Loading bar forever on form
I'm getting a loading bar forever and a form that does not properly load.
How do I debug this? (I'm a MW noob)
Thanks,
Willem 80.56.149.103 (talk) 13:27, 17 December 2020 (UTC)
- We don't know what you load, or which version of MediaWiki you use, and many other things. Please see the sidebar. Malyacko (talk) 17:39, 17 December 2020 (UTC)
- Is this with MediaWiki 1.35.0 and Apple mobile devices, i.e. iPhone or iPad, running iOS 14.x? Is so it is a known problem. Peculiar Investor (talk) 02:53, 18 December 2020 (UTC)
- What are steps to reproduce? You enter the URL of your MediaWiki website into a browser, and your website never finishes loading? We don't know what you're doing at all - please describe clear steps to reproduce. Malyacko (talk) 07:00, 18 December 2020 (UTC)
- Sorry for the vagueness. I am using Mediawiki 1.35.0, hosted on GCP using the Bitnami installer. When I am filling in a form, the form shows but there's a circular loading bar that keeps spinning. The fields in the form (Page Forms form) do not load in properly (e.g. autocomplete box does not load options) so the form isn't loading.
- It might be related, VisualEditor isn't working at all, and when I remove the line for loading the extension( wfLoadExtension( 'VisualEditor' ); ) just the HTML of my page shows.
- I meant to ask, how do I debug Mediawiki in general? Logs? if so, how do I know which log files to look in. Also, how do I debug Parsoid? 80.56.149.103 (talk) 09:52, 18 December 2020 (UTC)
banned in farsi, keep getting logged out of wikipedia android app
i keep getting logged out of the android app for wikipedia is it because im perma banned in a project? Baratiiman (talk) 15:03, 17 December 2020 (UTC)
- You are banned for a year from fawiki. I don't know why. I see that you've been active on enwiki, though, and you aren't banned there. ☠MarkAHershberger☢(talk)☣ 15:47, 17 December 2020 (UTC)
Sidebar for alphabetical page navigation
Is there a way to have a sidebar with the pages before and after the page being viewed, sorted alphabetically? I.e. like the left sidebar here: https://www.wordreference.com/es/translation.asp?tranword=side Spiros71 (talk) 15:40, 17 December 2020 (UTC)
- Do you mean something like Extension:JSBreadCrumbs? ☠MarkAHershberger☢(talk)☣ 15:53, 17 December 2020 (UTC)
- Thanks Mark. If I get this right (it has no demo link) it is a horizontal bar with the last 5 visited pages. In my case it would be a vertical bar with page names that come before and after current page alphabetically. This is another example, which is scrollable and can produce inverse matches (words with same ending) https://logeion.uchicago.edu/lexidium Spiros71 (talk) 16:45, 17 December 2020 (UTC)
- im not aware of any extensions to do this, but there is no reason why one couldnt make such an extension Bawolff (talk) 17:01, 17 December 2020 (UTC)
Licensing
Hello! I did not put correctly licensing tags, got deletion template, then fixed licensing things, removed deletion template as was written at deletion template help, but still shows the same that something is with licensing and bots message that my image will be deleted. Do I need to add something that I fixed the issue? When these messages will be removed? Here is the messages and my image: https://commons.wikimedia.org/wiki/File:T%C4%ABkla_strukt%C5%ABra_100VG-AnyLAN.png
Sorry, I am new here and quete hard to understand all the rules. Theviktorijam (talk) 15:53, 17 December 2020 (UTC)
- Please ask this question on the Commons help desk. ☠MarkAHershberger☢(talk)☣ 16:00, 17 December 2020 (UTC)
Variable Expansion in DPL3
Dear all, It seems, that DPL3 does not expand variables like %PAGE% before handing them to templates.
Example: {{#dpl: |titlematch=I% |namespace= |format=<hr>,%PAGE% – {{#sub:%PAGE%|0|3}},\n\n,<hr> }}
will list all articles with a title starting with I plus %PA. Obviously, my intention is to get the first three letters of the title instead of %PA. How can I declare, that the template should be applied to the variable value rather than the variable name?
Thank you in advance!
Yours, Ciciban (talk) 15:56, 17 December 2020 (UTC)
Questions regarding CirrusSearch setup
Hi All
I've gotten a wiki running for my department at work, and we all love it. So far the only additional extensions besides the built in ones that we're using are Elastica and CirrusSearch. Which is the basis of my question.
I originally configured CirrusSearch by following the README.
- add 4 lines to the LocalSettings file,
- run UpdateSearchIndexConfig.php
- remove $wgDisableSearchUpate from the localsettings
- run the two additional ForceSearchIndex.php commands
- Add $wgSearchType to the config file.
This worked fine, and we were up and running. Ten days later, ES crashed on us (I still don't know why, this is a learning process). I did some searching and found the other command: UpdateSearchIndexConfig.php --startover
That worked.
On my test computer, I tried restoring everything in place and running that single command, and it populates the search index, just like the initial steps laid out in the README did.
My question is, is UpdateSearchIndexConfig.php --startover sufficient? OR should I have wiped all ES's data and run each of the commands in the README:
- UpdateSearchIndexConfig.php
- ForceSearchIndex.php --skipLinks --indexOnSkip
- ForceSearchIndex.php --skipParse
again, I'm back up and running, my concern is that this "shortcut" I found might cause us problems.
I hope this makes sense.
TLDR:
Is there a difference between using '''UpdateSearchIndexConfig.php --startover''' to bootstrap the ES index, compared to running '''UpdateSearchIndexConfig.php''', '''ForceSearchIndex.php --skipLinks --indexOnSkip''', and '''ForceSearchIndex.php --skipParse''' separately?
Thanks! Lucasjkr (talk) 21:40, 17 December 2020 (UTC)
- I don't know the answer to your question, but I think if you do not run into problems, you should be fine.
- If you do run into problems, please come back and let us know! ☠MarkAHershberger☢(talk)☣ 21:28, 19 December 2020 (UTC)
How Can Install Proton
Hello Team,
I am not getting steps to install Proton on RHEL 7, Kindly suggest steps, Also do we need to install RESTBase before proton.
Can you please give us proper steps to install proton.
Thanks
Robin 132.154.171.20 (talk) 06:26, 18 December 2020 (UTC)
- Proton. Which Chromium version is shipped by RHEL 7? Malyacko (talk) 06:50, 18 December 2020 (UTC)
- 1.35 I am using, Before I have tried with in 1.31.
- I am not getting concept of RESTBase here. Please clear this to me. As well suggest me simple installation steps for proton. 132.154.171.20 (talk) 07:23, 18 December 2020 (UTC)
- See my previous unanswered question. For the concept, see RESTBase. If you have specific questions, please ask specific questions - thanks! Malyacko (talk) 07:55, 18 December 2020 (UTC)
ContactPage output brings "Be careful with this message" in Gmail
On my FasS-modeled hosting environment with some old CentOS and Bash 3.2.52(2) I have a principally all core MediaWiki 1.34.2 with primary language being Hebrew and just one external extension installed - a principally all core ContactPage.
My hosting provider is SiteGround which is a world leading hosting company.
If someone fills in my contact form I get the following notification on top of the output arriving to my email client (Gmail):
Be careful with this message
Gmail could not verify that it actually came from example@gmail.com. Avoid clicking links, downloading attachments, or replying with personal information.
Having this notification is a problem for me - how to solve that problem (in the context of MediaWiki)?
Thanks in advance, 49.230.10.186 (talk) 06:38, 18 December 2020 (UTC)
- If Gmail decides to display something, then you likely need to ask Gmail which criteria they apply to decide to display something? :)
- What have you tried and found out so far? https://support.google.com/mail/answer/185812?hl=en seems to provide initial hints. Malyacko (talk) 06:59, 18 December 2020 (UTC)
- I couldn't tag your profile in my below comment written from an Android operated smartphone with a DuckDuckGo browser. 49.230.10.186 (talk) 08:22, 18 December 2020 (UTC)
- I am now in my home from my computer and can tag @Malyacko. 49.230.10.186 (talk) 16:19, 18 December 2020 (UTC)
- @Malaycko I have mistakenly published an email address of a sender, please kindly replace it with example@gmail.com and hide the history.
- About searching and trying - quite accordingly to what you wrote I kinda felt "lost" with this message in the first place; I have ran a small Google search with the error title and didn't find a clear solution from quickly reviewing the first ten results.
- I thought about writing some JavaScript browser script to hide the region but I am afraid that in the future some new button to gradually report all such messages as non harmful would be added to that region but such script will prevent me from clicking it. 49.230.10.186 (talk) 08:09, 18 December 2020 (UTC)
- you may have to get someone with oversight rights to do that - https://meta.wikimedia.org/wiki/Oversight_policy/Requests_for_oversight#All_Wikimedia_wikis Bawolff (talk) 04:25, 20 December 2020 (UTC)
- this usually means DMARC, DKIM or SPF is misconfigured (in gmail, go to more options, show oroginal message, to see) Bawolff (talk) 17:06, 18 December 2020 (UTC)
- Hello @Bawolff I just scanned Gmail options under all labels and didn't find a mention of any of these terms.
- From the Google documentation I understand that before one setups DMARC, that person should first setup SPF and then DKIM.
- About setting SPF I found:
- Step 1: Create your TXT record for SPF
- Step 2: Enable SPF for your domain
- I understand that SPF mechanism is implemented above the operating system layer;
- I don't think I have control about SPF because my hosting is FaaS-shared (I should try to contact the hosting provider).
- About setting DKIM I found:
- A sender creates the DKIM by “signing” the email with a digital signature. This “signature” is located in the message’s header. The sending mail transfer agent (MTA) generates the signature by using an algorithm applied to the content of the signed fields. This algorithm creates a unique string of characters, or a “hash value.”
- I understand that DKIM is implemented in the application (MediaWiki) layer.
From a quick read, I grasp both SPF and DKIM alone as complex topics that one has to take the time and learn deeply. 49.230.10.186 (talk) 06:57, 19 December 2020 (UTC) - dkim is implemented at the mail-transfer-agent (MTA) level, not mediawiki. The MTA is usually part of your operating system. Like SPF, DKIM also involves modifying DNS records.
- If setting up dmarc/spf/dkim is too complex, consider using $wgSMTP to send email via a third party vendor, such as Sendgrid or gmail. (Often such vendors have a free teir for low volume senders) Bawolff (talk) 07:10, 19 December 2020 (UTC)
- I have installed both Postfix and sSMTP upon the operating system level in the past (upon Debian);
- Shouldn't SPF-DKIM be a standard for all CaaS/FaaS hosting services (similarly to how TLS-HTTPS is a standard) in 2020? 49.230.10.186 (talk) 07:21, 19 December 2020 (UTC)
How can I enable file upload?
I use php 7.4 and mysql 5.7 on AWS ec2 machine.
I checked php.ini it has file_uploads = On.
Then, I set and run these command below.
```
$wgEnableUploads = true;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";
$wgFileExtensions = [ 'png', 'jpg', 'jpeg', 'ogg', 'doc', 'xls', 'ppt', 'mp3', 'sxc', 'pdf' ];
sudo chmod 775 ./images/
sudo chmod -x+X ./images/ -R
sudo systemctl restart httpd
```
However, I still cannot see the file upload icon. Do I miss something?
Thanks a lot! 165.124.85.99 (talk) 06:49, 18 December 2020 (UTC)
- Where exactly to see some "file upload icon"? What are steps to perform? Which MediaWiki version? What is being uploaded? Malyacko (talk) 06:55, 18 December 2020 (UTC)
- Thanks @Malyacko.
- MediaWiki version is 1.35.1.
- I created a new page and added a line: <figure-inline class="mw-default-size">[./Special:FilePath/1.png File:1.png]</figure-inline>.
- This line shows red at here but still black on my site.
- Then I finished this page and clicked this file, it shows not exist this file.
- Thanks a lot! 165.124.85.99 (talk) 07:00, 18 December 2020 (UTC)
- It looks like I haven't enable upload file. 165.124.85.99 (talk) 07:07, 18 December 2020 (UTC)
- And I also set time zone and it works. 165.124.85.99 (talk) 07:10, 18 December 2020 (UTC)
- I finally found why I cannot upload file. Cause I just added the line $wgEnableUploads = true; on the top but did not remove $wgEnableUploads = false;. I will try to update this part in the documentation. 165.124.85.99 (talk) 11:38, 18 December 2020 (UTC)
Blockquote not displaying correctly
I have a brand new installation of MediaWiki 1.35 on a PC on my home network.
$ php -v
PHP 7.4.13 (cli) (built: Nov 30 2020 20:40:09) ( NTS )
$ uname -a
Linux micro 4.19.0-12-amd64 #1 SMP Debian 4.19.152-1 (2020-10-18) x86_64 GNU/Linux
The manual shows a block quote with a line down the left-hand side, which is what I expected.
While the text is indented, the line doesn't appear. I've tried Chrome & Edge, same in both.
I have the same problem in a page on a similarly new installation though it's got PHP 7.3 rather than PHP 7.4. I've created a demo page:
Blockquote - (scottishglidingcentre.co.uk) Salwoo (talk) 09:01, 18 December 2020 (UTC)
- i dont think that styling is default. You may have to modify mediawiki:common.css or copy one of the quote templates from another wiki. Bawolff (talk) 20:18, 19 December 2020 (UTC)
Reemplazar una palabra en toda la wiki
Hola!! mi problema es que debo reemplazar una palabra en toda la wiki, existe una forma general de hacerlo? MariaBaigorria (talk) 19:41, 18 December 2020 (UTC)
Remove generator meta tag?
Is there anyway so that it is not displayed in code? I.e. not to see
<meta name="generator" content="MediaWiki 1.31.12"/> Spiros71 (talk) 19:51, 18 December 2020 (UTC)
- Which problem would get solved by removing that? Malyacko (talk) 19:56, 18 December 2020 (UTC)
- https://www.drupal.org/project/drupal/issues/1481140 Spiros71 (talk) 23:03, 18 December 2020 (UTC)
- @Spiros71 Thanks, so this is about security by obscurity. It seems this was added in https://phabricator.wikimedia.org/rMW720de799f916bcce26b83886253ce142193d9fd0. Feel free to change your local code accordingly, and/or feel free to follow How to report a bug to file a feature request in Phabricator under #MediaWiki-General. Malyacko (talk) 13:59, 19 December 2020 (UTC)
- Exactly. Interesting, no instance of $wgVersion in any of my skins for 1.31 (Timeless, Vector, MinervaNeu mobile). Added on Phabricator: https://phabricator.wikimedia.org/T270555
- And I can only see this function in OutputPage.php
public function getHeadLinksArray() {global $wgVersion;$tags = [];$config = $this->getConfig();$canonicalUrl = $this->mCanonicalUrl;$tags['meta-generator'] = Html::element( 'meta', ['name' => 'generator','content' => "MediaWiki $wgVersion",] );if ( $config->get( 'ReferrerPolicy' ) !== false ) {// Per https://w3c.github.io/webappsec-referrer-policy/#unknown-policy-values// fallbacks should come before the primary value so we need to reverse the array.foreach ( array_reverse( (array)$config->get( 'ReferrerPolicy' ) ) as $i => $policy ) {$tags["meta-referrer-$i"] = Html::element( 'meta', ['name' => 'referrer','content' => $policy,] );}}Spiros71 (talk) 17:38, 19 December 2020 (UTC)- note, you will also want to kill Special:version and the siteinfo api module. Bawolff (talk) 20:17, 19 December 2020 (UTC)
How to set a user as an admin
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
How do I set a user as an admin? Jayatleeds (talk) 20:36, 18 December 2020 (UTC)
clone request page broken
The links within the webpage to request clones is broken. Could someone please look into this?
https://wiki.wormbase.org/index.php?title=Cosmids/YACs
Thanks! 98.156.232.222 (talk) 18:57, 19 December 2020 (UTC)
- we do not operate that website. You would have to ask the people that run that site. Bawolff (talk) 20:15, 19 December 2020 (UTC)
I can't log in after upgrading to 1.35.1
This is what happens when I click log in:
https://pasteboard.co/JFI8bBl.png
It's been like that since I upgraded to 1.35.1
Please help! UGOBOSS777 (talk) 23:03, 19 December 2020 (UTC)
- That's exactly my problem too! See my post above "MediaWiki version 1.35.1 garbled text encoding problem (MySQL database incorrect encoding)".
- My hosting provider (Namecheap) tried to fix it but gave up. I hope someone here figures out what is going on! 2A00:23C4:9DC4:D001:1D5F:D66F:E2A:D2D9 (talk) 01:48, 20 December 2020 (UTC)
- Check if you have $wgDisableOutputCompression = true; set in your LocalSettings.php.
- That is what was causing this on my wiki. If that's the case, then comment it out. Peculiar Investor (talk) 01:57, 20 December 2020 (UTC)
- Is this reported in Phabricator? ☠MarkAHershberger☢(talk)☣ 03:36, 20 December 2020 (UTC)
- Is anyone trying to fix this? I hope so! Michaelbeijer (talk) 12:48, 21 December 2020 (UTC)
- Yes they are. There have been a number of bug reports that all seem to be consolidated into T235554. I'm tracking them because I'm impacted on one wiki I administer. Strangely on another wiki, self-hosted, and on my local testbed running CentOS 8, the problem doesn't happened, so there seems to be odd combination of elements in the webstack (Apache, Varnish cache?, etc) that interact in such as manner to cause the problem.
- Did you check if you have $wgDisableOutputCompression = true; set in your LocalSettings.php? See Has MW 1.35 changed when/how the HTTP header, Content-Length, are used? on Project:Support desk (mediawiki.org) for background on my experiences so far with MediaWiki 1.35.
- My problematic wiki is currently mostly functional by removing the workaround suggested for MediaWiki 1.35, i.e. to set
$wgDisableOutputCompression = false;Peculiar Investor (talk) 13:44, 21 December 2020 (UTC) - Thanks for the info!
- Nothing works on my site:
- $wgDisableOutputCompression = false;
- $wgDisableOutputCompression = true;
- or commenting them out
- All I see is garbled text. Oh well, will have to wait till someone figures it out.
- I wish there was an easier way to get VisualEditor working on 1.31.12. I can't figure out all that crazy Parsoid stuff. Michaelbeijer (talk) 14:33, 21 December 2020 (UTC)
- I think it is being tracked at: https://phabricator.wikimedia.org/T235554
- I hope someone solves this, as it is now permanently impossible for MediaWiki 1.35.1 to be installed in the Namecheap cPanel. Or manually, for that matter, at least for me.
- This is what my site currently looks like:
- https://drive.google.com/file/d/1uzkI2zZXLCGRJWOVo-9Ld1xAVawp3g4T/view?usp=sharing Michaelbeijer (talk) 11:48, 20 December 2020 (UTC)
- Weirdly, it's garbled in ALL browsers (IE, Chrome, Edge) except Firefox:
- https://drive.google.com/file/d/1DBoVoGammV1V9YYb2NDF90OZRFIzxBOw/view?usp=sharing Michaelbeijer (talk) 11:51, 20 December 2020 (UTC)
- Having this same issue. GoDaddy was unable to help me figure out why it was happening. They said it was my account and looked like it had been hacked. I didnt quite agree with that. It was a bit of a shocker for sure. Luckily I had a backup. After uninstalling and re-installing my back up the next morning same thing. I came to realization that I had it toggled under the CPanel to do the updates when available so it was going from 1.35.0 to 1.35.1. I turned this off so it will stay at 1.35.0 for now till this is resolved. My compression setting was actually commented out in my file, but still it messes up the page when the update took place 2601:589:4600:1E30:5C5B:A2C3:57DB:D4E5 (talk) 21:40, 1 January 2021 (UTC)
- any progress on this? facing the same issue with multiple wiki sites busted by 1.35.1 84.9.133.159 (talk) 11:52, 11 January 2021 (UTC)
- i migrate today from 1.34.4 to 1.35.1 : same issue (chrome, chromium) but not with firefox 2A01:E0A:322:5EC0:C467:2E20:901C:1D9E (talk) 20:33, 18 January 2021 (UTC)
- Hello,
- there is a hack waiting for official fix:
- In file includes/Mediawiki.php
- change 0 to "On" lin 1071: ini_set( 'zlib.output_compression', "On" );
- comment line 1082 : // $response->header( 'Content-Length: ' . ob_get_length() ); FredericLogipro (talk) 21:35, 18 January 2021 (UTC)
MediaWiki version 1.35.1 garbled text encoding problem (MySQL database incorrect encoding)
I am having trouble installing MediaWiki version 1.35.1. Every time I install it (either via Softaculous/NameCheap, or manually), my site is completely garbled, but only in Chrome/IE and Edge. For some reason, Firefox displays fine. If I install 1.31.12, it all looks good.
The garbled version, is just all this stuff:
���T,�z��1e{<��s[^��"!�1H0�hYɦj?�}��$�� ��d[�Nf�f�2��4�_7�/������O��?=�c�����6~�@r��^ #��?Q���$O�}O$�����I�yH.x���0����ia������s� �&2R�~�.�C���������,J� TA���-�eO �MpH � �<�����u��7��� ~�:
Namecheap hosting support said the installer is not creating the MySQL tables correctly (something to do with UTF/binary), but I don't know how to fix this. Can someone help me? I really want to use 1.35.1 as it has some new stuff I want to use that is not in 1.31.12.
Michael 2A00:23C4:9DC4:D001:782A:EA07:FDE0:55F3 (talk) 01:29, 20 December 2020 (UTC)
- Check if you have $wgDisableOutputCompression = true; set in your LocalSettings.php.
- That is what was causing this on my wiki. Peculiar Investor (talk) 01:58, 20 December 2020 (UTC)
- Thanks for the tip! However, this doesn't seem to fix it. Hmm. Should I comment it out, change "true" to "false"? Tried both, but not helping. :-( 2A00:23C4:9DC4:D001:F19B:1399:3FDB:101E (talk) 02:34, 20 December 2020 (UTC)
- Do you have a link to your wiki? If not, could you create a HAR file and link to it somewhere.
- It does sound a lot like content-encoding header isn't matching the compression used by the webserver. If wgDisableOutputCompression isn't working, might be at the webserver layer instead.
- I think the mysql encoding idea is likely not the issue unless its only page content like this and the rest of the site layout is fine (and your wiki is using a non-latin language) Bawolff (talk) 04:19, 20 December 2020 (UTC)
- Here you go!
- • version 1.31.12 works:
- https://beijerpedia.com/wiki/index.php?title=Main_Page
- • version 1.35.1 does NOT work:
- https://beijerpedia.com/wiki2/index.php/Main_Page
- I installed them both via Softaculous, in my Namecheap cPanel. Michaelbeijer (talk) 10:44, 20 December 2020 (UTC)
- This is what my website looks like:
- https://drive.google.com/file/d/1uzkI2zZXLCGRJWOVo-9Ld1xAVawp3g4T/view?usp=sharing Michaelbeijer (talk) 11:49, 20 December 2020 (UTC)
- Weirdly, it's garbled in ALL browsers (IE, Chrome, Edge) except Firefox:
- https://drive.google.com/file/d/1DBoVoGammV1V9YYb2NDF90OZRFIzxBOw/view?usp=sharing Michaelbeijer (talk) 11:51, 20 December 2020 (UTC)
- Darn, looks like I am going to have to think of an alternative plan. I really want to use the new VisualEditor, but can't use version 1.35.1, no matter what I try. VisualEditor is way too hard to get working on 1.31.12.
- I am currently investigating BlueSpice, since they run an older version of MW (that isn't broken), but offer a working VE out of the box. Michaelbeijer (talk) 11:01, 21 December 2020 (UTC)
- Yikes. Not sure what it is, but I don't like Bluespice. It also seems to be full of bugs, although that might just be my hasty manual install to have a quick look at it. Anyway, I am determined to get MediawWiki (and the VisualEditor) to work, one way or another, as it really is an amazing tool. Michaelbeijer (talk) 00:12, 22 December 2020 (UTC)
- Two of my wikis are also experiencing this issue. Could you let me know if there's a solution discovered? Krayfishkarl (talk) 04:03, 22 December 2020 (UTC)
- Fresh install 1.35.1 either by manual or by Softaculous on GoDaddy and A2 Hosting producing same issue and only visible by Firefox.
- Grab the 1.34.4 and fresh install is all fine but will produce the same after upgrading to 1.35.1.
- Uncomment and set $wgDisableOutputCompression true or false is no help on all my cases. 58.152.114.248 (talk) 06:26, 22 December 2020 (UTC)
- I have sent an email to my hosting provider (Namecheap) to ask them to remove 1.35.1 from their Softaculous installer, as it is totally broken. Michaelbeijer (talk) 10:49, 22 December 2020 (UTC)
- This is what I wrote them:
- Subject: MediaWiki v.1.35.1 (installed your Softaculous installer) is totally broken
- I recently spent a while with your support team trying to figure out why MediaWiki 1.35.1 won't install (via Softaculous in my cPanel), and it now appears I am not the only one. A lot of people are having this exact problem. Please have a look at: https://www.mediawiki.org/wiki/Project%3ASupport%20desk/Flow/2020/12#h-MediaWiki_version_1.35.1_garbled_text_encoding_problem_%28MySQL_database_incorrect-2020-12-20T01%3A29%3A00.000Z
- If 1.35.1 is installed, it is completely garbled on all browsers (also mobile), except Firefox.
- Can you guys (temporarily) remove MediaWiki 1.35.1 from your Softaculous installer, as it is totally broken?
- Regards,
- Michael
- What my site looks like in various browsers: https://beijer.uk/archive/screenshots/MediaWiki-1.35.1-bug.png Michaelbeijer (talk) 11:10, 22 December 2020 (UTC)
- In firefox I can see that the server returns two Content-Encoding headers:
- This is in your server response:
content-encoding: identity content-encoding: gzip content-length: 9124
- Quote from RFC:
identity The default (identity) encoding; the use of no transformation whatsoever. This content-coding is used only in the Accept-Encoding header, and SHOULD NOT be used in the Content-Encoding header.
- I'm guessing this is what confuses the browsers, and possibly a webserver configuration error icw with the gzip compression that mediawiki applies.
- > Uncomment and set $wgDisableOutputCompression true or false is no help on all my cases.
- Not that there might be caching in play, which could cause it to take multiple minutes or even hours before you can see the result of such a change at the browser side. All depends on the configuration.
- EDIT:
- Yeah nvmd, this is definetly https://phabricator.wikimedia.org/T235554 —TheDJ (Not WMF) (talk • contribs) 12:45, 22 December 2020 (UTC)
- I tried modifying includes/MediaWiki.php and commented out the line that outputting content-encoding: identity header
- I don't know if it is a good practice but now it all looks go normal back. 119.236.103.35 (talk) 14:55, 22 December 2020 (UTC)
- Jesus Christ, that did it. I have no idea if it is a good idea to do, but I commented out exactly this line:
$response->header( 'Content-Encoding: identity' );- … and voilà, my site works again! Thanks for the tip. Hopefully this will get fixed, but at least I can work with my site again. Michaelbeijer (talk) 15:57, 22 December 2020 (UTC)
- I can verify that this works! I have not noticed any additional problems that have come of this, but I'll keep an eye out. Krayfishkarl (talk) 17:56, 22 December 2020 (UTC)
- Just updated from 1.35.0 to 1.35.1, and ran into this issue immediately. Commented out ./includes/MediaWiki:1069, line '
$response->header( 'Content-Encoding: none' )' and all browsers but Firefox worked again Mave9 (talk) 17:24, 7 January 2021 (UTC) - @Mave9 You mean:
- MediaWiki.php Johnywhy (talk) 15:41, 31 January 2021 (UTC)
Error 500
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I tried to follow the install instructions (Manual:Installation guide - MediaWiki) and try to go to wiki.phonlathorn.org/mw-config but it throws me 500 internal error. Note that this is NOT a localhost. You can visit PHP 7.4.10 - phpinfo() (phonlathorn.org) for php version. Achia70 (talk) 13:10, 20 December 2020 (UTC)
- Oh, I found the solution. I extract the mediawiki folder directly from the 7zip. That's why it's like that Achia70 (talk) 13:55, 20 December 2020 (UTC)
Import wiki page to WordPress
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 to import MediaWiki page to my WordPress example website https://wikivisually.com/wiki/Wikipedia Suntq (talk) 19:41, 20 December 2020 (UTC)
- Feel free to ask in a WordPress forum how the import in WordPress works. We are not WordPress. Malyacko (talk) 21:50, 20 December 2020 (UTC)
How can I get ConfirmAccount to load a new language file
How can i get MediaWiki 1.35 to load a new language.json file that I moved to the /wiki/extensions/ConfirmAccount/i18n/requestaccount
or how do I disable all caching so that I can modify the Request Account form in multiple different language json files on a local wiki test subdomain?
Installed software
Product Version MediaWiki 1.35.0
PHP 7.4.9 (cgi-fcgi)
MySQL 5.7.31-percona-sure1-log
ICU 63.1
Lua 5.1.5
It was not that difficult when I upgraded to MW 1.27 Even deleting the fr.json file does not return a file not found error, so it has to be cached, but where? Ken Roy (talk) 20:16, 20 December 2020 (UTC)
- typically making an edit to LocalSettings.php should clear the cache. Where precisely these caches are stored depends on your wiki configuration.
- But unless you are making a new extension with new messages, you probably shouldn't be touching these files. If you need to change a translation, use the MediaWiki: namespace of your wiki to override the value. If there is an error in a translation or you want to add a new language, use https://translatewiki.net Bawolff (talk) 23:46, 20 December 2020 (UTC)
- Thanks Bawolff,
- We tailored the ConfirmAccount register form to meet our community need. Are you are saying I cannot change the fr.json file to match the changes I apply to the en.json file which displays correctly when update but have to override each message in the MediaWiki: namespace?
- That is a long process to create new messages for a half dozen languages supported on our wiki.
- When I select a language from the LanguageSelector portlet in the left sidebar, it immediately switches the requestaccount form to the correct language but the content is from when I first installed the wiki.
- Is there a way to disable the caching of the language .json files either in the ConfirmAccount extension or the LanguageSelection extension? Ken Roy (talk) 10:40, 21 December 2020 (UTC)
- What he is saying is that the proper place for overrides of translations is in the MediaWiki namespace and not to adapt the extension. That is because the extension will be updated to a new version at some point and you might accidentally overwrite your changes and loose them forever, or if you had stored a diff, it will be a very complicated diff that won't cleanly apply and you have to make all the changes again by hand as well. —TheDJ (Not WMF) (talk • contribs) 12:26, 22 December 2020 (UTC)
- Thanks TheDJ,
- I understand but I have a change control system that verifies the location of the change we make before applying the change that was developed for another project that also works for making changes to wiki files. I think I was using the MediaWiki namespace message overrides 12 years ago but changed it to apply the changes to the en.json file using our change management utility.
- My question still stands - Is there not a way to get the language xx.json file re-loaded while we are testing changes? Once the changes are agreed on, it would not matter that the files are cached
- If I make a change to the en.json file it is automatically picked up when I do a forced reload in the browser, but I cannot pickup the changes in the other languages that way.
- Maybe I need to phrase my problem differently. With the LanguageSelector extension installed on MediaWiki 1.35 if I select a wiki file that has a /fr page it automatically displays the French page if I select français (French) from the language list in the sidebar portlet. Not seeing the changes I am making to the fr.json file makes it difficult to get the register form changes we made to be translated correctly and accepted others who have no wiki expertise.
- Putting the language overrides in the MediaWiki namespace is a regression to what we had to do 12 years ago. If the en.json file changes are being picked up on a forced reload of the browser, why can the French, Danish, Dutch, or other language changes not be displayed the same way.
- Why can the ConfirmAccount extension not pickup the changes? Where do I disable the cache for that extension Ken Roy (talk) 20:16, 22 December 2020 (UTC)
- you indicated in a different thread that you dont have shell access to the server. Maybe the method your using to upload the new versions of the files isnt modifying mtimes properly or something.
- You could try maybe removing the wfLoadExtension() line and readding it to force a cache purge (should not be neccessary, but maybe it will work) Bawolff (talk) 22:20, 26 December 2020 (UTC)
- Thanks Bawolff,
- I tried your suggestion after deleting all the manual Special:AllMessages I had created some 10 years ago. Now when I select francais (French) from the LanguageSelection portlet, the updated Register form initialy displays in the French language but then immediately reverts to the English text for that form.
- This is on my WampServer with MW 1.35.1 I will try to get my upgrade to MW 1.35.1 on my Internet sandbox today, but will first try deleting the overrides in Special:AllMessages created previously on that sandbox and try your suggestion on that sandbox. Ken Roy (talk) 16:15, 27 December 2020 (UTC)
- Bawolff,
- Thanks for all your help. It looks like deleting the requestaccount message overrides I created some 10 years ago allows the updates I now made to fr.json files in the ConfirmAccount/i18n folder to be used. I now need to get my French translator to provide me the translations to the changes i made to the English json files. Ken Roy (talk) 16:54, 27 December 2020 (UTC)
Does Extension:CSS blocks filter property?
The filter property is useful for me. Is this a bug or why is this done? AngeCI (talk) 12:35, 21 December 2020 (UTC)
Fatal error
Hi, I'm trying to install MediaWiki on XAMPP for the first time, but I keep getting this error when I direct my browser to the installer page.
Fatal error: Uncaught Error: Class "Wikimedia\Services\ServiceContainer" not found in C:\xampp\htdocs\pfwiki\includes\MediaWikiServices.php:152 Stack trace: #0 C:\xampp\htdocs\pfwiki\includes\AutoLoader.php(109): require() #1 C:\xampp\htdocs\pfwiki\includes\objectcache\ObjectCache.php(255): AutoLoader::autoload('MediaWiki\\Media...') #2 C:\xampp\htdocs\pfwiki\includes\TemplateParser.php(63): ObjectCache::getLocalServerInstance(-1) #3 C:\xampp\htdocs\pfwiki\includes\NoLocalSettings.php(47): TemplateParser->__construct() #4 C:\xampp\htdocs\pfwiki\includes\WebStart.php(67): require_once('C:\\xampp\\htdocs...') #5 C:\xampp\htdocs\pfwiki\includes\Setup.php(138): wfWebStartNoLocalSettings() #6 C:\xampp\htdocs\pfwiki\includes\WebStart.php(89): require_once('C:\\xampp\\htdocs...') #7 C:\xampp\htdocs\pfwiki\index.php(44): require('C:\\xampp\\htdocs...') #8 {main} thrown in C:\xampp\htdocs\pfwiki\includes\MediaWikiServices.php on line 152
Is there a solution to this? Vozhan (talk) 21:11, 21 December 2020 (UTC)
- where did you get your copy of mediawiki from? Are you sure it was extracted properly (7zip is buggy and doesnt work) Bawolff (talk) 21:55, 21 December 2020 (UTC)
- Do you have a solution? Vozhan (talk) 16:36, 23 December 2020 (UTC)
- I downloaded MediaWiki 1.35.1 as a tar.gz file from the Download page, and I used WinRAR to extract it. Vozhan (talk) 22:19, 21 December 2020 (UTC)
How to install wiki 1.35 on RHEL8
Hello Team,
I want to install Wiki on my linux, Please guide.
Thanks
Rodrick 157.39.76.184 (talk) 06:52, 22 December 2020 (UTC)
- Please see Manual:Installation guide Taavi (talk!) 10:00, 22 December 2020 (UTC)
- Hello:
- I had the same predicament with Fedora 32.
- Neat the end of the install, there is an error message, SELINUX issue it seems, but frankly not so obvious.
- So for install on RHLE8, as well as Fedora 33, perhaps SUSE Linux, "we do need a good" (simple !) procedure.
- Fedora support sent me back to mediawiki, so...
- Thanks for the attention.
- A.G 90.76.184.254 (talk) 12:42, 22 December 2020 (UTC)
- Unfortunately, installing MediaWiki is not a simple procedure. Ciencia Al Poder (talk) 18:48, 22 December 2020 (UTC)
- SELinux might help. Its really more of an selinux question rather than mediawiki question.
- If you need something dead simple, i would suggest trying debian/ubuntu which have high quality mediawiki packages. Bawolff (talk) 01:25, 23 December 2020 (UTC)
Version
How can I check, which wiki version I have? 46.189.37.196 (talk) 09:47, 22 December 2020 (UTC)
Troubles with installing extentions on MediaWiki 1.35
Greetings!
I successfully installed MediaWiki 1.35 on Ubuntu 20.04 and Nginx.
But I can't install extention Echo. So, I can't both run update.php script and access web updater. More, some extensions like MobleFrontend, which don't change database, dropped my wiki to Error 500 too. What should I do? Thanks for any help!
PHP v 7.4
update.php output:
wikiadmin@wiki-ubuntu:/var/lib/mediawiki/maintenance$ sudo php update.php
PHP Fatal error: Uncaught Exception: Unable to open file vendor/wikimedia/parsoid/extension.json: filemtime(): stat failed for vendor/wikimedia/parsoid/extension.json in /var/lib/mediawiki/includes/registration/ExtensionRegistry.php:177
Stack trace:
#0 /var/lib/mediawiki/includes/GlobalFunctions.php(51): ExtensionRegistry->queue()
#1 /var/lib/mediawiki/LocalSettings.php(151): wfLoadExtension()
#2 /var/lib/mediawiki/includes/Setup.php(143): require_once('/var/lib/mediaw...')
#3 /var/lib/mediawiki/maintenance/doMaintenance.php(91): require_once('/var/lib/mediaw...')
#4 /var/lib/mediawiki/maintenance/update.php(253): require_once('/var/lib/mediaw...')
#5 {main}
thrown in /var/lib/mediawiki/includes/registration/ExtensionRegistry.php on line 177
PHP Fatal error: Uncaught Error: Class 'WebRequest' not found in /var/lib/mediawiki/includes/HeaderCallback.php:63
Stack trace:
#0 [internal function]: MediaWiki\HeaderCallback::callback()
#1 {main}
thrown in /var/lib/mediawiki/includes/HeaderCallback.php on line 63
/etc/nginx/sites-avaliable/wikibase
server {
listen 192.168.10.194:80 default_server;
server_name wikibase;
root /var/www/html/mediawiki;
client_max_body_size 5m;
client_body_timeout 60;
location / {
try_files $uri $uri/ @rewrite;
}
location /wikibase/ {
try_files $uri $uri/ @rewrite;
}
location @rewrite {
#rewrite ^/(.*)$ /index.php?title=$1&$args;
rewrite ^/(.*)$ /index.php?title=%D0%97%D0%B0%D0%B3%D0%BB%D0%B0%D0%B2%>
}
location ^~ /maintenance/ {
return 403;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
fastcgi_param SCRIPT_FILENAME $request_filename;
}
# location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
# root /var/www/html/mediawiki;
# expires max;
# log_not_found off;
# }
# location ~ ^/(skins|extensions)/.+\.(css|js|gif|jpg|jpeg|png|svg|wasm)$ {
# try_files $uri 404;
# add_header Cache-Control "public";
# expires 7d;
# }
location /rest.php/ {
try_files $uri $uri/ /rest.php?$query_string;
}
location ^~ /cache/ {
deny all;
}
} Vasisualy2009 (talk) 12:37, 22 December 2020 (UTC)
- Topic was marked as solved, but there wasn't described how.
- I've had the same problem with MediaWiki 1.36 an Ubuntu 20.4 with Apache.
- I changed wfLoadExtension( 'Parsoid', "$PARSOID_INSTALL_DIR/extension.json" );
- in LocalSetting.php, which worked with MediaWiki 1.34, to
- wfLoadExtension( 'Parsoid', __DIR__ . "/vendor/wikimedia/parsoid/extension.json" );
- and phpupdate ran without problems.
- Hope, that helps others with the same problem. E.Holgeri (talk) 10:20, 28 May 2021 (UTC)
- It worked also for me.
- I had: wfLoadExtension( 'Parsoid', 'vendor/wikimedia/parsoid/extension.json' );
- instead of
- wfLoadExtension( 'Parsoid', __DIR__ .'/vendor/wikimedia/parsoid/extension.json' ); Hyperreview (talk) 15:16, 28 November 2022 (UTC)
- I just had this issue while upgrading to 1.37. This solved it. Thanks. Cojoilustrado 06:08, 27 March 2022 (UTC)
Top used Extension
Hello i had find a top 10 list with the most used extensions this morning. Now i cannot find.
Can anyone support?
thanks 46.189.37.196 (talk) 14:42, 22 December 2020 (UTC)
- https://wikiapiary.com/ Malyacko (talk) 14:43, 22 December 2020 (UTC)
- in addition to wikiapiry, there is also https://grafana.wikimedia.org/d/000000161/extension-distributor-downloads?orgId=1 based on downloads via Special:ExtensionDistributor Bawolff (talk) 01:22, 23 December 2020 (UTC)
Flow charts
Is there a extension to create flow charts on mediawiki?
Thanks 46.189.37.196 (talk) 14:56, 22 December 2020 (UTC)
- Extension:DrawioEditor – Ammarpad (talk) 16:03, 22 December 2020 (UTC)
- Here's something similar: Extension:Flex Diagrams. Jonathan3 (talk) 16:55, 22 December 2020 (UTC)
How to remove the "Change interface language?" popup
After upgrading to 1.35.1 after changing user language the popup began to appear with question "Change interface language?" and Accept/Cancel buttons.
How to disable or remove it so that user can switch language without this question in popup? Absorbcium (talk) 16:13, 22 December 2020 (UTC)
- Do you have links or code somewhere that use `setlang` URL parameter? The dialog should only appear if that is present. Nikerabbit (talk) 09:14, 23 December 2020 (UTC)
- Yes, you're right. The wiki is inside iframe, the user language is set outside it and provided with wiki/index.php?setlang=<lang>&...into iframe.
- Is there any other way to change language from outside wiki? Maybe it's possible to make some wiki api call to change language right after when it was selected for whole website? Absorbcium (talk) 19:11, 24 December 2020 (UTC)
- You could just set the default language for the wiki and disable auto-detection.
- Or if users are not logged in, just set cookie `language`. Nikerabbit (talk) 10:05, 25 December 2020 (UTC)
- @Nikerabbit, thank you for replay and the adviсes on a possible solutions. Wiki is translated into many languages and I would not like to lose the opportunity to use them on website. Maybe patching the ULS code can help. Absorbcium (talk) 16:50, 25 December 2020 (UTC)
Recent upgrade - Talk Page Impact
After upgrading, we noticed our Talk page no longer looks like a normal talk page. Instead of the "Start a new topic" option, I am offered the option to create a new talk page (similar to creating a new article).
Our developer removed some extensions during the upgrade, so perhaps he removed one too many? Thank you for your help. Paleoish2 (talk) 16:33, 22 December 2020 (UTC)
- Maybe you can find something out from Extension:StructuredDiscussions? 𝟙𝟤𝟯𝟺𝐪𝑤𝒆𝓇𝟷𝟮𝟥𝟜𝓺𝔴𝕖𝖗𝟰 (𝗍𝗮𝘭𝙠) 17:01, 22 December 2020 (UTC)
Shorturl Works for most links, but View source ect etc retain scriptpath.
I'm trying to get links to look like /wiki/title
I have gotten this to work on most pages.
/wiki/Home
/wiki/Special:Random
etc.
However the the Edit and View history links retain the file structure.
/w/mw/index.php?title=Home&action=edit
/w/mw/index.php?title=Home&action=history
there may be other links that are like this but I have not found them yet.
I used https://shorturls.redwerks.org/ and received these instructions
RewriteEngine On
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/mw/index.php [L]
RewriteRule ^/?$ %{DOCUMENT_ROOT}/w/mw/index.php [L]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^/?w/mw/images/thumb/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/w/mw/thumb.php?f=$1&width=$2 [L,QSA,B]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^/?w/mw/images/thumb/archive/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/w/mw/thumb.php?f=$1&width=$2&archived=1 [L,QSA,B]
$wgScriptPath = "/w/mw";
$wgScriptExtension = ".php";
$wgArticlePath = "/wiki/$1";
$wgEnableUploads = true;
$wgGenerateThumbnailOnParse = false;
The links work, they're just not shortURLs any ideas? KamberTik (talk) 17:43, 22 December 2020 (UTC)
- You did nothing wrong. The configuration for short URLs is meant to be only for the "view" action, and basically any URL that doesn't require any URL parameters apart from title. Ciencia Al Poder (talk) 18:46, 22 December 2020 (UTC)
- Ahh ok, there must be something else to do then, I see it on other mediawikis.
- maybe it is an extension, I'll see what I can dig up.
- Thanks for letting me know I didn't mess something up! KamberTik (talk) 19:04, 22 December 2020 (UTC)
Minus sign not visible in chrome on following page
On this site: https://de.wikipedia.org/wiki/Determinante#Laplacescher_Entwicklungssatz there are two formulas, which should both have a minus sign before the 1. But in the first equation the minus sign is not visible.
Bug happens in current version of Google Chrome on Windows 10 2A02:810D:95BF:E340:D17B:2F06:31D7:FE6B (talk) 21:18, 22 December 2020 (UTC)
- Google Chrome is broken, as you can see when looking at the page source. Please report this to Google Chrome so Google can fix Chrome. Thanks. Malyacko (talk) 22:26, 22 December 2020 (UTC)
- I'm not disagreeing with you, but it would be good to know what's up here. The same mathematical notation is on https://en.wikipedia.org/wiki/User:Jonathan3/sandbox and https://de.wikipedia.org/wiki/Benutzer:Jonathan3/sandbox - they display fine on English Wikipedia but not German. Jonathan3 (talk) 15:23, 23 December 2020 (UTC)
- They display both correct in en and de here, and certain Chrome zoom levels are broken in Chrome. Malyacko (talk) 00:24, 24 December 2020 (UTC)
- How odd. You're right about the zoom levels. The minus sign just appears and disappears. I guess whoever deals with the
<math>tag might be in a better position to report this to Chrome than 2A02:810D:95BF:E340:D17B:2F06:31D7:FE6B :-) Jonathan3 (talk) 11:13, 24 December 2020 (UTC) - I found a work around (don't know if it will work for anyone).
- Try to view the site with 110% 2A02:8070:2195:F300:9D51:3F8D:3E84:E418 (talk) 16:37, 9 January 2021 (UTC)
- It's a strange one. It might break at 120% and work again at 130% (or whatever). You wouldn't necessarily know it was wrong at any particular zoom. Jonathan3 (talk) 00:41, 11 January 2021 (UTC)
- I confirm the bug in my wiki with Windows 10 and Chrome Version 87.0.4280.141.
- The bug appears in a high resolution monitor (2560 px x 1440 px) when I zoom to levels <= 67%. Going larger (> 100%) does not reproduce the problem.
- The bug does not reproduce in Linux nor Android 10 (mobile and desktop views). Both Linux and Android Versions are 87.0.4280.141.
- I have requested assistance in the Math Extension Talk page: Google Chrome bug causes incorrect formula display Lady G2016 (talk) 16:09, 14 January 2021 (UTC)
- I encountered this bug in opera gx as well! 176.240.162.56 (talk) 18:58, 11 April 2021 (UTC)
error during $wgServer configuration
I've tried to configure
$wgServer = "http://wiki.reputacion.digital";
my server is apache, i've got a virtual host and the redirection from that domain (http://wiki.reputacion.digital)
But with this configuration i've got a "not existing page" error
Only is working if I put ip address
$wgServer = "http://my server ip";
What's the error? how can i configure the domain instead of the ip ?
Regards, Eduardo
PS: you can try wiki.reputacion.digital to see what I mean. Edumferreyra (talk) 00:23, 23 December 2020 (UTC)
- > i've got a virtual host and the redirection from that domain
- That doesn't sound right. Can you be more specific as to what that means? Bawolff (talk) 01:13, 23 December 2020 (UTC)
- thanks the answer, sorry wasn't enougth especific.
- I've meant :
- domain pointing to the ip in the server
- server ubuntu running apache 2.4.18
- directory with mediawiki software in the server
- conf file in etc/apache2/sites-available/ configured with the directory and the alias
- ServerAdmin webmaster@localhost
- DocumentRoot xxxx
- ServerAlias wiki.reputacion.digital
- When I configure
- $wgServer = "server ip "; everything run ok, but in the browser pages are displayed with the ip, like
- http://200.69.250.97/wiki/index.php/P%C3%A1gina_principal
- (typing wiki.reputacion.digital in the browser's url )
- When i configured like this:
- $wgServer = "http://wiki.reputacion.digital";
- http://wiki.reputacion.digital/wiki/index.php/P%C3%A1gina_principal
- =Not Found=
- The requested URL was not found on this server. Edumferreyra (talk) 13:37, 23 December 2020 (UTC)
- The "wiki.reputacion.digital" domain name resolves to the IP address 104.27.160.198, not to 200.69.250.97
- Maybe you need to update your DNS record Ciencia Al Poder (talk) 13:42, 23 December 2020 (UTC)
- it's not DNS problem, xx.198 is the main domain,
- The subdomain wiki is in cloudflare redirected to the xxx.xxx.97 domain, and in this server is hosted the wiki in a folder.
- Is there a way to hide the $wgserver in the browser?
- Or how should i set this variable not using the ip ?
- Thanks in advance. Edumferreyra (talk) 16:03, 23 December 2020 (UTC)
- $wgServer should be set to the public domain name or IP address.
- The problem may be your apache server, that's configured to serve only pages for requests arriving to the 200.69.250.97 IP address but not the wiki.reputacion.digital domain.
- Probably a typo or misconfiguration in ServerName or ServerAlias. See https://httpd.apache.org/docs/2.4/vhosts/examples.html Ciencia Al Poder (talk) 18:39, 23 December 2020 (UTC)
- hi, i've just read your answer. Thanks!!
- I'll try and let you know. Thanks again. Edumferreyra (talk) 13:27, 28 December 2020 (UTC)
MediaWiki1.24.2
pz give me
| MediaWiki | 1.24.2 |
Version. Suntq (talk) 03:40, 23 December 2020 (UTC)
- https://releases.wikimedia.org/mediawiki/1.24/mediawiki-1.24.2.tar.gz - this version is significantly outdated. It may have known security vulnerabilities. We reccomend against using it. Its not even the last in the 1.24.x series. Bawolff (talk) 05:29, 23 December 2020 (UTC)
After upgrade, search autocomplete only works on Main namespace even when specifying another NS
MediaWiki 1.35.1
PHP 7.4.3 (fpm-fcgi)
Apache 2.4.41
MySQL 8.0.22
Default MediaWiki search (no external search engine in use)
After upgrading from MediaWiki 1.27 to 1.35.1, search autocomplete only returns Main namespace results even if the search term contains another namespace prefix. This affects both the top-of-page search box in any skin and the bar on Special:Search. This behavior regressed from 1.27, where autocomplete would return other namespace results when specifying a namespace prefix.
For example, given the existence of articles at "Sandbox" and "Talk:Sandbox", when I enter Sand in the search bar, autocomplete suggests the article titled Sandbox (and other articles starting with Sand). But when I type Talk:Sand in the search bar, autocomplete returns no results.
This does not affect the results of entered queries. If I press enter on the Talk:Sand query, the Talk:Sandbox article appears in the search results as expected.
$wgNamespacesToBeSearchedDefault is not set on either wiki. The HTTP request response on the 1.35.1 wiki does not include any errors, and no errors are logged by MediaWiki or Apache, including with debug logging enabled. The search seems successful by MediaWiki's reckoning, bu the results don't match the expectations of 1.27.
See https://imgur.com/a/WqqKrLS for a visual example. The wiki running 1.35.1 is not public. Different skins do not change the behavior (reproduced on Vector, Refreshed, Timeless). Oznogon (talk) 04:26, 23 December 2020 (UTC)
Wiki displaying gibberish MediaWiki 1.35.1
I am attempting to upgrade my wiki from 1.31 to 1.35.1. I did so as I normally do and the wiki came up fine in firefox after doing the update from the command line. However, when I visited the URL in Chrome instead of Firefox, it comes up as gibberish. (Tried on multiple systems.) I turned on the exception details and error reporting but it's still only displaying gibberish. Nothing at all of concern comes up in browser debugging. My versions meet minimum requirements. I backed up my working 1.31 again and tried a second time with identical results. My 1.31 install has been updating with no issues. I'm not able to locate any config changes that might have occurred during the two versions for my localsettings file. I'm not running any special extensions and I'm using the vector skin. Please let me know if you have any thoughts, thanks in advance for your time.
URL: http://themelvins.net/wikiupdate
I have also set up an empty wiki with the latest files that isn't an upgrade at http://themelvins.net/wikinew This wiki install does the same thing, displays gibberish in Chrome/Edge/Safari but comes up as expected in Firefox which is my primary browser. My only thought at this point is that it is a PHP issue with 1.35 and PHP 7.3. The mediawiki site says that 7.3 is supported however.
| PHP | 7.3.23 (litespeed) |
| MySQL | 5.6.49-cll-lve |
| ICU | 63.1 |
Ecocyde (talk) 04:40, 23 December 2020 (UTC)
- This is another instance of T235554 Ciencia Al Poder (talk) 09:38, 23 December 2020 (UTC)
- Does you LocalSettings.php have a $wgDisableOutputCompression statement? If it does and it sets = true;, then in my wiki commenting it out resolved the problem. You could also look at your PHP settings, what is setting of zlib.output_compression? Peculiar Investor (talk) 14:27, 23 December 2020 (UTC)
- Thanks @Peculiar Investor the disable output compression statement is commented out which appears to be the default placement of it in local settings as it is also commented out in the fresh install of 1.35.1 that I installed. As for zlip.output compression, it is turned off:
- ==zlib==
| ZLib Support | enabled |
|---|---|
| Stream Wrapper | compress.zlib:// |
| Stream Filter | zlib.inflate, zlib.deflate |
| Compiled Version | 1.2.3 |
| Linked Version | 1.2.3 |
| Directive | Local Value | Master Value |
|---|---|---|
| zlib.output_compression | Off | Off |
| zlib.output_compression_level | -1 | -1 |
| zlib.output_handler | no value | no value |
Ecocyde (talk) 16:53, 23 December 2020 (UTC)
- Thanks for pointing me to the thread @Ciencia Al Poder I've reviewed the contents and it is still actively being discussed. I installed 1.35.0 and it had the same issues as .1 so I'm going to proceed with the assumption this is a known bug actively being worked and stick with the long term support release and try 1.35 again in a couple more iterations. I'm pretty confident my php setup is accurately configured and the fact that the bug causes issues in some browsers but not others leads me to believe 1.35 isn't ready for my implementation. I run a couple other PHP products for my website that are up to date and function as expected. Ecocyde (talk) 16:56, 23 December 2020 (UTC)
Mediawiki 1.35.1 and VisualEditor behind a proxy not working
I'm trying MW 1.35.1 in a docker compose setup. The visual editor is working as expected without any additional configuration when the docker image is port mapped to port 80 on the host as it is also on port 80 in the docker image.
However, if I try to reach the Mediawiki docker container (where MW is running on port 80) through an HAProxy container that forwards port 8080 from the browser to port 80 on the Mediawiki container the visual editor breaks. I think it has something to do with having to configure the URLs for Parsoid, RESTBase, etc. but I'm not sure how to do this. Most of the existing documentation is for previous versions that needed manual installation and configuration of VE and its dependencies.
Any hints for what is needed in LocalSettings.php to deal with the proxying from port 8080 to 80, or any other proxy related configuration on the MW side? Thanks! Shahim Essaid (talk) 08:23, 23 December 2020 (UTC)
- It appears that simply removing the port from the $wgServer value might have fixed this problem. It was set to the port from the proxy (8080) but MW was running under Apache on port 80. I'd still like to understand how this works for MW 1.35 in terms of adjusting ULRs/Ports for the Parsoid/RESTBase auto configuration that is part of 1.35. Shahim Essaid (talk) 08:46, 23 December 2020 (UTC)
- Similar issue when using the stock MediaWiki 1.35 Docker image and enabling VisualEditor. Would be nice to have some docs on this! Jeroen De Dauw (talk) 13:52, 6 January 2021 (UTC)
- Here is running Mediawiki 1.35.0 via the default Docker container on my local dev laptop, and added VisualEditor. Upon launching, VE complains:
Error contacting the Parsoid/RESTBase server: (curl error: 7) Couldn't connect to server-- apparently the auto configutation is getting something wrong. - This is the apache log entry that apparently produces the error:
172.22.0.1 - - [25/Jan/2021:13:54:10 +0000] "GET /w/api.php?action=visualeditor&format=json&paction=parse&page=Main_Page&uselang=en&formatversion=2&oldid=144730 HTTP/1.1" 200 858 "http://localhost:8181/w/index.php?title=Main_Page&veaction=edit" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0"- Enabling or disabling short URLs doesn't seem to make a difference.
- The documentation is a bit confusing so I am at a loss of how to find the error. There is no entry in the apache log or the browser console that would hint at what URL VE is trying to access.
- Any help greatly appreciated! Dragan Espenschied (talk) 14:00, 25 January 2021 (UTC)
- Any progress about this issue? I'm having the same problem using mediawiki docker image (1.35) with visual editor
- Kind regards 92.45.61.4 (talk) 11:46, 19 March 2021 (UTC)
- Hello, same probleme here.
- Many test with :
- "require env visualeditor" or "require local" in apache configuration
- or this in LocalSettings.php
- $wgVirtualRestConfig['modules']['parsoid']['forwardCookies'] = true;
- There is no solution for parsoid behind reverse proxy with private wiki, help please :) 82.120.36.23 (talk) 23:05, 28 March 2021 (UTC)
- I encountered this issue as well, when trying to run Mediawiki 1.35 on Docker (actually the Wikibase version, but this doesn't matter here) with the VisualEditor. I got the error message "Error contacting the Parsoid/RESTBase server (HTTP 400)" when loading a page with the VE.
- However I think I made a little progress on this front and maybe this is of help for others:
- When adding the line
$wgVisualEditorFullRestbaseURL = "< public-url with protocol >/w/rest.php/<domain>/";- to LocalSettings.php I was able to send the request through the proxy. However this caused the issue that now all of the calls in the log appeared with "/v1/" instead of "/v3/" in the URL (seems like a bug from a previous version), so I made a quick and dirty fix by adding
RewriteRule ^(.*)/v1/(.*)$ /w/$1/v3/$2 [R=301,QSA]- to the .htaccess file (this could probably be improved a bit, but it worked for me for this moment. If you want to make this persistent, add
echo "RewriteRule ^(.*)/v1/(.*)$ /w/\$1/v3/\$2 [R=301,QSA]" >> /var/www/html/.htaccessto entrypoint.sh in the docker setup). - So the VisualEditor now loads the content it is supposed to edit.
- However, it is still not possible to save these changes, because then the same error message appears again: Error contacting the Parsoid/RESTBase server (HTTP 400)
- I give up for now, but I wanted to share my little progress here nonetheless, maybe this is of help for some of you out there struggling with the same issue. I don't know enough about the internal workings of Parsoid and RESTBase, to have a proper understanding of what might cause this issue. DFichtmueller (talk) 16:13, 15 April 2021 (UTC)
- Thanks @DFichtmueller. A good way to analyse the issue might be tcpdump. See: https://phabricator.wikimedia.org/T279039 CharlesNepote (talk) 15:25, 23 April 2021 (UTC)
- you only need to set the public IP of the host running the containered mediawiki into the /etc/hosts file of that instance pointing to the URL that you are using as $wgCanonicalServer (or $wgServer). You can do this by defining a new Dockerfile from the latest stable mediawiki, setting an entrypoint to execute some bash that after it does what you need runs "exec apache2-foreground" (the actual CMD that runs the original mediawiki Dockerfile)
- The bash you need is something like
- DEST_IP=$(curl -sL ipconfig.me)
- echo "${DEST_IP} your_url_defined_for_$wgServer" >> /etc/hosts 24.232.179.239 (talk) 04:36, 10 June 2021 (UTC)
- sorry I think it's better if you use 172.17.0.1 as the ip address configured on /etc/host at the docker instance pointing to your MW URL, so your bash could be as follow:
- entry.sh
- #!/bin/bash
- echo "172.17.0.1 your_url_defined_for_$wgServer" >> /etc/hosts
- exec apache2-foreground
- and your Dockerfile like:
- FROM mediawiki
- COPY entry.sh /usr/bin
- ENTRYPOINT /usr/bin/entry.sh 24.232.179.239 (talk) 09:23, 10 June 2021 (UTC)
- Make sure you're explicitly loading the Parsoid extension if you're setting $wgVirtualRestConfig - I lost days figuring out why my 'zeroconfig' docker setup with VisualEditor wasn't working as expected.
- In my LocalSettings.php I've set the $wgCanonicalServer URL to localhost (http, port 80), $wgServer URL to my docker hostname (http, port 8080), defined 'url' in $wgVirtualRestConfig as recommended in Extension:VisualEditor#Setting up VisualEditor and also defined 'domain' as my docker hostname, and added:
wfLoadExtension( 'Parsoid', 'vendor/wikimedia/parsoid/extension.json' );- (Apologies for the convoluted way of describing those the three URLs - the abuse filter won't let me post the actual URLs here) Sc84647 (talk) 18:16, 5 May 2022 (UTC)
- I am having the same issue. I followed Sc84647's recommendations but to no avail. This is supposed to be zero config, and hoo-boy there's a lot of configuration and trial and error. I have an nginx reverse proxy. I can't seem to get Visual Editor to work no matter what I do. 2600:1700:7412:950F:D4DF:3729:E49A:7DD2 (talk) 21:34, 3 September 2022 (UTC)
- I have similar issue too, I use latest master repo. MediaWiki loads just fine under intranet, but when I access it from outside via our SSL proxy, the javascript breaks and I'm not sure how to fix it. 180.252.121.79 (talk) 08:35, 1 November 2022 (UTC)
Wiki 1.35 with mysql 8
Hello Team,
Please confirm below detail.
Is Mysql 8 is compatible for wiki 1.35?
Thanks 132.154.155.91 (talk) 12:22, 23 December 2020 (UTC)
- Apparently not: Compatibility#PHP; T248925. Jonathan3 (talk) 14:39, 23 December 2020 (UTC)
- PHP and MySQL are two completely different things. According to the Compatibility page you linked MW should support MySQL 5.5.8 and higher (including MySQL 8). Taavi (talk!) 16:07, 23 December 2020 (UTC)
- Haha - I wish I could just delete this so my children and grandchildren never read it :-) I don’t even have grandchildren... I really mustn’t have been concentrating. At least you found your answer though! Jonathan3 (talk) 18:00, 23 December 2020 (UTC)
- If Mediawiki is compatible with MySQL 8, then the compatibility chart should include a separate bar for it. Otherwise it is not clear. The compatibility chart has a separate bar for MySQL 3.x, MySQL 4.x, MySQL 5.0.3+, and MySQL 5.5.8+. This clearly implies that a new bar should have been added for MySQL 8, if in fact it is compatible. That's why people ask. OOS1859 (talk) 16:55, 18 August 2021 (UTC)
Recent changes
Hey guys, I want to add Recent changes on different pages in my wiki. But the recent changes should only show all changes on that special page. I just get all changes in the whole wiki. Can you support?
Thanks 46.189.37.196 (talk) 13:03, 23 December 2020 (UTC)
- Do you mean you'd like a page to contain a list of changes made that page? You could probably create a template for that using Extension:DynamicPageList3. Edit: I've had a look and couldn't get this to work. Jonathan3 (talk) 14:41, 23 December 2020 (UTC)
- Sounds like you want the history action. Unfortunately that cant be transcluded, but you could link to it.
- You can maybe work around with Special:Recentchangeslinked. Bawolff (talk) 06:38, 24 December 2020 (UTC)
Vagrant using none master branch
Hi, I am trying to develop an extension. I'm using Vagrant but it will not spin up when I try to use a non-master branch for core.
I'm using:
vagrant hiera mediawiki::branch REL1_35
as per MediaWiki-Vagrant
Am I missing something obvious?
on a separate note, is Vagrant still the main dev solution? I see docker instructions are included in mediawiki core, but seems less developed? 83.32.33.130 (talk) 18:09, 23 December 2020 (UTC)
- The issue seems to be that REL1_35 requires PHP 7.3.19 or higher while 7.2.31 is installed.
- The ironic part is that 1.36.0-alpha works with 7.2.31.
- i.e. MediaWiki 1.36 requires a lower version of PHP than MediaWiki 1.35?!?!?!?! 83.32.33.130 (talk) 21:24, 23 December 2020 (UTC)
- What am I missing?
- en.wikipedia runs on PHP 7.2.31 and 1.36
- but mediawiki 1.35 requires PHP 7.3.19 83.32.33.130 (talk) 21:40, 23 December 2020 (UTC)
- Nothing. There are public and stable tarball versions for 1.35, and there are internal non-stable weekly versions for 1.36, until a public stable 1.36 tarball version will be released which will also require PHP 7.3. See also Compatibility and Support policy for PHP. Malyacko (talk) 22:19, 23 December 2020 (UTC)
- Thank you Malyacko. I guess the part I'm surprised about is that Wikimedia hasn't upgraded to at least 7.3.19 (and debian buster).
- Is there an easy way to upgrade to PHP 7.3.19 in MediaWiki-Vagrant? 83.32.33.130 (talk) 22:45, 23 December 2020 (UTC)
- I guess https://phabricator.wikimedia.org/T257879 includes all the gory details. Don't know enough about Vagrant, sorry. Malyacko (talk) 00:04, 24 December 2020 (UTC)
- Thank you, very helpful. I see why there's a mismatch between the PHP versions. I guess makes sense for an LTS version.
- It also seems that WMF is actually updating to buster and 7.3 or 7.4, and it may not be far away. Hopefully an update to MediaWiki-Vagrant would follow.
Wikimedia is currently on php 7.2, and I expect the move from 7.2 to 7.3 or 7.4 will only happen after we've migrated to debian buster. That implies we have to do an ICU upgrade - a painful process we'll likely start around the end of September. I would expect the WMF to be able to move to php 7.3 no sooner than the end of the year.83.32.33.130 (talk) 00:49, 24 December 2020 (UTC)- Apologies - I had missed this Phabricator which discusses the issue: https://phabricator.wikimedia.org/T268338 83.32.33.130 (talk) 10:46, 24 December 2020 (UTC)
- Just modify the downloaded source code of MediaWiki, in PHPVersionCheck.php edit the line that requires php 7.3.17 (put 7.2.0 or similar), and edit composer.json too. That's way easier than trying to upgrade PHP on the vagrant machine. I upgraded it, but a vagrant provision reverted everything again Ciencia Al Poder (talk) 12:08, 24 December 2020 (UTC)
- Thank you very much Ciencia Al Poder. I did that, and indeed seems to be the easiest way until WMF upgrades to php 7.3.
- I'm am not a puppet expert but for the benefit of anyone else, what I did is:
- fork the mediawiki-vagrant repo
- add the following at the end of puppet/modules/mediawiki/manifests/init.pp:
exec { "change min php mediawiki":command => 'sed -i "s/7.3.19/7.2.31/g" /vagrant/mediawiki/includes/PHPVersionCheck.php',provider => shell,require => Git::Clone['mediawiki/core'],}exec { "change min php composer":command => 'sed -i "s/7.3.19/7.2.31/g" /vagrant/mediawiki/composer.json',provider => shell,require => Git::Clone['mediawiki/core'],}exec { "change doctrine dbal composer":command => 'sed -i "s@doctrine/dbal\": \"3.0.0@doctrine/dbal\": \"2.10.4||3.0.0@g" /vagrant/mediawiki/composer.json',provider => shell,require => Git::Clone['mediawiki/core'],}83.52.2.134 (talk) 21:57, 25 December 2020 (UTC)- I just installed 1.35 and it worked when I put the additions to puppet/modules/mediawiki/manifests/init.pp right above the line
exec { 'update_all_databases':- Otherwise the PHP version was checked before the changes were made.
- I also changed
sed -i "s@doctrine/dbal\": \"3.0.0@doctrine/dbal\": \"2.10.4||3.0.0@g" /vagrant/mediawiki/composer.json- to
sed -i "s@doctrine/dbal\": \"3.1.5@doctrine/dbal\": \"2.10.4||3.0.0@g" /vagrant/mediawiki/composer.json- in the last section. Sebastian Berlin (WMSE) (talk) 13:17, 5 October 2022 (UTC)
I want to delete my account
how do i delete my account?? Angela Museo (talk) 18:41, 23 December 2020 (UTC)
- On which website? – Ammarpad (talk) 19:04, 23 December 2020 (UTC)
- There is some information about Wikipedia here:
- https://en.wikipedia.org/wiki/Wikipedia:Username_policy#Deleting_and_merging_accounts Jonathan3 (talk) 14:13, 28 December 2020 (UTC)
Semantic Mediawiki: Datatable format isn't working
I have two subobjects in one page:
{{#subobject::
|Label= Test
|Text= text
|Date= Dec 4 2020
}}
{{#subobject::
|Label= Test
|Text= text
|Date= Dec 4 2020
}}
And this query in another
{{#ask:[[Label::+]]
|?Label
|?Text
|format=datatables
}}
I followed the instructions here for installing Semantic Result Formats, which supports datatables, but it can't get show datatables to show up. How can I fix this? YousufSSyed (talk) 20:09, 23 December 2020 (UTC)
Semantic Mediawiki: Is there a way to filter subobjects in a query?
Two weeks ago, I wrote a post "Semantic Mediawiki: A subobject query shows the relevant subobjects, but also shows subobjects right below that one" but realized that my query filters out pages that don't have a specific property value (whether on the page itself or in a subobject). This is my query:
{{#ask: [[Label::Test]]
|?Label
|?Text
}}
and these are two subobject on the same page
{{#subobject::
|Label= Test |Text= test |Date= Dec 4 2020
}}
{{#subobject::
|Label= Test2 |Text= test2 |Date= Dec 4 2020
}}
The query would show both subobjects, Is there any way to make a query show only subobjects that have a specific label (In this case 'Text')? YousufSSyed (talk) 20:20, 23 December 2020 (UTC)
Precaution against session hijacking error message
When I try to log into my new account it says:
"There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Please resubmit the form."
And it keeps saying that and not letting me through. The same thing happened to me a few months ago but now I really need to log into the account. How do I fix it? 67.180.252.194 (talk) 21:00, 23 December 2020 (UTC)
How do I make a new wiki?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I wanna know how to make a new wiki for lore for something 75.85.140.80 (talk) 21:57, 23 December 2020 (UTC)
- See the section "Set up and run MediaWiki" on https://www.mediawiki.org/wiki/MediaWiki Malyacko (talk) 22:15, 23 December 2020 (UTC)
Used Redwerks -- Short URL doesn't work, Returns a 404
| MediaWiki | 1.35.0 |
| PHP | 7.3.25 (cgi-fcgi) |
| MySQL | 5.7.26-29-log |
| ICU | 63.2 |
Hello,
I've installed my wiki here. I am trying to change the URL path from
From : https://wiki.twistedfates.net/index.php?title=Main_Page
To: https://wiki.twistedfates.net/Main_Page
According to Redwerks, my server is running an nginx configuration. No .htaccess file was generated, so I had to manually create one using this article. I'm not sure if that was necessary.
I added the following code to my LocalSettings.php file, switching out the default coding:
## The URL base path to the directory containing the wiki;
## defaults for all runtime URL paths are based off of this.
## For more information on customizing the URLs please see:
## http://www.mediawiki.org/wiki/Manual:Short_URL
$wgScriptPath = "";
$wgScriptExtension = ".php";
$wgArticlePath = "/wiki/$1";
$wgUsePathInfo = true;
Unfortunately, inserting this resulted in a 404 error. Could I get some help figuring this out? I'd really appreciate it! Orribu (talk) 22:59, 23 December 2020 (UTC)
- Your $wgArticlePath should be "/$1" (i.e. it should be whatever you want the URLs to be). Then you'll need to get your rewrite rules working, but first get the wiki making the correct links. Sam Wilson 06:30, 24 December 2020 (UTC)
- Oh! Thanks for pointing that out! I nearly forgot. Thanks to that change in the code, the wiki seems to be creating the right links, now I just need to figure out how to get the rewrite rules working.
- Thank you again! :D Orribu (talk) 22:11, 24 December 2020 (UTC)
- > According to Redwerks, my server is running an nginx configuration. No .htaccess file was generated, so I had to manually create one using this article. I'm not sure if that was necessary.
- .htaccess is an apache config file. If you are using nginx it will do nothing. You still need to make the equivalent file, it just needs to be for the webserver you are using (nginx) Bawolff (talk) 06:36, 24 December 2020 (UTC)
- Ah, thank you for helping me figure that out! So the odd thing is I can't seem to locate an nginx.config file anywhere. Orribu (talk) 22:17, 24 December 2020 (UTC)
- Hey @Samwilson and @Bawolff , thank you for your help! I did some fumbling around and found out that my server (I'm using Siteground) is using both Apache and Nginx. It turns out I could use the .htaccess file using the apache option on Redwerks, and it works now!
- Thank you again for your help! Orribu (talk) 22:47, 24 December 2020 (UTC)
- Glad you've got it working. :) Sam Wilson 23:19, 24 December 2020 (UTC)
Extension Development (type:api)
Hello,
I am writing an API only extension for my extension to provide read and write access for certain meta information. I have the following questions:
1- How does an AP get's mapped to the extension. I am looking at the ApiMediaManager code to reverse engineer this detail. Not been able to successful so far. I am looing at the ProofreadPage and SiteMatrix as the sample to understand this. How does the query parameter "'action=query&meta=proofreadinfo" maps to PoofreadPage extension? I think the logic is buried in ApiMain and ApiModuleManager code. Can someone provide the details on this logic?
2- What should be the ideal base class if the extension need to provide interface to insert, modify and delete the record in the database? Dashsant (talk) 23:36, 23 December 2020 (UTC)
- does https://www.mediawiki.org/wiki/API:Extensions help? Bawolff (talk) 06:34, 24 December 2020 (UTC)
- The information here does not have the details on how the query parameter is used to map to the corresponding API Module@Dashsant 64.252.192.15 (talk) 02:32, 28 December 2020 (UTC)
Lockdown extension not working
Hi,
running MW 1.35 with Lockdown (b307d20) as I need control over who can see what categories (or rather namespaces as categories are not supported). The extension shows in Special:version. I tried to do things like this:
$wgSpecialPageLockdown['Export'] = [ 'user' ];
$wgActionLockdown['history'] = [ 'user' ];
But a test user is still able to do all these things.
What am I missing?? (can be something stupid, happens more ...)
Cheers!
BC Bcnx (talk) 00:09, 24 December 2020 (UTC)
- It sounds like you configured it to let all loggrd in users do the action, which would include the test user. Bawolff (talk) 06:31, 24 December 2020 (UTC)
- Hey, I thought the extension was about restricting, not granting permissions. Am i wrong? Bcnx (talk) 13:02, 24 December 2020 (UTC)
- Yes, it can only restrict from what other mediawiki permissions are set to (It can't grant rights that other mediawiki permissions would not grant). However the syntax $wgActionLockdown['history'] = [ 'user' ]; means restrict all groups except the user group (all logged in users) from accessing. Its a bit confusing. Bawolff (talk) 04:38, 25 December 2020 (UTC)
- OK, so should I first grant permissions with $wgGroupPermissions and then restrict them with Lockdown?
- cheers,
- BC Bcnx (talk) 13:38, 25 December 2020 (UTC)
Still truncated filenames. Now in MW 1.31.12 tarball.
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 just downloaded MW 1.31.12 using the link on the Download page. I unzipped the tarball with Tugzip (Windows). There are a lot of files where the file name is shortened by one character. For example you've got a file named imageLock-ltr-progressive.sv instead of imageLock-ltr-progressive.svg. This has already happend with MW 1.31.9 and 1.31.10. Does anyone know why that is and whether it has to be that way? Wgkderdicke (talk) 02:19, 24 December 2020 (UTC)
- Try using a different tar program (for example win rar, or the versiin of gnu tar included with git for windows)
- Its caused by different versions of the tar archive format. Bawolff (talk) 06:29, 24 December 2020 (UTC)
- Thanks for the advice. But there was no need to search for any other separate tool. It turned out that Windows 10 comes with a tool named tar to unzip such tarballs. And that Windows tool got it right.
- It also turned out that the Tugzip tool is hopelessly outdated. The current version of Tugzip dates back to 2008. Twelve years. That is an eternity and a few extra days! And is abandoned since then. Wgkderdicke (talk) 00:36, 29 December 2020 (UTC)
help for connecting virtuoso openlink universal server to mediawiki semantic.
hello need help to connect the vituoso triple store to mediawiki (semantic mediawiki 3.1.6). in order to import an ontology in owl format into mediawiki.
more than a month since I can't make the connection.
the goal is to import the whole ontology in mediawiki semantic via a sparql query.
I dispense with the extension linkedwiki, semantic mediawiki 3.1.6, mediawiki 3.2 and virtuoso openlink universal server on tournat machine under windows 10. 41.202.89.233 (talk) 04:16, 24 December 2020 (UTC)
- does https://www.semantic-mediawiki.org/wiki/Help:SPARQLStore/RepositoryConnector/Virtuoso help? Bawolff (talk) 06:28, 24 December 2020 (UTC)
- when I use the configuration as described below to make a connection between mediawiki and virtuoso
- $smwgDefaultStore = 'SMWSparqlStore';
- $smwgSparqlRepositoryConnector = 'virtuoso';
- $smwgSparqlEndpoint["query"] = 'http://localhost:8890/sparql/';
- $smwgSparqlEndpoint["update"] = 'http://localhost:8890/sparql/';
- $smwgSparqlEndpoint["data"] = '';
- $smwgSparqlDefaultGraph = 'http://example.org/mydefaultgraphname';
- I get an error message after launching the maintenance/php update.php command to take into account the modifications.
- additional parameters seem to me to be omitted.
- need for help Pharell95 (talk) 11:46, 24 December 2020 (UTC)
python and mediawiki
how to use python mwclient or another library to create an article, categories of properties in mediawiki installed locallyhost on a machine.
also need help accessing the mediawiki API via python locallyhost.
very urgent thank you 41.202.89.233 (talk) 04:20, 24 December 2020 (UTC)
- pywikibot help? Bawolff (talk) 06:26, 24 December 2020 (UTC)
- I would like to be able to create articles on mediawiki installed locallyhost on my machine via pyhton.
- how to connect pywikibot or mwclient to the mediawiki api locally and not online.
- I use as server xampp and the mediawiki folder is inside xampp/htddocs/wiki folder. Pharell95 (talk) 10:23, 24 December 2020 (UTC)
- It would be the same as if it was a normal website, except the domain would be localhost (Possibly with a non-standard port like 8080) Bawolff (talk) 04:36, 25 December 2020 (UTC)
Export a specific MediaWiki webpage as markdown to create a checklist
In my MediaWiki 1.34.2 website I have a webpage which is comprised of various two-columned tables used as checklists (one column for a check and one for a checkmark/xmark).
I want to export that webpage into a markdown (.md) file, which I could edit with a markdown text editor such as Typora and then, after editing it, send it to a customer.
- In my browser (Chrome), if I go to "print" I can save the webpage as PDF but not as Markdown
- I found an explanation at
rubberduckdev DOT com / mediawiki-to-mdwhich mentions exporting MediaWiki webpages from Special > All pages but I didn't find any export functionality there.
- There is a CLI tool to do that on GitHub
philipashlock/mediawiki-to-markdownbut I prefer a GUI way, if possible, without creating anything from scratch
How would you handle that problem? 182.232.193.39 (talk) 13:23, 24 December 2020 (UTC)
- Bumping after one week.
- In great plea, share your suggestion for a solution. 182.232.136.217 (talk) 06:55, 31 December 2020 (UTC)
- I'd love a revival of this topic. I also explored that GitHub solution to no avail. Please let me know if anything new has come out that helpsw convert MediaWiki to Gitlab Markdown. 209.211.149.135 (talk) 20:29, 25 May 2022 (UTC)
VisualEditor not enabled 1.35.1
Dear Support,
I am new to this, but installed MediaWiki hosted via Siteground.
The version is 1.35.1.
As far as I know, with this version the VisualEditor is enabled and installed by default.
When I go to my website to edit, VisualEditing is not available. There is also no Edit Source button available, meaning edit source is the only option. Nowhere in the settings can I enable this.
In my filemanager, I do see VisualEditor.
Do I still need to do something before the VisualEditor is enabled? RookieBeard (talk) 20:53, 24 December 2020 (UTC)
- Is it listed as enabled on the page Special:Version on your wiki?
- Whether or not it is enabled by default depends on what options you selected in the installer. If its not enabled, you typically have to add a wfLoadExtension line to LocalSettings.php. See also Extension:VisualEditor. Bawolff (talk) 04:35, 25 December 2020 (UTC)
- In my page special, I see the following:
- Installed extensions:
- Extension Version License
- VisualEditor 0.1.2 MIT
- I have tried to add the following line to localsettings.php
- wfLoadExtension( 'VisualEditor' );
- After that, I get the error when I try to edit in my website:
- "Error contacting the Parsoid/RESTBase server (HTTP 500)"
- Am I missing something?
- Update edit:
- I have now changed the extension.json document from false to true and the popup seems gone, but still not working as intended, the changes below:
- "VisualEditorRestbaseURL": {
- "value": true
- },
- "VisualEditorFullRestbaseURL": {
- "value": true
- },
- "VisualEditorEnableWikitext": {
- "value": true
- },
- "VisualEditorEnableWikitextBetaFeature": {
- "value": true
- },
- "VisualEditorEnableDiffPage": {
- "value": true
- },
- "VisualEditorEnableDiffPageBetaFeature": {
- "value": true
- },
- "VisualEditorUseSingleEditTab": {
- "value": true
- },
- Currently, when I try to edit, the visual editor now is usable.
- However, when I edit, the previous texts are not showing up. So everytime I edit, there are no previous texts.
- Furthermore, the Parsoid/RESTBase server (HTTP 500) error pops up when I use the edit on a heading.
- How do I fix this? RookieBeard (talk) 07:02, 25 December 2020 (UTC)
- You should not change anything in extension.json. extension.json provides the defaults. If you want to override the defaults you put something like $wgSETTINGNAMEHERE = true; in LocalSettings.php. You probably also don't want to be changing some of those from the default (I have no idea what changing VisualEditorRestbaseURL from false to true will do, but its probably not something you want).
- Are you sure you have the right version of Visual Editor for your version of MediaWiki (e.g. its the version that was included with the tarball). I believe in 1.35 VisualEditor no longer requires separate restbase/[js]parsoid Bawolff (talk) 10:23, 25 December 2020 (UTC)
- I have this version of visualeditor:
- {
- "name": "VisualEditor",
- "version": "0.1.2",
- The version of MediaWiki is
- <?php
- # This file was automatically generated by the MediaWiki 1.35.1
- I also thought 1.35 did not require seperate parsoid, somehow I keep receiving this error by default.
- How can I prevent this error from happening (after enabling the the VirtualEditor by using this wfLoadExtension( 'VisualEditor' )
- "Error contacting the Parsoid/RESTBase server (HTTP 500)" RookieBeard (talk) 10:30, 25 December 2020 (UTC)
- Dear Support,
- I am still trying out everything, still without luck.
- Do you happen to know to solution to this issue, using the VisualEditor?
- "Error contacting the Parsoid/RESTBase server (HTTP 500)" ?
- Thanks in advance. RookieBeard (talk) 00:38, 26 December 2020 (UTC)
- I am also having this exact same issue using Siteground. Were you ever able to solve it? Thanks. SalSocks (talk) 16:56, 19 January 2021 (UTC)
I was with a similar problem (with Mediawiki v 1.35.1 and VE). I've tried the following config and now Visual Editor is working (I added commented lines of the original source):- (source: docs.bitnami.com/ installer/ apps/ mediawiki/ configuration/install-visualeditor/)
- ----
- wfLoadExtension( 'VisualEditor' );
- // OPTIONAL: Enable VisualEditor in other namespaces
- // By default, VE is only enabled in NS_MAIN
- //$wgVisualEditorNamespaces[] = NS_PROJECT;
- // Enable by default for everybody
- $wgDefaultUserOptions['visualeditor-enable'] = 1;
- // Don't allow users to disable it
- $wgHiddenPrefs[] = 'visualeditor-enable';
- // OPTIONAL: Enable VisualEditor's experimental code features
- //$wgVisualEditorEnableExperimentalCode = true; 2804:14C:6591:4A16:418:802F:C173:CF6 (talk) 17:33, 26 March 2021 (UTC)
- I am having the same error with a site installed via cPanel. 2603:7000:A700:515E:25A1:35C5:3998:2475 (talk) 18:46, 24 May 2021 (UTC)
- I am running a Semantic Mediawiki based on 1.35.3 (and 10.6.4-MariaDB) in a docker container and have not been able to make the Visual Editor work. I get the same error described above "Error contacting the Parsoid/RESTBase server (HTTP 500)". I have been working through the suggestions above and several others on the web. I have read the install instructions multiple times. Any new ideas since the last comment? Wpinfold (talk) 07:51, 28 September 2021 (UTC)
Settings regarding Fallback Languages in Extension:Translate and Wikibase
I was wondering, is it possible to change the order of fallback languages in Extension:Translate and Wikibase?
I know that puting the babelbox into your userpage changes (some) labels in Wikibase but that doesn't work for labels when viewing an item for some reason, but it works from the watchlist which I think makes things confusing as items will have different labels when reading the watchlist and reading the item if there isn't one in my chosen language.
Regarding Extension:Translate, I want it to not ever be English if the system language is not English, that seems to be the default settings now however, so how can I change that personally to something else? Sabelöga (talk) 09:27, 25 December 2020 (UTC)
Index.php displayed with wrong characters
- Hello everyone,
- Just got the last mediawiki installed, and it tells me all is good an I downloaded and uploaded the localsetting file.
- Still when displaying the index page, I seen only a list of wrongly encoded characters beginning with �����X�r�6���=��nw���-q�U,m]�NӉ�Ǘn;�'�����"X�����G�g�'��$E�N��m?�z��:8������������?�����%���}�(���(�"�a�ޚ�%<�����,���$V��.x�����ES�������(�2h�n�M� �#����ƞ���� VQ>�����0�~�g�B���^�_�������7Z�# ����wv@:����*}�yj�J�.�(�A�*�v���x��D����1��{��8���A/�gˀ֎Uj�'^����Os�i�H�t�x�u4��~�e�~���<��+�_��$7���l�l$4�_EV���5/��"��ݙ�9�ƾ��ꇯ?�Nť93���?p��7O;g�����~th��'*�Di�!OU*#�8 2N+A��r��H��O�1�;� '���k�u���e��~��.����U�a���\��R����l����Q"��/LA���'� ���l n?�8���R,��K#����IRR�k�g�q�y[�����y��h��#�^"�s�ޣh�X�l��!.c�tV��R�����T�_�B�@���!��/�/��R��4�]&d���S���gj��Úw������\*#�Ė(��t��s#SӜÅ�<��� ���i��t����˗���+��{gp>'�73h��\�<��P�X��4QG������TU���������j��㯿^]o7��L��y�̸��n�h�"�L�2_���4��3�e"��j�_v΅^�h�.�wg��<���Z�}���L?k�Pw�U7�hQ=�����Z%�D�Y>��'�!n��:)2z\��������W�0�� �"����S!l��Z��A����i�̦�?\���_�,{桚��=��T�,���~�{�s���q0n�i���ft�@�5!�$/E�E�sGޠ���G�k!�� ����������2�DȰN��n���L5U�F�e�;*k���~7��/\�gv�A ϲ���B��2�խ�����Y�����b$��8*���q�-�no����<{q�\m⺔��Y�ՊT��Vr�r��ʟ������I���b���6��� ��p�'���y�k��Afc!� u�j�։��E�靡�v8E@��E��t�C�8���%��8d_]�������F�:����Q�ƙ]3����U�U��=��i,��a���b���xYNAU}�\ͨ�����<[�S��P�2���`�&lӇ�GoaiF�)�z��J� �Ep�#�yۇ�����(����9�10-BwΈ����*���%����Mz=��Ȓ������Гgg��(����*�#8Q���F'
- in F12 devtools, the page arrives with error code 304 Not Modified.
- PHP is 7.3.24
- MySQL 5.7.27
- Do you know what I may have missed ? Bobyy2025 (talk) 14:40, 25 December 2020 (UTC)
- It is a known problem with MediaWiki 1.35.1. If you read through the other Support desk topics you will see this has been reported a number of times. ⚓ T269516 Content-Encoding set to none/identity after upgrade to 1.35 and/or ⚓ T235554 MediaWiki::outputResponsePayload seemingly causes net::ERR_HTTP2_PROTOCOL_ERROR 200 and compression issues in 1.35 Peculiar Investor (talk) 13:25, 26 December 2020 (UTC)
- Thanks, for your answer
- I uploaded 1.34.4 and it is working.
- Still I tried all the hotfixs spoken about, and non did work.
- Are you sure it is the same bug (by exemple identity was already set correctly) ?
- Do you know when fix will be available.
- Now I have problem with Vector ... Bobyy2025 (talk) 17:57, 26 December 2020 (UTC)
- What does the error log of your webserver software say? Malyacko (talk) 16:50, 25 December 2020 (UTC)
- nothing (only this but is earlier today) :
- [Fri Dec 25 11:23:33 2020] [error] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
- url is http://collectif-attariq.net/mediawiki-1.35.1/index.php Bobyy2025 (talk) 16:54, 25 December 2020 (UTC)
- would any of this help ? (they are not installed)
- CakePHP
- CodeIgniter
- Laravel
- Symfony
- Yii
- Zend Bobyy2025 (talk) 16:56, 25 December 2020 (UTC)
- http://collectif-attariq.net/mediawiki-1.35.1/index.php?title=Special:Version works fine in Firefox 84.
- It is broken in Chromium 87. Malyacko (talk) 21:36, 25 December 2020 (UTC)
- @Bobyy2025 See Project:Support desk/Flow/2021/01#h-Install_Problem_-_binary_in_php_code_(question_marks)-2021-01-01T09:48:00.000Z and Manual:$wgDisableOutputCompression Malyacko (talk) 12:08, 1 January 2021 (UTC)
- Nm, I see they updated the phab ticket with both advices now. Thanks for pointing to these. TiltedCerebellum (talk) 06:20, 19 March 2021 (UTC)
How do I find opponents on vassal?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
How do I find opponents on vassal? 75.118.133.252 (talk) 16:31, 25 December 2020 (UTC)
- Please read the side bar. Why do you think that we know what "vassal" is? Malyacko (talk) 16:49, 25 December 2020 (UTC)
Blocked Message
What will the blocked message be? 75.83.64.170 (talk) 19:52, 25 December 2020 (UTC)
- What about providing context how and where to create a "blocked message" after which steps to perform somewhere somehow? :) Malyacko (talk) 21:31, 25 December 2020 (UTC)
- There are some relevant messages here:
- https://www.mediawiki.org/w/index.php?search=Blocked&title=Special%3ASearch&profile=advanced&fulltext=1&advancedSearch-current=%7B%7D&ns8=1
- Are any of these what you were looking for? Jonathan3 (talk) 14:07, 28 December 2020 (UTC)
Vector doesnt display side menu
1.34.4
vector 1.31 (last doesnt work with 1.34)
No side menu, display like for a mobile maybe ? Bobyy2025 (talk) 18:00, 26 December 2020 (UTC)
- same happen with monobook.
- tried on firefox as well Bobyy2025 (talk) 18:13, 26 December 2020 (UTC)
- probably because you are using the wrong version of vector Bawolff (talk) 22:22, 26 December 2020 (UTC)
- thanks, I downloaded Vector 1.34 from git and it works.
- Maybe it should be proposed by default.
- Or should we use only 1.31 or 1.35 version of mediawiki ? Bobyy2025 (talk) 00:32, 27 December 2020 (UTC)
- @Bobyy2025 See Download Malyacko (talk) 10:52, 27 December 2020 (UTC)
Missing move, edit and delete tabs
Hi,
I have been messing around with a category and a particular page in it and now (only) these tabs are missing. Is there a way to bring them back?
EDIT: I found the same page in another category, maybe that's the problem?
Cheers,
BC Bcnx (talk) 18:56, 26 December 2020 (UTC)
- No idea without knowing what "messing around" means. You may want to revert the "messing around" and find out. Malyacko (talk) 10:52, 27 December 2020 (UTC)
- Could it be that you protected the pages and now are logged in as a user who can’t perform these actions? Jonathan3 (talk) 13:55, 28 December 2020 (UTC)
How can I get locally translationed messages deleted
How can I get locally translated override messages deleted from the MediaWiki /Special:AllMessages
I previously opened a topic asking How can I get ConfirmAccount to load a new language file
Project:Support desk/Flow/2020/12#h-Installed_software_3-2020-12-20T20:16:00.000Z where you all indicated that I have to create the overrides in the MediaWiki namespace. If I modify the English language en.json file for the ConfirmAccount\i18n\confirmaccount and ConfirmAccount\i18n\requestaccount forms for what we want users to enter in the Register form, then run the mw-config upgrade the English messages get replaced in the MediaWiki database but not the French, and other languages on our wiki.
Note that I do not have shell access to wiki server and the MaintenanceShell extension indicates This extension is incompatible with the current stable MediaWiki 1.35 release! Ken Roy (talk) 19:15, 26 December 2020 (UTC)
- if you dont have commandline access, you have to delete by pressing the delete tab on the interface (or use pywikibot) Bawolff (talk) 22:17, 26 December 2020 (UTC)
- Thanks Bawolff,
- Not sure that will work either since I have no clue whether Python is installed on that server.
- Too bad the extensions do not dynamically update the other languages based on changes made to the i18n language files locally. Then maybe it is not quite possible to run a multi-language wiki on one wiki site Ken Roy (talk) 22:31, 26 December 2020 (UTC)
- python does not need to be installed on the server, pywikibot is client side. Bawolff (talk) 09:41, 27 December 2020 (UTC)
- Too bad there is not a Delete check box option on the Special:AllMessages when filtering by language since I am not seeing a Delete tab anywhere on the Special:AllMessages screen Ken Roy (talk) 22:39, 26 December 2020 (UTC)
- Bawolff,
- Thanks for your help. Looks like I needed to delete the overrides I made in Special:AllMessages for the French language years ago for the changed to the ConfirmAccount i18n/ fr.json files to be used Ken Roy (talk) 16:58, 27 December 2020 (UTC)
How can I redirect the 'Login Required' page to Special:UserLogin
How can I redirect the Login Required page to Special:UserLogin?
My wiki's "Login Required" page takes over 4 minutes to load (even after enabling caching and APCu). I haven't been able to resolve this, which is why I'd like to bypass the page altogether and redirect it to Special:UserLogin.
Is there a way to do this? Knomanii (talk) 23:14, 26 December 2020 (UTC)
- I can’t answer your question (sorry) but what sort of server are you using to have that problem? Have you tried installing from scratch, maybe somewhere else? The old “take it apart and put it together and hope for the best” approach. Jonathan3 (talk) 13:54, 28 December 2020 (UTC)
- I don't think this is possible. The error page prepared by OutputPage does not allow redirection. However, I think your problem lies in what makes the page take "4 minutes" to load as you said. You should ask for help to fix that, it seems quite strange. – Ammarpad (talk) 05:45, 29 December 2020 (UTC)
- Thanks @Jonathan3 & @Ammarpad —
- Looking at the Inspect Network tab, the GET request for
/w/load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vectoris taking up to 19.87s to load and failed on one of the attempts. - Any suggestions on how to dig into what is causing that? Knomanii (talk) 00:06, 31 December 2020 (UTC)
- I eventually just moved my wiki, from a shared server on the other side of the Atlantic to a cloud VPS with a datacentre near me, and the page load time went down from 10 seconds or so to about a third of a second. What sort of server are you on? Jonathan3 (talk) 01:03, 31 December 2020 (UTC)
- @Jonathan3 I'm on a Shared Hosting server on Dreamhost using MW-1.35.0. I looked up the server location and it's located not too far from me, so I don't think it's the server location.
- And because all other pages except login load very quickly, I'm thinking it really is just the Login Required page. And specifically that one load.php vector startup script request — because once that is loaded, the page has finished loading. Knomanii (talk) 05:53, 31 December 2020 (UTC)
- Maybe try with a different skin? Maybe try with all your extensions uninstalled?
- I've not seen the Login Required page on my wiki (presumably it's for when the wiki is not anonymously readable) but if it has a fixed URL then you could maybe redirect it using .htaccess on Apache. Jonathan3 (talk) 23:27, 31 December 2020 (UTC)
- Just upgraded to 1.35.1 hoping this issue would improve but unfortunately not — the "Login Required" page takes 1-5 minutes to load with the majority of load-time being the GET request for
/w/load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector - One interesting behavior I noticed is that when I load the Login Required page once, for a few hours that load.php scripts GET request loads within only ~5 seconds rather than minutes. This suggests to me that there is some caching that happens, but the cache only persists very briefly unless the user logs in. When logged in, that same load.php GET request takes only 1.4s.
- This suggests to me that this might just be a caching issue for logged out users. Since this only occurs on the Login Required page, the only page that logged-out users encounter.
- If so, I imagine extending the load.php caching for logged out users might resolve this issue. Would setting $wgLoggedOutMaxage, $wgForcedRawSMaxage, $wgResourceLoaderMaxage, or $wgCdnMaxAge to allow a 1-year max cache time be a ridiculous idea? Or, is there a better way to extend the load.php cache time for logged out users?
- @Jonathan3 I have tried uninstalling all non-essential extensions to no avail. I'm hoping adjusting the caching configuration for logged out users might do the trick, but if not I could create a separate install to test this issue across various skins and extensions.
- Here's my current caching configuration:
$wgMainCacheType = CACHE_ACCEL;$wgMemCachedServers = [];$wgSessionCacheType = CACHE_DB;$wgCacheDirectory = "$IP/../../cache/w";$wgUseFileCache = true;$wgFileCacheDirectory = "$IP/../../cache/filecache";Knomanii (talk) 20:52, 6 March 2021 (UTC)- I don't know but how about setting $wgUseFileCache to false (its default)? Maybe experiment with commenting out or changing the settings you quote above. Jonathan3 (talk) 23:16, 7 March 2021 (UTC)
- Thanks @Jonathan3 but unfortunately these settings were actually added in an attempt to fix the issue. I'll test again, but this is the fastest configuration I've gotten so far and still the initial load time usually takes over 5 minutes.
- However, it appears WMF encountered this issue and created caching workarounds for it. Here's a commit I found to WMF's operations puppet that specifically addresses caching for Special:UserLogin. Maybe it could be implemented on to my wiki as well? Knomanii (talk) 23:27, 8 March 2021 (UTC)
How to have a custom namespace in non-English language?
I created a namespace as bellow:
define("NS_CAFE", 3000); // This MUST be even.
define("NS_CAFE_TALK", 3001); // This MUST be the following odd integer.
$wgExtraNamespaces[NS_CAFE] = "کافه";
$wgExtraNamespaces[NS_CAFE_TALK] = "کافه_بحث"; // Note underscores in the namespace name.
$wgNamespaceProtection[NS_CAFE] = array( 'editfoo' ); // permission "editfoo" required to edit the foo namespace
$wgNamespacesWithSubpages[NS_CAFE] = true; // subpages enabled for the foo namespace
$wgGroupPermissions['sysop']['editfoo'] = true; // permission "editfoo" granted to users in the "sysop" group
$wgContentNamespaces[] = NS_CAFE;
AS NS_CAFE is in our language then what values should be for $wgNamespaceProtection[NS_CAFE] and for second array element of $wgGroupPermissions['sysop'] ? Farvardyn (talk) 07:21, 27 December 2020 (UTC)
- thats the name of the permission. It can be anything. Normally its english with translations provided by pages in mediawiki namespace (cant remember exact name but i think mediawiki:right-editfoo and mediawiki:action-editfoo or something like that) but it would probably also be fine to be in arabic. Bawolff (talk) 09:39, 27 December 2020 (UTC)
deleted
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.
A01020304a (talk) 10:15, 27 December 2020 (UTC)
- @A01020304a What exactly did you put into the Template's code that makes you think that "it should be on the right"? Malyacko (talk) 10:53, 27 December 2020 (UTC)
A01020304a (talk) 11:03, 27 December 2020 (UTC)
- Ok. Could you answer my previous question, please? Malyacko (talk) 11:07, 27 December 2020 (UTC)
A01020304a (talk) 11:10, 27 December 2020 (UTC)
installation mediawiki1.35
impossible to decompress mediawiki 1.35 on windows 10. an error during the decompression process using winrar and 7zip. 196.183.158.176 (talk) 15:58, 27 December 2020 (UTC)
- Hi, do you have a question? If yes, do you also plan to share that actual "error" with anyone? Malyacko (talk) 22:00, 27 December 2020 (UTC)
- Read it as saying, “I have found it impossible...” and “I received an error...” and the question will appear.
- The [[Download]] page says:
- It is advised not to use 7-Zip to decompress the tarball, due to a bug with the PAX format. Jonathan3 (talk) 13:49, 28 December 2020 (UTC)
- You should use Winrar to unpack archive. Then you can pack it again to .zip if you need to upload into external hosting. 83.26.172.248 (talk) 15:21, 28 December 2020 (UTC)
rdfio extention
the rdfio extension is not displayed in mediawiki1.34.1 install on my computer although I have followed all the procedure described on the editor page. Pharell95 (talk) 16:03, 27 December 2020 (UTC)
- See Extension:RDFIO and see Extension talk:RDFIO. Malyacko (talk) 21:59, 27 December 2020 (UTC)
Unable to get bottom navbox to work
I have created a page and wanted a bottom navbox, I have created template and then added it to bottom of page but it seems to be missing something as it is not showing properly.
Can you tellme how to fix this?
Template:Scottish clans - All About Ayrshire (igoaddons.eu.org)
Patrick Hunter (22nd Laird) - All About Ayrshire (igoaddons.eu.org)
this is how it should look like as per wikipedia
Template:Scottish clans - Wikipedia A01020304a (talk) 17:46, 27 December 2020 (UTC)
- You could use Special:Export to export the template on English Wikipedia and use Special:Import on your wiki to import it. Malyacko (talk) 22:03, 27 December 2020 (UTC)
- that is what I did but something seems to be missing which I cannot figure out A01020304a (talk) 22:04, 27 December 2020 (UTC)
- possibly some css from mediawiki:common.css Bawolff (talk) 04:04, 28 December 2020 (UTC)
- i have that .css installed so does not seem to be that, this is why i am asking for help as i just cannot find out what is missing and hope someone can figure out what it is A01020304a (talk) 05:34, 28 December 2020 (UTC)
DingoFilter (talk) 05:33, 28 December 2020 (UTC)
- looks fixed to me? Malyacko (talk) 13:00, 28 December 2020 (UTC)
Portable Infoboxes' CSS isn't applied in FANDOM-forked wiki
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi guys, I decided to move away from FANDOM and set up my own wiki in the last few days. It looks alright, except for the Portable Infoboxes.
For some reason, the CSS that I copied from FANDOM won't be applied to those PIs in the new wiki. No matter what I do, no matter if I use a skin-specific CSS or Common.css, nothing works. I've already asked on Discord, but they weren't able to help, sadly.
You can find the CSS I want to use here: https://direngrey.fandom.com/wiki/MediaWiki:Wikia.css
Since the new wiki isn't public yet, I can't show you direct links. But I can take screenshots if need be. For example, this is what it looks like vs. how it's supposed to look: https://cdn.discordapp.com/attachments/388048181142749185/792735232516030524/unknown.png
Would anyone here be able to help me out? It's the last (bigger) issue I need to solve before going public and I don't know how to rewrite the infoboxes to the MediaWiki standard. :/ Seelentau (talk) 22:39, 27 December 2020 (UTC)
Can't seem to log in to administrator account?
So I installed a fresh copy of mediawiki onto a Raspberry Pi and then went through the configuration to generate the LocalSettings.php . I set it to authorized users only but I did take note of it asking for a user name password for the administrator toward the end. I see myself in the user rights section with the roles of Bureaucrats, Interface Administrators, and Administrators but I can't log in with that info it asked me at the end of the LocalSettings.php setup. What am I doing wrong? 68.227.169.35 (talk) 03:19, 28 December 2020 (UTC)
- Is your system setup to use SMTP for a password reset? If not you can use the command line to either change the password or promote a new account if you don't want to reinstall from scratch. Charitwo (talk) 03:27, 28 December 2020 (UTC)
- Its not set up to use SMTP for a password reset. I can mess with it via the command line. The part that's confusing is under user list shows no one listed but under user rights it shows one person. 68.227.169.35 (talk) 03:59, 28 December 2020 (UTC)
- Let me know if you're able to solve it with maintenance scripts. Using the former link if the account does exist or creating a new one if it doesn't. Charitwo (talk) 05:27, 28 December 2020 (UTC)
Move API not working
Hey, I need to implement custom 'move page' button because, the default moving mechanism does not support multi-level namespaces and when I try to move 'foo: title' to 'foo: hoo: boo: title' it returns an error. I can't do extensions so I've tried many other solutions (eg. AJAX request for token and then move) but everything ends up with an error.
I have no idea why this official documentation script is not working :/
/*
move.js
MediaWiki API Demos
Demo of `Move` module: Move a page with its
talk page, without a redirect.
MIT license
*/
var request = require('request').defaults({jar: true}),
url = "https://test.wikipedia.org/w/api.php";
// Step 1: GET request to fetch login token
function getLoginToken() {
var params_0 = {
action: "query",
meta: "tokens",
type: "login",
format: "json"
};
request.get({ url: url, qs: params_0 }, function (error, res, body) {
if (error) {
return;
}
var data = JSON.parse(body);
loginRequest(data.query.tokens.logintoken);
});
}
// Step 2: POST request to log in.
// Use of main account for login is not
// supported. Obtain credentials via Special:BotPasswords
// (https://www.mediawiki.org/wiki/Special:BotPasswords) for lgname & lgpassword
function loginRequest(login_token) {
var params_1 = {
action: "login",
lgname: "bot_username",
lgpassword: "bot_password",
lgtoken: login_token,
format: "json"
};
request.post({ url: url, form: params_1 }, function (error, res, body) {
if (error) {
return;
}
getCsrfToken();
});
}
// Step 3: GET request to fetch CSRF token
function getCsrfToken() {
var params_2 = {
action: "query",
meta: "tokens",
format: "json"
};
request.get({ url: url, qs: params_2 }, function(error, res, body) {
if (error) {
return;
}
var data = JSON.parse(body);
move(data.query.tokens.csrftoken);
});
}
// Step 4: POST request to move the page
function move(csrf_token) {
var params_3 = {
action: "move",
from: "Current title",
to: "Page with new title",
reason: "API Testing",
movetalk: "1",
noredirect: "1",
token: csrf_token,
format: "json"
};
request.post({ url: url, form: params_3 }, function (error, res, body) {
if (error) {
return;
}
console.log(body);
});
}
I have placed it in MediaWiki:Common.js, changed url, titles, valid bot login and password but when I trigger getLoginToken() script, Chrome Console returns an error: Uncaught TypeError: Cannot read property 'get' of undefined
at getLoginToken (<anonymous>:1:198) at <anonymous>:1:1
Please Help 83.26.172.248 (talk) 14:37, 28 December 2020 (UTC)
- This is hard to read, plus where exactly to find some "official script"? Malyacko (talk) 17:14, 28 December 2020 (UTC)
- API:Move in Sample Code --> JavaScript 83.26.172.248 (talk) 17:43, 28 December 2020 (UTC)
- this looks more like node.js javascript than web browser js. You probably need to change it to use the Fetch api if you want it to run in a web browser. Bawolff (talk) 05:02, 29 December 2020 (UTC)
- Thanks, I will try 83.26.172.248 (talk) 09:00, 29 December 2020 (UTC)
cycleroute layer on poimap2.php not working
when clicking the checkbox "Cycling" the layer with the cycle routes does not appear.
The bug is reproducible e.g. on
https://wikivoyage.toolforge.org/w/poimap2.php?lat=44.930729&lon=4.893059&zoom=16&layer=O&lang=en
I think the reason is that the tiles are still linked to "http://tile.lonvia.de/" where you get a "NOT FOUND". Change the url to "http://tile.waymarkedtrails.org/cycling/" to make it work. 84.58.77.33 (talk) 15:23, 28 December 2020 (UTC)
- Welcome to the support desk for the MediaWiki software.
- If there is an issue with some tool on Toolforge, then please contact the owners of that tool listed at https://admin.toolforge.org/tool/wikivoyage or follow How to report a bug. Thanks. Malyacko (talk) 17:14, 28 December 2020 (UTC)
How does it work?
On this article, you can go to any trade good by entering its name, but the trade goods itself aren't headers. How does it work?
For example: https://imperator.paradoxwikis.com/Trade_goods#Spices
I know, that one can generate such links, using headers, but how to do this anchor without a header? Аргскригициониец (talk) 18:02, 28 December 2020 (UTC)
- They use ids. Clump (talk) 19:02, 28 December 2020 (UTC)
How can I insert file contents to the page?
Hi,
I have a lot of files(c, cpp, h, hpp extensions). I want to upload them all together and show its contents in the page.
I will insert to the page like this :File: main.cpp
and the contents of the file will be displayed on the page.
How can I do this? Lambdacoresw (talk) 13:27, 29 December 2020 (UTC)
- @Lambdacoresw Category:Bulk upload; Manual:ImportTextFiles.php. Malyacko (talk) 16:47, 29 December 2020 (UTC)
- I am using shared hosting. Is there another way? Lambdacoresw (talk) 20:14, 29 December 2020 (UTC)
- Why does that matter? Malyacko (talk) 21:12, 29 December 2020 (UTC)
- Don't I need to use terminal? Lambdacoresw (talk) 21:13, 29 December 2020 (UTC)
- Most shared hosting providers do provide SSH access, which is enough. Leaderboard (talk) 14:26, 30 December 2020 (UTC)
- use pywikibot to do mass actions if you dont have shell access to the server.
- If they are text you want to transclude, you probably dont want to upload as files but as ordinary pages (possibly changing the content model to text, or wraping in a <syntaxhighlight lang='text'> tag or using extension:SyntaxHighlight) Bawolff (talk) 01:32, 31 December 2020 (UTC)
Untranslated text.
How can I manually translate the untranslated text to Chinese? For example: "You have no new messages." "Use talk" "Use page" on the navigation banner, and xx articles, I will translate it into "xx 文章", but idk where can I alter these texts?
Hope to get your response! Thank you! 128.199.88.59 (talk) 09:22, 30 December 2020 (UTC)
- MediaWiki is translated on translatewiki.net Taavi (talk!) 09:25, 30 December 2020 (UTC)
Malaysian Chinese
This wikipedia article is full of language inaccuracies and grammatical errors. I am not able to comment on the accuracy of the content, although I sometimes found it difficult to know what the content was. JDShepherd (talk) 12:03, 30 December 2020 (UTC)
- @JDShepherd Welcome to the support desk for the MediaWiki software. If some content on some website is wrong, you need to contact that website instead. Malyacko (talk) 12:12, 30 December 2020 (UTC)
Creating a main page just like at mediawiki.org
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi all.
I like how the main page of mediawiki.org looks like and want to implement the design to my wiki. So I have saved style.css at my Mediawiki:Common.css page and put the code with minor edits to my page: Link
And I see that divs appeared as a rows, not line by line as it is on mediawiki. Could you please help me what I have missed, so that it would show me divs as columns?
Here it is my source code: Link Fokebox (talk) 12:34, 30 December 2020 (UTC)
- @Fokebox See the source of Template:Main page loading Template:Main page/styles.css. Malyacko (talk) 12:38, 30 December 2020 (UTC)
- I have save the css to my Mediawiki:Common.css, but it does not effect the position of divs. I cannot really understand the method that used on the main page of mediawiki. So I just saved all divs and css, removed <translate> tags, and it doesn't work Fokebox (talk) 13:26, 30 December 2020 (UTC)
- @Fokebox It does work. See your HTML: You put exactly one box per row, and that's what is displayed. Malyacko (talk) 14:37, 30 December 2020 (UTC)
- Probably I have expressed my thoughts not so correct ). I need it just like on mediawiki.org main page. I want have three divs displayed in one raw.
- Just like that: Fokebox (talk) 14:58, 30 December 2020 (UTC)
- Yes, I answered that in my previous comment: "See your HTML: You put exactly one box per row, and that's what is displayed." Malyacko (talk) 20:37, 30 December 2020 (UTC)
- It is quite strange or I can't understand what I do wrong, becaouse I have just copy-paste the code from mediawiki main page and don't see the same result. Ok, what shall I add to make three divs in a raw? Fokebox (talk) 13:42, 31 December 2020 (UTC)
- @Fokebox 1. Look at the HTML of https://wikireshebnik.ru/index.php/Шаблон:Проект_главной_страницы 2. See that there is only one single mainpage_box in each mainpage_row. 3. Change that if you want more than one single mainpage_box in each mainpage_row. 4. I don't know what else to say - Please read the HTML, change it, and check what happens or does not... Malyacko (talk) 15:00, 31 December 2020 (UTC)
Monetary contribution
You have boldly requested a contribution. I have decided to make a small conurbation and have created an account, but cannot find on your web site how to do so. I am baffled as to why you have made it so difficult. I don't know who developed this procedure, but ythey hsve done an astonishingly poor job of making it easy to support Wikipedia. Sondra Raile (talk) 14:18, 30 December 2020 (UTC)
- Hi, this is not quite the right place to ask this question, see https://donate.wikimedia.org/. See Project:About. Leaderboard (talk) 14:24, 30 December 2020 (UTC)
Unable to install wiki.
Im newbie at programming. Literally started exploring this few days ago. Im using byethost cpanel. Uploaded it with FileZilla.
At the start i got message:
PHP 7.4.8 is installed.
Warning: you have SQLite 3.7.17, which is lower than minimum required version 3.8.0. SQLite will be unavailable.
Warning: Could not find APCu or WinCache.
Object caching is not enabled.
GNU diff3 text comparison utility not found. You can ignore this for now, but might run into edit conflicts more frequently.".
I ignored this at first. I created MySQL database using cPanel. When i tried to perform mediawiki installation, i got this error:
[X@yRJnLkX4RHnhvgviUg1AAAABc] /mw-config/index.php?page=Install Wikimedia\Rdbms\DBQueryError from line 1699 of /home/vol14_6/byethost32.com/b32_27478892/fibrowiki.totalh.net/htdocs/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' DEFAULT CHARSET=binary' at line 8 (sql107.byethost32.com)
Function: Wikimedia\Rdbms\Database::sourceFile( /home/vol14_6/byethost32.com/b32_27478892/fibrowiki.totalh.net/htdocs/maintenance/tables-generated.sql )
Query: CREATE TABLE `site_identifiers` (
si_type VARBINARY(32) NOT NULL,
si_key VARBINARY(32) NOT NULL,
si_site INT UNSIGNED NOT NULL,
INDEX site_ids_site (si_site),
INDEX site_ids_key (si_key),
PRIMARY KEY(si_type, si_key)
) ENGINE=, DEFAULT CHARSET=binary
Backtrace:
- 0 /home/vol14_6/byethost32.com/b32_27478892/fibrowiki.totalh.net/htdocs/includes/libs/rdbms/database/Database.php(1683): Wikimedia\Rdbms\Database->getQueryException(string, integer, string, string)
- 1 /home/vol14_6/byethost32.com/b32_27478892/fibrowiki.totalh.net/htdocs/includes/libs/rdbms/database/Database.php(1658): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)
- 2 /home/vol14_6/byethost32.com/b32_27478892/fibrowiki.totalh.net/htdocs/includes/libs/rdbms/database/Database.php(1227): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
- 3 /home/vol14_6/byethost32.com/b32_27478892/fibrowiki.totalh.net/htdocs/includes/libs/rdbms/database/Database.php(5075): Wikimedia\Rdbms\Database->query(string, string)
- 4 /home/vol14_6/byethost32.com/b32_27478892/fibrowiki.totalh.net/htdocs/includes/libs/rdbms/database/Database.php(5010): Wikimedia\Rdbms\Database->sourceStream(resource (closed), NULL, NULL, string, NULL)
- 5 /home/vol14_6/byethost32.com/b32_27478892/fibrowiki.totalh.net/htdocs/includes/installer/DatabaseInstaller.php(232): Wikimedia\Rdbms\Database->sourceFile(string)
- 6 /home/vol14_6/byethost32.com/b32_27478892/fibrowiki.totalh.net/htdocs/includes/installer/DatabaseInstaller.php(256): DatabaseInstaller->stepApplySourceFile(string, string, boolean)
- 7 /home/vol14_6/byethost32.com/b32_27478892/fibrowiki.totalh.net/htdocs/includes/installer/Installer.php(1732): DatabaseInstaller->createTables(MysqlInstaller)
- 8 /home/vol14_6/byethost32.com/b32_27478892/fibrowiki.totalh.net/htdocs/includes/installer/WebInstallerInstall.php(44): Installer->performInstallation(array, array)
- 9 /home/vol14_6/byethost32.com/b32_27478892/fibrowiki.totalh.net/htdocs/includes/installer/WebInstaller.php(269): WebInstallerInstall->execute()
- 10 /home/vol14_6/byethost32.com/b32_27478892/fibrowiki.totalh.net/htdocs/mw-config/index.php(82): WebInstaller->execute(array)
- 11 /home/vol14_6/byethost32.com/b32_27478892/fibrowiki.totalh.net/htdocs/mw-config/index.php(40): wfInstallerMain()
- 12 {main}
Help me understand what i did wrong. 134.249.128.219 (talk) 14:53, 30 December 2020 (UTC)
- Just tested on XAMPP local server. It worked well. What's difference with byethost? 134.249.128.219 (talk) 18:41, 30 December 2020 (UTC)
- You'll have to ask "bytehost" for that. From what you wrote above, the differences are an ancient SQLite version and not having object caching installed by default. Malyacko (talk) 20:36, 30 December 2020 (UTC)
- issue is mediawiki installer is failing to detect what engines are available on that server (innodb or myisam). No idea how that is happening but i've seen the rare report of that before.
- [The sqlite warning doesnt matter since you are not using sqlite. The GNU diff3 warning means edit conflicts will happen a lot more but otherwise doesnt matter] Bawolff (talk) 01:28, 31 December 2020 (UTC)
- Thanks. Well, i tried to do something fishy and i don't know if it will work well now.
- I created SQL base on my XAMPP local server, then installed wiki on local and created base (tables).
- Went to local phpmyadmin and exported my SQL local base, downloaded it as a file.
- Went to byethost cPanel, created empty wiki base, and then I imported these tables into my empty base.
- Tried to install wiki on byethost server, while using non-empty base that i just imported from local server.
- Wiki installation went fine. Got "MediaWiki tablets seems to already exist. Skipping creation" instead of error.
- Now wiki is working. But not sure if it will always work fine now, and i wont meet new problems later? What do you think? Confirm please that i didn't violate like thousands security rules as well. 134.249.128.219 (talk) 07:44, 31 December 2020 (UTC)
Can I install mediawiki when something else is in the root of the domain?
I have a website with concrete5 as the root software, is there anyway to simply have website.com/wiki be the wiki now? Or will I have to do one of those weird things like wiki.website.com? And if the later is the only way, does anyone know how to do that? Or where I might be able to pay someone to help with that? 24.209.244.123 (talk) 15:12, 30 December 2020 (UTC)
- You can do the former, just put the MediaWiki contents in /wiki. Leaderboard (talk) 15:53, 30 December 2020 (UTC)
- Check out Manual:Short URL for ideas Peculiar Investor (talk) 01:29, 31 December 2020 (UTC)
Error contacting the Parsoid/RESTBase server: (curl error: no status set)
Hi,
I use mediawiki V 1.35.1 with PHP 7.4.11
I activated the VisualEditor in the installation screen, but everytime I want to edit or create a page with the "Edit" Button, i get the error "Error contacting the Parsoid/RESTBase server: (curl error: no status set)".
I cannot find something on google with this exact error, I even reinstalled the mediawiki.
Is there anyone who can help me? This would be awesome.
Please tell me which logs or facts you need to know.
Many thanks!
Leon 2003:D2:EF46:F900:2C55:8BE6:8E16:DD9F (talk) 19:17, 30 December 2020 (UTC)
- Same problem, no idea what is wrong 95.47.160.103 (talk) 07:19, 19 August 2021 (UTC)
- Same error here and no idea.
- It happens to me just on one specific hosting, maybe some hosting settings? 195.74.51.67 (talk) 21:00, 21 February 2022 (UTC)
why can't I email Wikkipedia?
I would like to contribute to Wikkipedia but not unless I can email the creators, I must be able to have
an open dialog with the creators so I know where they are leaning politically. Everything is biased today, if
you claim not to be, I need to know how? 24.9.198.114 (talk) 19:21, 30 December 2020 (UTC)
- Hi and welcome to the support desk for the MediaWiki software itself. For questions about other websites (for example Wikipedia) and their content, please contact those websites. Most Wikipedias have discussion forums on their Wikipedia websites. Malyacko (talk) 20:34, 30 December 2020 (UTC)
Why is Register form still showing Other Information
Why does the ConformAccount Register form still show Other Information when the LocalSettings.php has
$wgConfirmAccountRequestFormItems = [ ..
'CV' => [ 'enabled' => false ]
Sorry but this is on a WampServer site only at the moment, running MW 1.35.1. LocalSettings.php settings are
$wgMakeUserPageFromBio = true;
$wgAutoWelcomeNewUsers = false;
$wgConfirmAccountRequestFormItems = [
'UserName' => [ 'enabled' => true ],
'RealName' => [ 'enabled' => true ],
'Biography' => [ 'enabled' => true, 'minWords' => 1 ],
'AreasOfInterest' => [ 'enabled' => false ],
'CV' => [ 'enabled' => false ],
'Notes' => [ 'enabled' => false ],
'Links' => [ 'enabled' => false ],
'TermsOfService' => [ 'enabled' => true ],
]; Ken Roy (talk) 22:33, 30 December 2020 (UTC)
- I commented out the
- wfLoadExtension( 'ConfirmAccount' );
- as Bawolff recommended in another post and now the CV and Notes sections are no longer displayed afer I re-instated the wfLoadExtension( 'ConfirmAccount' );
- Something must be getting cached even thought I had made a change to LocalSettings.php Ken Roy (talk) 00:27, 31 December 2020 (UTC)
- that's odd.
- Could be opcache.validate_timestamps or opcache.revalidate_freq misconfigured in php.ini but that would be really weird. Maybe however your updating LocalSettings.php is not adjusting the file's mtime or something, but that would also be odd. Bawolff (talk) 22:32, 31 December 2020 (UTC)
Please add link to Develop and extend code
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Please add Manual:How_to_make_a_MediaWiki_skin to the develop and extend code section. It's a great way for volunteers to get involved! Jdlrobson (talk) 01:44, 31 December 2020 (UTC)
How I can Install Wiki 1.35.0 on RHEL-8
Hello Team,
I want to install wiki 1.35.0 on RHEL-8.
Please guide good steps.
Thanks
Rodrick 157.39.57.87 (talk) 06:12, 31 December 2020 (UTC)
- See the "Install" link on the frontpage of this website. Malyacko (talk) 12:28, 31 December 2020 (UTC)
Wiki 1.35.1 On RHEL-8
Hello Team,
I am installing wiki 1.35.1 on RHEL 8, And got stuck at one step, Where I am not understanding how to proceed.
Please help me in this below steps:
Do i need to create /usr/share/mediawiki-1.35.1/load.php and what is apache.apache also where need to change this. Please clear this steps.
and modify config
vi config
making SELINUX either "permissive" or "disabled."
I also had to create a link to /usr/share/mediawiki-1.35.1/load.php in my /var/www/mediawiki directory and change the ownership on the /usr/share/mediawiki-1.35.1 directory to apache.apache
Thanks
Roderic 157.39.57.87 (talk) 07:06, 31 December 2020 (UTC)
- What is the reason that you have these questions? :) Basically: Which steps are you following where? Malyacko (talk) 12:27, 31 December 2020 (UTC)
Starting a new wiki website
Hello everyone.
I am new here and I am from India. I am looking to start a new wiki website like wikipedia. I don't know coding or basically hosting a website. I am newbie in everything. I can see how helpful support desk people are. Positivevibes666 (talk) 11:36, 31 December 2020 (UTC)
- You're welcome. There are various documentations about what you can do and how to, please take some time to read them, see links at MediaWiki. After that you can ask more specific question if you're stuck. – Ammarpad (talk) 12:00, 31 December 2020 (UTC)
Is it possible to send account approval emails in different language
Is it possible to send emails on ConfirmAccount requests in user's selected language? I am trying to setup a multi-language wiki using a single wiki database to support our users in other languages.
I have the Register form from the ConfirmAccount extension being displayed in French when using the LanguageSelector porlet in the sidebar, but it appears the request for a confirmation email was sent to the requester in English.
On approving the request from an English screen there also does not appear to be any option to send the approval email with the temporary password in the language the user used to submit the request Ken Roy (talk) 13:12, 31 December 2020 (UTC)
- you would have to modify the extension probably. Bawolff (talk) 22:20, 31 December 2020 (UTC)
- Thanks Bawolff,
- Sounds like an enhancements to the ConfirmAccount extension is need to allow the user to specify a language preference that could then be used to select the appropriate language json file for communication. Ken Roy (talk) 18:57, 1 January 2021 (UTC)
- Looks like even though I was using French on the wiki, when I approved a request, the approval email was sent in English, which further substantiates my impression that emails are sent only in the primary language of the wiki $wgLanguageCode = Ken Roy (talk) 19:46, 1 January 2021 (UTC)
- Does anyone know what the variable name would be from the LanguageSelector extension for the $lang selected in the sidebar portlet that I could set the
- $wgContLang
- to in the extensions/ConfirmAccount/includes/backend/ConfirmAccount.class.php
- after line 111 to be used in the function sendConfirmationMail so the email message would use the correct nn.json file
- Thanks in advance Ken Roy (talk) 21:07, 2 January 2021 (UTC)
What ConfirmEdit captcha will work with VisualEditor
The ConfirmEdit extension indicates that
Note: ReCaptcha will not work with the VisualEditor.
so what captcha works and is triggered when a user attempts to add external links? Ken Roy (talk) 16:58, 31 December 2020 (UTC)
Which PHP version should I use for a new Media wiki install?
It's been a while and I'm trying to find out what PHP to use for 1.35.1. I'm finding conflicting information online and I'm not sure what the current advice is for PHP versions.
The only PHP versions my host provides are the following:
- PHP 7.4.24
- PHP 7.3.9
- PHP 7.2.22
Any thoughts on what I should use? Thanks. 24.209.244.123 (talk) 17:57, 31 December 2020 (UTC)
- PHP 7.4.x would be and is my choice. See Compatibility - MediaWiki and PHP: Supported Versions
- I wouldn't use either of:
- PHP 7.2 is end-of-life (EOL) and no longer receiving security updates.
- PHP 7.3 is no longer actively supported as of 6 Dec 2020 and will only receive security updates until 6 Dec 2021 Peculiar Investor (talk) 21:09, 31 December 2020 (UTC)
Script error: No such module "Unsubst"
for the infobox it seems it is showing "Script error: No such module "Unsubst".
Category:'''Script error: No such module "pagetype".''' with short description Script error: No such module "Check for unknown parameters".Expression error: Unexpected < operator.Script error: No such module "SDcat".
Script error: No such module "Infobox".Script error: No such module "Check for unknown parameters".Script error: No such module "Check for unknown parameters".Script error: No such module "Infobox/dates".Script error: No such module "Infobox television disambiguation check".
i used the Export template Aswell and its still causing issue and i do not know What is causing this, I will give you the link here is my wiki And i also have all the template things i need enabled to use it however still not work can someone please help? Cocopuff2018 (talk) 21:11, 31 December 2020 (UTC)
- Do you have those modules created/installed? Taavi (talk!) 21:54, 31 December 2020 (UTC)
- i Exported it from English Wikipedia so i am not sure if they are or not Any other ideas?
- d Cocopuff2018 (talk) 22:03, 31 December 2020 (UTC)
- Well, the error message says thay they do not exist, so that makes me think that they do, in fact, not exist. Did you export all dependencies as well? Taavi (talk!) 23:13, 31 December 2020 (UTC)
- i think i did i uploaded the page and template from Wikipedia. Cocopuff2018 (talk) 23:24, 31 December 2020 (UTC)
- I'd recommend taking a new export and making sure it contains all required tempaltes and modules. Taavi (talk!) 23:32, 31 December 2020 (UTC)
- OK, AND if that does not work what other options are there? it also looked like it exported everything with it when exporting it Cocopuff2018 (talk) 23:36, 31 December 2020 (UTC)
- you can import the missing modules manually Taavi (talk!) 09:30, 1 January 2021 (UTC)
What are my options for multi-wiki's?
I have a website about video games. I want a wiki where there's a different wiki with a different sidebar for each game. I'm trying to future proof this before I start so I don't get into a situation where I have to transfer hundreds of pages later.
I really want, if possible, the wiki to be websiteURL.com/wiki and then have all the subwiki's be websiteURL.com/wiki/game1 and websiteURL.com/wiki/game2 and so on for each game that gets added. Is that possible?
If that's not possible, what is possible? Can it all be done from one wiki? I need it to share all users, I don't want users to have to make a new account for each game, if possible, but if that's not possible that's fine too I can make it work. I roughly read the family wikis page but it seemed to only talk about a few instances of what can be done, but any input would be greatly appreciated.
Thanks! 24.209.244.123 (talk) 22:43, 31 December 2020 (UTC)