call_user_func_array() prob in captcha-6.x-2.x-dev
PGNetDev - September 24, 2009 - 00:55
| Project: | CAPTCHA |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
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.

#1
which version of PHP do you have?
#2
Should be fixed by http://drupal.org/cvs?commit=266990
thanks for reporting
#3
hi,
> 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!
#4
Line 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.
#5
Automatically closed -- issue fixed for 2 weeks with no activity.
#6
Same 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.
#7
thanks,
fixed by http://drupal.org/cvs?commit=280492
#8
Automatically closed -- issue fixed for 2 weeks with no activity.