Download & Extend

call_user_func_array() prob in captcha-6.x-2.x-dev

Project:CAPTCHA
Version:6.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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

#1

Component:Captcha API (captcha)» Code

which version of PHP do you have?

#2

Status:active» fixed

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

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

#6

Status:closed (fixed)» active

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

Status:active» fixed

thanks,
fixed by http://drupal.org/cvs?commit=280492

#8

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.