Jump to content

Project:Support desk/Flow/2022/05

Add topic
From mediawiki.org
Latest comment: 1 year ago by 178.25.172.77 in topic Synology & Visual Editor
This page is an archive.
Please ask questions on the current support desk.

Toolforge warning

I tried accessing Toolforge today and I got this warning:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed. The fingerprint for the [] key sent by the remote host is []. Please contact your system administrator. Add correct host key in [] to get rid of this message. [] Host key for login.toolforge.org has changed and you have requested strict checking. Host key verification failed.

I have removed [some information] thinking maybe it shouldn't be public. What does it mean exactly and what should my course of action be? Can someone help me? Klein Muçi (talk) 11:56, 1 May 2022 (UTC)

It probably means they reinstalled the operating system. The error means that you are talking to a different computer than last time you connected. In theory it could be someone evesdropping on the connection, but in practise it usually just means toolforge was updated.
If your paranoid, check the value against those listed at https://wikitech.wikimedia.org/wiki/Help:SSH_Fingerprints/login.toolforge.org Bawolff (talk) 15:19, 1 May 2022 (UTC)
@Bawolff, thanks a lot for the straightforward answer! What exactly should I be changing so it allows me to login in again?
This: login.toolforge.org,185.15.56.48 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBFnJSjCGW7kli+cdgtmndPAl4xLZNc9uqP9KWlsnVDqr8yQ2RkR5ACbXe6XZ+dS09Wc9ulOmGTOwCImMi9Fho78=
To this: login.toolforge.org,185.15.56.48 ecdsa-sha2-nistp256 xxW0+dRvWgCzYOq7uBKXXo7Xze0FVezt0QikIkpeMKI= ? Klein Muçi (talk) 15:32, 1 May 2022 (UTC)
That can't be right because I already tried that and I got the same message while still not being allowed to log in. Klein Muçi (talk) 15:36, 1 May 2022 (UTC)
Generally i just delete the particular line from the config file (on next login it will ask if you want to trust, if you press y it will add an appropriate line back). Usually there are 2 lines you need to remove, one for the domain name and one for the ip address. Bawolff (talk) 15:45, 1 May 2022 (UTC)
It worked and I'm now logged in. I deleted the old file as well.
Last question: In my known hosts, beside Toolforge, I also had this:
[gerrit.wikimedia.org]:29418,[208.80.154.137]:29418 ssh-rsa AAAAB3Nza...+oVFf1CgQ==
What exactly is that and would I need to change anything in regard to it or does the Toolforge update not have any connection whatsoever with that? Klein Muçi (talk) 15:55, 1 May 2022 (UTC)
They are separate. Gerrit is the wikimedia code review tool (which also uses ssh). If you ever used git review (or git push) on a wikimedia code base, that is where that line comes from. Bawolff (talk) 16:12, 1 May 2022 (UTC)
I have. Again, thanks a lot for the fast and straightforward answers. My past experiences with WikiTech stuff have been frustrating and I've usually been redirected in the IRC chat channels. I saw that you were singlehandedly handling all the request here and that's to be appraised. Thank you and have a good day! :) Klein Muçi (talk) 16:16, 1 May 2022 (UTC)
@Klein Muçi, Remember if you use cloud services, It's highly recommend to subscribe to at least the cloud-announce mailing list, The relevant topic for this announcement was [Cloud-Announce] [IMPORTANT] login.toolforge.org now points to Buster Grid Engine, for your first post. P858snake (talk) 11:53, 2 May 2022 (UTC)
@P858snake, where do I subscribe to these mailing lists? Klein Muçi (talk) 12:22, 2 May 2022 (UTC)
@Klein Muçi Create a account on our Mailman install (or login, if you already have one) at https://lists.wikimedia.org/ then if you navigate to the clouds-announce mailing list and choose the subscription option. P858snake (talk) 11:01, 3 May 2022 (UTC)
Wow, so many possible lists! Is the "Mailman install" a new thing? I didn't have an account for it apparently but I remember doing something more old-school for subscription in the past. I created an account and indeed I had some lists I had subscripted to already. I'm very much fond of this "new way" though. I did subscribe to it. Thank you for assisting me through this! Klein Muçi (talk) 14:35, 3 May 2022 (UTC)
@Klein Muçi We migrated from Mailman 2.X to 3.X last April/May which brought quite a few improvements. P858snake (talk) 21:44, 3 May 2022 (UTC)
Thanks for this discussion! I just had the same issue. Thank you @Bawolff for the link to the SSH fingerprints. TiagoLubiana (talk) 02:12, 5 July 2024 (UTC)

Tell search engines not to crawl anything which isn't part of the main namespace and Category namespace

MediaWiki 1.36.1 with long URLs.

I want to tell search engines not to crawl anything which isn't part of the main namespace and Category: namespace.

How to do that?

I currently use the following code written by @Bawolff but I am not sure why is the allow: are there because we already blocked anything else by the two disallow: didn't we?

