Forum

Thread tagged as: Question, Problem, Forms

Form Add on not working

Hi, I have just downloaded the form app, uploaded to the specific App folder, updated the config file and added some of the Form tags from the documentation and even copied the code from the sample form code but none of the input fields are displaying.

I have re-read the installation settings to check I have not missed anything but I can not see where I am going wrong.

Cheers

Sarah Whittle

Sarah Whittle 0 points

  • 5 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

With each post to the forum we need to see your Diagnostics Report and the code you are using. It's impossible for us to help otherwise.

Hi Rachel

The Diagnostics Report does not show anything related to the form issue. Here is the code to the page. I have uploaded the Form folder to the Apps folder and updated the Apps config file to include the form app. The Form tab is visible in the backend of Perch but does not show anything in terms of picking the sample form info. I am sure I am just missing something obvious.

<?php include('../perch/runtime.php'); ?> <?php perch_layout('global.head'); ?>

<body> <?php perch_layout('global.header'); ?>

<div class="home-welcome-banner "> <div class="row"> <div class="large-12 columns"> <?php perch_content('Contact Us'); ?>

<perch:form id="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>

    </div>
</div>

</div>

<?php perch_layout('global.footer'); ?>

</body> </html>

Rachel Andrew

Rachel Andrew 394 points
Perch Support

The Diagnostic Report gives us information about the environment the site is running in. That is why we ask to see it. Once we have that we'll take a look.

Here it is

Diagnostics report
PERCH INFORMATION

Perch: 2.8.31
Production mode: Production (100)
Installed apps: content (2.8.31), assets (2.8.31), categories (2.8.31), perch_blog (5.0), perch_forms (1.8.3)
DB driver: PDO
DB tables: perch2_blog_authors (2), perch2_blog_comments (0), perch2_blog_index (135), perch2_blog_posts (1), perch2_blog_posts_to_tags (0), perch2_blog_sections (1), perch2_blog_tags (7), perch2_blogs (1), perch2_categories (0), perch2_category_counts (0), perch2_category_sets (1), perch2_content_index (59), perch2_content_items (24), perch2_content_regions (5), perch2_forms (0), perch2_forms_responses (0), perch2_navigation (1), perch2_navigation_pages (1), perch2_page_templates (1), perch2_pages (3), perch2_resource_log (12), perch2_resource_tags (0), perch2_resources (39), perch2_resources_to_tags (0), perch2_settings (23), perch2_user_passwords (0), perch2_user_privileges (37), perch2_user_role_privileges (16), perch2_user_roles (2), perch2_users (2)
Users: 2
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: 519f766c7fb554350259620bce298307
L1: 3866126838e7ae0f3c7550c4b643dc02
F1: 2edba60ed1f613d6dd804feb202456a2
headerColour: #ffffff
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 1
content_collapseList: 1
lang: en-gb
update_2.8.31: done
latest_version: 2.8.15
on_sale_version: 2.8.31
headerScheme: light
dashboard: 1
hide_pwd_reset: 0
content_hideNonEditableRegions: 0
content_frontend_edit: 0
perch_blog_update: 5.0.1
perch_blog_post_url: /blog/{postSlug}
perch_blog_site_name:
perch_blog_slug_format: %Y-%m-%d-{postTitle}
perch_blog_akismet_key:
perch_blog_comment_notify: 1
perch_blog_max_spam_days: 0
logoPath: /perch/resources/logo-1.png
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: whittled_prech
PERCH_DB_SERVER: 10.169.0.113
PERCH_DB_DATABASE: whittled_prech
PERCH_DB_PREFIX: perch2_
PERCH_TZ: UTC
PERCH_EMAIL_FROM: accounts@whittledesignstudio.com
PERCH_EMAIL_FROM_NAME: Sarah Whittle
PERCH_LOGINPATH: /perch
PERCH_PATH: /var/sites/w/whittledesignstudio.com/public_html/perch
PERCH_CORE: /var/sites/w/whittledesignstudio.com/public_html/perch/core
PERCH_RESFILEPATH: /var/sites/w/whittledesignstudio.com/public_html/perch/resources
PERCH_RESPATH: /perch/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_RUNWAY_ROUTED:
PERCH_STRONG_PASSWORDS:
PERCH_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /var/sites/w/whittledesignstudio.com/public_html/perch/templates
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_PRODUCTION_MODE: 100
PERCH_RWD:
PERCH_HTML_ENTITIES:
PERCH_SSL:
PERCH_STRIPSLASHES:
PERCH_PROGRESSIVE_FLUSH: 1
PERCH_PARANOID:
PERCH_FORCE_SECURE_COOKIES:
PERCH_PASSWORD_MIN_LENGTH: 6
PERCH_MAX_FAILED_LOGINS: 10
PERCH_AUTH_LOCKOUT_DURATION: 1 HOUR
PERCH_VERIFY_UPLOADS:
PERCH_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
PERCH_SESSION_TIMEOUT_MINS: 20
HOSTING SETTINGS

