Difference between revisions of "Issue:Call to a member function getPrefixedDBkey() on a non-object"

From FollowTheScore
Jump to: navigation, search
(Occurring in MW 1.13.0: 1.12.0 fine)
(Even more information to the problem)
Line 23: Line 23:
  
 
I realised that Line 972 was meant to threat some data related to heading and I tried removing the heading (<nowiki>=Heading Example=</nowiki>) from my list separators and it worked. So basically it's a problem with heading generation -EmuWikiAdmin1 - July 20th 2008
 
I realised that Line 972 was meant to threat some data related to heading and I tried removing the heading (<nowiki>=Heading Example=</nowiki>) from my list separators and it worked. So basically it's a problem with heading generation -EmuWikiAdmin1 - July 20th 2008
 +
 +
Yes, this seems to be the case. The first example triggers the bug, the second does not. (Mwiki 1.12, DPL 1.7.6)
 +
 +
<pre>
 +
Triggers bug:
 +
{{#dpl:
 +
| category=test
 +
| include={template1}:name,#Chaptername
 +
| table=class="wikitable sortable", X,Y,Z
 +
}}
 +
 +
OK:
 +
{{#dpl:
 +
| category=test
 +
| include={template1}:name
 +
| table=class="wikitable sortable", X,Y,Z
 +
}}
 +
</pre>
 +
[[User:Ianb1469|Ianb1469]] 00:33, 27 August 2008 (CEST)
  
 
== Occurring in MW 1.13.0 ==
 
== Occurring in MW 1.13.0 ==

Revision as of 00:33, 27 August 2008

Description: Call to a member function getPrefixedDBkey() on a non-object
Extension / Version: DPL   /   1.7.3
Type / Status: Bug   /   open

Problem

From file version 20080505195057!Semeb_extensions.zip onwards, using mediawiki 1.12.0 I get this error when accessing any page that uses DPL:

Fatal error: Call to a member function getPrefixedDBkey() on a non-object in /var/www/mediawiki-1.12.0/includes/Preprocessor_DOM.php on line 972

Previous versions are OK.


Additional information to the problem

Hi, I also have the same problem but I realised the error only appears when {{#dpl:}} syntax is used instead of <DPL></DPL>, which works correctly. -EmuWikiAdmin1 - July 19th 2008

Even more information to the problem

I realised that Line 972 was meant to threat some data related to heading and I tried removing the heading (=Heading Example=) from my list separators and it worked. So basically it's a problem with heading generation -EmuWikiAdmin1 - July 20th 2008

Yes, this seems to be the case. The first example triggers the bug, the second does not. (Mwiki 1.12, DPL 1.7.6)

Triggers bug:
{{#dpl:
| category=test
| include={template1}:name,#Chaptername
| table=class="wikitable sortable", X,Y,Z
}}

OK:
{{#dpl:
| category=test
| include={template1}:name
| table=class="wikitable sortable", X,Y,Z
}}

Ianb1469 00:33, 27 August 2008 (CEST)

Occurring in MW 1.13.0

I just started getting this problem after a MediaWiki 1.13.0 upgrade. Here is the DPL query in question:

{{#dpl:
|category = My category name
|format = ,\n=[[%PAGE%|%TITLE%]]=\n\n,,
|includepage = %0
|includetrim = true
|noresultsheader = No entries
|ordercollation = latin1_general_ci
|reset = templates
}}

All articles in the category are in the Template namespace.

The error is:

Fatal error: Call to a member function getPrefixedDBkey() on a non-object in ...\includes\parser\Preprocessor_DOM.php on line 994

The line is:

$titleText = $this->title->getPrefixedDBkey();

in function expand(). The above example worked fine in 1.12.0.

--Maiden taiwan 16:10, 20 August 2008 (CEST)

Reply