I have installed this theme and folowed tutorial but I get errors in:
:

* warning: Invalid argument supplied for foreach() in /home/mysite/html/includes/form.inc on line 1205.
* warning: Invalid argument supplied for foreach() in /home/mysite/html/includes/form.inc on line 1428.

Using 6.14

Comments

my-family’s picture

I have similar problem: the same warning, but the line 1423
In addition, there is not possible to make any custom settings of the theme.

Thanks in advance for help... (using with D 6.14 as well)

timhobert’s picture

I just received this same warning after installing the uc_option_image module (for Ubercart). I haven't found a solution yet.

warning: Invalid argument supplied for foreach() in ../includes/form.inc on line 1205.
marcrobinsone’s picture

same here.

Are there any quick work-arounds?

marcrobinsone’s picture

Surprisingly, deleting this chunk of code from theme-settings.php (line 159) solves the problem:

  $form['typography_options']['cufon_font_replacement']['cufon_font_face'] = array(
    '#type'          => 'select',
    '#title'         => t('Cufon Font Face'),
    '#default_value' => $settings['cufon_font_face'],
    '#options'       => $cufon_files,
    '#suffix'        => $cufon_font_face_suffix,
  );

Not sure whether cufon works with this theme anyway...

marcrobinsone’s picture

Now I see the problem clearly:

If you don't extract the cufon and font source files, you're sure to get errors.

Seesh, I just spent hours trying to debug all the .php files realizing that the theme requires cufon for it to work error-free.

I wish that requirement could have been mentioned in one of the readme files (or the release notes)...