Form submission error when a notification is set

Permalink Browser Info Environment
My form is set to send an email when a new record is added. Upon submission, the form displays a generic error despite the fact that the record is saved in the dashboard successfully. However, no email is sent to alert of a new form submission. When I remove the notification, the form submits successfully -- no errors, and the record is saved in the dashboard. I need the form to be able to notify the site owner of a new form submission. What's wrong?

Type: Discussion
Status: In Progress
View Replies:
digitalrainstorm replied on at Permalink Reply
Forgot to include -- JavaScript is throwing the following error in the console:

mysite.com/index.php/formify/go/1?ajax=1
Failed to load resource: the server responded with a status of 500 (Internal Server Error)

I'm not using any integration.
PhilYoung replied on at Permalink Reply
PhilYoung
Hi,
This error is familiar, I seem to remember it happens when there an html error in your notification template.
Best
Phil
digitalrainstorm replied on at Permalink Reply
I'm not using a custom template, so it seems odd that there would be an error. When I select "Formify Detail" template, I get the error. When I select the "Formify List" template, I don't get the error, but the email notification has no data in it. I'm playing around with it and will update if I reach any success...
PhilYoung replied on at Permalink Reply
PhilYoung
Hi,
The list template certainly does not work for notifications. I am assuming you have all the settings on the form fields set to be included in notifications..

Occasionally, some non-standard character in one of your form will break the submission and/or email notification. Try a simple one field form with a textbox to see if that works, if it does then it is something in your other form rather than the notification template.

Create a template called test and put the shortened code below into the content section and then set it to be used in your notifications setting.

<table cellpadding="0" cellspacing="0" border="0" style="width:100%;background-color:#f3f3f3;">
  <tr>
    <td>
      <table cellpadding="0" cellspacing="0" border="0" style="max-width:600px;margin:50px auto;background-color:#fff;border-radius:4px;">
        <tr>
          <td>
            <table cellpadding="0" cellspacing="0" border="0" style="max-width:500px;margin:50px auto;padding:0 50px;">
               <tr>
                  <td style="margin:0.25em;padding:1em;border-bottom:solid 1px #ccc;"><strong>Field</strong></td>
                  <td style="margin:0.25em;padding:1em;border-bottom:solid 1px #ccc;"><strong>Value</strong></td>
               </tr>
               <tr formify-repeat="a in emailableanswers">
                  <td style="margin:0.25em;padding:1em;border-bottom:solid 1px #eee;">{{ a.label }} </td>
                  <td style="margin:0.25em;padding:1em;border-bottom:solid 1px #eee;">{{ a.value }} </td>
               </tr>


I assume you have looked in the C5 dashboard reports/logs to see if there is any error message in relation to the emails being sent.

Best
Phil

concrete5 Environment Information

# concrete5 Version
Core Version - 8.1.0
Version Installed - 8.1.0
Database Version - 20170123000000

# concrete5 Packages
Formify (2.6.1.2)

