Last modified: 2012-09-04 21:39:16 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 T40856, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 38856 - ConfirmEdit: max(-1) is smaller than min(0)
ConfirmEdit: max(-1) is smaller than min(0)
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
ConfirmEdit (CAPTCHA extension) (Other open bugs)
unspecified
All All
: Unprioritized minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-07-30 18:28 UTC by Sam Reed (reedy)
Modified: 2012-09-04 21:39 UTC (History)
0 users

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


Attachments

Description Sam Reed (reedy) 2012-07-30 18:28:46 UTC
Warning: mt_rand() [<a href='function.mt-rand'>function.mt-rand</a>]: max(-1) is smaller than min(0) in /usr/local/apache/common-local/php-1.20wmf8/extensions/ConfirmEdit/FancyCaptcha.class.php on line 135

Line:
$n = mt_rand( 0, $this->countFiles( $directory ) - 1 );
Comment 1 Brion Vibber 2012-08-01 19:52:50 UTC
This condition will happen if the images directory exists, is a directory, but contains no files. (countFiles() returns 0)

If you're seeing it in production.... it probably means that /mnt/upload6 is not mounted, if I'm reading the config correctly.
Comment 2 Sam Reed (reedy) 2012-09-04 21:39:16 UTC
https://gerrit.wikimedia.org/r/#/c/22039/

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


Navigation
Links