When "Rebuild theme registry on every page." is turned on in theme settings for a sub-theme of mojo the folllowing error is displayed:

Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given in theme_get_registry() (line 248 of /var/www/vhosts/example.com/httpdocs/includes/theme.inc).

This is caused by line 16 in template.php:
drupal_set_message(t('Theme registry is being rebuilt on every page. !link on production sites.', array('!link' => l(t('Turn this off'), 'admin/appearance/settings/mojo#div-mojo-registry'))), 'warning');

Not sure why this line is causing the error but I was able to fix by replacing it with this:
drupal_set_message(t('Theme registry is being rebuilt on every page. Turn this off on production sites.', array('!link' => url('admin/appearance/settings/' . $GLOBALS['theme']))), 'warning');

Comments

dcmouyard’s picture

Status: Active » Fixed

Thanks for the bug report!

It's been fixed in the following commit: http://drupalcode.org/project/mojo.git/commit/4c944af

Status: Fixed » Closed (fixed)

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