Page MenuHomePhabricator

Call to getIsPreview() on a non-object in Graph\Singleton
Closed, ResolvedPublic

Description

Spotted in production:

Call to a member function getIsPreview() on a non-object (NULL)

Stack trace:

[
  {
    "file": "/srv/mediawiki/php-1.26wmf17/includes/Hooks.php",
    "line": 204,
    "function": "onParserAfterParse",
    "class": "Graph\\Singleton",
    "type": "::",
    "args": [
      "Parser"
    ]
  },
  {
    "file": "/srv/mediawiki/php-1.26wmf17/extensions/Math/MathTexvc.php",
    "line": 397,
    "function": "run",
    "class": "Hooks",
    "type": "::",
    "args": [
      "string",
      "array"
    ]
  },
  {
    "file": "/srv/mediawiki/php-1.26wmf17/extensions/Math/SpecialMathShowImage.php",
    "line": 96,
    "function": "getPng",
    "class": "MathTexvc",
    "type": "->",
    "args": []
  },
  {
    "file": "/srv/mediawiki/php-1.26wmf17/includes/specialpage/SpecialPage.php",
    "line": 384,
    "function": "execute",
    "class": "SpecialMathShowImage",
    "type": "->",
    "args": [
      "NULL"
    ]
  },
  {
    "file": "/srv/mediawiki/php-1.26wmf17/includes/specialpage/SpecialPageFactory.php",
    "line": 553,
    "function": "run",
    "class": "SpecialPage",
    "type": "->",
    "args": [
      "NULL"
    ]
  },
  {
    "file": "/srv/mediawiki/php-1.26wmf17/includes/MediaWiki.php",
    "line": 249,
    "function": "executePath",
    "class": "SpecialPageFactory",
    "type": "::",
    "args": [
      "Title",
      "RequestContext"
    ]
  },
  {
    "file": "/srv/mediawiki/php-1.26wmf17/includes/MediaWiki.php",
    "line": 677,
    "function": "performRequest",
    "class": "MediaWiki",
    "type": "->",
    "args": []
  },
  {
    "file": "/srv/mediawiki/php-1.26wmf17/includes/MediaWiki.php",
    "line": 474,
    "function": "main",
    "class": "MediaWiki",
    "type": "->",
    "args": []
  },
  {
    "file": "/srv/mediawiki/php-1.26wmf17/index.php",
    "line": 41,
    "function": "run",
    "class": "MediaWiki",
    "type": "->",
    "args": []
  },
  {
    "file": "/srv/mediawiki/w/index.php",
    "line": 3,
    "function": "include",
    "args": [
      "string"
    ]
  }
]

Event Timeline

demon created this task.Aug 13 2015, 6:42 PM
demon raised the priority of this task from to Needs Triage.
demon updated the task description. (Show Details)
demon added a subscriber: demon.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 13 2015, 6:42 PM
demon triaged this task as Normal priority.Aug 13 2015, 6:42 PM
demon added a comment.Aug 13 2015, 6:45 PM

Ah, already fixed in master with rEGRA10145420ee8a28e6e516f36c4d51198d8f16fd4c. Should probably be backported to prod branches.

demon closed this task as Resolved.Aug 13 2015, 7:36 PM
demon claimed this task.