Last modified: 2014-10-19 19:11:13 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T67335, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 65335 - MWException in preferences file when selecting Mathjax rendering.
MWException in preferences file when selecting Mathjax rendering.
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Math (Other open bugs)
master
PC Linux
: Unprioritized major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-05-15 06:41 UTC by Felix
Modified: 2014-10-19 19:11 UTC (History)
3 users (show)

See Also:
Web browser: Firefox
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Felix 2014-05-15 06:41:30 UTC
Following directions from Math extension wiki, I have disabled PNG rendering ($wgMathValidModes = array( MW_MATH_SOURCE );). However, this setting in LocalSettings.php leads to a MWException in preferences, if previously have not been set Appearance->Math preferences to "Leave it as Tex" and "Mathjax".
Comment 1 physikerwelt 2014-05-15 07:20:54 UTC
did you set 
/**
 * Option to use MathJax library to do client-side math rendering
 * when JavaScript is available. In supporting browsers this makes nice output
 * that's scalable for zooming, printing, and high-resolution displays.
 *
 * Not guaranteed to be stable at this time.
 */
$wgUseMathJax = true;
The correct name would be $wgMathJax, since $wgUseMathJax violates the naming conventions and makes it difficould to find, given the large amount of config option.
I made several attempts to change that but I never got code review for that. So I resigned from that change.
Comment 2 Felix 2014-05-15 07:23:45 UTC
Yes, I set this option (as advised on the Math extension).
Comment 3 physikerwelt 2014-10-19 19:11:13 UTC
To avoid this problem we have changed the possible rendering modes.
$wgMathValidModes = array( MW_MATH_SOURCE, MW_MATH_MATHJAX );
should do the job.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links