Extension talk:MagicNoNumberedHeadings

From MediaWiki.org
Jump to: navigation, search

[edit] Install Problems

On our Wiki the extension does not work.

The following message is emmitted if

ini_set('display_errors', 1);

will be added to LocalSettings.php:

Zeichen 206.svg
Notice: Use of undefined constant MAG_NONUMBEREDHEADINGS - assumed 'MAG_NONUMBEREDHEADINGS'
in /srv/www/wiki/extensions/MagicNoNumberedHeadings/MagicNoNumberedHeadings.php on line 71
Warning: preg_replace_callback(): Compilation failed: invalid UTF-8 string at offset 8 in /srv/www/wiki/includes/MagicWord.php on line 279
Notice: Undefined index: nonumberedheadings in /srv/www/wiki/languages/Language.php on line 1097
Warning: array_slice(): The first argument should be an array in /srv/www/wiki/languages/Language.php on line 1105
Warning: preg_replace_callback(): Compilation failed: invalid UTF-8 string at offset 8 in /srv/www/wiki/includes/MagicWord.php on line 279
.

We use:

Version:

  • MediaWiki: 1.9.2
  • PHP: 5.2.0 (apache2handler)
  • MySQL: 5.0.26

Extensions

Special Pages
Pdf prints a page as pdf Thomas Hempel


Parser Hooks
CharInsert Allows creation of JavaScript box for inserting non-standard characters Brion Vibber
DynamicPageList2 (version 1.0.4) based on DynamicPageList, featuring many improvements IlyaHaykinson, Amgine,Unendlich, Cyril Dangerville,Algorithmix
PageSecurity (version 1.1.4) Restricts access to pages according to security definitions Fernando Correia


Other
LDAP Authentication Plugin (version 1.1d) LDAP Authentication plugin with support for numerous LDAP authentication methods Ryan Lane
RevManager (version 1.0.0) Allows to set revisions as "approved" and hide newer edits to users not having the "approve" right. (Internal development)
talkright (version 1.0.1) adds a talk permission independant from article edition Marc Noirot


Extension functions
wfNamespacePermissions, fnPageSecurityExtension, wfSpecialPdf, rmSetup, wfDynamicPageList3, wfDynamicPageList2 and setupSpecialChars


Parser extension tags
<security-definition>, <dpl>, <section>, <charinsert> and <pre>


Parser function hooks
approvedver, dpl, int, ns, urlencode, lcfirst, ucfirst, lc, uc, localurl, localurle, fullurl, fullurle, formatnum, grammar, plural, numberofpages, numberofusers, numberofarticles, numberoffiles, numberofadmins, language, padleft, padright, anchorencode, special and defaultsort


Hook name Subscribed by
AlternateEdit alternateEdit
ArticleSave fnPageSecuritySaveHook
ArticleViewHeader rmArticleViewHeader
BeforePageDisplay fnPageSecurityBeforePageDisplayHook
LanguageGetMagic rmAppVer_Magic and wfDynamicPageList3_Magic
MonoBookTemplateToolboxEnd wfSpecialPdfToolbox
PermissionRequired fnPageSecurityPermissionRequiredHook
RevisionDataBefore rmRevisionDataBefore
SkinFooterLinks fnPageSecuritySkinFooterLinksHook
SkinTemplateBuildNavUrlsNav_urlsAfterPermalink wfSpecialPdfNav
userCan fnPageSecurityUserCanHook, userCanTalk and namespacePermissionsCheckNamespace



Solution (works for me): Replace MAG_NONUMBEREDHEADINGS by 'MAG_NONUMBEREDHEADINGS' in the MagicNoNumberedHeadings.php file where the word is not between single quotes.

NONUMBEREDHEADINGS ignores the <nowiki> and the <pre> tags. If written in one of these, the headings aren't numbered.

-I made the change above (added quotes around MAG_NONUMBEREDHEADINGS) and didnt' receive any errors, but the extension didn't work--the TOC heading numbers were still there. I am using MediaWiki version 1.16.4. Did anybody else get this to work with the latest MediaWiki version? Lost Student

Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox