Forum

Thread tagged as: Problem, Addons, Forms

Contact Form not working

My perch form will not send it is showing in my dashboard, the form appears to be working correctly and error messages are happening correctly but when i click send nothing happens? any help much appreciated :-)

Thyme Morris

Thyme Morris 0 points

  • 6 years ago

i have added Forms App to admin > addons > apps

have updated apps.php

to <?php $apps_list = array( 'content', 'categories', 'perch_blog', 'perch_forms', );

and my template(contact-form)situated in admin > templates > content:

<perch:form id="form_contact" method="post" app="perch_forms">

<perch:content id="intro" type="textarea" label="Intro" textile="true" editor="markitup" size="m" />

<div>
    <perch:label for="name">Name</perch:label>
    <perch:input type="text" id="name" required="true" label="Name" />
    <perch:error for="name" type="required">Please add your name</perch:error>
</div>

<div>
    <perch:label for="email">Email</perch:label>
    <perch:input type="email" id="email" required="true" label="Email" placeholder="you@company.com" />
    <perch:error for="email" type="required">Please add your email address</perch:error>
    <perch:error for="email" type="format">Please check your email address</perch:error>
</div>

<div>
    <perch:label for="message">Message</perch:label>
    <perch:input type="textarea" id="message" required="true" label="Message" />
    <perch:error for="message" type="required">Please add a message</perch:error>
</div>

<div>
    <perch:input type="submit" id="submit" value="Send" />
</div>

<perch:success>
    <perch:content id="success" type="textarea" label="Thank you message" textile="true" editor="markitup" />
</perch:success>

</perch:form>

Rachel Andrew

Rachel Andrew 394 points
Perch Support

Please post your Diagnostics Report from under Settings in the Perch Admin.

Perch information

Perch: 2.7.4
Production mode: Production (100)
Installed apps: content (2.7.4), assets (2.7.4), categories (2.7.4), perch_blog (4.5.4), perch_forms (1.8.2)
DB driver: PDO
DB tables: perch2_blog_authors, perch2_blog_comments, perch2_blog_index, perch2_blog_posts, perch2_blog_posts_to_tags, perch2_blog_sections, perch2_blog_tags, perch2_categories, perch2_category_counts, perch2_category_sets, perch2_content_index, perch2_content_items, perch2_content_regions, perch2_forms, perch2_forms_responses, perch2_navigation, perch2_navigation_pages, perch2_page_templates, perch2_pages, perch2_resource_tags, perch2_resources, perch2_resources_to_tags, perch2_settings, perch2_user_privileges, perch2_user_role_privileges, perch2_user_roles, perch2_users
Users: 1
App runtimes:

<?php
    $apps_list = array(
        'content', 
        'categories',
        'perch_blog',
        'perch_forms',
    );

Scheduled tasks for perch_blog: delete_spam_comments (1440 mins)
Editor plug-ins: markitup
H1: 321faf83375b33be1a669bee3faa7e4e
L1: 47ef45d1a41433381c758e7647bbf3a4
headerColour: #ffffff
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 0
content_collapseList: 1
lang: en-gb
update_2.7.4: done
latest_version: 2.5.3
on_sale_version: 2.7.4
perch_blog_update: 5.0
perch_blog_post_url: /blog/post.php?s={postSlug}
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: kubiak_s2k
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE: kubiak_s2k
PERCH_DB_PREFIX: perch2_
PERCH_TZ: UTC
PERCH_EMAIL_FROM: emily@kubiakcreative.com
PERCH_EMAIL_FROM_NAME: Emily Taylor
PERCH_LOGINPATH: /admin
PERCH_PATH: /home/kubiak/public_html/security2000/admin
PERCH_CORE: /home/kubiak/public_html/security2000/admin/core
PERCH_RESFILEPATH: /home/kubiak/public_html/security2000/admin/resources
PERCH_RESPATH: /admin/resources
PERCH_HTML5: 1
PERCH_RUNWAY:
PERCH_ERROR_MODE: DIE
PERCH_DATE_LONG: %d %B %Y
PERCH_DATE_SHORT: %d %b %Y
PERCH_TIME_SHORT: %H:%M
PERCH_TIME_LONG: %H:%M:%S
PERCH_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /home/kubiak/public_html/security2000/admin/templates
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_PRODUCTION_MODE: 100
PERCH_RWD:
PERCH_HTML_ENTITIES:
PERCH_SSL:
PERCH_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:

