[MediaWiki-l] Second try: PHP Notice: Undefined index: editfont in includes/resourceloader/ResourceLoaderUserCSSPrefsModule.php

Katharina Wolkwitz wolkwitz at fh-swf.de
Tue Nov 25 06:56:37 UTC 2014


Hi again,

getting to me second server-update I'm encountering a new set of error-messages. :-)

This time it's an undefined index: editfont in the file
includes/resourceloader/ResourceLoaderUserCSSPrefsModule.php

grepping for the word editfont through the whole
mediawiki-installation-directory didn't really help. It seems that exept for the
for lines inside of the file above (none of which defines editfont btw.) there's
one possible candidate in
includes/DefaultSettings.php:	'editfont' => 'default',
but I'm not sure whether that should be the definition missing in
ResourceLoaderUserCSSPrefsModule.php...

I'm adding the grep-result (minus the entries in languages/i18n/) to this mail
for anyone who's interested.

I'd be grateful for any hints or tips as to how to solve the error-message.

Kate
-------------- next part --------------
includes/Preferences.php:			$defaultPreferences['editfont'] = array(
includes/Preferences.php:				'label-message' => 'editfont-style',
includes/Preferences.php:					$context->msg( 'editfont-default' )->text() => 'default',
includes/Preferences.php:					$context->msg( 'editfont-monospace' )->text() => 'monospace',
includes/Preferences.php:					$context->msg( 'editfont-sansserif' )->text() => 'sans-serif',
includes/Preferences.php:					$context->msg( 'editfont-serif' )->text() => 'serif',
includes/DefaultSettings.php:	'editfont' => 'default',
includes/resourceloader/ResourceLoaderUserCSSPrefsModule.php:		if ( $options['editfont'] !== 'default' ) {
includes/resourceloader/ResourceLoaderUserCSSPrefsModule.php:			// Double-check that $options['editfont'] consists of safe characters only
includes/resourceloader/ResourceLoaderUserCSSPrefsModule.php:			if ( preg_match( '/^[a-zA-Z0-9_, -]+$/', $options['editfont'] ) ) {
includes/resourceloader/ResourceLoaderUserCSSPrefsModule.php:				$rules[] = "textarea { font-family: {$options['editfont']}; }\n";
logs/_wiki_debug.log:/aleph20wiki/index.php/Spezial:Einstellungen   Exception from line 85 of /opt/lampp/htdocs/aleph20wiki/includes/Preferences.php: Global default '' is invalid for field editfont
logs/_wiki_debug.log:/aleph20wiki/index.php/Spezial:Einstellungen   Exception from line 85 of /opt/lampp/htdocs/aleph20wiki/includes/Preferences.php: Global default '' is invalid for field editfont
logs/_wiki_debug.log:/aleph20wiki/index.php/Spezial:Einstellungen   Exception from line 85 of /opt/lampp/htdocs/aleph20wiki/includes/Preferences.php: Global default '' is invalid for field editfont
logs/_wiki_debug.log:/aleph20wiki/index.php/Spezial:Einstellungen   Exception from line 85 of /opt/lampp/htdocs/aleph20wiki/includes/Preferences.php: Global default '' is invalid for field editfont
logs/_wiki_debug.log:/aleph20wiki/index.php/Spezial:Einstellungen   Exception from line 85 of /opt/lampp/htdocs/aleph20wiki/includes/Preferences.php: Global default '' is invalid for field editfont
logs/_wiki_debug.log:/aleph20wiki/index.php/Spezial:Einstellungen   Exception from line 85 of /opt/lampp/htdocs/aleph20wiki/includes/Preferences.php: Global default '' is invalid for field editfont
maintenance/dictionary/mediawiki.dic:editfont
maintenance/language/messages.inc:	'editfont' => array(
maintenance/language/messages.inc:		'editfont-style',
maintenance/language/messages.inc:		'editfont-default',
maintenance/language/messages.inc:		'editfont-monospace',
maintenance/language/messages.inc:		'editfont-sansserif',
maintenance/language/messages.inc:		'editfont-serif',
maintenance/language/messages.inc:	'editfont' => 'Font style option in Special:Preferences',


More information about the MediaWiki-l mailing list