Error 500 when submitting form

Permalink Browser Info Environment

Every time I submit my form, I'm greeted with this message:

There was an error submitting this form. Please contact the administrator of this site.

The console indicates the following:

Failed to load resource: the server responded with a status of 500 (Internal Server Error)

And Concrete5's logs show this:

Exception Occurred: [*]/packages/formify/controllers/api/records.php:327 Invalid argument supplied for foreach() (2)

[*] = full URL edited out.

The timestamp of this last error message does not correspond with the time at which the error is thrown, indeed it doesn't even appear every time I submit the form.

Any ideas as to why this happens?


Type: Discussion
Status: In Progress
View Replies:
malcolmisaacson replied on at Permalink Reply
Quick update: I had the mailchimp integration set up. After deactivating it, the form seems to work again. My client specifically asked for this, so I'll have to re-activate it one way or another...
jgarcia replied on at Permalink Reply
I just posted a new version which may address this bug (I had some similar issues in an environment I was testing in).

With regard to MailChimp - make sure you specify the config values (API keys and stuff) in the Integrations page of the form. If these are blank, you're likely to get errors.
malcolmisaacson replied on at Permalink Reply 2 Attachments
Thanks for your (very) quick response!

I dug a little deeper and found that (for context, see refused.jpg, attached):
API call to lists/subscribe failed: Failed connect to; Connection refused

I guess this is due to some firewall setting on the server's side. I guess I'll have a chat with the admin.

I however also found the following bug: accented letters (é, à, è, etc.) seem to cause another error (see egrave.jpg attached). The records get stored correctly nonetheless and display the accented letters, so I guess it's not really that big of a problem.
malcolmisaacson replied on at Permalink Reply
Well, after a chat with our admin, it turns out our organization is behind a proxy server that blocks such connections. I saw in formify's code that it's still using the mailchimp API v. 2.0, which seems to stumble upon this, unlike the v. 3 ( Would it be huge trouble to upgrade Formify to mailchimp API v3?

Thanks a ton.
jgarcia replied on at Permalink Reply
Good call. I (incorrectly) assumed that MailChimp's official library (which I am using) would use the latest API, but alas it only uses v2.

I've added upgrading to v3 on the road map.

concrete5 Environment Information

# concrete5 Version
Core Version -
Version Installed -
Database Version - 20160615000000

# concrete5 Packages
Formify (

# concrete5 Overrides
[a lot]

# 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

# Server API

# PHP Version

# PHP Extensions
apache2handler, bcmath, bz2, calendar, Core, ctype, curl, date, dba, dom, ereg, fileinfo, filter, gd, gettext, hash, iconv, imap, json, ldap, libxml, mbstring, mcrypt, mysql, mysqli, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, Reflection, session, shmop, SimpleXML, SPL, sqlite3, standard, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib.

# PHP Settings
max_execution_time - 120
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 256M
post_max_size - 25M
sql.safe_mode - Off
upload_max_filesize - 25M
ldap.max_links - Unlimited
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 - <i>no value</i>
session.gc_maxlifetime - 1440

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_2) AppleWebKit/602.3.10 (KHTML, like Gecko) Version/10.0.2 Safari/602.3.10

Hide Post Content

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

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.