Page MenuHomePhabricator

Add-Link Suggests Irrelevant Pages with No Links to Add due to differences in parser
Open, HighPublicBUG REPORT

Description

Steps to reproduce the issue (include links if applicable):

Use the Add Link feature on the Italian Wikipedia. Roughly every 5 or 6 suggested pages, a porn actress's article is recommended, but there are no actual links to add once you open the page.

What happens?
Very often, the system prompts you to add links to articles about porn actresses, but when you open the page, there are no missing links to add. This has happened to me almost exclusively with this type of article. (I've only tried on the Italian Wikipedia)

What should have happened instead?
Only pages with actual missing links should be suggested. Pages that don't require linking should not appear in the suggestions.

Software version (from Special:Version; skip for WMF-hosted wikis like Wikipedia):
MediaWiki 1.45.0-wmf.4 (146aca8)
23:57, 2 June 2025
PHP 8.1.32 (fpm-fcgi)
ICU 67.1
MariaDB 10.6.22-MariaDB-log
wikidiff2 1.14.1
Pygments 2.17.2
LilyPond 2.22.0
OpenSearch 1.3.20
LuaSandbox 4.1.2
Lua 5.1.5

Other information (browser name/version, screenshots, etc.):
Vivaldi 7.4.3684.46 (Stable channel) (64-bit)
Revision: 4bd9d6d2bea73e7f5c8c72c0ce81a8f3613ec7cb
OS: Windows 11 Version 24H2 (Build 26100.4061)
JavaScript: V8 13.6.233.15
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36

Screenshot 2025-06-09 140933.png (1×2 px, 411 KB)

Screenshot 2025-06-09 141524.png (917×2 px, 416 KB)

Screenshot 2025-06-09 141717.png (920×2 px, 351 KB)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Thank you @HaukweKwor.

I tested on several article types, and I get links on all articles types, except for porn actresses ("Suggestions are no longer available on this article.") Other wikis aren't concerned.

We are investigating the case.

Thank you for your interest! This problem is still occurring, so as far as I'm concerned, it wasn't a fluke; it was happening yesterday and it's still happening today.

image.png (995×2 px, 387 KB)

(Another example that happened today)

We don't have a fix yet, but we at least have a working theory as to the underlying issue. Essentially these particular articles have certain wikitext (a bulleted list and italic text inside) that triggers an issue.

And because no one is actually able to accept or reject the suggestions, it seems like a lot of these articles are being suggested because they aren't ever removed from the Suggested Edits queue.

https://api.wikimedia.org/service/linkrecommendation/v1/linkrecommendations/wikipedia/it/Alana_Evans?threshold=0.5&max_recommendations=3 shows suggestions, but the actual article displays "No suggestions are no longer available":

Screenshot 2025-06-11 at 4.33.27 PM.png (1×2 px, 895 KB)

All article suggestions are in the template.
The Console errors, e.g.:

AddLinkArticleTarget.js:293 Failed to locate "Desperate Housewives" (occurrences seen: 0) in document.
Error: Unable to find any expected phrase in document.
    at RecommendedLinkToolbarDialog.getAnnotationViewAtIndex (RecommendedLinkToolbarDialog.js:471:4)
    at RecommendedLinkToolbarDialogDesktop.showFirstRecommendation (RecommendedLinkToolbarDialogDesktop.js:157:25)
    at RecommendedLinkToolbarDialog.afterSetupProcess (RecommendedLinkToolbarDialog.js:134:7)
    at RecommendedLinkToolbarDialogDesktop.afterSetupProcess (RecommendedLinkToolbarDialogDesktop.js:44:72)
    at RecommendedLinkToolbarDialogDesktop.<anonymous> (RecommendedLinkToolbarDialog.js:95:9)
KStoller-WMF moved this task from Inbox to Up Next (estimated tasks) on the Growth-Team board.
Michael renamed this task from Add-Link Suggests Irrelevant Porn Actress Pages with No Links to Add to Add-Link Suggests Irrelevant Pages with No Links to Add.Jun 23 2025, 4:24 PM
Michael renamed this task from Add-Link Suggests Irrelevant Pages with No Links to Add to Add-Link Suggests Irrelevant Pages with No Links to Add due to differences in parser.

Hello @HaukweKwor,

Thank you for creating this task. Unfortunately, we did not yet manage to figure out what is causing this issue, but I can understand this to be frustrating. I'm wondering, since all of the instances are happening in the Filmografia section, would you be willing to exclude Add Link suggestions in that section, at least temporarily?

If so, any it.wikipedia administrator can make the change via CommunityConfiguration. On https://it.wikipedia.org/wiki/Special:CommunityConfiguration/GrowthSuggestedEdits, one needs to scroll to List of excluded sections from the Add link task and add the Filmografia section. Note that for technical reasons, this change does not take effect immediately (T313642). If you let me know once the configuration change, I can speed that process up, so that the broken articles are excluded quickly.

Let me know what you think about this!

Best regards,
Martin Urbanec

Thanks Martin, I'll inform the it wikipedia administrators.

Thanks Martin, I'll inform the it wikipedia administrators.

Thank you for the response. If this conversation is public, I would appreciate if you could post a link here. If not, would you mind letting us know if the configuration gets updated?

Michael subscribed.

Possible ways to move forward:

  • remove task suggestions from queue via frontend api (problem: abuse vector)
  • fix/update parser from hell to not generate these suggestions (problem: work in a service that is hopefully replaced by another team soon (tm))
  • show the suggestions to the user (problem: text in italics are often title and should not have links)

Thanks Martin, I'll inform the it wikipedia administrators.

Thank you for the response. If this conversation is public, I would appreciate if you could post a link here. If not, would you mind letting us know if the configuration gets updated?

Last week I asked on the itWIki telegram group, but now I made a public post that you can find here: https://it.wikipedia.org/wiki/Wikipedia:Richieste_agli_amministratori/Richieste_correnti#Problemi_con_il_bot_Add-Link_(T396346)

Hope this helps!