I upgraded Tao from 1.0 to 3.2 (to support Rubik as an admin theme) and after clearing the cache several times, I'm still get this error on every page:

Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'tao_form_element' was given in theme() (line 656 of [root]/includes/theme.inc).

Effect is all checkboxes have disappeared from the backend.

There doesn't seem to be a tao_form_element... anyone else getting this?


yhahn’s picture

Status: Active » Postponed (maintainer needs more info)

It's been replaced by a preprocess + template combo, as declared in hook_theme of tao...

  // Use a template for form elements
  $items['form_element'] = array(
    'arguments' => array('element' => array(), 'value' => NULL),
    'template' => 'form-item',
    'path' => drupal_get_path('theme', 'tao') .'/templates',

Make sure you don't have any stale code around and clear the theme cache hard using a drush cc all ?

thebuckst0p’s picture

I was clearing the cache with drush cc all, didn't seem to catch... is there a "harder" way to do it? I don't have any custom code using that function.

yhahn’s picture

Hm, you could hit the database directly e.g.

mysql> TRUNCATE cache;