Page MenuHomePhabricator

Parser: Cannot load any page on Betalabs which had Math function added to it and shows the error PHP fatal error in /data/project/apache/common-local/php-master/extensions/Math/Math.hooks.php line 50: Call to undefined method ParserOptions::getMath()
Closed, ResolvedPublic

Description

Screenshot

I cannot load any of my test pages which had Math function added to it.It is showing an error:
PHP fatal error in /data/project/apache/common-local/php-master/extensions/Math/Math.hooks.php line 50: Call to undefined method ParserOptions::getMath()

For Example:
http://en.wikipedia.beta.wmflabs.org/wiki/23rd_january?veaction=edit
http://en.wikipedia.beta.wmflabs.org/wiki/Jan28thff?veaction=edit


Version: unspecified
Severity: major
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=60486

Attached:

Screen_Shot_2014-01-28_at_2.50.38_PM.png (498×1 px, 83 KB)

Details

Reference
bz60546

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:51 AM
bzimport added a project: Math.
bzimport set Reference to bz60546.
bzimport added a subscriber: Unknown Object (MLST).

added See also.

Math extension was updated recently, which caused errors until Reedy deployed a new texvccheck on beta. (texvccheck will have to go to the apaches in production as well)

https://git.wikimedia.org/commit/mediawiki%2Fextensions%2FMath/6a0af8f3b4ea985c8dca1a1d5fa78e9d3cf1210c

Closing as duplicate of the the math extension deploy issue bug.

  • This bug has been marked as a duplicate of bug 60486 ***

We fixed the support for the Math extension in regular pages by updating texvccheck. After that fix, we began seeing the Parsoid error noted in the bug.

Parsoid is causing the new error.

Right now I am getting a server error when accessing betalabs in general. Can you describe the Parsoid issue?

assigning back to Math extension.

Fatal error on beta labs is

PHP fatal error in /data/project/apache/common-local/php-master/extensions/Math/Math.hooks.php line 50:
Call to undefined method ParserOptions::getMath()

This is caused by https://gerrit.wikimedia.org/r/#/c/108490/ which was meant to fix bug 60234 "parseroptions contain extension specific code".

The method got deprecated in 1.22 via a comment but was not deprecated using wfDeprecated() :( I guess we want to revert the patch.

physik wrote:

ok the problem is that only the core part was merged but not the math extension part

physik wrote:

ok I merged the other part... at least the link above works again now.

physik wrote:

*** Bug 60486 has been marked as a duplicate of this bug. ***