Last modified: 2010-05-15 15:56:52 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 T9016, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 7016 - php warnings rendered on page regarding function arguments
php warnings rendered on page regarding function arguments
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.6.x
PC Windows XP
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-08-15 13:13 UTC by TheHYPO
Modified: 2010-05-15 15:56 UTC (History)
0 users

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


Attachments

Description TheHYPO 2006-08-15 13:13:29 UTC
Some articles (without an apparent connection) on an in-development wiki have begun 
rendering the following warnings at the top of the page:

Warning: array_slice(): The first argument should be an array 
in /home/bnlwiki/public_html/wikwik/languages/Language.php on line 858

Warning: Invalid argument supplied for foreach() 
in /home/bnlwiki/public_html/wikwik/includes/MagicWord.php on line 183


The warnings appear at the top of the browser behind the images and buttons of the wiki - 
it is the first text in the rendered html of the pages it appears on.
Comment 1 TheHYPO 2006-08-15 13:43:36 UTC
Thorough investigation seems to indicate the source of this issue is the "switch" 
parser function. I'm assuming this has some sort of issue with mediawiki 1.6.8.
Comment 2 Rob Church 2006-08-15 14:34:54 UTC
Parser functions were more than likely broken with MediaWiki < 1.7.x in their
most recent updates, so roll back in SVN until you find one that works.
Comment 3 TheHYPO 2006-08-15 16:22:24 UTC
Mediawiki 1.6.8 came out  July 8; I've been all the way back to the first parsers that 
introduced 'switch' and it's still having the issue. My hope is still to get php5 
going so I can get to the newest wiki and hopefully this will not be an issue there, 
but right now it's acting somewhat randomly. Depending on the editing of some pages 
(not necessarily the one with the switch), I'm getting the php message. I've taken to 
just commmenting the switch out for now.

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


Navigation
Links