Jump to content

Project:Support desk/Flow/2021/04

Add topic
From mediawiki.org
This page is an archive.
Please ask questions on the current support desk.

How to fetch pages created on each day and its username?

I want to fetch page_titles , usernames who created that pages and page length on particular day till now

I have written a query https://quarry.wmflabs.org/query/53761 which returns edit on that day and page but I need pages created on that day not edits


any help?


Thanks in advance Ramu ummadishetty (talk) 09:15, 1 April 2021 (UTC)

if you're only interested in recent (last 30 days) use recentchanges table and look at rc_type.
Otherwise maybe do a left join back to revision looking for a revision with the same rev_page but smaller rev_timestamp, and check that join is null Bawolff (talk) 01:33, 2 April 2021 (UTC)

VisualEditor not working: Error contacting the Parsoid/RESTBase server (HTTP 400)

Hi everyone.

I'm using nginx as a proxy (for tls termination) for my mediawiki 1.35 installation, which itself runs on apache. I have trouble making the Visual Editor working, right now I cannot use it to interact with the wiki. The non-visual editor works as expected. Please note this might be related to https://phabricator.wikimedia.org/T249997 .

From the Visual Editor UX, the error message I get is the following, whenever I click on "edit this page":

Error contacting the Parsoid/RESTBase server (HTTP 400)

Checking what happens, it seems that Mediawiki is making a GET request to itself on the /rest.php/wiki.sciences.re/v3/page/html/Main_Page/1?redirect=false&stash=true path, request which fails because the promise-non-write-api-action: true header is present, which results in a 400 http code with the following message:

The 'Promise-Non-Write-API-Action' HTTP header was sent but the request was to an API write module.

This might be related to https://github.com/wikimedia/mediawiki/blob/1.35.1/includes/WebStart.php#L96

Any idea what is wrong ?

Thanks 91.86.53.70 (talk) 11:49, 1 April 2021 (UTC)

Error contacting the Parsoid/RESTBase server: (curl error: 7) Couldn't connect to server

I have the latest version of MediaWiki. I just downloaded it yesterday, and when I try to edit or save a page it gives me this:

"Error contacting the Parsoid/RESTBase server: (curl error: 7) Couldn't connect to server"

Is there any way to fix this? Thanks! AngryCyclist (talk) 11:49, 1 April 2021 (UTC)

Remove wiki markup with function

I am looking for a function/parser hook/etc. that I can use in a template to remove any wiki markup from an argument and retrieve the plain text. For instance when I have {{myTemplate|arg='''This''' is a [[test]].}}, I need to convert the content of {{{arg|}}} to something as close as possible to

This is a test.

I want to forward the result to Extension:MetaDescriptionTag, and Search Engines will be unhappy if the HTML meta tag contains Wiki markup, so I programmatically need to remove it. The alternate solution would be to have two arguments (one with, one without markup), causing lots of duplicate input.

I have asked the question at Extension talk:MetaDescriptionTag but not received an answer there. I know this is solvable in PHP/regex code in the extension itself, but I'd prefer to do it in Wiki syntax if possible.

--Wirthi (talk) 12:14, 1 April 2021 (UTC)

German Wikipedia is offering two Lua modules for this purpose:
However, you might need some efforts to establish Lua. PerfektesChaos (talk) 15:46, 1 April 2021 (UTC)

update.php worked, index.php not working after server migration

Hello,

I was tasked with migrating and upgrading our mediawiki server. We are on version 1.27 CentOS 6. I've created a new CentOS 7 server, setup the LAMP stack, restored our original 1.27 database, restored our original 1.27 mediawiki web directory. I ran "maintenance/update.php" and it appeared to work correctly. I see where it made database modifications in the output. When I go to the main index.php page I'm getting the following error:

[YGTjs9-DPTXVSLHgORzBQQAAAAA] /index.php InvalidArgumentException from line 509 of /var/www/mediawiki-1.35.1/includes/libs/rdbms/database/Database.php: Wikimedia\Rdbms\Database::getClass no viable database extension found for type 'mysql'

Backtrace:

#0 /var/www/mediawiki-1.35.1/includes/libs/rdbms/database/Database.php(458): Wikimedia\Rdbms\Database::getClass(string, NULL)

#1 /var/www/mediawiki-1.35.1/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1242): Wikimedia\Rdbms\Database::attributesFromType(string, NULL)

#2 /var/www/mediawiki-1.35.1/includes/objectcache/SqlBagOStuff.php(935): Wikimedia\Rdbms\LoadBalancer->getServerAttributes(integer)

#3 /var/www/mediawiki-1.35.1/includes/objectcache/SqlBagOStuff.php(196): SqlBagOStuff->getConnectionViaLoadBalancer(string)

#4 /var/www/mediawiki-1.35.1/includes/objectcache/SqlBagOStuff.php(300): SqlBagOStuff->getConnection(string)

#5 /var/www/mediawiki-1.35.1/includes/objectcache/SqlBagOStuff.php(264): SqlBagOStuff->fetchBlobMulti(array)

#6 /var/www/mediawiki-1.35.1/includes/libs/objectcache/MediumSpecificBagOStuff.php(115): SqlBagOStuff->doGet(string, integer)

#7 /var/www/mediawiki-1.35.1/includes/libs/objectcache/CachedBagOStuff.php(64): MediumSpecificBagOStuff->get(string, integer)

#8 /var/www/mediawiki-1.35.1/includes/session/SessionManager.php(943): CachedBagOStuff->get(string)

#9 /var/www/mediawiki-1.35.1/includes/session/SessionInfo.php(165): MediaWiki\Session\SessionManager->generateSessionId()

#10 /var/www/mediawiki-1.35.1/includes/session/SessionProvider.php(214): MediaWiki\Session\SessionInfo->__construct(integer, array)

#11 /var/www/mediawiki-1.35.1/includes/session/SessionManager.php(294): MediaWiki\Session\SessionProvider->newSessionInfo(NULL)

#12 /var/www/mediawiki-1.35.1/includes/session/SessionManager.php(268): MediaWiki\Session\SessionManager->getEmptySessionInternal(WebRequest)

#13 /var/www/mediawiki-1.35.1/includes/session/SessionManager.php(218): MediaWiki\Session\SessionManager->getEmptySession(WebRequest)

#14 /var/www/mediawiki-1.35.1/includes/WebRequest.php(826): MediaWiki\Session\SessionManager->getSessionForRequest(WebRequest)

#15 /var/www/mediawiki-1.35.1/includes/session/SessionManager.php(137): WebRequest->getSession()

#16 /var/www/mediawiki-1.35.1/includes/Setup.php(726): MediaWiki\Session\SessionManager::getGlobalSession()

#17 /var/www/mediawiki-1.35.1/includes/WebStart.php(89): require_once(string)

#18 /var/www/mediawiki-1.35.1/index.php(44): require(string)

#19 {main}


Please assist, I tried searching for similar problems and usually its related to an sql driver missing, but in this case, why would update.php work?


Thanks,

Evan Needwikihelp (talk) 13:40, 1 April 2021 (UTC)

command line php and web php have different config files/drivers Bawolff (talk) 01:18, 2 April 2021 (UTC)

Translate extension installation

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


I have downloaded the Language Extension Bundle and placed all the folders in my extension folder. I have successfully installed Universal Language Selector but not the other ones. I have installed php7.4-mbstring and php7.4-xml (apt-get install php7.4-mbstring php7.4-xml). I have sen that I needed to update my php.ini so i added the lines "extension=mbstring.so" and "extension=xml.so" in the /etc/php/7.4/cli/php.ini file (do I need to tell the system I have updated this file?). After this, I need to run the maintenance/update.php script but it tells me:

