Invalid Argument + Cannot modify header information

Permalink Browser Info Environment
Hi,

i've got a problem with the Advanced Forms after installation and adding a form to a page. Every time i use the submit-button i receive the following message:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Warning: Invalid argument supplied for foreach() in /mydomain/packages/sixeightforms/helpers/form/processor.php on line 418

Warning: Cannot modify header information - headers already sent by (output started at /mydomain/packages/sixeightforms/helpers/form/processor.php:418) in /mydomain/packages/sixeightforms/helpers/form/processor.php on line 422
{"hasErrors":true,"errorType":"validation","errors":[{"ffID":42,"label":"Label1","type":"required"},{"ffID":48,"label":"Label2","type":"required"},{"ffID":50,"label":"PLZ","type":"required"},{"ffID":51,"label":"Labe3","type":"required"},{"ffID":52,"label":"Label4","type":"required"},{"ffID":53,"label":"Label5","type":"required"},{"ffID":54,"label":"Label6","type":"required"}],"asID":null,"action":"thankyou","hook":null,"response":"Message"}

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

May you give me some informatione what the problem could be? My second license works perfect (other domain, same hoster & apache settings).

Best regards,
Markus

Type: Pre-Sale
Status: In Progress
mediapowder
View Replies:
PhilYoung replied on at Permalink Reply
PhilYoung
Hi Markus,

I believe I had this error message once and I think I fixed by changing the file permissions on the forms package to 777. Its worth a try.

I believe this can also be caused by UTF-8.So as you are in Germany i wonder if you have any unusual characters in these forms that you don't on the other working site?

I would create a very simply single entry form and see if that works in case your specific form is malfunctioning for some reason.

Best
Phil
mediapowder replied on at Permalink Reply
mediapowder
Hi Phil,

thanks a lot for your reply. I tried the solutions you send me, but that doesn't fix the problem. Meanwhile i found the mistake: i used a line-break in one "Error Message", this causes the failure.

May be fixed in the next version?

Thanks for you help Phil!!

concrete5 Environment Information

# concrete5 Version
5.6.3.3

# concrete5 Packages
Advanced Forms (1.13.1), Page Auto Redirect (2.0), Page Redirect (1.4), Page Selector Attribute (1.1).

# concrete5 Overrides
blocks/autonav, languages/de_DE, themes/hus-normal, themes/hus-root

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - On - If blocks on the particular page allow it.
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
5.6.6RC1

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dba, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imap, intl, json, libxml, mbstring, mcrypt, mysql, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, Reflection, session, shmop, SimpleXML, soap, SPL, sqlite3, standard, tidy, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, zip, zlib.

# PHP Settings
max_execution_time - 50000
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - -1
max_input_vars - 5000
memory_limit - 120M
post_max_size - 8M
sql.safe_mode - Off
upload_max_filesize - 40M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.