disallow: /index.php?
disallow: /index.php/*:
allow: /index.php/Category:
allow: /index.php/קטגוריה:

79.179.161.198 (talk) 15:59, 1 May 2022 (UTC)

In Hebrew קטגוריה means category. 79.179.161.198 (talk) 15:59, 1 May 2022 (UTC)
Allow overrides disallow Bawolff (talk) 16:10, 1 May 2022 (UTC)
No, "allow" doesn't exist in robots.txt syntax
http://www.robotstxt.org/robotstxt.html Ciencia Al Poder (talk) 08:01, 2 May 2022 (UTC)
@Ciencia Al Poder I assume it existed in the past and was scrapped. Am I wrong? 79.179.161.198 (talk) 12:14, 2 May 2022 (UTC)
Yes, you're wrong. Maybe some search engines support it, but that's not a standard thing Ciencia Al Poder (talk) 12:57, 2 May 2022 (UTC)
@Ciencia Al Poder
Thanks
I guess I am willing to sacrifice crawling of category pages for sole crawling of articles, as articles are the main "meat" which brings readers to my website and if I need to sacrifice a million other webpages (including category pages) just that articles would be the only thing crawled, I guess I should painfully do that.
I'll keep using the "non standard" exception suggested by Bawolff though, just in case. 79.179.161.198 (talk) 13:00, 2 May 2022 (UTC)
Both google and bing support allow. I'm not sure what other search engines exist anymore. Bawolff (talk) 14:03, 2 May 2022 (UTC)
Two MediaWiki developers here say contradicting things :)
By whom's say should I go? :) 79.179.161.198 (talk) 14:18, 2 May 2022 (UTC)
Read the documentation of each crawler, because robots.txt is not MediaWiki related Ciencia Al Poder (talk) 14:20, 2 May 2022 (UTC)
@Ciencia Al Poder
I didn't think it was MediaWiki related...
From my check, it is true that in the page you linked to, the term allow: isn't mentioned, but it might effect as legacy or would suddenly be added (or returned) so I keep it. In case I'm impressed it's a problem to keep it, I'll remove it.
I agree that getting updated about changes in robots.txt language is important. 79.179.161.198 (talk) 14:29, 2 May 2022 (UTC)
Not one have I bumped in webmasters "arguing" about if allow: effects or not. Strange. 79.179.161.198 (talk) 14:30, 2 May 2022 (UTC)
We're not really disagreeing with each other.
Allow is not in the official standard. It is however supported by most of the prominent implementations. Whether or not that fits with your needs is something you have to determine yourself. Bawolff (talk) 20:02, 2 May 2022 (UTC)
@Bawolff But why is it needed here if one didn't do a general
disallow: /index.php
? 79.179.161.198 (talk) 16:51, 1 May 2022 (UTC)
Because, /index.php/*: would normally match /index.php/Category: as * means match anything. Bawolff (talk) 18:34, 1 May 2022 (UTC)
A wildcard and an exception to the wildcard.
Some webmaster in WebMasters StackExchange once told me that there is no regex in robots.txt, this may have biased me from finding the connection. 79.179.161.198 (talk) 20:29, 1 May 2022 (UTC)
This is glob syntax not regex, which is slightly different than regex for how it works and what is supported Bawolff (talk) 21:54, 1 May 2022 (UTC)

I have a repository on GitHub. Need Guidance!

Hello support desk. I have a repo in GitHub called Hello-World. I've been struggling trying to find the right connections to contact to find out any information on this repo and where I have connected the initial coding. My UN on Git is Rockon21. I believe not positive I may have created the possibility for the new Web 3.0 platform to be developed. I did not fully develop the coding itself; other coders have implemented the fully functional code. I believe I created the possibility for this new coding concept and am not an expert coder by any means. I am trying to learn new things in regard to coding but there's just a lot to learn in what seems to be such a short time as people/companies are wanting to use this platform. Any assistance is greatly appreciated. This coming from an ex-helpdesk level 1 admin for clarification purposes. Thisguy12win (talk) 17:32, 1 May 2022 (UTC)

Hi this doesn't seem to involve Wikimedia or MediaWiki. This help desk is for those topics only.
Additionally, I'm not sure what your actual question is. Bawolff (talk) 18:33, 1 May 2022 (UTC)

Proposal

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! When a user is blocked the system writes "Blocked" in Special:ListUsers. I would suggest when someone is Partial blocked to write "Partial blocked". AlPaD (talk) 17:53, 1 May 2022 (UTC)

You should probably file this as an enhancement request in https://phabricator.wikimedia.org . This page is more for asking for help - the people who change the software don't necessarily read the support desk. Bawolff (talk) 18:32, 1 May 2022 (UTC)
Thank you! AlPaD (talk) 19:50, 1 May 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Intermittent 'internal server error'

I've just set up a new wiki and imported exactly one Wikipedia template/module combo (https://en.wikipedia.org/wiki/Template:Interlinear, using Scribunto, along with the necessary ), and I'm getting intermittent 'internal server error' messages on preview / save:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@mirja.conlang.org to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.


This error seems to be related to page content, in that if I delete most of the content of a page and then try to preview again, it'll work; but doing a/b testing with removing various bits of content gives no sensible trigger content - the last time I tried it, the error seemed to be triggered by a simple line of unformatted prose. A few minutes later exactly the same page content worked fine, and I saved it, at which point I ended up in a situation where trying to preview the unchanged page text triggered the error message! I set up a log file dump, but the log file is massive and I don't know where to look in it for anything related to my error.

Does anyone have any tips as to where to go to debug this, or a better means to find the problem than just adding a log file dump line to LocalSettings.php? 67.198.30.42 (talk) 21:47, 1 May 2022 (UTC)

(along with the necessary extra TemplateStyles extension*) 67.198.30.42 (talk) 21:48, 1 May 2022 (UTC)
What does your apache log file say?
> I set up a log file dump, but the log file is massive and I don't know where to look in it for anything related to my error.
I assume you mean mediawiki debug log file? For this type of error,that's probably not useful. I would reccomend looking at apache log first (as the error message is an apache error), and php log file second. Bawolff (talk) 21:53, 1 May 2022 (UTC)
Where can I find/make the Apache log? I don't see anything like that in my current directory, and a quick glance at the MediaWiki page on debugging doesn't show anything useful. 67.198.30.42 (talk) 21:59, 1 May 2022 (UTC)
Alright, after some searching, I found the log file; it seems like some of my page content is matching ModSecurity patterns and throwing false-positive security warnings?
[Sun May 01 15:48:19.189908 2022] [:error] [pid 211720:tid 3635522836224] [client 67.198.30.42:13934] [client 67.198.30.42] ModSecurity: Warning. Pattern match "\\\\b(?:if(?:/i)?(?: not)?(?: exist\\\\b| defined\\\\b| errorlevel\\\\b| cmdextversion\\\\b|(?: |\\\\().*(?:\\\\bgeq\\\\b|\\\\bequ\\\\b|\\\\bneq\\\\b|\\\\bleq\\\\b|\\\\bgtr\\\\b|\\\\blss\\\\b|==))|for(?:/[dflr].*)? %+[^ ]+ in\\\\(.*\\\\)\\\\s?do)" at ARGS:wpTextbox1. [file "/dh/apache2/template/etc/mod_sec3_CRS/REQUEST-932-APPLICATION-ATTACK-RCE.conf"] [line "412"] [id "932140"] [msg "Remote Command Execution: Windows FOR/IF Command Found"] [data "Matched Data: if theyre identical) or the insertion of an epenthetic vowel between them(if theyre different). however certain pairs of different consonants merge into a geminate when they come together. in the table below these otherwise unexpected mergers are given in bold.(expected geminates are non-bold and epenthetically separated pairs are indicated by --.) {| class=wikitable ! second phoneme \\xe2\\x86\\x92 !! rowspan=2|t !! rowspan=2|l !! rowspan=2|n !! rowspan=2|k |- ! first phoneme \\xe2\\x86\\x93 |- ..."] [severity "CRITICAL"] [ver "OWASP_CRS/3.3.2"] [tag "application-multi"] [t [hostname (deleted to let me post this)] [uri "/mirja-wiki/index.php"] [unique_id "Ym8OMwVs6zcJi7b7GJ57XgAAAAs"], referer: (deleted to let me post this)/index.php?title=Phonology&action=edit&section=1
What in the world am I supposed to do to make this not happen? 67.198.30.42 (talk) 22:54, 1 May 2022 (UTC)
Ideally disable mod_security in your apache config. It causes all sorts of problems like this for very questionable benefits. I think in this case it doesn't like you using the word "if" followed by some other words. Bawolff (talk) 23:58, 1 May 2022 (UTC)
I'll go ahead and do that, but I'm definitely curious as to what the downsides of doing that might be! I'm not super well-informed about security things, so if I'm intentionally disabling a security feature it'd be nice to know what that opens me to. 67.198.30.42 (talk) 00:12, 2 May 2022 (UTC)
Mod_security is a WAF, it tries to block things that look "evil".
Unfortunately its not a very good one. Most of its rules have a lot of false positives. Additionally, most of them aren't broad enough to prevent someone actually evil from doing evil things. Bawolff (talk) 14:01, 2 May 2022 (UTC)

Is there any plan to make the main namespace explicit?

Category:X indicates an explicit namespace.

Is there any plan to make the main namespace also explicit?

As with Main:Y?

The "problem to solve" here is that for me and maybe for some others it will just be more convenient, especially when working with robots.txt

For indication Project:Support desk/Flow/2022/05#h-Tell_search_engines_not_to_crawl_anything_which_isn't_part_of_the_main_namespace-2022-05-01T15:59:00.000Z 79.179.161.198 (talk) 00:13, 2 May 2022 (UTC)

No, it's not possible.
I don't see why it would be more convenient for robots.txt if you want to prevent crawlers from indexing other namespaces, since in robots.txt, disallow takes precedence over allow, which makes no difference when the main namespace is prefixed or not, as you'll have to explicitly add disallow to all other namespaces. Ciencia Al Poder (talk) 07:55, 2 May 2022 (UTC)
@Ciencia Al Poder
disallow: /index.php?
disallow: /index.php/*: # Block all namespaces with exceptions possible in advance
allow: /index.php/Main: # Exception for Main:
allow: /index.php/ראשי:  # Exception for Main:
allow: /index.php/Category: # Exception for Category:
allow: /index.php/קטגוריה: # Exception for Category:
Would have been more clear to me than:
disallow: /index.php?
disallow: /index.php/*: # Block all namespaces with exceptions possible in advance
allow: /index.php/Category: # Exception for Category:
allow: /index.php/קטגוריה: # Exception for Category:
Of course that's just me. 79.179.161.198 (talk) 11:44, 2 May 2022 (UTC)
The allow: rule is not standard, robots will ignore it Ciencia Al Poder (talk) 12:58, 2 May 2022 (UTC)
Google supports allow https://developers.google.com/search/docs/advanced/robots/robots_txt . Its not in the original robots.txt standard but most crawlers support a superset of features. Bawolff (talk) 13:59, 2 May 2022 (UTC)

Unable to log into MediaWiki on Synology

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


I successfully installed Synology's version (1.35) of MediaWiki on my NAS but when I try to log in I get a cryptic message (in a pink square) saying there were problems... No hints as to what could be the reason.


Does this possibly ring a bell for anyone?


Thanks in advance,


//Ola Ola Harstrom (talk) 11:39, 2 May 2022 (UTC)

Sorry (new to this...). Versions of software used follow below:
MediaWiki: 1.35.3
PHP: 7.3.24 (fpm-fcgi)
MariaDB: 10.3.29-MariaDB
ICU: 56.1
Lua: 5.1.5 Ola Harstrom (talk) 12:31, 2 May 2022 (UTC)
What is the exact text of the message. Also please set $wgShowExceptionDetails=true; in LocalSettings.php to enable detailed error messages. Bawolff (talk) 13:53, 2 May 2022 (UTC)
I get a pink square with the following 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."
Attempting to create a new user results in the same message. Ola Harstrom (talk) 20:05, 9 May 2022 (UTC)
Manual:How to debug/Login problems Malyacko (talk) 20:21, 9 May 2022 (UTC)
From elsewhere I got the tip to add $wgSessionCacheType = CACHE_DB; to LocalSettings.php which worked.
Thank you again for your time.
//Ola Ola Harstrom (talk) 11:45, 10 May 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Please allow a user to edit threads here up to 5 minutes

Based both on an IP address and a self-destruct browser cookie (or some self-destruct cookie-alternative) of up to 5 minutes.


This is an important accessibility issue which this community should have. 79.179.161.198 (talk) 11:55, 2 May 2022 (UTC)

A third condition to further prevent abuse (if an IP address, a cookie or alternative and a 5-minutes time aren't enough) is to allow it per post, only for the recently published post and (a new post immediately destroys the self-destructing cookie or alternative if its still has time). 79.179.161.198 (talk) 11:56, 2 May 2022 (UTC)
Of the previous post. 79.179.161.198 (talk) 12:16, 2 May 2022 (UTC)
Create an account. It's free and easy, and allows you to edit your own posts. Ciencia Al Poder (talk) 13:05, 2 May 2022 (UTC)
@Ciencia Al Poder
By ideology I avoid creating accounts to websites, I have very little website accounts and too many already.
Furthermore, I tend to clear cache often for mind clarity, moving along from things of the past.
Some people like me also deserve editing, but it's not just me, it's people who come here in general asking questions, it's for the community's sake, I'd say. 79.179.161.198 (talk) 14:07, 2 May 2022 (UTC)
You can Bugreport it. Beware that to report things in phabricator you'll need an account :) Ciencia Al Poder (talk) 14:14, 2 May 2022 (UTC)
I'm pretty sure you're the only person who has ever had this issue. I think its very unlikely we'll change the behaviour.
After all, if someone is ideologically opposed to user accounts, why would they want us to secretly create a temporary account for them behind the scenes? The way it is currently, you can choose whether or not you want an account, and we respect your wishes by not maintaining an account session for you if you don't want it. Bawolff (talk) 17:08, 2 May 2022 (UTC)

Facing issue in Building VPP

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 Team,

I am trying for building vpp in a vm.

Using ubuntu18.04 machine and cloned the vpp code from the below github page

"https://github.com/FDio/vpp/tree/stable/2106"

But after trying sudo make install-dep seeing the below errors

"E: Unable to locate package enchant-2

E: Unable to locate package libffi7

Makefile:312: recipe for target 'install-dep' failed

make: *** [install-dep] Error 100"

On trying with ./build-root/vagrant/build.sh getting the below errors:

"@@@@ Configuring vpp in /home/ubuntu/vpp/build-root/build-vpp-native/vpp @@@@

-- The C compiler identification is GNU 9.4.0

-- Detecting C compiler ABI info

-- Detecting C compiler ABI info - done

-- Check for working C compiler: /usr/bin/gcc - skipped

-- Detecting C compile features

-- Detecting C compile features - done

-- Performing Test compiler_flag_march_haswell

-- Performing Test compiler_flag_march_haswell - Success

-- Performing Test compiler_flag_mtune_haswell

-- Performing Test compiler_flag_mtune_haswell - Success

-- Performing Test compiler_flag_march_tremont

-- Performing Test compiler_flag_march_tremont - Success

-- Performing Test compiler_flag_mtune_tremont

-- Performing Test compiler_flag_mtune_tremont - Success

-- Performing Test compiler_flag_march_skylake_avx512

-- Performing Test compiler_flag_march_skylake_avx512 - Success

-- Performing Test compiler_flag_mtune_skylake_avx512

-- Performing Test compiler_flag_mtune_skylake_avx512 - Success

-- Performing Test compiler_flag_mprefer_vector_width_256

-- Performing Test compiler_flag_mprefer_vector_width_256 - Success

-- Performing Test compiler_flag_march_icelake_client

-- Performing Test compiler_flag_march_icelake_client - Success

-- Performing Test compiler_flag_mtune_icelake_client

-- Performing Test compiler_flag_mtune_icelake_client - Success

-- Performing Test compiler_flag_mprefer_vector_width_512

-- Performing Test compiler_flag_mprefer_vector_width_512 - Success

-- Looking for ccache

-- Looking for ccache - not found

fatal: unsafe repository ('/home/ubuntu/vpp' is owned by someone else)

To add an exception for this directory, call:

git config --global --add safe.directory /home/ubuntu/vpp

CMake Error at CMakeLists.txt:40 (string):

  string sub-command REPLACE requires at least four arguments.

-- Performing Test compiler_flag_no_address_of_packed_member

-- Performing Test compiler_flag_no_address_of_packed_member - Success

-- Performing Test compiler_flag_no_stringop_overflow

-- Performing Test compiler_flag_no_stringop_overflow - Success

-- Looking for pthread.h

-- Looking for pthread.h - found

-- Performing Test CMAKE_HAVE_LIBC_PTHREAD

-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed

-- Check if compiler accepts -pthread

-- Check if compiler accepts -pthread - yes

-- Found Threads: TRUE  

-- Performing Test HAVE_FCNTL64

-- Performing Test HAVE_FCNTL64 - Failed

-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.1.1")  

-- The ASM compiler identification is GNU

-- Found assembler: /usr/bin/gcc

-- Looking for libuuid

-- Found uuid in /usr/include

-- subunit library not found - vapi tests disabled

-- Found Python3: /usr/bin/python3.6 (found version "3.6.9") found components: Interpreter

-- libbpf headers not found - af_xdp plugin disabled

-- Intel IPSecMB found: /home/ubuntu/vpp/build-root/install-vpp-native/external/include

-- dpdk plugin needs libdpdk.a library - found at /home/ubuntu/vpp/build-root/install-vpp-native/external/lib/libdpdk.a

-- Found DPDK 22.3.0 in /home/ubuntu/vpp/build-root/install-vpp-native/external/include

-- -- numa library not found - dpdk plugin disabled

-- -- libnl3 headers not found - linux-cp plugin disabled

-- Found quicly 0.1.3-vpp in /home/ubuntu/vpp/build-root/install-vpp-native/external/include

-- rdma plugin needs libibverbs.a library - found at /home/ubuntu/vpp/build-root/install-vpp-native/external/lib/libibverbs.a

-- rdma plugin needs librdma_util.a library - found at /home/ubuntu/vpp/build-root/install-vpp-native/external/lib/librdma_util.a

-- rdma plugin needs libmlx5.a library - found at /home/ubuntu/vpp/build-root/install-vpp-native/external/lib/libmlx5.a

-- Performing Test IBVERBS_COMPILES_CHECK

-- Performing Test IBVERBS_COMPILES_CHECK - Success

-- -- libdaq headers not found - snort3 DAQ disabled

-- -- libsrtp2.a library not found - srtp plugin disabled

-- -- mbedtls headers not found - tlsmbedtls plugin disabled

-- Looking for SSL_set_async_callback

-- Looking for SSL_set_async_callback - not found

-- Found picotls in /home/ubuntu/vpp/build-root/install-vpp-native/external/include and /home/ubuntu/vpp/build-root/install-vpp-native/external/lib/libpicotls-core.a

-- Configuration:

VPP version         :

VPP library version : NOTFOUND

GIT toplevel dir    :

Build type          : release

C compiler          : /usr/bin/gcc (GNU 9.4.0)

C flags             :

Linker flags (apps) :

Linker flags (libs) :

Host processor      : x86_64

Target processor    : x86_64

Prefix path         : /opt/vpp/external/x86_64 /home/ubuntu/vpp/build-root/install-vpp-native/external

Install prefix      : /home/ubuntu/vpp/build-root/install-vpp-native/vpp

Library dir         : lib/x86_64-linux-gnu

Multiarch variants  : hsw skx icl

-- Configuring incomplete, errors occurred!

See also "/home/ubuntu/vpp/build-root/build-vpp-native/vpp/CMakeFiles/CMakeOutput.log".

See also "/home/ubuntu/vpp/build-root/build-vpp-native/vpp/CMakeFiles/CMakeError.log".

Makefile:644: recipe for target 'vpp-configure' failed

make[1]: *** [vpp-configure] Error 1

make[1]: Leaving directory '/home/ubuntu/vpp/build-root'

Makefile:592: recipe for target 'pkg-deb' failed

make: *** [pkg-deb] Error 2

ubuntu@upf-vpp:~/vpp$"


Can anyone help me in solving this issue?

Thanks and Regards,

Sindhu. 103.126.204.136 (talk) 13:03, 2 May 2022 (UTC)

That looks unrelated to MediaWiki Ciencia Al Poder (talk) 13:20, 2 May 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Updating 1.35-1.37 PostgreSQL: index "md_module_skin" does not exist

Updating from 1.35 to 1.37 on FreeBSD/PostgreSQL 13.5, PHP 8.0 the upgrade script, both manual and web, are barfing with

...index user_properties_pkey already set on user_properties table.
Changing column type of 'log_search.ls_value' from 'varchar' to 'VARCHAR(255)'
...column 'content.content_id' is already of type 'BIGINT'
...column 'l10n_cache.lc_value' is already of type 'TEXT'
Changing column type of 'l10n_cache.lc_key' from 'varchar' to 'VARCHAR(255)'
...index l10n_cache_pkey already set on l10n_cache table.
Adding index module_deps_pkey to table module_deps ...Wikimedia\Rdbms\DBQueryError from line 1809 of /usr/local/www/mediawiki/includes/libs/rdbms/database/Database.php: Error 42704: ERROR:  index "md_module_skin" does not exist

Function: Wikimedia\Rdbms\Database::sourceFile( /usr/local/www/mediawiki/maintenance/postgres/archives/patch-module_deps-pk.sql )
Query: DROP INDEX md_module_skin


#0 /usr/local/www/mediawiki/includes/libs/rdbms/database/Database.php(1793): Wikimedia\Rdbms\Database->getQueryException('ERROR:  index "...', '42704', 'DROP INDEX md_m...', 'Wikimedia\\Rdbms...')
#1 /usr/local/www/mediawiki/includes/libs/rdbms/database/Database.php(1768): Wikimedia\Rdbms\Database->getQueryExceptionAndLog('ERROR:  index "...', '42704', 'DROP INDEX md_m...', 'Wikimedia\\Rdbms...')
#2 /usr/local/www/mediawiki/includes/libs/rdbms/database/Database.php(1327): Wikimedia\Rdbms\Database->reportQueryError('ERROR:  index "...', '42704', 'DROP INDEX md_m...', 'Wikimedia\\Rdbms...', false)
#3 /usr/local/www/mediawiki/includes/libs/rdbms/database/Database.php(5407): Wikimedia\Rdbms\Database->query('DROP INDEX md_m...', 'Wikimedia\\Rdbms...')
#4 /usr/local/www/mediawiki/includes/libs/rdbms/database/Database.php(5340): Wikimedia\Rdbms\Database->sourceStream(Resource id #1333, NULL, NULL, 'Wikimedia\\Rdbms...', NULL)
#5 /usr/local/www/mediawiki/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->sourceFile('/usr/local/www/...')
#6 /usr/local/www/mediawiki/includes/libs/rdbms/database/MaintainableDBConnRef.php(35): Wikimedia\Rdbms\DBConnRef->__call('sourceFile', Array)
#7 /usr/local/www/mediawiki/includes/installer/DatabaseUpdater.php(704): Wikimedia\Rdbms\MaintainableDBConnRef->sourceFile('/usr/local/www/...')
#8 /usr/local/www/mediawiki/includes/installer/DatabaseUpdater.php(805): DatabaseUpdater->applyPatch('/usr/local/www/...', false, 'Adding index mo...')
#9 /usr/local/www/mediawiki/includes/installer/DatabaseUpdater.php(533): DatabaseUpdater->addIndex('module_deps', 'module_deps_pke...', 'patch-module_de...')
#10 /usr/local/www/mediawiki/includes/installer/DatabaseUpdater.php(497): DatabaseUpdater->runUpdates(Array, false)
#11 /usr/local/www/mediawiki/maintenance/update.php(193): DatabaseUpdater->doUpdates(Array)
#12 /usr/local/www/mediawiki/maintenance/doMaintenance.php(108): UpdateMediaWiki->execute()
#13 /usr/local/www/mediawiki/maintenance/update.php(264): require_once('/usr/local/www/...')
#14 {main}

I find the error string in https://github.com/saltstack-formulas/mediawiki-formula/blob/master/mediawiki/mediawiki.sql which is an innodb call, and maybe isn't being called correctly in a postgreSQL install. DGessel (talk) 00:55, 3 May 2022 (UTC)

It appears the code in question triggering this was added in this commit to patch-module_deps-pk.sql https://github.com/wikimedia/mediawiki/blame/686abd50bf96cde41518db0fe17c156185acfca4/maintenance/postgres/archives/patch-module_deps-pk.sql
DROP INDEX md_module_skin;
ALTER TABLE module_deps
 ADD PRIMARY KEY (md_module, md_skin);
@Ladsgroup - any insight? Would a conditional check for the index exists before dropping it avoid the update fail? Can this drop index just be commented out as a quick fix? DGessel (talk) 11:15, 3 May 2022 (UTC)
For now, I'd just modify that file to remove that DROP INDEX statement, and it should be possible to complete the update process.
Then please file a ticket in Phabricator for the problem. —TheDJ (Not WMF) (talkcontribs) 11:31, 3 May 2022 (UTC)
@DGessel That's just a delete of this INDEX https://github.com/wikimedia/mediawiki/commit/5e69ad1aade1977d60e60de2f00e150223b50f60#diff-0cc829d85cfcaeec780e78ed97012034779b0ae049ab82742de25fe58abb927cL686TheDJ (Not WMF) (talkcontribs) 11:35, 3 May 2022 (UTC)
Yes, deleting the DROP INDEX md_module_skin; quickly got past that error, but got stuck a little later at
Creating index 'rev_page_timestamp' on table 'revision' (rev_page,rev_timestamp)
Changing 'user.user_touched' to not allow NULLs
Changing 'user.user_token' to not allow NULLs
Wikimedia\Rdbms\DBQueryError from line 1809 of /usr/local/www/mediawiki/includes/libs/rdbms/database/Database.php: Error 23502: ERROR:  column "user_token" of relation "user" contains null values
Function: PostgresUpdater::changeNullableField
Query: ALTER TABLE "user" ALTER user_token SET NOT NULL
#0 /usr/local/www/mediawiki/includes/libs/rdbms/database/Database.php(1793): Wikimedia\Rdbms\Database->getQueryException('ERROR:  column ...', '23502', 'ALTER TABLE "us...', 'PostgresUpdater...')
#1 /usr/local/www/mediawiki/includes/libs/rdbms/database/Database.php(1768): Wikimedia\Rdbms\Database->getQueryExceptionAndLog('ERROR:  column ...', '23502', 'ALTER TABLE "us...', 'PostgresUpdater...')
#2 /usr/local/www/mediawiki/includes/libs/rdbms/database/Database.php(1327): Wikimedia\Rdbms\Database->reportQueryError('ERROR:  column ...', '23502', 'ALTER TABLE "us...', 'PostgresUpdater...', false)
#3 /usr/local/www/mediawiki/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->query('ALTER TABLE "us...', 'PostgresUpdater...', 0)
#4 /usr/local/www/mediawiki/includes/libs/rdbms/database/DBConnRef.php(297): Wikimedia\Rdbms\DBConnRef->__call('query', Array)
#5 /usr/local/www/mediawiki/includes/installer/PostgresUpdater.php(976): Wikimedia\Rdbms\DBConnRef->query('ALTER TABLE "us...', 'PostgresUpdater...')
#6 /usr/local/www/mediawiki/includes/installer/DatabaseUpdater.php(533): PostgresUpdater->changeNullableField('"user"', 'user_token', 'NOT NULL', true)
#7 /usr/local/www/mediawiki/includes/installer/DatabaseUpdater.php(497): DatabaseUpdater->runUpdates(Array, false)
#8 /usr/local/www/mediawiki/maintenance/update.php(193): DatabaseUpdater->doUpdates(Array)
#9 /usr/local/www/mediawiki/maintenance/doMaintenance.php(108): UpdateMediaWiki->execute()
#10 /usr/local/www/mediawiki/maintenance/update.php(264): require_once('/usr/local/www/...')
#11 {main}
This appears to come from the // 1.37 block of PostgresUpdator.php, line 615. I'm guessing I can manually remove null values from the column "user_token" of of the relation "user" - no? DGessel (talk) 17:10, 3 May 2022 (UTC)
Yes, deleting the default empty user with the null values using phpPgAdmin (after patching it for PHP 8.0) did the trick. Install complete. A few bugs with some of the plugins to deal with. DGessel (talk) 18:47, 3 May 2022 (UTC)

Customcssprotected and Customjsprotected permissions

There are some sites that I've come across that have the (customcssprotected) and (customjsprotected) permissions. However these permissions don't have their own permission summaries. From what I've researched, they are similar to the (editusercss) and (edituserjs) permissions. But what's the difference? ― C.Syde (talk | contribs) 03:33, 3 May 2022 (UTC)

Those are not permissions, those are the errors returned when you do NOT have the permissions. See also: https://gerrit.wikimedia.org/g/mediawiki/core/+/1ecbfab0c81a97cdfd87b800b1b9fe9236649ac9/includes/Permissions/PermissionManager.php#1331TheDJ (Not WMF) (talkcontribs) 11:22, 3 May 2022 (UTC)
There are a few sites that use them as actual permissions. But the permissions don't have descriptions. Here's one example. ― C.Syde (talk | contribs) 11:52, 3 May 2022 (UTC)
In that case I would ask fandom. —TheDJ (Not WMF) (talkcontribs) 12:36, 3 May 2022 (UTC)
The wiki in question is no longer active. And many of the users that used to administrate that wiki have moved to the forked version of that wiki. So I'm not sure whether it would accomplish anything. I've been trying to look for those said permissions on other sites, but now that I think of it, I'm not sure whether I've ever seen those permissions anywhere else. ― C.Syde (talk | contribs) 05:24, 4 May 2022 (UTC)
Wikis can add any custom permissions they want. If its a custom permission and not a builtin one then we wont know anything about it. Bawolff (talk) 15:30, 4 May 2022 (UTC)
True. I just mistakenly remembered them as being permissions that existed on multiple sites. But I guess Fandom is the only one that has them. ― C.Syde (talk | contribs) 22:29, 4 May 2022 (UTC)

getting the following error when trying to upgrade the DB Can't DROP INDEX `log_user_text_type_time

Error 1091: Can't DROP INDEX `log_user_text_type_time`; check that it exists (localhost)

Function: Wikimedia\Rdbms\Database::sourceFile( C:\inetpub\wwwroot\MediaWiki/maintenance/archives/patch-drop-logging-user-fields.sql ) Jjarrells69 (talk) 13:08, 3 May 2022 (UTC)

"Post a new question" in the sidebar. Malyacko (talk) 13:44, 3 May 2022 (UTC)
Try manually applying the db changes from that file. This error can happen if that file's changes are half-applied. Bawolff (talk) 15:31, 4 May 2022 (UTC)

Book Creator

I am making a book on book creator, and would like to do stop-motion. However, I cannot figure out how to duplicate a page. I tried the drop-down list, but no luck. Google doesn't know either. Can someone help? 2601:240:4880:8430:F4AD:77A9:125:D3 (talk) 20:54, 3 May 2022 (UTC)

Hi, please see "Post a new question" in the sidebar. I guess "stop motion" is out of scope for a book. Malyacko (talk) 08:39, 4 May 2022 (UTC)

RSync Alarm wikipedia requests

Hey it seems the rsync is alarm if active at https://grafana.wikimedia.org/alerting/list and we are not getting success in all of our requests, who can we reach out to about fixing this? 99.102.84.25 (talk) 00:37, 4 May 2022 (UTC)

What is your actual concern?
That page is not really meant for public consumption. Bawolff (talk) 05:03, 4 May 2022 (UTC)
We are starting to see a large increase in the number of our requests to Wikipedia API timing out starting as of yesterday 99.102.84.25 (talk) 10:58, 4 May 2022 (UTC)
It seems to align with when the two rsync alarms began to go into alarm state 99.102.84.25 (talk) 10:59, 4 May 2022 (UTC)
Are you following API:Etiquette? Ciencia Al Poder (talk) 11:35, 4 May 2022 (UTC)
Also, what's your user agent used for your requests? Malyacko (talk) 12:28, 4 May 2022 (UTC)
It is very unlikely that the rsync alarm has anything to do with that. Bawolff (talk) 15:28, 4 May 2022 (UTC)
Is there any other change were going online yesterday that might possibly causing issue? like overall service connection issue? 75.172.125.42 (talk) 20:06, 4 May 2022 (UTC)
Impossible to say without answers to all the currently unanswered questions in this thread. Malyacko (talk) 21:11, 4 May 2022 (UTC)
We are still checking our user agent and check the API Etiquette. But our code base has been out for a few years and the http request is falling suddenly since May 03. Anything possible might be causing the issue? 75.172.125.42 (talk) 17:22, 5 May 2022 (UTC)
Yes, see above: Ignoring the rate limits, for example. Malyacko (talk) 17:42, 5 May 2022 (UTC)
Could you please add more information for the "Ignoring the rate limit"?
Btw after some investigation for the API Etiquette, here are some result:
  1. We usually just query 2 articles for the in the loop and the title is not piped, one of the title could be some transformation with removal the spaces.
  2. We do not continue send request for the result we get from another request, thus we do not have the generator thing in our use case.
  3. We still investigating around the gzip. Is there anything happened recently with gzip request? Like that become mandatory?
And we are only seeing the issue partially, not every request we make is having issue. 75.172.125.42 (talk) 18:51, 5 May 2022 (UTC)
Gzip is not mandatory.
Which wiki are the requests being made to? What type of api requests (do you have an example)? What is the timestamp in utc when you started noticing the issue? Are you logged in (if so what username makes request? If not, what IP?) What precisely do you mean by "timeout" (are you getting an http response that is an error,if so what error, is your connection just not connecting? Do you not just not recieve an http response after some time (how long), something else? Bawolff (talk) 05:36, 6 May 2022 (UTC)
There was database maintenance around this time. While it wasn't supposed to affect anything, there was some reports that it was causing temporary slowness. It may be related to your issue. Bawolff (talk) 15:06, 6 May 2022 (UTC)
Which wiki are the requests being made to?
What type of api requests (do you have an example)?
It is a Get request send to en.wikipedia.org/w/api.php
What is the timestamp in utc when you started noticing the issue?
Between 05/03/2022 9am to 10am UTC
Are you logged in (if so what username makes request? If not, what IP?)
No login with username, trying to get the ip.
What precisely do you mean by "timeout" (are you getting an http response that is an error,if so what error, is your connection just not connecting?
Sometimes for some queries the http request is not succeeded, no wiki response returned, with request aborted exception. Continue checking the specific http code.
Do you not just not recieve an http response after some time (how long), something else?
No response  for 3s in US 97.113.61.16 (talk) 22:32, 9 May 2022 (UTC)
Btw is the database maintenance still going on? We still seeing the issue on our side. 97.113.61.16 (talk) 01:10, 11 May 2022 (UTC)
No.
Also, no response for 3 seconds sounds more like you should just increase your timeouts. A problem on wmf end would look more like getting a 503 error. Most api endpoints in normal times should respond within 3 seconds but that is not true of all of them. Bawolff (talk) 01:23, 11 May 2022 (UTC)
Actually we have a retry. The first call is 3s whlle the second call is 5s.
For the user agent we found mostly they are "Java/1.8.0_211-ea", and several of them are "Java/phoneme_advanced-Core-1.3-b16 sjmc-b111". 97.113.61.16 (talk) 21:38, 11 May 2022 (UTC)
And with the 5 s retry we are still seeing failure. 97.113.61.16 (talk) 21:58, 11 May 2022 (UTC)
> For the user agent we found mostly they are "Java/1.8.0_211-ea", and several of them are "Java/phoneme_advanced-Core-1.3-b16 sjmc-b111".
Per WMF's user agent policy, this user agent isn't allowed and could potentially be blocked (you are probably not blocked, as you wouldget an error message). Your user agent must have a contact email adress in it and should have a descriptive name of your tool.
Anyways, i would suggest a timeout of 60 seconds. Bawolff (talk) 00:51, 12 May 2022 (UTC)
Yes we didn't see it completely blocked. Is this block up recently? Could you provide the WMF policy link to it or any related doc to it if it is possible? Could you also provide some example for the user agent that is expected?
Meanwhile we will look into the timeout change. 97.113.61.16 (talk) 18:01, 12 May 2022 (UTC)
Your not blocked (you would get an error message if you were). The WMF policy is just that that user agent can be blocked arbitrarily. See https://meta.wikimedia.org/wiki/User-Agent_policy Bawolff (talk) 18:05, 12 May 2022 (UTC)
Ah ok, that makes sense. The strange thing about this issue is that we have not made any changes to our client code that is making these requests in several weeks and we have not seen any of these failures before and then all of a sudden on May 3, we see this immediate spike in timeout failures on up to 10% of our requests and it has continued at this rate since then.   67.185.173.77 (talk) 20:13, 12 May 2022 (UTC)
Hi, after more investigation, we got the http exception: Too many requests - for unthrottling, contact noc@wikimedia.org to discuss a less disruptive approach. And the status code is 429. And our current fix is to replace our user agent ("Java/1.8.0_211-ea", and  "Java/phoneme_advanced-Core-1.3-b16 sjmc-b111") with another one ("Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US) AppleWebKit/533.3 (KHTML, like Gecko) Safari/533.3") then we stop receiving the throttle messages. And is happening only when POST request for parse the content.
Was there anything could happen on May 03 and caused the throttle on these user agents (or a specific set of user agents) suddenly? What could be a safe user agent we could use for future? Should we exactly follow the user agent policy you posted above? Is there any email list(noc@wikimedia.org) we could join or any metrics we could follow incase this happen again in the future? 97.113.61.16 (talk) 17:00, 13 May 2022 (UTC)
Pretty much what we said already about API:Etiquette. Ciencia Al Poder (talk) 19:15, 13 May 2022 (UTC)
You are being blocked for not following the rules, follow the rules that were linked to you and you wont be blocked.
> "Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US) AppleWebKit/533.3 (KHTML, like Gecko) Safari/533.3") 
Using this user agent is not allowed, and makes it less likely for you to be unblocked as explained in the pages you were linked, because unlike the java user agent which looks like you were accidentally breaking the rules, the browser user agent makes it look intentional. Bawolff (talk) 21:04, 13 May 2022 (UTC)
I'm a bit puzzled by questions like "Should we exactly follow the user agent policy you posted above?" No because you are also free to ignore the rules and get blocked instead? :) Malyacko (talk) 22:13, 13 May 2022 (UTC)
We are from Kindle device and the request we send out that have issues are from Kindle device. While we doing some other investigation, is there a good/ safe user agent we could use?
And for the current one we are using,
> "Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US) AppleWebKit/533.3 (KHTML, like Gecko) Safari/533.3")
Do you know how much time we will have before this one get blocked?
Do we get any notification before we get blocked?
And is there anything happened on May 03 that could cause this issue? As we have been using this one for years and we never seen this issue before. 97.113.61.16 (talk) 22:18, 13 May 2022 (UTC)
> is there a good/ safe user agent we could use?
Any specific one. See https://meta.wikimedia.org/wiki/User-Agent_policy
> Do you know how much time we will have before this one get blocked?
No, you should change it now to follow the rules.
> Do we get any notification before we get blocked?
No. At any time you can avoid getting blocked by following the rules.
> And is there anything happened on May 03 that could cause this issue?
Someone probably looked at logs and then took action. Malyacko (talk) 22:41, 13 May 2022 (UTC)

Code for - Template:Round corners

Really sorry for the entry level question.

I am trying to use the following template. It is perfect for a specific need that I have.

Template:Round corners

Sadly though, I am unable to see underlying code so that I can copy paste it into my site.

Wondering if someone can explain how I get to see code on specific templates?

Especially the one above.

Thanks in advance. MarkRawsthorne (talk) 01:47, 4 May 2022 (UTC)

You press the edit button.
The code is just border-radius:1em; box-shadow:0.1em 0.1em 0.5em rgba(0,0,0,0.75);
See https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius and https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow for how it works Bawolff (talk) 05:02, 4 May 2022 (UTC)
Thanks for the above, super helpful
Really appreciate everything you do for the community
Thank you MarkRawsthorne (talk) 08:39, 4 May 2022 (UTC)

Old User New Problem

Hello guys!

Hope someone can assist me and my students' website that uses Mediawiki.


I can no longer log in to my Mediawiki website, the pages are all messed up and no one can post anything anymore.


A while back I was hacked and the original site went down. I still have that backed up somewhere, but I went to webarchive and got my content from last October and used a back up version as a clone to get it up and running again.


This clone started acting up a few days after I set it up.


The website is at goodtoknow.com


Any help would be appreciated.


Best,

Steve Salowsky 98.113.182.154 (talk) 03:30, 4 May 2022 (UTC)

Hi, what is your question? Please also see "Post a new question" in the sidebar. Malyacko (talk) 08:38, 4 May 2022 (UTC)

Page is redirecting to local server name

Hello,

as newbee i updated my MediaWiki package to version 1.35.5-1050 on my Synology NAS DSM 7.

Since this update, I try to open one of my Wikipages. But choosing this page it links to my local server page, which is the IP Adress of my NAS (localhost).


Where can I find the data content of this wikipage in order to copy and past the content manually?


As i am a Newbee I did not backup anything yet.


Thanks for any support.


Gunnar Moveitrocks (talk) 09:29, 4 May 2022 (UTC)

To fix this you should adjust $wgServer in LocalSettings.php
Generally i think of you append ?action=edit (or &action=edit) it will surpress the redirect. Bawolff (talk) 15:26, 4 May 2022 (UTC)

Question about the Abusefilter-log-private permission

I'm trying to test the differences between trying to access log entries of private filters on a site where I have the (abusefilter-log-private) permission and trying to access log entries of private filters on a site where I don't have the (abusefilter-log-private) permission.

However I can't seem to find anything in the log entries on the site where I do have the (abusefilter-log-private) permission, that I am unable to find in the log entries on the site where I don't have the (abusefilter-log-private) permission.

Apparently users that try to view log entries of abuse filters marked as private without the (abusefilter-log-private) permission typically see this message:

One or more of the filter IDs you specified are private. Because you are not allowed to view the details of private filters, these filters have not been searched for.

But I'm not seeing it. Could it be that one of the other abuse filter related permissions is automatically giving me private filter detail access?

Here is a list of all the abuse filter related permissions that my account has on the site where I don't have the (abusefilter-log-private) permission:

  • (abusefilter-log)
  • (abusefilter-log-detail) = doesn't work unless the user has (abusefilter-log)
  • (abusefilter-modify)
  • (abusefilter-revert) = probably doesn't work unless the user has (abusefilter-modify)
  • (abusefilter-view)

And a list of all the abuse filter related permissions that my account has on the site where I do have the (abusefilter-log-private) permission:

  • (abusefilter-log)
  • (abusefilter-log-detail) = doesn't work unless the user has (abusefilter-log)
  • (abusefilter-log-private) = doesn't work unless the user has (abusefilter-log)
  • (abusefilter-modify)
  • (abusefilter-modify-restricted) = probably doesn't work unless the user has (abusefilter-modify); doesn't work unless the user has (abusefilter-view)
  • (abusefilter-revert) = probably doesn't work unless the user has (abusefilter-modify)
  • (abusefilter-view)
  • (abusefilter-view-private) = not needed if the user already has (abusefilter-modify); doesn't work unless the user has (abusefilter-view)

Here's a list of all the other abuse filter related permissions for completeness:

  • (abusefilter-hidden-log) = doesn't work unless the user has (abusefilter-log)
  • (abusefilter-hide-log) = doesn't work unless the user has (abusefilter-log)
  • (abusefilter-modify-global) = probably doesn't work unless the user has (abusefilter-modify); doesn't work unless the user has (abusefilter-view)
  • (abusefilter-privatedetails) = doesn't work unless the user has (abusefilter-log)
  • (abusefilter-privatedetails-log)C.Syde (talk | contribs) 09:36, 4 May 2022 (UTC)
According to this information that I was shown, the (abusefilter-log-private) permission isn't needed if the user already has (abusefilter-modify) and/or (abusefilter-view-private)C.Syde (talk | contribs) 12:53, 5 May 2022 (UTC)

https and pictures

Seit ich meine Seite auf https umgestellt habe, werden meine Bilder nicht mehr angezeigt!

Since i have my webspace in https, my pictures are not visible! What can i do? Beulemann (talk) 09:37, 4 May 2022 (UTC)

You should serve your pictures from https as well Ciencia Al Poder (talk) 10:21, 4 May 2022 (UTC)
Wurde die $wgServer-Variable in der LocalSettings.php entsprechend angepasst? Osnard (talk) 10:54, 4 May 2022 (UTC)
wiki.mayenerjung.de Er erkennt das Zertifikat nicht. Obwohl https:// angezeigt wird.
Was hat diese Variable mit https zu tun?
Der Eintrag lautet:
## The protocol and server name to use in fully-qualified URLs
$wgServer = "http://wiki.mayenerjung.de"; Beulemann (talk) 11:56, 4 May 2022 (UTC)
Warum sagt die Variable http wenn die Seite https ist? Siehe zum Beispiel https://wiki.mayenerjung.de/images/thumb/7/76/Ernst_D_Adams.jpg/300px-Ernst_D_Adams.jpg - HTTP 500 error in der Fehlerkonsole des Browsers. Malyacko (talk) 12:23, 4 May 2022 (UTC)
Ich kann die Variable auf https ändern. Das ändert aber nichts am Problem! Er sagt ja irgenwie, er hat ein Problem mit den Bildern, dass diese nicht sicher seien und es deshalb einen gemischten Inhlat gibt! Beulemann (talk) 12:47, 4 May 2022 (UTC)
The "mixed content" problem is caused by the difference between http and https on the same page.
Once you've solved that, which seems done already, there's a second problem: Requesting an image through https returns an HTTP 500 server error.
You'll have to search in the apache logs what's causing this error. Ciencia Al Poder (talk) 13:23, 4 May 2022 (UTC)
It's on a webspace STRATO i can not see the apache log files Beulemann (talk) 17:55, 4 May 2022 (UTC)
You might want to set $wgUploadPath: $wgUploadPath = "/img_auth.php";. See also Manual:Image_authorization.
See: https://wiki.mayenerjung.de/img_auth.php/thumb/7/76/Ernst_D_Adams.jpg/300px-Ernst_D_Adams.jpg Osnard (talk) 19:34, 4 May 2022 (UTC)

Local wiki in xampp, MIME-Type error in Style Document

I have a local wiki on a windows xampp installation. The CSS-Style is missing since an update of Mediawiki and xampp. When inspecting the error in Firefox' Debug Console it says that there is a MIME-Type error in the Style Document and that it couldn't be loaded.


Investigating further, I came across the mention of a script path error in the LocalSettings.php, which was never touched (as far as I remember). Nethertheless here is the copy of the scriptpath and resourchpath variables:

$wgScriptPath = "";

## The protocol and server name to use in fully-qualified URLs

$wgServer = "http://localhost";

## The URL path to static resources (images, scripts, etc.)

$wgResourceBasePath = $wgScriptPath;


DocumentRoot and htdocs are set right, as I can fully access the wiki, just without any CSS.


As said: This is a local wiki installation with no access to the internet, so even "unsafe" solutions are welcome. 91.42.88.134 (talk) 17:32, 4 May 2022 (UTC)

Can you load the css page in question in your browser? What is the contents - is it actual css but with the wrong mime type, an error page, or does it show up like an html page from your wiki? Bawolff (talk) 17:58, 4 May 2022 (UTC)
The Wiki is in full HTML Style glory. No further error what so ever. I tried everything form the php-Error Log in the LocalSettings to Syslog and only found per accident the MIME-Type error via F12 and debug console.
I haven't modified the vector.css, because I was fine with vanilla. 91.42.88.134 (talk) 18:16, 4 May 2022 (UTC)
Oh, well... apparently, the Vector.css is empty... 91.42.88.134 (talk) 18:24, 4 May 2022 (UTC)
we need to know the contents of what the webserver returns for the load.php url with the wron mime type to know what is causing the problem. Bawolff (talk) 22:04, 4 May 2022 (UTC)
Unfortunatly, this is everything I get:
"The resource of "load.php?lang=de&modules=startup&only=scripts&raw=1&skin=vector" was blocked because of a MIME type conflict ("text/html") (X-Content-Type-Options: nosniff).
Loading failed for the <script> with the source "localhost/load.php?lang=de&modules=startup&only=scripts&raw=1&skin=vector".
The resource of "localhost/load.php?lang=de&modules=skins.vector.styles.legacy&only=styles&skin=vector" was blocked because of a MIME type conflict ("text/html") (X-Content-Type-Options: nosniff).
The resource of "localhost/load.php?lang=de&modules=site.styles&only=styles&skin=vector" was blocked because of a MIME type conflict ("text/html") (X-Content-Type-Options: nosniff)."
And in the Debugger for index.php: "Error: Incorrect contents fetched, please reload."
When I manually load the load.php, the Mainpage appears - again without CSS, but content in the index.php and a loading error in line 11: "<script async="" src="/load.php?lang=de&amp;amp;modules=startup&amp;amp;only=scripts&amp;amp;raw=1&amp;amp;skin=vector"></script>" 91.42.69.245 (talk) 19:13, 5 May 2022 (UTC)
> When I manually load the load.php, the Mainpage appears
Ok, this usually means an apache misconfiguration (if you are using apache). What is the contents of your .htaccess file? Bawolff (talk) 21:21, 5 May 2022 (UTC)
After searching the htdocs Directory of my xampp and mediawiki installation, it appears, that there is no .htaccess file present.
But it worked before the last upgrade. 80.128.159.197 (talk) 18:49, 7 May 2022 (UTC)
*But somehow it worked... 80.128.159.197 (talk) 18:53, 7 May 2022 (UTC)
Ok, I looked into the documentation of Apache and they say, that the htaccess is no longer necessary, if the httpd.conf is configured right.
So here is the content of httpd.conf:
<Directory />
   AllowOverride none
   Require all denied
</Directory>
DocumentRoot "G:/Program Files/xampp/htdocs"
<Directory "G:/Local Projects/ProjectWiki">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
Everything else in the httpd.conf is vanilla 91.42.65.190 (talk) 21:22, 10 May 2022 (UTC)
You presumably have more than that given that G:/Local Projects/ProjectWiki is not inside your document root. Bawolff (talk) 15:32, 1 July 2022 (UTC)
I shelfed the problem for a while and finally found the solution by accident: In the attempt to create a network access to the my local wiki, I accidentally wrote "DocumentRoot: [path]\index.php" in the vhost.conf. A big no-no.
The apache server can not open a file for DocumentRoot and never fully loaded the wiki resources - which resulted in my problems.
Hopefully this odysee can help others. 91.42.72.51 (talk) 20:58, 8 October 2022 (UTC)

save edit box size?

is there a way to save the size of the edit page box? i find i'm constantly extending the edit box size because it's too short, it would be nice not to have to do this every time i edit a page. 156.68.77.186 (talk) 18:36, 4 May 2022 (UTC)

Manual:CSS Malyacko (talk) 13:22, 5 May 2022 (UTC)

New Mediawiki install. Pages copied over with images directory, images not showing

Hi,


I have installed a new mediawiki for a small team that needs pages kept private. When I copy a pages source while having the same images directory on the new server the pages look fine except for the images. Images will show as the size with a link that takes me to the upload special page. Is there any way to fix this so that the images which are still located in the copied images directory will show when simply coping the source of a page to the new wiki.


I have also tried exporting and importing the list of pages but doing so results in the error seen below:


Import failed: * Loss of session data. You might have been logged out. Please verify that you're still logged in and try again. If it still does not work, try logging out and logging back in, and check that your browser allows cookies from this site. * No interwiki prefix was supplied Wikianon444444 (talk) 19:45, 4 May 2022 (UTC)

See "Post a new question" in the sidebar. Malyacko (talk) 21:11, 4 May 2022 (UTC)
Try using manual:$wgForeignFileRepos Bawolff (talk) 22:05, 4 May 2022 (UTC)

Extension for Active users of last one year

Hi,

Is there any extension by which we get details of all active users of last one year same as we are getting in special pages active users for 1 month, I need to do for 1year pls suggest.? Pooja2425 (talk) 06:29, 5 May 2022 (UTC)

what's the standard way to make something centrally aligned?

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.


since <center> is obsolete, what should i use instead? RoyZuo (talk) 06:41, 5 May 2022 (UTC)

<div class="center" style="width:auto; margin-left:auto; margin-right:auto;">
See also w:en:Template:center for the documentation. IAmChaos (talk) 07:17, 5 May 2022 (UTC)
You could use "text-align: center". See https://www.w3schools.com/tags/tag_center.asp and https://www.w3schools.com/cssref/pr_text_text-align.asp Jonathan3 (talk) 22:51, 5 May 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Issue runing CleanupUsersWithNoId.php

When I updated from 1.35 to 1.37, I had an update issue with users and database errors.

I run the script cleanupUsersWithNoId.php but it has no effects.

Please advise on what to do since I have not found any solutions.


Thanks

Extended content
...collations up-to-date.

...index rc_name_type_patrolled_timestamp already set on recentchanges table.

...rev_page_id index not found on revision.

...pl_namespace, tl_namespace, il_to indices are already non-UNIQUE.

...have ct_id field in change_tag table.

...rc_ip in table recentchanges already modified by patch patch-rc_ip_modify.sql.

...have el_index_60 field in externallinks table.

...ug_user_group key doesn't exist.

...have ug_expiry field in user_groups table.

...img_media_type in table image already modified by patch patch-add-3d.sql.

...ip_changes table already exists.

...index PRIMARY already set on categorylinks table.

...index PRIMARY already set on templatelinks table.

...index PRIMARY already set on pagelinks table.

...index PRIMARY already set on text table.

...index PRIMARY already set on imagelinks table.

...index PRIMARY already set on iwlinks table.

...index PRIMARY already set on langlinks table.

...index PRIMARY already set on log_search table.

...index PRIMARY already set on module_deps table.

...index PRIMARY already set on objectcache table.

...index PRIMARY already set on querycache_info table.

...index PRIMARY already set on site_stats table.

...index PRIMARY already set on user_former_groups table.

...index PRIMARY already set on user_properties table.

...comment table already exists.

...revision_comment_temp table already exists.

...have ar_comment_id field in archive table.

...have fa_description_id field in filearchive table.

...img_description in table image already modified by patch patch-image-img_description-default.sql.

...have ipb_reason_id field in ipblocks table.

...have log_comment_id field in logging table.

...have oi_description_id field in oldimage table.

...have pt_reason_id field in protected_titles table.

...have rc_comment_id field in recentchanges table.

...have img_description_id field in image table.

...index PRIMARY already set on l10n_cache table.

...bot_passwords.bp_user is already unsigned int.

...change_tag.ct_log_id is already unsigned int.

...change_tag.ct_rev_id is already unsigned int.

...page_restrictions.pr_user is already unsigned int.

...user_newtalk.user_id is already unsigned int.

...user_properties.up_user is already unsigned int.

...change_tag.ct_rc_id is already unsigned int.

...slots table already exists.

...have slot_origin field in slots table.

...content table already exists.

...slot_roles table already exists.

...content_models table already exists.

...actor table already exists.

...revision_actor_temp table already exists.

...have ar_actor field in archive table.

...have ipb_by_actor field in ipblocks table.

...have img_actor field in image table.

...have oi_actor field in oldimage table.

...have fa_actor field in filearchive table.

...have rc_actor field in recentchanges table.

...have log_actor field in logging table.

Migrating actors to the 'actor' table, printing progress markers. For large

databases, you may want to hit Ctrl-C and do this manually with

maintenance/migrateActors.php.

Creating actor entries for all registered users

... 1 - 101

... 102 - 202

... 203 - 303

... 304 - 404

... 405 - 505

... 506 - 606

... 607 - 707

... 708 - 808

... 809 - 909

... 910 - 1010

... 1011 - 1111

... 1112 - 1212

... 1213 - 1313

... 1314 - 1414

... 1415 - 1515

... 1516 - 1616

... 1617 - 1717

... 1718 - 1818

... 1819 - 1919

... 1920 - 2020

... 2021 - 2121

... 2122 - 2222

... 2223 - 2323

... 2324 - 2424

... 2425 - 2525

... 2526 - 2626

... 2627 - 2727

... 2728 - 2828

... 2829 - 2929

... 2930 - 3030

... 3031 - 3131

... 3132 - 3232

... 3233 - 3333

... 3334 - 3434

... 3435 - 3535

... 3536 - 3636

... 3637 - 3737

... 3738 - 3838

... 3839 - 3939

... 3940 - 4040

... 4041 - 4141

... 4142 - 4242

... 4243 - 4343

... 4344 - 4444

... 4445 - 4545

... 4546 - 4646

... 4647 - 4747

... 4748 - 4848

... 4849 - 4949

... 4950 - 5050

... 5051 - 5151

... 5152 - 5252

... 5253 - 5353

... 5354 - 5454

... 5455 - 5555

... 5556 - 5656

... 5657 - 5757

... 5758 - 5858

... 5859 - 5959

... 5960 - 6060

... 6061 - 6161

... 6162 - 6262

... 6263 - 6363

... 6364 - 6464

... 6465 - 6565

... 6566 - 6666

... 6667 - 6767

... 6768 - 6868

... 6869 - 6969

... 6970 - 7070

... 7071 - 7171

... 7172 - 7272

... 7273 - 7373

... 7374 - 7474

... 7475 - 7575

... 7576 - 7676

... 7677 - 7777

... 7778 - 7878

... 7879 - 7979

... 7980 - 8080

... 8081 - 8181

... 8182 - 8282

... 8283 - 8383

... 8384 - 8484

... 8485 - 8585

... 8586 - 8686

... 8687 - 8787

... 8788 - 8888

... 8889 - 8989

... 8990 - 9090

... 9091 - 9191

... 9192 - 9292

... 9293 - 9393

... 9394 - 9494

... 9495 - 9595

... 9596 - 9696

... 9697 - 9797

... 9798 - 9898

... 9899 - 9999

... 10000 - 10100

... 10101 - 10201

... 10202 - 10302

... 10303 - 10403

... 10404 - 10504

... 10505 - 10605

... 10606 - 10706

... 10707 - 10807

... 10808 - 10908

... 10909 - 11009

... 11010 - 11110

... 11111 - 11211

... 11212 - 11312

... 11313 - 11413

... 11414 - 11514

... 11515 - 11615

... 11616 - 11716

... 11717 - 11817

... 11818 - 11918

... 11919 - 12019

... 12020 - 12120

... 12121 - 12221

... 12222 - 12322

... 12323 - 12423

... 12424 - 12524

... 12525 - 12625

... 12626 - 12726

... 12727 - 12827

... 12828 - 12928

... 12929 - 13029

... 13030 - 13130

... 13131 - 13231

... 13232 - 13332

... 13333 - 13433

... 13434 - 13534

... 13535 - 13635

... 13636 - 13736

... 13737 - 13837

... 13838 - 13938

... 13939 - 14039

... 14040 - 14140

... 14141 - 14241

... 14242 - 14342

... 14343 - 14443

... 14444 - 14544

... 14545 - 14645

... 14646 - 14746

... 14747 - 14847

... 14848 - 14948

... 14949 - 15018

Completed actor creation, added 0 new actor(s)

Beginning migration of revision.rev_user and revision.rev_user_text to revision_actor_temp.revactor_actor

User name "Cursedtyrant" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "OmnipotentOculus" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "PhantomX" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "Soaring Hawk" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

... rev_id=1651

... rev_id=2279

User name "Lord Moriya" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "Chupavuk" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "The Seeker" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

... rev_id=4373

User name "Dreammaker" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "Magnus" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "Kuro Neko" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "Koharski" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "D0pp" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "Irtemed" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

... rev_id=6441

User name "Zeroch" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "Ghelæ" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "Demon lord" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "Poopie" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "Asdasdf" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "VanHelsing" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "Dweren" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "Agemegos" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "Webwarlock" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "IkkE9c" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "Au3P1u" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "Nosferatu" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "WeiRkz" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "LeeVnq" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "LdjWpc" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "Bf9J28" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "RlnTr4" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "Xb4Xu1" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "DklMwi" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "GbkF74" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "YswE0l" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "BjhR0c" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "ZtbKfu" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "DkkRn5" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "Rw9E7v" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "KmrOwv" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "RxjMhc" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "LevXvh" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "GusPiv" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "Puck Cousin" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

... rev_id=6753

Completed migration, updated 0 row(s) with 0 new actor(s), 462 error(s)

Beginning migration of archive.ar_user and archive.ar_user_text to archive.ar_actor

User name "Cursedtyrant" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "OmnipotentOculus" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "PhantomX" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "Soaring Hawk" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "Shadow" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "Magnus" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "Dreammaker" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "Demon lord" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "Chupavuk" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "Asdasdf" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "Poopie" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "The Seeker" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "Sherweke" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "Gillpend" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

... ar_id=2177

User name "Uldnata" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "Samunat" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "Wahsmir" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "Inoccers" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "Goonirv" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "Makeseve" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "Rasstef" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "Kashhamz" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "Newejann" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "Sammupda" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "Philrish" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "Otomelit" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

... ar_id=2193

Completed migration, updated 0 row(s) with 0 new actor(s), 116 error(s)

Beginning migration of ipblocks.ipb_by and ipblocks.ipb_by_text to ipblocks.ipb_by_actor

Completed migration, updated 0 row(s) with 0 new actor(s), 0 error(s)

Beginning migration of image.img_user and image.img_user_text to image.img_actor

User name "Chupavuk" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "Lord Moriya" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "PhantomX" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "The Seeker" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

User name "Kuro Neko" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

... img_name=Tanuki.jpg

Completed migration, updated 0 row(s) with 0 new actor(s), 8 error(s)

Beginning migration of oldimage.oi_user and oldimage.oi_user_text to oldimage.oi_actor

Completed migration, updated 0 row(s) with 0 new actor(s), 0 error(s)

Beginning migration of filearchive.fa_user and filearchive.fa_user_text to filearchive.fa_actor

Completed migration, updated 0 row(s) with 0 new actor(s), 0 error(s)

Beginning migration of recentchanges.rc_user and recentchanges.rc_user_text to recentchanges.rc_actor

Completed migration, updated 0 row(s) with 0 new actor(s), 0 error(s)

Beginning migration of logging.log_user and logging.log_user_text to logging.log_actor

An error occurred:

Error 1062: Duplicate entry <nowiki>''</nowiki> for key 'actor_name' (localhost)

Function: MigrateActors::addActorsForRows

Query: INSERT INTO `actor` (actor_name) VALUES (<nowiki>''</nowiki>)


[master_vcuabwgbga]:maintenance$ php cleanupUsersWithNoId.php --prefix=* --force

Beginning cleanup of revision

... rev_timestamp=20060814123604 rev_id=4737

... rev_timestamp=20120127204144 rev_id=16657

... rev_timestamp=20170525090632 rev_id=17491

... rev_timestamp=20210319231722 rev_id=17039

... rev_timestamp=20210323232818 rev_id=17444

... rev_timestamp=20210328142855 rev_id=17643

... rev_timestamp=20211102091714 rev_id=17801

... rev_timestamp=20220228151957 rev_id=17908

... rev_timestamp=20220504075341 rev_id=17971

Completed cleanup, assigned 0 and prefixed 0 row(s)

Beginning cleanup of archive

... ar_id=100

... ar_id=200

... ar_id=300

... ar_id=400

... ar_id=500

... ar_id=600

... ar_id=700

... ar_id=800

... ar_id=900

... ar_id=1000

... ar_id=1100

... ar_id=1200

... ar_id=1300

... ar_id=1400

... ar_id=1500

... ar_id=1600

... ar_id=1700

... ar_id=1800

... ar_id=1900

... ar_id=2000

... ar_id=2100

... ar_id=2200

... ar_id=2300

... ar_id=2400

... ar_id=2500

... ar_id=2548

Completed cleanup, assigned 0 and prefixed 0 row(s)

Beginning cleanup of logging

... log_timestamp=20210323232806 log_id=13819

... log_timestamp=20210323232818 log_id=13919

... log_timestamp=20210328090222 log_id=14019

... log_timestamp=20210328142854 log_id=14119

... log_timestamp=20211030010246 log_id=14219

... log_timestamp=20220228150922 log_id=14319

... log_timestamp=20220504075341 log_id=14361

Completed cleanup, assigned 0 and prefixed 0 row(s)

Beginning cleanup of image

... img_timestamp=20220504075341 img_name=Aatxe.jpg

Completed cleanup, assigned 0 and prefixed 0 row(s)

Beginning cleanup of oldimage

... oi_name=Ted_Bundy_3.jpg oi_timestamp=20060528232637

... oi_name=Yūrei.jpg oi_timestamp=20080610195052

Completed cleanup, assigned 0 and prefixed 0 row(s)

Beginning cleanup of filearchive

Completed cleanup, assigned 0 and prefixed 0 row(s)

Beginning cleanup of ipblocks

... ipb_id=275

... ipb_id=293

Completed cleanup, assigned 0 and prefixed 0 row(s)

Beginning cleanup of recentchanges

... rc_id=26127

Completed cleanup, assigned 0 and prefixed 0 row(s)

Monstr6 (talk) 07:59, 5 May 2022 (UTC)

It seems that the missing users have deleted their username on a SMF forum that was linked to the mediawiki through an extension 10 years ago. I dont think it would be good to delete those users since they may have records on the wiki. I am no coder and would like to have some help on a building a SQL query to replace all references to those user's IDs with a working user IDs. Thanks for your help :) Monstropedia.org Monstr6 (talk) 08:53, 5 May 2022 (UTC)

localization file not working

Hey,

I was trying to write a little extension for myself to do some checks on user emails during registration. Now most of that is working now so I wanted to add localization as it is required as per the doc. But i simply can't get it to work.

I added the

"MessagesDirs": {
  	"SomeNameExtension": [
  		"i18n"
  	]
  },

to extension.json

and put two json files (de.json and en.json) in the i18n folder of the extension.

The content of both these files is

{
  	"SomeName-desc": "<some words>",
  	"SomeName-fail": "<some other words>"
  }

i tried to use the -desc with the "descriptionmsg" in extension.json and the -fail with a $value->fatal( wfMessage( 'SomeName-fail' ) );

But in both cases it will just show ⧼SomeName-desc⧽ and not the actual string that should be pulled from the json.

The general language of the wiki is german so i assume it should pull from de.json by default? I tried force regenerating the localization cache but no change.

Maybe I am just making an obvious mistake. I am pretty fresh to the whole wiki thing. JJBBSS (talk) 12:39, 5 May 2022 (UTC)

It might be some localization cache issue. Try removing the extension from LocalSettings.php, saving, viewing a page, and then readding and viewing a new page. Normally this isnt neccessary, but it should flush out caches. Bawolff (talk) 21:10, 5 May 2022 (UTC)
hhm, i tried that but there was no change.
any other ideas? JJBBSS (talk) 07:58, 9 May 2022 (UTC)
ok,
I found the solution.
I read the doc again here and noticed the sentence about message-ids being lowercase. I tried that and things magically worked.
I did a little bit of limited testing and it seems to only break when the first character is capital. Seems to work fine with all the other letters as capital.
I am not really sure if that is intended behavior but is seems kinda arbitrary to only enforce lower case in the first letter.
But if it is intended behavior it should probably me made clear in the doc. Because how it is currently written makes it seem like it is optional recommendation.
Ok, I dug into the logs a little bit and I found this log entry:
[DBQuery] LCStoreDB::get [0s] localhost: SELECT  lc_value  FROM `l10n_cache`    WHERE lc_lang = 'de' AND lc_key = 'messages:someName-desc'  LIMIT 1
so when testing with the different capital things it seems that the first letter of lc_key is always converted to lowercase but the others are not.
So messages:SomeName-desc becomes messages:someName-desc . This means the that query will not get a result because the value would be under SomeName while it searched under someName.
And when the key doesn't start capital, not conversion happens so the query finds the value just fine.
Kinda inconsistent.
Idk where in the code that query is created so I don't know why this happens. JJBBSS (talk) 09:47, 9 May 2022 (UTC)
This happens because MediaWiki always ignores the case of the first character of the page title by design (there are some exceptions to this). Since those texts can be modified directly on the wiki by editing the MediaWiki:xxxx page, this limitation ensures there may not be conflicting messages with upper and lowercase versions of the first character of the message name. Ciencia Al Poder (talk) 11:16, 9 May 2022 (UTC)
Alrighty,
Thanks for the clarification.
Though it might still be good to document this a little more clearly in the doc. JJBBSS (talk) 11:41, 9 May 2022 (UTC)
Would probably be nice if we threw an exception for keys that start with uppercase letter. Bawolff (talk) 23:40, 10 May 2022 (UTC)
so you mean something like this?
This seems to at least catch my specific problem
 --- Message_original.php	2022-05-12 03:51:45.545078000 -0400
 +++ Message.php	2022-05-12 04:23:22.717145290 -0400
 @@ -230,6 +230,10 @@
  			$key = $key->getKey();
  		}
  
 +		if ( is_string( $key ) && preg_match( '~^\p{Lu}~u', $key ) ) {
 +			throw new InvalidArgumentException( '$key can not begin with capital letter' );
 +		}
 +
  		if ( !is_string( $key ) && !is_array( $key ) ) {
  			throw new InvalidArgumentException( '$key must be a string or an array' );
  		}
JJBBSS (talk) 08:32, 12 May 2022 (UTC)

I would suggest to modify the following paragraph (T:138)

MediaWiki is written in the PHP programming language<ref>Not all of MediaWiki is written in PHP.

into

Although MediaWiki is written in the PHP for the most part, some supporting tools are written....

What do you think? GpieroMW (talk) 14:09, 5 May 2022 (UTC)

This should probably go to the Talk page of that page instead. Malyacko (talk) 16:13, 5 May 2022 (UTC)
@Malyacko
Many thanks
Here what appears on the talk page:
Please do not post support questions here.
Instead, use one of these channels:
Further options for contacting appropriate people can be found at Communication. GpieroMW (talk) 16:55, 5 May 2022 (UTC)
Correct. Your question is not some general support question but a question about the page content. That's what Talk pages are for. :) Malyacko (talk) 17:43, 5 May 2022 (UTC)
You should feel free to just change the page. If someone disagrees they will change it back (i think your change sounds good) Bawolff (talk) 21:07, 5 May 2022 (UTC)

How to connect at db using Power BI

I wonder how I could make a connection using Power BI in order to download all pages where I have given my contribution, basicallly for the two following reasons:

  • create a personal KPI about how many pages I traslated, how many have been approved with alteration or without
  • download all the content of each page (including the revised on) in order to create a sort of glossary to guarantee the uniformity for all translation.

Database should be public, then it would be very easy to allow me to achieve this aim.


Looking forward to a positive response

Regards GpieroMW (talk) 17:04, 5 May 2022 (UTC)

What is "Power BI"? See also the API documentation how to pull data. Malyacko (talk) 17:43, 5 May 2022 (UTC)
@malyacko
Power BI by Microsoft is a tool that allows to connect to every kind of datasource, making report, data analysis and so on.
Since all MediaWiki data are stored on MySQL or MariDB, power BI allows an easy connection and download data.
My aims is only download only translated page recorded with my account.
The only help I need it to know which server put in the connection
Regards
https://powerbi.microsoft.com/en-us/what-is-power-bi/ GpieroMW (talk) 06:06, 6 May 2022 (UTC)
If you mean wikimedia wikis, you could maybe hook up the toolforge db, but that is not the intended usecase, so you are pretty on your own, and you would have to be careful not to make queries too large.
you could also make a custom connector to mediawiki api, but probably a lot of work.
If this is your own wiki you could do whatever you want. Bawolff (talk) 21:05, 5 May 2022 (UTC)

How to filter only date and name in {{Special:Newpages|limit=5}} ?

MediaWiki 1.36.1.

How to filter only page creation date and page name in {{Special:Newpages|limit=5}} ?

If I print it as-is I get much irrelevant data but I need only the date and name. 79.179.87.161 (talk) 21:03, 5 May 2022 (UTC)

You can't. Maybe you can do something with CSS.
There are extensions that support this like DynamicPageList Bawolff (talk) 21:23, 5 May 2022 (UTC)
Hello @Bawolff
Sadly, this wasn't enough:
		/* Delete redundant details in "New pages" box */
		.rootpage-HOMEPAGE .mw-userlink,
		.rootpage-HOMEPAGE .mw-usertoollinks, 
		.rootpage-HOMEPAGE .comment,
		.rootpage-HOMEPAGE .mw-newpages-history,
		.rootpage-HOMEPAGE .mw-newpages-edit,
		.rootpage-HOMEPAGE .mw-newpages-oldtitle,
		.rootpage-HOMEPAGE .mw-newpages-length {
				display: none;
		}
