Extension talk:MagicNoNumberedHeadings
From MediaWiki.org
[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:
We use:
Version:
- MediaWiki: 1.9.2
- PHP: 5.2.0 (apache2handler)
- MySQL: 5.0.26
Extensions
| Special Pages | ||
|---|---|---|
| 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