agaskar.com

Jul 31 2007

Yeah, I did this twice: common form API errors.

Error on line 208 of form.inc? … Or maybe something like this (line numbers may vary)?:

    * warning: Illegal offset type in /var/www/development/drupal/includes/form.inc on line 208.
    * warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'Array' was given in /var/www/development/drupal/includes/form.inc on line 219.
    * warning: htmlspecialchars() expects parameter 1 to be string, array given in /var/www/development/drupal/includes/bootstrap.inc on line 588.
You pass a FORM ID (essentially, the name of a callback function that returns a form) to drupal_get_form. NOT a form array. duh.

Comments (View)
Page 1 of 1
blog comments powered by Disqus