I enable the theme and went to configure. But when I save the configuration and the color directory etc are created in files. The site still looks a if there is no styling.

So I went back to config and hit restore default and go this:

warning: Invalid argument supplied for foreach() in /var/www/html/drupal/sites/www.cacafoundation.org/themes/ad_blueprint/theme-settings.php on line 53.

Comments

mattyoung’s picture

function _ad_blueprint_build_css() {
  
  // grab the current theme settings
  $theme_settings = variable_get('theme_ad_blueprint_settings', '');
  
  // build an array of only the theme related settings
  $setting = array();
  foreach ($theme_settings as $key => $value) {
...

Here is the problem: variable_get('theme_ad_blueprint_settings', '') returns '' if theme_ad_blueprint_settings' is not set, which become error later on in foreach().

It should be this:

$theme_settings = variable_get('theme_ad_blueprint_settings', array());

But in any case, I cannot get the theme to work. It looks as if stylesheet is not there: the side look totally unstyled.

BTW, I'm doing this on D6.9

mattyoung’s picture

The ad_blueprint-fluid theme works fine. Just the regular ad_blueprint does not work.

Alan Cooney’s picture

Assigned: Unassigned » Alan Cooney
Category: bug » support
Status: Active » Fixed

Please use version 2 of the theme, it is enabled in this version.

Alan

Status: Fixed » Closed (fixed)

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