Page MenuHomePhabricator

Parsoid - Arabic Wikipedia
Closed, DeclinedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):
When applying the newer version of Parsoid, the table of contents is replicated in the second section of the article (directly after the introduction).

The problem is shown using Vector 2010 and Vector 2022, regardless of the browser.

Community post about the problem: https://w.wiki/L4nA

What happens?:

  • The table of contents is replicated in the second section of articles.

Example of articles that the table of contents is shown using the newer version of Parsoid: https://w.wiki/L4ne, https://w.wiki/L4ng,
Example of an article, the table of contents is shown using the older version of Parsoid: https://w.wiki/L4nk .

  • It differs as some articles, the table of contents is shown on the old version of Parsoid, and others on the newer version of it.

What should have happened instead?:

  • The table of contents should not be shown at all there.

Example of an article that works well regardless of the Parsoid, browser, or version of Vector (2010, 2022): https://w.wiki/3QML

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Event Timeline

Does the issue still exist? Should have been resolved since Thursday evening / Friday morning (depending on your time zone) -> T421629. Purging affected articles should help. The links you shared work as expected for me (TOC in Vector 2010, no TOC – except the one in the sidebar – in Vector 2022).

Yes, even after opening the ticket, the problem still exists. It works for me on the pages in the example after doing a hard purge, but that means users would have to do it for each article to check whether it works or not. This is not really effective, especially for users who have no technical knowledge about purging pages.

This page from the example, its problem is within Vector 2010 - Old Parsoid: https://w.wiki/L4ng = https://ar.wikipedia.org/w/index.php?title=%D8%A7%D9%84%D9%81%D8%AA%D8%AD_%D8%A7%D9%84%D8%A5%D8%B3%D9%84%D8%A7%D9%85%D9%8A_%D9%84%D9%84%D8%B3%D9%86%D8%AF&useparsoid=0
+ on these pages, it does not work even after doing soft, hard purge or clearing the cache: https://w.wiki/L53w = https://ibb.co/ZzFVMp04 (old Parsoid - Vector 2022)
https://w.wiki/L54G = https://ibb.co/zVkm9wqg (New Parsoid - Vector 2022)

In T423006#11811241, @Sandra_Hanbo wrote:

Yes, even after opening the ticket, the problem still exists. It works for me on the pages in the example after doing a hard purge, but that means users would have to do it for each article to check whether it works or not. This is not really effective, especially for users who have no technical knowledge about purging pages.

This page from the example, its problem is within Vector 2010 - Old Parsoid: https://w.wiki/L4ng = https://ar.wikipedia.org/w/index.php?title=%D8%A7%D9%84%D9%81%D8%AA%D8%AD_%D8%A7%D9%84%D8%A5%D8%B3%D9%84%D8%A7%D9%85%D9%8A_%D9%84%D9%84%D8%B3%D9%86%D8%AF&useparsoid=0
+ on these pages, it does not work even after doing soft, hard purge or clearing the cache: https://w.wiki/L53w = https://ibb.co/ZzFVMp04 (old Parsoid - Vector 2022)
https://w.wiki/L54G = https://ibb.co/zVkm9wqg (New Parsoid - Vector 2022)

I'm wondering if that's a browser specific issue or due to certain gadgets / user scripts? Both of the articles you just linked don't show the table of contents in the article when I use the exact same links (without purging),

Screenshot 2026-04-11 at 22.34.05.png (1×1 px, 936 KB)

Screenshot 2026-04-11 at 22.32.53.png (1×1 px, 891 KB)

The problem still exists, please review the community interaction about it from HERE

SanBonne triaged this task as Medium priority.Apr 13 2026, 9:03 AM
cscott subscribed.

I suspect this is just old content in the cache that will take some time to expire. But I'll look into this. If you have examples which persist even after a ?action=purge I'd like to investigate.

After testing this bug is fixed now.

Could you describe what you do to fix it? And what was the problem exactly?

Could you describe what you do to fix it? And what was the problem exactly?

I did not fix it. But it does not exist now.

I think this issue appeared after the "MediaWiki 1.46.0-wmf.23 deployment (9 April 2026)", and might have been fixed after the "wmf.24 deployment" (16 April 2026)." I'm not sure. (Needs verification)

hubaishan claimed this task.
Gerges changed the task status from Resolved to Declined.Sun, May 3, 7:01 AM
This comment was removed by Gerges.