Last modified: 2011-03-12 16:36:24 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 T30001, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 28001 - Invalid argument supplied for foreach() in /usr/local/apache/common-local/php-1.17/extensions/Collection/Collection.suggest.php on line 136
Invalid argument supplied for foreach() in /usr/local/apache/common-local/php...
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Collection (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: PediaPress Development Team
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-03-12 10:52 UTC by Domas Mituzas
Modified: 2011-03-12 16:36 UTC (History)
1 user (show)

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


Attachments

Description Domas Mituzas 2011-03-12 10:52:32 UTC
Collection seems to hit an "invalid argument" warning on 1.17:

Mar 12 10:50:26 10.0.2.210 apache2[18010]: PHP Warning:  Invalid argument supplied for foreach() in /usr/local/apache/common-local/php-1.17/extensions/Collection/Collection.suggest.php on line 136
Comment 1 Sam Reed (reedy) 2011-03-12 13:10:22 UTC
		$bans = $_SESSION['wsCollectionSuggestBan'];
		$newbans = array();
		foreach ( $bans as $ban ) {


Looks like they don't check that index in session variable is properly set..
Comment 2 Johannes Beigel 2011-03-12 16:36:24 UTC
Thanks for the pointer. I've fixed it in r83764.

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


Navigation
Links