PHP: 5.4.42
Zend: 2.4.0
OS: Linux
SAPI: cgi-fcgi
Safe mode: not detected
MySQL client: mysqlnd 5.0.10 - 20111026 - $Id: c85105d7c6f7d70d609bb4c000257868a40840ab $
MySQL server: 5.7.14
Free disk space: 42.39 TB
Extensions: Core, date, ereg, libxml, openssl, pcre, sqlite3, zlib, bcmath, calendar, ctype, curl, dom, hash, fileinfo, filter, ftp, gd, gettext, SPL, iconv, session, intl, json, ldap, mbstring, mcrypt, mssql, standard, mysql, mysqlnd, mysqli, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, Reflection, imap, SimpleXML, soap, sockets, exif, tidy, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, cgi-fcgi, memcache, geoip, mhash, ionCube Loader, Zend Guard Loader
GD: Yes
ImageMagick: No
PHP max upload size: 100M
PHP max form post size: 100M
PHP memory limit: 128M
Total max uploadable file size: 100M
Resource folder writeable: Yes
Session timeout: 240 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: Yes
DOCUMENT_ROOT: /var/sites/w/www.whittledesignstudio.com/public_html
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-us
HTTP_CONNECTION: close
HTTP_COOKIE: __atuvc=125%7C36; ADMINDYNSRV=lin219; cmsa=1; PHPSESSID=2af09217892b6bba2c74256580a9a12d; _ga=GA1.2.1819327748.1471612731
HTTP_HOST: www.whittledesignstudio.com
HTTP_REFERER: https://www.whittledesignstudio.com/perch/core/settings/diagnostics/
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/600.7.12 (KHTML, like Gecko) Version/8.0.7 Safari/600.7.12
HTTP_X_FORWARDED_FOR: 31.53.99.196
PATH: /bin
QUERY_STRING: extended
REDIRECT_STATUS: 200
REMOTE_ADDR: 31.53.99.196
REMOTE_PORT: 50310
REQUEST_METHOD: GET
REQUEST_URI: /perch/core/settings/diagnostics/?extended
SCRIPT_FILENAME: /var/sites/w/www.whittledesignstudio.com/public_html/perch/core/settings/diagnostics/index.php
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
SERVER_ADDR: 10.168.1.171
SERVER_ADMIN: you@example.com
SERVER_NAME: www.whittledesignstudio.com
SERVER_PORT: 80
SERVER_PROTOCOL: HTTP/1.1
SERVER_SOFTWARE: Apache
PHP_SELF: /perch/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1473337454.26
REQUEST_TIME: 1473337454
argc: 1

This is the summary version...

SUMMARY INFORMATION

Perch: 2.8.31, PHP: 5.4.42, MySQL: mysqlnd 5.0.10 - 20111026 - $Id: c85105d7c6f7d70d609bb4c000257868a40840ab $, with PDO
Server OS: Linux, cgi-fcgi
Installed apps: content (2.8.31), assets (2.8.31), categories (2.8.31), perch_blog (5.0), perch_forms (1.8.3)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_blog', 'perch_forms', );
PERCH_LOGINPATH: /perch
PERCH_PATH: /var/sites/w/whittledesignstudio.com/public_html/perch
PERCH_CORE: /var/sites/w/whittledesignstudio.com/public_html/perch/core
PERCH_RESFILEPATH: /var/sites/w/whittledesignstudio.com/public_html/perch/resources
Image manipulation: GD
PHP limits: Max upload 100M, Max POST 100M, Memory: 128M, Total max file upload: 100M
F1: 2edba60ed1f613d6dd804feb202456a2
Resource folder writeable: Yes
DOCUMENT_ROOT: /var/sites/w/www.whittledesignstudio.com/public_html
HTTP_HOST: www.whittledesignstudio.com
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
Rachel Andrew

Rachel Andrew 394 points
Perch Support

Have you submitted the form and seen the success message?

Hi Rachel

I have just figured it out, the documentation did not say you had to create a template and then to select it in the backend. I just found the video of you explaining how it works and followed that. Love the videos!