Page 1 of 1

Form Builder - Error on XML Form Import

Posted: Thu Feb 07, 2008 11:25 am
by Andor
Hi,
Haven't been here for a long time, but am now installing a new site on CMS Made Simple 1.2.3. Noticed it runs smother, faster and with a lot of extra "bonuses"- thanks!

Basics:
CMS Made Simple 1.2.3
PHP 5.2.1
MySQL 4.1.22-standard
Apache 1.3.37 on Linux

My challenge:
I'm using FormBuilder 0.4.4 and have a pulldown field that I want to get a long list into without typing each option in the module. I'm exporting the form via xml with a couple of options in the pulldown field and add the extra options at the right spot in the xml file.

When trying to import the file, I get an error: "Form import failed! There was a problem with the format of the XML file."

I've also tried to just export and import the same file, which seems to work but sometimes give me a warning: "Invalid argument supplied for foreach() in /home/mind/public_html/fjs/modules/FormBuilder/classes/Form.class.php on line 917". Line 917 in form.class.php is: "foreach ($thisChild['children'] as $thisOpt)".

What might a typical reason be to get such a warning from FormBuilder? My hope is that if I understand that, I might find the reason for the initial error ;)

Are there any known format issues?

Thanks in advance,

Andor