Page MenuHomePhabricator

Lwangaman (JohnD)
User

Projects

User does not belong to any projects.

Today

  • No visible events.

Tomorrow

  • No visible events.

Sunday

  • No visible events.

User Details

User Since
Oct 17 2020, 12:15 PM (285 w, 6 d)
Availability
Available
LDAP User
Unknown
MediaWiki User
Lwangaman [ Global Accounts ]

Recent Activity

Sep 4 2025

Lwangaman added a comment to T402715: CirrusSearch should include dependencies in composer.json.

The dependency on the Elastica extension is declared in extension.json, not in composer.json. So this could still be a problem. I might add that I'm pulling in extensions via git, and then running composer install from the MediaWiki root after all extensions are installed.

Sep 4 2025, 9:31 PM · Essential-Work, Discovery-Search (2025.09.05 - 2025.09.26), CirrusSearch
Lwangaman added a comment to T402715: CirrusSearch should include dependencies in composer.json.

But I understand what you're saying that it should be pulled in be Elastica, which is a dependency. I'll try to dig around and see better what is happening.

Sep 4 2025, 9:16 PM · Essential-Work, Discovery-Search (2025.09.05 - 2025.09.26), CirrusSearch
Lwangaman added a comment to T402715: CirrusSearch should include dependencies in composer.json.

Elastica\Client is used in a number of places:

Sep 4 2025, 9:14 PM · Essential-Work, Discovery-Search (2025.09.05 - 2025.09.26), CirrusSearch

Aug 23 2025

Lwangaman created T402715: CirrusSearch should include dependencies in composer.json.
Aug 23 2025, 1:06 PM · Essential-Work, Discovery-Search (2025.09.05 - 2025.09.26), CirrusSearch

Aug 25 2024

Lwangaman created T373268: Check mobile view cookie `mf_useformat`.
Aug 25 2024, 1:16 PM · Patch-For-Review, MediaWiki-extensions-MobileDetect
Lwangaman added a watcher for MediaWiki-extensions-MobileDetect: Lwangaman.
Aug 25 2024, 1:07 PM

Aug 23 2024

Lwangaman updated subscribers of T356802: `<mobileonly>` tag and parser function don't work with block level elements.

@Sophivorus can you please take a look at the attached patch. I believe you are the maintainer of this extension?

Aug 23 2024, 5:07 PM · Patch-For-Review, MediaWiki-extensions-MobileDetect

Aug 22 2024

Lwangaman added a comment to T356802: `<mobileonly>` tag and parser function don't work with block level elements.

I have now proposed a third solution, by adding an inline parameter to both the parser extension tag and the parser function. With this patch:

  • <mobileonly inline>
  • <mobileonly inline=true>
  • <mobileonly inline="true">
  • <mobileonly inline=1>

will all output a <span class="mobileonly">, while:

  • <mobileonly>
  • <mobileonly inline=false>
  • <mobileonly inline="false">
  • <mobileonly inline=0>

will all output a <div class="mobileonly">. Same goes for the <nomobile> parser extension tag.

Aug 22 2024, 8:41 PM · Patch-For-Review, MediaWiki-extensions-MobileDetect
Lwangaman added a comment to T356802: `<mobileonly>` tag and parser function don't work with block level elements.

@Aklapper there is a difference between a wrong answer and a suggestion that needs to be proofed. Just because a machine generated suggestion isn't usable as is, doesn't mean it doesn't have any value. I'm not seeing you suggesting any "right" answers here? What do you think is "wrong" about the machine generated suggestion?

  • it's suggesting the wrong hook?
  • it's suggesting wrong parameters or method signatures?
Aug 22 2024, 4:11 PM · Patch-For-Review, MediaWiki-extensions-MobileDetect
Lwangaman added a comment to T356802: `<mobileonly>` tag and parser function don't work with block level elements.

I asked ChatGPT for advice on how to handle the caching issue, perhaps by using a hook other than onParserFirstCallInit. Here is what it suggests:

Aug 22 2024, 12:12 PM · Patch-For-Review, MediaWiki-extensions-MobileDetect
Lwangaman added a comment to T356802: `<mobileonly>` tag and parser function don't work with block level elements.

