Hi,

this is all on a 'vanilla install of Drupal 7.0'.

when I switch themes (Bartik to Garland .. or back) I get the following:

* Warning: Invalid argument supplied for foreach() in drupal_alter() (line 980 of /usr/www/users/dfnfoo/includes/module.inc).
* Warning: Invalid argument supplied for foreach() in drupal_alter() (line 980 of /usr/www/users/dfnfoo/includes/module.inc).
* Warning: Invalid argument supplied for foreach() in drupal_alter() (line 980 of /usr/www/users/dfnfoo/includes/module.inc).
* Warning: Invalid argument supplied for foreach() in drupal_alter() (line 980 of /usr/www/users/dfnfoo/includes/module.inc).
* Warning: Invalid argument supplied for foreach() in drupal_alter() (line 980 of /usr/www/users/dfnfoo/includes/module.inc).
* Warning: Invalid argument supplied for foreach() in drupal_alter() (line 980 of /usr/www/users/dfnfoo/includes/module.inc).
* Warning: Invalid argument supplied for foreach() in drupal_alter() (line 980 of /usr/www/users/dfnfoo/includes/module.inc).
* Warning: Invalid argument supplied for foreach() in drupal_alter() (line 980 of /usr/www/users/dfnfoo/includes/module.inc).
* Warning: Invalid argument supplied for foreach() in drupal_alter() (line 980 of /usr/www/users/dfnfoo/includes/module.inc).
* 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 249 of /usr/www/users/dfnfoo/includes/theme.inc).
* 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 249 of /usr/www/users/dfnfoo/includes/theme.inc).
* 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 249 of /usr/www/users/dfnfoo/includes/theme.inc).
* 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 249 of /usr/www/users/dfnfoo/includes/theme.inc).
* 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 249 of /usr/www/users/dfnfoo/includes/theme.inc).
* 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 249 of /usr/www/users/dfnfoo/includes/theme.inc).
* 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 249 of /usr/www/users/dfnfoo/includes/theme.inc).
* 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 249 of /usr/www/users/dfnfoo/includes/theme.inc).
* 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 249 of /usr/www/users/dfnfoo/includes/theme.inc).
* 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 249 of /usr/www/users/dfnfoo/includes/theme.inc).
* 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 249 of /usr/www/users/dfnfoo/includes/theme.inc).
* 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 249 of /usr/www/users/dfnfoo/includes/theme.inc).
* Warning: Invalid argument supplied for foreach() in drupal_alter() (line 980 of /usr/www/users/dfnfoo/includes/module.inc).
* Warning: Invalid argument supplied for foreach() in drupal_alter() (line 980 of /usr/www/users/dfnfoo/includes/module.inc).
* Warning: Invalid argument supplied for foreach() in drupal_alter() (line 980 of /usr/www/users/dfnfoo/includes/module.inc).
* 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 249 of /usr/www/users/dfnfoo/includes/theme.inc).
* 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 249 of /usr/www/users/dfnfoo/includes/theme.inc).
* 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 249 of /usr/www/users/dfnfoo/includes/theme.inc).
* 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 249 of /usr/www/users/dfnfoo/includes/theme.inc).
* 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 249 of /usr/www/users/dfnfoo/includes/theme.inc).
* 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 249 of /usr/www/users/dfnfoo/includes/theme.inc).
* 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 249 of /usr/www/users/dfnfoo/includes/theme.inc).
* 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 249 of /usr/www/users/dfnfoo/includes/theme.inc).
* 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 249 of /usr/www/users/dfnfoo/includes/theme.inc).
* 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 249 of /usr/www/users/dfnfoo/includes/theme.inc).
* 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 249 of /usr/www/users/dfnfoo/includes/theme.inc).

Any advice?

Comments

droplet’s picture

Assigned: SandStorm » Unassigned
Status: Active » Postponed (maintainer needs more info)

which php version & os

SandStorm’s picture

Title: When switching themes, or doing work wiith themes... » When switching themes, or doing work with themes...

This is hosted via a fairly large provider called Hetzner: www.hetzner.co.za or www.hetzner.de

... http://www.hetzner.co.za/helpcentre/index.php/articles/content/category/... for specifications