Hosting settings

PHP: 5.3.28
Zend: 2.3.0
OS: Linux
SAPI: cgi-fcgi
Safe mode: not detected
MySQL client: 5.5.40-36.1
MySQL server: 5.5.40-36.1
Extensions: Core, date, ereg, libxml, openssl, pcre, sqlite3, zlib, bcmath, bz2, calendar, ctype, curl, dom, hash, fileinfo, filter, ftp, gd, gettext, gmp, SPL, iconv, session, intl, json, mbstring, mcrypt, mssql, mysql, mysqli, odbc, standard, PDO, pdo_mysql, pdo_sqlite, Phar, posix, pspell, Reflection, imap, SimpleXML, soap, sockets, SQLite, exif, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, cgi-fcgi, imagick, SourceGuardian, mhash, ionCube Loader, Zend Guard Loader
GD: Yes
ImageMagick: Yes
PHP max upload size: 64M
PHP max form post size: 64M
PHP memory limit: 256M
Total max uploadable file size: 64M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: No
DOCUMENT_ROOT: /home/kubiak/public_html/security2000
GATEWAY_INTERFACE: CGI/1.1
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_ACCEPT_LANGUAGE: en-gb,en;q=0.5
HTTP_CONNECTION: close
HTTP_COOKIE: cmsa=1; PHPSESSID=fb3faf99d9ce8bd1efd15c87be53bfe8
HTTP_HOST: security2000.kubiaktest.co.uk
HTTP_REFERER: https://security2000.kubiaktest.co.uk/admin/core/settings/diagnostics/
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:16.0) Gecko/20100101 Firefox/16.0
HTTP_X_HTTP_PROTO: HTTP/1.1
HTTP_X_REAL_IP: 90.222.94.132
PATH: /bin:/usr/bin
PHPRC: /home/kubiak
QUERY_STRING: extended
REDIRECT_STATUS: 200
REMOTE_ADDR: 90.222.94.132
REMOTE_PORT: 51863
REQUEST_METHOD: GET
REQUEST_URI: /admin/core/settings/diagnostics/?extended
SCRIPT_FILENAME: /home/kubiak/public_html/security2000/admin/core/settings/diagnostics/index.php
SCRIPT_NAME: /admin/core/settings/diagnostics/index.php
SERVER_ADDR: 192.185.94.20
SERVER_ADMIN: webmaster@security2000.kubiaktest.co.uk
SERVER_NAME: security2000.kubiaktest.co.uk
SERVER_PORT: 80
SERVER_PROTOCOL: HTTP/1.1
SERVER_SIGNATURE: <address>Apache Server at security2000.kubiaktest.co.uk Port 80</address>
SERVER_SOFTWARE: Apache
UNIQUE_ID: VIzELcC5ArcAADptRC8AAACz
PHP_SELF: /admin/core/settings/diagnostics/index.php
REQUEST_TIME: 1418511406
argc: 1
Drew McLellan

Drew McLellan 2638 points
Perch Support

Have you tested your email settings in the Settings section?

yep. the form doesn't even send? no success message?

Rachel Andrew

Rachel Andrew 394 points
Perch Support

Sorry, which form are you talking about here? Your form or the email Settings form?

my form? on the contact page

any help for this much appreciated! thanks

Drew McLellan

Drew McLellan 2638 points
Perch Support

Can you describe more accurately what's happening, or show us the form?

the form will not do anything. the error messages work but the for doesn't send. I have tried starting all over again but still no luck! thanks

****but form doesn't send****

Drew McLellan

Drew McLellan 2638 points
Perch Support

Your page is throwing 9 JavaScript errors. Have you tried a form on a blank test page?

thanks for that i had a jquery link at the bottom of the pages that was stopping it working. so i have removed it.

Thanks