Difference between revisions of "Issue:Error message - undefined Index 100"
From FollowTheScore
(New page: {{Issue |Extension = DPL |Version = 1.4.2 |Description = using <tt>notnamespace</tt> causes php error in line 3128 |Status = answered }} Getting this error 10 times for htt...) |
|||
Line 6: | Line 6: | ||
}} | }} | ||
+ | == Problem == | ||
Getting this error 10 times for http://www.tnlc.com/wiki/index.php?title=Template:catcount : | Getting this error 10 times for http://www.tnlc.com/wiki/index.php?title=Template:catcount : | ||
Notice: Undefined index: 100 in ../wiki/extensions/DynamicPageList2/DynamicPageList2.php on line 3128 | Notice: Undefined index: 100 in ../wiki/extensions/DynamicPageList2/DynamicPageList2.php on line 3128 | ||
Line 22: | Line 23: | ||
—[[User:Eep²|Eep²]] 12:09, 29 September 2007 (CEST) | —[[User:Eep²|Eep²]] 12:09, 29 September 2007 (CEST) | ||
− | + | == Reply == | |
+ | This sounds like you have an error in the namespace setup of your wiki. If you use own namespaces you should assign index pairs to them starting from '100' as is recommended in the MW documentation. I guess the query works when you leave out the "notnamespace=Form"? | ||
:-- [[User:Gero|Gero]] 12:28, 29 September 2007 (CEST) | :-- [[User:Gero|Gero]] 12:28, 29 September 2007 (CEST) |
Revision as of 12:26, 29 September 2007
Description: | using notnamespace causes php error in line 3128 |
Extension / Version: | DPL / 1.4.2 |
Type / Status: | {{{Type}}} / answered |
Problem
Getting this error 10 times for http://www.tnlc.com/wiki/index.php?title=Template:catcount :
Notice: Undefined index: 100 in ../wiki/extensions/DynamicPageList2/DynamicPageList2.php on line 3128
With this query:
{{#dpl: category={{{1}}} |notnamespace=Template |notnamespace=Form |resultsheader=(%PAGES%) |noresultsheader=(0) |format=, }}
—Eep² 12:09, 29 September 2007 (CEST)
Reply
This sounds like you have an error in the namespace setup of your wiki. If you use own namespaces you should assign index pairs to them starting from '100' as is recommended in the MW documentation. I guess the query works when you leave out the "notnamespace=Form"?
- -- Gero 12:28, 29 September 2007 (CEST)