PHP Version 5.2.6-1+lenny9 (http://www.foxconsult.info/ver.php)

fwood’s picture

I am having the same issue. Drupal 7 is the core.

a_khademi’s picture

I am having the same problem. Core version is 7 and PHP is 5.2.12
I also noticed that I cannot install themes directly from my admin-> appearence
Also I noticed in the text format combo box there is not PHP code. Is it usual?
Any help would be really appreciated.
Thanks

Luna Vulpo’s picture

Component: other » theme system

I have same problem. Look at the error information. Eny help?

Serwer Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8g DAV/2 mod_fcgid/2.3.6
PHP 5.2.17 (więcej informacji)
MySQL, MariaDB, or equivalent

Warning: Invalid argument supplied for foreach() w drupal_alter() (linia 980 z   home/esperant/domains/esperanto.pl/public_html/d7/includes/module.inc).
Warning: Invalid argument supplied for foreach() w drupal_alter() (linia 980 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/module.inc).
Warning: Invalid argument supplied for foreach() w drupal_alter() (linia 980 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/module.inc).
Warning: Invalid argument supplied for foreach() w drupal_alter() (linia 980 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/module.inc).
Warning: Invalid argument supplied for foreach() w drupal_alter() (linia 980 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/module.inc).
Warning: Invalid argument supplied for foreach() w drupal_alter() (linia 980 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/module.inc).
Warning: Invalid argument supplied for foreach() w drupal_alter() (linia 980 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/module.inc).
Warning: Invalid argument supplied for foreach() w drupal_alter() (linia 980 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/module.inc).
Warning: Invalid argument supplied for foreach() w drupal_alter() (linia 980 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/module.inc).
Warning: Invalid argument supplied for foreach() w drupal_alter() (linia 980 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/module.inc).
Warning: Invalid argument supplied for foreach() w drupal_alter() (linia 980 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/module.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: Invalid argument supplied for foreach() w drupal_alter() (linia 980 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/module.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: Invalid argument supplied for foreach() w drupal_alter() (linia 980 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/module.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: Invalid argument supplied for foreach() w drupal_alter() (linia 980 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/module.inc).
Warning: Invalid argument supplied for foreach() w drupal_alter() (linia 980 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/module.inc).
Warning: Invalid argument supplied for foreach() w drupal_alter() (linia 980 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/module.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given w theme_get_registry() (linia 249 z /home/esperant/domains/esperanto.pl/public_html/d7/includes/theme.inc).
fwood’s picture

I gave up and went back to 6. Not enough modules for 7 right now for my work anyway

Alastairo’s picture

I'm getting similar faults and have spoken to Hetzner.
Initially this message :
" GD library rotate and desaturate effects 2.0 or higher
The GD Library for PHP is enabled, but was compiled without support for functions used by the rotate and desaturate effects. It was probably compiled using the official GD libraries from http://www.libgd.org instead of the GD library bundled with PHP. You should recompile PHP --with-gd using the bundled GD library. See the PHP manual." came up in the status reports.
Hetzner cannot change only one sites php - so they will wait until there is enough demand.

I am going back to D6 (much against my wishes) and will upgrade later.

dvessel’s picture

Line 980 in the 7.0 release points to the global $base_theme_info. I checked by reverting to that codebase but I can't reproduce on my install.

Could someone try updating to 7.x-dev to see if it persists? There's nothing special going on with $base_theme_info. It's only when list_theme() is called and the themes are collected from the db where I find it hard to troubleshoot.

damban’s picture

I upgraded a project from 6 to 7.8 today

Getting this error when I enable or disable contributed themes:

Warning: Invalid argument supplied for foreach() in drupal_alter() (line 982 of /home/avalanch/TEST/includes/module.inc).
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 /home/avalanch/TEST/includes/theme.inc).

Everett Zufelt’s picture

Title: When switching themes, or doing work with themes... » Errors when switching themes
jtop’s picture

This error still exists for me as well after several installations, has anyone created a resolution?
Warning: Invalid argument supplied for foreach() in drupal_alter() (line 982 )

dcrocks’s picture

Just a question. Do you have a theme in your site, even if not enabled, that specifies a base theme that is not present in your site?

guyiac’s picture

dcrocks, thanks, I was getting this error and you nailed it - I had pixture reloaded enabled and had forgotten to load adaptivetheme.

I love this community!

lemonjules’s picture

I had the same problem with one of my site when I used Cpanel/Quickinstall.
Doing a manual install solved the problem.

Jooblay.net’s picture

Can we close this ticket. :)

Jooblay.net’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Closed hope that is cool with everyone:)