# concrete5 Overrides
blocks/image_slider/view.css, blocks/image_slider/view.php, blocks/image_slider, blocks/timeline/form.php, blocks/timeline/add.php, blocks/timeline/js/timeline.js, blocks/timeline/js, blocks/timeline/custom-styles.php, blocks/timeline/icon.png, blocks/timeline/css/timeline.css, blocks/timeline/css, blocks/timeline/edit.php, blocks/timeline/view.php, blocks/timeline/controller.php, blocks/timeline/db.xml, blocks/timeline, blocks/autonav/form_setup_html.php, blocks/autonav/view.php, blocks/autonav/db.xml, blocks/autonav, blocks/anchor/form.php, blocks/anchor/add.php, blocks/anchor/icon.png, blocks/anchor/edit.php, blocks/anchor/view.php, blocks/anchor/controller.php, blocks/anchor/db.xml, blocks/anchor, blocks/button/form.php, blocks/button/add.php, blocks/button/icon.png, blocks/button/edit.php, blocks/button/view.php, blocks/button/controller.php, blocks/button/db.xml, blocks/button, blocks/page_header/form.php, blocks/page_header/add.php, blocks/page_header/icon.png, blocks/page_header/edit.php, blocks/page_header/view.php, blocks/page_header/controller.php, blocks/page_header/db.xml, blocks/page_header, blocks/employee/form.php, blocks/employee/add.php, blocks/employee/js/employee.js, blocks/employee/js, blocks/employee/icon.png, blocks/employee/css/employee.css, blocks/employee/css, blocks/employee/edit.php, blocks/employee/view.php, blocks/employee/controller.php, blocks/employee/db.xml, blocks/employee, languages/ja_JP/LC_MESSAGES/messages.mo, languages/ja_JP/LC_MESSAGES, languages/ja_JP, languages/fi_FI/LC_MESSAGES/messages.mo, languages/fi_FI/LC_MESSAGES, languages/fi_FI, languages/de_DE/LC_MESSAGES/messages.mo, languages/de_DE/LC_MESSAGES, languages/de_DE, languages/pt_BR/LC_MESSAGES/messages.mo, languages/pt_BR/LC_MESSAGES, languages/pt_BR, languages/sv_SE/LC_MESSAGES/messages.mo, languages/sv_SE/LC_MESSAGES, languages/sv_SE, languages/da_DK/LC_MESSAGES/messages.mo, languages/da_DK/LC_MESSAGES, languages/da_DK, languages/es_PE/LC_MESSAGES/messages.mo, languages/es_PE/LC_MESSAGES, languages/es_PE, languages/nb_NO/LC_MESSAGES/messages.mo, languages/nb_NO/LC_MESSAGES, languages/nb_NO, languages/ru_RU/LC_MESSAGES/messages.mo, languages/ru_RU/LC_MESSAGES, languages/ru_RU, languages/en_GB/LC_MESSAGES/messages.mo, languages/en_GB/LC_MESSAGES, languages/en_GB, languages/it_IT/LC_MESSAGES/messages.mo, languages/it_IT/LC_MESSAGES, languages/it_IT, languages/el_GR/LC_MESSAGES/messages.mo, languages/el_GR/LC_MESSAGES, languages/el_GR, languages/nl_NL/LC_MESSAGES/messages.mo, languages/nl_NL/LC_MESSAGES, languages/nl_NL, languages/es_PY/LC_MESSAGES/messages.mo, languages/es_PY/LC_MESSAGES, languages/es_PY, languages/cs_CZ/LC_MESSAGES/messages.mo, languages/cs_CZ/LC_MESSAGES, languages/cs_CZ, themes/fcn/description.txt, themes/fcn/elements/header.php, themes/fcn/elements/footer.php, themes/fcn/elements, themes/fcn/js/jquery-1.12.4.min.js, themes/fcn/js/vendor/what-input.js, themes/fcn/js/vendor/jquery.js, themes/fcn/js/vendor/foundation.js, themes/fcn/js/vendor/foundation.min.js, themes/fcn/js/vendor, themes/fcn/js/fcn.js, themes/fcn/js/velocity.min.js, themes/fcn/js/app.js, themes/fcn/js, themes/fcn/thumbnail.png, themes/fcn/default.php, themes/fcn/page_theme.php, themes/fcn/css/style-mobile.css, themes/fcn/css/normalize.min.css, themes/fcn/css/style-desktop.css, themes/fcn/css/style-tablet.css, themes/fcn/css/style-desktop-small.css, themes/fcn/css/smile.png, themes/fcn/css/foundation.min.css, themes/fcn/css/app.css, themes/fcn/css/frown.png, themes/fcn/css/loader.gif, themes/fcn/css, themes/fcn/contact_page.php, themes/fcn, blocks/image_slider/view.css, blocks/image_slider/view.php, blocks/image_slider, blocks/timeline/form.php, blocks/timeline/add.php, blocks/timeline/js/timeline.js, blocks/timeline/js, blocks/timeline/custom-styles.php, blocks/timeline/icon.png, blocks/timeline/css/timeline.css, blocks/timeline/css, blocks/timeline/edit.php, blocks/timeline/view.php, blocks/timeline/controller.php, blocks/timeline/db.xml, blocks/timeline, blocks/autonav/form_setup_html.php, blocks/autonav/view.php, blocks/autonav/db.xml, blocks/autonav, blocks/anchor/form.php, blocks/anchor/add.php, blocks/anchor/icon.png, blocks/anchor/edit.php, blocks/anchor/view.php, blocks/anchor/controller.php, blocks/anchor/db.xml, blocks/anchor, blocks/button/form.php, blocks/button/add.php, blocks/button/icon.png, blocks/button/edit.php, blocks/button/view.php, blocks/button/controller.php, blocks/button/db.xml, blocks/button, blocks/page_header/form.php, blocks/page_header/add.php, blocks/page_header/icon.png, blocks/page_header/edit.php, blocks/page_header/view.php, blocks/page_header/controller.php, blocks/page_header/db.xml, blocks/page_header, blocks/employee/form.php, blocks/employee/add.php, blocks/employee/js/employee.js, blocks/employee/js, blocks/employee/icon.png, blocks/employee/css/employee.css, blocks/employee/css, blocks/employee/edit.php, blocks/employee/view.php, blocks/employee/controller.php, blocks/employee/db.xml, blocks/employee, languages/ja_JP/LC_MESSAGES/messages.mo, languages/ja_JP/LC_MESSAGES, languages/ja_JP, languages/fi_FI/LC_MESSAGES/messages.mo, languages/fi_FI/LC_MESSAGES, languages/fi_FI, languages/de_DE/LC_MESSAGES/messages.mo, languages/de_DE/LC_MESSAGES, languages/de_DE, languages/pt_BR/LC_MESSAGES/messages.mo, languages/pt_BR/LC_MESSAGES, languages/pt_BR, languages/sv_SE/LC_MESSAGES/messages.mo, languages/sv_SE/LC_MESSAGES, languages/sv_SE, languages/da_DK/LC_MESSAGES/messages.mo, languages/da_DK/LC_MESSAGES, languages/da_DK, languages/es_PE/LC_MESSAGES/messages.mo, languages/es_PE/LC_MESSAGES, languages/es_PE, languages/nb_NO/LC_MESSAGES/messages.mo, languages/nb_NO/LC_MESSAGES, languages/nb_NO, languages/ru_RU/LC_MESSAGES/messages.mo, languages/ru_RU/LC_MESSAGES, languages/ru_RU, languages/en_GB/LC_MESSAGES/messages.mo, languages/en_GB/LC_MESSAGES, languages/en_GB, languages/it_IT/LC_MESSAGES/messages.mo, languages/it_IT/LC_MESSAGES, languages/it_IT, languages/el_GR/LC_MESSAGES/messages.mo, languages/el_GR/LC_MESSAGES, languages/el_GR, languages/nl_NL/LC_MESSAGES/messages.mo, languages/nl_NL/LC_MESSAGES, languages/nl_NL, languages/es_PY/LC_MESSAGES/messages.mo, languages/es_PY/LC_MESSAGES, languages/es_PY, languages/cs_CZ/LC_MESSAGES/messages.mo, languages/cs_CZ/LC_MESSAGES, languages/cs_CZ, themes/fcn/description.txt, themes/fcn/elements/header.php, themes/fcn/elements/footer.php, themes/fcn/elements, themes/fcn/js/jquery-1.12.4.min.js, themes/fcn/js/vendor/what-input.js, themes/fcn/js/vendor/jquery.js, themes/fcn/js/vendor/foundation.js, themes/fcn/js/vendor/foundation.min.js, themes/fcn/js/vendor, themes/fcn/js/fcn.js, themes/fcn/js/velocity.min.js, themes/fcn/js/app.js, themes/fcn/js, themes/fcn/thumbnail.png, themes/fcn/default.php, themes/fcn/page_theme.php, themes/fcn/css/style-mobile.css, themes/fcn/css/normalize.min.css, themes/fcn/css/style-desktop.css, themes/fcn/css/style-tablet.css, themes/fcn/css/style-desktop-small.css, themes/fcn/css/smile.png, themes/fcn/css/foundation.min.css, themes/fcn/css/app.css, themes/fcn/css/frown.png, themes/fcn/css/loader.gif, themes/fcn/css, themes/fcn/contact_page.php, themes/fcn

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - Off
Full Page Caching - Off
Full Page Cache Lifetime - Every 5 minutes.

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
5.6.30

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, gnupg, hash, iconv, imagick, imap, intl, ionCube Loader, json, libxml, mailparse, mbstring, mcrypt, memcache, mhash, mysql, mysqli, mysqlnd, OAuth, openssl, pcre, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, phalcon, Phar, posix, pspell, Reflection, session, SimpleXML, snmp, soap, sockets, SourceGuardian, SPL, sqlite3, standard, tidy, timezonedb, tokenizer, uploadprogress, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, yaml, Zend Guard Loader, zip, zlib

# PHP Settings
max_execution_time - 300
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 300
max_input_vars - 1000
memory_limit - 256M
post_max_size - 1024M
sql.safe_mode - Off
upload_max_filesize - 1024M
memcache.max_failover_attempts - 20
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 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 have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.