Issue:Upgraded to 1.11 Notice: Undefined variable
Description: | Notice: Undefined variable: |
Extension / Version: | DPL / 1.4.5 |
Type / Status: | Bug / open |
Problem
I've upgraded to 1.11, and started getting this error message
Notice: Undefined variable: result in /home/wikistoc/public_html/wiki/includes/Title.php on line 1112
--Rovo 23:12, 30 September 2007 (CEST)
Answer
We need more information. What is your DPL query? Can you enable the full error messages and give the full stack trace?
--Gero 23:52, 30 September 2007 (CEST)
Reply
This is my query
<DPL> resultsheader= === A === namespace = Terms shownamespace = false titlematch = A% </DPL>
I did this for each letter through the alphabet. The Terms namespace is set to 100. I'm not sure how to enable the full error messages or give a full stack trace, but I will try to figure it out. Thank you.
--Rovo 03:11, 1 October 2007 (CEST)
- I cannot figure out how to turn on the full error message. --24.250.201.191 14:37, 1 October 2007 (CEST)
Reply (2)
- You should put a '\n' behind the resultsheader, otherwise you will not get a heading.
- Does the error depend on the namespace?
- Does it work for one single letter? How do you do the "loop" for each letter? (If here is another extension involved, that could be the reason, too)
- For full error information you must set $wgShowExceptionDetails = true; in the LocalSettings.php
Reply (3)
- I'm not sure where to put the '\n' behind the resultsheader? At the very end, or just at the end of the word header, instead of an = ?
- I've removed the namespace and shownamespace from the query, so it just looks for titlematch = A%
- I am testing it on a page for a single letter only, A . It used to be set for each letter, just repeating the query for each.
- I set the full error information, after turning off all other installed extensions, and only received the error,
Parse error: parse error, unexpected T_REQUIRE_ONCE in /home/wikistoc/public_html/wiki/LocalSettings.php on line 161
I should add, line 161 is where the require call to DynamicPageList.php is.
--Rovo 19:09, 1 October 2007 (CEST)
I have tried a streamlined query and still the same error,
<DPL> titlematch = A% </DPL>
--Rovo 04:47, 2 October 2007 (CEST)
Reply (4)
So we are coming closer.
- the '\n' should be at the very end of the line where you define your resultsheader. Otherwise the first line of your output will not start in a new line and the wiki parser will not recognize the "== ... ==" pattern as a chapter headline.
- I suspect that you have a syntax error in your LocalSettings (maybe you forgot a semicolon or a bracket in some line above 161.
- The fact that the most primitive DPL query ("titlematch=A%") leads to an error indicates that there must be a more fundamental problem with your wiki (outside DPL).
You should:
- comment out the requireOnce for DPL and check if your wiki runs stably.
- make sure that you have the latest DPL revision. You only need the three files in subdirectory DynamicPageList.
- uncomment the DPL requireOnce and check that pages which do NOT use DPL behave normal.
- try a DPL statement with a wrong parameter, eg. "dummy=nonsense". You should get an error message from DPL. The trick with this that you only touch 3% of the whole DPL source code if there is an error in the parameters.
- then you can try your query again and see what happens.
Then you should leave a message here again. (Is your wiki online available?)
- Gero 16:50, 2 October 2007 (CEST)