Page MenuHomePhabricator

[wmf.6] "Missing MediaInfo tabs" console error
Closed, ResolvedPublic

Description

  1. Go to Special:MediaSearch or Special:Search.
  2. Open the Console and reload the page.

The "Missing MediaInfo tabs" error will be displayed - seems to be triggered by the following:

mw.hook('wikipage.content').add(function($content) {
                   var linkNoticeWidget = new LinkNoticeWidget(), protectionMsgWidget = new ProtectionMsgWidget(), $statements = $content.find('.wbmi-entityview-statementsGroup'), existingProperties = defaultProperties.concat(Object.keys(mediaInfoEntity.statements || {})), deserializer = new StatementListDeserializer(), tabs, existingStatementPanels;
                   try {
                       tabs = infuseTabs($content);
                   } catch (e) {
                       mw.log.error(e.message);
                       return;
                   }

Notes

  • The issue is not present in commons betalabs.
  • The error is not displayed on File pages - but it is displayed on RC, Watchlist, and User, User talk namespaces
  • No user impact
  • I could not find the error on "Special:MediaSearch" dashboard in logstash

Event Timeline

@Etonkovidova I tried to reproduce this on local and on commons and I cannot reproduce it. Can you please reach out so that I can try and evaluate it with you.

@Simonethis - sorry for a delayed response. I re-tested it and the issue looks more impactful than I realized.

The steps (the issue is in production commons wmf.7and betalabs)

  1. In the search box on any page enter a search term(s) that would return no results and hit 'Enter'
  2. Special:MediaSearch Image tab (the default) will correctly display "We didn't find any results" and the error "Missing MediaInfo tabs" will be present in the Console:

Screen Shot 2021-11-08 at 6.23.06 PM.png (1×3 px, 342 KB)

  1. Switch to a different tab, e.g. Audio - the message "We didn't find any results" will not be present

Screen Shot 2021-11-08 at 6.25.03 PM.png (1×2 px, 235 KB)

  1. Refresh the page - "We didn't find any results" will appear and the error "Missing MediaInfo tabs" will be displayed in the Console.

Amazing thank you! I will work on this as soon as I complete the current ticket!

@Etonkovidova I am going to fix this issue now, but I do not think that this and the error you mention at the very top are related to the error message you mentioned at the very top of the ticket. Also I cannot reproduce that error message in the console myself both locally and in beta, even after following your instruction.

Change 737654 had a related patch set uploaded (by Simone Cuomo; author: Simone Cuomo):

[mediawiki/extensions/MediaSearch@master] Ensure media search shows the \"no result found\" banner

https://gerrit.wikimedia.org/r/737654

@SimoneThisDot - I re-checked different browsers and different users, the issue is present only if Gadget-ACDC is enabled.

So, since there is no user impact, the issue is invalid. But since https://gerrit.wikimedia.org/r/737654 is associated with this task, I'll wait for the patch to be deployed to production and then close the task.

Change 737654 merged by jenkins-bot:

[mediawiki/extensions/MediaSearch@master] Ensure media search shows the \"no result found\" banner

https://gerrit.wikimedia.org/r/737654

Checked on commons wmf.9 - the error is not present anymore.