Invalid Argument Supplied for each

venusrising - September 23, 2009 - 10:34
Project:Alldrupalthemes.com Basetheme
Version:6.x-2.1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

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

#1

my-family - October 15, 2009 - 19:50

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)

#2

timhobert - October 15, 2009 - 21:48

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.

#3

marcrobinsone - October 24, 2009 - 06:18

same here.

Are there any quick work-arounds?

#4

marcrobinsone - October 24, 2009 - 12:25

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...

#5

marcrobinsone - October 24, 2009 - 12:33

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)...

 
 

Drupal is a registered trademark of Dries Buytaert.