Last modified: 2011-07-30 15:50:29 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T31605, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 29605 - dpl namespace parameter broken in 1.17
dpl namespace parameter broken in 1.17
Status: RESOLVED DUPLICATE of bug 27543
Product: MediaWiki extensions
Classification: Unclassified
DynamicPageList2 (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-06-27 04:17 UTC by Mark Redekop
Modified: 2011-07-30 15:50 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Mark Redekop 2011-06-27 04:17:04 UTC
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
Comment 1 Sam Reed (reedy) 2011-06-27 16:58:47 UTC
Did you update the extension version aswell when you upgraded to 1.17?
Comment 2 Mark Redekop 2011-06-28 04:11:20 UTC
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.
Comment 3 LY Meng 2011-07-29 02:46:02 UTC
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
Comment 4 Gero 2011-07-30 15:50:29 UTC

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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links