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 |
Jump to:
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
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
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
same here.
Are there any quick work-arounds?
#4
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
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)...