I still have (|) after each line which I didn't find any way to remove in CSS. 79.179.87.161 (talk) 22:10, 5 May 2022 (UTC)
Any idea how to remove the (|) in CSS? 79.179.87.161 (talk) 23:25, 5 May 2022 (UTC)
I did use the word "maybe" Bawolff (talk) 23:55, 5 May 2022 (UTC)
Yes, maybe someone has an idea about what is the (|) and how to remove it? 79.179.87.161 (talk) 00:31, 6 May 2022 (UTC)
Try adding (in addition to what you already have)
.rootpage-HOMEPAGE ul li { visibility: hidden }
.rootpage-HOMEPAGE .mw-newpages-time {visibility: visible}
.rootpage-HOMEPAGE .mw-newpages-pagename { visibility: visible}
(This will also mess up any other lists, you can use a containing div to get around that. It will also make the bullet points invisible. Maybe you could use a ::before pseudo element to get around that). Bawolff (talk) 00:49, 6 May 2022 (UTC)
Thanks @Bawolff
Going on the ul li like this made my sidebar menu to disappear so I did it .new_pages ul li and I also had to add a margin removing code.
Eventually I have added the following code to my starting code.
.rootpage-HOMEPAGE .new_pages ul li { visibility: hidden }
.rootpage-HOMEPAGE .mw-newpages-time {visibility: visible}
.rootpage-HOMEPAGE .mw-newpages-pagename { visibility: visible}
#mw-content-text > div > div.mainpage_row.new_pages > div > ul {
	margin-right: 0 !important;
}
79.179.87.161 (talk) 13:08, 6 May 2022 (UTC)

Is there a MediaWiki designer?

It's hard to design a MediaWiki website due to lack of web design tools common in other content management systems (such as Elementor for WordPress, or Gutenberg for Drupal).


I am looking for a website design expert (Adobe graphic design stack / GNU graphic design stack and CSS) to give some design advice to my dull-designwise website.

Most (or all?) MediaWiki developers don't do design, rather PHP-SQL-HTML stuff, less design and less CSS, as far as I know.


Is there a MediaWiki designer?

Are you a MediaWiki designer? 79.179.87.161 (talk) 21:56, 5 May 2022 (UTC)

There's a list here: Professional development and consulting. Jonathan3 (talk) 22:41, 5 May 2022 (UTC)

How to output an age from birthday?

I want to do something like this in my homepage

Input

{{01/01/1995}}

Output

Age (year only)

Is there any internal function or internal template that does it? 79.179.87.161 (talk) 22:00, 5 May 2022 (UTC)

You could write a template using Help:Magic_words and Help:Extension:ParserFunctions. Jonathan3 (talk) 22:40, 5 May 2022 (UTC)
Is there anything done already before I try to "reinvent the wheel" (to be metaphoric for a moment)? 79.179.87.161 (talk) 23:17, 5 May 2022 (UTC)
 #date from ParserFunctions is literally made for this. Bawolff (talk) 23:57, 5 May 2022 (UTC)
For a non-Scribunto example, see the "Born"/"Died" sections in the "Character box" code from my creative-venture wiki. --Slgrandson (talk) 21:34, 18 May 2022 (UTC)

Mediawiki - Docker compose

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.


Straightforward question:

If I use docker-compose up -d everything works fine and I get Mediawiki running on my localhost and my bash works fine.

If I use docker-compose up I get this: https://pastebin.com/FL8u9iHv and my bash freezes there. This got me curious. What am I lacking/doing wrong, if anything? Klein Muçi (talk) 03:40, 6 May 2022 (UTC)

So -d means detach and put it in the background.
I am not that familar with docker-compose so this may be wrong, but what i think is happening: since you dont detach you see debug info which would normally be hidden. Your terminal is attached to the apache process. Since apache does not take input (since it normally runs in the background) it simply ignores anything you press on the keyboard. Thus it looks like things are frozen, where really its not frozen its just apache ignores input on stdin and doesn't normally output anything. Bawolff (talk) 08:07, 8 May 2022 (UTC)
Thank you! That's what is happening because it literally ignores everything beside Ctrl+C to exit gracefully. Do I have anything to really debug though? I mean, for Apache. Klein Muçi (talk) 08:37, 8 May 2022 (UTC)
Probably not. Generally if you wanted to access the container, you would want to start a new /bin/sh process and connect to that. Bawolff (talk) 17:07, 8 May 2022 (UTC)
Okay then. Thank you one more time! :) Klein Muçi (talk) 17:16, 8 May 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

question from UN in Albania

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.


Dear colleagues,


Dear colleagues, I am working for the UN in Albania and we need to update information in English and Albanian on several cultural heritage sites that we are renovating. Could you please connect us with the relevant editors who could helps us?

Thank you, Yevgeniy

yzelenko@unops.org or what's up: +355 694086778 188.172.108.217 (talk) 07:43, 6 May 2022 (UTC)

Welcome to the Support desk for the MediaWiki software. If you refer to content on some website, please contact that website instead. Malyacko (talk) 08:09, 6 May 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Help to look for EN page Bs-exporttables-loading-text

Hi,


please help me to look for the page below. I need to apply a text modification.


Then I could close ticket T307250 by myself.

Thanks


MediaWiki:Bs-exporttables-loading-text/it GpieroMW (talk) 12:32, 6 May 2022 (UTC)

(Please provide full links.) If you want to change English ("original") strings, you'll need to change them in the codebase and provide a patch in Gerrit. This sounds like a question for that Phab ticket if something is unclear. Also see New Developers/Communication tips - thanks! :) Malyacko (talk) 13:26, 6 May 2022 (UTC)
https://translatewiki.net/w/i.php?title=Special:Translate&group=ext-bluespiceexporttables&language=it&filter=translated&action=translate GpieroMW (talk) 15:02, 6 May 2022 (UTC)
I'd reccomend reading the page I18n Bawolff (talk) 14:55, 6 May 2022 (UTC)

no pictures after upgrade to 1.37.2

I did a upgrade to version 1.37.2. There was no error, but there is no pic on my site. What I do not understan dis "chgrp -R apache images" what is web user "apache"? All pic are on my server and when I try to upload a new version of existibg pics I get the message that the file is empty. I found some older advices but nothing works for me. when I run maintenance/rebuildImages.php I get that 0 of 14 rows are effected.

Can anyone help me?

Thanks

Masen 2A02:8109:1600:E940:95BD:2DBF:A926:9A93 (talk) 18:15, 6 May 2022 (UTC)

Witch OS ? Linux ? Try changing the owner of the images, something like <code>sudo chown -R www-data:www-data /path/to/image/folder</code> FrViPofm (talk) 19:34, 6 May 2022 (UTC)

Internal error - Mediawiki

Hi,

I'm re-installing Mediawiki 1.37 on a fresh Ubuntu 22.04, Apache, PHP 8.1. I get the first config screen (lang), I click for the following step, and... fail!

