After enabling the theme and set as default, I've following fatal error:

[20-Sep-2011 13:45:51] PHP Warning: Invalid argument supplied for foreach() in /Users/kenorb/Sites/londonpolishcleaning/trunk/includes/module.inc on line 982
[20-Sep-2011 13:45:51] PHP Fatal error: Call to undefined function load_subtheme_media_queries() in /Users/kenorb/Sites/londonpolishcleaning/trunk/sites/all/themes/contrib/sky/template.php on line 17

And the whole site is down.
HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.

Comments

Jeff Burnz’s picture

Category: bug » support

Did you follow the instructions and install the base theme: http://drupal.org/project/adaptivetheme

Jeff Burnz’s picture

Priority: Critical » Normal
Status: Active » Closed (works as designed)
scrofula’s picture

I'm in the same boat. Was working too fast and blew up my site. How do you recover from this after it happens? Simply downloading and placing the base theme in the right spot doesn't un-fubar the site.

Jeff Burnz’s picture

If you can get to the Admin section clear the sites cache, otherwise go into the database and clear (truncate) all the cache tables, as long as the base theme is there things should come back.

Jeff Burnz’s picture

There is another way to fix this - add the following code to the top of the template.php file, so its the first thing after the <?php tag, upload to the server and reload any page a couple of times, this will flush the registry and rebuild info data, very useful when upgrading etc:

// Rebuild .info data.
system_rebuild_theme_data();
// Rebuild theme registry.
drupal_theme_rebuild();
sypou’s picture

I faced this problem and I just removed the new them from the theme folder, then I obtained a page without any css and any formatting at all, then I accessed to the admin and choose another theme.

Hope this can help.

sypou’s picture

Forget to mention that it is most of the time dealing with subthemes issues for instance theme sky is a sub-theme of Adaptivetheme so you have to install Adaptivetheme first before installing the new theme (here Sky theme)...

Jeff Burnz’s picture

For Drupal 8 some of us have made a request that Drupal should check for base themes and not allow you to install a subtheme that actually requires a basetheme to work, which would save us all a lot of headaches, right now there is no real way of doing this.

sypou’s picture

I totally agree with that... The problem is that at first we can install the (sub)theme and after that comes the errors. We can't even (really) manage it. Once I faced the same issue when installing the theme libra which is a subtheme of omega. I already had the omega theme but still, I got the Call to undefined function error...

OptimusPrime23’s picture

This error usually occurs for a subtheme ex:Pixture Reloaded,
Corolla etc - you must first download and install the Adaptivetheme before installing the sub theme.

OptimusPrime23’s picture

Issue summary: View changes

added text