Page MenuHomePhabricator

MobileFrontend broken with sections
Closed, ResolvedPublic

Description

Hi, see image attached

Screenshot 2018-11-07 at 18.52.04.png (1×2 px, 176 KB)

We are running mediawiki 1.31 and php 7.2.

Event Timeline

Jdlrobson subscribed.

@Paladox this task is pretty vague - can you provide some clearer replication instructions? In particular, it would be useful to know the wikitext of that page and configuration settings.

Headings are working perfectly on https://en.m.wikipedia.beta.wmflabs.org/wiki/Albert_Einstein for instance.

The wikitext on this page is:

= Header 1 =
{{#cargo_query:
table=Items
|fields=image=, name=Name, dmg_reflect=DR, vit_on_hit=VOH, min_ad=MinAD, max_ad=MaxAD, atk_spd=AS, atk_range=AR, def=DEF, str=STR, dex=DEX, vit=VIT, walk_spd=WS, sa_delay=SAD
|where=Items.grade="rare"
|format=dynamic table
|order by=name
|rows per page=50
}}

= Header 2 =

= Header 3 =

== Subheader 1 ==

== Subheader 2 ==

You can see it at https://triglav.miraheze.org/w/index.php?title=Test&mobileaction=toggle_view_mobile

@Paladox I don't know what cargo_query is doing but something in this page is moving the label outside of mw-headline (where it should be)

<h1 class="section-heading collapsible-heading open-block" tabindex="0" aria-haspopup="true" aria-controls="content-collapsible-block-0"><div class="mw-ui-icon mw-ui-icon-mf-arrow mw-ui-icon-element  mf-mw-ui-icon-rotate-flip indicator" title=""></div><span class="mw-headline" id="Header_1"></span>Header 1<span><a href="/w/index.php?title=Test&amp;action=edit&amp;section=1" title="Edit section: Header 1" data-section="1" class="mw-ui-icon mw-ui-icon-element mw-ui-icon-minerva-edit-enabled edit-page">Edit</a></span></h1>

MobileFrontend expects

<span class="mw-headline" id="Header_1">Header 1</span>

I'd look at the hooks and other extensions to see what's happening here, but that's the root cause of the problem.

Hi, I'm the admin of the wiki in question. I can verify that "cargo_query" is not the culprit.

Here's a brand new page I made with nothing but headers, but still exhibiting same issues:
https://triglav.miraheze.org/w/index.php?title=MobileviewIssue&mobileaction=toggle_view_mobile

I'm kind of new to all this--how should I go about testing what the cause of the issue is and what kind of things should I be looking for?

hey @TriglavWiki !
Is it possible to disable each extension 1 by 1 and see if the problem goes away when one of them is disabled? That would really help us narrow things down.
Do you have any hooks or parser functions that might be interfering with the section headings?

When I visit https://en.wikipedia.org/wiki/Tyrannosaurus_rex a heading looks like

<h2><span class="mw-headline" id="History_of_research">History of research</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="https://en.wikipedia.org/w/index.php?title=Tyrannosaurus&amp;section=3&amp;veaction=editsource" title="Edit section: History of research">edit</a><span class="mw-editsection-bracket">]</span></span></h2>

but on your wiki
I'm seeing

<h2><span class="mw-headline" id="History_of_research"></span>History of research<span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="https://en.wikipedia.org/w/index.php?title=Tyrannosaurus&amp;section=3&amp;veaction=editsource" title="Edit section: History of research">edit</a><span class="mw-editsection-bracket">]</span></span></h2>

"History of research" is outside mw-headline.
Whatever is causing this, is the problem, so we need to track that down.

Jdlrobson claimed this task.

I'm going to assume this is resolved but feel free to reopen if this is still happening with a more recent example we can debug.