Checking this again I'm finding that when caching is enabled, the isMobile check will cache whichever state (mobile / nomobile) the browser was in when the page is saved. Since the page isn't reparsed again but simply the cache is being output, if I save the page on a mobile browser and then open it on a desktop, the mobile contents will continue to show on desktop. Likewise if I save the page on a desktop browser, then open it in a mobile browser, the nomobile contents will continue to show on mobile.

Aug 22 2024, 11:42 AM · Patch-For-Review, MediaWiki-extensions-MobileDetect

Feb 6 2024

Lwangaman updated the task description for T356802: `<mobileonly>` tag and parser function don't work with block level elements.
Feb 6 2024, 11:43 PM · Patch-For-Review, MediaWiki-extensions-MobileDetect
Lwangaman added a comment to T356802: `<mobileonly>` tag and parser function don't work with block level elements.

The solution proposed in patch https://gerrit.wikimedia.org/r/997955 will instead avoid any confusion between magic tags with similar names, by simply changing the behaviour of the current <mobileonly> and <nomobile> tags. Instead of outputting html markup with css classes, we simply output the contents as is or don't output anything, based on the isMobile() function condition.

Feb 6 2024, 8:11 PM · Patch-For-Review, MediaWiki-extensions-MobileDetect
Lwangaman added a comment to T356802: `<mobileonly>` tag and parser function don't work with block level elements.

One way to solve this, is by adding a new magic tag such as <onlymobile>, which will behave differently from <mobileonly>:

  • <mobileonly> will only work inline (as per the current situation) by wrapping in a <span> element with class mobileonly targeted by a CSS rule that controls visibility
  • <onlymobile> will work both for inline or block level elements, by not wrapping any extra html markup or using CSS rules to control visibility, but by simply outputting the contents or not based on whether the isMobile() function returns true or not
Feb 6 2024, 7:55 PM · Patch-For-Review, MediaWiki-extensions-MobileDetect
Lwangaman updated the task description for T356802: `<mobileonly>` tag and parser function don't work with block level elements.
Feb 6 2024, 7:51 PM · Patch-For-Review, MediaWiki-extensions-MobileDetect
Lwangaman created T356802: `<mobileonly>` tag and parser function don't work with block level elements.
Feb 6 2024, 7:42 PM · Patch-For-Review, MediaWiki-extensions-MobileDetect

Mar 21 2023

Lwangaman added a comment to T297094: Add globaluser.gu_hidden_level column to production.

okay I found the SQL patch at the top of this page, I ran that against my central database and now everything is working again. I guess I'll add a comment about this on the extension discussion page...

Mar 21 2023, 11:30 PM · MediaWiki-extensions-CentralAuth, Schema-change-in-production, DBA
Lwangaman added a comment to T297094: Add globaluser.gu_hidden_level column to production.

On upgrading my MediaWiki instance to v1.39, I started getting this error when trying to login:

Mar 21 2023, 7:12 AM · MediaWiki-extensions-CentralAuth, Schema-change-in-production, DBA

Sep 26 2022

Lwangaman added a comment to T197868: `Class 'Wikibase\DataModel\Entity\ItemId' not found` error when trying to install WikibaseLexeme.

I was able to solve the error EntityId is not an interface, see https://www.mediawiki.org/wiki/Topic:X2qyoagj0mx24oey

Sep 26 2022, 3:36 PM · MW-1.32-notes (WMF-deploy-2018-07-10 (1.32.0-wmf.12)), User-Addshore, User-zeljkofilipin, Wikidata, Wikibase-Docker-2017+

Sep 12 2022

Lwangaman added a comment to T291810: Change the abstract class EntityId into an interface.

ok thank you for the heads up, there was in fact a vendor folder under the WikibaseImport extension. After removing that, I no longer get the above Fatal error.

Sep 12 2022, 10:41 AM · MW-1.38-notes (1.38.0-wmf.3; 2021-10-05), Wikidata, [DEPRECATED] wdwb-tech, Wikibase - Federated Properties

Sep 8 2022

Lwangaman added a comment to T291810: Change the abstract class EntityId into an interface.

When trying to upgrade my Mediawiki instance from v1_36 to v1_38, I am getting an error from SerializableEntityId:

Sep 8 2022, 8:43 AM · MW-1.38-notes (1.38.0-wmf.3; 2021-10-05), Wikidata, [DEPRECATED] wdwb-tech, Wikibase - Federated Properties

Sep 7 2022

