Page MenuHomePhabricator

dpl namespace parameter broken in 1.17
Closed, ResolvedPublic

Description

Author: redekopmark

Description:
when using {{#dpl: with the namespace option it generates the proper output in the page but adds the following warnings to the top of the page

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/aiowiki/aiowiki/w/includes/parser/ParserOptions.php on line 274
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/aiowiki/aiowiki/w/includes/parser/ParserOptions.php on line 289
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/aiowiki/aiowiki/w/includes/parser/ParserOptions.php on line 292
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/aiowiki/aiowiki/w/includes/parser/ParserOptions.php on line 297
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/aiowiki/aiowiki/w/includes/parser/ParserOptions.php on line 302
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/aiowiki/aiowiki/w/includes/parser/ParserOptions.php on line 317

this is only an issue with mw 1.17.0 1.16.5 is fine


Version: unspecified
Severity: normal

Details

Reference
bz29605

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 21 2014, 11:35 PM
bzimport set Reference to bz29605.
bzimport added a subscriber: Unknown Object (MLST).

Did you update the extension version aswell when you upgraded to 1.17?

redekopmark wrote:

yes I did

first I tried it with the 1.16 version, that didn't work so I upgraded to the 1.17 version of the extension, that also didn't work so I upgraded to the trunk version of the extension that also gave the warnings. Then since I'm an acquaintance of the developer I asked him and he sent me a different version to try, but it also gave the warnings.

ly.meng.work wrote:

Same issue here with 1.17 and the trunk version for this extension, when trying to grab parameters from templates (no matter the page namespace)

{{#dpl:|title=Main|include={TestTemplate}:desc}}

Also get these errors related to a new function added to ParserOptions.php in 1.17

Warning: in_array() expects parameter 2 to be array, boolean given in /home/swiki/swiki/w/includes/parser/ParserOptions.php on line 274
Warning: in_array() expects parameter 2 to be array, boolean given in /home/swiki/swiki/w/includes/parser/ParserOptions.php on line 289
Warning: in_array() expects parameter 2 to be array, boolean given in /home/swiki/swiki/w/includes/parser/ParserOptions.php on line 292
Warning: in_array() expects parameter 2 to be array, boolean given in /home/swiki/swiki/w/includes/parser/ParserOptions.php on line 297
Warning: in_array() expects parameter 2 to be array, boolean given in /home/swiki/swiki/w/includes/parser/ParserOptions.php on line 302
Warning: in_array() expects parameter 2 to be array, boolean given in /home/swiki/swiki/w/includes/parser/ParserOptions.php on line 317

gero.scholz wrote:

*** This bug has been marked as a duplicate of bug 27543 ***