/w/mw-config/index.php?page=Language Error: Class "FormatJson" not found

Backtrace:
from /var/www/wiki/w/includes/exception/MWExceptionHandler.php(754)
 #0 /var/www/wiki/w/includes/exception/MWExceptionHandler.php(291): MWExceptionHandler::logError()
 #1 /var/www/wiki/w/includes/AutoLoader.php(117): MWExceptionHandler::handleError()
 #2 /var/www/wiki/w/includes/AutoLoader.php(117): require(string)
 #3 /var/www/wiki/w/includes/cache/localisation/LocalisationCache.php(594): AutoLoader::autoload()
 #4 /var/www/wiki/w/includes/cache/localisation/LocalisationCache.php(929): LocalisationCache->readJSONFile()
 #5 /var/www/wiki/w/includes/cache/localisation/LocalisationCache.php(496): LocalisationCache->recache()
 #6 /var/www/wiki/w/includes/cache/localisation/LocalisationCache.php(370): LocalisationCache->initLanguage()
 #7 /var/www/wiki/w/includes/cache/localisation/LocalisationCache.php(311): LocalisationCache->loadItem()
 #8 /var/www/wiki/w/includes/language/LanguageFallback.php(106): LocalisationCache->getItem()
 #9 /var/www/wiki/w/includes/language/LanguageFactory.php(158): MediaWiki\Languages\LanguageFallback->getAll()
 #10 /var/www/wiki/w/includes/language/LanguageFactory.php(116): MediaWiki\Languages\LanguageFactory->newFromCode()
 #11 /var/www/wiki/w/mw-config/index.php(75): MediaWiki\Languages\LanguageFactory->getLanguage()
 #12 /var/www/wiki/w/mw-config/index.php(40): wfInstallerMain()
 #13 {main}

What is wrong ? FrViPofm (talk) 19:29, 6 May 2022 (UTC)

