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
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

soxofaan - September 24, 2009 - 07:18
Component:Captcha API (captcha)» Code

which version of PHP do you have?

#2

soxofaan - September 24, 2009 - 07:33
Status:active» fixed

Should be fixed by http://drupal.org/cvs?commit=266990

thanks for reporting

#3

PGNetDev - September 25, 2009 - 01:35

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

Lite - October 4, 2009 - 02:23

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

System Message - October 18, 2009 - 02:30
Status:fixed» closed

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

#6

authentictech - October 27, 2009 - 16:08
Status:closed» 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

soxofaan - October 27, 2009 - 16:12
Status:active» fixed

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

#8

System Message - November 10, 2009 - 16:20
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.