I am attempting to install cldr. In previous installations, I have not had any issues with this extension and is currently live at wiki.seg.org. When working on updating the Mediawiki software from 1.23.2 to 1.26.2, after installing several other extensions, I get this message in the command prompt when attempting to update the database after installing cldr.
PHP Notice: Use of undefined constant MW_MATH_MATHML - assumed 'MW_MATH_MATHML' in /var/www/html/mediawiki/LocalSettings.php on line 166 PHP Fatal error: Uncaught exception 'Exception' with message '/var/www/html/mediawiki/extensions/cldr/extension.json does not exist!' in /var/www/html/mediawiki/includes/registration/ExtensionRegistry.php:106 Stack trace: #0 /var/www/html/mediawiki/includes/GlobalFunctions.php(181): ExtensionRegistry->queue('/var/www/html/m...') #1 /var/www/html/mediawiki/LocalSettings.php(202): wfLoadExtension('cldr') #2 /var/www/html/mediawiki/maintenance/doMaintenance.php(83): require('/var/www/html/m...') #3 /var/www/html/mediawiki/maintenance/update.php(214): require_once('/var/www/html/m...') #4 {main} thrown in /var/www/html/mediawiki/includes/registration/ExtensionRegistry.php on line 106
I have enabled the Math extension and set MathML as the rendering option. This is how it appears in LocalSettings.php:
require_once "$IP/extensions/Math/Math.php"; // Set MathML as default rendering option; $wgDefaultUserOptions['math'] = MW_MATH_MATHML; $wgMathFullRestbaseURL= 'https://api.formulasearchengine.com/';
Can someone please provide guidance in troubleshooting this issue? Thank you.
Andrew Geary ageary@seg.org
Andrew Geary
SEG Publications outreach editor
Society of Exploration Geophysicists (SEG)
8801 South Yale, Suite 500 / Tulsa, OK 74137 USA
504-407-1303
ageary@seg.org
www.seg.org
As an update, I was able to address this issue by changing the line added to LocalSettings.php. Instead of
wfLoadExtension( 'cldr' );
I used:
require_once "$IP/extensions/cldr/cldr.php";
I am still using the most recent version of cldr (1.26). I do not know if this is only an issue with my wiki or a bug, which is why I did not change the directions on the Mediawiki site.
Sincerely, Andrew
Andrew Geary SEG Publications outreach editor Society of Exploration Geophysicists (SEG) 8801 South Yale, Suite 500 / Tulsa, OK 74137 USA 504-407-1303 ageary@seg.org www.seg.org
-----Original Message----- From: Andrew Geary Sent: Thursday, February 25, 2016 2:18 PM To: mediawiki-l@lists.wikimedia.org Subject: cldr not installing properly
I am attempting to install cldr. In previous installations, I have not had any issues with this extension and is currently live at wiki.seg.org. When working on updating the Mediawiki software from 1.23.2 to 1.26.2, after installing several other extensions, I get this message in the command prompt when attempting to update the database after installing cldr.
PHP Notice: Use of undefined constant MW_MATH_MATHML - assumed 'MW_MATH_MATHML' in /var/www/html/mediawiki/LocalSettings.php on line 166 PHP Fatal error: Uncaught exception 'Exception' with message '/var/www/html/mediawiki/extensions/cldr/extension.json does not exist!' in /var/www/html/mediawiki/includes/registration/ExtensionRegistry.php:106 Stack trace: #0 /var/www/html/mediawiki/includes/GlobalFunctions.php(181): ExtensionRegistry->queue('/var/www/html/m...') #1 /var/www/html/mediawiki/LocalSettings.php(202): wfLoadExtension('cldr') #2 /var/www/html/mediawiki/maintenance/doMaintenance.php(83): require('/var/www/html/m...') #3 /var/www/html/mediawiki/maintenance/update.php(214): require_once('/var/www/html/m...') #4 {main} thrown in /var/www/html/mediawiki/includes/registration/ExtensionRegistry.php on line 106
I have enabled the Math extension and set MathML as the rendering option. This is how it appears in LocalSettings.php:
require_once "$IP/extensions/Math/Math.php"; // Set MathML as default rendering option; $wgDefaultUserOptions['math'] = MW_MATH_MATHML; $wgMathFullRestbaseURL= 'https://api.formulasearchengine.com/';
Can someone please provide guidance in troubleshooting this issue? Thank you.
Andrew Geary ageary@seg.org
Andrew Geary
SEG Publications outreach editor
Society of Exploration Geophysicists (SEG)
8801 South Yale, Suite 500 / Tulsa, OK 74137 USA
504-407-1303
ageary@seg.org
www.seg.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
Although a bit late (I'm still crunshing my unread mails)
In the README of the REL1_26 branch (see at github https://github.com/wikimedia/mediawiki-extensions-cldr/tree/REL1_26 )
is clearly stated that you need:
== Installation == Include it in LocalSettings.php: include("$IP/extensions/cldr/cldr.php");
Seems that the documentation at mediawiki.org is not up to date. The reason for not using wfLoadExtension is simply that the extension is not updated for the new extension registration system.
Regards,
Dennis Roczek
Am 09.03.2016 um 17:57 schrieb Andrew Geary:
As an update, I was able to address this issue by changing the line ad
ded to LocalSettings.php. Instead of
wfLoadExtension( 'cldr' );
I used:
require_once "$IP/extensions/cldr/cldr.php";
I am still using the most recent version of cldr (1.26). I do not know
if this is only an issue with my wiki or a bug, which is why I did not change the directions on the Mediawiki site.
Sincerely, Andrew
Andrew Geary SEG Publications outreach editor Society of Exploration Geophysicists (SEG) 8801 South Yale, Suite 500 / Tulsa, OK 74137 USA 504-407-1303 ageary@seg.org www.seg.org
-----Original Message----- From: Andrew Geary Sent: Thursday, February 25, 2016 2:18 PM To: mediawiki-l@lists.wikimedia.org Subject: cldr not installing properly
I am attempting to install cldr. In previous installations, I have not
had any issues with this extension and is currently live at wiki.seg.or g. When working on updating the Mediawiki software from 1.23.2 to 1.26.2 , after installing several other extensions, I get this message in the c ommand prompt when attempting to update the database after installing cl dr.
PHP Notice: Use of undefined constant MW_MATH_MATHML - assumed 'MW_MA
TH_MATHML' in /var/www/html/mediawiki/LocalSettings.php on line 166 PHP Fatal error: Uncaught exception 'Exception' with message '/var/www/html /mediawiki/extensions/cldr/extension.json does not exist!' in /var/www/h tml/mediawiki/includes/registration/ExtensionRegistry.php:106
Stack trace: #0 /var/www/html/mediawiki/includes/GlobalFunctions.php(181): Extensio
nRegistry->queue('/var/www/html/m...')
#1 /var/www/html/mediawiki/LocalSettings.php(202): wfLoadExtension('cl
dr')
#2 /var/www/html/mediawiki/maintenance/doMaintenance.php(83): require(
'/var/www/html/m...')
#3 /var/www/html/mediawiki/maintenance/update.php(214): require_once('
/var/www/html/m...')
#4 {main} thrown in /var/www/html/mediawiki/includes/registration/ExtensionReg
istry.php on line 106
I have enabled the Math extension and set MathML as the rendering opti
on. This is how it appears in LocalSettings.php:
require_once "$IP/extensions/Math/Math.php"; // Set MathML as default
rendering option; $wgDefaultUserOptions['math'] = MW_MATH_MATHML; $wgMat hFullRestbaseURL= 'https://api.formulasearchengine.com/';
Can someone please provide guidance in troubleshooting this issue? Tha
nk you.
Andrew Geary ageary@seg.org
Andrew Geary
SEG Publications outreach editor
Society of Exploration Geophysicists (SEG)
8801 South Yale, Suite 500 / Tulsa, OK 74137 USA
504-407-1303
ageary@seg.org
www.seg.org
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org