Lwangaman added a comment to T197868: `Class 'Wikibase\DataModel\Entity\ItemId' not found` error when trying to install WikibaseLexeme.

I am getting new errors along these lines, when trying to upgrade to Mediawiki 1.38:

Sep 7 2022, 9:29 AM · MW-1.32-notes (WMF-deploy-2018-07-10 (1.32.0-wmf.12)), User-Addshore, User-zeljkofilipin, Wikidata, Wikibase-Docker-2017+

Jan 11 2022

Lwangaman added a comment to T197868: `Class 'Wikibase\DataModel\Entity\ItemId' not found` error when trying to install WikibaseLexeme.

@hyperreview did you try this?

Jan 11 2022, 9:34 PM · MW-1.32-notes (WMF-deploy-2018-07-10 (1.32.0-wmf.12)), User-Addshore, User-zeljkofilipin, Wikidata, Wikibase-Docker-2017+

Oct 12 2021

Lwangaman added a comment to T245377: Video.js player doesn’t work with Score.

For the time being, I have found that setting the web player to the Kaltura player will work in all situations:

Oct 12 2021, 7:58 PM · Regression, TimedMediaHandler, MediaWiki-extensions-Score
Lwangaman added a comment to T245377: Video.js player doesn’t work with Score.

My guess now is that TimedMediaHandler looks for a file with an article in the File namespace, but the Score extension is using a path such as

/w/images/lilypond/5/3/53m5hz6lsx5goei3o98b86w8bb3cr33/53m5hz6l.mp3

which is not in the File namespace?

Oct 12 2021, 7:42 PM · Regression, TimedMediaHandler, MediaWiki-extensions-Score

Sep 16 2021

Lwangaman added a comment to T291131: InstantCommons doesn't work for all-caps file extensions by default.

I think it's more of an issue on the server side setup, not so much with InstantCommons itself. I fixed the issue in my nginx setup. But it would probably be better for all image files to have lower case extensions, for greater compatibility.

Sep 16 2021, 12:42 PM · MediaWiki-File-management, Commons

Sep 2 2021

Lwangaman added a comment to T245377: Video.js player doesn’t work with Score.

I see that the error is no longer occurring on the first page referred to in the Description (https://hu.wikipedia.org/wiki/Bevettek_husz%C3%A1rnak). How was this fixed?

Sep 2 2021, 2:17 PM · Regression, TimedMediaHandler, MediaWiki-extensions-Score
Lwangaman added a comment to T245377: Video.js player doesn’t work with Score.

I'm guessing it's a problem with the Score extension, because in the generated HTML markup, I'm seeing an anchor with File:Undefined:

Sep 2 2021, 1:40 PM · Regression, TimedMediaHandler, MediaWiki-extensions-Score
Lwangaman added a comment to T245377: Video.js player doesn’t work with Score.

I am having the same problem on a wiki that I manage. I have the TimedMediaPlayer, EmbedVideo, and Score extensions installed. When trying to play the midi file generated from a <score> tag, I start to see the loading bar at the top of the page, which then disappears and no media is played. For example with this wiki markup:

<score sound="1">\relative c'' { \time 4/4 \key c \major c4 g8 g a4 g r b^> c^> r \bar "|." } \addlyrics { Shave and a hair -- cut: two bits. }</score>
Sep 2 2021, 1:15 PM · Regression, TimedMediaHandler, MediaWiki-extensions-Score

Oct 17 2020

Lwangaman added a comment to T197868: `Class 'Wikibase\DataModel\Entity\ItemId' not found` error when trying to install WikibaseLexeme.

I had the same error message Error from line 35 of /var/www/mediawiki/extensions/Wikibase/lib/WikibaseLib.entitytypes.php: Class 'Wikibase\DataModel\Entity\ItemId' not found when trying to run the update.php script after an upgrade of my wiki from 1.34 to 1.35. Turns out it wasn't so much a composer problem, as it was that I simply hadn't run

git submodule update --init --recursive

in the extensions/Wikibase directory. I had git cloned Wikibase from branch REL1_35, but then you need to run git submodule update in the Wikibase extension folder and then after that run composer update --no-dev.

Oct 17 2020, 12:23 PM · MW-1.32-notes (WMF-deploy-2018-07-10 (1.32.0-wmf.12)), User-Addshore, User-zeljkofilipin, Wikidata, Wikibase-Docker-2017+