PHP Warning:  PHP Startup: Unable to load dynamic library 'mbstring' (tried: /usr/lib/php/20200930/mbstring, ... /usr/lib/php/20200930/mbstring.so ...

Please install:

* mbstring <https://www.php.net/mbstring>

* xml <https://www.php.net/xml>


Thank you in advance if you can help me solve this. User12315 (talk) 15:41, 1 April 2021 (UTC)

You need to install these two PHP packages. How to install them depends on your operating system. Malyacko (talk) 17:02, 1 April 2021 (UTC)
Yes I know, I have already installed mbstring and xml User12315 (talk) 17:03, 1 April 2021 (UTC)
the problem was I executed php maintenance/update.php which executed php8
I should have typed php7.4 maintenance/update.php User12315 (talk) 20:20, 1 April 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Blog

How do I set up a blog on my wiki? Novike (talk) 16:20, 1 April 2021 (UTC)

Have you tried the search? See e.g. Extension:Wikilog or Extension:BlogPage. Malyacko (talk) 17:01, 1 April 2021 (UTC)

ACL Settings

We have set up pages on mediawiki and made some user groups. I am trying to make sense of this (our IT chap is not with us). when I click on the ACL page! can someone help!


{{#access: assigned to = User:Mani|actions=manage}}

{{#access: assigned to = Group/Director|actions=*, manage}}

{{#access: assigned to = Group/IT Management|actions=read}}

{{#access: assigned to = Group/Employees and Associates|actions=*}} Ketanvaria (talk) 16:57, 1 April 2021 (UTC)

@Ketanvaria Hi, where to find an ACL page? You may have some custom extension installed for this; would help if you could name it. Also, which MediaWiki version is this about? For general info, see Manual:Preventing_access Malyacko (talk) 17:00, 1 April 2021 (UTC)
it sounds like you're using a specific acl tool not part of vanilla mediawiki(maybe bluespice?). They might have a specific help forum with more knowlegable people. Bawolff (talk) 01:16, 2 April 2021 (UTC)
Does anyone know what the "*" means - does it mean all? Ketanvaria (talk) 09:40, 4 April 2021 (UTC)
this is the screen shot of the pages for the ACL settings https://www.dropbox.com/sh/evtjq0fjikj0gu3/AAA5J7Cay153h8Hu_bSoWnZja?dl=0 Ketanvaria (talk) 09:44, 4 April 2021 (UTC)
Basically does anyone know what *, manage and read means? Does * mean edit access? Ketanvaria (talk) 09:51, 4 April 2021 (UTC)

Missing "keep me logged in" checkbox

I have a wiki that has historically and continues to use an auth bridge. Before upgrading to 1.35, Extension:IPBAuth worked fine and we were able to use the "keep me logged in" for up to 180 days. Auth would occur if the user was in the IPB database, and no password required.

Since upgrading, everything works fine using Extension:IPBAuthLogin, but I'm missing the "keep me logged in" checkbox. I have read through related config pages that reference this functionality but fail to describe its config:

Since I am missing the checkbox altogether, $wgExtendedLoginCookieExpiration probably is irrelevant.

I have not set Manual:$wgCookieDomain, since I have no subdomains, and I let PHP manage sessions with a 90 minute timer. I'd much rather allow authenticated users to opt in for 6 mo or 1 yr without having to enter password (auth still handled by the extension).

Can someone help me with the proper config to show and honor the checkbox?

Thanks! ~z929669 Talk 03:34, 2 April 2021 (UTC)

Well, I suppose I should TRY before asking.
Looks like simply setting $wgExtendedLoginCookieExpiration to a value other than '0' will show the checkbox.
Duh. I will report back if issues. ~z929669 Talk 03:51, 2 April 2021 (UTC)

movie song from indecent praposal with lyric a love so beutiful

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.


what is the name of this song 24.191.63.103 (talk) 05:27, 2 April 2021 (UTC)

This is not the place to ask such questions. Ok ↠Tanbirzx () 05:41, 2 April 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

I can't find a way to disable the save confirmation message when I edit a page.

It's possible ?

Thanks Andreacic (talk) 11:52, 2 April 2021 (UTC)

Some clarification please. Are you referring to the message:
Reminder: You have not provided an edit summary. If you click "Save changes" again, your edit will be saved without one.
If so, that is controlled by Help:Preferences#Editor
There is also a message box that can appear if you edited a page and then leave without saving that says:
Leave site: Changes you made may not be saved.
I cannot recall if there is a setting that controls whether or not this message appears. But I wouldn't change it because it is helpful to prevent inadvertent navigation away from a page being edited. Peculiar Investor (talk) 13:05, 2 April 2021 (UTC)
Thanks for the reply. From my tests it is not possible to remove the request for confirmation of the saving. Andreacic (talk) 15:19, 2 April 2021 (UTC)

i forgot my user name and password.

i forgot my user name and password. 138.99.53.49 (talk) 16:24, 2 April 2021 (UTC)

Okay. But what do you expect us to do, and especially how? Malyacko (talk) 06:07, 3 April 2021 (UTC)

What happened to the logo? 83.6.223.235 (talk) 16:58, 2 April 2021 (UTC)

See Project:Village Pump/Flow/2021/04#h-MediaWiki_logo-2021-04-01T08:04:00.000Z. Leaderboard (talk) 17:12, 2 April 2021 (UTC)

I would love to have them ordered.

Like:

whatlinkshere (on a page):

(useful links) O

xy

(helping links) U

xx

xyy


Is there any way to do that? Bedtry (talk) 18:01, 2 April 2021 (UTC)

Please clarify your question.
See this Help:Links
And also see this Help:What links here ↠Tanbirzx () 03:48, 3 April 2021 (UTC)
@Bedtry: you might try User:PerfektesChaos/js/resultListSort PerfektesChaos (talk) 17:53, 4 April 2021 (UTC)
Some people change mysqls collation for this, but that's not really supported or officially reccomended. Bawolff (talk) 01:53, 7 April 2021 (UTC)

Upgrading mediawik 1.31.8 to 1.35.1

MediaWiki 1.35.1

PHP 7.4.15 (apache2handler)
MySQL 8.0.23
Semantic MediaWiki 3.2.3
Semantic Extra Special Properties 2.1.0
When running php maintenance\update.php I'm getting the following error.

Importing from sesp.groups.json ...

  ... smw/schema:Group:Extra special properties ...               [FAILED]
      ├ smw-schema-error-input-schema, property-group-schema.v1
      └ smw-schema-error-violatio ... lue found, but an object is required
  ... smw/schema:Group:Exif special properties ...                [FAILED]
      ├ smw-schema-error-input-schema, property-group-schema.v1
      └ smw-schema-error-violatio ... lue found, but an object is required
  ... done.

Importing from smw.groups.json ...

  ... smw/schema:Group:Schema properties ...PHP Notice:  Undefined index: implicit in D:\Bitnami\wampstack\apps\mediawiki\includes\user\UserGroupManager.php on line 267

Notice: Undefined index: implicit in D:\Bitnami\wampstack\apps\mediawiki\includes\user\UserGroupManager.php on line 267

             [EXISTS,REPLACE]
  ... smw/schema:Group:Predefined properties ...PHP Notice:  Undefined index: implicit in D:\Bitnami\wampstack\apps\mediawiki\includes\user\UserGroupManager.php on line 267

Notice: Undefined index: implicit in D:\Bitnami\wampstack\apps\mediawiki\includes\user\UserGroupManager.php on line 267

         [EXISTS,REPLACE]
  ... done.

Importing from smw.vocab.json ...

  ... MediaWiki:Smw import skos ...                          [EXISTS,SKIP]
  ... MediaWiki:Smw import foaf ...                          [EXISTS,SKIP]
  ... MediaWiki:Smw import owl ...                           [EXISTS,SKIP]
  ... Property:Foaf:knows ...                                [EXISTS,SKIP]
  ... Property:Foaf:name ...                                 [EXISTS,SKIP]
  ... Property:Foaf:homepage ...                             [EXISTS,SKIP]
  ... Property:Owl:differentFrom ...                         [EXISTS,SKIP]
  ... done. Legaulph (talk) 19:06, 2 April 2021 (UTC)
That looks like a question for an SMW forum instead. Malyacko (talk) 06:04, 3 April 2021 (UTC)
also make sure you have the right version smw fod your version of mw Bawolff (talk) 21:23, 3 April 2021 (UTC)

Manual keys

So a while back, I accidentally logged out and I couldn't log back in and I kept being told that it had cancelled "To prevent session hijacking". I had been told to delete my cookies and I did that but it still wasn't working so I was directed to the manual but I've never used it before and I don't know what to do and some help would be appreciated.

(I'm doing all of this on my phone if there's a difference between the mobile and PC versions) 69.4.125.165 (talk) 03:17, 3 April 2021 (UTC)

See Manual:How to debug/Login problems Malyacko (talk) 06:03, 3 April 2021 (UTC)
Well the trouble is I don't know how any of the keys work or how I access them (I don't know if you access them from the manual page or if I need to go somewhere else to access them) 69.4.125.165 (talk) 02:51, 4 April 2021 (UTC)
What are "keys"? Malyacko (talk) 05:51, 4 April 2021 (UTC)
Sorry, I shouldn't say "keys", I mean the tools such as session.auto_start and session.refer_check. I meant to ask, where do I find them on the login page and if I need to access them from the manual page or go somewhere else. That's what I meant, sorry for confusing you 2600:6C44:447F:DF74:E803:7C59:3645:C5A3 (talk) 02:17, 5 April 2021 (UTC)
Those are PHP configuration values. You can find them in your PHP configuration. Malyacko (talk) 13:11, 5 April 2021 (UTC)
Where is that exactly? 2600:6C44:447F:DF74:313E:C4BA:E8EF:82B1 (talk) 05:13, 8 April 2021 (UTC)
Where can I find the PHP configuration is what I mean 2600:6C44:447F:DF74:5C3D:FC20:3F2A:EA1D (talk) 07:14, 12 April 2021 (UTC)

Templates not showing images.

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


Hey, so I have an issue with the wiki I am managing. We're using what we call "Backbones" to ensure quality in the pages of people. They are more like templates that people copy and fill in with information.

This is the example of a backbone code that we have:

https://pastebin.com/6tZLjAhj


As you may see on the code, it contains {{MagicImage which is a template that we use to add images to those backbones. Here's the code of the template:

https://pastebin.com/Q4PDtzsa


Now, out of the blue, the images do not work anymore and I am unsure of what caused such issue. There were no edits to the codes and they've worked perfectly ever since they were implemented.

I really need some insight on this matter, because everything I've tried did not fix it.

Thank you for your time! JokerLow (talk) 13:53, 3 April 2021 (UTC)

What makes you think that it doesn't work? What is a minimal but self-contained testcase with actual input? See also Help:Extension:ParserFunctions##ifexist. Furthermore, see the 404 errors in the "network" tab of your web browser's "Developer Tools". Malyacko (talk) 14:08, 3 April 2021 (UTC)
Ok, so I looked through the network tab, but didnt spot any errors related to the issue. Gave a look through the link you've given me and i tried some things from there but with no results.
This is the link of the backbone using the template https://wiki.lordofthecraft.net/index.php?title=New_Magic_Backbone and this is the template that im trying to fix https://wiki.lordofthecraft.net/index.php?title=Template:MagicImage.
How do I know it doesnt work? https://wiki.lordofthecraft.net/index.php?title=Air_Evocation This page is using the backbone and it doesnt show any image, even tho in the page code it is added. JokerLow (talk) 23:00, 3 April 2021 (UTC)
https://wiki.lordofthecraft.net/index.php?title=Air_Evocation&action=edit says image = [[File:air_evo.png]]. And https://wiki.lordofthecraft.net/index.php?title=Template:MagicImage&action=edit says [[File:{{#ifexist: File:{{{image}}}.
Have you checked that "File:File:air_evo.png" exists on your wiki and if that's really the name that you wanted to check for? :) Malyacko (talk) 09:24, 4 April 2021 (UTC)
Hey, the file does exist.
https://wiki.lordofthecraft.net/index.php?title=File:air_evo.png
I also tried removing the extra "File:" from the template, but with no results. JokerLow (talk) 19:36, 4 April 2021 (UTC)
Well both file:'s are still there, so maybe try again. Bawolff (talk) 22:07, 4 April 2021 (UTC)
Now I realized that the code is looking for the file with an extra "File:" to its name. How in God's green Earth do I fix that haha. JokerLow (talk) 19:48, 4 April 2021 (UTC)
You've got image = File:air_evo.png in the Air Evocation page, and the magic image template adds File: to what it gets given.
You could remove File: from Air Evocation and see if it works (it's neater without it there). If it doesn't work you'll need to check the ifexist/link creation logic - I think this is what Malyacko is saying above. Jonathan3 (talk) 09:07, 5 April 2021 (UTC)
Ok so I think I've fixed it.
What I did was remove the extra "File:" before the #ifexist and add an extra "File:" where noimg.png was, making it work smoothly for now. Not sure what caused the issue in the first place, but that doesn't matter right now. Thank you a lot guys for your help and support! JokerLow (talk) 12:27, 5 April 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Problems to access the MariaDB on a Synology Diskstation after update... SOLVED !

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,

my MediaWiki is running since years without any problems. Last entry done 31.03.2021 and starting the page on 01.04. (no April joke) I was not able to access my MediaWiki anymore ...

So I did the typical checks on Synology, updated MariaDB and PHP, but still was not able to get to my pages.

In Detail:

Trying to VIEW my page tells me, PHP is not actual (it says, I am running 7.3.16).

But on my Diskstation I am running 7.4.9.

Checking the php73, I am getting 7.3.16

So, I decided to run mediawiki/Maintenance/Update.php entering php74 update.php

Result is, that this script does not find my database anymore (but have not changed anything, HONESTLY !)

Error message is:

Wikimedia\Rdbms\DBConnectionError from line 1420 of /volume1/web/mediawiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php: Cannot access the database: Unknown error (192.168.178.25:/run/mysqld/mysqld10.sock)

So, anyone has a good idea what to do? I searched a lot of forums and help, but nothing really helped me here.

I am no programmer and no high-tech-guy, but I think I do understand help, if you provide it to me.

Thanks! RalliHH (talk) 17:01, 3 April 2021 (UTC)

What exactly was updated / happened before you received the message that PHP is not a current version? What displayed that message? What was the exact wording of that message? Which MediaWiki version is this about? Malyacko (talk) 17:56, 3 April 2021 (UTC)
Thanks for trying to help, first and easiest: MediaWiki 1.35, getting the screen when I try to see my wiki or trying to do the mw_config script using the Chrome-Browser, entering http://192.168.178.25/mediawiki/index.php , exact message:
=MediaWiki 1.35 internal error=
MediaWiki 1.35 requires at least PHP version 7.3.19; you are using PHP 7.3.16.
==Supported PHP versions==
Please consider upgrading your copy of PHP. PHP versions less than v7.2.0 are no longer supported by the PHP Group and will not receive security or bugfix updates.
If for some reason you are unable to upgrade your PHP version, you will need to download an older version of MediaWiki from our website. See our compatibility page for details of which versions are compatible with prior versions of PHP.
What was updated?
I am trying to explain step by step...
I edited my Wiki late evening 31.03.2021
Starting next morning, nothing changed by myself, not sure, if Synology has done something in the background.
I got the message (need to recover from my mind, no screenshot available): Can not connect to the database.
So I went into the Synology Menu and updated MariaDB (now version 10.3.24-0069), not sure about the former one :(
Still not able to connect, so I went to the MediWiki Maintenance folder and wanted to run update.php
Here I got this error (as described in another discussion here):
Fatal error: Cannot declare class Maintenance, because the name is already in use in /volume1/web/mediawiki/maintenance/includes/Maintenance.php on line 55
So I upgraded MediWiki with the latest version from MediaWiki page (as I got info, that Synology version might not be the best idea ...).
As part of the update I wanted to run php74 update.php and get this error:
Wikimedia\Rdbms\DBConnectionError from line 1420 of /volume1/web/mediawiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php: Cannot access the database: Unknown error (192.168.178.25:/run/mysqld/mysqld10.sock) RalliHH (talk) 18:30, 3 April 2021 (UTC)
the web version of php is different from the commandline version. You have to upgrade the version your webserver uses.
The "192.168.178.25:/run/mysqld/mysqld10.sock" error is kind of odd, usually i woukd assume a socket would only be when using localhost. It might be that mysql has unix sockets disabled and you need to get rid of that part, or maybe there is no networking enabled on mysql and you need to change the hostname to be localhost:/run/mysqld/mysqld10.sock to use the unix socket, or maybe mysql is down or you have wrong ip or socket name. If its only commandline maybe your commandline user doesnt have read write perms for the socket. Bawolff (talk) 21:21, 3 April 2021 (UTC)
Happy Easter Holidays!
After some research I found the log of the AUTO-UPDATE in my Synology Diskstation and can see, that the system automatically updated MediaWiki as well as PHP 7.3:
Information System 2021/04/01 00:26:38 SYSTEM Package [MediaWiki] has been successfully updated.
Information System 2021/04/01 00:25:17 SYSTEM Package [PHP 7.3] has been successfully installed.
So at least I know the reason, why I was able to work 31.03.2021 without trouble and problems stated morning 01.04.
@Bawolff : Thanks for the hint, yes I can see the WebServer uses nginx which again uses php 7.3.16
But, I am not able to change that or do not know how? I have looked for any program or service called nginx, but can not find anything.
On the other hand, when I try to delete my Apache 2.2 Server, it says it is in use by MediaWiki ...
I do not understand this anymore ... RalliHH (talk) 09:44, 4 April 2021 (UTC)
If Synology magically updates some packages and their updates and package dependencies introduce problems, then you may want to talk to Synology, I'd say. Malyacko (talk) 09:58, 4 April 2021 (UTC)
Yes, I think you are right, I just hoped to have better support here than there ... thanks so far ... RalliHH (talk) 10:01, 4 April 2021 (UTC)
Good morning to all... SUCCESS!
Yesterday I did the following steps, might be too complicate, but I had success. Just wanted you to know this, if anybody else encounters this problem and steps over this...
After looking into the UPDATE log from Synology, I found that MediaWiki as well as PHP 7.3 had been updated automatically (using the Synology packages). Result was, that MediaWiki was not accessible anymore.
FOR ALL: First do a SQL database backup! Do it! Don't be a fool like have been! The SQL-dump file can always be of use! (I lost half year of work not doing it ... silly me!)
And copy or rename your MediaWiki folder! You might need some of the files later... at least LocalSettings.php is needed again.
So, yesterday I uninstalled most of my Synology packages (MediaWiki, MariaDB, PHP 73, PHP 74, myPHPAdmin) I guess it was too much to do all this, but I wanted to be on the safe side. After a good REBOOT of the diskstation I started installing PHP 74 and MariaDB. I then installed myPHPAdmin, which automatically installed PHP 73 again. I was a bit unsure, if this will generate the same problem, but it did NOT, so just do it as suggested by the installer.
Now I did NOT use the MediaWiki package from synology. I downloaded an OLD MediaWiki from the mediawiki.org page (in my case I downloaded 1.31). I installed that MediaWiki as it is explained on the MediaWiki pages. Installing means in this case, extract all files to the diskstation.
Then I used the web-installer calling localhost/web/mediawiki/mw-config/
This brought an empty, but running MediaWiki to my computer. But still the old version 1.31. I checked the version page and I happily noticed, PHP 7.4.9 is in use! I checked saving a new page, adding a category and so on, all fine. Perfect.
Now I "upgraded" this MediaWiki to the latest version 1.35. Is done by downloading, unextracting and copying the new version to your server. Copy saved LocalSettings.php and just follow the perfect description on MediaWiki for upgrading a version.
Ok, now I had the actual version with an "empty" wiki. And I had my "old" SQL-backup file, you hopefully have an actual one.
I used myPHPAdmin and IMPORTED that SQL-File into the MediaWiki database. This took something like 20 minutes, don't be nervous, just let the machine do it ... take a coffee meanwhile, it is worth it.
This database structure surely is not fully ok for MediaWiki 1.35. So before doing anything else, go to your diskation using a tool like putty or so, so you are able to do something on the command prompt of the linux system.
On the Linux, I changed to the MediaWiki maintenance directory. In my case volume1/web/mediawiki/maintenance
Here I called the update job with this command: php74 update.php
This script checks and changes all database topics. This took around 1,5 minutes, but you can see on the screen, what is going on. And, here we go, my MediaWiki was there again with all your pages.
It might need some additional work now to get images and extensions back, but all this is explained on the MediaWiki documentation.
Hopefully someone can use this and is happy to have a solution.
Happy Easter Holidays! RalliHH (talk) 08:52, 5 April 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Error

Hello! in a Extension:UrlShortener

This is what appears:

[c99ad0719e66fffd1396db68] Caught exception of type Wikimedia\Rdbms\DBQueryError 41.254.66.119 (talk) 17:45, 3 April 2021 (UTC)

Please read "Before you post" in the sibebar and follow Manual:How_to_debug Malyacko (talk) 17:53, 3 April 2021 (UTC)

Account management

A while back I signed up to support Wiki with a monthly contribution. I wanted to change the credit card I am using for this donation but found it impossible to access account info to make changes. My only recourse is to cancel this credit card which is a huge hassle because I use it for other purposes. So I just want to cancel my contribution altogether as it seems like this labrynth of difficulty is purposeful. If I don't hear from you soon I will just have to close my credit card account and think of Wiki less fondly in the future. Craig2up (talk) 06:42, 4 April 2021 (UTC)

Support which wiki? If it's the Wikimedia foundation please check here and look for the "Donate" section. Leaderboard (talk) 07:40, 4 April 2021 (UTC)
See https://donate.wikimedia.org/wiki/Cancel_or_change_recurring_givingAmmarpad (talk) 09:27, 4 April 2021 (UTC)

PAWS INTERWIKI

how do pages created with Paws connect to interwiki? ꜰɪᴇʀᴏᴅᴇʟᴠᴇɴᴇᴛᴏ (Talk)-(Contributions) 07:08, 5 April 2021 (UTC)

What does "connect to interwiki" mean? Please provide way more context. Malyacko (talk) 13:10, 5 April 2021 (UTC)
When I create new pages with PAWS I am unable to connect them to Wikidata successfully. I have already been shown the ways in which I can connect them, but I am not able to have positive results! ꜰɪᴇʀᴏᴅᴇʟᴠᴇɴᴇᴛᴏ (Talk)-(Contributions) 08:26, 7 April 2021 (UTC)

error when switching between visualeditor and wikitext

I mediawiki version 1.35.1 with Visual editor is both installed and flow Visual editor is both installed and flow extensions


Should I use Parsoid to switch between Wikitext and VisualEditor?

Error message:

Unable to transfer content: Error contacting the server for conversion between wikitext and HTML. Please check your Internet connection or try again later if the problem persists. If you still get this error please file a bug

I appreciate anyone who can help Sokote zaman (talk) 12:59, 5 April 2021 (UTC)

Thank you for the answer@Huji Sokote zaman (talk) 21:18, 8 April 2021 (UTC)

Approved Revs not working.

Hi,

I have a problem, I can't install aproved revs extension. When i add "wfLoadExtension ( 'ApprovedRevs' );" in LocalSetting.php and I open after my mediawiki, the website show :

"A database query error has occurred. This may indicate a bug in the software. [a3445106c16ca5ed1f56662045241-04-05 12:34:43: Erreur fatale de type g WikimedialRdbms11313QuelyError"

Even if I load update.php. Somebody has a solution ?


Tanks in advance for your help. :)


Best ! Pracarta (talk) 13:00, 5 April 2021 (UTC)

Hi, please see "Post a new question" in the sidebar, plus Manual:How_to_debug. Thanks. Malyacko (talk) 13:10, 5 April 2021 (UTC)

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.

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.


My update for the Wikibase repo gives the error in the subject. See gerrit:676914.

No idea how to fix this. It is based on the current Wikibase master. Mbch331 (talk) 13:29, 5 April 2021 (UTC)

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

button bar when editing

Good morning, I installed Mediawiki 1.35 from Bitnami on AWS. But the installation does not show the button bar when editing. How do I solve that? Otromben2021 (talk) 17:45, 5 April 2021 (UTC)

Are you sure that MediaWiki 1.35 installation is completed? ↠Tanbirzx () 18:26, 5 April 2021 (UTC)
Thanks for your answer. I did the automatic installation generated by Bitnami, I was able to access it and copy several texts. When trying to edit I realized that it does not have the button bar that I had in an installation that I did in another hosting. Otromben2021 (talk) 21:09, 5 April 2021 (UTC)
Which button bar?
If you mean the wikitext editor, that can vary depending on what extensions you have installed. Extension:wikiEditor and extension:VisualEditor are the two most popular. Bawolff (talk) 01:51, 7 April 2021 (UTC)
Thank you, I will review Otromben2021 (talk) 18:38, 7 April 2021 (UTC)

IP ban while trying to log in first time?

So i was trying to log in my account that i just created, but i did not let me log in, instead i got IP ban for vandalisim? Just wondering what i did wrong, i just want to translate one page to finnish. 86.115.135.49 (talk) 19:31, 5 April 2021 (UTC)

are you able to log onto any wiki project? fiwiki MarkAHershberger(talk) 19:38, 5 April 2021 (UTC)
Ip addresses can be shared between users. Its possible you were blocked for someone else's action. Try contacting the blocking admin on your talk page (be sure to make a link to their user page so they are pinged) Bawolff (talk) 01:50, 7 April 2021 (UTC)

Error contacting the Parsoid/RESTBase server: http-timed-out

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


Good morning,

I just installed Mediawiki 1.35

When i try to 'Edit' a page, the following error appear:

Error contacting the Parsoid/RESTBase server: http-timed-out

Thanks for help Daniele ramon (talk) 05:47, 6 April 2021 (UTC)

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

MediaWiki 1.35+ adding unnecessary &#160; to scripts between <html> tags.

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


Hello,

I've had this template work fine for me before on MW 1.31, but when I upgraded to MW 1.35, for some reason, the parser seems to unnecessarily add &#160; ( , &nbsp; or Non-blocking Spaces) into my scripts and breaking them. This happens on both an upgraded and a fresh (which is the current install on the website).

Some scripts had this happen, while others did not, for example this. I can't seem to reproduce it, and it's definitely not some sort of funny formatting or character as I've tried rewriting it in its entirety.

If you look at the sources, there's no non-blocking spaces. What's going on, and is there any way to suppress this behaviour?

Thanks for any assistance.

Edit: Fixed title

Update: Tested this on in-between versions of MediaWiki and somehow these two results hold true for any version that is 1.32 or above. Aytimothy (talk) 06:46, 6 April 2021 (UTC)

There has been some refactoring in the parser. Maybe html tags are no longer considered nowiki replacements. I would suggest filing bug at https://phabricator.wikimedia org with minimal test case Bawolff (talk) 01:48, 7 April 2021 (UTC)
Moved to https://phabricator.wikimedia.org/T279494 Aytimothy (talk) 00:34, 20 April 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Mediawiki...Question

Hi everyone.

What does mediawiki mean? Monzonde espoir (talk) 08:49, 6 April 2021 (UTC)

Hi!
From the main page of mediawiki.org
The MediaWiki software is used by tens of thousands of websites and thousands of companies and organizations. It powers Wikipedia and also this website. MediaWiki helps you collect and organize knowledge and make it available to people. It's powerful, multilingual, free and open, extensible, customizable, reliable, and free of charge. Find out more and if MediaWiki is right for you.
Hope that helps! Osnard (talk) 09:42, 6 April 2021 (UTC)
See also MediaWiki history if you are interested in the etymology Bawolff (talk) 01:47, 7 April 2021 (UTC)

Mediawiki 1.30 : Internal error

Hi everyone,

There is an internal error that I cannot explain for Special Pages> List of redirects:


[YGyBjKD9u@zLWOZG7TO@FQAAAwM] /wiki/index.php?title=Sp%C3%A9cial:Liste_des_redirections Error from line 902 of

/home/clients/16e57d37cb3303adbeb9d6dbf80efffb/web/wiki/includes/Title.php: Call to a member function getWikiID() on null

Backtrace:

#0 /home/clients/16e57d37cb3303adbeb9d6dbf80efffb/web/wiki/includes/Title.php(1466): Title->getTransWikiID()

#1 /home/clients/16e57d37cb3303adbeb9d6dbf80efffb/web/wiki/includes/Title.php(1779): Title->getFragmentForURL()

#2 /home/clients/16e57d37cb3303adbeb9d6dbf80efffb/web/wiki/includes/Title.php(1936): Title->getFullURL(string, boolean, boolean)

#3 /home/clients/16e57d37cb3303adbeb9d6dbf80efffb/web/wiki/includes/linker/LinkRenderer.php(410): Title->getLinkURL(array, boolean, boolean)

#4 /home/clients/16e57d37cb3303adbeb9d6dbf80efffb/web/wiki/includes/linker/LinkRenderer.php(257): MediaWiki\Linker\LinkRenderer-

>getLinkURL(Title, array)

#5 /home/clients/16e57d37cb3303adbeb9d6dbf80efffb/web/wiki/includes/linker/LinkRenderer.php(299): MediaWiki\Linker\LinkRenderer-

>makePreloadedLink(Title, string, string, array, array)

#6 /home/clients/16e57d37cb3303adbeb9d6dbf80efffb/web/wiki/includes/linker/LinkRenderer.php(150): MediaWiki\Linker\LinkRenderer-

>makeKnownLink(Title, string, array, array)

#7 /home/clients/16e57d37cb3303adbeb9d6dbf80efffb/web/wiki/includes/specials/SpecialListredirects.php(140): MediaWiki\Linker\LinkRenderer-

>makeLink(Title, string)

#8 /home/clients/16e57d37cb3303adbeb9d6dbf80efffb/web/wiki/includes/specialpage/QueryPage.php(706): ListredirectsPage->formatResult

(SkinMonoBook, stdClass)

#9 /home/clients/16e57d37cb3303adbeb9d6dbf80efffb/web/wiki/includes/specialpage/QueryPage.php(671): QueryPage->outputResults(OutputPage,

SkinMonoBook, Wikimedia\Rdbms\DatabaseMysqli, Wikimedia\Rdbms\ResultWrapper, integer, integer)

#10 /home/clients/16e57d37cb3303adbeb9d6dbf80efffb/web/wiki/includes/specialpage/SpecialPage.php(522): QueryPage->execute(NULL)

#11 /home/clients/16e57d37cb3303adbeb9d6dbf80efffb/web/wiki/includes/specialpage/SpecialPageFactory.php(578): SpecialPage->run(NULL)

#12 /home/clients/16e57d37cb3303adbeb9d6dbf80efffb/web/wiki/includes/MediaWiki.php(287): SpecialPageFactory::executePath(Title,

RequestContext)

#13 /home/clients/16e57d37cb3303adbeb9d6dbf80efffb/web/wiki/includes/MediaWiki.php(851): MediaWiki->performRequest()

#14 /home/clients/16e57d37cb3303adbeb9d6dbf80efffb/web/wiki/includes/MediaWiki.php(523): MediaWiki->main()

#15 /home/clients/16e57d37cb3303adbeb9d6dbf80efffb/web/wiki/index.php(43): MediaWiki->run()

#16 {main}


If you want to see it live, it's here https://www.gennievre.net/wiki/index.php?title=Sp%C3%A9cial:Liste_des_redirections Gennievre (talk) 15:49, 6 April 2021 (UTC)

Maybe something funky with either the sites table or interwiki table for some interwiki namespace. Bawolff (talk) 01:43, 7 April 2021 (UTC)
Okay, that diagnosis can go. But how do I fix it? Gennievre (talk) 15:03, 9 April 2021 (UTC)

Can I pass a template parameter into a TemplateStyles stylesheet?

I want to style responsive images. (I am running mediawiki 1.34.1 and I have the TemplateStyles extension installed.) Some Googling lead me to create a Template:ResponsiveImage like:

<templatestyles src="ResponsiveImage/style.css" />
<div class="responsive-image">
  {{{1}}}
</div>

with a style sheet Template:ResponsiveImage/style.css like:

/* To make images responsive */
.responsive-image img {
    max-width:100%;
    height:auto;
}

So far so good. I can do {{ResponsiveImage|[[File:some image.png]]}} and it fits across the full screen width and shrinks with the screen size.

But it would be neat to be able to pass max-width to give other responsive width images, but I can't find any documentation or examples of how to do it. I've tried the obvious - max-width:{{{1}}}; - but just get an error

Invalid or unsupported value for property 
max-width
at line 3 character 12.

Is there some way to do this? (Or any other way to make responsive images or arbitrary percentage of the screen width.) John Stumbles (talk) 16:38, 6 April 2021 (UTC)

TemplateStyles extension does not support parameters.
You could put the image inside a div tag with an inline style attribute containing a max-width, since the parent element should constrain the child element afaik Bawolff (talk) 01:42, 7 April 2021 (UTC)
Thanks, but styling it in an inline div doesn't work, as described elsewhere in this Project Support Desk by AhmadF.Cheema whose comments lead me to the approach I tried, which I've documented here (link broken up to avoid 'abusefilter-warning-linkspam' warning) https://scienceforsustainability.org/wiki/Scratch:TestImageWidth John Stumbles (talk) 09:14, 7 April 2021 (UTC)
I was thinking combining both might work:
<div class="responsive-image" style="width:50%">[[image:...]]</div>
Keeping your templatestyles the way they are currently where it sets a width on the img tag.
Although i havent tested so i could be wrong. Bawolff (talk) 11:06, 9 April 2021 (UTC)
It looks as if Extension:AdaptiveThumb which Cheema mentioned still exists so I'll try that next. John Stumbles (talk) 09:16, 7 April 2021 (UTC)
I tried it. The documentation (at Extension:AdaptiveThumb and the author's own website, staerk DOT de SLASH thorsten SLASH AdaptiveThumb) is scanty and contradictory, but it seems to only work with external images, and when I tried it, it threw a load of php errors over my page complaining that I hadn't set a bunch of parameters it says nothing about, like align, border, link, title, alt, and margin.
So that's not my answer :-( John Stumbles (talk) 18:15, 7 April 2021 (UTC)

Error after downloading

I get this random error after going in after installing https://pastebin.com/zawKxRqg 2601:647:100:A5C0:5DFC:84D7:CFB9:F037 (talk) 19:06, 6 April 2021 (UTC)

See Project:Support desk/Flow/2021/01#h-Install_Problem_-_binary_in_php_code_(question_marks)-2021-01-01T09:48:00.000Z or Manual:$wgDisableOutputCompression Malyacko (talk) 07:43, 7 April 2021 (UTC)

i want to get the TMT250 configurator,but this is not include to your latest configurator.what is the best to used?

Please see the sidebar. What is "TMT250"? Malyacko (talk) 07:41, 7 April 2021 (UTC)

It's probably https://wiki.teltonika-sas.com/view/TMT250_Configuration
The HELP button on that page goes to MediaWiki's Help:Contents... Jonathan3 (talk) 21:52, 7 April 2021 (UTC)

Get access

Hola

How I could get access to this wiki.?

Many tahnks in advance 188.26.199.188 (talk) 06:51, 7 April 2021 (UTC)

You could add this comment here so you have access already. Malyacko (talk) 07:41, 7 April 2021 (UTC)

Cannot log in

I cannot create an account because when I type my username which is my name it tells me: username already in use.Pls use a different name. 86.9.214.88 (talk) 10:40, 7 April 2021 (UTC)

Could it be, that you are not on the login page, but instead on the create an account page? Zabe (talk) 10:45, 7 April 2021 (UTC)

Is Shoutwiki down?

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


I tried to visit the Webkinz Picture Guide (which is hosted by Shoutwiki) and ended up with a "502 Bad Gateway" error. I really hope it gets fixed soon. 2600:2B00:8A01:7000:AD78:BB68:720:3551 (talk) 14:41, 7 April 2021 (UTC)

As it's hosted by Shoutwiki, you should tell them there. Zabe (talk) 14:44, 7 April 2021 (UTC)
I can't. I'm unable to access Shoutwiki at all. 2600:2B00:8A01:7000:AD78:BB68:720:3551 (talk) 14:55, 7 April 2021 (UTC)
We don't run Shoutwiki and we are not Shoutwiki. http://www.shoutwiki.com/ works for me. They also have Facebook or Twitter accounts. Malyacko (talk) 16:36, 7 April 2021 (UTC)
Never mind. Shoutwiki is working again, and I'm sorry for the mix-up. 2600:2B00:8A01:7000:91AB:D893:6BB0:575F (talk) 17:11, 7 April 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Any way to find out if user {xxx} was actually me, a long time ago?

Username {redacted} might have been mine, a very long time ago. But it doesn't respond to a password reset request at any email I currently own. It's possible I never registered an email address, or it's an email that I no longer control (I've sold a few domains). Is there any way to find out? I can communicate the username and all possible domain names privately and am fine with a simple "yes/no" - I don't want to get any private information, just know whether I should create a brand-new user account or not. Thanks! 174.21.162.61 (talk) 17:05, 7 April 2021 (UTC)

...and if this isn't the correct help forum for that kind of question, I'm happy to be directed to a more appropriate one? 174.21.162.61 (talk) 18:50, 7 April 2021 (UTC)
I dont think so.
You can find out if an email was set at all and validated by if special:emailuser works. No way to find the domain. Bawolff (talk) 16:04, 8 April 2021 (UTC)

replace with brackets in output

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.


<nowiki>I want to convert "Hello, There" to 2 links Hello, there, but neither

[[{{#rreplace:Hello, there|,|]],[[}}]]

nor

[[{{#rreplace:Hello, there|(.*),(.*)|$1]],[[$2}}]]

work, and I can't find a way of escaping the brackets in the result <nowiki>


See also http://fanbase.johnbray.org.uk/Sandbox Vicarage (talk) 21:36, 7 April 2021 (UTC)

Have you tried Extension:Page_Forms/Page_Forms_and_templates#arraymap?
Will you always need to separate out a list of two words delimited by a comma and turn them into two separate links delimited by a comma? Jonathan3 (talk) 21:51, 7 April 2021 (UTC)
My actual use case was splitting up lists of authors, which is exactly arraymap's first example, so the solution could not be easier! Thanks very much Vicarage (talk) 22:31, 7 April 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Double Acess

Hey guys, I want to do something in mediawiki that I don't know if it's possible.

I want to create a public wiki, however, I want to make a restrict area for a specific group of users.

I was wondering if MediaWiki is capable of distinguish the user by its e-mail: if it's a regular e-mail (gmail.com; hotmail.com...) it can view and edit everything except the restrict area; if it's a organizational e-mail (e.g. goldfish.com), it will allow the user to view and edit everything in the wiki, including the restrict area.

Thank you guys in advance! 217.129.108.151 (talk) 23:32, 7 April 2021 (UTC)

See Manual:Preventing access (and maybe here). Malyacko (talk) 05:12, 8 April 2021 (UTC)

Kerberos/SSO auth is not working for MediaWiki 1.35.1

HI,

We have upgraded following software in our new RHEL7 sever environment.

Product Version

MediaWiki 1.35.1

PHP 7.4.15 (apache2handler)

MySQL 8.0.23

Lua 5.1.5


As we do for Kerberos/LDAPs/SSO authentication setup for the application is working fine in other RHEL7 servers with installed MediaWiki 1.31.1.

But with following complete Kerberos client installation/setups & configurations, still the SSO authentication is not working in the new RHEL7 server environment. Please suggest any solution for this SSO auth issue & it will be highly appreciated.


1. Kerberos Client 5.4 installation/setup & config [Done]

2. Mod_auth_kerb packages installation [Done]

3. LDAPs config [Done]

4. Apache config for the UPN [Done]

5. REALM host configuration [Done]

6. Keytab from DRM get initialized successfully with TGT [Done]


Thanks in Adv,

Sanjay SanjayKSahu (talk) 09:17, 8 April 2021 (UTC)

Repeating the host IP after the login

Hello! I got a problem with the login on MediaWiki. After the user login, the user is directed to a URL that repeats the host IP address for example

http://192.168.59.130/mediawiki/192.168.59.130/mediawiki/index.php/Main_Page

and when erase the first part of the link(192.168.59.130/mediawiki), the site work perfectly on the link (192.168.59.130/mediawiki/index.php/Main_Page)

anyone can help?

thanks in advance 2A02:2F0C:5401:3500:3968:9966:6582:BD12 (talk) 10:57, 8 April 2021 (UTC)

Either $wgServer, $wgArticlePath or $wgScriptPath (or all of them) are set wrong. Bawolff (talk) 16:03, 8 April 2021 (UTC)
Thanks a lot
I forgot http before the IP for $wgServer Salem badawi (talk) 20:17, 8 April 2021 (UTC)

issue with upgrade to 1.35

I get the following error when executing php update.php from the maintenance folder:

PHP Fatal error:  Uncaught Exception: Unable to open file /skins/MonoBook/skin.json: filemtime(): stat failed for /skins/MonoBook/skin.json in /home/<user>/webapps/<site>/includes/registration/ExtensionRegistry.php:177

Stack trace:

#0 /home/<user>/webapps/<site>/includes/GlobalFunctions.php(88): ExtensionRegistry->queue('/skins/MonoBook...')

#1 /home/<user>/webapps/<site>/LocalSettings.php(137): wfLoadSkin('MonoBook')

#2 /home/<user>/webapps/<site>/includes/Setup.php(143): require_once('/home/mercuryin...')

#3 /home/<user>/webapps/<site>/maintenance/doMaintenance.php(91): require_once('/home/mercuryin...')

#4 /home/<user>/webapps/<site>/maintenance/update.php(253): require_once('/home/mercuryin...')

#5 {main}

  thrown in /home/<user>/webapps/<site>/includes/registration/ExtensionRegistry.php on line 177


Any help appreciated! 151.210.138.204 (talk) 12:17, 8 April 2021 (UTC)

Are you missing monobook skin? Bawolff (talk) 16:01, 8 April 2021 (UTC)
Well... the 1.35 package expands to give a /skins folder with /MonoBook in it and skin.json so I can't see an issue there.
As suggested I have added the skin to the LocalSettings.php file using wfLoadSkin('MonoBook'). Perhaps it's not necessary to declare this if it's a default skin? 151.210.138.204 (talk) 09:43, 9 April 2021 (UTC)
Huh, the paths look weird there in the error message. What is $wgStyleDirectory set to? Has it been changed from default? Bawolff (talk) 10:57, 9 April 2021 (UTC)
(I have replaced the actual user and site with <user> and <site> in the URL's for privacy when posting.)
The location of the skins directory was set thus:
$wgStyleDirectory   = "$IP/skins";
$IP = $_SERVER['DOCUMENT_ROOT'];
...so I have used a more absolute entry for $IP.
Rerunning update.php is successful, however, I have a subsequent error at this point:
Beginning migration of revision.rev_user and revision.rev_user_text to revision_actor_temp.revactor_actor
... rev_id=100
... rev_id=200
... rev_id=300
... rev_id=400
... rev_id=500
... rev_id=600
... rev_id=700
... rev_id=800
... rev_id=900
... rev_id=1000
... rev_id=1100
... rev_id=1200
MediaWiki\Revision\RevisionAccessException from line 1296 of /home/<user>/webapps/<site>/includes/Revision/RevisionStore.php: Main slot of revision not found in database. See T212428.
I can see T212428 refers to a previous bug/revision but I can't find a way through this error.
Any suggestions? 151.210.138.204 (talk) 21:45, 9 April 2021 (UTC)
If therr was an error in your $IP = $_SERVER['DOCUMENT_ROOT']; line (and $IP was null), it might cause the error you described. I would double check $IP 's value. Bawolff (talk) 09:57, 10 April 2021 (UTC)
I'm assuming $IP's value is correct. After giving it a hard URL the update.php script was able to find the /skins directory.
So to confirm - I've commented out the $IP = $_SERVER['DOCUMENT_ROOT']; line and replaced it with:
$IP = "/home/<user>/webapps/<site>"; 151.210.138.204 (talk) 10:16, 10 April 2021 (UTC)
That probably makes sense because the cli has no document root.
T212428 means phab:T212428 Bawolff (talk) 09:20, 11 April 2021 (UTC)
I understand. I've set $_SERVER['DOCUMENT_ROOT'] manually at the top of includes/Revision/RevisionStore.php:
$_SERVER['DOCUMENT_ROOT'] = "/home/<user>/webapps/<site>";
Running maintenance/update.php again results in what looks like the same error?:
Creating actor entries for all registered users
... 1 - 1
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
MediaWiki\Revision\RevisionAccessException from line 1299 of /home/mercuryinretrograde/webapps/mercuryinretrograde_org/includes/Revision/RevisionStore.php: Main slot of revision not found in database. See T212428.
Any suggestions?
Is there a better place to set $_SERVER['DOCUMENT_ROOT']? 151.210.138.204 (talk) 10:09, 12 April 2021 (UTC)
This is coming back with the update to MediaWiki 1.39. The solution for being unable to load both skins and extensions was to remove the
require_once( "includes/DefaultSettings.php" );
from LocalSettings.php. It is cruft from old installers and is no longer necessary. There was no need to patch IP or the $wgStyleDirectory. Lordgilman (talk) 18:34, 9 December 2022 (UTC)

update.php complains about missing PSR-3 logging library

Visiting the front page shows

MediaWiki requires the PSR-3 logging library to be present. This library is not embedded directly in MediaWiki's git repository and must be installed separately by the end user. Please see mediawiki.org for help on installing the required components.

which has been talked about here before.

I updated composer.lock to remove a line and then ran "composer update". Yes, I know, don't do that, but I did. vendor has psr/log/PSR/Log and composer.lock that refers to psr/log.

The vendor/composer/autoload* files exist (I erased them so they would be regenerated( but none refer to any of the installed libraries. MarkAHershberger(talk) 20:07, 8 April 2021 (UTC)

Possibly the error is referring to the logging package in the Wikimedia/ namespace. Maybe compare the packaged you have vs what a fresh install would and see what's missing. Bawolff (talk) 09:55, 10 April 2021 (UTC)
Just an FYI for future searchers: I came across this again when prepping a 1.31 system for upgrade. I erased the vendor dir and composer.lock file and ran composer update again.
That seems to have resolved the problem. MarkAHershberger(talk) 20:25, 3 August 2022 (UTC)

Hello, new axe fx2 owner here with i/0 volume issues

I have attempted to use the axe fx as an audio interphase for general guitar tracking through logic and volume control for basic music listening. Adjusting the output levels on the front panel to max volume makes it barely audible. I believe i need to adjust the out volume somehow.

I have tried adjusting the i/o Out Volume to no effect as well as padding/boosting to the same result.

When fully connected i can just barely hear the tracks or music the computer is playing.

i have my Ax2 2 set up this way.

guitar to Input on front panel

axe output 1 l and r to desktop monitors

axe usb to laptop


Any info would be greatly appreciated! 174.45.88.38 (talk) 01:16, 9 April 2021 (UTC)

Hello!
It looks like you found us by following a link on the Fractal Audio Wiki but this site is to help people with MediaWiki problems. I suggest you try the Fractal Audio Forum for your questions. MarkAHershberger(talk) 02:04, 9 April 2021 (UTC)

Problem with chromium/webkit browsers and login

Hello, I am new and inexperienced with Mediawiki and run into 2 problems I can't figure out.

The site in question is https://vsnwiki.nl, Mediawiki version 1.35.1, PHP 7.4.16 (litespeed), MariaDB 10.3.28-MariaDB-log-cli-Inv, ICU 64.2.

Question 1. The site is not displayed via chromium or webkit (Safari) based browsers ?

Question 2. When you want to request an account to log in, you get an error message:

" [YG-RL@vo7LMO5jLZkCtKBwAAEA8] /index.php/Speciaal:GebruikerAanvragen Wikimedia\Rdbms\DBQueryError from line 1699 of /home/vsnbasf/domains/vsnwiki.nl/public_html/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?


Error 1146: Table 'vsnbasf_mw1.mw_account_requests' doesn't exist (localhost)

Function: ConfirmAccount::runAutoMaintenance

Query: SELECT acr_id,acr_storage_key FROM `mw_account_requests` WHERE (acr_rejected < '20210402035944') "


I tried to use the application's database schema updater after upgrading, but maybe I did something wrong ? I do not know and as already written I am very inexperienced. I added lines to localsettings.php and possibly made an error ? That could very well be the case. A mistake could have crept in there, too. The rules I added are:


$wgSitename = "Wiki van Vrij en Sociaal Nederland";

$wgGroupPermissions['user']['userrights'] = false;

$wgLogo = "{$wgScriptPath}/resources/assets/Vrij_en_Sociaal_Nederland_logo.jpg";

$wgGroupPermissions['*']['edit'] = false;

$wgGroupPermissions['*']['createaccount'] = false;

wfLoadExtension( 'ConfirmAccount' );

require_once "$IP/extensions/ConfirmAccount/ConfirmAccount.php";

$wgConfirmAccountContact = 'Bureaucrat@domain.com';

$wgGroupPermissions['bureaucrat']['confirmaccount-notify'] = true;

$wgConfirmAccountContact = "info@vsnwiki.nl";

$wgShowExceptionDetails = true;

require_once "$IP/extensions/MobileDetect/MobileDetect.php";

wfLoadExtension( 'VisualEditor' );


Hopefully 1 of you can help me with this ? And best regards,

Herman VSN-Herman (talk) 04:16, 9 April 2021 (UTC)

For error 1, please be more specific as to what happens.
For error 2, try running update.php again. Some extensions require you rerun it after adding them, including ConfirmAccount Bawolff (talk) 10:50, 9 April 2021 (UTC)
Hello Bawolff, thanks for your response
About error 1, please see screenshot
About error 2, how do I run update.php in the right and proper way ? I've read all sorts of 'help pages', but don't quite understand how to go about it.
Hopefully you can explain it to me VSN-Herman (talk) 11:34, 9 April 2021 (UTC)
For error 1, try setting $wgDisableOutputCompression=true; . We've had a bunch of reports related to that recently. Seems to be something breaking with http/2 and mw gzip support.
For error 2. Generally you should run it from the commandline via ssh or putty.
If that's difficult you can also run via the web interface by going to mywiki.com/w/mw-config (assuming your wiki is installed in /w ) Bawolff (talk) 09:53, 10 April 2021 (UTC)
Thanks for your quick response. (I still have to figure out how to set it up to send me an email notification of it, but I will ;-))
For error 1, I tried the setting $wgDisableOutputCompression=true; , but unfortunately it doesn't do the trick. I read somewhere that mediawiki 1.35.1 would not run on PHP versions up to 7.4.2 and could it have something to do with that?
For error 2, I managed to run mw-config, while another error message followed. See the screenshot. VSN-Herman (talk) 07:54, 11 April 2021 (UTC)
I dont think its a php version issue, more an issue with apache.
For the new screenshot. That's weird sounds like a bug. Maybe report at https://phabricator.wikimedia.org Bawolff (talk) 09:19, 11 April 2021 (UTC)
Hello Bawolff, thanks again for your thoughts.
On the site https://vsn-nederland.nl - (based on version 1.34.4) - everything does seem to work fine and so it remains a mystery to me.
I will certainly report the mw-config problem at https://phabricator.wikimedia.org, (thanks for the link), and am curious. VSN-Herman (talk) 07:21, 12 April 2021 (UTC)
@Bawolff Hi, in the meantime I have updated to MW version 1.35.2, and Yes, the problem with display by chromium and webkit browsers appears to be solved 👍. Zie https://vsnwiki.nl VSN-Herman (talk) 11:47, 19 April 2021 (UTC)
@Bawolff Ps.
The login problem also appears to have been fixed with the update to MW 1.35.2. VSN-Herman (talk) 13:28, 19 April 2021 (UTC)

Skin

https://wiki.termux.com/wiki/Main_Page I want to use this skin.How to use.my wiki information

MediaWiki 1.31.12
PHP 7.3.27 (litespeed)
MariaDB 10.3.28-MariaDB-log-cll-lve
Lua 5.1.5

D.Peter (talk) 08:05, 9 April 2021 (UTC)

See https://tweeki.kollabor.at/wiki/Welcome (you can find a list of installed skins on Special:version) Bawolff (talk) 10:48, 9 April 2021 (UTC)

Import template

I was importing Template:Infobox company to my wiki. i face an error Lua error: Internal error: The interpreter exited with status 127. Still facing this error. Also i created a topic before Project:Support desk/Flow/2021/03#h-Lua_error:_Internal_error:_The_interpreter_exited_with_status_127.-2021-03-26T06:44:00.000Z I don`t understand why any one from support is don`t like to help me!

Please will any one help me with this https://wikidot.com.au/wiki/Template:Infobox_company? Mayurbhatt (talk) 09:18, 9 April 2021 (UTC)

You've already been told the answer; i'm not sure what good telling you again would do. Bawolff (talk) 10:46, 9 April 2021 (UTC)

Unusual whitespace characters breaking templates

Hi all, a user has reported an issue where when creating a new article and copying an existing page (which functions correctly), their phone inserts whitespace (I think it's non-breaking space characters) which break parameters in templates. This issue has occurred before and I haven't been able to get to the bottom of it. The person is using a Huawei phone.

Any ideas what is causing this and if there's anything I can do or advise my users to do to avoid this? thanks Garuda3 (talk) 10:46, 9 April 2021 (UTC)

Maybe it is occurring for the mobile keyboard software. You can tell him/her to reinstall the keyboard software or install a new keyboard from app gallery. And clean the cache file. Thank you ↠Tanbirzx () 12:20, 9 April 2021 (UTC)
Thanks for this, I'm suspecting too that it's a browser or keyboard problem rather than one with MediaWiki. I've passed on your advice to him. Garuda3 (talk) 14:44, 10 April 2021 (UTC)

VisualEditor simply does nothing (redirect to page link)

I've just upgraded (with git) my private mediawiki installation from 1.31.X; upgrade went smooth, not so much trouble.

One of the motivation for upgrade was to enable 'VisualEditor', and so after upgrade i've added in my LocalSettings.php:

wfLoadExtension( 'VisualEditor' );

$wgGroupPermissions['Utenti']['writeapi'] = true;

my user is in 'Utenti' group, and i've checked the box 'use visual editor' in my preferences.


But visual editor does nothing, eg simply redirect to page (display); nothing in apache errorlog. In apache access log i got:

hermione - - [09/Apr/2021:13:13:42 +0200] "GET /load.php?lang=it&modules=ext.visualEditor.desktopArticleTarget.noscript%7Cmediawiki.action.edit.styles%7Cmediawiki.editfont.styles%7Cmediawiki.skinning.content.externallinks%7Cmediawiki.widgets.styles%7Coojs-ui-core.icons%2Cstyles%7Coojs-ui.styles.indicators%7Cskins.monobook.responsive&only=styles&skin=monobook HTTP/1.1" 200 24736


Pretty standard debian buster LXC container, versions:

MediaWiki 1.35.2 (50af9ad)
PHP 7.3.27-1~deb10u1 (apache2handler)
MariaDB 10.3.27-MariaDB-0+deb10u1

What i'm missing? Thanks. Marcogaio (talk) 11:17, 9 April 2021 (UTC)

I've tried to enable some debugging, but nothing happened.
Debug data:
  • Start request GET /index.php?title=Paginadiprova&veaction=edit IP: 10.5.1.44 HTTP HEADERS: HOST: iso9k.sv.lnf.it USER-AGENT: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0 ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 ACCEPT-LANGUAGE: it,it-IT;q=0.8,en-US;q=0.5,en;q=0.3 ACCEPT-ENCODING: gzip, deflate DNT: 1 CONNECTION: keep-alive REFERER: http://iso9k.sv.lnf.it/index.php?title=Paginadiprova&veaction=edit COOKIE: wikisv_iso9k__session=ll6meqtp6i15bplh5o56rq5uhbbojcf5; wikisv_iso9k_UserID=1; wikisv_iso9k_UserName=Gaio UPGRADE-INSECURE-REQUESTS: 1 (end headers)
  • [localisation] LocalisationCache using store LCStoreDB
  • [DBQuery] Wikimedia\Rdbms\DatabaseMysqlBase::open [0s] localhost: SET group_concat_max_len = 262144, sql_mode = ''
  • [DBReplication] Wikimedia\Rdbms\LBFactory::getChronologyProtector: request info { "IPAddress": "10.5.1.44", "UserAgent": "Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko\/20100101 Firefox\/87.0", "ChronologyProtection": false, "ChronologyPositionIndex": 0, "ChronologyClientId": false }
  • [DBReplication] Wikimedia\Rdbms\ChronologyProtector::getStartupMasterPositions: client ID is bf9f9f5cf328c7f842e1afc5c4296c2d (read)
  • [DBReplication] Wikimedia\Rdbms\ChronologyProtector::getStartupMasterPositions: key is global:Wikimedia\Rdbms\ChronologyProtector:bf9f9f5cf328c7f842e1afc5c4296c2d:v2 (read)
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::lazyLoadReplicationPositions: executed chronology callback.
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: opened new connection for 0
  • [DBQuery] Wikimedia\Rdbms\DatabaseMysqlBase::serverIsReadOnly [0s] localhost: SELECT @@GLOBAL.read_only AS Value
  • [DBQuery] Wikimedia\Rdbms\Database::beginIfImplied (LCStoreDB::get) [0s] localhost: BEGIN
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'deps' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'list' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'preload' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'preload' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'fallbackSequence' LIMIT 1
  • [session] SessionManager using store APCUBagOStuff
  • [UserOptionsManager] Loading options from database
  • [DBQuery] MediaWiki\User\UserOptionsManager::loadUserOptions [0s] localhost: SELECT up_property,up_value FROM `iso9k_user_properties` WHERE up_user = 1
  • [DBQuery] WikiPage::pageData [0s] localhost: 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 `iso9k_page` WHERE page_namespace = 0 AND page_title = 'Paginadiprova' LIMIT 1
  • Title::getRestrictionTypes: applicable restrictions to [[Paginadiprova]] are {edit,move}
  • [ContentHandler] Registered handler for wikitext: WikitextContentHandler
  • [MessageCache] MessageCache using store APCUBagOStuff
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'list' LIMIT 1
  • [MessageCache] MessageCache::load: Loading it... local cache is empty, got from global cache
  • ParserFactory: using default preprocessor
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'magicWords' LIMIT 1
  • Unstubbing $wgLang on call of $wgLang::unstub from ParserOptions->__construct
  • [caches] parser: APCUBagOStuff
  • [DBQuery] MediaWiki\User\UserGroupManager::getUserGroupMemberships [0s] localhost: SELECT ug_user,ug_group,ug_expiry FROM `iso9k_user_groups` WHERE ug_user = 1
  • Article::view using parser cache: yes
  • Parser cache options found.
  • ParserOutput cache found.
  • Article::view: showing parser cache contents
  • [DBQuery] OutputPage::addCategoryLinksToLBAndGetResult [0s] localhost: SELECT page_id,page_len,page_is_redirect,page_latest,page_restrictions,page_content_model,page_namespace,page_title,pp_value FROM `iso9k_page` LEFT JOIN `iso9k_page_props` ON (pp_propname = 'hiddencat' AND (pp_page = page_id)) WHERE (page_namespace = 14 AND page_title = 'Prova')
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'namespaceGenderAliases' LIMIT 1
  • [DBQuery] Wikimedia\Rdbms\DatabaseMysqlBase::serverIsReadOnly [0s] localhost: SELECT @@GLOBAL.read_only AS Value
  • [DBQuery] MediaWiki::preOutputCommit [0s] localhost: COMMIT
  • MediaWiki::preOutputCommit: primary transaction round committed
  • [DeferredUpdates] DeferredUpdates::run: started MWCallableUpdate_WikiPage->doViewUpdates #439
  • [SQLBagOStuff] MainObjectStash using store ReplicatedBagOStuff
  • [DBQuery] Wikimedia\Rdbms\Database::beginIfImplied (WatchedItemStore::fetchWatchedItems) [0s] localhost: BEGIN
  • [DBQuery] WatchedItemStore::fetchWatchedItems [0s] localhost: SELECT wl_notificationtimestamp FROM `iso9k_watchlist` WHERE wl_user = 1 AND wl_namespace = 0 AND wl_title = 'Paginadiprova' LIMIT 1
  • [DBQuery] WikiPage->doViewUpdates [0s] localhost: COMMIT
  • [DeferredUpdates] DeferredUpdates::run: ended MWCallableUpdate_WikiPage->doViewUpdates #439
  • MediaWiki::preOutputCommit: pre-send deferred updates completed
  • MediaWiki::preOutputCommit: session changes committed
  • [DBReplication] Wikimedia\Rdbms\ChronologyProtector::shutdown: no master positions to save
  • MediaWiki::preOutputCommit: LBFactory shutdown completed
  • OutputPage::haveCacheVaryCookies: found wikisv_iso9k__session
  • User::getBlockedStatus: checking blocked status for Gaio
  • [DBQuery] Wikimedia\Rdbms\Database::beginIfImplied (MediaWiki\Block\DatabaseBlock::newLoad) [0s] localhost: BEGIN
  • [DBQuery] MediaWiki\Block\DatabaseBlock::newLoad [0s] localhost: SELECT ipb_id,ipb_address,ipb_timestamp,ipb_auto,ipb_anon_only,ipb_create_account,ipb_enable_autoblock,ipb_expiry,ipb_deleted,ipb_block_email,ipb_allow_usertalk,ipb_parent_block_id,ipb_sitewide,comment_ipb_reason.comment_text AS `ipb_reason_text`,comment_ipb_reason.comment_data AS `ipb_reason_data`,comment_ipb_reason.comment_id AS `ipb_reason_cid`,actor_ipb_by.actor_user AS `ipb_by`,actor_ipb_by.actor_name AS `ipb_by_text`,ipb_by_actor FROM `iso9k_ipblocks` JOIN `iso9k_comment` `comment_ipb_reason` ON ((comment_ipb_reason.comment_id = ipb_reason_id)) JOIN `iso9k_actor` `actor_ipb_by` ON ((actor_ipb_by.actor_id = ipb_by_actor)) WHERE ipb_address = 'Gaio'
  • [DBQuery] LinkBatch::doQuery (for Skin::preloadExistence) [0s] localhost: SELECT page_id,page_len,page_is_redirect,page_latest,page_restrictions,page_content_model,page_namespace,page_title FROM `iso9k_page` WHERE (page_namespace = 2 AND page_title = 'Gaio') OR (page_namespace = 3 AND page_title = 'Gaio') OR (page_namespace = 1 AND page_title = 'Paginadiprova') OR (page_namespace = 4 AND page_title IN ('Informazioni_sulla_privacy','Informazioni','Avvertenze_generali') )
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'namespaceAliases' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'messages:colon-separator' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'digitGroupingPattern' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'minimumGroupingDigits' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'separatorTransformTable' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'digitTransformTable' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'compiledPluralRules' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'specialPageAliases' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'rtl' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'capitalizeAllNouns' LIMIT 1
  • [DBQuery] MediaWiki\User\TalkPageNotificationManager::dbCheckNewUserMessages [0s] localhost: SELECT user_id FROM `iso9k_user_newtalk` WHERE user_id = 1 LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'datePreferenceMigrationMap' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'defaultDateFormat' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'messages:dec' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'linkPrefixExtension' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'messages:copyright' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'messages:mytalk' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'messages:mypreferences' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'messages:mywatchlist' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'messages:mycontris' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'messages:pt-userlogout' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'messages:nstab-talk' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'deps' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'list' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'preload' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'preload' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'list' LIMIT 1
  • [MessageCache] MessageCache::load: Loading en... local cache is empty, got from global cache
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'messages:monobook-view-view' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'messages:view' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'messages:monobook-view-edit' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'messages:monobook-view-history' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'messages:history_short' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'messages:monobook-action-delete' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'messages:delete' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'messages:monobook-action-move' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'messages:move' LIMIT 1
  • Title::getRestrictionTypes: applicable restrictions to [[Paginadiprova]] are {edit,move}
  • Title::getRestrictionTypes: applicable restrictions to [[Paginadiprova]] are {edit,move}
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'messages:monobook-action-protect' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'messages:protect' LIMIT 1
  • [DBQuery] WatchedItemStore::fetchWatchedItems [0s] localhost: SELECT wl_notificationtimestamp FROM `iso9k_watchlist` WHERE wl_user = 1 AND wl_namespace = 0 AND wl_title = 'Paginadiprova' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'messages:watch' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'messages:visualeditor-ca-editsource' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'messages:help-mediawiki' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'messages:pageinfo-toolboxlink' LIMIT 1
  • [DBQuery] ResourceLoaderWikiModule::preloadTitleInfo [0s] localhost: SELECT page_namespace,page_title,page_touched,page_len,page_latest FROM `iso9k_page` WHERE (page_namespace = 8 AND page_title IN ('Common.css','Monobook.css','Noscript.css','Print.css') )
  • [DBQuery] User::load [0s] localhost: SELECT actor_id,actor_user,actor_name FROM `iso9k_actor` WHERE actor_name = 'Gaio' LIMIT 1
  • [DBQuery] ResourceLoaderWikiModule::preloadTitleInfo [0s] localhost: SELECT page_namespace,page_title,page_touched,page_len,page_latest FROM `iso9k_page` WHERE (page_namespace = 8 AND page_title IN ('Group-autoconfirmed.css','Group-autoconfirmed.js','Group-bureaucrat.css','Group-bureaucrat.js','Group-sysop.css','Group-sysop.js','Group-user.css','Group-user.js') )
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'messages:january' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'messages:february' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'messages:march' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'messages:april' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'messages:may_long' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'messages:june' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'messages:july' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'messages:august' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'messages:september' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'messages:october' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'messages:november' LIMIT 1
  • [DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `iso9k_l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'messages:december' LIMIT 1
  • Title::getRestrictionTypes: applicable restrictions to [[Paginadiprova]] are {edit,move}
Someone can help me? Thanks. Marcogaio (talk) 12:37, 23 April 2021 (UTC)

deletion of whole category in a click

How can we delete 100 or 1000 pages /links under a category.

Anyone has idea. Then pls suggest me. Pooja2425 (talk) 14:16, 9 April 2021 (UTC)

These look promising: Extension:DeleteBatch, Extension:NukeDPL, Manual:DeleteBatch.php. Jonathan3 (talk) 21:36, 9 April 2021 (UTC)

Hi All, From some time Im struggling wit the issue where on on my MediaWiki 1.35 hosted Centos7 with XAMP ( 7.3.27-1 / 7.4.16-0, PHP 7.3.27 , 7.4.16 ,Apache 2.4.46 , MariaDB 10.4.18 ) i was trying to import into my wiki data via mysqldump -ed files from the other of my server also working under Centos 7 and a bit older XAMPP , MediaWiki v. 1.32. and older version of Mariadb 10.3.16 ) After typical pulling sql dump of DB with all tables , I wasnt able log in, nor launch any pages in new server.. Looks like this import totally messed up my wiki. When I was trying to log in, frontend screen error was saying: "Auto-creation of a lcoal account failed. Username entered already in use... " . I did chacke USER table form backend and looked ok to me .

I decided to restore my wikidb from sql backup which I made prior the that import, So I did try another shut and import data previously exported , this time with usage of "php dumpBackup.php --full --quiet > dump.xml" . I did import successfully my new server with "php importDump.php < dumpfile.xml" .Pages looked to be opening correctly and logging was proper. I did copy over all IMAGE folder and untar it. All other server paths and settings looks exactly the same on my both servers. IMAGE folder have all correct permissions. but imported images are not being displayed.

I did use few of the maintenance scripts like: php rebuildImages.php , checkImages.php , rebuildImages.php and all other related with images and metadata. Even so my other imported images are in the same directory, those php maintenance script only can detect just one image file that i recently uploaded and put on a article manually via defaul editor. All imported pages seems to be OK on my new server, so the problem is with pages cannot "see" images embended. Can you advise what esle should I check? what can be casuing problem, is tehre any other maintenace activity i can try? ps I did twice my sql dump import with also with droping the DB


thanks for any hits 165.225.206.250 (talk) 21:31, 9 April 2021 (UTC)

also when comparing the tables between servers , i see that in page table I have different values for page_id for given page titles than in old server. that is casung that imagelinks table via its field il_from referencing the page table ( page_id) are having mismatch. However dumping and importing page table again from the old server is casuing wiki to not display sites all . rebuildall.php crashes with error when trying to fix it. 165.225.206.250 (talk) 00:41, 10 April 2021 (UTC)
Did you copy over the image table? Bawolff (talk) 09:49, 10 April 2021 (UTC)
yes, the image table was copied to new db. the problem the when compare page table i see different page_id values per page name. that is why imagelinks table provide a valid values. , but when I copy over the page table , it all crashes and new wiki cannot display any page. 165.225.206.250 (talk) 09:40, 12 April 2021 (UTC)

Can't Access Index.php After Installation

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, newbie here, please go easy. I use bluehost and installed wikimedia in cpanel (via softaculous). I was able to complete the installation on /mw-config page. However I keep getting an error message when trying to access the main page (https://ryo.mzg.mybluehost.me/wiki/index.php?title=Main_Page):


"This site can’t be reached. The webpage at https://ryo.mzg.mybluehost.me/wiki/index.php?title=Main_Page might be temporarily down or it may have moved permanently to a new web address.

ERR_HTTP2_PROTOCOL_ERROR"


I installed the wiki under '/home/public_html/wiki'. I can access a Bad Title page if I enter some junk in the url (https://ryo.mzg.mybluehost.me/wiki/index.php?title=Main_Page/%123)


Any advice is appreciated, thx!

  • MediaWiki version: 1.35.1
  • PHP version: PHP 7.4 (ea-php74)
  • Database type and version MySQL 5.6.41-84.1


UPDATE 10-Apr-21: Still not able to access with Chrome or Edge, but accessible on Firefox with unsecured URL (http) Canieatthis (talk) 04:37, 10 April 2021 (UTC)

Does setting $wgDisableOutputCompression =true; in LocalSettings.php help? Bawolff (talk) 09:46, 10 April 2021 (UTC)
Looks like it was resolved by Bluehost. I believe there were some DNS settings. Thx Canieatthis (talk) 07:36, 11 April 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

In mediawiki, Cannot insert pages with bodies longer than the specified value, Why?

I can not put more than 70,000 bytes of text as a body on the page. I took these steps to solve this problem, but it was not successful: I am sending a page with more than 70k characters to the server and I have checked this from the inspect element that the submitted request is definitely longer than 70k then

1- The end of the request was cut in the first part of the MediaWiki code (index.php) and part of the submitted information was deleted. index.php is the first part of the code that starts processing the request after receiving the request in apache

2- I modified the following variables to php.ini on the Apache server but the problem was not solved


upload_max_filesize = 512M

memory_limit = 1024M

max_execution_time = 100


can you help me?

mediawiki version = 1.31.0

PHP 7.2 mod_php 89.43.5.103 (talk) 05:10, 10 April 2021 (UTC)

What does the log of the webserver software show when this happens?
Also note that 1.31.0 is an ancient, unsupported, insecure software version. Please upgrade to a secure software version for your own safety. Malyacko (talk) 08:14, 10 April 2021 (UTC)
Check also post_max_size (the other variables you listed are unlikely to cause this) Bawolff (talk) 09:45, 10 April 2021 (UTC)

display of wikipedia pages

Hi,

I don't know the origin of this, but the pages of wikipedia appear (to me) with a very very big font, as if I had zoomed on the page to the maximum.

when I'm the mediawiki page, no problem, the sizes are normal.

there's no issue neither with the other pages I visit, it's only wikipedia.

I made some screen shots of the issue, but I can't attach them here.

if someone takes care about this issue, and don't see the issue himself, if needed, he can contact me using the mail of my account, and i'll send him the screen shots.

Thanks.

Damien DAMBRE Damien.dambre (talk) 13:30, 10 April 2021 (UTC)

Check your browser zoom on the specific page you are having trouble with and if necessary reset it back to 'normal'. Search for 'restore browser zoom' to see what steps might be required. Peculiar Investor (talk) 14:54, 10 April 2021 (UTC)
Ctrl and zero is the usual key combo. Bawolff (talk) 09:15, 11 April 2021 (UTC)

Wikitable entry causes - Forbidden. You don't have permission to access this resource.

Hello, I'm doing a Top 40 table, as soon as I add the following row to the wikitable and try to save the page. I get Forbidden. You don't have permission to access this resource.


{| class="wikitable"

! Position

! Previous Week

! Title

! Artist

|-

|26.

|(32)

|Spirits having flown

|Bee Gees

|-

|}


I can save the page if I type Spirits having, but as soon as I add the f of flown, it will not save.

Current hosting is PHP 8.0.3 and MariaDB 10.1.

Any ideas welcome. Could it be something to do with the SQL HAVING clause?


Thank you. 83.47.180.60 (talk) 16:35, 10 April 2021 (UTC)

For clarity sake, each header and data items are on separate lines and not as shown above. Each line start with corresponding ! or | .
{| class="wikitable"
! Position
! Previous Week
! Title
! Artist
|-
|26.
|(32)
|Spirits having flown
|Bee Gees
|-
|}
83.47.180.60 (talk) 17:02, 10 April 2021 (UTC)
What does the error log of the webserver software show when this happens? Malyacko (talk) 06:08, 11 April 2021 (UTC)
Thank you. This is what I get from Apache error log. It seems "having" makes ModSecurity detect an injection attempt. Any ideas on circumventing this without disabling ModSecurity?
ModSecurity: Access denied with code 403 (phase 2). Pattern match "(?i:[ ()]case ?\\\\(|\\\\) ?like ?\\\\(|\\\\bhaving ?[^\\\\s]+ ?[^\\\\w ]|\\\\bif ?\\\\([\\\\d\\\\w] ?[=<>~])" at MATCHED_VAR. [file "/etc/modsecurity/22_SQL_SQLi.conf"] [line "33"] [id "211700"] [rev "8"] [msg "WAF: Detects conditional SQL injection attempts| 83.47.180.60 (talk) 07:24, 11 April 2021 (UTC)
Mod_security is a kind of terrible WAF with a really high false positive rate and questionable usefulness, i would reccomend disabling it. It sounds like its set to block the word having.
Maybe its possible to bypass by doing something like hav<!-- -->ing or breaking up words with <nowiki/> tags. Bawolff (talk) 09:14, 11 April 2021 (UTC)
Thanks for this, spiltting the word with <nowiki/> tag is what has worked in this case. Not ideal for searching. Will see if I can tweek setting once transfered to the "production" server. 83.47.180.60 (talk) 13:47, 11 April 2021 (UTC)

Hi I'm trying to install wikimedia

This is the problem I'm running into. No clue what to do.
[YHIRZHvPbKyipD3wVS0RSQAAAAI] /mediawiki-1.35.1/mw-config/index.php?page=Install Wikimedia\Rdbms\DBQueryError from line 1699 of /home/vol9_8/epizy.com/epiz_xxxxxxxx/htdocs/mediawiki-1.35.1/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' DEFAULT CHARSET=binary' at line 8 (sql104.epizy.com)
Function: Wikimedia\Rdbms\Database::sourceFile( /home/vol9_8/epizy.com/epiz_xxxxxxxx/htdocs/mediawiki-1.35.1/maintenance/tables-generated.sql )
Query: CREATE TABLE `site_identifiers` (
si_type VARBINARY(32) NOT NULL,
si_key VARBINARY(32) NOT NULL,
si_site INT UNSIGNED NOT NULL,
INDEX site_ids_site (si_site),
INDEX site_ids_key (si_key),
PRIMARY KEY(si_type, si_key)
) ENGINE=, DEFAULT CHARSET=binary
Backtrace:
#0 /home/vol9_8/epizy.com/epiz_xxxxxxxx/htdocs/mediawiki-1.35.1/includes/libs/rdbms/database/Database.php(1683): Wikimedia\Rdbms\Database->getQueryException(string, integer, string, string)
#1 /home/vol9_8/epizy.com/epiz_xxxxxxxx/htdocs/mediawiki-1.35.1/includes/libs/rdbms/database/Database.php(1658): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)
#2 /home/vol9_8/epizy.com/epiz_xxxxxxxx/htdocs/mediawiki-1.35.1/includes/libs/rdbms/database/Database.php(1227): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#3 /home/vol9_8/epizy.com/epiz_xxxxxxxx/htdocs/mediawiki-1.35.1/includes/libs/rdbms/database/Database.php(5075): Wikimedia\Rdbms\Database->query(string, string)
#4 /home/vol9_8/epizy.com/epiz_xxxxxxxx/htdocs/mediawiki-1.35.1/includes/libs/rdbms/database/Database.php(5010): Wikimedia\Rdbms\Database->sourceStream(resource (closed), NULL, NULL, string, NULL)
#5 /home/vol9_8/epizy.com/epiz_xxxxxxxx/htdocs/mediawiki-1.35.1/includes/installer/DatabaseInstaller.php(232): Wikimedia\Rdbms\Database->sourceFile(string)
#6 /home/vol9_8/epizy.com/epiz_xxxxxxxx/htdocs/mediawiki-1.35.1/includes/installer/DatabaseInstaller.php(256): DatabaseInstaller->stepApplySourceFile(string, string, boolean)
#7 /home/vol9_8/epizy.com/epiz_xxxxxxxx/htdocs/mediawiki-1.35.1/includes/installer/Installer.php(1732): DatabaseInstaller->createTables(MysqlInstaller)
#8 /home/vol9_8/epizy.com/epiz_xxxxxxxx/htdocs/mediawiki-1.35.1/includes/installer/WebInstallerInstall.php(44): Installer->performInstallation(array, array)
#9 /home/vol9_8/epizy.com/epiz_xxxxxxxx/htdocs/mediawiki-1.35.1/includes/installer/WebInstaller.php(269): WebInstallerInstall->execute()
#10 /home/vol9_8/epizy.com/epiz_xxxxxxxx/htdocs/mediawiki-1.35.1/mw-config/index.php(82): WebInstaller->execute(array)
#11 /home/vol9_8/epizy.com/epiz_xxxxxxxx/htdocs/mediawiki-1.35.1/mw-config/index.php(40): wfInstallerMain()
#12 {main} 2A00:23C6:F782:B700:E57C:3C63:7918:EABD (talk) 21:09, 10 April 2021 (UTC)
In SQL, what is the output of SHOW ENGINES; ? Malyacko (talk) 07:48, 11 April 2021 (UTC)
Hi. Thanks for the reply. This is the output:
Engine Support Comment Transactions XA Savepoints
PERFORMANCE_SCHEMA YES Performance Schema NO NO NO
CSV YES CSV storage engine NO NO NO
MRG_MYISAM YES Collection of identical MyISAM tables NO NO NO
BLACKHOLE YES /dev/null storage engine (anything you write to it... NO NO NO
MyISAM DEFAULT MyISAM storage engine NO NO NO
FEDERATED NO Federated MySQL storage engine NULL NULL NULL
ARCHIVE YES Archive storage engine NO NO NO
MEMORY YES Hash based, stored in memory, useful for temporary... NO NO NO
InnoDB NO Percona-XtraDB, Supports transactions, row-level l... NULL NULL NULL

2A00:23C6:F782:B700:1C82:9225:FF43:8459 (talk) 16:50, 12 April 2021 (UTC)

And in particular, make sure that InnoDB is one of them.
Also, were you prompted during install to choose between innodb/myisam, and if so what did you choose?
Also did you compile mysql/mariadb yourself with unusual compile time options, get it from an unusual source, or otherwise have something unique with your database? You're the second person i have heard of with this issue (mediawiki installer not detecting mysql engine properly), and i dont think anyone figured out what happened last time around. Bawolff (talk) 09:09, 11 April 2021 (UTC)
Hi. Thanks for the reply. I tried SHOW ENGINES; and it says my database doesn't support innodb but I can't use myisam because the installer didn't prompt me to choose between them. Do you know if there's any way around this or will I have to find a new host where they have innodb? 2A00:23C6:F782:B700:1C82:9225:FF43:8459 (talk) 18:15, 12 April 2021 (UTC)
Hmm, i thought it'd be automatically detected. There is definitely a bug in the installer. I guess you could try the commandline install.php
You might want to do that anyways, innodb is much more reliable than myisam Bawolff (talk) 23:56, 12 April 2021 (UTC)
Your question title is not appropriate. It should be like this, hi i am trying to install MediaWiki.
See- Download
MediaWiki is not compatible with PHP 7.4.0 to 7.4.2 due to an upstream bug. Use PHP 7.4.3 or later instead. See [[task T246594]] for more information. Thank you ↠Tanbirzx () 00:12, 11 April 2021 (UTC)
@Tanbirzx That comment is not helpful. Why do you think this has anything to do with PHP versions? The reporter did not even mention any PHP version. You could ask them for a PHP version, instead of jumping to wrong conclusions. Malyacko (talk) 06:06, 11 April 2021 (UTC)

Query about statistics page

I have a query regarding the "statistics page"

What is the difference between "content pages" and "Pages".

I think that a "content page" is one that does not redirect to another page. And a "page" is one that redirects to another wiki page or external link.

That's rigth?

Note: this is seen in "Special: Statistics"

Resultados de traducción

My wiki is: https://wikiregistral.sunarp.gob.pe/Especial:Estad%C3%ADsticas


Content Pages: 500

Pages: 1210 Dbautistar (talk) 16:56, 11 April 2021 (UTC)

I think the answer is here: Manual:Article count. Jonathan3 (talk) 19:40, 11 April 2021 (UTC)

Auto internal linking

Hey, as the title says, I am interested if there's any sort of plugin for wiki pages that'd add internal links to pages automatically if there are any patterns on the same wiki. I am curious if such a plugin or method exists. JokerLow (talk) 19:55, 11 April 2021 (UTC)

You could try: Extension:LinkTitles. Jonathan3 (talk) 20:47, 11 April 2021 (UTC)
UseModWiki? Bawolff (talk) 22:13, 11 April 2021 (UTC)
What are you trying to achieve? I wrote an extension that looks for alphanumeric patterns (reference numbers, essentially) and for each one spotted, creates an automatic link either to a wiki page (if the pattern appears in its title) or a page on an external website (again, if the pattern appears there). It works well but isn't good enough to show anyone. I'd be happy to discuss it though. Jonathan3 (talk) 22:48, 11 April 2021 (UTC)
Hey, so yeah you got the answer to my question Jonathan3. That extension is the thing I was actually looking for, thank you a lot for your help. JokerLow (talk) 18:36, 12 April 2021 (UTC)

Active users: different values?

I'm getting wildly different values for active users on my Wiki.

  • {{NUMBEROFACTIVEUSERS}} is giving me 11
  • Special:Statistics also shows 11
  • Special:ActiveUsers gives me a much bigger list (over 50), 39 of which have at least 1 edit

The rest of the statistics update so I'm pretty sure the updatespecialpages script is running.

Are some usergroups excluded from this stat? They all show in Active users. After exporting the data it looks like I have 11 users with over 11 edits... everyone below 11 is not showing on Active Users.

Any hints? I'm at a loss. Thanks! 91.125.240.46 (talk) 00:19, 12 April 2021 (UTC)

There are four levels in this game:
  • {{NUMBEROFACTIVEUSERS}} – number of registered users who edited within recent 30 days, or performed any action, at least one
  • {{NUMBEROFUSERS}} – number of accounts, perhaps without any edit ever
  • Special:ActiveUsers – users who might have registered (or perhaps logged in only) within last 30 days, but did not need to perform any action
  • anonymous users who might have edited
Enjoy. PerfektesChaos (talk) 15:51, 12 April 2021 (UTC)
I understand the different levels, but Active Users were showing different amounts. Running initstats.php (been a pain getting access to shell!) has fixed this and now displaying the right number on the Statistics and magic word. Thanks for your reply! 91.125.240.46 (talk) 16:52, 12 April 2021 (UTC)

I didn't ask for this and I don't want it. It won't let me play my games. How do I get it off???"

I didn't ask for this stuff and I don't want it. It won't let me play my games. How do I remove it???? 2603:6010:6E00:10CC:F593:1327:4587:146B (talk) 03:22, 12 April 2021 (UTC)
This is a forum for the MediaWiki software. Please read the sidebar first. Malyacko (talk) 12:58, 12 April 2021 (UTC)
About which stuff are you talking? ↠Tanbirzx () 08:28, 12 April 2021 (UTC)

Error contacting the Parsoid/RESTBase server (HTTP 400)

Hello. Please tell me how to solve the following problem Error contacting the Parsoid/RESTBase server (HTTP 400) The problem appeared after I reduced the display of links /index.php?title=% to the link /$1. Now there are errors on every page. The cms version is stable and new.

Changed files:Apache Config - htaccess - LocalSettings.php Sergvkovev (talk) 07:00, 12 April 2021 (UTC)

Have a look at https://phabricator.wikimedia.org/T279039 - Reinstalling/Upgrading MW to match the VE version fixed this issue for me. GladOSkar (talk) 01:30, 4 May 2021 (UTC)

Invisible Page

Hello,

is it possible to set up pages, which is only visible to a group of logged in members?


Thanks Onmiy (talk) 07:10, 12 April 2021 (UTC)

Where do you want to set up or create this kind of pages? ↠Tanbirzx () 08:22, 12 April 2021 (UTC)
If possible without any restrictions. except on the main page Onmiy (talk) 08:36, 12 April 2021 (UTC)
If this will in a wiki then this action is only done by administrator. ↠Tanbirzx () 09:18, 12 April 2021 (UTC)
@Tanbirzx That answer makes no sense.
See Manual:Preventing_access instead for what's possible. Malyacko (talk) 12:57, 12 April 2021 (UTC)

Hello

Is there a mediawiki extension that manages consent (to be GDPR compliant)?

A French application "tarteaucitron" does this very well on websites but I did not find where to put the script to download here https://tarteaucitron.io/fr/install/

If someone has an idea ... Gennievre (talk) 07:54, 12 April 2021 (UTC)

see also GDPR Bawolff (talk) 01:33, 15 April 2021 (UTC)

MediaWiki in Russia

Good day for all of you! I am looking for the MediaWiki specialist to help me to support and develop my website. I found it hard to find any. It would be great if there is some pages at your website with a list of MediaWiki specialists, who are looking for customers in different countries. Arxon978 (talk) 14:55, 12 April 2021 (UTC)

Please see Professional development and consulting (also linked from the frontpage). Thanks. Malyacko (talk) 15:32, 12 April 2021 (UTC)
thank you very much!
3 specialists in Russia, 1 in Ukraine. not many...but better than nothing Arxon978 (talk) 16:45, 13 April 2021 (UTC)

Adding external CSS and JS to wiki

I'd like to add Responsive Tables to my wiki. It needs the following to be added:

/* Attach the Table CSS and Javascript */
<link rel="stylesheet" href="responsive-tables.css">
<script src="responsive-tables.js"></script>

I tried to add it using Extension:Widgets but it didn't work for me (maybe because it incorporated it within the body part of the web page rather than in the head?)

I guess I could manually edit the skin, but is there a recommended way of doing this in a way that wouldn't require me to repeat it on an upgrade? Thanks. Jonathan3 (talk) 21:15, 12 April 2021 (UTC)

Use mediawiki:common.js and mediawiki:common.css you'll need to adjust the loading code though to work from within a css / js file instead of html. Bawolff (talk) 23:51, 12 April 2021 (UTC)
I'm a bit lost. No doubt it will seem obvious in hindsight. I pasted the CSS and JS into Common.css and Common.js respectively but still to no avail. I'll keep trying things... Jonathan3 (talk) 09:09, 13 April 2021 (UTC)
I'm half way there. I added the following to a Widget page and it works. I'd just blindly copied and pasted, without adding the full URLs, the first time.
<link rel="stylesheet" href="https://zurb.com/playground/projects/responsive-tables/responsive-tables.css">
<script src="https://zurb.com/playground/projects/responsive-tables/responsive-tables.js"></script>
I would still be interested how to do it within MediaWiki. I guess I could at least use a local copy of the CSS/JS files. Jonathan3 (talk) 09:14, 13 April 2021 (UTC)
You might want to also read through Help:Cascading Style Sheets. I found it very helpful to understand how the various CSS and JS files are used. I don't see anything that specifically relates to loading external CSS and JS. Peculiar Investor (talk) 13:23, 13 April 2021 (UTC)
generally you use @import for external css, and mw.loader.load for external js Bawolff (talk) 01:32, 15 April 2021 (UTC)

Double login mode GoogleLogin and standard mw login

Hello,

i want to use mw as a corporate wiki.

My need is:

  • Registration and social login via google for my domains
  • Registration and classic login for users not belonging to my domain (to be authorized once registered independently.

Now I have configured the GoogleLogin extension and I was able to log in with google.

But I can't create the array of my domains (so that my google users can register and log in).

I manage to keep the classic recording. Francismule2021 (talk) 23:05, 12 April 2021 (UTC)

Line spacing

Hello. I use the last version of MediaWiki and timeless thememe. When I start a new line (br) i got a really big interval between lines like for a new paragraph. I want to change it for a normal (if i wouldn't press "enter" and it was the same line).

I've found to edit common.css but I didn't find this file. Where should I put this file and what should i put inside that file? Something like p {margin:bottom 0.1em}? 83.229.69.94 (talk) 11:15, 13 April 2021 (UTC)

so paragraph (what happens if you hit newline twice in a row) and br tags are different. The css you mentioned would be for a p (paragraph) tag. Bawolff (talk) 01:31, 15 April 2021 (UTC)
I know that, it was just an example. Anyway it doesn't work. 1.46.100.189 (talk) 05:03, 15 April 2021 (UTC)

Can't change the password of an account on my wiki

Hello, so I just recently started a new wiki, and I made another account for me on that wiki. But then, I tried to log in into it again, and it said that I entered a wrong password, I tried reseting the password by using email, I chosen a new password, but when I clicked Continue Login button, it said ⧼authmanager-authplugin-setpass-denied⧽, is there a way on how to fix this? Plastacikec (talk) 14:09, 13 April 2021 (UTC)

Apparently, you're not allowed to change your password. This may be because you're using a plugin that manages accounts externally (LDAP or similar). Ciencia Al Poder (talk) 14:17, 13 April 2021 (UTC)
Oh, and is there a way to allow it? Plastacikec (talk) 15:07, 13 April 2021 (UTC)
No. External accounts are managed externally. You should change your password on the external account manager (LDAP or similar) and it should automatically change on MediaWiki as well Ciencia Al Poder (talk) 15:40, 13 April 2021 (UTC)
Does it work also when I host a wiki using Cloudron? Plastacikec (talk) 16:07, 13 April 2021 (UTC)
I don't even know what's Cloudron nor what's your setup.
MediaWiki uses it's own user management system. If you're integrating with anything else (usually you'd have to install an extension for that, or maybe the wiki was installed for you...), that's something only you know Ciencia Al Poder (talk) 16:15, 13 April 2021 (UTC)

Forgotten password with no email

Hi,

I'd like to start re-using my old Wikipedia account which I made in 2014 and haven't used since 2016ish. My password doesn't seem to work. I tried resetting the password but that doesn't seem to work either, I don't receive any email; I don't know if I ever attached the account to a specific email address, maybe I didn't.

The account is called @Liberivore and apparently still exists.

Any chance of getting it back or is it dead and gone and I should make a new account?

Thank you for any assistance. 109.213.7.154 (talk) 14:36, 13 April 2021 (UTC)

If you find a way to absolutely surely prove that you are the very same person who also once created that very account, then please share more info. Malyacko (talk) 16:09, 13 April 2021 (UTC)
Hi,
If it has an email address associated with it, my name is in that address.
If not, I found the list of contributions from that account (https://en.wikipedia.org/w/index.php?title=Special:Contributions/Liberivore&dir=prev&offset=20150422203729&target=Liberivore). One of the very first edits is to the page of my high school and, a few years later, that of my university and that of my senator. I'd be able to prove all of those things individually. I don't know if that's sufficient though as there could hypothetically be someone with very similar life-interests.
Thanks
L 109.213.7.154 (talk) 17:02, 13 April 2021 (UTC)
I'm not sure how this platform works. Should I ping @Malyacko ? 90.14.219.38 (talk) 13:50, 14 April 2021 (UTC)
we generally dont give people back their accounts unless they have iron clad proof (e.g. the type of proof you would use in court). This is very hard to provide, most peolle would just have to create a new account. Sorry. Bawolff (talk) 01:29, 15 April 2021 (UTC)
Gotcha. Thank you for your help, I'll do that. 109.212.152.56 (talk) 09:59, 17 April 2021 (UTC)

.dat files on mediawiki

uploading a .dat file to the mediawiki works and I'm able to confirm the file get to the target folder. But when I try to see the .dat file from the wiki or try to download it from the wiki I get a 404 error - file or directory not found. Testing this with .txt files and .jpg files and had no issues. I also have the .dat files extension configure on my LocalSettings.php below is my extensions settings.

$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'doc',

    'xls', 'mpp', 'pdf', 'ppt', 'tiff', 'bmp', 'docx', 'xlsx',

    'pptx', 'ps', 'odt', 'ods', 'odp', 'odg','exe','dat','txt'

);

Any suggestions on how to fix this issue? 50.73.98.161 (talk) 14:57, 13 April 2021 (UTC)

Uploaded files are served directly from the web server from their location on the filesystem. MediaWiki is not involved at all once they have been uploaded (or a thumbnail is created).
Maybe you need to define a mime type for .dat files on your webserver. For example, IIS will refuse to serve files without a configured mime type. Ciencia Al Poder (talk) 15:43, 13 April 2021 (UTC)
Thank you Ciencia, I'll give this a try 50.73.98.161 (talk) 15:56, 13 April 2021 (UTC)

Pages with special characters (ä,ö,ü) are not shown after upgrade from 1.31.14 -> 1.35.2

I've upgraded my wiki (extracted tar.gz, copied images, extensions and LocalSettings.php) and run php update.php without errors.

But now all my pages which contain an spcial character (e.g. ä, ö, ü) in title are not showen correctly. On "All Pages" page they are only the dots in the beginning but no link text. if i go to the article via direct link, i get an error title has a wrong UTF-8 sequence.

Didn't find anything on the internet about it. Any ideas?


My LocalSettings.php (runs perfectly with 1.31):

<?php

if( defined( 'MW_INSTALL_PATH' ) ) {

   $IP = MW_INSTALL_PATH;

} else {

   $IP = dirname( __FILE__ );

}

$path = array( $IP, "$IP/includes", "$IP/languages" );

set_include_path( implode( PATH_SEPARATOR, $path ) . PATH_SEPARATOR . get_include_path() );

require_once( "$IP/includes/DefaultSettings.php" );

ini_set( 'memory_limit', '128M' );

if ( $wgCommandLineMode ) {

   if ( isset( $_SERVER ) && array_key_exists( 'REQUEST_METHOD', $_SERVER ) ) {

       die( "This script must be run from the command line\n" );

   }

}

$wgSitename         = "MOS Wiki";

$wgScriptPath       = "";

$wgScriptExtension  = ".php";

$wgEnableEmail      = false;

$wgEnableUserEmail  = false; # UPO

$wgEmergencyContact = "<mail>";

$wgPasswordSender = "<mail>";

$wgEnotifUserTalk = false; # UPO

$wgEnotifWatchlist = false; # UPO

$wgEmailAuthentication = false;

$wgDBtype           = "mysql";

$wgDBserver         = "<ip>";

$wgDBname           = "<name>";

$wgDBuser           = "<user>";

$wgDBpassword       = "<pw>";

$wgDBprefix         = "wiki_";

$wgDBTableOptions   = "ENGINE=InnoDB, DEFAULT CHARSET=binary";

$wgMainCacheType = CACHE_NONE;

$wgMemCachedServers = array();

$wgEnableUploads       = true;

$wgSVGConverter = 'rsvg';

$wgShellLocale = "de_DE.utf8";

$wgUseTeX           = false;

$wgLocalInterwiki   = strtolower( $wgSitename );

$wgLanguageCode = "de";

$wgSecretKey = "<key>";

$wgDefaultSkin = 'vector';

$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright

$wgRightsUrl = "";

$wgRightsText = "";

$wgRightsIcon = "";

$wgDiff3 = "/usr/bin/diff3";

$wgCacheEpoch = max( $wgCacheEpoch, gmdate( 'YmdHis', @filemtime( __FILE__ ) ) );

$wgServer = "https://<ip>";

$wgGroupPermissions['*'    ]['edit']            = false;

$wgGroupPermissions['*'    ]['createpage']      = false;

$wgGroupPermissions['*'    ]['createtalk']      = false;

$wgGroupPermissions['*'    ]['read']      = true;

$wgGroupPermissions['*'    ]['createaccount']      = false;

$wgGroupPermissions['*'    ]['writeapi']      = false;

$wgGroupPermissions['sysop']['createaccount'] = true;

$wgGroupPermissions['user']['rollback']         = true;

wfLoadSkin( 'Timeless' );

wfLoadSkin( 'MonoBook' );

wfLoadSkin( 'Vector' );

$wgLogo = "{$wgScriptPath}/images/logo.jpg";

$wgFileExtensions = array('gif','png','jpg','jpeg','svg','xls','xlsx','xlsm','doc','docx','ppt','pptx','rtf','pdf', 'zip','7z','dia','sh','vsd','vsdx');

$wgTrustedMediaFormats[]='application/x-gzip';

$wgUseAjax = true;

wfLoadExtension( 'CategoryTree' );

$wgCategoryTreeDisableCache = true;

$wgCategoryTreeDefaultOptions['mode'] = 'pages';

$wgCategoryTreeCategoryPageOptions['mode'] = 'pages';

$wgCategoryTreeSpecialPageOptions = true;

$wgCategoryTreeSidebarOptions = true;

$wgVerifyMimeType = false;

$wgMaxUploadSize = 67108864;

$wgAllowExternalImages = true;

wfLoadExtension( 'Cite' );

$wgLocaltimezone = "Europe/Berlin";

$oldtz = getenv("TZ");

putenv("TZ=$wgLocaltimezone");

$wgLocalTZoffset = date("Z") / 60;

putenv("TZ=$oldtz");

wfLoadExtension( 'WikiEditor' );

$wgDefaultUserOptions['usebetatoolbar'] = 1;

$wgDefaultUserOptions['usebetatoolbar-cgd'] = 1;

$wgDefaultUserOptions['wikieditor-preview'] = 1;

$wgDefaultUserOptions['wikieditor-publish'] = 1;

wfLoadExtension( 'SyntaxHighlight_GeSHi' );

wfLoadExtension( 'PDFEmbed' );

$wgPdfEmbed['width'] = 800;

$wgPdfEmbed['height'] = 1090; 80.146.191.156 (talk) 16:05, 13 April 2021 (UTC)

maybe the db config is the problem?
MariaDB [(none)]> select table_name,engine,TABLE_COLLATION  from information_schema.tables where table_schema = '<db>';
+----------------------------+--------+-------------------+
| table_name                 | engine | TABLE_COLLATION   |
+----------------------------+--------+-------------------+
| wiki_user_properties       | InnoDB | binary            |
| wiki_uploadstash           | InnoDB | binary            |
| wiki_calendar_version      | MyISAM | latin1_swedish_ci |
| wiki_user_former_groups    | InnoDB | binary            |
| wiki_external_user         | InnoDB | binary            |
| wiki_trackbacks            | InnoDB | latin1_swedish_ci |
| wiki_revision_comment_temp | InnoDB | binary            |
| wiki_l10n_cache            | InnoDB | binary            |
| wiki_ipblocks_old          | InnoDB | latin1_swedish_ci |
| wiki_content               | InnoDB | binary            |
| wiki_user_newtalk          | MyISAM | latin1_swedish_ci |
| wiki_oldimage              | InnoDB | latin1_swedish_ci |
| wiki_watchlist             | InnoDB | latin1_swedish_ci |
| wiki_watchlist_expiry      | InnoDB | binary            |
| wiki_interwiki             | InnoDB | latin1_swedish_ci |
| wiki_actor                 | InnoDB | binary            |
| wiki_ip_changes            | InnoDB | binary            |
| wiki_bot_passwords         | InnoDB | binary            |
| wiki_langlinks             | InnoDB | latin1_swedish_ci |
| wiki_ipblocks_restrictions | InnoDB | binary            |
| wiki_user_groups           | InnoDB | latin1_swedish_ci |
| wiki_job                   | InnoDB | latin1_swedish_ci |
| wiki_revision_actor_temp   | InnoDB | binary            |
| wiki_user                  | InnoDB | latin1_swedish_ci |
| wiki_page_restrictions     | InnoDB | latin1_swedish_ci |
| wiki_recentchanges         | InnoDB | latin1_swedish_ci |
| wiki_querycache_info       | InnoDB | latin1_swedish_ci |
| wiki_querycachetwo         | InnoDB | latin1_swedish_ci |
| wiki_updatelog             | InnoDB | latin1_swedish_ci |
| wiki_ipblocks              | InnoDB | latin1_swedish_ci |
| wiki_templatelinks         | InnoDB | latin1_swedish_ci |
| wiki_page                  | InnoDB | latin1_swedish_ci |
| wiki_querycache            | InnoDB | latin1_swedish_ci |
| wiki_pagelinks             | InnoDB | latin1_swedish_ci |
| wiki_redirect              | InnoDB | latin1_swedish_ci |
| wiki_module_deps           | InnoDB | binary            |
| wiki_site_identifiers      | InnoDB | binary            |
| wiki_log_search            | InnoDB | binary            |
| wiki_protected_titles      | InnoDB | latin1_swedish_ci |
| wiki_objectcache           | InnoDB | latin1_swedish_ci |
| wiki_logging               | InnoDB | latin1_swedish_ci |
| wiki_slot_roles            | InnoDB | binary            |
| wiki_content_models        | InnoDB | binary            |
| wiki_site_stats            | InnoDB | latin1_swedish_ci |
| wiki_change_tag_def        | InnoDB | binary            |
| wiki_externallinks         | InnoDB | latin1_swedish_ci |
| wiki_categorylinks         | InnoDB | latin1_swedish_ci |
| wiki_filearchive           | InnoDB | latin1_swedish_ci |
| wiki_image                 | InnoDB | latin1_swedish_ci |
| wiki_slots                 | InnoDB | binary            |
| wiki_calendar_header       | MyISAM | latin1_swedish_ci |
| wiki_math                  | InnoDB | latin1_swedish_ci |
| wiki_text                  | InnoDB | latin1_swedish_ci |
| wiki_imagelinks            | InnoDB | latin1_swedish_ci |
| wiki_page_props            | InnoDB | latin1_swedish_ci |
| wiki_category              | InnoDB | latin1_swedish_ci |
| wiki_change_tag            | InnoDB | binary            |
| wiki_revision              | InnoDB | latin1_swedish_ci |
| wiki_searchindex           | MyISAM | latin1_swedish_ci |
| wiki_archive               | InnoDB | latin1_swedish_ci |
| wiki_iwlinks               | InnoDB | binary            |
| wiki_sites                 | InnoDB | binary            |
| wiki_calendar_events       | MyISAM | latin1_swedish_ci |
| wiki_validate              | InnoDB | latin1_swedish_ci |
| wiki_comment               | InnoDB | binary            |
+----------------------------+--------+-------------------+
65 rows in set (0.005 sec) 80.146.191.156 (talk) 16:47, 13 April 2021 (UTC)
MariaDB [(none)]> SELECT column_name, character_set_name FROM information_schema.`COLUMNS`  WHERE table_schema = "<db>" AND table_name = "wiki_page";
+--------------------+--------------------+
| column_name        | character_set_name |
+--------------------+--------------------+
| page_id            | NULL               |
| page_namespace     | NULL               |
| page_title         | latin1             |
| page_restrictions  | NULL               |
| page_is_redirect   | NULL               |
| page_is_new        | NULL               |
| page_random        | NULL               |
| page_touched       | latin1             |
| page_latest        | NULL               |
| page_len           | NULL               |
| page_content_model | NULL               |
| page_links_updated | NULL               |
| page_lang          | NULL               |
+--------------------+--------------------+
13 rows in set (0.00 sec) 80.146.191.156 (talk) 16:52, 13 April 2021 (UTC)
maybe try changing the charset on everything to binary? Mediawiki generally prefers the db to be binary (with data encoded utf8, but no charset in db). Make backups before trying anything.
Worst case, export a dump, convert with iconv, change charset to binary, reimport. Bawolff (talk) 01:26, 15 April 2021 (UTC)

Move the images folder

Hello
I installed the wiki from scratch and replaced the new 5GB photo folder
The previous wiki is 1.35 with the current one
Everything is fine but does not call photos
Also, Special:ListFiles is nothing Sokote zaman (talk) 16:28, 13 April 2021 (UTC)
I'm disappointed in your guidance. Is it permissible to take more than 1,000 photos from Wikiman and transfer it to The Destination Wiki?
@Jonathan3 Sokote zaman (talk) 21:24, 13 April 2021 (UTC)
this is a free forum. You get what you get. Bawolff (talk) 01:23, 15 April 2021 (UTC)
I don't know anything about Wikiman so don't know what's permissible.
I don't know enough about MediaWiki to work out your problem for sure from what you have said so far. I suspect it's just that MediaWiki doesn't know anything about the contents of your photo directory. If that's the problem then you could remedy it by bulk uploading the contents of the directory. Or if you are trying to recreate an old wiki then just follow the relevant instructions, which include transferring the wiki database as well as the files. Jonathan3 (talk) 12:26, 14 April 2021 (UTC)
Thank you
You will explain more about this article please:
if you are trying to recreate an old wiki then just follow the relevant instructions, which include transferring the wiki database as well as the files.@Jonathan3 Sokote zaman (talk) 12:41, 14 April 2021 (UTC)
I recently moved my wiki to a new server and found these two articles helpful:
I will receive notifications from this topic without being pinged/tagged (whatever the word is) - and it might make other (better qualified) people feel more willing to reply too :-) Jonathan3 (talk) 17:59, 14 April 2021 (UTC)
The wiki won't know about the files, unless you copy across the old database (as well as the wiki files) - or maybe
Category:Bulk_upload
will help. Jonathan3 (talk) 20:17, 13 April 2021 (UTC)
use importImages.php.
Mediawiki needs to have imported the image metadata into db before it can see it. it wont recognize just a folder of images. Bawolff (talk) 01:21, 15 April 2021 (UTC)

Search results for other wikis

I have my own wiki farm, multiple wikis, and I would like to enable it so that when I search for something on a wiki on the Special:Search -special page, it shows similar results from other wikis. We have CentralAuth up and running and the wikis are connected.

What setting should be on for the search function to show results from other connected wikis? Kanasalaatti (talk) 16:47, 13 April 2021 (UTC)

The wikimedia version is part of extension:CirrusSearch but prob requires additional setup i dont know about. Bawolff (talk) 18:55, 13 April 2021 (UTC)

Templates

Where can I get the templates like This page in a nutshell, or a Stub template? Plastacikec (talk) 17:34, 13 April 2021 (UTC)

At first you should go to a page with source editing option then you will see a function bar top of the page. In there you can find a search box for template.
For external help-
See Help:Templates#Linking to a template ↠Tanbirzx () 18:09, 13 April 2021 (UTC)
Manual:Importing Wikipedia infoboxes tutorial Bawolff (talk) 18:54, 13 April 2021 (UTC)

Scratch Wiki skin issue

Hello, so I wanted to install the Scratch Wiki skin on my wiki, I loaded it using wfLoadSkin( 'ScratchWikiSkin2' ); but when I set it as a default skin and try to visit the wiki, it displays a 500 HTTPS error for some reason. Is there a way on how to fix this? Plastacikec (talk) 19:56, 13 April 2021 (UTC)

How to debug. Your php error log should have a more specific error. Bawolff (talk) 01:19, 15 April 2021 (UTC)

[SMW] Embedded queries are not auto updated

Hello,

I am facing an issue with Semantic Mediawiki embedded queries {{#ask:...}} on my wiki with Mediawiki 1.35.1 and Semantic Mediawiki 3.2.3.

Queries are working fine but their displayed result are not automatically updated even when their *actual* results change (i.e. the retrieved data change as a result of some modifications on queried pages). I can force the update by purging the query page, but I have multiples queries accross my wiki and this is not a long term solution.

I have disabled all caching mechanisms (wgMainCacheType, smwgMainCacheType, smwgQueryResultCacheType) and non-default extensions, without any visible improvement.

Yet if I execute the SQL I get from {{#ask:...|format=debug}}, everything is fine. I don't know how to go further :(

Any idea on how I could fix this? 92.89.123.253 (talk) 20:35, 13 April 2021 (UTC)

I use Cargo rather than SMW but would Extension:MagicNoCache help you? Jonathan3 (talk) 21:13, 13 April 2021 (UTC)
probably $wgParserCacheType more so than $wgMainCacheType. Parser cache type probably defaults to CACHE_DB when main cache type is set to CACHE_NONE.
That said, better to use Johnathan's suggestion and do it on a per page basis. Bawolff (talk) 01:17, 15 April 2021 (UTC)

Trouble configuring the upload directory.

I have sat here for hours trying to research this problem extensively and am back to square 1. I have followed the examples

on the previous pages to no avail.

I have an issue similar to the one I found from Adba.swht 4 years ago. (Unable to display file in Mediawiki)

The problem is that files upload are being created at the root folder for some reason.

Here is what i have in the Localsettings.php file.

$wgUploadDirectory = "$IP/images";

$wgUploadPath = "$wgScriptPath/images";

If I change it to $wgUploadPath = "/inetpub/wwwroot/mediawiki/images";

I get the following error message:

Action failed

Could not open lock file for "mwstore://local-backend/local-public/e/eb/ABCover.jpg". Make sure your upload directory is configured correctly and your web server has permission to write to that directory.

See https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:$wgUploadDirectory for more information.

I changed the upload path to $wgUploadDirectory = "/mediawiki2/images";

just to verify it is being created and sure enough at C:\mediawiki2\images

the files are created. ie. /f/ff/testimage.jpg

Its not that the files dont upload, its that when they do then

1. The file itself cannot be found

2. The thumbnail fails to render (Error creating thumbnail: File missing)

Also, the system temp folder keeps creating phpXXX.tmp files

this is probably related so I figured its worth mentioning.

As stated before I have tried several examples but nothing seems to work.

Any and all help would be GREATLY appreciated.

Thank you in advance. TheAutomaticc (talk) 00:11, 14 April 2021 (UTC)

probably something to do with windows acls. Bawolff (talk) 01:18, 15 April 2021 (UTC)

Run All Cache Invalidations

How does one run all cache invalidations subsequent to updating a template?

I'm making extensive use of templates to simulate what might be thought of as a "Documented Spreadsheet" and can't afford to present invalid cached HTML after an update. Moreover, I don't want to recalculate all HTML cached pages after an update since many pages may have fallen into obsolescence but not yet been deleted for historical purposes. Jabowery (talk) 00:55, 14 April 2021 (UTC)

The Job_queue is responsible for updating anything that needs updating. Many wikis have not installed or effectively tweaked the processing rate of their wiki installation and that will cause updates to other pages to take long —TheDJ (Not WMF) (talkcontribs) 10:45, 14 April 2021 (UTC)
I take it, then, that there is no answer to my question. Hence I must modify the maintenance/runJobs.php script to accept an argument that runs only the cache invalidations? Jabowery (talk) 17:45, 14 April 2021 (UTC)
the job queue doesn't do much else in a default setup other than run cache invalidations, so its a confusing question (yes, some extensions use it for other things, but you probably aren't using them)
If your goal is to blanket clear all cache, you can do that by making a dummy edit to LocalSettings.php (makes the page update but not categories). If you need to reset all categories/other links, run refreshLinks.php Bawolff (talk) 01:13, 15 April 2021 (UTC)
You could just leave a terminal window open and run php runJobs.php whenever you make a change to your template. I don't know of any web interface way of doing this if you don't have shell access. (Hope I'm using the right terminology here.) I guess someone could write an extension that creates a special page to do it.
Or maybe you could use Extension:MagicNoCache and add __NOCACHE__ to the pages that use the template, so that the page never gets cached and always uses the latest version of the template. Jonathan3 (talk) 18:05, 14 April 2021 (UTC)
I already gave up on a web interface and assumed I'd have to use maintenance/runJobs.php but then I ran into a problem:
It seemed as though runJobs was doing a lot more than merely invalidating the pages that depended directly and/or indirectly on the edited template. ie: It seemed as though runJobs.php was re-rendering all of those pages. Was I mistaken?
PS: When I tried php runJobs.php --type htmlCacheUpdate it seemed as though it did a lot less work even than just invalidating dependent and/or indirectly dependent pages, ie: It seemed to be invalidating only directly dependent pages. Jabowery (talk) 21:59, 14 April 2021 (UTC)
> I already gave up on a web interface
and Johnathan wrote
> I don't know of any web interface way
To clarify, the web interface here would be setting $wgJobRunRate to some non zero number (e.g. 4). The two options are not mutually exclusive, you could have both command line and web job runner.
> It seemed as though runJobs.php was re-rendering all of those pages. Was I mistaken?
Yes. RunJobs.php wont invalidate all pages, but maybe you did something to invalidate other pages without realizing, or maybe they were invalidated a long time ago and the job is just running now. If you've edited a template used on every page, it will invalidate them all.
> PS: When I tried php runJobs.php --type htmlCacheUpdate it seemed as though it did a lot less work even than just invalidating dependent and/or indirectly dependent pages...
Note that htmlCacheUpdate does not fully refresh a page. If the template contains category changes, etc. Its the RefreshLinkUpdates job not the htmlCacheUpdate that does that part of the update.
> ie: It seemed to be invalidating only directly dependent pages.
Different actions might trigger different invalidations. Actions that dont effect indirect dependencies (e.g. whether a link is red or blue after a page creation) dont purge the indirect dependencies. Bawolff (talk) 01:10, 15 April 2021 (UTC)
By "those pages" I was referring to "pages that depended directly and/or indirectly on the edited template". So if I understand your sentence: "If you've edited a template used on every page, it will invalidate them all," you're saying `runJobs` with no arguments will invalidate all cached renderings of "pages that depended directly and/or indirectly on the edited template" but it will not re-render (or "refresh" to use your term?) those pages. Is that correct? Jabowery (talk) 01:38, 15 April 2021 (UTC)

How do I know if I am a member?

Neither my email address or my name is coming up anywhere I try to enter it. However, this was years ago and I may have had a different email address which I do not remember. Can ANYONE help me? These help pages might as well be in Swahili!

I cannot log in, because the site will not accept my name or email addresses, so I am adding my email address here. mrdoolin1@yahoo.com.

Thank you so much! 2600:1700:EE90:2890:B49B:3A23:90CD:26FD (talk) 07:10, 14 April 2021 (UTC)

Welcome to the support desk for the MediaWiki software. Which website is that about? Member of what exactly? Malyacko (talk) 07:29, 14 April 2021 (UTC)

Fatal exception of type "Wikimedia\Rdbms\DBQueryError"

Greetings


Can you please provide advise how to resolve.


Technical inforamtion and output of update,php


Clean install of 1.35.2.

Used web installer and only selected those Plugins that don't use semantic web.

Busy with tryout of DataTable2

Using authorized editors only


Used the Visual editor but switched to source

After save I get the following error:

[7672984a7e19ba593e41843f] 2021-04-14 11:16:05: Fatal exception of type "Wikimedia\Rdbms\DBQueryError"


MediaWiki    1.35.2

PHP    7.4.16 (cgi-fcgi)

SQLite    3.31.1

ICU    66.1

Lua    5.1.4


Ran the updatat,php file

This is the output

QUOTE

MediaWiki 1.35.2 Updater

Your composer.lock file is up to date with current dependencies!

Going to run database updates for seo_doc_ex

Using SQLite file: 'D:\wiki\data/seo_doc_ex.sqlite'

Depending on the size of your database this may take a while!

Abort with control-c in the next five seconds (skip this countdown with --quick) ... 0

...have ss_active_users field in site_stats table.

...ss_active_users user count set...

...have ipb_allow_usertalk field in ipblocks table.

...have initial indexes

...change_tag table already exists.

...user_properties table already exists.

...log_search table already exists.

Populating log_search table, printing progress markers. For large

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

maintenance/populateLogSearch.php.

This does not appear to be an upgrade from MediaWiki pre-1.16 (logging.log_user does not exist).

Nothing to do.

done.

...l10n_cache table already exists.

...ct_rc_id key doesn't exist.

...have rd_interwiki field in redirect table.

...fulltext search table appears to be in order.

...iwlinks table already exists.

...index iwl_prefix_title_from already set on iwlinks table.

...have ul_value field in updatelog table.

...have iw_api field in interwiki table.

...iwl_prefix key doesn't exist.

...have cl_collation field in categorylinks table.

...module_deps table already exists.

...ar_page_revid key doesn't exist.

...skipping index ar_revid because index ar_revid_uniq already set on archive table.

...index user_email already set on user table.

...uploadstash table already exists.

...user_former_groups table already exists.

...batch conversion of user_options: nothing to migrate. done.

...user table does not contain user_options field.

...have rev_sha1 field in revision table.

...have ar_sha1 field in archive table.

...index page_redirect_namespace_len already set on page table.

...have us_chunk_inx field in uploadstash table.

...have job_timestamp field in job table.

...have ipb_parent_block_id field in ipblocks table.

...index ipb_parent_block_id already set on ipblocks table.

...category table does not contain cat_hidden field.

...have page_content_model field in page table.

...site_stats table does not contain ss_admins field.

...recentchanges table does not contain rc_moved_to_title field.

...sites table already exists.

...have fa_sha1 field in filearchive table.

...have job_token field in job table.

...have job_attempts field in job table.

...have us_props field in uploadstash table.

...ug_group in table user_groups already modified by patch patch-ug_group-length-increase-255.sql.

...ufg_group in table user_former_groups already modified by patch patch-ufg_group-length-increase-255.sql.

...index pp_propname_page already set on page_props table.

...index img_media_mime already set on image table.

...index iwl_prefix_from_title already set on iwlinks table.

...have ar_id field in archive table.

...have el_id field in externallinks table.

...have rc_source field in recentchanges table.

...have page_links_updated field in page table.

...have user_password_expires field in user table.

...have pp_sortkey field in page_props table.

...recentchanges table does not contain rc_cur_time field.

...index wl_user_notificationtimestamp already set on watchlist table.

...have page_lang field in page table.

...have pl_from_namespace field in pagelinks table.

...have tl_from_namespace field in templatelinks table.

...have il_from_namespace field in imagelinks table.

...hitcounter doesn't exist.

...site_stats table does not contain ss_total_views field.

...page table does not contain page_counter field.

...fa_deleted_reason field does not exist in filearchive table, skipping modify field patch.

...msg_resource_links doesn't exist.

...msg_resource doesn't exist.

...bot_passwords table already exists.

...have wl_id field in watchlist table.

...cl_collation key doesn't exist.

...index cl_collation_ext already set on categorylinks table.

...collations up-to-date.

...index rc_name_type_patrolled_timestamp already set on recentchanges table.

...have ct_id field in change_tag table.

...have el_index_60 field in externallinks table.

...have ug_expiry field in user_groups table.

Modifying img_media_type field of table image ...done.

...ip_changes table already exists.

...skipping: index cl_from doesn't exist.

...skipping: index tl_from doesn't exist.

...skipping: index pl_from doesn't exist.

...skipping: index old_id doesn't exist.

...skipping: index il_from doesn't exist.

...skipping: index iwl_from doesn't exist.

...skipping: index ll_from doesn't exist.

...skipping: index ls_field_val doesn't exist.

...skipping: index md_module_skin doesn't exist.

...skipping: index keyname doesn't exist.

...skipping: index qci_type doesn't exist.

...skipping: index ss_row_id doesn't exist.

...skipping: index ufg_user_group doesn't exist.

...skipping: index user_properties_user_property doesn't exist.

...comment table already exists.

...revision_comment_temp table already exists.

...have ar_comment_id field in archive table.

...img_description field does not exist in image table, skipping modify field patch.

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

...rev_comment field does not exist in revision table, skipping modify field patch.

...have img_description_id field in image table.

...have fa_description_id field in filearchive table.

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

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

maintenance/migrateComments.php.

No need to migrate revision.rev_comment, field does not exist

No need to migrate archive.ar_comment, field does not exist

No need to migrate ipblocks.ipb_reason, field does not exist

No need to migrate image.img_description, field does not exist

No need to migrate oldimage.oi_description, field does not exist

No need to migrate filearchive.fa_deleted_reason, field does not exist

No need to migrate filearchive.fa_description, field does not exist

No need to migrate recentchanges.rc_comment, field does not exist

No need to migrate logging.log_comment, field does not exist

No need to migrate protected_titles.pt_reason, field does not exist

done.

...skipping: index lc_lang_key doesn't exist.

...content table already exists.

...content_models table already exists.

...slots table already exists.

...have slot_origin field in slots table.

...slot_roles table already exists.

...actor table already exists.

...have ar_actor field in archive table.

...revision_actor_temp table already exists.

...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 - 2

Completed actor creation, added 0 new actor(s)

No need to migrate revision.rev_user, field does not exist

No need to migrate archive.ar_user, field does not exist

No need to migrate ipblocks.ipb_by, field does not exist

No need to migrate image.img_user, field does not exist

No need to migrate oldimage.oi_user, field does not exist

No need to migrate filearchive.fa_user, field does not exist

No need to migrate recentchanges.rc_user, field does not exist

No need to migrate logging.log_user, field does not exist

Beginning migration of log_search

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

done.

...rev_text_id field does not exist in revision table, skipping modify field patch.

Modifying table site_stats ...done.

...index rc_namespace_title_timestamp already set on recentchanges table.

...change_tag_def table already exists.

Populating el_index_60 field, printing progress markers. For large

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

maintenance/populateExternallinksIndex60.php.

Populating externallinks.el_index_60...

el_id 0 - 200 of

Done, 0 rows updated.

done.

Modifying el_index_60 field of table externallinks ...done.

Running maintenance/deduplicateArchiveRevId.php...

Deduplicating ar_rev_id...

New install, nothing to do here.

done.

...have ct_tag_id field in change_tag table.

...index ar_revid_uniq already set on archive table.

Migrating revision data to the MCR 'slot' and 'content' tables, printing progress markers.

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

maintenance/populateContentTables.php.

Populating revision...

No need to populate, revision.rev_text_id field does not exist

Populating archive...

No need to populate, archive.ar_text_id field does not exist

Done. Processed 0 rows in 0.006511926651001 seconds

done.

...index log_type_action already set on logging table.

...type_action key doesn't exist.

...skipping: index iw_prefix doesn't exist.

...skipping: index pp_page_propname doesn't exist.

...skipping: index pt_namespace_title doesn't exist.

...skipping: index site_ids_type doesn't exist.

...index rc_this_oldid already set on recentchanges table.

...transcache doesn't exist.

Running maintenance/populateChangeTagDef.php...

done.

...index change_tag_rc_tag_id already set on change_tag table.

...have ipb_sitewide field in ipblocks table.

...ipblocks_restrictions table already exists.

...change_tag table does not contain ct_tag field.

...valid_tag doesn't exist.

...tag_summary doesn't exist.

...archive table does not contain ar_comment field.

...ipblocks table does not contain ipb_reason field.

...image table does not contain img_description field.

...oldimage table does not contain oi_description field.

...filearchive table does not contain fa_description field.

...recentchanges table does not contain rc_comment field.

...logging table does not contain log_comment field.

...protected_titles table does not contain pt_reason field.

...archive table does not contain ar_user field.

...ipblocks table does not contain ipb_by field.

...image table does not contain img_user field.

...oldimage table does not contain oi_user field.

...filearchive table does not contain fa_user field.

...recentchanges table does not contain rc_user field.

...logging table does not contain log_user field.

...watchlist_expiry table already exists.

Modifying fa_actor field of table filearchive ...done.

Modifying rc_actor field of table recentchanges ...done.

Modifying log_actor field of table logging ...done.

Modifying page_restrictions field of table page ...Wikimedia\Rdbms\DBQueryError from line 1699 of D:\wiki\includes\libs\rdbms\database\Database.php: Error 1: error in view dpl_clview: no such table: main.page

Function: Wikimedia\Rdbms\Database::sourceFile( D:\wiki/maintenance/sqlite/archives/patch-page_restrictions-null.sql )

Query: ALTER TABLE page_tmp RENAME TO page

#0 D:\wiki\includes\libs\rdbms\database\Database.php(1683): Wikimedia\Rdbms\Database->getQueryException()

#1 D:\wiki\includes\libs\rdbms\database\Database.php(1658): Wikimedia\Rdbms\Database->getQueryExceptionAndLog()

#2 D:\wiki\includes\libs\rdbms\database\Database.php(1227): Wikimedia\Rdbms\Database->reportQueryError()

#3 D:\wiki\includes\libs\rdbms\database\Database.php(5073): Wikimedia\Rdbms\Database->query()

#4 D:\wiki\includes\libs\rdbms\database\Database.php(5008): Wikimedia\Rdbms\Database->sourceStream()

#5 D:\wiki\includes\libs\rdbms\database\DBConnRef.php(68): Wikimedia\Rdbms\Database->sourceFile()

#6 D:\wiki\includes\libs\rdbms\database\MaintainableDBConnRef.php(35): Wikimedia\Rdbms\DBConnRef->__call()

#7 D:\wiki\includes\installer\DatabaseUpdater.php(769): Wikimedia\Rdbms\MaintainableDBConnRef->sourceFile()

#8 D:\wiki\includes\installer\DatabaseUpdater.php(1085): DatabaseUpdater->applyPatch()

#9 D:\wiki\includes\installer\DatabaseUpdater.php(554): DatabaseUpdater->modifyField()

#10 D:\wiki\includes\installer\DatabaseUpdater.php(517): DatabaseUpdater->runUpdates()

#11 D:\wiki\maintenance\update.php(181): DatabaseUpdater->doUpdates()

#12 D:\wiki\maintenance\doMaintenance.php(107): UpdateMediaWiki->execute()

#13 D:\wiki\maintenance\update.php(253): require_once('D:\\wiki\\mainten...')

#14 {main}

UNQUOTE Sirus Panda (talk) 11:24, 14 April 2021 (UTC)

Old database loaded in mysql on new mediawiki
main page not found
new system /usr/share/mediawiki/includes/libs/rdbms/database/Database.php
old system no such directory /usr/share/mediawiki/includes/libs/rdbms 2607:FB91:1AA8:56BE:9940:CE6D:626C:7BE8 (talk) 17:43, 17 June 2023 (UTC)
Please do not post questions on old threads, especially when your question is unrelated. Bawolff (talk) 23:15, 17 June 2023 (UTC)

Regex (insource) searching

Yesterday I asked about the search results, but now I ask about how I can use regex search on my wiki, i.e. "insource: MediaWiki" as an example. When I do a search like that, I don’t get search results, but that article doesn’t exist. In Wikipedia you can use the "insource:" function and search.

I tried to look for guidance on this and I've tried this: wgCirrusSearchEnableRegex to true, but nothing happened. Kanasalaatti (talk) 13:49, 14 April 2021 (UTC)

Is the CirrusSearch extension installed? Malyacko (talk) 15:13, 14 April 2021 (UTC)
Yes. CirrusSearch, AdvancedSearch and ElasticSearch Kanasalaatti (talk) 16:28, 14 April 2021 (UTC)
that's not the syntax for regex but plain string matching.
Regex would be like insource:/Wiki[pm]edia/ Bawolff (talk) 00:53, 15 April 2021 (UTC)
Thanks! Kanasalaatti (talk) 11:50, 15 April 2021 (UTC)

activating virtual editor in my mediawiki which is 1.35

I do not have the option to use the visual editor on my mediawiki hosted by Godaddy. How do I access it? 2601:14D:4480:C8A0:7CF0:8566:67B:3413 (talk) 14:08, 14 April 2021 (UTC)

Extension:VisualEditor#Setting up VisualEditor Malyacko (talk) 15:12, 14 April 2021 (UTC)

Fatal error after upgrading from ancient mediawiki

I was tasked with upgrading a webhost, which required updating php5 to php7, which required updating mediawiki from 1.16.1 to 1.31.12. Given that the old version was *so* old, perhaps necessary steps were left out of the instructions, or I missed something. I'm so far at a loss as to how to fix the error.


I followed the upgrade instructions, and the database update seemed to go okay. But I'm getting a fatal error when I try to go to the site:


Fatal error: Uncaught Error: Call to undefined function hash() in/DATA/htdocs_data/mediawiki-1.31.12/includes/resourceloader/ResourceLoader.php:628 Stack trace: #0 /DATA/htdocs_data/mediawiki-1.31.12/includes/resourceloader/ResourceLoaderModule.php(850):ResourceLoader::makeHash('{"_class":"Reso...') #1 /DATA/htdocs_data/mediawiki-1.31.12/includes/resourceloader/ResourceLoader.php(1079):ResourceLoaderModule->getVersionHash(Object(DerivativeResourceLoaderContext))#2 /DATA/htdocs_data/mediawiki-1.31.12/includes/resourceloader/ResourceLoaderClientHtml.php(421):ResourceLoader->makeModuleResponse(Object(DerivativeResourceLoaderContext),Array) #3 /DATA/htdocs_data/mediawiki-1.31.12/includes/resourceloader/ResourceLoaderClientHtml.php(338):ResourceLoaderClientHtml::makeLoad(Object(ResourceLoaderContext), Array,'combined', Array) #4 /DATA/htdocs_data/mediawiki-1.31.12/includes/resourceloader/ResourceLoaderClientHtml.php(277):ResourceLoaderClientHtml->getLoad(Array, 'combined') #5 /DATA/htdocs_data/mediawiki-1.31.12/includ in /DATA/htdocs_data/mediawiki-1.31.12/includes/resourceloader/ResourceLoader.php on line 628 137.228.79.24 (talk) 16:31, 14 April 2021 (UTC)

Which PHP hash library is installed on the system? Malyacko (talk) 17:09, 14 April 2021 (UTC)
Thanks for the clue. Yeah. php was not built with the hash extension. That'd be my problem. 137.228.79.24 (talk) 17:34, 14 April 2021 (UTC)

Disable parsoid formatting

Hi,


Is there any setting to prevent parsoid from formatting the wiki text to HTML?


I'm trying to start a wiki for guitar tabs, and much of the notation gets converted into code blocks, tables and whatnot.


Thanks! 77.170.127.86 (talk) 07:44, 15 April 2021 (UTC)

I wonder whether you might get some ideas from the musical wiki discussed on this podcast. Jonathan3 (talk) 09:47, 15 April 2021 (UTC)
if you mean prevent generally converting to html (not parsoid), you could use <nowiki> tags or
 tags.
If you want to disable formatting on en entire page, use Special:ChangeContentModel to change it to text. (There is a way to change the default per namespace but im not sure how off the top of my head.)
See also [[extension:score]] [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 04:46, 16 April 2021 (UTC)

== Is there any way to delete all Wikibase entries? ==

Hello all,

Is there any way to delete all Wikibase entries? something like (SQL command or similar)

Thank you [[Special:Contributions/2001:8F8:146D:1C00:BD7D:F814:60B7:1B86|2001:8F8:146D:1C00:BD7D:F814:60B7:1B86]] ([[User talk:2001:8F8:146D:1C00:BD7D:F814:60B7:1B86|talk]]) 09:41, 15 April 2021 (UTC)
:Please follow [[Talk:Wikibase/Flow export#h-Is_there_any_way_to_delete_all_Wikibase_entries?-2021-04-15T08:48:00.000Z]] [[User:Ciencia Al Poder|Ciencia Al Poder]] ([[User talk:Ciencia Al Poder|talk]]) 10:08, 15 April 2021 (UTC)
:no answer there.. [[Special:Contributions/2001:8F8:146D:1C00:BD7D:F814:60B7:1B86|2001:8F8:146D:1C00:BD7D:F814:60B7:1B86]] ([[User talk:2001:8F8:146D:1C00:BD7D:F814:60B7:1B86|talk]]) 10:50, 15 April 2021 (UTC)
:Correct, I was just pointing to that place just in case someone replies there, to avoid having duplicate efforts [[User:Ciencia Al Poder|Ciencia Al Poder]] ([[User talk:Ciencia Al Poder|talk]]) 11:11, 15 April 2021 (UTC)

== "Account disabled"...? ==
{{Archive top|status=resolved}}

I created an account exclusively to be able to participate in a bug report discussion on phabricator.mediawiki.org. 

The next day it says "account disabled" when I log in there. No reason given, no explanation, no email — no actionable information of any kind. Also no options to do anything but log out. No contact option or account support of any kind that I could see. 

I don't get it. I was encouraged to create an account in an email reply from mobile-ios-wikipedia@wikimedia.org. Is there something wrong? [[User:Ngodkebfofksjdbflfnendodnfnfnfkdksnd|Ngodkebfofksjdbflfnendodnfnfnfkdksnd]] ([[User talk:Ngodkebfofksjdbflfnendodnfnfnfkdksnd|talk]]) 10:38, 15 April 2021 (UTC)
:Sorry, that was my fault! Reenabled now. (For future reference, best to bring up Phab issues on [[Talk:Phabricator/Help]] - see the Phab frontpage.) [[User:AKlapper (WMF)|AKlapper (WMF)]] ([[User talk:AKlapper (WMF)|talk]]) 10:50, 15 April 2021 (UTC)
:Thank you for the quick resolution. 
:Yes, this was probably the wrong place, I'm completely lost here and have no sense of where I am. I would've never found the right page I think. At least on mobile. [[User:Ngodkebfofksjdbflfnendodnfnfnfkdksnd|Ngodkebfofksjdbflfnendodnfnfnfkdksnd]] ([[User talk:Ngodkebfofksjdbflfnendodnfnfnfkdksnd|talk]]) 15:37, 18 April 2021 (UTC)
{{Archive bottom}}

== GlobalCssJs ==

Now I also have a problem with wikifamily that [[Extension:GlobalCssJs|GlobalCssJs]] extension not work. Or that it is installed and it also reads the page Special:Version, but it doesn't seem to have an effect. If it had an effect, I could create my own global.js and global.css file on the wiki, and that same script will work on all my wikis. I think it's configured correctly ([https://github.com/Maamedia/mw-config/blob/master/InitialiseSettings.php#L700 Github commit line]), but it just doesn't work properly for some reason. Other similar extensions such as GlobalUserPage do work normally. [[User:Kanasalaatti|Kanasalaatti]] ([[User talk:Kanasalaatti|talk]]) 13:29, 15 April 2021 (UTC)
:the config doesn't look correct, you're mixing up the array key names with the wiki name. [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 04:42, 16 April 2021 (UTC)
:What should I do? [[User:Kanasalaatti|Kanasalaatti]] ([[User talk:Kanasalaatti|talk]]) 11:07, 16 April 2021 (UTC)
:Where it says
:<syntaxhighlight lang="php">
	'wgGlobalCssJsConfig' => [
		'wiki' => 'metawiki',
		'source' => 'metawiki',
	],
it should say
	'wgGlobalCssJsConfig' => [
		'default' => [
			'wiki' => 'metawiki',
			'source' => 'metawiki',
		],
	],
You should also fix wgResourceLoaderSources to
	'wgResourceLoaderSources' => [
		'default' => [
			'apiScript' => 'https://meta.maamedia.org/api.php', 
			'loadScript' => 'https://meta.maamedia.org/load.php'
		],
	],
Or it won't work.
But really this isn't wiki specific, and should probably go into your GlobalConfig file. Mainframe98 talk 12:15, 16 April 2021 (UTC)
Working, thanks! Kanasalaatti (talk) 13:55, 16 April 2021 (UTC)

Which query API do I use to get a list of pages that transclude a template

Hi, I am just getting started with the API and I am trying to figure out how to get a list of pages/page_id's that include a particular template.


I am looking here API:Lists but I am not sure which is best to use and I don't see how to specify the page - say for example the PageId/Title is (525,"MyRecipe")

TIA 38.97.212.205 (talk) 15:19, 15 April 2021 (UTC)

see https://www.mediawiki.org/w/api.php?action=help&modules=query%2Bembeddedin Bawolff (talk) 04:39, 16 April 2021 (UTC)
Thank you @Bawolff - that worked exactly as I wanted. 38.97.212.205 (talk) 12:39, 16 April 2021 (UTC)

Hi there. I've downloaded and installed the Breadcrumbs2 in the required folder of extensions/ and I can see the folder named 'Breadcrumbs2' there and it has all the files in it. I've also added the 'wfLoad....' in the last of my LocalSettings.php and have varified of its successfull installation from the page of 'Version' on my wikimedia but unfortunately it is still not working on my wikimedia. Following are the version details of my wikimedia.

MediaWiki 1.34.1
PHP 7.4.6 (apache2handler)
MySQL 5.7.33-0ubuntu0.16.04.1


According to the page of BreadCrumbs2 (Extension:BreadCrumbs2) it should be working after all this. Can anyone please guide me here if I am missing something?

Thanks. Bilalmajeeed (talk) 18:04, 15 April 2021 (UTC)

You have to create and configure MediaWiki:Breadcrumbs. Redundant-decadence (talk) 09:02, 18 April 2021 (UTC)
I have already created the page MediaWiki:Breadcrumbs but can you please guide me that how can I configure it? That would be very nice of you if you can guide me through the steps of it.
Thanks in advance. Bilalmajeeed (talk) 12:39, 19 April 2021 (UTC)
Feel free to use my site as an example: https://roter-kreis.de/MediaWiki:Breadcrumbs Redundant-decadence (talk) 21:41, 20 April 2021 (UTC)
Thanks a lot. Just one more thing that can you please guide me through the categorization of the pages? Is there any extension needed to be installed for that? Bilalmajeeed (talk) 12:37, 21 April 2021 (UTC)
No extension required for using categories. Read this: https://m.mediawiki.org/wiki/Help:Categories Redundant-decadence (talk) 17:25, 21 April 2021 (UTC)
Thanks very much. Bilalmajeeed (talk) 00:55, 29 April 2021 (UTC)

Cached thumbnails not displaying - can't regenerate?

I had some issues for several months last year with .gif files not generating thumbnails properly. That's all been fixed, and all the thumbnails are in their right files.

However I can't see the thumbnails still. Some newer users on my Wiki can, but for me and many others, they display as broken images with the title "Thumbnail for version as of 22:42, November 15, 2019".

Clicking on the image URL, it shows the full image. I've checked the server path manually and the thumbnail files exist, but I can't generate them from a user endpoint because the file path seems to redirects to the main image path.

How can I force regeneration of thumbnail paths/for users to redownload thumbnails?! I've tried $wgthumbnailepoch and action=purge. I don't have access to command line.

Any hints? Thanks. 91.125.240.46 (talk) 18:09, 15 April 2021 (UTC)

Haven't fixed, but by effectively renaming the files by moving them, it's regenerated the thumbnails so they can be viewed again. Guess that works! 91.125.240.46 (talk) 21:50, 15 April 2021 (UTC)
generally you have to ?action=purge the image description page itself, not the thumbnail. Bawolff (talk) 04:37, 16 April 2021 (UTC)

website domain name to redirect to mediawiki homepage

Hello there,

I would like the mediawiki homepage to show up whenever I type the hostname (xyz.com). Currently it is showing the Apache2 Ubuntu Default page.


Any pointers would be helpful. 68.129.140.104 (talk) 18:21, 15 April 2021 (UTC)

Digital Ocean has good tutorials that probably are generic enough to help you, e.g. How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu 18.04 - Step 4 — Setting Up Virtual Hosts (Recommended). Jonathan3 (talk) 18:32, 15 April 2021 (UTC)

Dynamic Sidebar

Hi all - I am looking to have a sidebar that acts more like a table of contents for all of the pages I have created in my wiki. I'm not sure how to do this so any help would be appreciated! Thanks! 2603:8080:2802:3F26:B07F:596A:6F38:F97D (talk) 20:10, 15 April 2021 (UTC)

The easiest way is probably Extension:CategoryTree#Using_CategoryTree_in_the_Sidebar.
You could also try Extension:TreeAndMenu. I used it for a while a couple of years ago but it seemed slow - probably just because of my old slow shared server. Jonathan3 (talk) 20:43, 15 April 2021 (UTC)

Meta description missing

Day All, when I check the site vsn-nederland.nl with for example Bing, I get: "The inspected URL is a redirect and cannot be indexed by Bing". Then when I check the redirection I get: "Meta description tag missing".

Does anyone know how I can solve this ?

I can't find an html file anywhere to modify the headers in ?


MediaWiki 1.34.4

PHP 7.4.16 (litespeed)

MariaDB 10.3.28-MariaDB-log-cll-lve

ICU 64.2


Hope 1 of you knows advice.

Kind regards VSN-Herman (talk) 05:07, 16 April 2021 (UTC)

Have you tried the same checks with other MediaWiki sites? Maybe it's just because they redirect to Main_Page, e.g. https://vsn-nederland.nl/index.php/Hoofdpagina Jonathan3 (talk) 21:28, 16 April 2021 (UTC)
I tried that, but it gives the same result VSN-Herman (talk) 09:22, 17 April 2021 (UTC)
i dont think search engines use meta descriptions anymore. Bawolff (talk) 01:18, 17 April 2021 (UTC)
That's also an answer, but ... let's just assume that I'm really curious about this and assume that there will be a solution after all.
Or am I asking too much ?
Where can I adjust the headers ? (That's what I'm curious about ;-) At most sites in html, but where can I find that file ?) VSN-Herman (talk) 09:23, 17 April 2021 (UTC)
I'd be interested to see what tests you're referring to - could you share links here?
I wonder if it's possible to avoid example.com changing to example.com/Main_Page (but still serve the Main Page) - maybe some ideas here: Manual:Short URL/Apache?
Extension:WikiSEO lets you add meta tags like description. Jonathan3 (talk) 09:38, 17 April 2021 (UTC)
First, of course, you are completely free to test the site vsn-nederland.nl with whatever site tester you want. With Nibbler the site gets an overall score of 7.2 , which is not bad at all. Just think of me as someone who came out of Formula 1 and still wants better scores.
The suggestions you made are certainly interesting, well worth looking into. The Extension:WikiSEO I would like to install, while I understand that it is for version 1.35 and higher and can't find the version for 1.34. (Which of course could be just me !)
Ps.
As long as version 1.35 and up doesn't work with all browsers I'm not going to update. VSN-Herman (talk) 08:59, 18 April 2021 (UTC)
With WikiSEO I'm using v1.2.1 with MW 1.34 and I see there's a 1.2.1 tag you could use if downloading using git.
Could you tell me about 1.35 and browsers? I am on the verge of upgrading from 1.34 to 1.35 as I think finally most of the extensions/skins I use are now compatible. Jonathan3 (talk) 15:42, 18 April 2021 (UTC)
Okay, thanks, I'll definitely try.
About 1.35 and browsers I posted an issue under Problem with chromium/webkit browsers and login.
It may be that the display problem has been fixed with an update to MW version 1.35.2. I don't know ... I have not been able to try it out yet because the host has to change a setting first: "php-proc-get-status ON (detected: OFF)". (As long as on off an update is not accepted by Installatron).
I hope it will happen next week. VSN-Herman (talk) 17:53, 18 April 2021 (UTC)
@Jonathan3 Hi, in the meantime I have updated to MW version 1.35.2, and Yes, the problem with display by chromium and webkit browsers appears to be solved 👍. Zie https://vsnwiki.nl VSN-Herman (talk) 11:37, 19 April 2021 (UTC)

Maintenance scripts

can anyone pls suggest, what is the use of maintenance script.

Why we use it in mediawiki. what functionality it performs.

How to use . In which scenario we have to use it? Pooja2425 (talk) 06:12, 16 April 2021 (UTC)

See Manual:Maintenance scripts Malyacko (talk) 06:46, 16 April 2021 (UTC)

Empty pages after upgrade to 1.35

Site: https://mercuryinretrograde.org/index.php?title=Mercury_in_Retrograde

After upgrading pages don't display content only the following message:

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.

The History tab reveals the most recent revision (for the above URL) and the page content.

Is there a reason why the pages are giving this error? 151.210.138.204 (talk) 12:23, 16 April 2021 (UTC)

Did you run update.php? Did it run without any errors?
From which version did you upgrade?
In recent versions there has been some data moved from different tables, and chances are that the script that migrates that data hasn't been run (properly) or errored out. This includes executing update.php one time, giving an error (but registering the migration script as being run) and running update.php again, skipping that migration but leaving the database in an inconsistent state. This can be very problematic, because part of the original data may be wiped out on further migration scripts.
Those scripts are know for having failed and causing this behavior until errors are fixed and run to completion:
I have the exact same problem: you can see it here:
https://www.verwaltungskooperation.at/index.php?title=Abfallbewirtschaftung_Arnoldstein
other pages work, though:
https://www.verwaltungskooperation.at/index.php?title=GIZ-K_-_Kommunaler_Webauftritt
The only difference in pages I can spot is that the date of the last edit is missing and on the page info it does not count as content page.
I upgraded vom MW 1.31 wo 1.35. However it is possible that this was already part of the last upgrade (probably from 1.27) and I did not notice back then.
If I run the above mentioned scripts, all run without errors, the only thing that is constantly being displayed is that some fields do not exist.
php maintenance/migrateActors.php
...Update 'MigrateActors' already logged as completed. Use --force to run it again.
php maintenance/migrateActors.php --force
Creating actor entries for all registered users
... 1 - 101
... 102 - 202
... 203 - 303
... 304 - 404
... 405 - 505
... 506 - 606
... 607 - 653
Completed actor creation, added 0 new actor(s)
No need to migrate revision.rev_user, field does not exist
No need to migrate archive.ar_user, field does not exist
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)
No need to migrate image.img_user, field does not exist
No need to migrate oldimage.oi_user, field does not exist
No need to migrate filearchive.fa_user, field does not exist
No need to migrate recentchanges.rc_user, field does not exist
No need to migrate logging.log_user, field does not exist
Beginning migration of log_search
Completed migration, inserted 0 row(s) with 0 new actor(s), 0 error(s)
php maintenance/migrateComments.php
...comments already migrated.
php maintenance/migrateComments.php --force
No need to migrate revision.rev_comment, field does not exist
No need to migrate archive.ar_comment, field does not exist
No need to migrate ipblocks.ipb_reason, field does not exist
No need to migrate image.img_description, field does not exist
No need to migrate oldimage.oi_description, field does not exist
No need to migrate filearchive.fa_deleted_reason, field does not exist
No need to migrate filearchive.fa_description, field does not exist
No need to migrate recentchanges.rc_comment, field does not exist
No need to migrate logging.log_comment, field does not exist
No need to migrate protected_titles.pt_reason, field does not exist
php maintenance/populateContentTables.php
Populating revision...
No need to populate, revision.rev_text_id field does not exist
Populating archive...
No need to populate, archive.ar_text_id field does not exist
Done. Processed 0 rows in 0.0033140182495117 seconds Krabina (talk) 10:55, 2 September 2021 (UTC)
btw, if I try to edit such an empty page, I get an edit conflict and I am not able to save any content to those pages. Krabina (talk) 11:01, 2 September 2021 (UTC)
I found a solution here Project:Support desk/Flow/2020/11#h-Missing_pages,_but_data_appear_to_be_intact-2020-11-21T01:37:00.000Z. I did the select statement mentioned at the end of the thread, followed by an update.php and now the pages are showing again. Krabina (talk) 11:46, 2 September 2021 (UTC)
Thanks for sharing your solution. I assume you mean this SQL query. [[kgh]] (talk) 14:09, 2 September 2021 (UTC)
yes Krabina (talk) 08:43, 3 September 2021 (UTC)

docx file extension doesn't match MIME type zip

Hi, we are running MediaWIki version 1.31.6 and everytime I am trying to upload a docx file, I get an error message "file extension ".docx" doesn't match MIME-type (application/zip).", though "docx" is in wgFileExtensions. Does anyone know this issue? Thanks, Henry H3n2y (talk) 12:53, 16 April 2021 (UTC)

This rings a bell. I think I ran up against it a few years ago and just stopped uploading .docx files. I think you can turn off MIME-type detection. Maybe see Manual:MIME type detection for ideas. Jonathan3 (talk) 18:21, 16 April 2021 (UTC)
make sure that .docx really is a .docx and not a .doc Bawolff (talk) 01:16, 17 April 2021 (UTC)

VisualEditor with Syntaxhighlight: Strange movements

Hello, i'm using MediaWiki 1.35.2 with Firefox 87.0. When I insert a code block using VisualEditor, any input in this window jumps one position to the left so that it is invisible. If I close the popup and open it again, it works correctly and the inputs remain visible (you can see the gray background color of the selected line moving to the left). I experience this problem not only with my MediaWiki instance, but also with Wikipedia. It also occurs with Chromium 89.0.4389.114. The error is a bit difficult to describe, so I uploaded a short recording of it here: https://imgur.com/a/DIVj65m. Does anyone know what to do about it? Thanks a lot! Clayton85 (talk) 14:20, 16 April 2021 (UTC)

Strange message

When entering my wiki it now appears:

Fatal error: Uncaught Error: Cannot use object of type ParserOutput as array in /mywiki/includes/cache/MessageCache.php:716 Stack trace: #0 /mywiki/includes/cache/MessageCache.php(301): MessageCache->isCacheExpired(Object(ParserOutput)) #1 /mywiki/includes/cache/MessageCache.php(1031): MessageCache->load('es') #2 /mywiki/includes/cache/MessageCache.php(957): MessageCache->getMsgFromNamespace('Internalerror', 'es') #3 /mywiki/includes/cache/MessageCache.php(928): MessageCache->getMessageForLang(Object(Language), 'internalerror', true, Array) #4 /mywiki/includes/cache/MessageCache.php(870): MessageCache->getMessageFromFallbackChain(Object(Language), 'internalerror', true) #5 /mywiki/includes/language/Message.php(1297): MessageCache->get('internalerror', true, Object(Language)) in/mywiki/includes/cache/MessageCache.php on line 716

What I can do? Electopedia (talk) 14:37, 16 April 2021 (UTC)

are there any other errors (including php error log)
Try disabling extensions Bawolff (talk) 01:15, 17 April 2021 (UTC)

Need help on the Translation extension

Hi, so I have used the Translate extension, and I edited the main page, and I want to translate my new edits to the language I translated the page to. How can I do that? Plastacikec (talk) 19:15, 16 April 2021 (UTC)
If you have the Translate extension installed on your wiki, and if you have already marked the page for translation, I'd expect to see a "Translate this page" option below the title. We don't know at which step you are. Also, which MediaWiki version do you run? Malyacko (talk) 07:20, 17 April 2021 (UTC)
Which main page you edited?
If you want to translate your page to a language you should go to the translation option of the page. And you need a help from a translation administrator.
@Malyacko please help this user. ↠Tanbirzx () 23:26, 16 April 2021 (UTC)
@Tanbirzx Please do not ping me for no good reason. I don't think that I've become some "Translate extension UI" specialist over night? :) Malyacko (talk) 07:16, 17 April 2021 (UTC)

Not working.

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've noticed a new issue arising with the wikipedia that I am managing.

If you go to this link ( https://wiki.lordofthecraft.net/index.php?title=New_Magic_Backbone ), it is a template that people can use on the wiki to make new pages based off. By scrolling down you may see the codes:

noinclude and /noinclude alongside the category that its meant to not include.

The problem that I am having, is that part of the code not actually working, because when using the backbone the category still appears wherever it is being used.

Like this page for example: https://wiki.lordofthecraft.net/index.php?title=Earth_Evocation

Anyone knows any reasons as of why this is happening? JokerLow (talk) 21:13, 16 April 2021 (UTC)

It's explained here: Transclusion.
It looks like you're not transcluding the "New Magic Backbone" page as a MediaWiki template, but rather you're encouraging people to copy and paste it as a precedent for use in new pages - noinclude won't stop anyone from copying and pasting anything.
You could try something like Extension:MultiBoilerplate. Jonathan3 (talk) 21:26, 16 April 2021 (UTC)
Hmm, I tried the first option by testing it. I made a new template https://wiki.lordofthecraft.net/index.php?title=Template:testjokerlow and used it here https://wiki.lordofthecraft.net/index.php?title=testjokerlow2 yet Template would still show up there. JokerLow (talk) 23:09, 16 April 2021 (UTC)
it still looks like you are copy and pasting not transcluding.
If you put only {{testjokerlow}} as the source of the page, then the category should not be included. Bawolff (talk) 06:41, 17 April 2021 (UTC)
You're using the word template in its normal meaning - something like precedent or example - but in MediaWiki it's something different. The words "noinclude" and "transclusion" also have special meanings in the context of templates.
I use MultiBoilerPlate on my wiki to allow pre-loading of helpful text, which is essentially what you are encouraging people to do, though you're using copy and paste (by the user) whereas that extension lets you just pick a page from a dropdown to incorporate text into a new page. Jonathan3 (talk) 09:04, 17 April 2021 (UTC)
Another option would be the Page Forms extension. Each of your headings could be associated with a box on a form, so that the user just has to fill in a form rather than use wikitext. It's harder to set up but easier to use. Jonathan3 (talk) 09:07, 17 April 2021 (UTC)
Oh, alright. I see where I was wrong, it was my logic of how I understood the wiki term of template. Well, in that case, thank you both guys a lot for clearing this for me, you've been extremely helpful! JokerLow (talk) 10:15, 18 April 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

php runJobs.php --procs 2 fails with "Container disabled!"

Running php runJobs.php --procs 1 works but php runJobs.php --procs 2 (or more than 2) fails with the following traceback for each proc:

Wikimedia\Services\ContainerDisabledException from line 408 of /public_html/vendor/wikimedia/services/src/ServiceContainer.php: Container disabled!
#0 /public_html/includes/MediaWikiServices.php(901): Wikimedia\Services\ServiceContainer->getService('MainWANObjectCa...')
#1 /public_html/includes/ServiceWiring.php(575): MediaWiki\MediaWikiServices->getMainWANObjectCache()
#2 /public_html/includes/cache/localisation/LocalisationCache.php(1062): Wikimedia\Services\ServiceContainer->{closure}()
#3 /public_html/includes/cache/localisation/LocalisationCache.php(497): LocalisationCache->recache('en')
#4 /public_html/includes/cache/localisation/LocalisationCache.php(371): LocalisationCache->initLanguage('en')
#5 /public_html/includes/cache/localisation/LocalisationCache.php(312): LocalisationCache->loadItem('en', 'namespaceGender...')
#6 /public_html/languages/Language.php(720): LocalisationCache->getItem('en', 'namespaceGender...')
#7 /public_html/includes/title/MediaWikiTitleCodec.php(102): Language->needsGenderDistinction()
#8 /public_html/includes/Title.php(1132): MediaWikiTitleCodec->getNamespaceName(10, 'Natural_Gas_Con...')
#9 /public_html/includes/Title.php(1819): Title->getNsText()
#10 /public_html/includes/Title.php(1839): Title->prefix('Natural_Gas_Con...')
#11 /public_html/includes/jobqueue/Job.php(449): Title->getPrefixedDBkey()
#12 /public_html/includes/jobqueue/JobRunner.php(350): Job->toString()
#13 /public_html/includes/jobqueue/JobRunner.php(333): JobRunner->doExecuteJob(Object(RefreshLinksJob))
#14 /public_html/includes/jobqueue/JobRunner.php(244): JobRunner->executeJob(Object(RefreshLinksJob))
#15 /public_html/maintenance/runJobs.php(92): JobRunner->run(Array)
#16 /public_html/maintenance/doMaintenance.php(107): RunJobs->execute()
#17 /public_html/maintenance/runJobs.php(129): require_once('/home/...')
#18 {main}


Product Version
MediaWiki 1.35.1
PHP 7.3.27-1~deb10u1 (cgi-fcgi)
MariaDB 10.5.9-MariaDB-1:10.5.9+maria~buster
ICU 63.1

Jabowery (talk) 21:51, 16 April 2021 (UTC)

Mediawiki upgrade 1.23.9 to 1.35.2 (clean install)

I installed succesfully version 1.35.2. and try to import my old database (splitted in 5 smaller files due to the limitation in file size) from version 1.23.9. But I get following errors. My question is : is it a good idea to start with a new setup of the latest version of mediawiki or better to use the upgrade function ?

Below are the files I tried to import in the newest version.

xaa.sql

xab.sql

xae.sql

xac.sql

xad.sql

When I tried to import the file xaa.sql, I got the following error:

ERROR 1050 (42S01) at line 33: Table 'archive' already exists

When I tried to import the file xab.sql, I got the following error:

ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '2695, 0x75706c6f6164, 0x75706c6f6164, 0x3230313330363037313034323034, 2, 0x55736' at line 1

When I tried to import the file xad.sql , I got the following error:

ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '16037, 105, 15909, 0x2f2a20436175736573202a2f, 1, 0x53746576656e32, 0x3230313430' at line 1

When I tried to import the file xac.sql , I got the following error:

ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '88, 0, 0x466f6c617465),

(88, 0, 0x477265656e5f546561),

(88, 0, 0x486f6e6579),

(8' at line 1

When I tried to import the file xaf.sql, I got the following error:

ERROR 1231 (42000) at line 1: Variable 'collation_connection' can't be set to the value of 'NULL'

When I tried to import the file xae.sql , I got the following error:

ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '8466, 0x3d3d2053796d70746f6d73203d3d0a0a3d3d20486f6d652072656d6564696573203d3d0a' at line 1

MySQL version 5.6.32 is running on the server. Stevy7 (talk) 05:15, 17 April 2021 (UTC)

its better to import first than run update.php as if you were doing an upgrade.
You will need your old LocalSettings.php or some equivalent to run the upgrade script. Bawolff (talk) 06:38, 17 April 2021 (UTC)
Is there no risk that the update.php command will overwrite the existing database ? Stevy7 (talk) 11:04, 17 April 2021 (UTC)
it will make changes to the db to update it, but it shouldnt overwrite it.
As always keep backups just in case. Bawolff (talk) 17:27, 17 April 2021 (UTC)

Allow an "anonymous"one-time-passwordized" user to write an article

I have a MediaWiki 1.35.1 website in which I am the only registered users.

I want to allow guest articles by "anonymous" user who got a one-time password to publish an article.


Of course, they could just email the article for me with some notification such as "This article was contributed by person named X" and I will publish it but I want to allow them to do so directly.

Is such software behavior currently possible with MediaWiki somehow?


The purpose here is adherence to my personal belief against "organizational bonding" with registration and passwords / bureaucracy which I ideologically find redundant and generally destructive. 2001:44C8:470D:5484:C44C:A593:D772:F99D (talk) 06:09, 17 April 2021 (UTC)

which I ideologically find generally redundant and destructive* (not totally of course). 2001:44C8:470D:5484:C44C:A593:D772:F99D (talk) 06:10, 17 April 2021 (UTC)
you could create an account with the email a password option, and then block them afterwards.
Otherwise i dont think anything exists like what you said. It would definitely be possible to make something like that (see AuthManager) but you would probably have to do so yourself. Bawolff (talk) 06:37, 17 April 2021 (UTC)

Find out whether file has a thumbnail image

I have a template that displays the thumbnail of the relevant file, which usually is a PDF. I have a small number of PDFs which (for whatever reason) no thumbnail can be generated. Also some files are DOC files which similarly have no thumbnail.

The problem is that when there is no thumbnail, the text File:Filename.pdf is displayed: I'd rather have no text displayed if there is no thumbnail.

Is there a way (magic word, extension etc) to find out within the template whether the file has a thumbnail? Or some other way of ensuring no text is displayed in lieu of the missing thumbnail?

For the time being, I'm using #pos to work out whether the filename contains ".pdf", which cuts out the DOC files, but I'd like to be able to identify the PDFs with no thumbnail as well.

Thank you. Jonathan3 (talk) 11:00, 17 April 2021 (UTC)

maybe scribunto you could look up the images width/height. Typically, images that cant be displsyed are treated as having 0x0 dimensions. Bawolff (talk) 21:39, 17 April 2021 (UTC)
Thanks. Yes, they are all shown as "0x0". I've avoided learning Lua/Scribunto so far, but when I eventually do, I'll remember this and have a go. Jonathan3 (talk) 07:44, 18 April 2021 (UTC)
Specifically: Extension:Scribunto/Lua reference manual#File metadataTheDJ (Not WMF) (talkcontribs) 11:42, 19 April 2021 (UTC)

Creating thumbnails for multiple files

On my old server, MediaWiki couldn't create thumbnails for PDFs. I never got the bottom of why it didn't work. Anyway, now, on a new server, it can. When I purge a File: page, usually it's able to create a thumbnail. How could I go about creating thumbnails for all files (or all files which currently have no thumbnail)?

Would I be able to use Manual:purgeList.php - and is there anything I should watch out for?

Thank you. Jonathan3 (talk) 11:08, 17 April 2021 (UTC)

I would suggest scripting requests to thumb.php
If you're not using a 404 handler, running refreshLinks.php might be a good option for thumbs in pages (but not the preview link on the image description page)
I think purgeList only does cdn purges, which is wrong type of purge for this Bawolff (talk) 17:25, 17 April 2021 (UTC)
I've had a look at Manual:Thumb.php. I don't fully understand that part about 404 handlers.
I only have about 100 or so files that I think will need thumbnails created, so don't think complicated code would be worthwhile. Especially as I'll be identifying the files manually. If I were to just create a list of links like
https://example.com/w/thumb.php?f=Filename.pdf
and just click on each of them, would that do the job? Jonathan3 (talk) 07:52, 18 April 2021 (UTC)
you would have to specify the width you want as the w parameter. Bawolff (talk) 08:49, 18 April 2021 (UTC)
Most of my PDFs are A4 size and the File: page says something like:
Size of this JPG preview of this PDF file: 424 × 600 pixels. Other resolution: 170 × 240 pixels.
Original file ‎(1,240 × 1,754 pixels, file size: 60 KB, MIME type: application/pdf, 2 pages)
It seems that the File: page uses the 424-wide one for the current page, and the 170-wide one for the previous/next page.
And when used on a wiki page with [[File:...]], judging from the quality, it's the 424-wide one being used.
Should I run thumb.php for both widths? Or can it only create one thumbnail per file?
I could just try it out rather than asking, but don't want to mess anything up!
Thanks. Jonathan3 (talk) 15:50, 18 April 2021 (UTC)
Thinking about it - it might be as easy just to visit each File: page and purge it :-) Jonathan3 (talk) 16:08, 18 April 2021 (UTC)
When I go to example.com/thumb.php?f=Filename.pdf&w=424 I get the error:
Error generating thumbnail
Error creating thumbnail: No path supplied in thumbnail object
What should I do? Thanks. Jonathan3 (talk) 18:43, 18 April 2021 (UTC)
hmm. maybe something iswrong with file metadata. Does refreshImageMetadata.php help things? Bawolff (talk) 19:30, 18 April 2021 (UTC)
I tried that on one file and then the thumb.php URL again, but got the same error message.
sudo php refreshImageMetadata.php --start="Filename.pdf" --end="Filename.pdf" --verbose --force
[sudo] password for ...:
Processing next 1 row(s) starting with Filename.pdf.
Forcibly refreshed File:Filename.pdf.
Finished refreshing file metadata for 1 files. 0 needed to be refreshed, 1 did not need to be but were refreshed anyways, and 0 refreshes were suspicious.
The File: page still shows the PDF as having 0x0 pixels. It wasn't one of those PDFs that thumbnails don't work for, as purging the wiki File: page created the thumbnail all right. Jonathan3 (talk) 08:58, 19 April 2021 (UTC)
You're right that Manual:purgeList.php doesn't work. I tried it on a page.
I thought Manual:purgeList.php might work. It's supposed to be the same as &action=purge (see here). But again it didn't create a thumbnail.
Interestingly dozens of uploads using Extension:SimpleBatchUpload have no thumbnail. I've raised this on the extension's talk page here: Extension talk:SimpleBatchUpload#h-No_thumbnail_created_for_PDFs_uploaded_using_SimpleBatchUpload-2021-04-18T18:56:00.000Z. Jonathan3 (talk) 18:53, 18 April 2021 (UTC)
> i thought Manual:purgeList.php might work. It's supposed to be the same as &action=purge (see here). But again it didn't create a thumbnail.
Its not, it does only varnish purging not other types. Bawolff (talk) 19:27, 18 April 2021 (UTC)
Sorry - I meant to type "I thought Manual:PurgePage.php might work."
I knew from your previous comment that purgeList.php wouldn't work (though I tried it out of curiosity...) Jonathan3 (talk) 20:49, 18 April 2021 (UTC)
oh, that script is new. I hadn't heard of it before. Sounds like it would work.
I suspect the main problem is the metadata is claiming that the file is 0x0 dimensions which makes it impossible to thumbnail. Purging causes it to reread the meatadata and get the correct dimensions. Bawolff (talk) 03:55, 19 April 2021 (UTC)
I realised from a comment of Bawolff's on a different topic that it's Extension:PdfHandler rather than MediaWiki that creates thumbnails for PDF files (which is what I'm dealing with here). Though I suppose that extension might hook into MediaWiki code so maybe generic MediaWiki scripts should now work for PDFs.
Anyway, I checked the talk page there and saw that someone had asked "How to create thumbnails of all existing PDF files?" 5 months ago (Extension talk:PdfHandler/Archive 2/Flow export#h-How_to_create_thumbnails_of_all_existing_PDF_files?-2020-11-23T00:10:00.000Z)... and that the person was me...... unfortunately there was no reply. Jonathan3 (talk) 09:02, 19 April 2021 (UTC)
You mentioned Lua before but maybe the API would have a less steep learning curve.
I think it would be possible to write a script to find all PDFs with 0x0 dimensions (using something like this, based on an example here/here) and then to purge those File: pages (something like this, an example from API:Purge). I'd check first whether the API purge includes (re-)creating thumbnails in the the way that ?action=purge does (as the maintenance scripts don't seem to).
Does this sound like it would work? Jonathan3 (talk) 09:59, 19 April 2021 (UTC)
Ok, the API doesn't create a PDF thumbnail when it purges a File: page. I tried it with the PHP sample code at API:Purge#Example_1:_Purge_one_or_two_pages.
Looks like it's all down to Extension:PdfHandler. From it's extension.json, it uses the UploadVerifyFile hook for its CreatePdfThumbnailsJob::insertJobs, which seems to be what creates the PDF thumbnail.
I have too many to purge the File: pages individually, and can't think how to create multiple thumbnails, so will likely end up purging them as and when I need them. Jonathan3 (talk) 20:23, 19 April 2021 (UTC)

How to show a little file thumbnail image, for a download?

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 want to post an Excel and a PDF for folks to download from my tiny wiki. I can make hotlinked text for users to click on and download the Excel or the PDF, using a Media: link. But I would like to do this with a generic little Excel thumbnail image or a generic little PDF thumbnail image for the user to click on, instead of text saying "here's the Excel", etc.

I imagine this is pretty easy but I don't know what keyword to search on, to find out how to do it.

Also, would I have to make or supply my own little Excel and PDF images, to use for this? RedKnight7 (talk) 13:15, 18 April 2021 (UTC)

The easy way is to upload a thumbnail of the Excel/PDF to your wiki, and then make the thumbnail link to the download.
Example:
[[File:ExcelThumbnail.png|80px|link=Media:My excel file.xlsx|Download]]
You can even put that code inside a template, making the link= value a parameter, for easy usage. Ciencia Al Poder (talk) 13:46, 18 April 2021 (UTC)
Thanks very much! It all works okay except if I put something like:
[[File:Excel_icon.gif|80px|link=Media:Spreadsheet_data.xlsx|right| Excel of electricity by month]]
It does everything else right (showing a linked icon on right side of page), but there are two problems:
1) If you click on the image , it doesn't go directly to the "download xls to where?" popup, instead it goes to the actual File: page for that file on my wiki. And then the person has to go through a few more clicks to actually download it.
2) It does not show the caption text "Excel of electricity by month" at all.
Thanks so much if you can help. Coding is such a hassle, laugh.
I have MediaWiki 1.35.1 RedKnight7 (talk) 15:19, 18 April 2021 (UTC)
Oh, well, looks like we've hit bug phab:T18409.
You may try to change the link Media:Spreadsheet_data.xlsx to Special:FilePath/Spreadsheet_data.xlsx
If you want to display a caption, add |thumb| Ciencia Al Poder (talk) 15:40, 18 April 2021 (UTC)
I was just working this out yesterday (using images as links) and came across the same problem - it links to the File: page instead of the actual uploaded file.
Anyway, you want something like this in your template, where {{{Download|}}} is the filename and {{{Caption|}}} is the caption text:
[[File:{{{Download}}} | thumb | link={{SERVER}}/media/{{urlencode:{{{Download}}}|WIKI}} | {{{Caption|}}} ]]
If your URL structure has /images/ (I think I changed mine a few years ago but can't remember) then just change that part of the line above. {{SERVER}} should turn into (e.g.) https://www.example.com, or alternatively you can just put the URL into the template if it's never going to change. {{urlencode:...|WIKI}} changes spaces to underscores (so that the link will work) etc.
With the caption problem, some methods of displaying images just don't show the caption. It's all here: Help:Images. If you use |frame or |thumb (as Ciencia said) the caption will show up. Jonathan3 (talk) 16:07, 18 April 2021 (UTC)
Thank you everyone,
It was hard for me to read the {{{}}} stuff. So if it helps any, this is what worked for me:
[[File:Excel_icon.gif|150px|left|link=http://YourWebsiteName.com/wiki/images/1/15/Your_Great_Spreadsheet.xlsx|thumb|Spreadsheet of electricity usage by month]] 
Problem solved. Love you folks. Ciencia, you've been helping for years! RedKnight7 (talk) 17:17, 18 April 2021 (UTC)
fyi, for pdfs (not excel) see extension:PdfHandler Bawolff (talk) 19:26, 18 April 2021 (UTC)
UPDATE: Problem solved! I just needed to put a colon in front of File: (like :File:) in order to have a link to the file's page, not the file itself. More info at Help:Linking_to_files.
Hi everyone, thanks for your help 8 months ago... a new wrinkle on this, please?
I want to show, e.g., an Excel icon for a spreadsheet download, and have it directly start the download. Okay, this was handled just fine, above.
But now I also want to have, in the description of the thumbnail, a link to the wiki page for that file - so someone can back up and get a previous version if they want. Or if they have any trouble with the direct download link associated with the Excel icon.
The thumbnail description my example above is
Spreadsheet of electricity usage by month
I want to change this to say
Spreadsheet of electricity usage by month. Click on the icon to download the Excel, or click here to go to its file page.
(or something like that).
For the underlined part, if I try putting:
[[File:Your_Great_Spreadsheet.xlsx | click here to go to its file page]]
it only shows File:Your_Great_Spreadsheet.xlsx, and not the text.
If I use Media: instead of File:, it shows the text, but it just directly downloads the Excel - it doesn't take you to the Excel file's wiki page.
Edit: I also tried not having either File: or Media:, but then it just thinks Your_Great_Spreadsheet.xlsx is a new (blank) page (it shows the thumbnail text using the red URL coloring).
How can I get this to work right?
Keep in mind that it' all being wrapped in the outer [[ ... ]] for the image and thumbnail, too. RedKnight7 (talk) 18:03, 20 December 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Class 'SkinChameleon' not found

I have a problem updating the mediawiki version. Indeed I installed mediawiki 1.31.14 with BlueuSpice 3.2.1. I integrated Semantic Mediawiki version 3.1.6, everything goes very well, but once I have updated the system with "maintenance / update", the application does not start anymore and displays the message:

Fatal error: Uncaught Error: Class 'SkinChameleon' not found in /home/xxxxxx/example.com/skins/BlueSpiceCalumma/src/Skin.php:11.

If there is anyone who can help me i will be very happy Widetest (talk) 14:16, 18 April 2021 (UTC)

BlueSpiceCalumma requires Chameleon Skin version 1.
I recommend installing BlueSpice extensions/skins using composer.
See also https://github.com/hallowelt/mediawiki/blob/master/_bluespice/build/bluespice-free/composer.json#L59-L60 Osnard (talk) 08:35, 19 April 2021 (UTC)

Replacing all file uses with another file

File:Federal_Open_Market_Committee_Meeting.jpg is (probably correctly) nominated for deletion. I would like to replace all usages of that file with the very similar File:FOMC 042616 00071 (26605969282).jpg. Is there an automated way to do this, or does it require manually editing every page that links to the first file? NilsTycho (talk) 20:00, 18 April 2021 (UTC)

I think File-movers (or Admins?) on Commons have access to a script that can do this globally. You should request for that there. If you want do it yourself, I guess you've to do that manually. – Ammarpad (talk) 20:59, 18 April 2021 (UTC)
A script, which does this is: commons:User:Sreejithk2000/JustReplace.js Zabe (talk) 21:06, 18 April 2021 (UTC)

Is there any difference for icons?

This wiki uses complex template for icons like: {{icon|opinion}} {{icon|state religion happiness}} etc. Page of icon template

On my wiki I use a simplified way: I just create a new template for each new icon like {{opinion}} ((state-religion}} etc.

Is there any difference in these methods if I speak about perfomance? There can be more than 100+ icons on a page, so I wonder if my method is overloading or there is no any difference apart from convenience. Аргскригициониец (talk) 20:26, 18 April 2021 (UTC)

Its unlikely that there is a performance difference, or if there is, its probably to small to notice.
Note: If you are using instantcommons, there is known performance issues with that feature when you have a large number of images on a page. Bawolff (talk) 03:53, 19 April 2021 (UTC)

Личное дело

Через МФЦ поступило личное дело, введено и к нему ошибочно прикреплено личное дело другого безработного. Каким образом "разъединить " эти два дела? 109.187.176.241 (talk) 06:11, 19 April 2021 (UTC)

Hi, what does this have to do with MediaWiki? See the sidebar. Thanks. Malyacko (talk) 09:20, 19 April 2021 (UTC)

Change the interface language for anonymous via JavaScript

Hello,

I'm tring to create a script that changes the MediaWiki interface language via javascript based on the page language at my private wiki.

For logged-in users I'm able to do that by changing the user's options via an API request as shown below, but this do not work for anonymous users. So my question is: Is it possible to change the interface language for anonymous users/visitors via JavaScript? And how do I do that?

/**
 * Automatic switch of wgUserLanguage, based on wgPageContentLanguage
 * The output of Template:AutoLangSwitch (id='auto-lang-switch') is the triger
**/
( function ( $, mw ) {
	mw.loader.using( 'mw.Api' ).then( function () {
		var nsNumber = mw.config.get( 'wgNamespaceNumber' );
		var lgAction = mw.config.get( 'wgAction' );
		var pageLang = mw.config.get( 'wgPageContentLanguage' );
		var userLang = mw.config.get( 'wgUserLanguage' );
		var langTest = document.getElementById( 'auto-lang-switch' );
		
		if ( pageLang !== userLang && lgAction === 'view' && nsNumber === 0 && langTest ) {
			var params = {
				action: 'options',
				change: 'language=' + pageLang,
				format: 'json'
			},
			api = new mw.Api();
			api.postWithToken( 'csrf', params ).done( function ( data ) {
				console.log( data );
			} );
			location.reload();
		}
	} );
}( jQuery, mediaWiki ) );

Spas.Z.Spasov (talk) 07:42, 19 April 2021 (UTC)

The best way to do this, is to use MediaWiki:Gadget-AnonymousI18N.js from commons and install that as a hidden gadget.
https://commons.wikimedia.org/wiki/MediaWiki:Gadgets-definition
https://commons.wikimedia.org/wiki/MediaWiki:Gadget-AnonymousI18N.jsTheDJ (Not WMF) (talkcontribs) 11:37, 19 April 2021 (UTC)
Hi, @TheDJ, thank you for the replay and the shared script! I was thinking about the possibility to use the parameter ?uselang=xx (like it is made in Gadget-AnonymousI18N.js), but I found this solution too complicated.
Finally I found a simple way how to engage Extension:UniversalLanguageSelector for this task. ULS writes two cookies: _language=xx and _mwuser-sessionId=xxyyzz. All we need in order to solve the current task is to set the language cookie and reload the page. So, for anonymous users the script could be:
/**
 * Automatic switch of wgUserLanguage, based on wgPageContentLanguage 
 * by the help of Extension:ULS
 * The output of Template:AutoLangSwitch (id='auto-lang-switch') is the triger
**/
( function ( $, mw ) {
	var nsNumber = mw.config.get( 'wgNamespaceNumber' );
	var lgAction = mw.config.get( 'wgAction' );
	var pageLang = mw.config.get( 'wgPageContentLanguage' );
	var userLang = mw.config.get( 'wgUserLanguage' );
	var langTest = document.getElementById( 'auto-lang-switch' );
	
	if ( pageLang !== userLang && lgAction === 'view' && nsNumber === 0 && langTest ) {
		mw.cookie.set('language', pageLang);
		location.reload();
	}
}( jQuery, mediaWiki ) );
According to that the final script that works for logged-in and anonymous users is:
/**
 * Automatic switch of wgUserLanguage, based on wgPageContentLanguage 
 * by the help of Extension:ULS and mw.Api
 * The output of Template:AutoLangSwitch (id='auto-lang-switch') is the triger
 */
( function ( $, mw ) {
	var userId    = mw.config.get( 'wgUserId' );
	var nsNumber  = mw.config.get( 'wgNamespaceNumber' );
	var lgAction  = mw.config.get( 'wgAction' );
	var pageLang  = mw.config.get( 'wgPageContentLanguage' );
	var userLang  = mw.config.get( 'wgUserLanguage' );
	var cookLang  = mw.cookie.get('language');
	var allowedNS = [0, 1, 4, 5, 14, 15];
	var langTest  = document.getElementById( 'auto-lang-switch' );
	// Logged-in users
	if ( pageLang !== userLang && lgAction === 'view' && userId !== null && allowedNS.includes(nsNumber) && langTest ) {
		mw.loader.using( 'mw.Api' ).then( function () {
			var params = {
				action: 'options',
				change: 'language=' + pageLang,
				format: 'json'
			},
			api = new mw.Api();
			api.postWithToken( 'csrf', params ).done( function ( data ) {
				console.log( data );
			} );
			location.reload();
		} );
	} else // Anonymous users
	if ( pageLang !== userLang && lgAction === 'view' && userId === null && cookLang !== pageLang && allowedNS.includes(nsNumber) && langTest ) {
		var sessionId = mw.cookie.get( 'mwuser-sessionId');
		if ( sessionId ) {
			console.log('mwuser-sessionId: ' + sessionId);
		} else {
			sessionId = mw.user.generateRandomSessionId();
			mw.cookie.set( 'mwuser-sessionId', sessionId, { expires: null } );
		}
		
		mw.cookie.set('language', pageLang); 
		location.reload();
	}
}( jQuery, mediaWiki ) );
Spas.Z.Spasov (talk) 17:55, 19 April 2021 (UTC)
Just make sure you vary cache on the cookie header for anonymous users in that case, otherwise people might get unexpected results from proxies. —TheDJ (Not WMF) (talkcontribs) 09:33, 20 April 2021 (UTC)
Thank you for the help, @TheDJ. I've added mw.cookie.set( 'mwuser-sessionId', sessionId) in the script above. Spas.Z.Spasov (talk) 16:42, 20 April 2021 (UTC)

Extension AccessControl

Hello,

I have installed the extension AccessControl to create user orientied pages.

Details:

- Media Wiki 1.35.1

- latest Version of AccessControl


Problem:

I have created namespaces and defined users in lists, but it does not work as it should. On the page, which should not be visible to all, i added

<accesscontrol>Quality:Mitarbeiter</accesscontrol>

The namespace ist Quality and the page name in this namespace is Mitarbeiter. There are also alle user names in bullet points *. But it does not work. Do I have forgot something? Thank you Onmiy (talk) 10:38, 19 April 2021 (UTC)

You should use the newer method which is via a pseudo type of template. The method is in the Czech manual linked in the extension page. It is interpretable using Google translate and I got it working with that. It isn't in the English documentation
InnerCitadel (talk) InnerCitadel (talk) 10:58, 6 May 2021 (UTC)

Tutorial for beginners

Hi, I have MediaWiki installed on my hosting and I know very little about how to configure and use it as a collaborative documentation tool for my group of circa 50 users.


Please could you signpost some good tutorials which cover post installation configuration and howto use?


thank you,

Paul kirk 51.148.133.34 (talk) 11:15, 19 April 2021 (UTC)

See Manual:Installation guide and Manual:System administration. There are more pointers to resources if you go to the mainpage too. – Ammarpad (talk) 11:59, 19 April 2021 (UTC)
many thanks for your help
Paul 51.148.133.34 (talk) 12:18, 19 April 2021 (UTC)

Assist in undoing

I acidentally mofieid Manual:Preventing access, but I seem not to be able to undo it correctly.

Please assist me to do so or even better do it and ttell me what I should have done. JanEnEm (talk) 12:46, 19 April 2021 (UTC)

You have already undid the edit correctly, so all is OK now. – Ammarpad (talk) 13:04, 19 April 2021 (UTC)

Template fetch failed

Dear ∀,

We are running two wikis and use to share content between them, which worked fine until recently.

Since a couple of days, however, the transclusion does not function anymore, instead, we get the error message “Template fetch failed for <source page>”.

Oddly enough, transclusion from Wikipedia functions.

I have illustrated this here.

Can anybody help me solving the problem?

Thank you in advance! Ciciban (talk) 14:33, 19 April 2021 (UTC)

has anything changed?
Do you have the php curl extension installed (not the mediawiki extension but the php one). If not try installing it.
Try enabling the mediawiki debug log and then purge the page. Does it say anything about this (see how to debug) Bawolff (talk) 04:27, 20 April 2021 (UTC)
@Bawolff:
Thank you for the hint. It turned out to be a DNS-problem.
Yours, Ciciban (talk) 09:06, 29 April 2021 (UTC)

PHP Configuration

Does anyone know where to find the PHP configuration? This is relating to my login issues and if anyone can help, I would really appreciate it.

(I'm using the desktop version on my phone so presumably, there shouldn't be any issues) 2600:6C44:447F:DF74:D963:7F9C:78E5:890 (talk) 07:10, 20 April 2021 (UTC)

There's a page on it here: PHP configuration. I'm sure I followed more useful, step-by-step instructions but can't find them. But from my bash history here's what I typed. I'm using Ubuntu 18.04.
sudo apt install php libapache2-mod-php php-mysql
sudo apt install php-mysql
sudo apt install php-xml
sudo apt install php-mbstring
sudo apt install php-apcu
sudo apt install php-intl
sudo apt install imagemagick
sudo apt install inkscape
sudo apt install php-cli
sudo apt install php-curl
sudo apt install php-imagick
sudo apt install poppler-utils
If you just mean which version will work, there's a chart here: Compatibility#PHP. Jonathan3 (talk) 07:23, 20 April 2021 (UTC)
Or do you just mean phpinfo.php? Jonathan3 (talk) 09:53, 20 April 2021 (UTC)
Do I have to go to any pages to access it? (As in, is there an easy or simple way to access it?) Because I'm still unsure of what to do or where to go 2600:6C44:447F:DF74:5403:25E5:B328:233C (talk) 04:54, 22 April 2021 (UTC)
I'm sorry, but what do you mean by "it"?
If it's phpinfo.php, you can just create a file xyz.php containing:
<?php
phpinfo();
Then go to your website at www.example.com/xyz.php or www.example.com/w/xyz.php or wherever. Jonathan3 (talk) 08:15, 22 April 2021 (UTC)
When I say "it" I mean the configuration. Hope that helps. My issue is that when I try to login, it refuses to let me and just says that it was "canceled to prevent session hijacking". I was told to clear my cookies but that didn't so now I'm trying this avenue. If that doesn't help, I might end up just changing my password and see if that does any good. 2600:6C44:447F:DF74:61D4:CFB9:D38:B9F7 (talk) 18:55, 24 April 2021 (UTC)
This rings a bell. I had the same thing once. I tried so many things simultaneously I don't know what fixed it. See Project:Support desk/Flow/2020/12#h-Cannot_log_in_-_Session_hijacking_warning-2020-12-01T01:12:00.000Z. Jonathan3 (talk) 19:08, 24 April 2021 (UTC)
My browser is Chrome. Is there a difference? 2600:6C44:447F:DF74:A56F:E281:D0E8:FB8A (talk) 01:49, 13 May 2021 (UTC)
Possible session problems: Manual:How to debug/Login problems
I think User:Jonathan3 reply above pretty much explains how to access the PHP configuration. If something is not clear please be specific. Ciencia Al Poder (talk) 08:17, 13 May 2021 (UTC)

Mime type error with oojs-ui modules

I'm getting mime type sniffing errors when oojs-ui icon modules are trying to load. This is on an nginx server. Here is the output from firefox:


The resource from “http://www.mywebsite.com/load.php?lang=en-ca&modules=mediawiki.legacy.commonPrint%2Cshared%7Cmediawiki.skinning.interface%7Cmediawiki.widgets.styles%7Coojs-ui-core.icons%2Cstyles%7Coojs-ui.styles.indicators%7Cskins.myskin.styles&only=styles&skin=myskin” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).


Any ideas? 70.24.123.54 (talk) 14:48, 20 April 2021 (UTC)

check for whitespace at the begging of LocalSettings.php before tge <?php
Check php error logs for warning.
Open the load.php page in question see if there is any errors visible. Bawolff (talk) 04:42, 21 April 2021 (UTC)
Any other suggestions? This is a big problem considering how many times I load oojui-ui modules... I can't be the only person with this problem. I can't replicate the same error or even generate a warning on my localhost. 65.92.83.38 (talk) 23:55, 22 April 2021 (UTC)

Is suggestion for special pages removed?

Hello, I have shown the Improvements/Features/Search is deployed many wikis. I am very satisfied with that. One thing that I am curious about is the suggestion for special pages. I remember, say, typing Special:Sp in the search box would suggest Special:Specialpages, but I don't think it's working right now. Is it a planned behavior?

Regards. Lens0021 (talk) 15:42, 20 April 2021 (UTC)

@Lens0021 Which MediaWiki version are you running, or which website is this about? The link says it is about articles. Special pages would not be articles. Malyacko (talk) 07:12, 21 April 2021 (UTC)
See the below images, thanks. Currently, All wikimedia wikis excepts commons and wikidata uses WvuiSearch.[1]
  1. https://gerrit.wikimedia.org/g/operations/mediawiki-config/+/73544ccb40d9687b54c039aceb05cd033901d86f/wmf-config/InitialiseSettings.php#7718
  2. Lens0021 (talk) 07:36, 21 April 2021 (UTC)

    this might be better to file at https://phabricator.wikimedia.org Bawolff (talk) 07:50, 21 April 2021 (UTC)

    convert audio to written document

    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 want to be able to convert an audio recording to a written document. Audio.onedigital (talk) 16:38, 20 April 2021 (UTC)
    Welcome to the support desk for the MediaWiki software. Is this question related to MediaWiki? Malyacko (talk) 07:12, 21 April 2021 (UTC)
    You can convert audio file to written document by using these ways-
    1.By using 360Converter
    2.Also the dictation software
    3.By downloading a transcription app
    4.Sobolsoft ↠Tanbirzx () 06:33, 21 April 2021 (UTC)
    The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

    Download an svg file from Commons.

    Could you tell me to whom I can ask the following question?

    I found a file that would turn out to be very useful for a thing that I am writing. This file has the format svg, but when I try to download it, I get a file wit the suffix .svg.png. Would it be possible to download the svg file?

    Thank you. Piero Caracciolo (talk) 18:57, 20 April 2021 (UTC)

    Visit the file’s page and the find the “doenload original” link on the page and download that. 82.197.207.202 (talk) 21:55, 20 April 2021 (UTC)
    If your are writing for a wiki, enable InstantCommons, see Manual:$wgUseInstantCommons and InstantCommons. InstantCommons allows the usage of any uploaded media file from the Wikimedia Commons in any MediaWiki installation world-wide. InstantCommons-enabled wikis cache Commons content so that it is only downloaded once, and subsequent pageviews load the locally existing copy. Peculiar Investor (talk) 23:13, 20 April 2021 (UTC)

    Title.php error

    I get error on Special:Nuke:


    Notice: Array to string conversion in /var/www/mediawiki/includes/Title.php on line 2357


    How this fix? Kanasalaatti (talk) 08:49, 22 April 2021 (UTC)

    Please see the sidebar - which PHP version, which MediaWiki version, which extension version? Malyacko (talk) 11:43, 22 April 2021 (UTC)
    Current MediaWiki version is 1.35.2 and PHP version is 7.4.16. Now this is happening elsewhere than the Nuke extension. Kanasalaatti (talk) 12:35, 22 April 2021 (UTC)
    I still have this problem, does anyone have any advice? Kanasalaatti (talk) 16:09, 30 April 2021 (UTC)

    MediaWiki 1.35.2 and later + Composer 1?

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


    Just a quick question. Does MediaWiki 1.35.2 and later still support Composer 1? It looks like it. Perhaps someone has already run into this requirement and can share experience ... [[kgh]] (talk) 17:43, 22 April 2021 (UTC)

    Self answering my question: Affirmative. It is possible to handle your 1.35.x with Composer 1 after updating to 2.x of the merge plugin. This is great since I can wait with the upgrade from Composer 1 to Composer 2 until I have upgraded all wikis on the respective server from 1.31.x to 1.35.x. [[kgh]] (talk) 15:46, 27 April 2021 (UTC)
    The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

    Possible to protect against import overwrite?

    Periodically I want to import a page from another wiki and choose to include templates in the export so that I don't have to manually go fetch a whole chain of things. A common use would something like Template:See Also, which brings over like 20 pages and modules along with it.

    The problem is that these imports often overwrite changes to pages that I've modified (e.g. corrected wikipedia specific links). Sometimes they effectively undelete pages I've already deleted.

    Is it possible protect a page against import? Realsalt (talk) 19:36, 22 April 2021 (UTC)

    Anyone? 86.181.86.242 (talk) 14:03, 19 May 2024 (UTC)
    I don't think this is currently possible, but it's an interesting idea. * Pppery * it has begun 23:16, 19 May 2024 (UTC)

    Problem installing from github

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


    I tried installing mediawiki from scratch via github and I get problems running composer update

    git clone --depth=1 https://gerrit.wikimedia.org/r/mediawiki/core.git mediawiki

    cd mediawiki

    docker-compose up -d

    docker-compose exec mediawiki composer update


    Your requirements could not be resolved to an installable set of packages.

      Problem 1

        - This package requires php >=7.3.19 but your PHP version (7.2.31) does not satisfy that requirement.

      Problem 2

        - Installation request for doctrine/dbal 3.0.0 -> satisfiable by doctrine/dbal[3.0.0].

        - doctrine/dbal 3.0.0 requires php ^7.3 || ^8.0 -> your PHP version (7.2.31) does not satisfy that requirement.


    Is the image defined in docker-compose.yml wrong?

    image: docker-registry.wikimedia.org/dev/stretch-php72-fpm-apache2-xdebug:0.4.0

    Do I have to manually update php inside the container or is there a more compatible image to use than that? 185.186.43.10 (talk) 07:09, 23 April 2021 (UTC)

    edit: used this and not above
    git clone https://gerrit.wikimedia.org/r/mediawiki/core.git --branch REL1_35 mediawiki 185.186.43.10 (talk) 07:11, 23 April 2021 (UTC)
    The error message is self-explanatory.
    This package requires php >=7.3.19 but your PHP version (7.2.31) does not satisfy that requirement.
    Upgrade your PHP? Ciencia Al Poder (talk) 07:47, 23 April 2021 (UTC)
    The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

    Is there any impact on my MediaWiki installation (version 1.26.4) of Silverlight EOL?

    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 have received a comms from our internal support teams that Silverlight is nearing EOL and the MediaWiki installation that we have, needs to fix the dependency or migrate it to other platforms? 165.225.17.20 (talk) 09:31, 23 April 2021 (UTC)

    MediaWiki doesn't use Silverlight. This dependency may come from somewhere else. Ciencia Al Poder (talk) 10:23, 23 April 2021 (UTC)
    Furthermore, your MediaWiki 1.26 version saw its end of life already more than four years ago and has known security vulnerabilities. Please upgrade to supported software versions for your own safety. Malyacko (talk) 13:02, 23 April 2021 (UTC)
    The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

    will get 403 after edited js and inport with xml

    here Jonathan5566 (talk) 14:08, 23 April 2021 (UTC)

    Cannot reproduce, link looks correct here. Malyacko (talk) 14:27, 23 April 2021 (UTC)
    so what should i do? Jonathan5566 (talk) 01:13, 24 April 2021 (UTC)
    Source Map 錯誤: Error: NetworkError when attempting to fetch resource. 資源網址: moz-extension://914cb14c-3dca-a745-99be-6739c2f91967/inpage.js Source Map 網址: ../sourcemaps/inpage.js.map
    Source Map 錯誤: Error: NetworkError when attempting to fetch resource. 資源網址: moz-extension://914cb14c-3dca-a745-99be-6739c2f91967/disable-console.js Source Map 網址: ../sourcemaps/disable-console.js.map
    Source Map 錯誤: Error: NetworkError when attempting to fetch resource. 資源網址: moz-extension://914cb14c-3dca-a745-99be-6739c2f91967/contentscript.js Source Map 網址: ../sourcemaps/contentscript.js.map Jonathan5566 (talk) 01:42, 24 April 2021 (UTC)
    none of these errors are related to mediawiki. Bawolff (talk) 08:12, 24 April 2021 (UTC)
    You could provide clear steps to reproduce which leave no room for interpretation. Malyacko (talk) 07:50, 24 April 2021 (UTC)
    sorry but what do you mean should i use the screenrecorder or something to show the situation? Jonathan5566 (talk) 08:24, 24 April 2021 (UTC)
    Now that Bawolff (rightfully) commented: The problem is unrelated to MediaWiki. It's one of your web browser extensions (adblocker?) that is broken. Malyacko (talk) 10:09, 24 April 2021 (UTC)
    thanks a lot about that! Jonathan5566 (talk) 10:17, 24 April 2021 (UTC)
    but now another problem is that i will et 403 when i edit the commom.js even i unstall the adblocker Jonathan5566 (talk) 10:20, 24 April 2021 (UTC)
    https://www.mediawiki.org/wiki/Manual:Common_errors_and_symptoms#Attempting_to_save_an_edit_gives_you_a_403_Forbidden_error,_or_you_get_redirected_to_the_main_page Malyacko (talk) 13:32, 24 April 2021 (UTC)

    Can I Use MediaWiki For Modern/New Google Sites?

    Well I Want to make a wiki And Im confused and dont know how and What to use it for. ILove2Type801 (talk) 15:57, 23 April 2021 (UTC)

    There are some useful links on the home page here.
    ===Set up and run MediaWiki===
    I hope so I have a google site. 72.205.25.243 (talk) 20:39, 1 May 2022 (UTC)

    Hide IP addresses for anonymous edits

    Is there a way to hide IP address for anonymous edits on the latest mediawiki installation? Deimos (talk) 19:35, 23 April 2021 (UTC)

    Cannot login

    The button for login does not work and the following message appears at the top of the page:

    Warning: Use of undefined constant CEASRC_FILE - assumed 'CEASRC_FILE' (this will throw an Error in a future version of PHP) in /public/societies/curobotics/public_html/wiki/LocalSettings.php on line 159 131.111.184.7 (talk) 13:47, 24 April 2021 (UTC)

    What the error message says - edit line 159 to fix that line...
    What does "does not work" mean exactly? Please be more specific and explain what you do, and what does happen. Malyacko (talk) 14:13, 24 April 2021 (UTC)

    Active users statistic

    Hi,

    The active users statistic doesn't update, although the list of active users on the page Special:ActiveUsers is correct.

    We've run the InitSiteStats.php maintenance script, which took the statistic from zero to the correct figure, but the number hasn't moved since even though there are more active users.

    I'm guessing the number ought to update automatically without having to run the maintenance script...

    Any ideas welcome.

    Thanks

    Produit Version
    MediaWiki 1.35.2
    PHP 7.3.27-9+0~20210227.82+debian10~1.gbpa4a3d6 (fpm-fcgi)
    MariaDB 10.3.27-MariaDB-0+deb10u1
    ICU 65.1
    Lua 5.1.5


    https://wikicyclopays.cyclo-camping.international/index.php?title=Accueil Zysmoi (talk) 19:17, 24 April 2021 (UTC)

    I think you may need to run updateSpecialPages.php regularly Ciencia Al Poder (talk) 21:43, 24 April 2021 (UTC)

    Automatically run job queue

    Currently I'm just using Manual:$wgJobRunRate but I wonder about the methods in Manual:Job queue. I'm not sure I'd have the expertise to set up the "continuous service" version (at least not without significant effort). So I wondered about setting up a cron job but more regularly than hourly. What about every 5 minutes with a max time of, say, 4 minutes? When I run php runJobs.php at the command line it always takes less than a minute. Thanks. Jonathan3 (talk) 20:53, 24 April 2021 (UTC)

    Yeah that should work fine. Its important to set the max time, as if for some reason you had a big job backlog and it ran for like 2 hours, you wouldnt want to have 100 overlapping job queue runners all running at the same time. Bawolff (talk) 23:02, 24 April 2021 (UTC)
    Thank you. I've gone for
    */5 * * * * /usr/bin/php /var/www/.../html/maintenance/runJobs.php --maxtime=240 >> /var/www/.../logs/runJobs.log 2>&1
    out of curiosity, but when the log file starts getting too big I'll likely add --quiet so that it only logs the errors. I didn't see much point keeping it at > seeing as I'm running it every 5 minutes.
    Incidentally, could you possibly elaborate on this parameter? Is there any way of finding out whether it's necessary? If it's "sometimes necessary" (and I don't know when those times will be) should I use it just in case?
    --server The protocol and server name to use in URLs, e.g. https://en.wikipedia.org. This is sometimes necessary because server name detection may fail in command line scripts.
    Thanks again. Jonathan3 (talk) 09:22, 25 April 2021 (UTC)
    its neccessary when $wgServer is autodetected. Often this is for wikifarms where you have one mediawiki install serving multiple websites, with the server name being detected at runtime.
    Its probably not neccesary for the average install Bawolff (talk) 20:00, 25 April 2021 (UTC)
    Ok cheers. I have $wgServer = "https://www.example.com" in LocalSettings.php so assume I'll be all right. Thanks. Jonathan3 (talk) 21:37, 25 April 2021 (UTC)
    Final question - about this - "you wouldnt want to have 100 overlapping job queue runners all running at the same time"
    Now that I have it running every 5 minutes, could accidentally running it at the same time from the command line cause any problems? I guess not, as each job is a separate thing and I'm sure there's some sort of lock to prevent a problem, but it would be good to know for sure. Thanks again. Jonathan3 (talk) 13:51, 26 April 2021 (UTC)
    well the maxtime should prevent that, but yes, if for some reason things froze or something, and the job queue never exited, and cron ended up starting thousands of instances that just never exited, eventually your server would run out of memory.
    If you're worried, consider writing some sort of shell script to check a lock file, but the max-time option is probably good enough. Bawolff (talk) 08:00, 29 April 2021 (UTC)

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


    We just switched the old Bike Collectives Wiki to Short URLs following this guide (but leaving out the second RewriteRule, because there's a Joomla site hosted on the same domain at /, in addition to the wiki at /wiki). It's great! VisualEditor works properly now, among other things!

    However, there are external sites, browser bookmarks, etc. that still link to https://www.bikecollectives.org/wiki/index.php?title=PAGE_NAME, which the current Short URL configuration turns into https://www.bikecollectives.org/wiki/Index.php - a page that doesn't exist.

    Worst case scenario, I guess we can make that page a redirect to the main page, but it seems like there should be a way to rewrite URLs in the old ?title= format to the new short format. I tried adding RewriteRule ^/?wiki/index\.php\?title=(.*)$ %{DOCUMENT_ROOT}/wiki/$1, above the main Short URL RewriteRule without success.

    I would greatly appreciate help / suggestions. Thanks!


    Current .htaccess file, for reference:

    RewriteEngine On

    RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L] DarinWick (talk) 21:26, 24 April 2021 (UTC)

    Your attempt should work, with [R=301,L] flags. The redirect is because you want search engines to detect that path was moved, instead of duplicating content Ciencia Al Poder (talk) 21:39, 24 April 2021 (UTC)
    Thanks! R=301 seems like an important addition.
    The RewriteRule still isn't working, though. I tried something else using RewriteCond and %{QUERY_STRING} based on a tutorial, but it didn't work (and I can't post it, because mediawiki's abusefilter thinks it's linkspam). DarinWick (talk) 23:21, 24 April 2021 (UTC)
    Fixed!
    RewriteCond %{QUERY_STRING} ^title=(.*)$
    RewriteRule ^/?wiki/index\.php$ http://www.bikecollectives.org/wiki/%1? [R=301,L]
    Apparently, the RewriteRule directive doesn't have access to the query string (the ?index.php=Page_Name part of the URL), so it has to be checked by the RewriteCond on the preceding line. DarinWick (talk) 23:33, 24 April 2021 (UTC)
    The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

    HTTP Error 500

    So I copied the files using FTP to my server, and when I go to the URL, it says this:

    https://drive.google.com/file/d/1NJ6n6B-TYideID_k4xLQeR6C5QGPNek4/view?usp=sharing

    I can't even install this... :(


    please help me. I am using PHP 7.x ( I think PHP 7.4 or something)





    also why the hell is it so hard to upload 1 image!??!??? its a screenshot, not a painting or something wtf CoolGuy76 (talk) 22:06, 24 April 2021 (UTC)

    Also the only PHP options are PHP 5.3, 5.4, 5.5, 5.6, and 7.4
    (idk which version of 7.4) CoolGuy76 (talk) 22:07, 24 April 2021 (UTC)
    do you have access to webserver/php error log? It will hopefully have more details what went wrong.
    See also How to debug (particularly the part about php error reporting) Bawolff (talk) 23:00, 24 April 2021 (UTC)
    Ok, I'll see the php error log CoolGuy76 (talk) 13:55, 25 April 2021 (UTC)
    It says this:
    Warning: require_once(/home/vol6_6/epizy.com/epiz_28437842/htdocs/wiki/includes/libs/mime/defines.php): failed to open stream: No such file or directory in /home/vol6_6/epizy.com/epiz_28437842/htdocs/wiki/includes/Defines.php on line 23
    Fatal error: require_once(): Failed opening required '/home/vol6_6/epizy.com/epiz_28437842/htdocs/wiki/includes/libs/mime/defines.php' (include_path='.:/usr/share/pear/') in /home/vol6_6/epizy.com/epiz_28437842/htdocs/wiki/includes/Defines.php on line 23 CoolGuy76 (talk) 13:59, 25 April 2021 (UTC)
    What do I do? CoolGuy76 (talk) 14:20, 25 April 2021 (UTC)
    You could enter "failed to open stream: No such file or directory" into an internet search engine, as this does not seem to be a MediaWiki problem. Malyacko (talk) 14:25, 25 April 2021 (UTC)
    So for SOME REASON, it didn't copy half the files and now it's missing like 1k so now I can't use this..
    CoolGuy76 (talk) 14:39, 25 April 2021 (UTC)
    so yeah. I suggest getting a better ftp client and trying again starting fresh Bawolff (talk) 19:58, 25 April 2021 (UTC)

    .less styling

    Hello,

    i don't know how to enable .less styling on-wiki in MediaWiki (core), so I would like to someone tell me how to do it. :)

    Best regards! Kizule (talk) 22:30, 24 April 2021 (UTC)

    What does "enable" mean exactly; what would change by "enabling"?
    Please elaborate.
    Note that LESS is a preprocessor language, see https://en.wikipedia.org/wiki/Less_(stylesheet_language) Malyacko (talk) 10:06, 25 April 2021 (UTC)
    I mean on using .less styling on wiki, like for .css. Kizule (talk) 11:43, 25 April 2021 (UTC)
    Something like this:
    We have MediaWiki:Vector.css — MediaWiki, I would like to make MediaWiki:Vector.less (example). Kizule (talk) 11:47, 25 April 2021 (UTC)
    @Kizule How and when would the corresponding CSS be compiled and where would that CSS be stored? Malyacko (talk) 12:52, 25 April 2021 (UTC)
    On the wiki. Kizule (talk) 13:38, 25 April 2021 (UTC)
    @Kizule How should that work? Does that mean MediaWiki:Vector.css would become read-only for everybody because something (what?) would create it from MediaWiki:Vector.less, because you'd only edit MediaWiki:Vector.less to avoid conflicts? And again: How and when would the corresponding CSS be compiled? Malyacko (talk) 13:58, 25 April 2021 (UTC)
    I will make an extension for it, as it is the easiest way for me. ;) Kizule (talk) 18:56, 25 April 2021 (UTC)
    Okay. Could you answer my questions, please? Malyacko (talk) 19:32, 25 April 2021 (UTC)
    Afaik its not supported on wiki, but support exists for extension assets. It is probably not too hard to add a ResourceLoader subclass that preprocesses an on wiki less file, since we already support less for other cases.
    See some of the docs for ResourceLoader Bawolff (talk) 04:17, 26 April 2021 (UTC)
    I have a plan to use ResourceLoader, like @Bawolff explained. It is my answer. Kizule (talk) 12:18, 26 April 2021 (UTC)

    Footnotes and references

    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

    Which models allow, for example on wikipedia, to display notes and references in a section at the bottom of the page?

    The following code:

    == Notes et références ==
    === Notes ===
    {{Références|groupe=Note|colonnes=2}}
    
    === Références ===
    {{Références|colonnes=2}}
    

    uses a References model that distinguishes notes from references.

    Anyone know the code for this model?

    Thanks for your help. Gennievre (talk) 12:22, 25 April 2021 (UTC)

    Help:Cite#Grouped references Malyacko (talk) 12:48, 25 April 2021 (UTC)
    The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

    Can't edit user pages

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


    Hi all!

    I have installed a MediaWiki and everything works fine.

    There is just one issue: I can edit pages but not my own user page.

    I can enter the edit mode but after a click on "save page" there is an error

    Application Blocked

    The application you are trying to use has been blocked in accordance with company policy. Please contact your system administrator if you believe this is an error.

    User: IP_ADDRESS

    Application: mediawiki-editing


    I have currently no idea about the reason for this error. Any clue would be appreciated.

    PS: MediaWiki 1.35.2, PHP 7.4.3, mariadb  Ver 15.1 GreatOmLivesOnADisc (talk) 08:14, 26 April 2021 (UTC)

    Have you tried contacting your system administrator, as the error message suggests?
    Definitively, this error is not coming from MediaWiki. This looks like an application firewall blocking access. Ciencia Al Poder (talk) 09:48, 26 April 2021 (UTC)
    Well, I can try to speak with myself but it won't help much ;-)
    There is actually no firewall active because the Wiki is for internal access, only.
    As I wrote before the wiki works well. I can actually edit pages. Just my own user page gives that error.
    Looking at the help pages and searching the net did not give a clue. GreatOmLivesOnADisc (talk) 10:26, 26 April 2021 (UTC)
    MediaWiki does not have such an error message. Whatever software on your systems blocks editing, that piece of software needs reconfiguration. Malyacko (talk) 11:09, 26 April 2021 (UTC)
    Thanks for your reply. Meanwhile I got other users in the Wiki and they can actually edit their user pages. Now I tried it again and it works, too. I have no idea what's wrong because I did not change anything. Mysterious.
    Thanks for your help. The problem is no solved. 141.71.29.172 (talk) 12:05, 26 April 2021 (UTC)
    The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

    Migrating to new server

    I need to migrate my wiki to a newer server (from RHEL 4 to RHEL 7) the current server is running the mediawiki version 1.15.0, do I need to upgrade first to a lower version then to the current version? (1.35.2) Josuesoltero (talk) 14:56, 26 April 2021 (UTC)

    You can move the database to the new server, install a new version of MediaWiki on the new server and upgrade there. That way you can test the new wiki while the old one is still functional.
    See Manual:Moving a wiki. Ciencia Al Poder (talk) 15:24, 26 April 2021 (UTC)

    Finding why a wiki site is slow from the browser console?

    Hello,


    Is there any way of debugging a wiki site from the browser console? I am looking at this website: https://fr.wikidebates.org/wiki/Wikid%C3%A9bats:Accueil

    It is quite slow to load, for example, https://webpagetest.org/, tells me it takes 4-5 seconds to load. I am not sure why this is happening, it is making too many queries to the database or if it is loading too many images.


    Thank you! Nyxpho (talk) 15:52, 26 April 2021 (UTC)

    not from browser console. See Profiling.
    Most important, make sure obkect caching is turned on. Bawolff (talk) 16:00, 26 April 2021 (UTC)

    how to get user edit count between specific dates ?

    I know that

    select user_name,user_editcount from user order by user_editcount DESC;

    gives user total edit count but I just need user page edit count between specific dates like Feb 1 to March 1st


    How can I do that any help ?


    Thanks in advance Ramu ummadishetty (talk) 08:39, 27 April 2021 (UTC)

    That table field includes the number of edits by a user; the number in the table is updated by a script. The table does not include revisions (and the dates of revisions). See Manual:User table#user editcount Malyacko (talk) 11:45, 27 April 2021 (UTC)
    You need to query the revision table. Something along the lines of SELECT count(*) from revision INNER JOIN actor on rev_actor = actor_id WHERE actor_name = 'USERNAME HERE' and rev_timestamp BETWEEN '20210200000000' AND '20210300000000'; (Did not actually test, YMMV, may not be exactly equivalent to the other edit count.) Bawolff (talk) 07:57, 29 April 2021 (UTC)

    Recent changes tracking without having to refresh the page

    Hello. After the update of Bulbapedia to MediaWiki 1.35.2, the page Special:RecentChanges has the old design, and also, the page has the button "Show new changes starting from $1" in that box instead of "View new changes since $1" under it.

    Pressing "Show new changes starting from $1" will reload the page and not show any changes before the given time.

    I am not the owner of that wiki, but I am asking this question for the wiki's owner, Archaic.

    Software specification (other than the MediaWiki version mentioned earlier):

    • PHP: 7.4.3 (apache2handler)
    • MySQL: 5.7.33-36

    How to change the RecentChanges page to the new look that is now on e.g. Wikipedia? C.Ezra.M (talk) 10:09, 27 April 2021 (UTC)

    $wgDefaultUserOptions['usenewrc'] and $wgDefaultUserOptions['rcenhancedfilters-disable'] control which Recent changes to use (There are 3, I'm not sure which you want). These options take the value 0 or 1. See manual:$wgDefaultUserOptions Bawolff (talk) 07:55, 29 April 2021 (UTC)
    Thank you so much. C.Ezra.M (talk) 08:49, 29 April 2021 (UTC)

    Change font of description list in Timeless skin on css

    My wikipage has recently been changed to the timeless skin in order to make it more responsive. After this, description/definition lists are no longer displayed as before. Before:

    item

    description

    now:

    item (in another font, Times New Roman?)

    description

    While I am really happy with the rest of timeless, I would like to change this. I have tried different things in the mediawiki:common.css and in the mediawiki:timeless.css pages, but nothing appears to affect the font of "item". Is there any way to change this? 129.177.56.10 (talk) 11:10, 27 April 2021 (UTC)

    You could overwrite the "font-family" definition for .mw-body dt in MediaWiki:Common.css Malyacko (talk) 11:42, 27 April 2021 (UTC)
    Thank you for your reply. Unfortunately, this does not seem to work. I can change the font colour, but not the font itself... 129.177.56.10 (talk) 13:18, 27 April 2021 (UTC)
    Can you include what CSS you actually used? Bawolff (talk) 07:51, 29 April 2021 (UTC)
    Why not? Malyacko (talk) 20:27, 27 April 2021 (UTC)
    I don't know... 129.177.56.10 (talk) 05:37, 29 April 2021 (UTC)
    If you cannot describe which exact (!) steps you performed, and what happens, and what you expected to happen, then nobody else can help I am afraid. Malyacko (talk) 08:46, 29 April 2021 (UTC)
    I have placed
    body { color: #5a7425; font-size: 15px; font-family: "Verdana"; }
    td { color: #5a7425; font-size: 15px; font-family: "Verdana"; }
    div.mw-parser-output { color: #5a7425; font-size: 15px; font-family: "Verdana"; }
    div#mw-parser-output { color: #5a7425; font-size: 15px; font-family: "Verdana"; }
    div.mw-content { color: #5a7425; font-size: 15px; font-family: "Verdana"; }
    .mw-body dt {font-family: "Verdana";}
    in mediawiki:commons.css. This changes the colour of the font, but not the font type. As described above, I want my definition lists to look as they did with the vector skin (bold term, defined by the ; before the word, regular, indented text under, defined by the :) . I am rather new at this, and am still looking to find my way around. The site in question uses version 1.31.12, timeless version 0.8.1. 129.177.56.10 (talk) 09:42, 29 April 2021 (UTC)
    You shouldn't have just one font in the font-family, you should offer a selection in case the device doesn't have that single font; in which case the device will use its default font. Possibly unlikely not to have Verdana, but better to offer a choice anyway.
    There's no need to use quote marks around the font-name unless the font-name has a space in it.
    These comments don't really address your issue! Wightbartie (talk) 10:08, 19 October 2021 (UTC)

    Media wiki Extensions are not showing , if searching from searchbox.

    wfLoadExtension( 'VisualEditor' );

    wfLoadExtension( 'WikiEditor' );

    adding these extenson into localsettings.php ,

    And put these extensions folders are into extension folder.

    but unable to search these extension.

    Can anybody help me out ,from where iam able to search these extensions into my wiki site.

    Or is there any other way to add extensions too.

    pls suggest. Pooja2425 (talk) 11:46, 27 April 2021 (UTC)

    Extensions don't appear in search. They should appear on the list of installed extensions, if you navigate to the page called Special:Version on your wiki.
    Some extensions may provide special pages that may be suggested during search autocompletion, but the extensions you mentioned don't provide special pages. Ciencia Al Poder (talk) 13:03, 27 April 2021 (UTC)

    publish through sysop

    Hello, how do I publish contributions only after approval by administrators and how do I give new users administrator rights?


    Thanks in advance! Lea Schmidt93 (talk) 14:51, 27 April 2021 (UTC)

    Maybe Extension:Approved Revs and Manual:User rights :-) Jonathan3 (talk) 18:12, 27 April 2021 (UTC)
    Hi Jonathan,
    I am currently trying to install Approved revs to my wiki, but I still don't get how I make it work.
    I found the following as a help:
    To install the extension, place the entire 'ApprovedRevs' directory within your MediaWiki 'extensions' directory, then add the following line to your 'LocalSettings.php' file: require_once( "$IP/extensions/ApprovedRevs/ApprovedRevs.php" );
    But if I do this, I only get this error:
    Warning: require_once(/home/www/mediawiki/extensions/ApprovedRevs/ApprovedRevs.php): failed to open stream: No such file or directory in /home/www/mediawiki/LocalSettings.php on line 141
    Fatal error: require_once(): Failed opening required '/home/www/mediawiki/extensions/ApprovedRevs/ApprovedRevs.php' (include_path='/home/www/mediawiki/vendor/pear/console_getopt:/home/www/mediawiki/vendor/pear/mail:/home/www/mediawiki/vendor/pear/mail_mime:/home/www/mediawiki/vendor/pear/net_smtp:/home/www/mediawiki/vendor/pear/net_socket:/home/www/mediawiki/vendor/pear/pear-core-minimal/src:/home/www/mediawiki/vendor/pear/pear_exception:.:/usr/share/php') in /home/www/mediawiki/LocalSettings.php on line 141
    Do you mind to help again? Lea Schmidt93 (talk) 14:27, 28 April 2021 (UTC)
    Did you run update.php? Leaderboard (talk) 17:25, 28 April 2021 (UTC)
    This is not the error that not running update.php would give. Bawolff (talk) 07:49, 29 April 2021 (UTC)
    I don't know where you found those instructions, but that's an old way of installing extensions. At Extension:Approved_Revs#Installation it shows the current way. Also, on github you can see why extensions/ApprovedRevs/ApprovedRevs.php can't be found. Jonathan3 (talk) 18:27, 28 April 2021 (UTC)
    This might be a stupid question, but how exactly do I "run" update.php? Lea Schmidt93 (talk) 09:38, 29 April 2021 (UTC)
    I added wfLoadExtension( 'ApprovedRevs' ); to my Localsettings after I copied the file of ApprovedRevs in my extensions folder. What I get now is still the error from above. Following the instructions of Manual:Upgrading#Web updater , after step 2 I cant select any language because the error is still shown. Lea Schmidt93 (talk) 13:53, 29 April 2021 (UTC)
    It explains here how to run update.php: Manual:Update.php. But as Bawolff said, it probably isn't the problem here. Don't worry about the web updater thing either (unless I've missed something).
    Did you save your change to LocalSettings.php? Jonathan3 (talk) 22:39, 29 April 2021 (UTC)

    Domain setting

    How do I transfer my wiki from my computer to the Internet? Provided I have a domain Novike (talk) 19:34, 27 April 2021 (UTC)

    See Meza/Adding wikis
    Maybe it will help you. ↠Tanbirzx () 22:55, 27 April 2021 (UTC)
    @Tanbirzx That page is about "adding wikis to your Meza install". Novike has not stated that they use Meza at all.
    @Novike That's a general question how to put something (MediaWiki or not) onto a server, and how to make your domain redirect to your server. Exact answers depend on your server. Malyacko (talk) 08:25, 28 April 2021 (UTC)
    I guess you've got at least these options:
    1. Install Apache (or whatever) to use your computer as a web server. I vaguely remember doing this for a short while, years ago, and it was surprisingly easy.
    2. Follow the instruction at Manual:Moving_a_wiki. Once you've bought a hosting account somewhere, you'd probably just want to get the latest MediaWiki code onto the server, move your old database onto the server, and run update.php. Jonathan3 (talk) 12:07, 28 April 2021 (UTC)
    Typically you need to buy hosting (Its possible to do it directly on your own computer, but that's a bit complicated and requires your computer to be on 24/7 and a static IP, so most people don't).
    There's two types: VPS vs shared host. VPS is better, especially long term. Some people find shared host simpler but there's lots of things that are much harder to do. I would reccomend a VPS. DigitalOcean is a popular provider that's on the cheap side and fairly good quality, but there's lots of different providers. Dreamhost is another popular provider.
    From there, you'll probably want to find a tutorial on how to setup apache and php, and how to point your DNS to your new host. Your hosting provider might have tutorials on this. Bawolff (talk) 07:46, 29 April 2021 (UTC)
    Thank you very much for the answers. I'm sorry I'm only answering now. Again, thank you very much Novike (talk) 16:17, 11 May 2021 (UTC)

    Collapsible on Mobile Frontend

    Is there any way to solve this issue? --Paloi Sciurala (talkcontribs) 22:25, 27 April 2021 (UTC)

    I get this Unicode_data error.

    Unicode_data at line 15: attempt to call field 'length' (a nil value).

    I usually get this error when I attempt this:

    https://en.wikipedia.org/wiki/Template:Lang Kyuzoaoi (talk) 02:35, 28 April 2021 (UTC)

    attempt that how? What did you do to get that error. Is this on en wikipedia?
    Error should also include what file it occured in. Bawolff (talk) 07:41, 29 April 2021 (UTC)
    It's from a wiki I made with Miraheze.
    https://manchuriaverse.miraheze.org/wiki/Manchurian_National_Armed_Forces
    I attempt to write this...
    Template:Noitalic Kyuzoaoi (talk) 22:27, 29 April 2021 (UTC)

    Change Colors From tabs, and Edit

    Hello Mediawiki gurus,

    I am experimenting with some colors, is there a way to get the tab: mainpage / discussion / read ect also in a different color for some reason i am unable to find the right # for that. i use the following at common.css... Are the also commands to change font text color ect?


    #content { background-color: #d93224; } #bodyContent { background-color: #d93224; } #firstHeading { background-color: #d93224; } #catlinks { background-color: #d93224; } #mw-head-base { background-color: #d93224; } #mw-panel { background-color: #d93224; } #p-logo { background-color: #d93224; } #p-navigation { background-color: #d93224; } #p-tb { background-color: #d93224; } #p-tb-label { background-color: #d93224; } #p-tb .body { background-color: #d93224; } #footer { background-color: #d93224; } #body { background-color: #d93224; } TeunEbb (talk) 09:02, 28 April 2021 (UTC)

    Hi, see Manual:CSS. Malyacko (talk) 11:04, 28 April 2021 (UTC)
    If you use Chrome you can press F12 to see the console, then select the arrow on the top left to let you click anywhere on the web page and see the relevant part of the HTML.
    On this website's Main Page I've just noticed that the tabs that aren't selected have a background-image so you need to add background-image: none to get them to change colour (as background-color won't work on its own). The id of the li elements are ca-nstab-main, ca-talk, ca-view, ca-source, ca-history, ca-watch. It might be different when different tabs are selected. Jonathan3 (talk) 12:22, 28 April 2021 (UTC)

    Create page gives error 404

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


    Hi All!

    I have a strange issue on my new MediaWiki installation.

    The wiki works fine using VisualEditor. Editing a page works but creating a discussion lead to this error:

    Failed to load ressource: the server responded with a status of 404 (Not found)

    I get the same error after a switch from VisualEditor to source editor when regular wiki page is saved.


    I have installed the latest Version of MediaWiki (1.35.2) on Linux with active VisualEditor, SyntaxHightlight_GsSHi and Math extensions.

    I found some related articles for Short URL and Parsoid/RESTBase server but they don't help since I don't use the Short URL extension (although I installed MediaWiki at directory "w" and therefore I use ' $wgScriptPath="/w" ') and I did no other custom setup affecting the Parsoid/RESTBase server.


    Any clue about the reason of this issue? GreatOom (talk) 09:49, 28 April 2021 (UTC)

    Open the browser's developer tools (hit F12) and look at the network console which URLs are getting this problem, and see if the URL your browser is trying to open "makes sense" (eg.: it points to a wrong path, domain, etc). Ciencia Al Poder (talk) 13:19, 28 April 2021 (UTC)
    Thanks for your feedback.
    The URL of the used discussion page is
    http://SERVER_DNS_NAME/w/index.php?title=Benutzer_Diskussion:MY_NAME&action=edit&redlink=1
    The save button is a SUBMIT button and therefore there is no URL.
    In apache access log I get
    … "POST /w/api.php HTTP/1.1" 200 716 "http://SERVER_DNS_NAME/w/index.php?title=Benutzer_Diskussion:MY_NAME&action=edit&redlink=1" "Mozilla/5.0 …
    … "GET /login/css/latofonts.css HTTP/1.1" 404 504 "http://SERVER_DNS_NAME/w/index.php?title=Benutzer_Diskussion:MY_NAME&action=submit" "Mozilla/5.0 …
    Now I tried a source editing instead of VisualEditor. The access.log shows
    … "GET /login/css/latofonts.css HTTP/1.1" 404 504 "http://SERVER_DNS_NAME/w/index.php?title=Benutzer:MY_NAME&action=submit" "Mozilla/5.0 …
    … "POST /w/api.php HTTP/1.1" 200 716 "http://SERVER_DNS_NAME/w/index.php/Benutzer:MY_NAME?action=edit&veswitched=1" "Mozilla/5.0 …
    Here is also /login/css/latofonts.css used.
    I wonder if there is something wrong with "/login/css/latofonts.css"…
    There is no CSS setting in my LocalSettings.php file.
    root:/var/www/html/w# grep -R latofonts .
    gives nothing. Please let my know if this makes any sense to you. I will examine now the Mediawiki CSS usage. GreatOom (talk) 06:19, 29 April 2021 (UTC)
    The latofonts.css is probably unrelated (Maybe something customized in MediaWiki:Common.css ?).
    Are you sure there aren't other requests being made by the browser?
    You could also check mediawiki debug logs (See How to debug) and php error logs Bawolff (talk) 07:40, 29 April 2021 (UTC)
    Thanks. I will try to debug and report back. GreatOom (talk) 09:38, 29 April 2021 (UTC)
    The 404 error was misleading. There was another error before (503 Service Unavailable). This did lead to a error page where font "Lato" is used in CSS. This font is not available locally and therefore there is an error 404 shown in Browser. GreatOom (talk) 12:11, 3 May 2021 (UTC)
    The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

    Special:ApiSandbox is empty except the Headline

    Greetings Mediawiki gurus and specialists,


    I hope you can use your light of knowledge to dispel the confusion that surrounds me.

    After upgrading my wiki from 1.27 to 1.35 (I used the page Manual:Upgrading for Instructions) everything works very well, except for one special page: The Special:ApiSandbox only shows me the headline and an empty page underneath.

    I am really grateful for any suggestions or tips you can give to solve the problem. MaxPowerPlant (talk) 13:07, 28 April 2021 (UTC)

    If you open the javascript console in your web browser (part of developer tools), are there any errors?
    If you add ?safemode=1 (or &safemode=1 if the url has a ? in it already), to the end of the url, does it work? (If so, it means probably something is wrong in your MediaWiki:Common.js or other site specific js, and you should delete them) Bawolff (talk) 07:36, 29 April 2021 (UTC)
    Hi Bawolff, first of all: Thank you for your reply!
    When I call the URL with ?safemode=1 there is no change in the Behaviour of the Site (still only the Headline).
    There is one Error when I open the javascript console in my Web Browser:
    [bc04bc76fe78539024885715] 2021-04-23 13:17:15: Fatal exception of type "BadMethodCallException"
    Unfortunately, that doesn't look very good and I'am not sure what the Error is pointing at. I guess there are some unsatisfied dependencies or something else.
    If it helps I can post the whole Error-Stack.
    Your Help is really appreciated! MaxPowerPlant (talk) 14:28, 4 May 2021 (UTC)
    Hi Bawolff,
    there has been some progress in this topic!
    When Idisable the Visual Editor in my LocalSettings.php, then it is no Problem to Start the Special:ApiSandbox.
    Unfortunately still I don't understand what is the Problem here... By the way the Visual Editor is also not working, if enabled.
    I got the the latest Visual Editor Extension for 1.35 from Special:ExtensionDistributor
    The Error in the Browser-Console says:
    load.php?lang=de&modules=startup&only=scripts&raw=1&skin=vector:46 [32e1583f75e7c8b67f520d0d] /load.php?lang=de&modules=startup&only=scripts&raw=1&skin=vector   BadMethodCallException from line 848 of /plantpedia/wiki/includes/session/SessionManager.php: Sessions are disabled for this entry point
    Have you or somebody else an Idea which Problem this could be with the Visual Editor Extension? MaxPowerPlant (talk) 13:40, 11 May 2021 (UTC)

    LDAPAuthentication2 not doing any group synchronization?

    There have been similar questions posted about this a few times already, though none of them seems to include a fix that works for me. I'm setting up LDAPAuthentication2 on a fresh mediawiki install (1.35.2), authenticating against a local AD instance.  The actual authentication is working great but the group mapping stuff doesn't seem to be activating at all; I feel like I'm missing something obvious.

    Relevant (sanitized) bits from LocalSettings.php:

    wfLoadExtension( 'PluggableAuth' );
    wfLoadExtension( 'LDAPProvider' );
    wfLoadExtension( 'LDAPAuthentication2' );
    wfLoadExtension( 'LDAPAuthorization' );
    wfLoadExtension( 'LDAPUserInfo' );
    wfLoadExtension( 'LDAPGroups' );
    
    // Testing out syncing to a custom group as well...
    $wgGroupPermissions['My-Testing-Group'] = $wgGroupPermissions['autoconfirmed'];
    $wgGroupPermissions['My-Testing-Group']['read'] = true;
    
    $wgPluggableAuth_ButtonLabel = 'Log In';
    $LDAPProviderDomainConfigProvider = function() {
        $config = [
            'MYDOMAIN' => [
                'connection' => [
                    "server" => "ldap.domain.com",
                    "port" => "3269",
                    "user" => "cn=Bind User,dc=domain,dc=com",
                    "pass" => 'password',
                    "enctype" => "ssl",
                    "options" => [
                        "LDAP_OPT_DEREF" => 1
                        ],
                    "basedn" => "dc=domain,dc=com",
                    "userbasedn" => "dc=domain,dc=com",
                    "groupbasedn" => "dc=domain,dc=com",
                    "searchattribute" => "samaccountname",
                    "usernameattribute" => "samaccountname",
                    "realnameattribute" => "cn",
                    "emailattribute" => "mail",
                    "grouprequest" => "MediaWiki\\Extension\\LDAPProvider\\UserGroupsRequest\\UserMemberOf::factory",
                    #"grouprequest" => "MediaWiki\\Extension\\LDAPProvider\\UserGroupsRequest\\GroupMember::factory",
                    "presearchusernamemodifiers" => [ "spacestounderscores", "lowercase" ],
                    ],
                'userinfo' => [],
                'authorization' => [],
                'groupsync' => [
                    'mechanism' => 'mappedgroups',
                    'mapping ' => [
                        'sysop' => 'CN=My-Testing-Group,OU=Groups,DC=domain,DC=com',
                        'My-Testing-Group' => 'CN=My-Testing-Group,OU=Groups,DC=domain,DC=com',
                        ],
                    ],
                ]
            ];
        
        return new \MediaWiki\Extension\LDAPProvider\DomainConfigProvider\InlinePHPArray( $config );
    };
    

    Running php extensions/LDAPProvider/maintenance/ShowUserGroups.php -u username -d MYDOMAIN yields the proper stuff in the lists, as I'd hope:

    Full DNs:
        ...
        CN=My-Testing-Group,OU=Groups,DC=domain,DC=com
        ...
        Short names:
        ...
        my-testing-group
        ...
    

    And I can see the group info pop up in the debug log file, when I have that stuff enabled as well.

    My goal is just the initial sysop group population, but in that config I'm testing with a custom My-Testing-Group as well, and that doesn't sync either.

    The various LDAP extensions show up properly in the Versions page: https://i.imgur.com/DrfCEhp.png

    I've tried without the presearchusernamemodifiers config, since I haven't seen that everywhere, and I've also tried lowercasing the group names in the mapping section. Any other ideas? As I say, I feel like I must just be missing something obvious here. Thanks! Apocalyptech (talk) 15:00, 28 April 2021 (UTC)

    Load an additional JavaScript on Skin-Minerva Neue

    Snippets/Load an additional JavaScript or stylesheet file on all pages#Code

    I tried the above code, but it seems to be loading the JavaScript on Skin Vector only. There is no effect on skin Minerva.

    'scripts' => "skin.js", // Script file to be loaded in all skins

    Can you help me please? 2001:8F8:146D:5345:C983:734A:D7F9:ABD9 (talk) 16:04, 28 April 2021 (UTC)

    you may have to set the 'targets' => [ 'desktop', 'mobile' ] parameter if you are using MobileFrontend/Minerva on mobile. Bawolff (talk) 07:35, 29 April 2021 (UTC)
    Thank you.. it works. :P 2001:8F8:146D:5345:C983:734A:D7F9:ABD9 (talk) 23:05, 29 April 2021 (UTC)
    scripts' => "skin.js", // Script file to be loaded in all skins 114.122.232.102 (talk) 00:24, 30 April 2021 (UTC)

    Allocating page to same category twice

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


    In something I'm doing it would be easier just to let two things (an extension and a template) potentially allocate a page to the same category. I guess this wouldn't be a problem, beyond maybe inefficiency, but could it? Thanks. Jonathan3 (talk) 18:29, 28 April 2021 (UTC)

    Pages can only be in a category once. Multiple things can put them in the category, but they can only be in the category one time. Various parts of mediawiki make assumptions around this, especially the underlying DB table which has a primary key on (cl_to, cl_from) which means the pairs have to be unique. Bawolff (talk) 07:32, 29 April 2021 (UTC)
    That's great. I guessed the second [[Category:...]] would effectively be ignored. Thanks. Jonathan3 (talk) 10:15, 29 April 2021 (UTC)
    The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

    Prezi Extension

    Can someone tell me how to embed a Prezi presentation in mediawiki. I can't get it to work. The extension is installed correctly.

    Thanks !! Wikilinablubulina (talk) 08:20, 29 April 2021 (UTC)

    It looks like you would need to use an iframe.
    I would recommend using my iframe extension. MarkAHershberger(talk) 15:03, 29 April 2021 (UTC)

    Hello,

    What should be the best extension for embedding these videos links in a wiki page:

    http://www.lsfb.be/dicto/page/fichier/video/va/ss/nourrir_1.mp4 (video hosted by a custom website, I don't know which player but I can ask)

    https://cloud.ecoleetsurdite.be/index.php/s/yPr6zGbP8kwTSdo (video hosted by NextCloud and shared by a public link)

    Many thanks,

    B. Seutin 2A02:A03F:A88C:4700:48A2:10A3:35F1:F3A2 (talk) 08:45, 29 April 2021 (UTC)

    Maybe Extension:EmbedVideo would be useful, but it only works for predefined services. It's unclear if there's extension that can work for any website. – Ammarpad (talk) 09:31, 29 April 2021 (UTC)
    Thanks. According to this page , EmbedVideo is preferred for local videos. 2A02:A03F:A88C:4700:48A2:10A3:35F1:F3A2 (talk) 10:01, 29 April 2021 (UTC)
    extension:TimedMediaHandler is an option(mp4 might not be enabled by default) Bawolff (talk) 14:09, 29 April 2021 (UTC)
    Seems to work only with local videos 2A02:A03F:A88C:4700:6471:61ED:4437:74E1 (talk) 19:19, 29 April 2021 (UTC)

    What about using Extension:Widgets to let you use the <video> tag?

    This seems to work at W3Schools:

    <h1>Videos embedded from external URLs</h1>
    
    <p>Video from lsfb.de:</p>
    <video width="320" height="240" controls>
      <source src="http://www.lsfb.be/dicto/page/fichier/video/va/ss/nourrir_1.mp4" type="video/mp4">
      Your browser does not support the video tag.
    </video>
    
    <p>Video from ecoleetsurdite.be:</p>
    <video width="320" height="240" controls>
      <source src="https://cloud.ecoleetsurdite.be/index.php/s/yPr6zGbP8kwTSdo/download" type="video/mp4">
      Your browser does not support the video tag.
    </video>

    Jonathan3 (talk) 07:57, 30 April 2021 (UTC)

    Wikipedia info-box JSON API

    Hello Team,

    I tried many options to fetch infoBox JSON detail which is display in right site in Wikipedia website, but not able to get proper json detail. I’m getting “wikitext: in some API. So can please help me for how to get all infobox detail as JSON so I can display in my application. ThinkToRise81 (talk) 15:52, 29 April 2021 (UTC)

    This seems more like a wikidata question (see this tweet, for example). This infobox tutorial might be helpful, too. MarkAHershberger(talk) 16:16, 29 April 2021 (UTC)

    Will MediaWiki ever become easier to upgrade and maintain for less technical users?

    Will MediaWiki ever become easier to upgrade and maintain for less technical users? MediaWiki is awesome software!!!!!!!!!!!! Cheers and limitless peace. Michael Ten (talk) 02:41, 30 April 2021 (UTC)

    Some early episodes of the Between the Brackets podcast talked about the (remote?) possibility of having a WordPress-like web interface to upgrade extensions, and maybe also MediaWiki itself (I can't remember). Jonathan3 (talk) 10:30, 30 April 2021 (UTC)
    honestly, pretty unlikely. I think there is a lack of interest in that from devs Bawolff (talk) 15:59, 30 April 2021 (UTC)

    Is the user table encrypt in wiki 1.35.1 ?

    Hello Team,


    We are using Kerberso+SSO+LDAP with RHEL-7.9  Maipo (RED HAT ENTERPRISE LINUX SERVER.),  in Wiki 1.35.1 on PHP 7.4 and facing some issues in SSO connectivity.


    Question is that is the `USER` table encrypted in wiki 1.35.1 ?

    As we have successfully established with same steps on Wiki 1.31 but getting issue in wiki 1.35.1.


    --Best Regards--

    Ashish Akki30 (talk) 08:01, 30 April 2021 (UTC)

    Hi!
    There is no encryption enforced on the user table by default. What kind of SSO connectivity issues do you experience? Osnard (talk) 10:23, 30 April 2021 (UTC)
    HI ,
    Thanks for the response!!
    Single sign on (We are trying to connect SSO to LDAP server and facing issue in user credential like password should not be asked in application ) Akki30 (talk) 14:32, 3 May 2021 (UTC)
    This would require a combination of a network based authentication (e.g. Kerberos via Apache `mod_auth_kerb`) and Extension:Auth_remoteuser. LDAP would only be required for syncing user-info (like mail and real name or group membership) from the AD.
    Have a look at LDAP_hub and LDAP_hub/Migration_from_extension_LDAPAuthentication#Auth_remoteuser_(Kerberos_auth)_with_LDAPProvider_features Osnard (talk) 06:34, 4 May 2021 (UTC)
    Hello
    I have used LDAPProvider and facing some access issue:
    Could not access configuration file '/etc/mediawiki/ldapprovider.json'!
    etc/mediawiki is defined in src/extesnsion.json and my folder structure is like /wiki135/extesnions/LDAPProvider.
    how to configure this ? Akki30 (talk) 15:22, 25 May 2021 (UTC)
    You can use the regular extensions config variables. See Extension:LDAPProvider#Extension_config_settings Osnard (talk) 11:47, 26 May 2021 (UTC)
    After add some code I got error, Kindly suggest.
    Deprecated: Use of TitleMoveComplete hook was deprecated in MediaWiki 1.35. [Called from Hooks::register in /data/www/html/wiki135/includes/Hooks.php at line 55] in /data/www/html/wiki135/includes/debug/MWDebug.php on line 430 157.39.24.81 (talk) 15:29, 17 May 2021 (UTC)
    This is just a deprecation notice. It tells that you should not use TitleMoveComplete but PageMoveComplete. If it is your own code, you can update it. If it comes from some third party extension, you may try updating it, or just ignore the message. Osnard (talk) 06:27, 18 May 2021 (UTC)
    Hi ,
    Please suggest.
    How can we enabled Dropdown option while login. As by default its login through DATABASE and we want to Login via LDAP.
    Thanks 132.154.153.57 (talk) 12:59, 20 May 2021 (UTC)
    The dropdown should be available on "Special:Login" when Extension:LDAPAuthentication2 is enabled. You may need to set $LDAPAuthentication2AllowLocalLogin Osnard (talk) 14:38, 20 May 2021 (UTC)
    HI ,
    Could you please explain TLS?
    what is role of TLS for LDAP login. Akki30 (talk) 09:09, 25 May 2021 (UTC)
    TLS is just a connection parameter to the LDAP backend. Learn more at https://www.php.net/manual/de/function.ldap-start-tls.php and https://en.wikipedia.org/wiki/Transport_Layer_Security Osnard (talk) 11:49, 26 May 2021 (UTC)
    Hello Team,
    We are using Kerberso+SSO+LDAP with RHEL-7.9  Maipo (RED HAT ENTERPRISE LINUX SERVER.),  in Wiki 1.35.1 on PHP 7.4 and facing some issues in LDAP connectivity.
    We used LdapAuthentication in our old wiki 1.31 and it was working fine.
    Now we are using the same for wiki 1.35 and it's giving us an LDAP connectivity issue.
    Do we need to use these three ( LdapAuthentication2, LDAPProvider, PluggableAuth) apart from the LdapAuthentication. If yes then do we also need to change in extensions and plugin file.
    I tried to set up with LdapAuthentication2 and it's giving me a namespacing error for etc/mediawiki/ldapprovider.json inside the etc.
    Our Dir structure is wiki135/extensions, So my question is do we need to change namespacing in the given extension? and also do we need to create mediawiki folder inside the etc?
    Please clear this doubt, according to any library standard we never ever change the given namespacing, as I am following this link Extension:LDAPAuthentication2.
    kindly confirm how to use LdapAuthentication2 in our application. 157.39.48.99 (talk) 05:07, 24 May 2021 (UTC)
    Can anyone please reply on this ? 49.156.113.78 (talk) 11:51, 31 May 2021 (UTC)
    removed 124.253.129.72 (talk) 09:59, 24 May 2021 (UTC)
    Extension:LdapAuthentication is more or less unsupported since MediaWiki >1.27. The LDAP Stack extensions try to fill this gap. There is some documentation available. Migrating will require to rewrite the configs. In means of LDAP commuication not much has changes. The new extensions use the native PHP ldap functions in the same way the old extension did. Osnard (talk) 08:52, 7 June 2021 (UTC)

    Show diff of two pieces of text on a wiki page

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


    I'd like to be able to show how an external resource has changed over time. I've seen Help:Diff on Wikipedia which mentions Special:ComparePages. I imagine I could put the two texts on wiki pages and link to that.

    But is there any way to include it within a wiki page? I don't think it's possible to transclude Special:ComparePages.

    Are there any extensions? Jonathan3 (talk) 12:58, 30 April 2021 (UTC)

    extension:DoubleWiki? Bawolff (talk) 15:58, 30 April 2021 (UTC)
    That looks like a great extension, thanks, but it just shows two things in two columns, which (for the small amounts of text I have) I can do without an extension. I'd quite like to be able to show it "diff style" though. Jonathan3 (talk) 18:09, 30 April 2021 (UTC)
    commons:Module:Diff is doing rather exactly what you are heading for, and is used e.g. in commons:Template:Rename.
    To utilize Lua make sure that Extension:Scribunto is available. PerfektesChaos (talk) 08:25, 1 May 2021 (UTC)
    This looks perfect. Thank you very much. I've put off using Scribunto but may have to do it now! Jonathan3 (talk) 18:48, 1 May 2021 (UTC)
    With Module:Diff the only changes I made were to use MediaWiki:Common.css instead of Extension:TemplateStyles (overkill for my wiki), and to comment out the font-size lines in the CSS.
    And in the end Extension:Scribunto was easy to install and just worked. I did have to increase my php memory_limit from 128 to 200M to get round a Scribunto memory error when using two fairly long text extracts (4-5 paragraphs) with the StringDiff template invoking Module:Diff.
    Thank you again. Jonathan3 (talk) 20:27, 1 May 2021 (UTC)
    The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

    Unified skin

    I will want to create an official unified skin that will support MobileFrontend and the original view, likely to be named Modernized 180.190.94.113 (talk) 14:04, 30 April 2021 (UTC)

    Skin does not exist 180.191.138.142 (talk) 09:14, 1 May 2021 (UTC)

    Getting page thumbnails with geosearch

    Hello! I'm trying to do an API call which returns informations almost exactly like this:https://en.wikipedia.org/wiki/Special:Nearby


    however, when I try to do a call using the provided sample code, or through the API sandbox, updating the coords to anything other than the coords provided for the mediawiki foundation returns no results.


    I have been able to set up an API call using "gscoord" using custom coords, but as soon as i try to change to ggscoord and add the "prop=pageimages" attribute, the function no longer operates.


    Thanks you! 136.49.41.102 (talk) 19:00, 30 April 2021 (UTC)

    you should include an example query. Bawolff (talk) 05:05, 1 May 2021 (UTC)

    Change the destination when clicking the logo?

    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.35.1, PHP 7.4.11 (litespeed), home page]

    Long ago, I used the instructions here to change the destination of a click on the logo to an internal wiki page instead of the home page. That code is, I believe, untouched. But it doesn't work any longer; clicking the logo takes you to the home page. This may have been failing for years; I just happened on it by chance. Do we need a FAQ update or am I doing something wrong, or both? Larrydberg (talk) 22:03, 30 April 2021 (UTC)

    I haven't looked into that code but this seems to work if you put it in MediaWiki:Common.js:
    $("a.mw-wiki-logo").attr("href", "http://www.example.com");
    $("a.mw-wiki-logo").attr("title", "Go to example.com website");
    Jonathan3 (talk) 20:44, 1 May 2021 (UTC)
    This worked just fine. If it's now The Right Way to do it, should the FAQ be updated? Larrydberg (talk) 13:23, 2 May 2021 (UTC)
    That's a big IF :-) I'd like to know about the reasons the other one doesn't work - it'll be to do with hooks/classes/methods or something - before removing the old one, but I guess it would be OK to add the JS above as an alternative.
    I'm pleased to hear it works. Jonathan3 (talk) 13:35, 2 May 2021 (UTC)
    OK I've gone and done it :-) Jonathan3 (talk) 13:39, 2 May 2021 (UTC)
    Great. I'll leave it to you to decide if you want to resolve/summarize this issue or leave it open until the old code is investigated. (Because certainly I'm not going to do any such investigation!) But I'm happy with the current situation. A zillion thanks. Larrydberg (talk) 15:16, 2 May 2021 (UTC)
    :-) Jonathan3 (talk) 16:01, 2 May 2021 (UTC)
    The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.