Page MenuHomePhabricator

Warning: min(): Array must contain at least one element in ApiQueryTranslatorStats
Closed, ResolvedPublicPRODUCTION ERROR

Description

Spotted in production: Warning: min(): Array must contain at least one element in /srv/mediawiki/php-1.31.0-wmf.5/extensions/ContentTranslation/api/ApiQueryTranslatorStats.php on line 57

Event Timeline

@Petar.petkovic I believe this is coming from your patch. Want to have a look at it?

Change 388033 had a related patch set uploaded (by Petar.petkovic; owner: Petar.petkovic):
[mediawiki/extensions/ContentTranslation@master] Fix PHP warning for min() method

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

Dunno if these two are related or not:

  • Notice: Undefined property: ApiQueryContentTranslation::$user in /srv/mediawiki/php-1.31.0-wmf.6/extensions/ContentTranslation/api/ApiQueryContentTranslation.php on line 120
  • Notice: Undefined variable: translation in /srv/mediawiki/php-1.31.0-wmf.6/extensions/ContentTranslation/api/ApiQueryContentTranslation.php on line 126

Dunno if these two are related or not:

  • Notice: Undefined property: ApiQueryContentTranslation::$user in /srv/mediawiki/php-1.31.0-wmf.6/extensions/ContentTranslation/api/ApiQueryContentTranslation.php on line 120
  • Notice: Undefined variable: translation in /srv/mediawiki/php-1.31.0-wmf.6/extensions/ContentTranslation/api/ApiQueryContentTranslation.php on line 126

Those two "Notices" are related to each other and one problem causes both of them to appear, but aren't related to the warning originally reported in the description of this ticket.
Two of those are introduced in this patch. @santhosh, please take a look at this.

Dunno if these two are related or not:

  • Notice: Undefined property: ApiQueryContentTranslation::$user in /srv/mediawiki/php-1.31.0-wmf.6/extensions/ContentTranslation/api/ApiQueryContentTranslation.php on line 120
  • Notice: Undefined variable: translation in /srv/mediawiki/php-1.31.0-wmf.6/extensions/ContentTranslation/api/ApiQueryContentTranslation.php on line 126

Fixed in https://gerrit.wikimedia.org/r/388388 ApiQueryContentTranslation: Fix php warnings

Change 388033 merged by jenkins-bot:
[mediawiki/extensions/ContentTranslation@master] Fix PHP warning for min() method

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

Change 388460 had a related patch set uploaded (by Chad; owner: Petar.petkovic):
[mediawiki/extensions/ContentTranslation@wmf/1.31.0-wmf.6] Fix PHP warning for min() method

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

Change 388460 merged by jenkins-bot:
[mediawiki/extensions/ContentTranslation@wmf/1.31.0-wmf.6] Fix PHP warning for min() method

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

Fix for min() is live and looks good! Just waiting on the second one to merge

mmodell changed the subtype of this task from "Task" to "Production Error".Aug 28 2019, 11:09 PM
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy