i've installed captcha-6.x-2.x-dev in drupal 6.14.
@ .../main/admin/user/captcha, i get
# warning: call_user_func_array() expects parameter 2 to be array, string given in /svr/www/main/sites/all/modules/captcha/captcha.admin.inc on line 20.
# warning: Invalid argument supplied for foreach() in /svr/www/main/includes/form.inc on line 1428.
and the "Default Challenge Type" pulldown menu is empty.
Comments
Comment #1
soxofaan commentedwhich version of PHP do you have?
Comment #2
soxofaan commentedShould be fixed by http://drupal.org/cvs?commit=266990
thanks for reporting
Comment #3
PGNetDev commentedhi,
> which version of PHP do you have?
fyi,
php-cgi -v
PHP 5.3.0 (cgi-fcgi) (built: Sep 22 2009 06:14:28)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies
with Suhosin v0.9.29, Copyright (c) 2007, by SektionEins GmbH
> Should be fixed by http://drupal.org/cvs?commit=266990
updated & confirmed. errors/wanings are gone, and the pulldown menu is populated, as expected.
thanks!
Comment #4
Lite commentedLine 22: $result = call_user_func_array($module .'_captcha', array('list'));
Yes, I was having the exact same problem and fixing that line in the captcha.admin.inc made everything start working perfectly. Thanks for all your hard efforts.
Comment #6
authentictech commentedSame problem on line 456 for captcha-6.x-2.x-dev:
warning: call_user_func_array() expects parameter 2 to be array, string given in /svr/www/main/sites/all/modules/captcha/captcha.admin.inc on line 456.Occurs on admin/user/captcha/captcha/examples screen.
Comment #7
soxofaan commentedthanks,
fixed by http://drupal.org/cvs?commit=280492