You are missing MediaWiki files or your install is corrupt. I would suggest re-installing. Bawolff (talk) 23:37, 6 May 2022 (UTC)
I tried the installation several times from the 1.37.2 .zip or tar.gz archive. I moves the files in place together with a <code>cp -r /path/to/source/* /path/to/target</code> and changed the owner with a <code>chown -R www-data:www-data /path/to/target</code> I doubt I forgot a file each time, and always the same to get the same error. Maybe a php file. But witch ? My phpinfo says that JSON is enabled. FrViPofm (talk) 07:50, 7 May 2022 (UTC)
The missing file would be includes/json/FormatJson.php Bawolff (talk) 08:00, 8 May 2022 (UTC)
<code>ls /var/www/wiki/w/includes/json/</code>
returns :
<code>
FormatJson.php     JsonSerializer.php           JsonUnserializer.php
JsonCodec.php      JsonUnserializable.php
JsonConstants.php  JsonUnserializableTrait.php
</code>
The FormatJson.php file is here. FrViPofm (talk) 17:27, 10 May 2022 (UTC)
Check it has the same contents as https://github.com/wikimedia/mediawiki/blob/REL1_37/includes/json/FormatJson.php (especially line 1 and 26, but whole thing should be the same) and also check line 539 of autoload.php is the same as
https://github.com/wikimedia/mediawiki/blob/REL1_37/autoload.php#L539
Php 8.1 isn't officially supported by mediawiki 1.37, but it feels really unlikely that any incompatibility would manifest like this. However it seems like some other people have the same error https://phabricator.wikimedia.org/T307816 which is very weird (edit: i didnt realize you were same person) Bawolff (talk) 19:25, 10 May 2022 (UTC)
If you want to further debug you could add something like the following to line 115 of includes/AutoLoader.php https://github.com/wikimedia/mediawiki/blob/REL1_37/includes/AutoLoader.php#L115
(This will break things so remove after)
if ($className=="FormatJson") {var_dump($className, $filename);die()}
That should cause mediawiki to show what path its looking for FormatJson Bawolff (talk) 19:52, 10 May 2022 (UTC)
Compared with meld :
No difference (just an empy ending line on the git version).
Compared with meld :
No difference.
I have added the empty line at the end of FormatJson.php. And the installation seems running.
Let us have a look further. FrViPofm (talk) 20:05, 10 May 2022 (UTC)
OK. WIki installed.
Thanks. FrViPofm (talk) 20:05, 10 May 2022 (UTC)
Thats still super weird as an empty line at end should affect nothing. Maybe some sort of opcode cache issue and editing the file forced a cache clear. Bawolff (talk) 20:18, 10 May 2022 (UTC)
FYI - happened to me also, adding a newline at the end of FormatJson solves the issue. 217.132.25.116 (talk) 13:57, 11 May 2022 (UTC)
thanks, that did the trick for me. just add new line 188.141.20.253 (talk) 11:21, 25 June 2022 (UTC)
For keeping track, links and history in search engines :
The issue was open also on Phabricator : https://phabricator.wikimedia.org/T307816 FrViPofm (talk) 20:35, 11 May 2022 (UTC)

How to install this iframe-resizer on MediaWiki?

github.com/davidjbradshaw/iframe-resizer

cd WEB_APPLICATION_ROOT
git clone PROJECT

But then what? 79.179.87.161 (talk) 17:30, 7 May 2022 (UTC)

Please try it on an iframe in your website and tell us what have you done to make it work. 79.179.87.161 (talk) 20:20, 7 May 2022 (UTC)
That's a question for that project, and not for MediaWiki? What does "on" mean in "on MediaWiki"? Please also see "Post a new question" in the sidebar. Malyacko (talk) 11:58, 8 May 2022 (UTC)
@Malyacko "on" means as a software layer on top of another software layer, using this plugin on top of MediaWiki.
I seek help in how to install this particular plug in, on top of MediaWiki... 79.179.87.161 (talk) 16:04, 8 May 2022 (UTC)
@Malyacko I get the point that this thread doesn't belong here.
If you wish, please delete this post. I am totally fine with that. 79.179.87.161 (talk) 16:27, 8 May 2022 (UTC)
Which exact software does that "plugin" plug in? It does not sound like MediaWiki. Malyacko (talk) 06:43, 9 May 2022 (UTC)
@Malyacko I am sorry, I didn't understand.
One should be able to install it on any website. 79.179.87.161 (talk) 07:26, 9 May 2022 (UTC)
You say it's a plugin. So what does it "plug into"? If you know that you can "install it on any website", I don't understand what the problem is - that software should probably have documentation to install it. Malyacko (talk) 07:53, 9 May 2022 (UTC)
@Malyacko it plugs into a program. It's a software module which could be installed on top of any (web) program.
I didn't manage to understand the documentation on start but someone of the community of that plug in helped me.
The "abusefilter" here doesn't allow me to paste the relevant source code patterns here but here is a reference to the discussion where I got that help:
github.com/davidjbradshaw/iframe-resizer/issues/1055 79.179.87.161 (talk) 08:39, 9 May 2022 (UTC)
Ah. So this is answered in Project:Support desk/Flow/2022/05#h-Is_it_okay_to_use_mw.loader.load_outside_of_MediaWiki:Common.js?-2022-05-08T09:25:00.000Z instead. Malyacko (talk) 11:27, 9 May 2022 (UTC)
@Malyacko I don't think so, an explanation about how to use the plugin on a website is given in the GitHub discussion I linked to above, which generally doesn't require using any MediaWiki syntax. 79.179.87.161 (talk) 15:41, 9 May 2022 (UTC)

Is it okay to use mw.loader.load outside of MediaWiki:Common.js?

I wish to load a JavaScript file locally, this way:

<html>
	<head>
	</head>
	<body>
		<iframe id="myIframe" src="https://example.com/x/y.php" width="100%" frameBorder="0" id="prcf_iframe"></iframe>
		<script>
			mw.loader.load("/iframe-resizer/js/iframeResizer.contentWindow.min.js");
			iFrameResize({ log: true }, '#myIframe')
		</script>
	</body>
</html>

Is it okay to use mw.loader.load outside of MediaWiki:Common.js? 79.179.87.161 (talk) 09:25, 8 May 2022 (UTC)

What does "okay" mean? What would be "not okay"? What have you tried and what happened? Malyacko (talk) 11:51, 8 May 2022 (UTC)
"Okay" here means, is it possible to work with mw.loader.load (javascript file loader for MediaWiki) outside MediaWiki:Common.JS?
I've tried it and I got:
Uncaught ReferenceError: mw is not defined:
mw.loader.load("/iframe-resizer/js/iframeResizer.contentWindow.min.js");
How then should I load the JS file in the code above? 79.179.87.161 (talk) 16:10, 8 May 2022 (UTC)
That would be a no (more about time rather than place). You can't use mw before its defined. Bawolff (talk) 17:04, 8 May 2022 (UTC)
@Bawolff Before it's defined? I am sorry, I didn't understand.
Why can't mw.loader.load be used outside MediaWiki:Common.js? 79.179.87.161 (talk) 17:18, 8 May 2022 (UTC)
You can't use mw before the thing that creates it is run. MediaWiki:Common.js happens after mw is created, presumably whatever you are doing happens before. Bawolff (talk) 01:15, 9 May 2022 (UTC)
Wrap the JS code in a function that only triggers after the document is ready, that's generally the safe way to do this. —TheDJ (Not WMF) (talkcontribs) 08:23, 9 May 2022 (UTC)

problem mediawiki timestamps

hi, the problem next is very strange, i installed mediawiki 1.37.2 in a shared host with litespeed web server but the problem when use flow extension or similar extension which liquidtherads or discussiontools.

the problem is tested in flow, to the add topic the publicatin show timestamps "2 minutes" that is, 2 minutes in advance from the date and time of the server. since I set the time zone and for example my hour is 3:17, if you add the topic right now, the publication shows it was added at 3:19,

I tried to see if it's a problem with the php configuration but nothing turned out I don't know if it's a mediawiki problem either but the same thing happens with the DiscussionTools and LiquidThreads extensions.


see T307841 for a capture of the mistake. PetaloAzul (talk) 00:11, 9 May 2022 (UTC)

Did you check what the current time is on the server, maybe it is just set to the wrong time. Bawolff (talk) 01:29, 9 May 2022 (UTC)
@Bawolff yes, here and here show the current time on the server, the default time zone is America/New_York. PetaloAzul (talk) 01:37, 9 May 2022 (UTC)
ok. I just adjusted the timezone to mine (America/Mexico City) but here you can see that it is showing the same error that is being experienced in mediawiki, exist a solution for this problem? PetaloAzul (talk) 02:46, 9 May 2022 (UTC)
So it sounds like your webserver has the wrong time. You should set it to the correct time. On linux this can be done with the date command although you probably need to be root. (Also maybe install ntpd) Bawolff (talk) 22:42, 9 May 2022 (UTC)
@Bawolff, ok, the site is in a shared hosting (x10hosting), I will try to report the problem then, I hope you can take it into account, thanks PetaloAzul (talk) 00:04, 10 May 2022 (UTC)

Invalid CSRF token

I am trying to use ruby and HTTPLite to make changes to my wiki, but all I am getting is an Invalid CSRF token response. I tried validating my token in the same method using the "checktoken" action and it returned valid so I have no clue what could be happening.

I can confirm that I have the right cookies, my body is a hash of:

"action" => "edit",

"title" => <StringVariable>,

"text" => <StringVariable>,

"token" => token,

"format" => "json"


I am using post_body so it is using a POST request, and I am posting as "application/x-www-form-urlencoded"


Headers are:

"Host" => <StringVariable>,

"Proxy-Connection" => "Close",

"Pragma" => "no-cache",

"Cookie" => <StringVariable> (my own cookie data),

"User-Agent" => <StringVariable> (I copied my own user agent data)


I even tried substituting the "+\\" in the token to "%2B%5C" but that didn't help


Anything else I can try, did something fly over my head? I am just really confused Voltseon (talk) 04:00, 9 May 2022 (UTC)

Its very odd that checktoken says its valid and its not working.
My suggestion would be to try using some pre made bot, just to make sure it works so you could rule out something wrong with your wiki.
Sometimes if im absolutely stuck on something like this, i will use wireshark to sniff the packets to make 100% sure its what i think it is (even better if i have someone else's working code so i can see what the difference is) Bawolff (talk) 06:33, 9 May 2022 (UTC)
Thank you for replying
I checked the packets with wireshark but I have honestly no clue what to even look for. The packets are kind of jibberish to me and can barely even make out which packet correlates to which request.
I had tried an extention bot and it works just fine. But when I make any requests from my project it just falls apart. (Also it would be nice to have someone else's working code next to mine, but unfortunately I haven't been able to sniff out a single script that does something even similar using HTTPLite with ruby) Voltseon (talk) 09:14, 9 May 2022 (UTC)
"Cookie" "my own cookie data".... Don't implement cookies yourself, if that is what you are doing.. Use a cookie jar manager.
There is a ruby implementation of the api at https://github.com/wikimedia/mediawiki-ruby-api
It seems like it hasn't been maintained in a while, but most aspects will still apply —TheDJ (Not WMF) (talkcontribs) 13:32, 9 May 2022 (UTC)
Unfortunately my project does not have any gem compatability and I haven't found any cookie jar manager scripts that don't require some kind of gem in order to function Voltseon (talk) 22:20, 9 May 2022 (UTC)

ERR_TOO_MANY_REDIRECTS on previously working Wiki

Hi, and thanks in advance for your help.

I had a working MediaWiki installed on my site (set it up myself a couple years ago as a novice). I haven't touched anything on the site in months, but suddenly, within the past two weeks, the site no longer loads and browsers are returning this error: "ERR_TOO_MANY_REDIRECTS"

Any idea what the problem may be? 2A00:23C6:3B82:B601:7020:2E69:3818:32A7 (talk) 11:29, 9 May 2022 (UTC)

TOO_MANY_REDIRECTS generally means that the webserver is making too many redirects from one page to the other. You will have to look at the logs of your webserver. —TheDJ (Not WMF) (talkcontribs) 13:14, 9 May 2022 (UTC)
Thanks for your help.
I've accessed the logs, but I have no idea what I am looking for. Getting MediaWiki installed in the first place is largely the extent of my programming knowledge.
There are repeated 404s in a folder that is named "/.well-known/acme-challenge/".
Could that point to the issue? 2A00:23C6:3B82:B601:7020:2E69:3818:32A7 (talk) 15:45, 9 May 2022 (UTC)
Oh, another possible clue: When I use "&nocache=" at the end of the URL, the site does load. So seems like the cache is part of the issue? 2A00:23C6:3B82:B601:7020:2E69:3818:32A7 (talk) 15:47, 9 May 2022 (UTC)
not neccesarily. It might just mean you are hitting different rewrite rules.
Try using the network tab of your developer to see what sort of redirect loop is happening (what page you are being redirected to).
Often this is a problem with rewrite rule or short url config. You should paste your .htaccess file (if using that) and the value of $wgArticlePath and $wgScriptPath from LocalSettings.php. Bawolff (talk) 22:39, 9 May 2022 (UTC)
I was getting ERR_TOO_MANY_REDIRECTS as well after upgrading from version 1.31 to 1.38 MediaWiki so I checked my $wgScriptPath which was set to "/wiki/" Changing it to "/wiki" tamed the redirects. I guess 1.38 is more fussy about the trailing "/". Chuck.Kahn (talk) 17:20, 6 October 2022 (UTC)

PHP 8.0.5+ required by 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.


Hello,

I have been asked to upgrade the server we have our media wiki on to PHP 8.0.5 or higher.

Where can I find where it explains if this is possible?


Thank you 141.211.32.5 (talk) 19:28, 9 May 2022 (UTC)

MediaWiki is not compatible with PHP 8 yet. See Compatibility#PHP Ciencia Al Poder (talk) 20:08, 9 May 2022 (UTC)
That said, it mostly works, so if you are willing to live a little on the wild side it will probably be fine. Bawolff (talk) 22:36, 9 May 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

No reset emails

I haven't logged on in over 5 years. Now password reset not sending me a reset email. I've triple-checked my email spelling. I've done normal case also lower case. I've checked my SPAM folder. I've checked my other two email addresses. Absolutely nothing. THIS help screen suggested I post my username, then it says my old username is not registered. Yet when I try to create a new account with my old username Wikipedia tells me that the username is already in use. You can't have it both ways contradicting itself. 75.243.212.175 (talk) 02:13, 10 May 2022 (UTC)

What help screen suggested you post your username? Bawolff (talk) 03:09, 10 May 2022 (UTC)

Saving Spreadsheet as *.xlsx

Hi Project Support Desk, I have encountered an email recipient unable to use the spreadsheet data sent through as either *.xls or *xlsx format because the data has changed. Particularly the 'date'. Dates of 9/04/2022 open up showing as 94/04/2022.

Does anyone have any information what is occurring? 49.182.196.0 (talk) 01:59, 11 May 2022 (UTC)

How is this related to MediaWiki? Please see "Post a new question" in the sidebar. Malyacko (talk) 08:27, 11 May 2022 (UTC)

Short URL just not working. NONE of the solutions

Please work could someone provide a solution that really works?

I have tried any possible solution that can be found.

The article about the Short URL Manual:Short URL is not explained properly and none of the discussed solutions actually work.

I have a default configuration, nothing special.

apache in /etc/apache2 and mediawiki in /var/www/html/mediawiki

How is it possible there is not a single properly working solution for this? 213.209.123.252 (talk) 07:51, 11 May 2022 (UTC)

Please check "Post a new question" in the sidebar. Malyacko (talk) 08:26, 11 May 2022 (UTC)
What have you tried? Jonathan3 (talk) 15:26, 11 May 2022 (UTC)
i have tried with .htaccess file, changing the 000-default.conf accordingly.
i literally tried every google result i found but none worked, always have to go back to snapshot.
the furthest i got was that the url got redirected so the index.php? was gone, but the pages weren't reachable.
i installed everything according to manual which makes it harder for me to understand why "standard" solutions do not work 213.209.123.252 (talk) 13:58, 25 May 2022 (UTC)

JsonConfig Extension Support Question about public static function onCanonicalNamespaces( array &$namespaces ) { } lucky best man In the world

See https://phabricator.wikimedia.org/T308104 Jasonkhanlar (talk) 08:18, 11 May 2022 (UTC)

What's the actual question?
It sounds like you are declaring the namespace twice so you are getting a warning. Bawolff (talk) 18:43, 11 May 2022 (UTC)

[Newbie] Pictures not shown after upload

Hello,

I need some help with my problem. I found the same issue alread here: Project:Support desk/Flow/2017/08#h-[German]Bild_wird_nicht_angezeigt_/_Image_is_not_displayed-2017-08-04T08:21:00.000Z But I can't get the solution running for me and it is already 4 years ago.

But the problem is the same, I am running a wiki on a hosted webspace (no commandlines) and when i upload an image, it looks like this:

http://i.imgur.com/XInqC7g.jpg


When I click on the Image I receive the following:

Forbidden

You don't have permission to access this resource.Server unable to read htaccess file, denying access to be safe


What can I do? Thanks for the Help in advance. Unfortunately I only have a basic understanding of programming and none in SQL (i don't even know how to look into my SQL database) 2A02:8070:782:3C00:68DE:DCE2:814F:FAEB (talk) 08:57, 11 May 2022 (UTC)

Hi, see "Post a new question" in the sidebar and check the server logs. Malyacko (talk) 09:26, 11 May 2022 (UTC)
Hi @Malyacko sorry for that
Software Version
MediaWiki 1.37.2
PHP 7.4.28 (fpm-fcgi)
MariaDB 10.5.15-MariaDB-1:10.5.15+maria~focal-log
ICU 66.1
Pygments 2.10.0
Giving the web address, doesn'T help unfortunatley as I restricted the access to members only (it will be private wiki for me and a few friends and we don't want the content available in the web) 2A02:8070:782:3C00:68DE:DCE2:814F:FAEB (talk) 09:34, 11 May 2022 (UTC)
Ok I played around ab it more and it looks like it was due to the access rights of the image folder. I changed it and it is working now. I had the hope that thoses images can be displayed without allowing everyone (knowing the link) to access the images.
If there is such solution, I am happy to hear about it. Else, this topic is resolved 2A02:8070:782:3C00:68DE:DCE2:814F:FAEB (talk) 11:29, 11 May 2022 (UTC)
See manual:image authorization Bawolff (talk) 18:40, 11 May 2022 (UTC)

signing up

I tried my other email address and STILL cannot get a verification email. 96.245.117.142 (talk) 19:52, 11 May 2022 (UTC)

its unlikely anyone is going to help you if you dont even include what website you are talking about, what username and what email. Bawolff (talk) 00:36, 12 May 2022 (UTC)
Maybe it's a problem with connecting to the e-mail server. Sometimes, Gmail will block requests from less secure apps, and then you need to enable less secure apps to connect there. I.hate.spam.mail.here (talk) 05:07, 17 May 2022 (UTC)

Can someone help me?

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hi,

I know nothing about programming.

I would like a bot to transfer all of the photos in https://catalog.archives.gov/id/532388 Black and White Photographs of Marine Corps Activities in Vietnam, 1962 - 1975 to Wikimedia Commons Category:United States Marine Corps in the Vietnam War

Is this something that Python can do? If so how do I start? Or can someone create this bot for me?

Any help gratefully appreciated. Mztourist (talk) 07:30, 12 May 2022 (UTC)

@Mztourist Hi, that sounds more like a question for c:Commons:Village_pump than for the MediaWiki software itself? Malyacko (talk) 09:55, 12 May 2022 (UTC)
Noted, thanks Mztourist (talk) 10:45, 12 May 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

After migrating a wiki to a new server, my subdirectory permissions are essentially all 777...

I manually fixed the top-level subdirectory permissions to match those of a fresh install, but is there a script somewhere that can re-establish the expected permissions of the subdirectories recursively for the sub-sub directories and elements? FWIW, I am on MediaWiki 1.35.5. Thanks! Drewsaur (talk) 16:06, 12 May 2022 (UTC)

The -R option to chmod. See https://linux.die.net/man/1/chmod Bawolff (talk) 18:03, 12 May 2022 (UTC)
Yes I am quite aware of that flag, but not all of the permissions for each file are supposed to be the same, I could see from the new install. So that won't work...! Drewsaur (talk) 18:16, 12 May 2022 (UTC)
There is no one right answer for permissions and ownership of mediawiki files - it depends on how your system is setup.
but generally speaking, images subdirectory needs to be readable and writable by the webserver, LocalSettings.php should be readable by webserver but not other users (contains db pass) and should not be writable by webserver, everything else should be readable by webserver but not writable by webserver.
$wgCacheDirectoty, if set, must be readable and writable by webserver, generally it should be outside of web root. For best security ensure php is disabled in images directory. Bawolff (talk) 18:56, 12 May 2022 (UTC)
Understood. I am only referring to the permissions for the standard install directories and their subcontents, which are standard for a given release, such as docs, includes, languages, maintenance, resources, skins, vendor, etc. There are canonical permissions for those that are defined at install time. Other systems I have worked with have permissions-fixings scripts to fix things like this, and I am hoping something similar exists, or that there is at least a document from mediawiki that details the default install permissions for those directories and their contents. Thanks again! Drewsaur (talk) 15:26, 13 May 2022 (UTC)
If you are looking for a specific number, you probably want 644 on files 755 on directories. There is no mediawiki specific script Bawolff (talk) 00:45, 14 May 2022 (UTC)
Thank you - very helpful! Drewsaur (talk) 13:33, 16 May 2022 (UTC)

Module CSS subpage

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 create a "Module:Documentation/styles.css" page (similar to en:Module:Documentation/styles.css) on a new installation of MW 1.37.2 (with Lua 5.1.5), but when I try to save the page I get an error message saying the formatting of the page has unexpected characters. I even tried copying exactly what was in the en:Module:Documentation/styles.css page, but I still get the error. It seems to be treating the CSS as if it's Lua code rather than CSS. Is there an additional extension I need to install to make it treat the CSS as CSS instead of Lua? Or am I missing something else?

Thanks in advance for any assistance. -- 日本穣 Nihonjoe (talk) 22:26, 13 May 2022 (UTC)

First off, just to confirm, you have extension:TemplateStyles installed?
Try creating the page via Special:changeContentModel which allows creating template style pages in other namespaces.
Probably the reason is you need $wgTemplateStylesNamespaces[NS_MODULE] = true; by default its template only. Bawolff (talk) 00:40, 14 May 2022 (UTC)
I did not have that extension installed, but it is now. I also implemented $wgTemplateStylesNamespaces to allow it. Thanks! -- 日本穣 Nihonjoe (talk) 01:03, 14 May 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

I want to download a new version but I can't uninstall the previous one

I want to download a new version but I can't uninstall the previous one 2A02:A03F:6B6C:3500:E086:736:8E39:9752 (talk) 09:00, 14 May 2022 (UTC)

Just download it to a different directory. Jonathan3 (talk) 11:01, 14 May 2022 (UTC)

No help found...

I am trying to find (even payed, professional) help in order to fix a Wiki that I had set up a couple of years ago. Nobody seems to even have the time to look at it. So: Here I try again! Is there somebody out there who would take a look at my MediaWiki? The Database seems to be fine, the softwareversion is outdated but I am so ignorant that I am not able to get the Wiki software and the Database to speak to each other. If you can't help, but have an idea who might, refer me, please. Thank you! RembertRover (talk) 16:49, 14 May 2022 (UTC)

See Professional development and consulting linked from the front page. Malyacko (talk) 17:09, 14 May 2022 (UTC)
I tried several of the entries on the Professioneal Development & Consulting page. I am sorry to say, that hardly any replied and those who did, told me they had no time or possibility to help. I am fully aware that professional help does not come cheap!
Tillman RembertRover (talk) 11:12, 7 March 2023 (UTC)
Which exact MediaWiki version (see the page "Special:Version")? Which database server and version? After which exact steps do you get some error, and what is the exact error message? Malyacko (talk) 13:19, 8 March 2023 (UTC)

Sanitized CSS

How do I install the Sanitized CSS content model? --197.207.150.111 17:26, 14 May 2022 (UTC)

Install extension:TemplateStyles Bawolff (talk) 18:58, 14 May 2022 (UTC)

I am banned.

I had an offense 3 months ago. I have been banned. The time is over, and I am asking the ban to be lifted.

The agreement was 3monts banning and today is 3 months.


Please consider.


Herzakov 2600:1700:D590:A5E0:6133:2D33:5F40:84B4 (talk) 01:29, 15 May 2022 (UTC)

this is not the right place to make this request. You need to make this request at the wiki you were banned on. You should probably include your username. Bawolff (talk) 01:32, 15 May 2022 (UTC)

Bad SEO

I have a MediaWiki 1.36.1 website with Skin:Timeless and about 2,000 webpages, most of them (about 51% at least) are about marketing.

The website is all core, no external extensions or skins are installed.

This is my robots.txt syntax pattern:

User-agent: *
Sitemap: https://example.com/sitemap/sitemap.xml
disallow: /index.php?
disallow: /index.php/*:
allow: /index.php/Category:
allow: /index.php/קטגוריה:

The website's performance is very good with Google Page Speed Insights grades of 100/100 (both in mobile and desktop).

But,

The website's SEO is bad with average position of 43.8.

The average position becomes worse every passing day.

The website has only articles and categories --- As far as I know, I have removed anything else from PHP and there are no links to machine pages anywhere.

What may cause bad SEO to that website? 79.178.153.224 (talk) 09:01, 15 May 2022 (UTC)

The website's SEO is bad with average position of 43.8.
In Google Search Console 79.178.153.224 (talk) 09:10, 15 May 2022 (UTC)
If Google can tell you that the SEO is bad and some average position, I'd assume that Google can also tell you *why* it's on some average position and what you could do about it. It's unclear to me why you ask here in a MediaWiki support place. Malyacko (talk) 10:16, 16 May 2022 (UTC)
I believe that the bad SEO is a legacy from the days that machine pages were indeed linked from various places (such as the sidebar), before I've removed link to these machine pages from PHP.
But if so, what do I do now? 79.178.153.224 (talk) 09:12, 15 May 2022 (UTC)
A bit of help, someone? 79.178.153.224 (talk) 10:07, 16 May 2022 (UTC)
A bit of way more patience, please? Malyacko (talk) 10:16, 16 May 2022 (UTC)
@Malyacko I don't think I was impatient, rather this thread might went too down under others. 79.178.153.224 (talk) 11:29, 16 May 2022 (UTC)
The real reason, is you probably want an SEO professional to help you, which is a bit beyond the scope and expertise of this forum. Bawolff (talk) 19:06, 16 May 2022 (UTC)
You're asking about SEO on a MediaWiki support desk.
You'll probably get some answers on a SEO forum (when actually sharing your website so others can take a look), where you can get tips from experienced users.
If you get tips about changes you should make in your MediaWiki installation to better meet your SEO strategy, feel free to post them here and someone can help. Ciencia Al Poder (talk) 10:41, 16 May 2022 (UTC)
It's probably more a reflection on your wiki rather than MediaWiki in general. I don't think there's any reason for a MediaWiki website (as a MediaWiki website) not to appear at the top of a search if the content is the best. Jonathan3 (talk) 13:25, 16 May 2022 (UTC)
Yep, I don't think it's a problem with MediaWiki. Wikipedia, a MediaWiki site, pretty much always gets the top position. Weeklyd3 (talk) 04:56, 17 May 2022 (UTC)
@Jonathan3 my website has only 2-3 links to it, I guess, with time, when more links are created, the average position will be better. 79.178.153.224 (talk) 16:10, 16 May 2022 (UTC)
I think that the problem is because I have added these robots.txt rules just about a week ago.
Now, I should let the website some time to be properly crawled. 79.178.153.224 (talk) 07:26, 17 May 2022 (UTC)

Wiki site down. Message says: ERR_TOO_MANY_REDIRECTS

Hi, I used a MediaWiki setup for my personal website which can be found here: https://mikepomranz.com/index.php/Main_Page

I installed it myself but am not particularly proficient with MediaWiki or programming in general.

A few weeks ago, the site stopped loading and I have no idea why: whether it's an issue with the install (which worked fine for about a year) or with my webhost (which is Bluehost).

I am receiving an error that "ERR_TOO_MANY_REDIRECTS."

Adding "&nocache=" at the end of the URL remedies the issue and gets the site to load again.

Any thoughts on what may be happening? Thanks! 2A00:23C6:3B82:B601:8DE:ADF3:6127:9046 (talk) 10:41, 16 May 2022 (UTC)

Your main page redirects to itself.
Using non-short urls also works.
https://mikepomranz.com/index.php?title=Main_Page
As such, this seems likely to be an issue with your shorturl webserver configuration. —TheDJ (Not WMF) (talkcontribs) 10:48, 16 May 2022 (UTC)
Amazing. Thanks for the diagnosis. Any advice on how to fix a shorturl webserver configuration? I'm guessing that's something I need to deal with through my web host?
(Apologies for these novice questions.) 2A00:23C6:3B82:B601:8DE:ADF3:6127:9046 (talk) 11:05, 16 May 2022 (UTC)
So I'm digging around in my LocalSettings file and clearly I've messed something up. Is there a way to stop using shorturls? 2A00:23C6:3B82:B601:8DE:ADF3:6127:9046 (talk) 15:00, 16 May 2022 (UTC)
You can disable short url by setting
$wgArticlePath = '/index.php?title=$1';
typically for this sort of thing, the problematic part is in your .htaccess file. Bawolff (talk) 19:02, 16 May 2022 (UTC)
Thanks, @Bawolff. This has gotten my site up again!
The problem is that my Wiki is installed on my noapplause.com hosting site and I've been trying to use mikepomranz.com as a masking URL. I'm now recalling that I had actually gone in and changed the LocalSettings to get the masking to work -- and it worked for awhile -- but something changed and the workaround I was using stopped working and crashed the site.
Any idea what LocalSettings to tweak to mask "noapplause.com/mikepomranz" with simply "mikepomranz.com" so that users can't see the underlying pathway?
Thanks again for fixing my initial issue!! At least the site is up again!! 2A00:23C6:3B82:B601:157D:9E2:2D51:7CF0 (talk) 07:58, 17 May 2022 (UTC)
$wgServer = "http://mikepomranz.com"; is what you need to set in LocalSettings.php (along with adjusting $wgArticlePath and $wgScriptPath if the path part changed) . Depending on your hosting setup, you may need to do additional config on the hosting side Bawolff (talk) 17:50, 17 May 2022 (UTC)
Amazing. I think that has resolved the issue! Thanks so much! 2A00:23C6:3B82:B601:3CD3:96B3:58F8:526E (talk) 11:14, 18 May 2022 (UTC)

some images missing, stored at another locations

Hello, I did a migration of our wiki to another server and a major upgrade from 1.27 (with BlueSpice plugin) to 1.37.1 (pure MediaWiki) and I'm facing several issues now. Some of the images are currently missing and not displayed on the pages. I have just noticed, that they are located in different folders so the links seem to be somehow broken. An example - a file is located here: /wiki/images/d/d3/vnc03.PNG but the links points to this location /wiki/images/9/92/Vnc03.PNG.

I've tried running rebuildImages.php but this had no effect.

Does someone have an idea how to fix this?

Thanks.

viktor@vm-niki:/var/www/html/wiki/maintenance$ php rebuildImages.php Processing image... 2022-05-13 13:14:50: 29.15% done on image; ETA 2022-05-13 13:14:50 [100/343] 1448.20/sec <0.00% updated> Finished image... 0 of 192 rows updated Processing oldimage... Finished oldimage... 0 of 48 rows updated

Product Version
MediaWiki 1.37.1
PHP 7.4.3 (apache2handler)
MySQL 8.0.28-0ubuntu0.20.04.3
ICU 66.1

Viktor the cleaner (talk) 11:37, 16 May 2022 (UTC)

BlueSpice may have one extension that allows to have the initial character of the image name as lowercase, while on MediaWiki the first character of all page titles are uppercase.
Note how the image is called "vnc03.PNG" in the old location, but "Vnc03.PNG" on the new one.
You'll have to install the entire BlueSpice stack again, or find which extension was being used for this feature and install it.
Otherwise, you'll have to find the affected images and reimport them again with the importImages.php maintenance script. Those leftover initial-lowercase images may require some manual cleanup, though. Ciencia Al Poder (talk) 12:56, 16 May 2022 (UTC)
Its probably due to Manual:$wgCapitalLinks Bawolff (talk) 18:59, 16 May 2022 (UTC)
Thanks a lot for your help! Manual:$wgCapitalLinks actually did the trick for the missing images, that are listed. These are now back! However, there are still many images and files that are not listed. The files are actually on the server but their links seem to be broken. I have tried importImages.php but that gives me ...failed (at recordUpload stage) on the existing files. New files are imported flawlessly. Viktor the cleaner (talk) 15:13, 17 May 2022 (UTC)
This may be caused by edits or cached pages from when $wgCapitalLinks was not set. You may need to purge all the caches, and maybe run refreshLinks.php. Ciencia Al Poder (talk) 07:49, 18 May 2022 (UTC)
Unfortunately that did not help. I've tried all of the following,
php purgeList.php --all-namespaces; sudo chmod -R 777 /var/www/html/wiki/images/; php rebuildImages.php;
php refreshLinks.php; php rebuildall.php
but I'm still stuck with missing images/files. Only red links llike this/wiki/index.php?title=Special:Upload&wpDestFile=name_of_missing_images.png are shown and the pages with the missing content are listed in "Pages with broken file links". I have also tried to create the images folder new and reimport all the files, but that did not help either, only made even more mess. Viktor the cleaner (talk) 15:08, 20 May 2022 (UTC)
Making an edit to LocalSettings.php combined with refreshLinks.php should purge most relevent caches. Bawolff (talk) 15:42, 1 July 2022 (UTC)

Visual Editor error

Product Version
MediaWiki 1.35.6
PHP 8.0.18 (cgi-fcgi)
MariaDB 10.3.13-MariaDB
ICU 68.2

I run a mediawiki server behind a firewall and users have to access it through a NAT ip address. When trying to use the Visual Editor they are getting an error "Error contacting the Parsoid/RESTBase server: (curl error:7) Couldn't contact the server. I have to set the server in the local.php to the NAT address to get the mediawiki to work. I'm sure this is causing the error with Visual Editor. Has anyone else had this issue?

thank you Jjarrells69 (talk) 12:03, 16 May 2022 (UTC)

Hello I just want to use wikibase to link languages ​​between multiple wikis. I do not need a wiki data. Please help with this. thank you Sokote zaman (talk) 14:50, 16 May 2022 (UTC)

"Wikidata" is just one site that uses Wikibase. AFAIK the global account system Wikimedia uses only runs on Wikimedia sites per meta:Help:Unified login.
I.hate.spam.mail.here (talk) 06:27, 17 May 2022 (UTC)
But there's an extension called Extension:CentralAuth to share global accounts between multiple projects.
I.hate.spam.mail.here (talk) 06:29, 17 May 2022 (UTC)

I am getting an unknown error?

I am getting this error message when i imported Template:Button and I can't seem to find anything about it that is right, i checked the permissions and whatnot, and the permissions seem to be in line.


I am using a Plesk web server, using the GIT install of mediawiki. I don't know what else to supply, so if any more information is needed,p lease do feel free to ask.


I don't know what this error means, but here is what it says:


Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted

No further details are available.


I apologize if this is the wrong place to ask, i am new here. But if someone could help me out, it would be greatly appreciated, thank you. Jeffbezoslittlesister (talk) 15:00, 16 May 2022 (UTC)

Extension:Scribunto has some details related to this.
Basically your version of php has security restrictions that prevent the scribunto extension from working. You need to either convince your host/webserver to lift the restriction, find a new host or not use any Module namespace pages. Bawolff (talk) 18:56, 16 May 2022 (UTC)
Hello, Just to clarify, i do have root access to the whole server, even outside of the web server.
I rent the entirety of the server, the web server is what's running on the rented server.
Therefore, i have full control over what goes on the server. Could you clarify what it is that i need to do to remove these restrictions?
I can't find any information about it, so if you could, it would be greatly appreciated, thank you Jeffbezoslittlesister (talk) 12:35, 17 May 2022 (UTC)
https://www.mediawiki.org/wiki/Extension:Scribunto lists proc_open and what to potentially do. Malyacko (talk) 15:05, 17 May 2022 (UTC)

Received Welcome to first edit message in languages I never edited

Hi, I've received notifications in several languages that I don't know and have never edited, in the past few months. Something is fishy. The languages are:

Macedonian: https://mk.wikipedia.org/wiki/%D0%A0%D0%B0%D0%B7%D0%B3%D0%BE%D0%B2%D0%BE%D1%80_%D1%81%D0%BE_%D0%BA%D0%BE%D1%80%D0%B8%D1%81%D0%BD%D0%B8%D0%BA:Mistakefinder

Central Kurdish:https://ckb.wikipedia.org/wiki/%D8%AA%D8%A7%DB%8C%D8%A8%DB%95%D8%AA:%D8%A8%DB%95%D8%B4%D8%AF%D8%A7%D8%B1%DB%8C%DB%8C%DB%95%DA%A9%D8%A7%D9%86/Mistakefinder

Please let me know what caused notifications to be sent, or if I actually did make some minor change in those languages' pages and when. I do not remember or see any reason why I would have, since I cannot read them at all. Thank you. Mistakefinder (talk) 16:59, 16 May 2022 (UTC)

This can happen for a number of reasons, but for me personally it often happens if those wikis have imported a template which i have once touched (or the documentation associated with it). This then creates your local account in those wikis, resulting in a welcome message. —TheDJ (Not WMF) (talkcontribs) 08:46, 24 May 2022 (UTC)

“Français Cadien”

There are several errors with words in the French Canadian language package. The search bar is spelt wrong, several words are misspelled on the login page and the name of the package itself is wrong. We are hoping to present our French wiki at a Canadian Conference and we currently aren’t able to figure out how to edit the foundational code that includes the search bar and other features. Any help would be appreciated! Thank you! 199.119.235.148 (talk) 17:30, 16 May 2022 (UTC)

Hi, you can edit the canadian french translation at https://translatewiki.net . Translations are done on a volunteer basis so i am sure they would appreciate assistence. One possible reason you might be seeing incorrect translations is if nobody has translated something to canadian french, mediawiki will fallback to generic french (of course, the translations could also just be incorrect)
It is also possible to use extension:LocalisationUpdate to get language changes from translatewiki faster.
If you want to change a specific translation just for your wiki, see Help:System message for how, but it would be awesome if you could fix any errors at translatewiki so that everyone could benefit.
cheers Bawolff (talk) 18:52, 16 May 2022 (UTC)

SHORTCUTS

How do I make a shortcut to a particular file 2001:8003:3215:A000:4CB8:CEB8:F616:4F83 (talk) 23:03, 16 May 2022 (UTC)

Umm... I don't think Mediawiki has shortcuts. If you meant redirects to a page, you can type:
#REDIRECT [[Main Page]]
to make a redirect to the Main Page.
I.hate.spam.mail.here (talk) 04:54, 17 May 2022 (UTC)
[[File:Filename.ext]] to link to the wiki page about the file, and [[Media:Filename.ext]] to load the file directly. Jonathan3 (talk) 08:09, 17 May 2022 (UTC)

common.js files are not executing

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.


  1. I installed Mediawiki brand-new.
  2. I set $wgAllowUserJs = true; at the bottom of LocalSettings.php.
  3. I created a Special:Mypage/common.js file and saved it with contents such as alert(1).
  4. When I bypass the cache, the JavaScript does not execute. Why not? I'm using Mediawiki 1.37.2 and PHP 7.4.29 with MariaDB.

I.hate.spam.mail.here (talk) 04:51, 17 May 2022 (UTC)

If you open the developer console in your web browser, are there any errors? Bawolff (talk) 06:06, 17 May 2022 (UTC)
No. When I open the network panel, the script isn't being loaded. I.hate.spam.mail.here (talk) 06:19, 17 May 2022 (UTC)
Are you sure? The script will be named load.php Bawolff (talk) 17:48, 17 May 2022 (UTC)
I have the load.php but the alert(1) is not executing. I.hate.spam.mail.here (talk) 18:03, 17 May 2022 (UTC)
If you have a link to your wiki, it would be helpful so we could look closer. Bawolff (talk) 01:23, 19 May 2022 (UTC)
Sorry, I'm running it on localhost, so I don't have a link. ~ Weeklyd3 (talk) 02:27, 19 May 2022 (UTC)
Weird. It seems to work now. Thanks for your help! I.hate.spam.mail.here (talk) 23:05, 19 May 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Editing toolbar on Support desk

Is it possible to display this? I miss syntaxhighlight, code, nowiki and that sort of thing. Thanks. Jonathan3 (talk) 08:10, 17 May 2022 (UTC)

Me too Bawolff (talk) 20:28, 17 May 2022 (UTC)
Haha! I've never used gadgets but do you think there might be one for this? Jonathan3 (talk) 10:33, 18 May 2022 (UTC)

Quelltext bearbeiten erscheint nicht!

Ich versuche gerade ein Wiki zu ertellen aber der Punkt Bearbeiten wird bei der Hauptseite nicht angezeigt und bei Seiten wird "Quelltext bearbeiten" also der Visual-Editor nicht angezeigt! Beulemann (talk) 10:20, 17 May 2022 (UTC)

Please see "Post a new question" in the side bar. Thanks! Malyacko (talk) 12:30, 17 May 2022 (UTC)

Unknown Internal Error

Hello. Hope all are well.

My wiki sometimes gets an internal error I am not aware of why or what it is. Can someone please explain to me what this means and why this is happening? The following message comes up:

[YoO_Wl0PMPGEqgm7K-uljwAAABk] 2022-05-17 15:29:30: Fatal exception of type MWException

Any assistance would be greatly appreciated to resolve this issue.

TIA Thepainking (talk) 15:32, 17 May 2022 (UTC)

Hi, please see Manual:How to debug and "Post a new question" in the sidebar. Malyacko (talk) 16:31, 17 May 2022 (UTC)
i dont see the option "post a new question" anywhere on the side bar...? Thepainking (talk) 15:24, 18 May 2022 (UTC)
most importantly, set $wgShowExceptionDetails=true; so that the error message is more detailed.
The message malyacko is referencing to is on the right in desktop and on the top in mobile. Bawolff (talk) 01:21, 19 May 2022 (UTC)
These are the details i received:
Parse error: syntax error, unexpected end of file in /nfs/c10/h05/mnt/229444/domains/encyclopediaoftouchbodysenseandpain.com/html/LocalSettings.php on line 196
initially it said line 206 which was blank so deleted all the blank lines upto 196 and now it says this. Can someone please explain this to me and how i can fix it?
TIA Thepainking (talk) 15:34, 19 May 2022 (UTC)
You need to post file to be sure,but probably a missing quote mark or semi-colon. Bawolff (talk) 09:52, 20 May 2022 (UTC)
It depends on what is exactly in that very line in that file. :) Malyacko (talk) 16:06, 19 May 2022 (UTC)
There are some useful pages here: https://duckduckgo.com/?q=php+Parse+error%3A+syntax+error%2C+unexpected+end+of+file
If you post your LocalSettings.php (minus the passwords etc) I'm sure somebody could work out what's up. Jonathan3 (talk) 09:25, 20 May 2022 (UTC)
I have 3 websites under the same server. This LocalSeetings.php was the most recent with the same error (seems all 3 have the same issue) I hope someone can assist me in this (not sure if this is what was asked for in this particular post). But thanks to everyone who have been trying to assist me, much appreciated!
<?php
#This file was automatically generated by the MediaWiki 1.31.12
#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 = "Fibro Wiki";
    $wgMetaNamespace="Fibro Wiki";
##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
$wgScriptPath = "";
##The protocol and server name to use in fully-qualified URLs
$wgServer = "https://fibrowiki.com";
##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 = "logo4.png";
##UPO means: this is also a user preference option
$wgEnableEmail = true;
$wgEnableUserEmail = true; # UPO
$wgEmergencyContact = 'fibrowiki@gmail.com';
$wgPasswordSender = 'fibrowiki@gmail.com';
$wgEnotifUserTalk = true; # UPO
$wgEnotifWatchlist = true; # UPO
$wgEmailAuthentication = true;
##Database settings
$wgDBtype = "mysql";
$wgDBserver = "my server;   (confidential)
$wgDBname = "db229444_mediawiki";
$wgDBuser = "db229444";
$wgDBpassword = "password";  (confidential)
#MySQL specific settings
$wgDBprefix = "";
#MySQL table options to use during installation or update
$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary";
##Shared memory settings
$wgMainCacheType = CACHE_DB;
$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 = true;
#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 = "en";
$wgSecretKey = "secret key";  (confidential)
#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 = "32839d614e0b3db0";
##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 = "Copyright 2021. All Rights Reserved."; # Set to the title of a wiki page that describes your license/copyright
$wgRightsUrl = "";
$wgRightsText = "Copyright 2021. All Rights Reserved.";
$wgRightsIcon = "All Rights Reserved.png";
#Path to the GNU diff3 utility. Used for conflict resolution.
$wgDiff3 = "";
##Default skin: you can change the default skin. Use the internal symbolic
##names, ie 'vector', 'monobook':
$wgDefaultSkin = "vector";
#Enabled skins.
#The following skins were automatically enabled:
wfLoadSkin( 'MonoBook' );
wfLoadSkin( 'Timeless' );
wfLoadSkin( 'Vector' );
#End of automatically generated settings.
#Add more configuration options below.
$wgAllowJavaUploads = true;
$wgFileExtensions = array('png','gif','jpg','jpeg','doc','xls','pdf','ppt','tiff','bmp','docx','xlsx','pptx','wiki','html','xml','rtf');
// left, center, right, justify 
['para', ['justifyLeft', 'justifyCenter', 'justifyRight', 'justifyFull']];
$wgRestrictDisplayTitle = false;
wfLoadExtension( 'Tabs' );
wfLoadExtension( 'CookieWarning' );
$wgCookieWarningEnabled = true;
wfLoadExtension( 'ConfirmEdit' );
$wgCaptchaClass = 'QuestyCaptcha';
$wgCaptchaTriggers['edit'] = true; 
$wgCaptchaTriggers['create'] = true; 
$wgCaptchaTriggers['addurl'] = true; 
$wgCaptchaTriggers['createaccount'] = true;
require_once "$IP/extensions/HeadScript/HeadScript.php";
$wgHeadScriptCode = <<<'START_END_MARKER'
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=HIDDEN"></script> (confidential)
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());
  gtag('config', 'HIDDEN');  (confidential)
</script>
START_END_MARKER;
require_once("$IP/extensions/ConfirmEdit/QuestyCaptcha.php");
$wgReCaptchaPublicKey = '6LeUmHAfAAAAAIN_jWSSof4nWyxwC3cvPRe-fqM3';
$wgReCaptchaPrivateKey = '6LeUmHAfAAAAAAvnYsWc3kbcdxVxPyc5al04Ttnm';
$wgGroupPermissions['*' ]['skipcaptcha'] = false;
$wgGroupPermissions['user' ]['skipcaptcha'] = false;
$wgGroupPermissions['autoconfirmed']['skipcaptcha'] = false;
$wgGroupPermissions['bot' ]['skipcaptcha'] = false;
// registered bots $wgGroupPermissions['sysop' ]['skipcaptcha'] = false; $wgCaptchaTriggers['edit'] = true;
$wgCaptchaTriggers['create'] = true;
$wgCaptchaTriggers['createaccount'] = true;
$wgCaptchaTriggers['contactpage'] = true; // Adds reCAPTCHA to the contact page if created
require_once "$IP/extensions/Nuke/Nuke.php";
require_once "$IP/extensions/StopForumSpam/StopForumSpam.php";
$wgCaptchaQuestions = [
    "What disease/disorder is this website referring to?" => [ 'fibromyalgia' ]
];
$wgShowExceptionDetails = true;
Thepainking (talk) 15:50, 31 May 2022 (UTC)
$wgDBServer is missing a n ending quote mark. Not sure if that is actually the problem or introduced during redacting. I dont see any other issues. Bawolff (talk) 15:09, 1 July 2022 (UTC)
NOte: the last line (]; $wgShowExceptionDetails = true;) is written mistakenly. On my LocalSettings it is actually on separate lines as follows:
];
$wgShowExceptionDetails = true; Thepainking (talk) 15:58, 31 May 2022 (UTC)
Hi all.
I now got this internal error today:
[Yp90y1vSOvWxxKvcGHgkeQAAABI] /index.php?title=Main_Page MWException from line 1212 of /nfs/c10/h05/mnt/229444/domains/fibrowiki.com/html/includes/WebRequest.php: WebRequest::getRawIP : Could not determine the remote IP address due to multiple values.
Backtrace:
  1. 0 /nfs/c10/h05/mnt/229444/domains/fibrowiki.com/html/includes/WebRequest.php(1239): WebRequest->getRawIP()
  2. 1 /nfs/c10/h05/mnt/229444/domains/fibrowiki.com/html/includes/Setup.php(740): WebRequest->getIP()
  3. 2 /nfs/c10/h05/mnt/229444/domains/fibrowiki.com/html/includes/WebStart.php(88): require_once(string)
  4. 3 /nfs/c10/h05/mnt/229444/domains/fibrowiki.com/html/index.php(39): require(string)
  5. 4 {main} Thepainking (talk) 15:58, 7 June 2022 (UTC)
What is the value of $_SERVER["REMOTE_ADDR"] during that error?
Possibly related to https://phabricator.wikimedia.org/T230029 Bawolff (talk) 15:11, 1 July 2022 (UTC)

Is there a way to tell a search engine that an "article" webpage is a series of articles?

Let's say I have an article named "Climate" and it's contains links to a series of articles on climate, from 1 to 5.

The webpage named "Climate" contains a small opener passage and then 5 links to articles right under it.


Can I add some magic word or something to let Google crawler "understand" that this is actually a series of articles? 79.178.153.224 (talk) 20:05, 17 May 2022 (UTC)

Should I do something like this at all? 79.178.153.224 (talk) 20:06, 17 May 2022 (UTC)
You could just have a template on each page linking to all the articles. That would be helpful for readers. I'm sure search engines are smart enough to work it out for themselves. I'm not aware of any magic words! Jonathan3 (talk) 10:31, 18 May 2022 (UTC)
In every child article I link, by template, to the parent article. 79.178.153.224 (talk) 07:59, 19 May 2022 (UTC)

Layout problem when changing language to french

Hello,

I installed MediaWiki with Softaculous on my personal website hosted on an A2hosting (shared host). By default it installs MediaWiki in English (1.37.2). When I change my LocalSettings.php $wgLanguageCode = "fr" and display my site on my browser I lose the layout (site theme). I have a text display old html style as if the CSS was not applied. What should I do to solve the problem?

Bonjour,

j'ai installé MediaWiki avec Softaculous sur mon site web personnel héberger sur un host sharé A2hosting. Par défaut il installe MediaWiki en français (1.37.2). Quand je change mon LocalSettings.php $wgLanguageCode = "fr" et que j'affiche mon site sur mon navigateur je perd la mise en forme (thème du site). J'ai un affichage texte style vieux html comme si le CSS ne s'appliquait pas. Que dois-je faire pour régler le problème ? Tiger4Tiger4 (talk) 03:05, 18 May 2022 (UTC)

That's very odd. Do you have a link to your site if public?
If you open the developer console in your web browser, are there any errors? In the network tab, if you go to load.php, do any of them have messages about exceptions if you open the load.php js/css resources? Bawolff (talk) 01:19, 19 May 2022 (UTC)

use constraints for properties on test.wikidata.org ?

I would like to know if i can use constraints for properties of datatype "quantity" in the test.wikidata.org page. If so, how do i add it to new properties that i make? Keystester (talk) 13:10, 18 May 2022 (UTC)

Change a "talk" namespace to a subject 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.


We used a script (https://github.com/hallowelt/migrate-confluence) to convert our confluence installation to Mediawiki. It does this by creating a new namespace for each confluence space. Unfortunately, it doesn't seem to be aware of the even/odd number system in Mediawiki that denotes regular pages and talk pages.

As such, a number of our imported spaces are appearing as just Talk/Discussion pages and can't be edited with the visual editor as well as some other side effects.

Is there any way to either force an odd numbered namespace to be presented as a regular subject namespace, or a way to move an odd numbered namespace to a new even numbered index? Mveinot (talk) 15:05, 18 May 2022 (UTC)

Odd namespace numbers are for associated talk pages and this can't be changed.
First of all, if the migration script has bugs, they should be reported upstream. If they fix it quickly enough, it may be safer to run the import again.
Otherwise, there's a quick way to move all pages from a namespace to another, by doing an update directly to the page table, updating from one page_namespace to another page_namespace. However, this will leave the database in an inconsistent state, and you should run rebuildall.php after the change to repopulate all links and references again.
If there are wiki links pointing to the affected pages, you should replace them by editing those pages. That can be done manually, by a bot, or you can try Extension:Replace Text Ciencia Al Poder (talk) 15:57, 18 May 2022 (UTC)
Thanks for this reply... this seems to be working. Mveinot (talk) 19:29, 18 May 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Source code button is not there

I'm trying to create a new wiki page but the edit source code button is not active or under Edit I can't activate the editor because the bar is not there.

Ich versuche eine neue Wiki Seite zu erstellen aber der Button Quelltext bearbeiten ist nicht aktiv beziehungsweise unter Bearbeiten kann ich den Editor nicht aktivieren, weil die Leiste nicht da ist. Beulemann (talk) 08:14, 19 May 2022 (UTC)

Please see "Post a new question" in the sidebar. Malyacko (talk) 11:40, 19 May 2022 (UTC)

I want to change the rewind link.

I want to change from [Rewind 1 edit] to [Rewind] but I don't know how to write CSS. 2400:4152:6600:2900:193A:461F:BA95:6D6B (talk) 08:14, 19 May 2022 (UTC)

Please follow "Post a new question" in the sidebar. What is "Rewind" and where to see that after which steps? Malyacko (talk) 11:40, 19 May 2022 (UTC)
Maybe it refers to the "[rollback 1 edit]" text on Special:RecentChanges. I guess "rewind" is a translation from a foreign language made just for the question here. I think if you edit MediaWiki:Rollbacklinkcount you can change that text. Jonathan3 (talk) 09:19, 20 May 2022 (UTC)
See also i18n and the ?uselang=qqx url parameter. Bawolff (talk) 09:41, 20 May 2022 (UTC)

Не раскрывается изображение

Создали свою страницу на викимедиа, в текст я добавила ссылку на изображение из викисклада

Схема переработки сырья
Схема переработки сырья

вот тут это изображение раскрывается, а на моей викистранице (закрытой) только надпись Файл:Снимок экрана 2022-05-06 в 10.54.16.png выходит. Подскажите, почему так? Inzilya Safargaleeva (talk) 09:24, 19 May 2022 (UTC)

Im not sure i understand (sorry) but do you have $wgUseInstantCommons=true; Bawolff (talk) 18:10, 21 May 2022 (UTC)

Synology & Visual Editor

Hi,

Ive installed the Mediawiki Package from synology on my Synology NAS.

Its Version 1.35.5-1050

The Visual Editor extension is included in this version and after reading this page Extension:VisualEditor#Installation it would appear that for basic operation there should be no further config required.

However i see no VisualEditor when i try to edit a page. Can anyone help me with diagnosing the problem - i contacted Synology Support and they just sent me here. Roycruse (talk) 09:32, 19 May 2022 (UTC)

We do not provide support for Synology. We are unfamiliar with their packaging and setup, they choose to include it, they are a commercial company, they provide the service. —TheDJ (Not WMF) (talkcontribs) 08:34, 24 May 2022 (UTC)
I had the same problem. When you set up Mediawiki, as part of its installation, on your Synology, make sure you click the options that engage VisualEditor. Then if the VE returns an error when you try to save the edited page, it means that there is another option which as to be set. For this go to: MainMenu (the four little boxes in the left corner of the Synology screen) / Web Station / on the left screen, click </> Script Language Settings / click MediaWiki and click Edit / click Extensions then at the very bottom of the list, click the zlib box. Philipteyssier (talk) 14:33, 8 June 2022 (UTC)
Works like a charm! Thanks a lot for the hint!
----DSM 7.2
MediaWiki 1.39 219.104.86.69 (talk) 08:38, 24 June 2023 (UTC)
Hey @Philipteyssier!
Same issue... And it worked! Thank u! Alex.barbaron (talk) 21:15, 15 July 2023 (UTC)
Thank you @Philipteyssier. I've added this to the Troubleshooting section. —TheDJ (Not WMF) (talkcontribs) 12:29, 18 July 2023 (UTC)
Hey @Philipteyssier thank your for your reply!
I have the same issue as Roycruse.
I followed your instructions to enable the zlib extension for wikimedia in the web station. Unfortunately I still get the following error when trying to edit a page with the visual editor:
Error contacting the Parsoid/RESTBase server: (curl error: 6) Error
I restarted the web station and wikimedia, but the error remains.
Do you habe any other suggestions to fix the issue? Thanks!
Apple2207 95.208.248.249 (talk) 20:45, 27 July 2022 (UTC)
Hey @Philipteyssier,
thank you for your answer which solved my problem. now I can save my articles just as expected.
Decu 87.158.65.44 (talk) 12:44, 9 December 2022 (UTC)
BTW. I haven't used this tutorial myself, but this https://mariushosting.com/how-to-install-mediawiki-on-your-synology-nas/
describes how to run MediaWiki yourself in a docker container on Synology. That decouples you from the Synology packages. More control, but also more responsibility of course. Just wanted to give people more options. —TheDJ (Not WMF) (talkcontribs) 12:31, 18 July 2023 (UTC)
This solved my Problem too. Thanks a lot. 178.25.172.77 (talk) 08:51, 18 July 2024 (UTC)

Facing issues with importing dump

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.


Getting this error after importing my custom made wiki dump


There is currently no text in this page. You can search for this page title in other pages, search the related logs, or create this page.

In history page bytes getting added for the first time but getting error in loading the page

does it related to revision, origin, id tags that I am using in xml dump?


visual editor error - Could not find latest revision for title

source editor error - The revision #0 of the page named "एसर क्रोमबुक टैब 10" does not exist.

This is usually caused by following an outdated history link to a page that has been deleted. Details can be found in the deletion log.


When i see history of one of the article data imported but not able to access the article

when i tried creatiing page with Mediawiki API I am getting this error

{'error': {'code': 'edit-gone-missing', 'info': 'Could not update the page. It appears to have been deleted.'


Using Mediwiki 1.37.2


Can anyone help on this

Resolved - Issue with timestamp in xml dump

commented out it then import works fine. Ramu ummadishetty (talk) 12:02, 19 May 2022 (UTC)

The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

2022wikitext editor cancel

Hello,

on which way I can cancel "2017 wikitext editor" from my User page. On my "settings" it is white but still it exists "2017 wikitext editor".

Regards, ~ Wname1 (talk) 20:01, 19 May 2022 (UTC)

Hi, please see "Post a new question" in the sidebar. Thanks. Malyacko (talk) 04:49, 20 May 2022 (UTC)
see Extension:Visualeditor PetaloAzul (talk) 05:49, 20 May 2022 (UTC)

Remove extensions from URLs of Tools

Hello! I'm not sure if this is the correct place to ask this question but...

I recently activated the webservice for my tool in ToolForge and created a website with 2 pages (the main one + one other). Things worked fine as expected. However the other page shows /Pagename.html in the URL. I read online that to remove it either you should be doing something with the directory hierarchies which sort of spoofs it or you should change your .htaccess file. I also read from an old discussion in WikiTech that ToolForge doesn't make use of that file anymore given that it uses Lighttpd and now I'm kinda lost. Any kind of help would be appreciated as this is the first time I deal with web developing. Klein Muçi (talk) 02:42, 20 May 2022 (UTC)

Hi, please see wikitech:Portal:Toolforge as this support desk is for MediaWiki. Malyacko (talk) 04:48, 20 May 2022 (UTC)
I did see it but there are no forums present beside chats and emails. :/ Klein Muçi (talk) 12:36, 20 May 2022 (UTC)
If using lighthttpd see https://wikitech.wikimedia.org/wiki/Help:Toolforge/Web/Lighttpd#URL_rewrite
If you have irc, you can also get help at #wikimedia-cloud on the libera irc network Bawolff (talk) 18:20, 20 May 2022 (UTC)
@Bawolff, can you maybe explain in a simpler language what am I supposed to do exactly? I should copy-paste one of those scripts and save it into a file on its own inside the public_html directory? What should be the name of that file? I use the default configuration so lighthttpd and kubernetes. Klein Muçi (talk) 07:41, 21 May 2022 (UTC)
I've never done it, but the docs suggest creating a file named .lighttpd.conf in the tool's home directory (not the public_html directory) containing something like:
url.rewrite-once += ( "^/pagename$" => "/pagename.html" )
Ymmv Bawolff (talk) 08:17, 21 May 2022 (UTC)
I see. Uhm... Shouldn't it be reversed given what I'm trying to achieve? I'll try either way anyway. Thank you! :) Klein Muçi (talk) 08:22, 21 May 2022 (UTC)
Tried both ways but it didn't have any difference. Thought I'd say this for archiving purposes in case anyone ever got interested in something similar. Thank you for trying to help anyway. :) Klein Muçi (talk) 09:13, 21 May 2022 (UTC)
No, scratch that. It actually works exactly as intended. I just needed to encode a special character I had in my URL for the regex to work.
Thanks a lot! Yet another time you've saved me from going to the IRC scary place. Klein Muçi (talk) 09:57, 21 May 2022 (UTC)

Create map using GeoData

Hi all, following feedback from users on my wiki I'd like to create a map that allows all articles to be viewed as points, using the coordinates input with the GeoData extension. Is this currently possible? Thanks Garuda3 (talk) 22:00, 20 May 2022 (UTC)
Welcome to MediaWiki. Please see "post a new question" in the sidebar. ↠Tanbirzx () 19:03, 22 May 2022 (UTC)
You could use the Cargo extension. Jonathan3 (talk) 08:43, 22 May 2022 (UTC)

Need these log problems be addressed?

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


MediaWiki 1.37.2, PHP 7.4.29 (litespeed), MySQL 5.6.51-cll-lve, http://horawiki.org/

Hi. I'm trying to improve the slow behavior of my wiki. I suspect the real problem is load at the hosting service (GoDaddy) but I'm grasping at every straw.

I'm currently getting lots of logged warnings, and the question is whether they should be addressed. They're of two kinds:

1) PHP Deprecated, for Title::isWatchable and User::isLoggedIn and ContentHandler::getForTitle and maybe others, called from MinervaNeue and MobileFrontEnd and maybe others.

2) PHP Notice for undefined properties stdClass::$page_namespace and stdClass::$page_title, in includes/Title.php.

Are any of these not ignorable?

BTW: I haven't set up any cacheing because the site is very low traffic: At most a few thousand hits per day (including everything) and a handful of edits per month. But I'll cheerfully go that route if it's a good idea despite the low traffic.

Thanks, as always, for your help. Larrydberg (talk) 23:08, 20 May 2022 (UTC)

these are probably not causing your performance issues.
However they shouldn't be happening and may indicate a buggy or out of date extension. Make sure all skins/extensions are the correct version for your version of mediawiki.
For caching - there are different types, some more helpful than others. Object caching ($wgMainCacheType) is very important, and will improve performance even on low traffic sites. Bawolff (talk) 08:24, 21 May 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

403 Forbidden by loading WikiEditor (Windows IIS)

Hi,

I just installed MediaWiki on a new webspace, but I get a 403 Forbidden if for example the WikiEditor is loaded.

I have the following MediaWiki configuration:

MediaWiki   1.37.2

PHP     7.3.33 (cgi-fcgi)

Server Windows Server IIS

I set up the WikiEditor in the LocalSettings.php and it is shown as Extension in the Versions-Page (0.5.3).

When I edit a page in the wiki, there is no editor shown and when I look at the Firebug Errormessages I got a 403 error for the File

https://wiki.lothron.de/load.php?lang=de&modules=jquery%2Coojs%2Coojs-ui-core%2Coojs-ui-widgets%2Csite%7Cjquery.client%2Ccookie%2ChighlightText%2ClengthLimit%2CmakeCollapsible%2Csuggestions%2CtextSelection%2Cthrottle-debounce%2Cui%7Cjquery.makeCollapsible.styles%7Cmediawiki.String%2CTitle%2Capi%2Cbase%2Ccldr%2CconfirmCloseWindow%2Ccookie%2Cicon%2CjqueryMsg%2Clanguage%2Cstorage%2Ctemplate%2Cuser%2Cutil%7Cmediawiki.action.edit%7Cmediawiki.action.edit.collapsibleFooter%2CeditWarning%7Cmediawiki.language.specialCharacters%7Cmediawiki.libs.pluralruleparser%7Cmediawiki.page.ready%7Cmediawiki.page.watch.ajax%7Cmediawiki.widgets.visibleLengthLimit%7Coojs-ui-widgets.icons%7Coojs-ui.styles.icons-alerts%2Cicons-content%2Cicons-editing-advanced%2Cicons-editing-citation%2Cicons-editing-core%2Cicons-editing-list%2Cicons-editing-styling%2Cicons-media%7Cskins.monobook.scripts%7Cuser.defaults&skin=monobook&version=yljmj

If I try to open the link without the modules like this it will load the load.php without errors.

https://wiki.lothron.de/load.php?lang=de&skin=monobook&version=yljmj

Are there any special folders to CHMOD on a windows server to get mediawiki run?

Regards,

Stephan Lothron (talk) 07:41, 21 May 2022 (UTC)

Check your webserver error log, it will hopefully tell you why the page was forbidden.
This is probably not a chmod (or cacls or whatever windows calls it) issue. Bawolff (talk) 08:20, 21 May 2022 (UTC)
Can find only, that is a 403.0 error für the GET request of the link above.
There are some hint the web that this related to SSL certificates. But the webspace is secured as all my other webspaces with a LetsEncrypt certificat. Lothron (talk) 09:12, 21 May 2022 (UTC)
In my experience 403s that only occur on one or two urls, are generally related to WAFs like mod_security being carelessly deployed and hitting false positives in MWs code. —TheDJ (Not WMF) (talkcontribs) 08:32, 24 May 2022 (UTC)

"read-only"-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 there,

I am still very new to this software. Normally, this program is designed for the collaboration of larger groups, however, I would like to write a kind of encyclopedia on a specific subject. The result should be readable only afterwards, but it doesn't need any big functions to edit. For example, can I somehow hide the history for non-logged-in users or would I have to manually delete the history on every single page? Unfortunately, individual markers would still remain, with the indication that a deletion was made there.

It would be great if the reader could finally just view the "end result" of every page, or if you could even disable as many things as possible for editing. What is the best way to proceed? Is there a way to completely disable this history for readers or a function to delete this history globally? Are there other things that should be considered? (have tried a few on a private page so far.) thank you very much! Sockerz (talk) 09:43, 21 May 2022 (UTC)

I had exactly the same question and solved it for my encyclopaedia. It is read-only for the public, except for comments or discussion, but that can be disabled as well. History and several other functions cannot be accessed without login. See Manual:Preventing access! Redundant-decadence (talk) 12:08, 21 May 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

change title of a page

I want to change the title of a single page, but the "copy" function is not working, because I just want to change the title of the page from uppercase to lowercase - as the page still exists as a "delete-log" it still keeps the same writing :( what can I do?

thank you Sockerz (talk) 13:20, 21 May 2022 (UTC)

Which copy function you meant?
You can change the page title by moving it (source edit). ↠Tanbirzx () 18:56, 22 May 2022 (UTC)

I forgot my user name & password

I forgot my username & password & I need assistance. Can someone help me please? 2601:483:C480:710:65B8:630B:93CC:593 (talk) 17:23, 21 May 2022 (UTC)

Create a new account. Bawolff (talk) 17:55, 21 May 2022 (UTC)
I don't want to. 2601:483:C480:710:65B8:630B:93CC:593 (talk) 17:58, 21 May 2022 (UTC)
If you don't know the username and address then nobody can help with a key to access that address... Malyacko (talk) 20:31, 21 May 2022 (UTC)
You might be able to do it using your email address: Help:Reset password. Jonathan3 (talk) 08:41, 22 May 2022 (UTC)

Error: expandTemplate: template

https://uk.wikipedia.org/wiki/Japan_Tobacco


Помилка Lua: expandTemplate: template "lang-ja-hani" does not exist.

JT 95.67.19.130 (talk) 18:16, 21 May 2022 (UTC)

The error seems pretty self-explanatory Bawolff (talk) 23:22, 21 May 2022 (UTC)

Database setup error

Trying to fresh install 1.37.2. I see:


"[random string] /w/mw-config/index.php?page=Install Wikimedia\Rdbms\DBQueryError: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading or after adding a new extension?

Please see https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Upgrading and https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:How_to_debug for more information."


How do I backtrace to see more? Which query failed? This user is fully granted on the DB. 108.39.140.52 (talk) 03:09, 22 May 2022 (UTC)

It seems to get more output I have to create a LocalSettings.php...which messes with the installer. 108.39.140.52 (talk) 03:14, 22 May 2022 (UTC)
Could you elaborate what's unclear on Special:MyLanguage/Manual:How to debug? Thanks Malyacko (talk) 16:25, 22 May 2022 (UTC)

How can I only load template and modules from enwiki dump

I would like to load only template and module pages from wikipedia data dumps to my database in installation of mediawiki. Is this possible? Even after loading, How can I identify if a page is a template or module page?

Thank you Sajangohil11 (talk) 18:08, 22 May 2022 (UTC)

Possible bug in template page information

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 have a potential bug. It may no longer be relevant so I'm asking for guidance here.

Page information on a template has a section "Page properties" with (on my wiki) a subsection "Pages transcluded on", a bulleted list of page titles. But the titles are all empty: You see only the bullet plus an "(edit)" link for an empty title. Example here.

When requesting this page info two warnings are logged for each list member: $page_title and $page_namespace are undefined. The offending code is includes/Title.php line 3158 where these two properties are referenced in a routine that seems to be invoked only when getting page info on a template.

The same page on other wikis, e.g. mediawiki.org, doesn't have the "Pages transcluded on" subsection and everything looks fine. This is no doubt because my version is older. But the same code appears in 1.39.0-wmf.12 so possibly there's latent buggy code even though its results aren't displayed. Send to Phabricator?

horawiki.org, MediaWiki 1.37.2, PHP 7.4.29 (litespeed), MySQL 5.6.51-cll-lve Larrydberg (talk) 19:10, 22 May 2022 (UTC)

Api works http://horawiki.org/api.php?titles=Template:Documentation&action=query&prop=info%7Ctranscludedin%7Ctemplates so not a db info.
Could you check if its still there after disabling all extensions, to narrow down root cause? If yes,it probably makes sense to file a phab bug. Bawolff (talk) 20:44, 22 May 2022 (UTC)
Same behavior with all extensions disabled. I'll file a bug. Thanks. Larrydberg (talk) 00:20, 23 May 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

mw_config redirects to Mw_config even though I have renamed .htaccess

I am trying to update my wiki (wiki.polyinpictures.com) from 1.32.0 to 1.37.1.

I have renamed the .htaccess file in the new wiki folder, in accordance with this instruction:

It might happen that the web-updater does not seem to work: Instead of seeing the initial language selection screen, you might see an empty wiki page, possibly with some error message. In this case it is most likely that your web server uses Rewrite Rules (most likely for short URLs), which do not show you the updater at mw-config/, but a wiki page at Mw-config/, with capital "M". In this case, rename the .htaccess file for the time of the update. Then you should be able to access the web-updater.

It didn't work, and I don't know what to try next. Am I supposed to rename some other .htaccess file? Are there other causes for this issue?

Thank you in advance. This has been causing me a lot of stress for a long time, and I really, really need to update my wiki because it's covered in error messages all the time and now for unknown reasons I am unable to upload media.

Edit: Here's my version info:

Product Version
MediaWiki 1.32.0
PHP 8.0.17 (litespeed)
MySQL 5.7.23-23
ICU 69.1

Cassolotl (talk) 19:11, 22 May 2022 (UTC)

It could be something in your apache httpd.conf. you should disable all rewrite rules temporarily.
Alternatively, just use the cli update.php Bawolff (talk) 20:37, 22 May 2022 (UTC)

Call to undefined method Wikibase\Repo\WikibaseRepo::getDefaultInstance()

Hi, I need some advice, I have an own standalone mediawiki instance with wikibase extension.

In the past, I've imported Qitems and properties using the WikibaseImport extension. This now fails with this exception backtrace,

# php maintenance/importEntities.php --query P31:Q5

[5de1fd28e98e57b7da508039] [no req]   Error: Call to undefined method Wikibase\Repo\WikibaseRepo::getDefaultInstance()

Backtrace:

from /crypt/htdocs/geneawiki/mediawiki-1.37.1/w/extensions/WikibaseImport/maintenance/importEntities.php(112)

#0 /crypt/htdocs/geneawiki/mediawiki-1.37.1/w/extensions/WikibaseImport/maintenance/importEntities.php(51): Wikibase\Import\Maintenance\ImportEntities->newEntityIdListBuilderFactory()

#1 /crypt/htdocs/geneawiki/mediawiki-1.37.1/w/maintenance/doMaintenance.php(108): Wikibase\Import\Maintenance\ImportEntities->execute()

#2 /crypt/htdocs/geneawiki/mediawiki-1.37.1/w/extensions/WikibaseImport/maintenance/importEntities.php(133): require_once(string)

#3 {main}

According to https://phabricator.wikimedia.org/T280984 , it appears the getDefaultInstance() method was removed around April - May 2021,

the WikibaseImport code ( https://github.com/filbertkm/WikibaseImport ) looks untouched since May 7, 2016,

is this code maintained at all ? No39188 (talk) 20:08, 22 May 2022 (UTC)

Probably not then. Have you asked it's maintainer / author ? —TheDJ (Not WMF) (talkcontribs) 08:28, 24 May 2022 (UTC)
I'm not sure who to ask here, it looks like the git repo was forked to github.com as /Wikidata/WikibaseImport/ . There are some pending pull requests there partly addressing my issue, but they are pending for more than a year.
Anyway, I applied some changes out of the pull requests and one of my own to my copy of importEntities.php and got the script working for me, but I lack the knowledge how to commit.
Thanks. No39188 (talk) 12:21, 24 May 2022 (UTC)

Edit page modification

Hey, beginner's question here

I'm planinning on adding restriction of the articles to particular user groups and I'd like to add the checkboxes for groups selection from the Edit page

I'm lost though how exactly to add or modify the functionality of Edit form Japanczyk (talk) 22:05, 22 May 2022 (UTC)

Have you considered using the already builtin page protection
Modifying edit page isn't the easiest. You can use hooks like manual:hooks/EditPage::importFormData (there are a bunch, that is probably not the best one) to modify public instance variables of the EditPage class, like editFormTextBottom (https://github.com/wikimedia/mediawiki/blob/master/includes/EditPage.php#L353 )
Maybe look at what other extensions do. I think FlaggedRevisions modifies the edit form, so does extension:TemplateSandbox Bawolff (talk) 05:32, 23 May 2022 (UTC)

Redirect loop, behind proxies

Using the official dockerhub container: mediawiki:1.37.2

DB is official mariadb container (latest, as of today)


$wgServer              = "https://development.mysite.com";
$wgCanonicalServer     = "https://development.mysite.com";
$wgScriptPath          = "/wiki";


Sitting behind: haproxy > varnish > nginx > container haproxy terminates ssl and redirects http to https

varnish just caches and passes to backend, in this case nginx.

nginx config:

       location /wiki/ {
           proxy_set_header Host development.mysite.com;
           proxy_set_header X-Forwarded-Proto https;
           proxy_set_header Access-Control-Allow-Origin: https://development.mysite.com;
           proxy_pass http://127.0.0.1:32583/;
       }

container listening on 32583 (that's correct).


Site working perfect on 1.31, as soon as I try to go latest (1.37.2), I see these redirect loops.

So, it just throws 301 after 301 in a loop. Sending the requested url "https://development.mysite.com/wiki/index.php/Main_Page" to the exact same location...

Logs from the container just show exactly that, with no real reason as to why. 124.47.132.150 (talk) 01:26, 23 May 2022 (UTC)

Editing into 1000+ pages

Hi Team,

We are using documents into 1000+ pages , now the server where those docs are replaced to new one .so we need to do changes into 1000+ pages.

Please suggest any extension or plugin by which we can do it automatically. Pooja2425 (talk) 06:58, 23 May 2022 (UTC)

Pywikibot Bawolff (talk) 07:38, 23 May 2022 (UTC)
See also Extension:Replace_Text, which is bundled with MediaWiki. Osnard (talk) 08:45, 23 May 2022 (UTC)
Maybe you could use API:Main_page. Jonathan3 (talk) 12:42, 23 May 2022 (UTC)

use #ask to query the current single pagek

I want to use #ask in one template, and how can it only query the current single page that uses this template? I try to use magic words PAGENAME like {{#ask: [[PAGENAME]]|?ExpertID}} but it doean't work. Thank you! 2408:8410:6031:339D:6C19:B057:8687:A42C (talk) 13:14, 23 May 2022 (UTC)

Hi, what is #ask? Please also see "Post a new question" in the sidebar. Thanks. Malyacko (talk) 15:28, 23 May 2022 (UTC)
 #ask is a semantic mediawiki thing.
For starters the syntax is {{PAGENAME}} Bawolff (talk) 18:42, 23 May 2022 (UTC)
thx but I have tried {{PAGENAME}} and some other similar syntaxs too, and they all didn't work 2408:8410:6031:339D:146B:110F:FB60:15ED (talk) 04:41, 24 May 2022 (UTC)
To be clear, what i was saying was [[{{PAGENAME}}]] Bawolff (talk) 01:07, 25 May 2022 (UTC)
it works, thank you very much! 42.3.19.69 (talk) 16:13, 25 May 2022 (UTC)

Deleting old data

Hi, there is a page on me which i made during my studies but i have complete my degree now and my credentials no longer work for me to log back in and remove the page. I no longer want my details on there because when you google my name the wiki page comes up. Please can you help with this. Tasmina.c23 (talk) 18:49, 23 May 2022 (UTC)

for non wikimedia websites (which i presume is what you are referring to), you have to contact the admins of that website. Bawolff (talk) 19:29, 23 May 2022 (UTC)
How would i find the admin because the help section takes me straight to you. I think the extire page “our commons wiki” is no longer in use but my page still exists. 2A00:23C8:5214:8101:2DD0:F4CD:D565:1BB3 (talk) 20:25, 23 May 2022 (UTC)
Most wikis have an "about" page, linked from the sidebar or the footer of the page. Have you checked that ? —TheDJ (Not WMF) (talkcontribs) 08:25, 24 May 2022 (UTC)
Okay thank you 2A00:23C8:5214:8101:2DD0:F4CD:D565:1BB3 (talk) 20:20, 23 May 2022 (UTC)

Page permissions

Can someone provide a link or provide simple instructions on how, having created a new page, to set said page so that the public can view it. I have searched the wiki help and am getting all kinds of code to type for database editing and such. Surely it must be simpler than that. 31.187.0.9 (talk) 21:08, 23 May 2022 (UTC)

The public can view pages by default. Bawolff (talk) 21:48, 23 May 2022 (UTC)
I created a page. Which I can view. But when I view it in a private window, I get the message: "You do not have permission to view this page". This is what the public would see. So perhaps I am doing something wrong? 31.187.0.9 (talk) 23:14, 23 May 2022 (UTC)
it depends on how the wiki you are using is configured. It can be configured so everything is private with no exceptions. We can't really say anything without knowing how the wiki in question was setup. Bawolff (talk) 01:31, 24 May 2022 (UTC)

Question regarding setting of new Vector skin

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,

Could you please let me know how:

Hi, can anybody help please> How to remove text based logo at 1.37 and insert png logo? Fokebox (talk) 11:47, 27 May 2022 (UTC)
Resolved! Fokebox (talk) 14:40, 30 May 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Templates act weird after MediaWiki update

Hi, I have a problem with the portable infoboxes in my wiki, after finally updating it to the current version.

These p-tags appeared and I don't know where they come from

https://degwiki.com/wiki/The_Insulated_World_(2018)

and also, the whole infobox has more empty space

this is my commons.css: https://degwiki.com/wiki/MediaWiki:Common.css

and this is the template for the infobox: https://degwiki.com/wiki/Template:Release

here you can see what it looked like pre-update: https://web.archive.org/web/20210618215104/https://degwiki.com/wiki/The_Insulated_World_(2018)

please, how can I fix this? :/ Seelentau (talk) 16:40, 24 May 2022 (UTC)

It doesn't answer your question (maybe the Portable Infoboxes extension version you have isn't compatible with your MW version?) but I like your your edit/action URLs are formatted, e.g. https://degwiki.com/wiki/edit/The_Insulated_World_(2018) I've created a separate topic here, if you'd be willing to answer: Project:Support desk/Flow/2022/05#h-Action_URLs_in_format_example.com/wiki/edit/Pagename-2022-05-25T16:43:00.000Z :-) Jonathan3 (talk) 16:43, 25 May 2022 (UTC)
Everything is up to date. In the meantime, I found out that MediaWiki adds those paragraph tags everywhere. Just compare old vs new code:
pre-update:
<h2 class="pi-item pi-item-spacing pi-title" data-source="title">鬼葬</h2>
post-update:
<h2 class="pi-item pi-item-spacing pi-title" data-source="title"><p>鬼葬</p></h2> Seelentau (talk) 19:18, 25 May 2022 (UTC)

Disable <nowiki> tag

Greetings, dear friends!

Can you please tell me how to disable the <nowiki> tag?

I need to embed many text files containing hyperlinks. But these hyperlinks are pasted as plain text because of the <nowiki> tag. Is it possible to disable this feature globally?

Thank you! 178.66.61.75 (talk) 19:10, 24 May 2022 (UTC)

You could not use visual editor Bawolff (talk) 01:04, 25 May 2022 (UTC)

Language messages do not work in VisualEditor

Language messages do not work in the VisualEditor extension. Shows "⧼visualeditor-ca-editsource⧽" instead of "Edit source", "⧼visualeditor-mweditmodeve-tool-current⧽" instead of "Visual editing" etc. ZingerY (talk) 19:57, 24 May 2022 (UTC)

Please see "Post a new question" in the sidebar, and provide your extension version, and how you installed translations. Malyacko (talk) 20:55, 24 May 2022 (UTC)
MediaWiki 1.37.2
PHP 7.3.31 (apache2handler)
MySQL 5.7
VisualEditor 0.1.2
Just added
wfLoadExtension( 'VisualEditor' );
to the settings file LocalSettings.php ZingerY (talk) 22:31, 24 May 2022 (UTC)

Delete the edit history

I made an edit to an article and I reverted it; and I would like to delete the text I put in the edit history “Edit summary” or the entire history entries; is this possible? 170.51.165.167 (talk) 00:54, 25 May 2022 (UTC)

It depends what user rights your account has, see Help:RevDel Bawolff (talk) 01:03, 25 May 2022 (UTC)
I am a basic user. Nicolás Iván Giachetta (talk) 01:05, 25 May 2022 (UTC)
Generally you would have to contact an admin of the wiki.
If this is for a wikimedia website (e.g. Wikipedia) and the information was personally identifying, see https://meta.m.wikimedia.org/wiki/Oversight_policy Bawolff (talk) 01:10, 25 May 2022 (UTC)
Thanks Bawolff I will see if I can contact an administrator; greetings from Argentina. Nicolás Iván Giachetta (talk) 01:26, 25 May 2022 (UTC)

Multiplayer problemm

Hello. How can I play Multiplayer? If i press multiplayer without VPN, game list is not shown, but with vpn gamelist is shown, but i can`t connetc to any server. How can i fix it? 176.113.251.89 (talk) 05:00, 25 May 2022 (UTC)

You are in the wrong place Bawolff (talk) 05:30, 25 May 2022 (UTC)
I know, it`s not my choice :( 176.113.251.89 (talk) 05:33, 25 May 2022 (UTC)
I just mean, this is a support site for mediawiki. We don't know anything about VPNs or video games, so we cant help you. Bawolff (talk) 06:16, 25 May 2022 (UTC)

Statistics

Is there anywhere a tutorial about the mediawiki intern statistics like statistics of users and so on? Wikimari2022 (talk) 08:03, 25 May 2022 (UTC)

Special:Statistics Malyacko (talk) 13:46, 25 May 2022 (UTC)

Issues with pages not formatting correctly when upgrading from 1.35 to 1.36

Hi all,

After upgrading from mediawiki 1.35 to 1.36 the formatting of my pages just show text and no formatting or layout, i've copied all the images, extensions etc across to 1.36 but everything just shows as text albeit things work url's etc. If I browse to the 'URL/mw-config/' section for the 1.36 installation this works fine 'layout pictures etc'. As a test I tried reverting back the main wiki folder 'where the localsettings.php file lives' to 1.35 which then resolves the page issues. I'm i missing something that I need to copy across, could this be missing CSS or something like config?

To add to this i've just put some debugging on the main page and got the following:

Deprecated: SkinVector overrides setupSkinUserCss which was deprecated in MediaWiki 1.32. [Called from OutputPage::getRlClient in mediawiki-1.36.0/OutputPage.php at line 3017] in /mediawiki-1.36.0/includes/debug/MWDebug.php on line 376

Deprecated: Use of Skin::setupSkinUserCss was deprecated in MediaWiki 1.32.

Called from SkinVector::setupSkinUserCss in /mediawiki-1.36.0/skins/Vector/includes/SkinVector.php at line 81]

Any help would be appreciated.


Thanks Ljkennedy2000 (talk) 08:03, 25 May 2022 (UTC)

Did you properly upgrade your Vector skin? Also note that 1.36.0 is outdated and insecure. Please upgrade for your own safety. Malyacko (talk) 09:16, 25 May 2022 (UTC)
I think this is sorted now, I re-added the vectors skins from the 1.36.0 core installation and it's formatting the page as it should. Thank you for your help with this. Ljkennedy2000 (talk) 10:11, 25 May 2022 (UTC)
Hi Malyacko,
Thanks for the quick response. I've recently inherited this system so my knowledge is pretty low, how would I upgrade the Vector skin? sorry if this sounds a silly question. I will be upgrading it to the latest version just trying to get past this stage :)
Thanks Ljkennedy2000 (talk) 09:22, 25 May 2022 (UTC)

I need to change a title on wikipedia because it has a spelling mistake how do I change it?

https://hu.wikipedia.org/w/index.php?title=G%C3%B3d%C3%A1ny_S%C3%A1ndor&stable=0&shownotice=1 The title needs to be "Godány" and not "Gódány" 90.64.124.210 (talk) 08:23, 25 May 2022 (UTC)

just go to title and make change 157.97.163.205 (talk) 08:56, 25 May 2022 (UTC)
Help:Editing Malyacko (talk) 09:14, 25 May 2022 (UTC)
it wont let me change the title, I changed all of the other spelling mistakes which are waiting for approval so they wont be visible to you yet but I cannot change the page title 90.64.124.210 (talk) 09:25, 25 May 2022 (UTC)
I am not the admin of the page to be clear. 90.64.124.210 (talk) 09:35, 25 May 2022 (UTC)
This probably requires rights to rename/move the page. Could you bring this up on https://hu.wikipedia.org/wiki/Wikip%C3%A9dia:Kocsmafal please? We are not admins on Hungarian Wikipedia either, as this is the help desk for the MediaWiki software. Thanks. Malyacko (talk) 13:45, 25 May 2022 (UTC)
You generally need to be logged in with an account that has existed for a while to rename pages.
See help:Moving a page for more information. Bawolff (talk) 01:58, 26 May 2022 (UTC)

Action URLs in format example.com/wiki/edit/Pagename

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


I've seen this on https://degwiki.com/wiki/edit/The_Insulated_World_(2018) and wonder how it's done. Thanks. Jonathan3 (talk) 16:43, 25 May 2022 (UTC)

https://www.mediawiki.org/wiki/Manual:$wgActionPaths
I believe this is what I used, at least according to the chat with the server owner. :) Seelentau (talk) 17:39, 25 May 2022 (UTC)
Thank you. Why had I never seen this before? :-) Jonathan3 (talk) 22:03, 25 May 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Can I set different pages as main page for separate skins?

Not possible.

For example, set Project:Main page as main page for skin Vector and set Main page (in main namespace) as main page for skin Timeless. Is it possible? Teetrition (talk) 02:54, 26 May 2022 (UTC)

Not possible. Bawolff (talk) 18:22, 27 May 2022 (UTC)
Thanks. Teetrition (talk) 07:16, 28 May 2022 (UTC)

color of sitename in vector skin

how can I change sitename link in the upper left corner. I changed my logo, but sitename is created from mediawiki. Can I change the color of this sitename? see at https://antibiotika-fibel.de the sitename antibiotika is blue. I think cause is it a link. On the mediawiki site it is a picture. But I do not know how to change it (like "mediawiki" right of the logo)? 31.17.255.177 (talk) 08:49, 26 May 2022 (UTC)

You need to set a "word mark" logo for Manual:$wgLogos, otherwise it will fallback to logo+link —TheDJ (Not WMF) (talkcontribs) 08:22, 31 May 2022 (UTC)

MediaWiki internal error, GroupPermissionsLookup::getGroupPermissions() must be of the type array, null returned

Dear support team,

i created a new user account and after login i got this kind of error log:


Original exception: [Yo9ML669KSz_XHwmMx9EPwAABGA] /index.php?title=Hauptseite TypeError: Return value of MediaWiki\Permissions\GroupPermissionsLookup::getGroupPermissions() must be of the type array, null returned

Backtrace:

from /mnt/web412/c0/90/5210590/htdocs/wiki/includes/Permissions/GroupPermissionsLookup.php(103)

#0 /mnt/web412/c0/90/5210590/htdocs/wiki/includes/Permissions/PermissionManager.php(1523): MediaWiki\Permissions\GroupPermissionsLookup->getGroupPermissions()

#1 /mnt/web412/c0/90/5210590/htdocs/wiki/includes/Permissions/PermissionManager.php(1423): MediaWiki\Permissions\PermissionManager->getGroupPermissions()

#2 /mnt/web412/c0/90/5210590/htdocs/wiki/includes/Permissions/PermissionManager.php(1372): MediaWiki\Permissions\PermissionManager->getUserPermissions()

#3 /mnt/web412/c0/90/5210590/htdocs/wiki/includes/Permissions/PermissionManager.php(584): MediaWiki\Permissions\PermissionManager->userHasRight()

#4 /mnt/web412/c0/90/5210590/htdocs/wiki/includes/Permissions/PermissionManager.php(464): MediaWiki\Permissions\PermissionManager->checkReadPermissions()

#5 /mnt/web412/c0/90/5210590/htdocs/wiki/includes/Permissions/PermissionManager.php(311): MediaWiki\Permissions\PermissionManager->getPermissionErrorsInternal()

#6 /mnt/web412/c0/90/5210590/htdocs/wiki/includes/Permissions/UserAuthority.php(259): MediaWiki\Permissions\PermissionManager->getPermissionErrors()

#7 /mnt/web412/c0/90/5210590/htdocs/wiki/includes/Permissions/UserAuthority.php(205): MediaWiki\Permissions\UserAuthority->internalCan()

#8 /mnt/web412/c0/90/5210590/htdocs/wiki/includes/user/User.php(4319): MediaWiki\Permissions\UserAuthority->authorizeRead()

#9 /mnt/web412/c0/90/5210590/htdocs/wiki/includes/MediaWiki.php(225): User->authorizeRead()

#10 /mnt/web412/c0/90/5210590/htdocs/wiki/includes/MediaWiki.php(930): MediaWiki->performRequest()

#11 /mnt/web412/c0/90/5210590/htdocs/wiki/includes/MediaWiki.php(564): MediaWiki->main()

#12 /mnt/web412/c0/90/5210590/htdocs/wiki/index.php(53): MediaWiki->run()

#13 /mnt/web412/c0/90/5210590/htdocs/wiki/index.php(46): wfIndexMain()

#14 {main}


Any ideas? 109.43.51.139 (talk) 10:20, 26 May 2022 (UTC)

I forgot: MediaWiki 1.37, PHP 7.4 217.91.157.155 (talk) 11:06, 26 May 2022 (UTC)

How can I find when a phrase was added to a page ?

Hi ! There is "Blame" that is part of the XTools project ( https://webapps.stackexchange.com/questions/35906/find-when-a-phrase-was-added-to-a-wikipedia-page ) but that is ONLY for Wikipedia not any other MediaWiki installation. I have a private wiki which is basically note taking and lists. I sometimes add a time stamp but many times I do not and sometimes I want to know the date and time when I added a particular entry. Can this be done through the API or using an SQL query ? I have some experience with SQL so can use that via command line. Cheers. Michael Z Freeman (talk) 17:17, 27 May 2022 (UTC)

Not easily. The data of course is all there, so you could in theory do it with a very complex join or script. Bawolff (talk) 18:21, 27 May 2022 (UTC)
Yes, thanks. I checked XTools again (after all how do they do it?) and found that XTools/Blame is based on WikiWho ( https://www.f-squared.org/wikiwho ) which is written in Python. It's aimed at Wikipedia ,but after all WP is running on Mediawiki. i should be able to modify it if it does not run out of the box. Michael Z Freeman (talk) 08:59, 28 May 2022 (UTC)
Their repo is here: https://github.com/wikiwho/WikiWhoTheDJ (Not WMF) (talkcontribs) 08:18, 31 May 2022 (UTC)

Invalid Time Zone Error while installing

Hello, I'm trying to install mediawiki 1.39.0-alpha to Windows Subsystem for Linux which using Ubuntu 22.04 LTS. PHP version is 8.1.6.


When I go to welcome page, I get an error message.


[179976b38d28bf9f842574bd] /w/mw-config/index.php Wikimedia\Timestamp\TimestampException: Wikimedia\Timestamp\ConvertibleTimestamp::setTimezone: Invalid timezone.

Backtrace:

from /var/www/html/w/vendor/wikimedia/timestamp/src/ConvertibleTimestamp.php(365)

#0 /var/www/html/w/includes/MWTimestamp.php(177): Wikimedia\Timestamp\ConvertibleTimestamp->setTimezone()

#1 /var/www/html/w/includes/specials/SpecialVersion.php(258): MWTimestamp::getLocalInstance()

#2 /var/www/html/w/includes/installer/WebInstallerWelcome.php(38): SpecialVersion::getCopyrightAndAuthorList()

#3 /var/www/html/w/includes/installer/WebInstaller.php(271): WebInstallerWelcome->execute()

#4 /var/www/html/w/mw-config/index.php(82): WebInstaller->execute()

#5 /var/www/html/w/mw-config/index.php(40): wfInstallerMain()

#6 {main}


It says "The environment has been checked. You can install MediaWiki.", but under this green text, the error message has appeared.


I changed vendor/wikimedia/timestamp/src/ComvertibleTimestamp.php to show current timezone setting (as told at Project:Support desk/Flow/2013/12#h-[RESOLVED]_Fatal_exception_of_type_TimestampException_after_upgrading_to_Mediawi-2013-12-10T22:12:00.000Z ), but it seemed current timezone setting is empty.


How can I solve this problem? I uploaded the screenshot at IMGBB. my server address is http://se-a.swa.re.kr/w/, but I'll shortly shut down the computer. 하늘토끼 (talk) 16:41, 28 May 2022 (UTC)

Plus : I added 'date.timezone = Asia/Seoul' to php.ini. Screenshot on twitter
I restarted Apache2, wsl. I also rebooted the computer. The error still occurs.
I'm using mysql, version is 'Ver 8.0.29-0ubuntu0.22.04.2 for Linux on x86_64'
I'm using php, version is 'PHP 8.1.6 (cli) (built: May 17 2022 16:46:54) (NTS)' 하늘토끼 (talk) 16:45, 28 May 2022 (UTC)
Try setting $wgLocaltimezone in your LocalSettings.php – Ammarpad (talk) 21:48, 28 May 2022 (UTC)
I don't have LocalSettings.php(I'm newly installing the MediaWiki), and when I made LocalSettings.php by using vim, I can't enter to install page. Screenshot
I inserted the upgrade key in LocalSettings.php, but it doesn't work.
Update : I successfully setted $wgLocaltimezone, but the same error still occurs. What should I do? Screenshot I entered ':wq' to console several times, restarted apache2 several times, and rebooted computer several times, but the same error still occurs. 하늘토끼 (talk) 03:34, 29 May 2022 (UTC)
OK, I can reproduce this now, created bug report at phab:T309476. – Ammarpad (talk) 18:13, 29 May 2022 (UTC)

Help needed about OOUI

Hi dear community, I'm a sysop and interface admin on Turkish Wikipedia, right now I'm working on an AfD remarker gadget on the Turkish wiki for leaving opinions to candidate articles, I'm working on it for about 21 hours approximately but I have a problem with getting selected data with OOUI ButtonSelectWidget can you help me with this please, how can I get selected ButtonOptionWidget data? Doğu (talk) 02:07, 29 May 2022 (UTC)

List order of release plan

Hi,


A suggestion, that you, like the VERY good improvement og release train graph, improve the releseplan tables, i.e. that you list them in reverse order as of now.

When I lokke into the plan, I'm interested in the newest possible version, and find it a waste of time, to have to run through older versions ...


/René 2A02:AA7:460D:B088:9A:CDB8:13B4:2 (talk) 09:57, 29 May 2022 (UTC)

Which tables are you referring to? Bawolff (talk) 10:09, 29 May 2022 (UTC)

Shutdown computer

When I shutdown the computer, does the wiki work? 105.105.220.155 (talk) 10:40, 29 May 2022 (UTC)

If the wiki is hosted on the computer being shut down, then no, it won't work.
To avoid this, you should install the wiki on a server on the internet that's online 24h. This usually costs money.
See also Hosting services, for some hosting services that facilitate MediaWiki hosting. Ciencia Al Poder (talk) 10:48, 29 May 2022 (UTC)
Thanks. 154.121.52.181 (talk) 13:22, 30 May 2022 (UTC)

Remove a template from an article with API:Edit

Hi, how can I remove a template (eg:{{Sample }}) from an article with MediaWiki's API? Doğu (talk) 14:42, 29 May 2022 (UTC)

ECMAScript 5 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.


Hi, I'm getting this error ""JavaScript parse error (scripts need to be valid ECMAScript 5): Parse error: Missing ) in parenthetical in file 'MediaWiki:Gadget-AfDHelper.js' on line 748" for the below line, can you help me?

api.get(params).done(data => {
//
})
Doğu (talk) 18:19, 29 May 2022 (UTC)
"scripts need to be valid ECMAScript 5"
Arrow functions are ecmascript 6. —TheDJ (Not WMF) (talkcontribs) 08:05, 31 May 2022 (UTC)
Hi, I already solved thanks btw.
api.get(params).done(function(data) {
//
})
Doğu (talk) 14:55, 31 May 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Accesso alle pagine

Salve, non riesco più ad accedere ai contenuti, come devo procedere? 2001:B07:ADD:AA57:BC02:2408:B120:FE9E (talk) 19:25, 29 May 2022 (UTC)

Ora ho creato nuovamente un account, ma continuo a non vedere nulla! ELLEBI77 (talk) 19:28, 29 May 2022 (UTC)

VTE, collapse same line as title in nav bars.

How can the the VTE button and collapse button be moved to the same line as the navigation bar's title? See link for example.

https://gtnh.miraheze.org/wiki/Template:Version_history 84.211.61.21 (talk) 23:30, 29 May 2022 (UTC)

Password reset without email address

Hello,

One of my bots (User:सांगकाम्या) is now blocked from using AWB because I cannot clear a spam message someone posted to it, which is a result of my not remembering the password of this account after using it for many years on auto-fill.

When I go to reset password for सांगकाम्या, I'm not getting any emails, likely because I did not attach an email address. Now, in order to add an email address, I need to log in, which I cannot do because I do not have an attached email address :-(

This bot is operated by me and my primary account is User:अभय नातू. I am an admin and a 'crat on w:mr.

Can you please guide me in resetting my bot account password? Thanks! अभय नातू (talk) 01:16, 30 May 2022 (UTC)

Email ca@wikimedia.org
Be warned you need to have very solid proof that you really do own the account. Bawolff (talk) 02:30, 30 May 2022 (UTC)
Thank you. I will email and provide proof. अभय नातू (talk) 17:09, 30 May 2022 (UTC)
I you have autofill enabled, you can just open the preferences of your browser, go to "Security" and/or "Passwords" and simply retrieve the password from there. —TheDJ (Not WMF) (talkcontribs) 08:04, 31 May 2022 (UTC)

Increase speed of parsoid in integrated mode

I am using parsoid via cli `php parsoid/bin/parse.php --integrated --wt2html --addHTMLTemplateParameters --inputfile` I am using multiprocessing to make it parallel as I have lot of files (whole enwiki). Is there a better way to do this? Can I remove some things from parsoid which might not be necessary for wikitext to html conversion? I am using templaes and modules and for that i have added those pages to the database. I am using bitnami mediawiki AMI on aws, if that helps.

Thank you Sajangohil11 (talk) 21:07, 30 May 2022 (UTC)

Unable to load sub-wikis when multiple wikis enabled

Trying to setup multiple wikis on the format wiki.domain.com, wiki2.domain.com etc.


Successfully been using wiki.domain.com for months. Unable to get wiki2, wiki3 etc up and running.


When trying to add extra wikis, I try to follow this guide: Manual:Wiki family#Separate settings files


I've setup separate DBnames and DBusers for each sub-wiki, and I've created separate LocalSettings_SUBWIKINAME.php files.

I think DB setup is correct: If I copy LocalSettings_SUBWIKINAME.php to LocalSettings.php the corresponding sub-wiki loads just fine. I can add users and content etc., no DB errors are shown.


If I follow the guide and use the suggested script in LocalSettings.php, only my initial wiki.domain.com will load, everything else gives DB errors.


I suspect the LocalSettings_SUBWIKINAME.php configs are not being loaded. 188.176.161.203 (talk) 22:22, 30 May 2022 (UTC)

Sample error-log (sub-wiki name changed to "wiki2" in paste)
MediaWiki internal error.
Original exception: [4dcd5f89d3e4153ceb8216c6] /mediawiki/index.php/Main_Page Wikimedia\Rdbms\DBQueryError from line 1457 of /usr/share/mediawiki/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Query: SELECT page_id,page_namespace,page_title,page_restrictions,page_is_redirect,page_is_new,page_random,page_touched,page_links_updated,page_latest,page_len,page_content_model FROM `page` WHERE page_namespace = '0' AND page_title = 'Main_Page' LIMIT 1
Function: WikiPage::pageData
Error: 1146 Table 'wiki2.page' doesn't exist (localhost)
Backtrace:
#0 /usr/share/mediawiki/includes/libs/rdbms/database/Database.php(1427): Wikimedia\Rdbms\Database->makeQueryException()
#1 /usr/share/mediawiki/includes/libs/rdbms/database/Database.php(1200): Wikimedia\Rdbms\Database->reportQueryError()
#2 /usr/share/mediawiki/includes/libs/rdbms/database/Database.php(1653): Wikimedia\Rdbms\Database->query()
#3 /usr/share/mediawiki/includes/libs/rdbms/database/Database.php(1730): Wikimedia\Rdbms\Database->select()
#4 /usr/share/mediawiki/includes/page/WikiPage.php(380): Wikimedia\Rdbms\Database->selectRow()
#5 /usr/share/mediawiki/includes/page/WikiPage.php(398): WikiPage->pageData()
#6 /usr/share/mediawiki/includes/page/WikiPage.php(438): WikiPage->pageDataFromTitle()
#7 /usr/share/mediawiki/includes/page/WikiPage.php(522): WikiPage->loadPageData()
#8 /usr/share/mediawiki/includes/page/WikiPage.php(563): WikiPage->exists()
#9 /usr/share/mediawiki/includes/page/WikiPage.php(229): WikiPage->getContentModel()
#10 /usr/share/mediawiki/includes/page/WikiPage.php(216): WikiPage->getContentHandler()
#11 /usr/share/mediawiki/includes/actions/Action.php(96): WikiPage->getActionOverrides()
#12 /usr/share/mediawiki/includes/actions/Action.php(154): Action::factory()
#13 /usr/share/mediawiki/includes/MediaWiki.php(156): Action::getActionName()
#14 /usr/share/mediawiki/includes/MediaWiki.php(778): MediaWiki->getAction()
#15 /usr/share/mediawiki/includes/MediaWiki.php(524): MediaWiki->main()
#16 /usr/share/mediawiki/index.php(42): MediaWiki->run()
#17 {main}
Exception caught inside exception handler: [4dcd5f89d3e4153ceb8216c6] /mediawiki/index.php/Main_Page Wikimedia\Rdbms\DBQueryError from line 1457 of /usr/share/mediawiki/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Query: SELECT page_title,page_latest FROM `page` WHERE page_is_redirect = '0' AND page_namespace = '8' AND (page_title NOT LIKE '%/%' ESCAPE '`' ) AND (page_len > 10000)
Function: MessageCache::loadFromDB(en)-big
Error: 1146 Table 'wiki2.page' doesn't exist (localhost)
Backtrace:
#0 /usr/share/mediawiki/includes/libs/rdbms/database/Database.php(1427): Wikimedia\Rdbms\Database->makeQueryException()
#1 /usr/share/mediawiki/includes/libs/rdbms/database/Database.php(1200): Wikimedia\Rdbms\Database->reportQueryError()
#2 /usr/share/mediawiki/includes/libs/rdbms/database/Database.php(1653): Wikimedia\Rdbms\Database->query()
#3 /usr/share/mediawiki/includes/cache/MessageCache.php(504): Wikimedia\Rdbms\Database->select()
#4 /usr/share/mediawiki/includes/cache/MessageCache.php(418): MessageCache->loadFromDB()
#5 /usr/share/mediawiki/includes/cache/MessageCache.php(342): MessageCache->loadFromDBWithLock()
#6 /usr/share/mediawiki/includes/cache/MessageCache.php(971): MessageCache->load()
#7 /usr/share/mediawiki/includes/cache/MessageCache.php(899): MessageCache->getMsgFromNamespace()
#8 /usr/share/mediawiki/includes/cache/MessageCache.php(868): MessageCache->getMessageForLang()
#9 /usr/share/mediawiki/includes/cache/MessageCache.php(808): MessageCache->getMessageFromFallbackChain()
#10 /usr/share/mediawiki/includes/Message.php(1290): MessageCache->get()
#11 /usr/share/mediawiki/includes/Message.php(842): Message->fetchMessage()
#12 /usr/share/mediawiki/includes/Message.php(934): Message->toString()
#13 /usr/share/mediawiki/includes/OutputPage.php(902): Message->text()
#14 /usr/share/mediawiki/includes/OutputPage.php(949): OutputPage->setHTMLTitle()
#15 /usr/share/mediawiki/includes/OutputPage.php(2424): OutputPage->setPageTitle()
#16 /usr/share/mediawiki/includes/exception/MWExceptionRenderer.php(126): OutputPage->prepareErrorPage()
#17 /usr/share/mediawiki/includes/exception/MWExceptionRenderer.php(54): MWExceptionRenderer::reportHTML()
#18 /usr/share/mediawiki/includes/exception/MWExceptionHandler.php(75): MWExceptionRenderer::output()
#19 /usr/share/mediawiki/includes/exception/MWExceptionHandler.php(149): MWExceptionHandler::report()
#20 /usr/share/mediawiki/includes/MediaWiki.php(551): MWExceptionHandler::handleException()
#21 /usr/share/mediawiki/index.php(42): MediaWiki->run()
#22 {main} 188.176.161.203 (talk) 22:26, 30 May 2022 (UTC)
Current Content of LocalSettings.php (subdomains and wiki-names redacted):
<?php
$wikis = [
   'wiki.domain.com' => 'wikidb',
   'name-of-subdomain2.domain.com' => 'subdomainwiki',
   'subdomain3.domain.com' => 'subdomain3wiki',
];
if ( defined( 'MW_DB' ) ) {
   // Automatically set from --wiki option to maintenance scripts
   $wikiID = MW_DB;
} else {
   // Use MW_DB environment variable or map the domain name
   $wikiID = $_SERVER['MW_DB'] ?? $wikis[ $_SERVER['SERVER_NAME'] ?? '' ] ?? null;
}
if ( $wikiID ) {
   require_once "LocalSettings_$wikiID.php";
} else {
   die( 'Unknown wiki.' );
}
// Add any settings that should apply to all wikis below this line
// ------- 188.176.161.203 (talk) 22:34, 30 May 2022 (UTC)
If your sub LocalSettings.php weren't loaded you would get a different error message based on what you posted.
The error message is basically saying your db name is incorrect (or it correct, but the tables were never created for the subdomain wikis) . Without knowing the rest of your config, the real error, and what the actual correct db name is, all i can say is double check your db name is correct and that you correctly setup the new dbs for your subdomain wikis. Bawolff (talk) 23:25, 30 May 2022 (UTC)

TypeError: Argument 2 passed to SpecialVersion::getCreditsForExtension() must be of the type array, bool given

I access Special:Version infrequently, so can't tell when the error started happening.

Backtrace:

from /var/www/html/includes/specials/SpecialVersion.php(762)
#0 /var/www/html/includes/specials/SpecialVersion.php(727): SpecialVersion->getCreditsForExtension(string, boolean)
#1 /var/www/html/includes/specials/SpecialVersion.php(491): SpecialVersion->getExtensionCategory(string, string, array)
#2 /var/www/html/includes/specials/SpecialVersion.php(187): SpecialVersion->getExtensionCredits(array)
#3 /var/www/html/includes/specialpage/SpecialPage.php(646): SpecialVersion->execute(NULL)
#4 /var/www/html/includes/specialpage/SpecialPageFactory.php(1386): SpecialPage->run(NULL)
#5 /var/www/html/includes/MediaWiki.php(309): MediaWiki\SpecialPage\SpecialPageFactory->executePath(Title, RequestContext)
#6 /var/www/html/includes/MediaWiki.php(918): MediaWiki->performRequest()
#7 /var/www/html/includes/MediaWiki.php(551): MediaWiki->main()
#8 /var/www/html/index.php(53): MediaWiki->run()
#9 /var/www/html/index.php(46): wfIndexMain()
#10 {main}

wfLoadExtension( 'CategoryTree' ); wfLoadExtension( 'CodeEditor' ); wfLoadExtension( 'DataTable2' ); wfLoadExtension( 'DynamicPageList' ); wfLoadExtension( 'Gadgets' ); wfLoadExtension( 'IFrameTag' ); wfLoadExtension( 'InputBox' ); wfLoadExtension( 'MobileFrontend' ); wfLoadExtension( 'ParserFunctions' ); wfLoadExtension( 'PdfHandler' ); wfLoadExtension( 'Scribunto' ); require_once "$IP/extensions/SubPageList/SubPageList.php"; wfLoadExtension( 'SyntaxHighlight_GeSHi' ); wfLoadExtension( 'TemplateData' ); wfLoadExtension( 'VisualEditor' ); wfLoadExtension( 'Widgets' ); wfLoadExtension( 'WikiEditor' );

37.142.88.252 (talk) 07:36, 31 May 2022 (UTC)

Even if I comment out all extensions the error persists. 37.142.88.252 (talk) 07:43, 31 May 2022 (UTC)
This comes from an extension. Be sure you're getting the error page from the server and not from the browser's cache, for example, by appending a random query string parameter to the Special:Version URL. Ciencia Al Poder (talk) 08:46, 31 May 2022 (UTC)
I commented out all the extension loading and used a random query string and the error persists. 37.142.88.252 (talk) 19:13, 31 May 2022 (UTC)
You should also comment out skins. If you installed extensions using composer, they should be uninstalled too.
If this doesn't resolve the problem, try downloading MediaWiki again and extract it on a clean empty directory, copying over only LocalSettings, uploads and non-bundled extensions and skins, as described in Manual:Upgrading. Otherwise, old files from previous versions may cause strange errors like this one. Ciencia Al Poder (talk) 07:58, 1 June 2022 (UTC)

Suggested results at the new skin Vector

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hi,

How can I set up suggested results at the new skin Vector like it is at this site:

Fokebox (talk) 08:47, 31 May 2022 (UTC)
I guess it belongs to the desktop improvement project:
Reading/Web/Desktop Improvements/Features#Search: widget move and other improvements
So you can update to the beta version of mediawiki 1.38 or wait for the next LTS 1.39 MountainGoat92 (talk) 09:20, 31 May 2022 (UTC)
I see now, thank you. I will wait for 1.38
For now I have 1.37 with new Vector 2022 skin Fokebox (talk) 11:14, 31 May 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

No Pictures showed

Hello,

I've established a small wiki for our RPG group and i want to disable the read-permission for external viewers. at the moment, reading for all is allowed.


I just want to use some pictures and the problem is, that I just get an internal server error back vor thumbs and other sizes except the original one.


What Did I do:

  • first of all, I allowed the unpload in the LocalSettings.php: $wgEnableUploads = true; $wgUseImageMagick = true; $wgImageMagickConvertCommand = "/usr/bin/convert";
  • Next I disabled the grouppermissions: # Lesebeschränkungen # $wgGroupPermissions['*']['read'] = false; # Ausnahme für Bilder # $wgWhitelistReadRegexp = [ '@^Datei.*@i' ]; # $wgGroupPermissions['*']['edit'] = false; $wgGroupPermissions['*']['createaccount'] = false; The only permission i set was the CreateAccount
  • Next, I tried $wgUploadPath = "$wgScriptPath/img_auth.php"; but this didn't work.
  • My User has the permission to upload a picture and can do it, but there is a problem with the thumbnails. So I tried the permissions for the /images - directory an set it to 775, as well for the subdirectories. This didn't work at all.
  • Well, no have no idea what to to else. My other Wiki works fine, but there I did not played Bogart with the $wgGroupPermissions
  • Some Basic Information: http://wiki.melvaunt.de/
MediaWiki 1.37.2
PHP 7.4.29 (cgi-fcgi)
MySQL 5.7.38-log


Do you have any idea, what I have to do to solve the problem?


Thank you,

Nik 95.114.82.21 (talk) 10:34, 31 May 2022 (UTC)

Oh, I forgot to tell, that the Script Path is defined:
$wgScriptPath = ""; 95.114.82.21 (talk) 10:45, 31 May 2022 (UTC)
What type of internal server error? (Please make sure $wgShowExceptionDetails=true; ) Bawolff (talk) 10:46, 31 May 2022 (UTC)
The Error is:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at service@webmailer.de to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
I'm not sure, where the logfile is; Where have i set the $wgShowExceptionDetails ? 95.114.82.21 (talk) 11:12, 31 May 2022 (UTC)
For this type of error check apache error log. It is more likely an apache misconfiguration and not a mediawiki issue. Bawolff (talk) 18:58, 31 May 2022 (UTC)
Hi,
I checked it, but it gives me just a 500 533 back:
wiki.melvaunt.de anon-[IP] - - [date] "GET /images/3/32/Mondsee_Melvaunt_mit_anderen_Orten.jpg HTTP/1.1" 500 533 "[wikiadress]/index.php?title=Datei:Mondsee_Melvaunt_mit_anderen_Orten.jpg" "Mozilla/5.0 (Windows [Version]; rv:101.0) Gecko/20100101 [Browser]"
With the variable set, I get an Error like:
200 78570
Do you know, what this means?
thanks you and greetings Lastknightnik82 (talk) 23:15, 6 June 2022 (UTC)
So that is the access log not the error log. Its likely the error log will have more details.
Thecsecond number is how many bytes transfered. The first number is http status code - 200 = ok, 500 = server error. Bawolff (talk) 14:57, 1 July 2022 (UTC)
Lastknightnik82 (talk) 11:19, 31 May 2022 (UTC)

Change Size of Insert Template Pop Up Window

Product Version
MediaWiki 1.37.1
PHP 7.4.29 (fpm-fcgi)
MariaDB 10.3.28-MariaDB

I would like to change the size of the pop up window that comes up when a user clicks Insert Template when using Visual Editor. I would like to make it bigger in landscape mode. Gachangi (talk) 11:29, 31 May 2022 (UTC)

Visual Editor not working on existing pages

Hi,


I am trying to setup a wiki, whenever I try to edit existing pages with the visual editor I get a curl error 28, timeout.


System config:

Product Version
MediaWiki 1.37.2
PHP 7.4.29 (apache2handler)
MariaDB 10.6.4-MariaDB
ICU 66.1
Pygments 2.10.0

Entry point URLs

Entry point URL
Article path /LAWiki/index.php/$1
Script path /LAWiki
index.php /LAWiki/index.php
api.php /LAWiki/api.php
rest.php /LAWiki/rest.php

Installed skins

Skin Version License Description Authors
MonoBook GPL-2.0-or-later The classic MediaWiki skin since 2004, named after the black-and-white photo of a book in the page background Gabriel Wicke, Isarra Yos and others
Timeless 0.9.1 GPL-2.0-or-later A timeless skin designed after the Winter prototype by Brandon Harris, and various styles by the Wikimedia Foundation Isarra Yos
Vector 1.0.0 GPL-2.0-or-later Modern version of MonoBook with fresh look and many usability improvements Trevor Parscal, Roan Kattouw and others

Installed extensions

Editors
Extension Version License Description Authors
CodeEditor GPL-2.0-or-later AND BSD-3-Clause Syntax-highlighted editing for JavaScript and CSS pages using Ace editor Brion Vibber, Derk-Jan Hartman and authors of Ace
VisualEditor 0.1.2 MIT Visual editor for MediaWiki Alex Monk, Bartosz Dziewoński, C. Scott Ananian, Christian Williams, David Lynch, Ed Sanders, Inez Korczyński, James D. Forrester, Moriel Schottlender, Roan Kattouw, Rob Moen, Subramanya Sastry, Thalia Chan, Timo Tijhof, Trevor Parscal and others
WikiEditor 0.5.3 GPL-2.0-or-later Provides an advanced, extensible wikitext editing interface Derk-Jan Hartman, Trevor Parscal, Roan Kattouw, Nimish Gautam and Adam Miller
Parser hooks
Extension Version License Description Authors
CategoryTree GPL-2.0-or-later Dynamically navigate the category structure Daniel Kinzler
ImageMap GPL-2.0-or-later Allows client-side clickable image maps using <imagemap> tag Tim Starling
InputBox 0.3.0 MIT Allow inclusion of predefined HTML forms Erik Moeller, Leonardo Pimenta, Rob Church, Trevor Parscal and DaSch
ParserFunctions 1.6.0 GPL-2.0-or-later Enhance parser with logical functions Tim Starling, Robert Rohde, Ross McClure and Juraj Simlovic
SyntaxHighlight 2.0 GPL-2.0-or-later Provides syntax highlighting <syntaxhighlight> using Pygments - Python syntax highlighter Brion Vibber, Tim Starling, Rob Church, Niklas Laxström, Ori Livneh and Ed Sanders
TemplateData 0.1.2 GPL-2.0-or-later Implement data storage for template parameters (using JSON) Timo Tijhof, Moriel Schottlender, James D. Forrester, Trevor Parscal, Bartosz Dziewoński, Marielle Volz and others
Media handlers
Extension Version License Description Authors
PDF Handler GPL-2.0-or-later Handler for viewing PDF files in image mode Martin Seidel and Mike Połtyn
Spam prevention
Extension Version License Description Authors
ConfirmEdit 1.6.0 GPL-2.0-or-later Provides CAPTCHA techniques to protect against spam and password-guessing Brion Vibber, Florian Schmidt, Sam Reed and others
API
Extension Version License Description Authors
PageImages WTFPL Collects information about images used on page Max Semenik
Other
Extension Version License Description Authors
Gadgets GPL-2.0-or-later Lets users select custom CSS and JavaScript gadgets in their preferences Daniel Kinzler and Max Semenik
MultimediaViewer GPL-2.0-or-later Expand thumbnails in a larger size in a fullscreen interface MarkTraceur (Mark Holmquist), Gilles Dubuc, Gergő Tisza, Aaron Arcos, Zeljko Filipin, Pau Giner, theopolisme, MatmaRex, apsdehal, vldandrew, Ebrahim Byagowi, Dereckson, Brion VIBBER, Yuki Shira, Yaroslav Melnychuk, tonythomas01, Raimond Spekking, Kunal Mehta, Jeff Hall, Christian Aistleitner, Amir E. Aharoni and others
OATHAuth 0.5.0 GPL-2.0-or-later AND GPL-3.0-or-later Provides authentication support using HMAC based one-time passwords Ryan Lane, Robert Vogel <vogel@hallowelt.com> and Dejan Savuljesku <savuljesku@hallowelt.com>
TextExtracts GPL-2.0-or-later Provides plain-text or limited HTML extracts of page content Max Semenik

Installed libraries

Library Version License Description Authors
christian-riesen/base32 1.4.0 MIT Base32 encoder/decoder according to RFC 4648 Christian Riesen
composer/semver 3.2.4 MIT Semver library that offers utilities, version constraint parsing and validation. Nils Adermann, Jordi Boggiano and Rob Bast
cssjanus/cssjanus 2.1.0 Apache-2.0 Convert CSS stylesheets between left-to-right and right-to-left. Roan Kattouw, Trevor Parscal and Timo Tijhof
guzzlehttp/guzzle 7.2.0 MIT Guzzle is a PHP HTTP client library Michael Dowling and Márk Sági-Kazár
guzzlehttp/promises 1.4.0 MIT Guzzle promises library Michael Dowling
guzzlehttp/psr7 1.8.5 MIT PSR-7 message implementation that also provides common utility methods Graham Campbell, Michael Dowling, George Mponos, Tobias Nyholm, Márk Sági-Kazár and Tobias Schultze
jakobo/hotp-php 2.0.0 BSD-3-Clause HOTP simplifies One Time Password systems for PHP Authentication Jakob Heuser
liuggio/statsd-php-client 1.0.18 MIT Statsd (Object Oriented) client library for PHP Giulio De Donato
monolog/monolog 2.2.0 MIT Sends your logs to files, sockets, inboxes, databases and various web services Jordi Boggiano
oojs/oojs-ui 0.42.0 MIT Provides library of common widgets, layouts, and windows. Bartosz Dziewoński, Ed Sanders, James D. Forrester, Kirsten Menger-Anderson, Kunal Mehta, Prateek Saxena, Roan Kattouw, Rob Moen, Timo Tijhof and Trevor Parscal
pear/console_getopt 1.4.3 BSD-2-Clause More info available on: http://pear.php.net/package/Console_Getopt Andrei Zmievski, Stig Bakken and Greg Beaver
pear/mail 1.4.1 BSD-2-Clause Class that provides multiple interfaces for sending emails. Chuck Hagenbuch, Richard Heyes and Aleksander Machniak
pear/mail_mime 1.10.11 BSD-3-Clause Mail_Mime provides classes to create MIME messages Cipriano Groenendal and Aleksander Machniak
pear/net_smtp 1.9.2 BSD-2-Clause An implementation of the SMTP protocol Jon Parise and Chuck Hagenbuch
pear/net_socket 1.2.2 PHP License More info available on: http://pear.php.net/package/Net_Socket Chuck Hagenbuch, Aleksander Machniak and Stig Bakken
pear/net_url2 2.2.2 BSD-3-Clause Class for parsing and handling URL. Provides parsing of URLs into their constituent parts (scheme, host, path etc.), URL generation, and resolving of relative URLs. David Coallier, Tom Klingenberg and Christian Schmidt
pear/pear-core-minimal 1.10.11 BSD-3-Clause Minimal set of PEAR core files to be used as composer dependency Christian Weiske
pear/pear_exception 1.0.2 BSD-2-Clause The PEAR Exception base class. Helgi Thormar and Greg Beaver
pleonasm/bloom-filter 1.0.2 BSD-2-Clause A pure PHP implementation of a Bloom Filter Matthew Nagi
psr/container 1.1.1 MIT Common Container Interface (PHP FIG PSR-11) PHP-FIG
psr/http-client 1.0.1 MIT Common interface for HTTP clients PHP-FIG
psr/http-message 1.0.1 MIT Common interface for HTTP messages PHP-FIG
psr/log 1.1.3 MIT Common interface for logging libraries PHP-FIG
ralouphie/getallheaders 3.0.3 MIT A polyfill for getallheaders. Ralph Khattar
symfony/polyfill-php80 1.25.0 MIT Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions Ion Bazan, Nicolas Grekas and Symfony Community
wikimedia/assert 0.5.0 MIT Provides runtime assertions Daniel Kinzler and Thiemo Kreuz
wikimedia/at-ease 2.1.0 GPL-2.0-or-later Safe replacement to @ for suppressing warnings. Tim Starling and MediaWiki developers
wikimedia/base-convert 2.0.1 GPL-2.0-or-later Convert an arbitrarily-long string from one numeric base to another, optionally zero-padding to a minimum column width. Brion Vibber and Tyler Romeo
wikimedia/cdb 1.4.1 GPL-2.0+ Constant Database (CDB) wrapper library for PHP. Provides pure-PHP fallback when dba_* functions are absent. Daniel Kinzler, Tim Starling, Chad Horohoe and Ori Livneh
wikimedia/cldr-plural-rule-parser 2.0.0 GPL-2.0-or-later Evaluates plural rules specified in the CLDR project notation. Tim Starling and Niklas Laxström
wikimedia/common-passwords 0.3.0 MIT List of the 100,000 most commonly used passwords Sam Reed
wikimedia/composer-merge-plugin 2.0.1 MIT Composer plugin to merge multiple composer.json files Bryan Davis
wikimedia/dodo 0.3.0 MIT DOm DOcument implementation Jason Linehan, C. Scott Ananian, Tim Abdullin and Wikimedia Parsing Team and the broader MediaWiki community
wikimedia/html-formatter 3.0.1 GPL-2.0-or-later Performs transformations of HTML by wrapping around libxml2 and working around its countless bugs. MediaWiki contributors
wikimedia/idle-dom 0.10.0 MIT DOM interfaces automatically generated from WebIDL C. Scott Ananian
wikimedia/ip-set 3.0.0 GPL-2.0-or-later Efficiently match IP addresses against a set of CIDR specifications. Brandon Black
wikimedia/ip-utils 3.0.2 GPL-2.0-or-later Functions and constants to play with IP addresses and ranges MediaWiki developers
wikimedia/less.php 3.1.0 Apache-2.0 PHP port of the Javascript version of LESS http://lesscss.org (Originally maintained by Josh Schmidt) Josh Schmidt, Matt Agar and Martin Jantošovič
wikimedia/minify 2.2.4 Apache-2.0 Minification of JavaScript code and CSS stylesheets. Paul Copperman, Trevor Parscal, Timo Tijhof and Roan Kattouw
wikimedia/normalized-exception 1.0.1 MIT A helper for making exceptions play nice with PSR-3 logging Gergő Tisza
wikimedia/object-factory 3.0.2 GPL-2.0-or-later Construct objects from configuration instructions Bryan Davis
wikimedia/parsoid 0.14.0 GPL-2.0-or-later Parsoid, a bidirectional parser between wikitext and HTML5 Wikimedia Parsing Team and the broader MediaWiki community
wikimedia/php-session-serializer 2.0.0 GPL-2.0-or-later Provides methods like PHP's session_encode and session_decode that don't mess with $_SESSION Brad Jorsch
wikimedia/purtle 1.0.7 GPL-2.0-or-later Fast streaming RDF serializer Daniel Kinzler, Stanislav Malyshev, C. Scott Ananian and Thiemo Kreuz
wikimedia/relpath 3.0.0 MIT Compute a relative filepath between two paths. Ori Livneh
wikimedia/remex-html 2.3.2 MIT Fast HTML 5 parser Tim Starling
wikimedia/request-timeout 1.1.0 MIT Request timeout library for Excimer with plain PHP fallback Tim Starling
wikimedia/running-stat 1.2.1 GPL-2.0+ PHP implementations of online statistical algorithms Ori Livneh
wikimedia/scoped-callback 3.0.0 GPL-2.0-or-later Class for asserting that a callback happens when a dummy object leaves scope Aaron Schulz
wikimedia/services 2.0.1 GPL-2.0-or-later Generic service to manage named services using lazy instantiation based on instantiator callback functions Daniel Kinzler
wikimedia/shellbox 2.0.0 MIT Library and server for containerized shell execution Tim Starling, Kunal Mehta and Max Semenik
wikimedia/timestamp 3.0.0 GPL-2.0-or-later Creation, parsing, and conversion of timestamps Tyler Romeo
wikimedia/utfnormal 3.0.2 GPL-2.0-or-later Contains Unicode normalization routines, including both pure PHP implementations and automatic use of the 'intl' PHP extension when present Brion Vibber
wikimedia/wait-condition-loop 2.0.2 GPL-2.0-or-later Wait loop that reaches a condition or times out Aaron Schulz
wikimedia/wikipeg 2.0.6 MIT Parser generator for JavaScript and PHP
wikimedia/wrappedstring 3.2.0 MIT Automatically compact sequentially-outputted strings that share a common prefix / suffix pair. Timo Tijhof
wikimedia/xmp-reader 0.8.1 GPL-2.0-or-later Reader for XMP data containing properties relevant to images Brian Wolff
wikimedia/zest-css 2.0.1 MIT Fast, lightweight, extensible CSS selector engine for PHP Christopher Jeffrey and C. Scott Ananian
zordius/lightncandy 1.2.6 MIT An extremely fast PHP implementation of handlebars ( http://handlebarsjs.com/ ) and mustache ( http://mustache.github.io/ ). Zordius Chen


Looking at the apach logs, there is a 425, too early - the documentation says that the server is trying to prevent a replay attack. The wiki is in a vpn and running on a windows server.


10.122.5.233 - - [31/May/2022:12:49:46 +0000] "GET /LAWiki/index.php/Main_Page HTTP/1.1" 200 17455

10.122.5.233 - - [31/May/2022:12:49:47 +0000] "GET /LAWiki/load.php?lang=en&modules=ext.visualEditor.desktopArticleTarget.noscript%7Cskins.vector.styles.legacy&only=styles&skin=vector HTTP/1.1" 304 -

10.122.5.233 - - [31/May/2022:12:49:47 +0000] "GET /LAWiki/load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector HTTP/1.1" 304 -

10.122.5.233 - - [31/May/2022:12:49:54 +0000] "POST /LAWiki/api.php HTTP/1.1" 200 21

10.122.5.233 - - [31/May/2022:12:49:53 +0000] "GET /LAWiki/api.php?action=visualeditor&format=json&paction=parse&page=Main_Page&uselang=en&formatversion=2 HTTP/1.1" 200 425

10.122.5.233 - - [31/May/2022:12:50:02 +0000] "GET /LAWiki/api.php?action=visualeditor&format=json&paction=parse&page=Main_Page&uselang=en&formatversion=2&oldid=20 HTTP/1.1" 200 425

10.122.5.233 - - [31/May/2022:12:57:50 +0000] "POST /LAWiki/api.php HTTP/1.1" 200 21

10.122.5.233 - - [31/May/2022:12:57:52 +0000] "GET /LAWiki/index.php/Main_Page?action=edit&veswitched=1 HTTP/1.1" 200 24690

10.122.5.233 - - [31/May/2022:12:57:53 +0000] "GET /LAWiki/load.php?lang=en&modules=ext.wikiEditor.styles&only=styles&skin=vector HTTP/1.1" 304 -

10.122.5.233 - - [31/May/2022:12:57:53 +0000] "GET /LAWiki/load.php?lang=en&modules=ext.visualEditor.desktopArticleTarget.noscript%7Cmediawiki.action.edit.styles%7Cmediawiki.editfont.styles%7Cmediawiki.interface.helpers.styles%7Cmediawiki.widgets.styles%7Coojs-ui-core.icons%2Cstyles%7Coojs-ui.styles.indicators%7Cskins.vector.styles.legacy&only=styles&skin=vector HTTP/1.1" 304 -

10.122.5.233 - - [31/May/2022:12:57:54 +0000] "GET /LAWiki/load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector HTTP/1.1" 304 -

10.122.5.233 - - [31/May/2022:12:58:01 +0000] "GET / HTTP/1.1" 301 -

10.122.5.233 - - [31/May/2022:12:58:02 +0000] "GET /LAWiki/index.php/Main_Page HTTP/1.1" 200 17455

10.122.5.233 - - [31/May/2022:12:58:04 +0000] "GET /LAWiki/load.php?lang=en&modules=ext.visualEditor.desktopArticleTarget.noscript%7Cskins.vector.styles.legacy&only=styles&skin=vector HTTP/1.1" 304 -

10.122.5.233 - - [31/May/2022:12:58:08 +0000] "POST /LAWiki/api.php HTTP/1.1" 200 21

10.122.5.233 - - [31/May/2022:12:58:08 +0000] "GET /LAWiki/api.php?action=visualeditor&format=json&paction=parse&page=Main_Page&uselang=en&formatversion=2 HTTP/1.1" 200 425

::1 - - [31/May/2022:13:02:06 +0000] "GET / HTTP/1.1" 301 -

10.122.5.233 - - [31/May/2022:13:02:07 +0000] "GET /LAWiki/index.php/Main_Page HTTP/1.1" 200 17422

10.122.5.233 - - [31/May/2022:13:02:11 +0000] "GET /LAWiki/api.php?action=visualeditor&format=json&paction=parse&page=Main_Page&uselang=en&formatversion=2 HTTP/1.1" 200 425


Any ideas how I could fix this? I turned off confirmEdit, didn't help. Thermo mimi (talk) 13:12, 31 May 2022 (UTC)

The 425 in the last line is number of bytes transferred not the status code. The status code is 200 OK. Bawolff (talk) 18:57, 31 May 2022 (UTC)
Hi,
I see - it was just suspicious because the 304 and the 425 seem to be status codes that come together.
Any idea what I could do to at least determine which part of the system is causing this? It works fine in a xampp, the error message is different in iis and apache - but on this server, no matter which web server, it is not possible to edit existing articles, creating new ones works fine. I went through the permissions for specific address, rest url, I set rewrite rules ... none of that helped. Thermo mimi (talk) 11:27, 1 June 2022 (UTC)
Maybe visual editor has a config for timeout size somewhere.
I guess you could try profiling the rest.php call, but that might be a little tricky to set up.
If you dont have cache setup ($wgMainCacheType), consider setting up apcu Bawolff (talk) 14:54, 1 July 2022 (UTC)

SSL Certificate isn't working

Hello,


I'm having a problem trying to install SSL certificate through Let's Encrypt. The wiki is crashing and I can't load it. What should I do to install SSL certificate successfully on my wiki? Does anyone have a guide or website that might help? 178.254.128.122 (talk) 14:10, 31 May 2022 (UTC)

Get canonical namespace via magic word

Hi, I want to get a page's canonical namespace by using a magic word. How to achieve this? Thanks! —‍CX Zoom (A/अ/অ) (let's talk|contribs) 15:22, 31 May 2022 (UTC)

Initial run after Installation fails with missing file

I am getting this on initial access to the mw-config page:

[31-May-2022 18:13:51 Europe/London] PHP Warning:  include(/usr/share/mediawiki/vendor/composer/../liuggio/statsd-php-client/src/Liuggio/StatsdClient/Factory/StatsdDataFactory.php): failed to open stream: No such file or directory in /usr/share/mediawiki/vendor/composer/ClassLoader.php on line 571

[31-May-2022 18:13:51 Europe/London] PHP Warning:  include(): Failed opening '/usr/share/mediawiki/vendor/composer/../liuggio/statsd-php-client/src/Liuggio/StatsdClient/Factory/StatsdDataFactory.php' for inclusion

The file references exists, but does not have a ".php" extension.

ls -l /usr/share/mediawiki/vendor/composer/../liuggio/statsd-php-client/src/Liuggio/StatsdClient/Factory/StatsdDataFactory.php

ls: cannot access /usr/share/mediawiki/vendor/composer/../liuggio/statsd-php-client/src/Liuggio/StatsdClient/Factory/StatsdDataFactory.php: No such file or directory

but

[root@sme10 ~]# ls -l /usr/share/mediawiki/vendor/composer/../liuggio/statsd-php-client/src/Liuggio/StatsdClient/Factory/StatsdDataFactory

-rw-rw-r-- 1 1000 1000 2718 Jan  1  1970 /usr/share/mediawiki/vendor/composer/../liuggio/statsd-php-client/src/Liuggio/StatsdClient/Factory/StatsdDataFactory

[root@sme10 ~]#

Any ideas what is going wrong?


The code was copied directly from the downloaded tar.gz file. Brianread108 (talk) 17:41, 31 May 2022 (UTC)

This usually happens if the tar program you are using does not support long filenames properly. 7zip is known to have issues.
Try using the commandline GNU tar program instead. Bawolff (talk) 18:53, 31 May 2022 (UTC)
Yes, that indeed was it! Many thanks. I'd used "mc " to copy the code. Brianread108 (talk) 05:31, 1 June 2022 (UTC)

Set variable in LocalSettings only if request is not for Special:Version

I have a hack I need to set for any request other than Special:Version. My wiki's language is not English, so the request URL (as it appears in the browser) is actually to the translated name. So I also need to know if I need to match on the translated name or it gets to the original name when LocalSettings.php is executed 37.142.88.252 (talk) 19:40, 31 May 2022 (UTC)

It depends on what variable you are matching against, but probably translated. Bawolff (talk) 05:23, 1 June 2022 (UTC)

500 file error only for specific upload?

Hello,

I run a shooting game wiki on MediaWiki that is currently experiencing a strange issue. A user recently uploaded an image file to the wiki with the intent of putting it in one of the articles for a game (SDOJ), but something about this upload seems to have gone wrong, resulting in a 500 error. We can't even look at what's going on with the file or access it for deletion.


https://shmups.wiki/library/Special:Log

The file in question that 500s: https://shmups.wiki/library/File:SDOJTestMenuComposite.png


I'm not really sure why this is happening, it seems very random. I tried checking the error logs for the wiki, but it doesn't have any history of this event, so I'm a little bit in the dark...

I'm hoping anyone around here with more experience with MediaWiki (and/or cPanel) can help me diagnose this issue. Thank you for reading regardless!

~ Charlene 67.183.200.122 (talk) 22:02, 31 May 2022 (UTC)

See Manual:How to debug
It's recommended to set up logs for errors, so you can check them even if they're not displayed on the browser:
$wgDebugLogGroups = array(
	'exception' => '/var/log/mediawiki/exception.log',
	'error' => '/var/log/mediawiki/error.log',
);
Ciencia Al Poder (talk) 08:05, 1 June 2022 (UTC)